<< All versions

Skill v1.0.0

currentAutomated scan100/100
diegopacheco/agent-skills/smith-sec-agent
──Details
PublishedNovember 18, 2026 at 08:16 AM
Content Hashsha256:971dbd48ee2a9484...
Git SHA9f8625801f7e
──Files
Files (1 file, 5.6 KB)
SKILL.md5.6 KBactive
SKILL.md · 104 lines · 5.6 KB

name: smith-sec-agent description: 🛡️ 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-agent, /night-agents sec, or asks for a security review, OWASP or zero day audit. metadata: version: "1.0.0"


🛡️ 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 10Signal
A01 Broken access controlroutes with no auth, IDOR (/orders/:id with no owner check), trusting client ids or roles
A02 Cryptographic failuressecrets in code or git, weak hashes for passwords, Math.random for tokens, plain HTTP
A03 InjectionSQL, shell, LDAP or template strings built from input, eval, unescaped HTML
A04 Insecure designserver trusting client prices or totals, no rate limit on login or coupons
A05 Security misconfigurationdebug on, stack traces to clients, permissive CORS, missing security headers
A06 Vulnerable componentsdependencies with known CVEs: npm audit, pip-audit, mvn dependency-check, cargo audit, govulncheck
A07 Auth failurestokens in query strings, timing unsafe compares, no session expiry, default credentials
A08 Integrity failuresunsigned updates, unsafe deserialization, unpinned remote scripts
A09 Logging failuressecrets or PII in logs, no audit of sensitive actions
A10 SSRFserver side fetches of user supplied URLs
Zero day classSignal
Prototype pollutiondeep merge or assign of request bodies, __proto__ keys
Path traversalfile paths joined from input without normalising and checking the root
ReDoSnested quantifiers on input, (a+)+, unbounded .* with backtracking
Deserializationpickle, yaml.load, Java serialization or vm on untrusted data
Race conditionscheck then act on balances, stock or coupons, TOCTOU on files
Mass assignmentrequest bodies spread straight into records
Resource exhaustionunbounded 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 reported with severity low and 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:

markdown
## S1: SQL injection in sales by origin
-Severity: critical
-Category: A03 Injection
-Where: src/admin.js:9
-Attack: GET /api/admin/sales?origin=x' OR '1'='1 returns every row
-Proof: $RUN_DIR/poc/S1.log
-Impact: any caller reads or changes every table
-Fix: bind the origin as a parameter with db.prepare(...).all(origin)
-CWE: CWE-89

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

  1. Commit security-report.md alone: <project>: smith-sec-agent: document security findings.
  2. Contract step 4: run the tests again into $RUN_DIR/tests-after.log. Nothing changed, so the

numbers must match the baseline.

  1. Contract steps 5 to 7. Every finding goes into result.json with action: 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.

All versions