agentleFS
aradmanamnaoonaradmanamnaoon/vibe-coding-skills/skills/security/injection-risk-auditor/SKILL.md

injection-risk-auditor

Skill0 starsChanged 19 days agoMITView on GitHub

Trace untrusted input into SQL, shell, template, path, and other interpreter sinks. Use for security review or changes involving dynamic queries/commands.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No interpreter-like sink or external input is involved.

    line 16
  2. Distinctive:

    Read applicable repository instructions before edits.

    line 20
  3. Distinctive:

    Check whether the sink uses parameterized/bound APIs appropriate to that interpreter.

    line 34
  4. Distinctive:

    Use non-destructive synthetic payloads only.

    line 46
  5. Distinctive:

    Test payloads remain local/synthetic.

    line 52
  6. Distinctive:

    If framework behavior is uncertain, consult authoritative docs or create an isolated local test instead of assuming escaping semantics.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Find controllable input reaching executable interpreters without safe parameterization or validation.

When to activate

Code constructs queries, commands, templates, file paths, expressions, or dynamic code from external input.

When not to activate

No interpreter-like sink or external input is involved.

Preconditions

  • Read applicable repository instructions before edits.
  • Preserve unrelated working-tree changes and establish a baseline when the workflow can modify code.
  • Identify which tools and environments are actually available; do not claim unavailable checks ran.

Required inputs

  • Input entry points
  • Potential interpreter sinks
  • Framework/ORM/query APIs

Workflow

  1. Identify trust-boundary inputs and the interpreter-like sinks reachable from changed code.
  2. Trace data transformations rather than matching sink names alone.
  3. Check whether the sink uses parameterized/bound APIs appropriate to that interpreter.
  4. Flag string concatenation/interpolation where attacker-controlled syntax can survive.
  5. Build benign malicious test payloads that prove whether syntax crosses the boundary; do not target external systems.
  6. Fix with binding, allowlists, or structural APIs before considering escaping.
  7. Re-run positive and negative tests after remediation.

Relevant tools

Static search/dataflow tool when available, local test harness, framework docs.

Safety restrictions

Use non-destructive synthetic payloads only; never exploit systems outside the authorized project.

Validation

  • A finding includes source-to-sink evidence, not only a suspicious string.
  • Remediation removes syntax control and preserves valid inputs.
  • Test payloads remain local/synthetic.

Expected output

  • Source-to-sink trace
  • Exploitability evidence
  • Remediation
  • Regression tests

Failure handling

If framework behavior is uncertain, consult authoritative docs or create an isolated local test instead of assuming escaping semantics.

Completion criteria

The skill is complete only when every applicable validation item above has observed evidence or is explicitly marked not executed with the concrete blocker. Do not replace missing evidence with confidence language.

Research mapping

This skill was selected from research problems: P016. See research/vibe-coding-problems.md and research/problem-evidence.csv in the Vibe Coding Skills repository.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.