Sast code scans

From 0dayInc/pwn · View interactive version

Sast code scans is an AI agent skill from the GitHub repository 0dayInc/pwn. Run PWN::SAST on a tree, report findings, and optionally file tickets.

How to use this skill

Skill file

SAST Code Scans

Use when the ask is to scan source, add a rule, or push SAST results to

DefectDojo / Jira. Reading the rule list is not a scan.

When to use

Methodologies

Tooling

web/DOM (CSRF, innerHTML, postMessage, localStorage), injection (SQL,

Eval, Log4J, PHP/TS type juggling, Java deserial), crypto/secrets (MD5,

SSL, PrivateKey, Token, Password, HTTPAuthorizationHeader), memory

(BannedFunctionCallsC, UseAfterFree), infra (AWS, AMQP guest, POM).

Procedure

  1. Resolve dir_path (repo root or the path in the ask). ls once, then

scan.

  1. Run Factory or pwn_sast. Capture the results hash / output dir.
  2. Read the report (HTML/JSON). Summarize by CWE and severity. Do not

claim "clean" from an empty ls.

  1. If asked to file, import the JSON/HTML into DefectDojo or Jira.
  2. New rule: copy an existing lib/pwn/sast/*.rb, implement

self.scan(opts = {}) returning {file:, line:, match:, cwe:, severity:},

then re-run Factory on a fixture.

Pitfalls

target tree.

Verification

output_dir exists with HTML/JSON (or the results hash is non-nil) and

the answer cites counts or concrete findings from that artefact.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.