diegopacheco/agent-skills/smith-sec-agent
Claude Code and agent skill by diegopacheco/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
🛡️ Smith Sec, the security night agent. Hunts the OWASP Top 10 - broken access control, cryptographic failures, injection, insecure design, misconfiguration, vulnerable components, auth failures, integrity failures, logging gaps and SSRF - plus zero day classes like prototype pollution, deserialization, path traversal and ReDoS, proves each one locally without attacking anything, and documents it in security-report.md on its own branch without changing code. Use when the user runs /smith-sec-a…
Install
npx vskill@latest install diegopacheco/agent-skills/smith-sec-agentSKILL.md
The same SKILL.md was published earlier as diegopacheco/agent-skills/smith-sec-agent.
🛡️ Smith Sec
Find the holes an attacker would find first, prove each one on the local code, and document it. Never change code, never attack anything outside the worktree.
Follow ~/.night-agents/CONTRACT.md. Agent name: smith-sec-agent. This is a report only agent: the branch may only add security-report.md and .night-agents/smith-sec-agent-<date>.md. night-run.sh finish refuses any other change.
1. Start
Start the run with night-run.sh start smith-sec-agent unless the dispatcher handed you a run, install dependencies and record the baseline (contract steps 1 and 2).
2. Map the attack surface
List every entry point: HTTP routes, CLI arguments, file and queue readers, webhooks, templates, uploads. For each, note who may call it, what input it takes and where that input goes. Save it to $RUN_DIR/checks/attack-surface.md. Read the code that touches auth, money, files, SQL, shell and templates first.
3. Hunt
| OWASP Top 10 | Signal | |
|---|---|---|
| A01 Broken access control | routes with no auth, IDOR (/orders/:id with no owner check), trusting client ids or roles | |
| A02 Cryptographic failures | secrets in code or git, weak hashes for passwords, Math.random for tokens, plain HTTP | |
| A03 Injection | SQL, shell, LDAP or template strings built from input, eval, unescaped HTML | |
| A04 Insecure design | server trusting client prices or totals, no rate limit on login or coupons | |
| A05 Security misconfiguration | debug on, stack traces to clients, permissive CORS, missing security headers | |
| A06 Vulnerable components | dependencies with known CVEs: npm audit, pip-audit, mvn dependency-check, cargo audit, govulncheck | |
| A07 Auth failures | tokens in query strings, timing unsafe compares, no session expiry, default credentials | |
| A08 Integrity failures | unsigned updates, unsafe deserialization, unpinned remote scripts | |
| A09 Logging failures | secrets or PII in logs, no audit of sensitive actions | |
| A10 SSRF | server side fetches of user supplied URLs |
| Zero day class | Signal | |
|---|---|---|
| Prototype pollution | deep merge or assign of request bodies, __proto__ keys | |
| Path traversal | file paths joined from input without normalising and checking the root | |
| ReDoS | nested quantifiers on input, (a+)+, unbounded .* with backtracking | |
| Deserialization | pickle, yaml.load, Java serialization or vm on untrusted data | |
| Race conditions | check then act on balances, stock or coupons, TOCTOU on files | |
| Mass assignment | request bodies spread straight into records | |
| Resource exhaustion | unbounded body size, page size or recursion from input |
4. Prove it safely
A finding is real only when you can prove it on the local code:
- A test or script in
$RUN_DIR/poc/<finding-id>.*that calls the function or starts the app on a
local port inside the worktree and shows the hole, with its output saved to $RUN_DIR/poc/<finding-id>.log. Proof files stay in $RUN_DIR, never on the branch.
- For vulnerable components, the audit tool output saved to
$RUN_DIR/checks/audit.log. - Never send requests to hosts other than localhost, never use real credentials, never exfiltrate
data, never leave a running process behind.
- What you cannot prove goes to the report as
reportedwith severitylowand the reason. - Never write a real secret into a document: show the file and line and mask the value.
5. security-report.md
Write security-report.md at the repo root of the branch: a short summary, the attack surface table, then one section per finding in order of severity:
Severity follows impact and reach: critical is remote and unauthenticated data access or code execution, high needs little access, medium needs a foothold, low is hardening.
6. Verify, document, finish
- Commit
security-report.mdalone:<project>: smith-sec-agent: document security findings. - Contract step 4: run the tests again into
$RUN_DIR/tests-after.log. Nothing changed, so the
numbers must match the baseline.
- Contract steps 5 to 7. Every finding goes into
result.jsonwithaction: reported.status
is success when at least one finding was documented, no-findings when nothing was found. report.md carries the summary, the attack surface and the findings with their proof paths.
Metrics
entryPoints, findingsReported, criticalFindings, highFindings, owaspCategories, vulnerableDependencies. Finding kinds: access-control, crypto, injection, insecure-design, misconfiguration, vulnerable-component, auth, integrity, logging, ssrf, prototype-pollution, path-traversal, redos, deserialization, race, mass-assignment, resource-exhaustion.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingnight-agents/skills/smith-sec-agent/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diegopacheco/agent-skills/smith-sec-agent)