Borrowing it
Nothing to install: this file belongs to sinewaveai/agent-security-scanner-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sinewaveai/agent-security-scanner-mcp/main/.claude/commands/fix-security.mdgit clone --depth 1 https://github.com/sinewaveai/agent-security-scanner-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/sinewaveai/agent-security-scanner-mcp/fix-security)<a href="https://agentmods.dev/commands/sinewaveai/agent-security-scanner-mcp/fix-security"><img src="https://agentmods.dev/badge/commands/sinewaveai/agent-security-scanner-mcp/fix-security/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/sinewaveai/agent-security-scanner-mcp/fix-security"><img src="https://agentmods.dev/badge/commands/sinewaveai/agent-security-scanner-mcp/fix-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00422 |
| Opus 5.5 | $0.00000 | $0.00169 |
| Sonnet 5.5 | $0.00000 | $0.00084 |
| Haiku 4.5 | $0.00000 | $0.00042 |
Grade A, and why
fix-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Fix Security Issues
Analyze the current file for security vulnerabilities detected by the Agent Security extension and automatically apply fixes.
Instructions
- First, get all diagnostics for the current file using the IDE diagnostics tool
- Filter for diagnostics where
sourceis "Agent Security" - For each security issue found, analyze the code and apply the appropriate fix based on the rule ID
Fix Strategies by Rule Type
SQL Injection (sql-injection, sqli)
- Convert string concatenation to parameterized queries
- Replace f-strings/template literals with placeholders
- Use prepared statements
XSS (innerHTML, outerHTML, dangerouslySetInnerHTML)
- Replace
.innerHTMLwith.textContentfor plain text - Add DOMPurify.sanitize() wrapper for HTML content
- Use safe DOM methods like createElement/appendChild
Command Injection (exec, subprocess, shell=True)
- Replace
exec()withexecFile()orspawn() - Change
shell=Truetoshell=False - Split command strings into argument arrays
Hardcoded Secrets (password, api_key, secret)
- Replace hardcoded values with environment variables
- Use
process.env.VAR_NAME(JS) oros.environ.get('VAR_NAME')(Python)
Weak Cryptography (md5, sha1)
- Replace MD5/SHA1 with SHA-256 or stronger
- Use
hashlib.sha256()(Python) orcrypto.createHash('sha256')(JS)
Insecure Deserialization (pickle, yaml.load)
- Replace
pickle.loadwithjson.load - Replace
yaml.load()withyaml.safe_load()
SSL/TLS Issues (verify=False, rejectUnauthorized)
- Set
verify=Trueor remove the insecure option - Enable certificate verification
Task
Read the current file, identify all security issues from the Agent Security extension diagnostics, and apply fixes directly to the code. After fixing, briefly explain what was changed.
$ARGUMENTS
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 49 lines · 0 tokens per session scan A 375d86633933
fix-security is a command published in the GitHub repository sinewaveai/agent-security-scanner-mcp (123 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 422 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
ui-aqa-flow-test-report-analysis
Phase 7 Test Report Analysis of ui-aqa-flow.
api-aqa-flow-execution-and-report-analysis
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED).
api-aqa-flow-test-correction
Phase 7 Test Corrections of api-aqa-flow (USER APPROVAL REQUIRED).
ui-aqa-flow-test-correction
Phase 8 Test Correction of ui-aqa-flow.
watchdog
Run a superskill watchdog pass. Input: $ARGUMENTS (empty = dig the latest session).
refactor-clean
Refactor provided code for cleanliness, maintainability, and alignment with SOLID principles and modern best practices — no over-engineering.