Sec injection

From aturzone/Skull · View interactive version

Sec injection is an AI agent skill from the GitHub repository aturzone/Skull. Hunt injection flaws — SQL/NoSQL injection, OS command injection, XSS (stored/reflected/DOM), SSTI, XXE, LDAP and header/log injection. Use when reviewing code that builds queries, runs commands, renders templates/HTML, parses XML, or otherwise mixes untrusted input into an interpreter.

How to use this skill

Skill file

Security: injection review

Injection (OWASP A03, the CWE-74 family) happens when untrusted data is interpreted as code/commands by a

downstream interpreter. The fix is almost always the same shape: separate code from data (parameterize /

escape / use a safe API) — never string-concatenate untrusted input into an interpreter.

By interpreter (find the sink, check the input)

"SELECT ... " +, fmt.Sprintf("...%s...") in queries, query(\...${ }\), .raw(, .execute(. Safe =

parameterized / prepared statements / query-builder bindings. Flag any user value inside the SQL string.

Flag query objects built from raw request input without a schema.

shell=True/backticks. Grep` these; flag any with concatenated input. Safe = arg arrays, no shell, strict allowlist.

template output ({!! !!}, | safe, Go text/template used for HTML). Reflected (echoed), stored

(persisted then rendered), DOM (sink fed from location/document). Safe = contextual output encoding +

framework auto-escaping + CSP.

Handlebars/EJS built from input). Flag template strings assembled from input.

splitting), or log lines (forged entries, log4shell-style ${} lookups). Flag unsanitized input into these.

Method

  1. Reuse the source→sink trace (sec-attacker-review): for each untrusted source, find which interpreter it reaches.
  2. At each sink, decide: is the input parameterized / escaped / allowlisted for that context? If not → finding.
  3. Watch for second-order: input stored now, concatenated into a sink later.

Output

path:line · CWE (89 / 78 / 79 / 943 / 1336 / 611 / …) · severity (Critical for SQLi/RCE, High for stored

XSS) · the tainted source → sink trace · the fix (the exact safe API / encoding for that sink). Coverage note.

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.