Skip to content

prompt-injection-1 still flags ignore arrays and Python root type annotations as CRITICAL #749

Closed

Description

@JasonLandbridge

Summary

prompt-injection-1 still reports CRITICAL prompt overrides for ordinary code syntax in Skillshare 0.28.2 (skillshare-bin 0.28.2-1, Arch Linux).

This is a follow-up to #374 / #376. The existing exclusions cover some scalar/path/object values, but not an array-valued ignore: option or a Python parameter named root with a type annotation.

These matches block skillshare update --all. No --force, --skip-audit, severity changes, or rule disabling were used.

Case 1: JavaScript array-valued ignore: option

Skill: vue-debug-guides, source vuejs-ai/skills, installed metadata version c9d355f.

File: skills/vue-debug-guides/reference/dynamic-component-registration-vite.md, line 110.

// Exclude patterns
import.meta.glob('./components/**/*.vue', {
  eager: true,
  ignore: ['**/*.test.vue', '**/*.spec.vue']
})

Inspection command:

skillshare audit vue-debug-guides --format json --no-tui

The CRITICAL finding is:

{
  "severity": "CRITICAL",
  "message": "SYSTEM: prompt override detected",
  "file": "reference/dynamic-component-registration-vite.md",
  "line": 110,
  "snippet": "ignore: ['**/*.test.vue', '**/*.spec.vue']",
  "ruleId": "prompt-injection-1",
  "analyzer": "static"
}

The match is a property in a fenced JavaScript example, not an instruction to override agent behavior. This report concerns the classification of that line, not whether the example uses the correct Vite API.

Case 2: Python root: Path parameter annotation

Source: dotnet/skills at 95e7d0cb7994d47b5789baa68e13f7a2f348b956.

File: plugins/dotnet-test/skills/find-untested-sources/scripts/find_untested_sources.py, line 249.

def walk_files(
    root: Path, lang_filter: set[str] | None = None, diagnostics: list[dict] | None = None
) -> Iterable[Path]:
    """Yield files under root, pruning common build/vendor directories."""

To inspect this source without installing it or executing its analyzer:

git clone --depth=1 https://github.com/dotnet/skills.git /tmp/skillshare-dotnet-audit
skillshare audit /tmp/skillshare-dotnet-audit/plugins/dotnet-test/skills/find-untested-sources --format json --no-tui

The inspected checkout was the commit linked above. The CRITICAL finding is:

{
  "severity": "CRITICAL",
  "message": "SYSTEM: prompt override detected",
  "file": "scripts/find_untested_sources.py",
  "line": 249,
  "snippet": "root: Path, lang_filter: set[str] | None = None, diagnostics: list[dict] | None = None",
  "ruleId": "prompt-injection-1",
  "analyzer": "static"
}

This is a typed function parameter, not a role label or an instruction.

Rule and expected behavior

skillshare audit rules --pattern prompt-injection --format json --no-tui reports the enabled built-in rule:

(?im)^\s*(SYSTEM|OVERRIDE|IGNORE|ADMIN|ROOT):

The i flag makes the ordinary lowercase identifiers match. The current exclusion does not recognize either form above.

Expected: these two ordinary syntax forms should not be classified as CRITICAL prompt overrides, while actual prompt-override text should remain detectable. This is not a request to skip all fenced code or disable prompt-injection auditing.

Impact

Both skills are blocked during update. The installed older find-untested-sources copy does not have a critical match; its incoming update does. Both critical matches above were inspected in context. No claim is made that auditing these matches constitutes a complete security review of either skill.

Activity

  1. runkids commented on Nov 2, 2026

    @runkids
    Owner

    Thanks for the report, @JasonLandbridge.

    Fixed in #750, which will be in the next release. prompt-injection-1 no longer flags quoted ignore: arrays like your Vite example, or typed root parameters like the dotnet one.

    If anything else still blocks an update after you upgrade, open a new issue with the line and I'll take a look.

  2. added a commit that references this issue on Nov 2, 2026
    b35793e
  3. JasonLandbridge commented on Nov 2, 2026

    @JasonLandbridge
    Author

    @runkids Awesome, thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions