security-scan

security-scan is a skill for Claude Code, Codex from viknesh20-20/claude-code-tool-kit. It costs 41 tokens per session (1,126 once invoked), scanned A, original, MIT.

A codebase security review that looks for vulnerabilities such as injection, authentication weaknesses, exposed secrets, and unsafe settings. It also checks environment files and whether ignore rules protect them.

In plain words
What is it for?
It is for scanning source files and configuration, reporting severity and locations, identifying the vulnerability type, and suggesting fixes with code.
Why use it?
It helps find security problems before code involving login, user input, or outside services is submitted for review.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/viknesh20-20/claude-code-tool-kit/security-scan
Any agent
npx skills add viknesh20-20/claude-code-tool-kit --skill security-scan
Clone the repo
git clone --depth 1 https://github.com/viknesh20-20/claude-code-tool-kit

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-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/viknesh20-20/claude-code-tool-kit/security-scan.svg)](https://agentmods.dev/skills/viknesh20-20/claude-code-tool-kit/security-scan)
Your own site
<a href="https://agentmods.dev/skills/viknesh20-20/claude-code-tool-kit/security-scan"><img src="https://agentmods.dev/badge/skills/viknesh20-20/claude-code-tool-kit/security-scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,126 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00041 $0.01126
Opus 5 $0.00020 $0.00563
Sonnet 5 $0.00008 $0.00225
Haiku 4.5 $0.00004 $0.00113

Measured 3d ago against content hash f3ee0b33ca3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-scan 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 3d 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.

.claude/skills/security-scan/SKILL.md · 103 lines

How it starts

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

Security Vulnerability Scan

Automated Secret Detection

!git grep -rn "api_key\|apikey\|api-key\|secret\|password\|passwd\|token\|bearer\|private_key\|access_key\|client_secret\|auth_token" --include="*.ts" --include="*.js" --include="*.py" --include="*.go" --include="*.rs" --include="*.java" --include="*.rb" --include="*.cs" --include="*.env*" --include="*.yml" --include="*.yaml" --include="*.json" --include="*.toml" --include="*.cfg" --include="*.ini" --include="*.conf" 2>/dev/null | grep -v node_modules | grep -v .git | grep -v vendor | grep -v "\.lock" | grep -v "test" | grep -vi "example\|placeholder\|your_\|TODO\|FIXME\|change_me" | head -30

Environment Files Check

!find . -name ".env*" -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null !cat .gitignore 2>/dev/null | grep -i "env\|secret\|key\|credential" || echo "WARNING: .gitignore may not exclude secret files"


Vulnerability Checklist

Scan the codebase systematically for each vulnerability class. For every finding:

  • Severity: Critical / High / Medium / Low
  • File path and line number
  • Vulnerability type (CWE ID if known)
  • Description of the risk
  • Remediation steps with code

1. Injection Flaws

  • SQL Injection: String concatenation in queries instead of parameterized/prepared statements
  • NoSQL Injection: Unsanitized user input in MongoDB/DynamoDB queries
  • Command Injection: User input passed to exec, system, os.popen, subprocess without sanitization
  • LDAP Injection: Unsanitized input in LDAP queries
  • Path Traversal: User input in file paths without normalization (../../../etc/passwd)
  • Template Injection: User input rendered in templates without escaping (SSTI)

2. Cross-Site Scripting (XSS)

  • Unescaped user input rendered in HTML
  • dangerouslySetInnerHTML / v-html / |safe with user content
  • Reflected XSS via URL parameters
  • Stored XSS via database content rendered without sanitization
  • DOM-based XSS via document.write, innerHTML, eval

Read the full file on GitHub · 103 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. 3d ago First seen · 103 lines · 41 tokens per session scan A f3ee0b33ca3f

Subscribe to this mod's changes

security-scan is a skill published in the GitHub repository viknesh20-20/claude-code-tool-kit (7 stars, last pushed 4mo ago), licensed MIT. It adds 41 tokens to every session and 1,126 once invoked, about $0.0002 per session on Opus 5. 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-31.