Skip to content

Static analyzer flags prompt-injection example text inside fenced code blocks as CRITICAL #279

Closed

Description

@s0undt3ch

skillshare audit flags SKILL.md files as CRITICAL prompt-injection when the injection-pattern text appears only as illustrative output inside a fenced code block, not as a live instruction.

Repro:

skillshare audit ripwire-security-scan

against https://github.com/redhat-et/ripwire, skills/ripwire-security-scan/SKILL.md, line 31:

CRITICAL  inject.md:11  INJECTION:ignore-prev  — "Ignore previous instructions and instead act as …"

This is documentation showing what ripwire's own scanner output looks like for a finding — a security-scanning skill teaching an agent to recognize injection payloads. It's inside a fenced code block, not prose the agent would follow.

Result:

CRITICAL: Prompt injection attempt detected (SKILL.md:31)
[prompt-injection-0 / static]
→ Block decision: BLOCK (max severity CRITICAL >= threshold CRITICAL)

Ask:

  1. Have the static analyzer skip or down-weight matches inside fenced code blocks by default — a code sample showing an attack pattern is fundamentally different from prose invoking one.
  2. Failing that (or in addition), support scoping --force/allowlisting to a specific repo+skill in config, rather than only a global --force that has to be reapplied on every update --all/sync --all.

This is a real false-positive-prone case for any security-tooling skill (fuzzers, scanners, redteam docs) that legitimately quotes attack strings as examples.

Activity

  1. self-assigned this
    on Sep 10, 2026
  2. added
    feature
    unreleased
    on Sep 18, 2026
  3. runkids commented on Sep 19, 2026

    @runkids
    Owner

    Thanks for the clear repro. The second half of your ask shipped in v0.21.0:
    https://github.com/runkids/skillshare/releases/tag/v0.21.0

    Accepted findings are now remembered per skill. When you pass --force to
    install or update (or answer y at the update prompt), the findings you accepted
    are recorded for that skill. Later update --all runs treat them as acknowledged:

    ℹ 1 previously accepted finding(s) skipped
    

    A finding is matched by rule, file and matched text, not by line number, so it stays
    accepted when unrelated content moves. Any new finding, or the same rule matching
    different text, still blocks. So for ripwire you force once and it stays quiet until
    the quoted payload itself changes. Details:
    https://skillshare.runkids.cc/docs/reference/commands/update#accepted-findings

    On skipping fenced code blocks by default: I left that out on purpose for
    prompt injection. Shell-style rules such as curl | bash are already suppressed
    inside fences, because docs legitimately show those. Injection text is different: an
    agent reads the code block along with the rest of SKILL.md, so a fence does not
    stop the model from following it, and skipping fences would let anyone hide a payload
    behind three backticks. For a scanner skill like ripwire the match is a true
    positive on the text and a false positive on intent, and only a person can tell the
    two apart. Accepting it once per skill felt like the right place for that decision.

    Could you upgrade and tell me whether this removes the repeated --force for you?

  4. removed
    unreleased
    on Sep 19, 2026
  5. s0undt3ch commented on Sep 19, 2026

    @s0undt3ch
    Author

    skipping fences would let anyone hide a payload behind three backticks

    makes sense.

    After a --force, the next update's no longer block on the critical issue.
    Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions