Code review dangerous sinks

From NoorQureshi/security-skills · View interactive version

Code review dangerous sinks is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Grep-ready dangerous function/sink catalog per language for fast code review. Load when reviewing source in PHP, Python, JavaScript/Node, Java, Ruby, Go, .NET/C# and you need the exact functions that cause RCE/SQLi/SSRF/traversal/deserialization. Signals: "dangerous functions", "sinks", grepping a c

How to use this skill

Skill file

Dangerous sinks by language (grep catalog)

When it applies

You're reading source and want the fastest path to bugs: grep every dangerous sink, then trace

each hit's argument back to user input.

Why it works

A small set of functions cause most severe bugs (command/code exec, SQL, deserialization, file

access, SSRF). Enumerating them turns review into "find the sink → prove the source".

Sinks to grep (trace the argument to a user source)

os.system subprocess.*(shell=True) os.popen · Node child_process.exec execSync · Java

Runtime.exec ProcessBuilder · Ruby ` system exec backticks %x() · Go exec.Command`.

PHP eval assert create_function preg_replace/e, Ruby eval send.

raw path — grep raw, .query(, String.format near SQL).

XMLDecoder, PHP unserialize, Ruby Marshal.load YAML.load, .NET BinaryFormatter`.

archive extractors (zip-slip).

HttpClient` taking a user URL.

Method

rg -n "os\.system|subprocess|shell_exec|eval\(|unserialize|pickle\.loads|readObject|render_template_string"

then for each hit trace the argument. Pair with semgrep --config auto for dataflow.

Gotchas

References

OWASP Code Review Guide; GTFOBins (for the exec side); Semgrep registry.

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.