security-scanner

security-scanner is a skill for Claude Code, Codex from samibs/skillfoundry. It costs 7 tokens per session (5,000 once invoked), scanned A, original, MIT.

A security-scanning guide focused on finding vulnerabilities in AI-generated code. It traces potentially unsafe data through the code and documents findings with suggested fixes and follow-up scans.

In plain words
What is it for?
Use it to scan AI-written code, investigate input-to-output security risks, document vulnerabilities, apply concrete fixes, and rescan the result.
Why use it?
It helps identify security problems that may be missed when generated code is trusted without inspection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; positional $N argument; installed under .agents/ (shared by several agents).

Good fit Use it to scan AI-written code, investigate input-to-output security risks, document vulnerabilities, apply concrete fixes, and rescan the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/samibs/skillfoundry/security-scanner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add samibs/skillfoundry --skill security-scanner
Clone the repo
git clone --depth 1 https://github.com/samibs/skillfoundry

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for security-scanner

README.md
[![agentmods](https://agentmods.dev/badge/skills/samibs/skillfoundry/security-scanner/github.svg)](https://agentmods.dev/skills/samibs/skillfoundry/security-scanner)
Your own site
<a href="https://agentmods.dev/skills/samibs/skillfoundry/security-scanner"><img src="https://agentmods.dev/badge/skills/samibs/skillfoundry/security-scanner/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.

agentmods 80×15 button for security-scanner

Your own site · 80×15
<a href="https://agentmods.dev/skills/samibs/skillfoundry/security-scanner"><img src="https://agentmods.dev/badge/skills/samibs/skillfoundry/security-scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,000 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Output Handling · line 249
    Model output is used without validation or sanitization. Unvalidated output injected into downstream contexts (SQL, shell, HTML) enables injection attacks and arbitrary code execution.
    Fix: Validate and sanitize all model output before using it in downstream contexts. Use parameterized queries for SQL, shell quoting for commands, and HTML encoding for web output.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00007 $0.05000
Opus 5.5 $0.00003 $0.02000
Sonnet 5.5 $0.00001 $0.01000
Haiku 4.5 $0.00001 $0.00500

Measured 2mo ago against content hash c1e6d25f4ee6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-scanner scanned grade A with 2 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| **SSRF** | `fetch(userProvidedUrl)` | `fetch(validateUrl(userProvidedUrl, allowlist))` |

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

grep -rn "exec(\|execSync(\|spawn(\|child_process" --include="*.{js,ts}" | grep -v "execFile"
.agents/skills/security-scanner/SKILL.md · 521 lines

How it starts

The opening of the file, as written. The whole thing — 521 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Scanner Agent

Security scanner specialized in detecting AI-generated code vulnerabilities using comprehensive anti-pattern databases. You are methodical, thorough, and uncompromising -- every vulnerability is documented, traced, and given a concrete fix.

Read the full agent specification: agents/security-specialist.md

Reflection Protocol: See agents/_reflection-protocol.md for reflection requirements.


SCANNER PHILOSOPHY

  1. Assume Breach: Every user input is hostile until proven safe
  2. Trace, Don't Guess: Follow data from source to sink -- do not speculate about safety
  3. Fix, Don't Just Report: Every finding includes a concrete, copy-paste-ready fix
  4. Verify the Fix: Re-scan after remediation to confirm the vulnerability is closed
  5. AI Code is Riskier: AI-generated code has statistically higher vulnerability rates -- scan harder

Critical Context

AI-generated code has distinct security weaknesses:

  • 86% XSS failure rate (vs 31.6% human code)
  • 2.74x more likely to have XSS vulnerabilities
  • 5-21% package hallucination rate (non-existent packages)
  • 75.8% of developers incorrectly trust AI-generated auth code

Pre-Scan Setup

Before scanning, read:

  1. docs/ANTI_PATTERNS_BREADTH.md - Wide coverage of all patterns
  2. docs/ANTI_PATTERNS_DEPTH.md - Deep dive on top 7 critical issues
  3. CLAUDE.md - Zero tolerance standards

Scan Modes

Quick Scan (Top 7 Only)

Focus on docs/ANTI_PATTERNS_DEPTH.md critical issues:

  1. Hardcoded secrets
  2. SQL injection
  3. XSS
  4. Insecure randomness
  5. Auth/authz flaws
  6. Package hallucination
  7. Command injection

Use when: PR reviews, rapid feedback, single-file changes

Comprehensive Scan (All 15 Patterns)

Use both docs/ANTI_PATTERNS_BREADTH.md and DEPTH.md:

  • All 15 security patterns
  • Edge cases
  • Context-specific variations

Use when: Pre-release, security audits, new module additions

Targeted Scan (Specific Pattern)

Read the full file on GitHub · 521 lines

Changes

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.

  1. 2mo ago First seen · 521 lines · 7 tokens per session scan A c1e6d25f4ee6

Subscribe to this mod's changes

security-scanner is a skill published in the GitHub repository samibs/skillfoundry (13 stars, last pushed 1mo ago), licensed MIT. It adds 7 tokens to every session and 5,000 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

security-scanner compared with skills from other repositories

security-scanner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-scannersamibs/skillfoundrySkill131mo agoMITA7Claude Code, Codex
memorix-troubleshootingAVIDS2/memorixSkill9583d agoApache-2.0A36Claude Code
ring:migrating-to-lib-observabilityLerianStudio/ringSkill2181mo agoApache-2.0A104Cursor
ring:planning-codebase-simplificationLerianStudio/ringSkill2181mo agoApache-2.0A105Cursor
ring:planning-large-featuresLerianStudio/ringSkill2181mo agoApache-2.0A89Cursor
ring:generating-llms-txtLerianStudio/ringSkill2181mo agoApache-2.0A109Cursor
ring:checking-frontend-qualityLerianStudio/ringSkill2181mo agoApache-2.0A102Cursor