attack-protection
Agent skill that makes AI-written code hold up against 8 common attacks.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Badge for your README
Markdown
[](/listings/orenatobr--attack-protection)HTML
<a href="/listings/orenatobr--attack-protection"><img src="/api/listings/orenatobr--attack-protection/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
For Claude Code, copy the skill folders into your personal skills directory:
git clone https://github.com/orenatobr/attack-protection.git mkdir -p ~/.claude/skills cp -R attack-protection/skills/* ~/.claude/skills/
Start a new Claude Code session. Skills load from the `description` in each `SKILL.md`, so they trigger on their own and can also be called by name.
Other agents: each skill is a folder with a `SKILL.md` (YAML frontmatter plus Markdown). Tools that read the Agent Skills format can load `skills/` as it is. For the rest, paste the body of the `SKILL.md` into the agent's instruction file.
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 45 lines
- # attack-protection
- A checklist skill for AI coding agents. It makes the agent write, or review, code that resists eight attacks: XSS, exposed API routes, exposed API keys, an open database, SQL injection, missing rate limits, prompt injection and hallucinated packages. Before finishing, the agent walks the eight checks against the code it touched and reports each one as OK, FIXED or RISK, with file and line.
- ## Install
- For Claude Code, copy the skill folders into your personal skills directory:
- ```bash
- git clone https://github.com/orenatobr/attack-protection.git
- mkdir -p ~/.claude/skills
- cp -R attack-protection/skills/* ~/.claude/skills/
- ```
- Start a new Claude Code session. Skills load from the `description` in each `SKILL.md`, so they trigger on their own and can also be called by name.
- Other agents: each skill is a folder with a `SKILL.md` (YAML frontmatter plus Markdown). Tools that read the Agent Skills format can load `skills/` as it is. For the rest, paste the body of the `SKILL.md` into the agent's instruction file.
- ## Usage
- Invoke `/attack-protection`, optionally with a file, diff or path to audit. It also triggers on its own when the agent writes code that handles user input, HTML, API routes, secrets, databases, LLM calls or dependencies.
- ## Requirements
- Nothing beyond an agent that loads skills.
- ## Related skills
- Pairs well with `programming-best-practices`, which points to it for secret handling in logs.
- ## What is in this repo
- | Path | Purpose |
- |------|---------|
- | `skills/attack-protection/` | The `attack-protection` skill. |
- | `CHANGELOG.md` | Notable changes, in Keep a Changelog format. |
- | `AGENTS.md` | Rules for AI agents that edit this repo. |
- ## Contributing
- `main` is protected: changes land through a pull request with one approval. See [AGENTS.md](AGENTS.md) for the conventions.
- ## License
- MIT, see [LICENSE](LICENSE).
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.