security-auditor

security-auditor is a skill for Claude Code from JansenAnalytics/claudex. It costs 57 tokens per session (690 once invoked), scanned A, original, MIT.

An automated security tester that checks websites and source code for issues such as unsafe headers, leaked secrets, injection flaws, authentication bypasses, and vulnerable dependencies.

In plain words
What is it for?
Use it to audit a website, scan source files and Git history for credentials, test SQL injection and similar attacks, review authentication, and check dependency vulnerabilities.
Why use it?
It helps find security weaknesses before a launch or formal review, while its default safe mode limits the risk of testing.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to audit a website, scan source files and Git history for credentials, test SQL injection and similar attacks, review authentication, and check dependency vulnerabilities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jansenanalytics/claudex/security-auditor
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 JansenAnalytics/claudex --skill security-auditor
Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jansenanalytics/claudex/security-auditor.svg)](https://agentmods.dev/skills/jansenanalytics/claudex/security-auditor)
Your own site
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/security-auditor"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/security-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 690 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00057 $0.00690
Opus 5 $0.00028 $0.00345
Sonnet 5 $0.00011 $0.00138
Haiku 4.5 $0.00006 $0.00069

Measured 4d ago against content hash a7cf92cd9d24, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

security-auditor scanned grade A with 1 finding 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 4d 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.

Runs shell commandslowCapability

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

Node.js built-in modules only (http, https, fs, path, child_process). No npm install needed.
skills/security-auditor/SKILL.md · 77 lines

How it starts

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

Security Auditor

Automated security testing tool that probes web applications for vulnerabilities — pen-test-style checks.

Quick Start

# Full audit
security-auditor review https://example.com --source-dir ./myproject --output-dir /tmp/audit

# Individual scans
security-auditor headers https://example.com
security-auditor secrets ./src
security-auditor deps ./project
security-auditor injection https://example.com
security-auditor auth --auth-config auth.json

Commands

headers <url> — HTTP Security Headers

Checks HSTS, CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy, CORS headers, Cache-Control, cookie flags. Grades A-F.

injection <url> — Injection Testing

Tests SQL injection, XSS, command injection, path traversal, SSRF, header injection, NoSQL injection. Safe mode by default; --aggressive for deeper testing.

secrets <dir> — Secret Scanner

Regex + entropy-based scanning for API keys (AWS, GCP, OpenAI, Stripe, GitHub, etc.), private keys, passwords, JWTs, connection strings. Add --git to scan git history.

auth --auth-config <file> — Auth Testing

Tests auth bypass (no token, malformed JWT, none-algorithm), IDOR, brute force detection, privilege escalation, HTTP method override.

Auth config format:

{
  "baseUrl": "https://api.example.com",
  "token": "Bearer eyJ...",
  "protectedEndpoints": ["/api/profile"],
  "adminEndpoints": ["/api/admin/users"],
  "idorEndpoints": ["/api/users/2/data"],
  "loginEndpoint": "/api/login",
  "loginBody": { "email": "[email protected]", "password": "wrong" }
}

deps <dir> — Dependency Scanner

Runs npm audit, checks outdated packages, license compliance (flags GPL in proprietary projects).

review <url> — Full Audit Orchestrator

Runs all scans and generates a combined report. Options: --quick, --full, --aggressive, --compare DIR.

report <dir> — Report Generator

Aggregates scan results into markdown + JSON with CVSS-like scoring and remediation steps.

Read the full file on GitHub · 77 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. 4d ago First seen · 77 lines · 57 tokens per session scan A a7cf92cd9d24

Subscribe to this mod's changes

security-auditor is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 2mo ago), licensed MIT. It adds 57 tokens to every session and 690 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.