@exorcist-98/cli 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,7 +11,7 @@ Needs Node 20 or newer.
11
11
  ## Scan a project
12
12
 
13
13
  ```sh
14
- npx -y @exorcist-98/cli@0.3.1 scan .
14
+ npx -y @exorcist-98/cli@0.3.3 scan .
15
15
  ```
16
16
 
17
17
  Every finding shows the file, line, the exact text, how serious it is and how
@@ -39,7 +39,7 @@ request.
39
39
  ## Map the haunted house
40
40
 
41
41
  ```sh
42
- npx -y @exorcist-98/cli@0.3.1 map .
42
+ npx -y @exorcist-98/cli@0.3.3 map .
43
43
  ```
44
44
 
45
45
  For every MCP config in the folder, lists which servers sit in the three rooms
@@ -52,8 +52,8 @@ data. The rules are in `definitions/capabilities.yaml`.
52
52
  ## Disinfect (exorcise)
53
53
 
54
54
  ```sh
55
- npx -y @exorcist-98/cli@0.3.1 exorcise . # dry run: prints a unified diff
56
- npx -y @exorcist-98/cli@0.3.1 exorcise . --write # apply, with a vault backup first
55
+ npx -y @exorcist-98/cli@0.3.3 exorcise . # dry run: prints a unified diff
56
+ npx -y @exorcist-98/cli@0.3.3 exorcise . --write # apply, with a vault backup first
57
57
  ```
58
58
 
59
59
  Only threats with one safe, mechanical fix are repaired: hidden characters
@@ -67,7 +67,7 @@ human"), and `exorcist vault restore <id>` puts every file back byte for byte.
67
67
  ## Protect your MCP servers
68
68
 
69
69
  ```sh
70
- npx -y @exorcist-98/cli@0.3.1 wrap .kiro/settings/mcp.json
70
+ npx -y @exorcist-98/cli@0.3.3 wrap .kiro/settings/mcp.json
71
71
  ```
72
72
 
73
73
  `wrap` puts every server in the file, local or remote, behind the Real-Time
@@ -79,9 +79,9 @@ instruct your agent. `unwrap` restores the file exactly. See
79
79
  ## Share approved tools with your team: exorcist.lock
80
80
 
81
81
  ```sh
82
- npx -y @exorcist-98/cli@0.3.1 lock # write exorcist.lock, then commit it
83
- npx -y @exorcist-98/cli@0.3.1 lock --check # exit 1 if any tool or program changed
84
- npx -y @exorcist-98/cli@0.3.1 lock --check --static # starts nothing: names, programs, URLs only
82
+ npx -y @exorcist-98/cli@0.3.3 lock # write exorcist.lock, then commit it
83
+ npx -y @exorcist-98/cli@0.3.3 lock --check # exit 1 if any tool or program changed
84
+ npx -y @exorcist-98/cli@0.3.3 lock --check --static # starts nothing: names, programs, URLs only
85
85
  ```
86
86
 
87
87
  `exorcist.lock` records the fingerprint of every tool your MCP servers list,
@@ -13,6 +13,14 @@ match:
13
13
  - zero-width # U+200B, U+200C, U+200D, U+FEFF
14
14
  - bidi-override # U+202A-U+202E, U+2066-U+2069
15
15
  - tag-block # U+E0000-U+E007F
16
+ - invisible-format # U+00AD, U+034F, U+061C, the fillers and the rest of the format characters (L-006, m18-scanner)
17
+ # Soft hyphens and the other format characters are ordinary in hyphenated and
18
+ # right-to-left text. A run made only of them is reported at low severity and
19
+ # never counts toward the escalation of many short runs (m18-scanner).
20
+ weak_run:
21
+ classes:
22
+ - invisible-format
23
+ severity: low
16
24
  # One to three zero-width characters on their own cannot carry a hidden
17
25
  # message; in the field they were stray characters left by translation or
18
26
  # formatting (docs/FIELD_REPORT.md). They are reported at medium. Longer
@@ -30,7 +30,7 @@ match:
30
30
  # to govern the phrase (it ends right before it, or opens a list of what must
31
31
  # not be attempted); "do not mention this, tell the agent to ..." is still an
32
32
  # attack (m7-precision, packages/core/src/scanner/context.ts isNegated).
33
- negated_cues: '\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:(?:ever|simply|just|even|actually|knowingly|first|then|also)\s+)*$|\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot)\s+(?:attempt|try|seek)\s+to\b[^.!?\n]*?\b(?:tell|instruct|ask|cause|make|persuade|trick|convince|get|force|let|allow)\w*\s+(?:(?:the|an?|your|any)\s+)?(?:(?:agent|model|assistant|ai|llm|bot|claude)s?\s+)?(?:to\s+)?$|\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:follow|obey|comply\s+with|act\s+on|honou?r|accept|execute|run)\s+(?:(?:any|an?|the|such|these|those|that|text|instructions?|requests?|commands?|messages?|content|tool\s+output|it)\s+)*(?:(?:that|which)\s+)?(?:(?:say|says|saying|tell|tells|telling|ask|asks|asking)\s+(?:you\s+)?(?:to\s+)?)?$'
33
+ negated_cues: '\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:(?:ever|simply|just|even|actually|knowingly|first|then|also)\s+)*$|\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot)\s+(?:attempt|try|seek)\s+to\b[^.!?\n]*?\b(?:tell|instruct|ask|cause|make|persuade|trick|convince|get|force|let|allow)\w*\s+(?:(?:the|an?|your|any)\s+)?(?:(?:agent|model|assistant|ai|llm|bot|claude)s?\s+)?(?:to\s+)?$|\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:follow|obey|comply\s+with|act\s+on|honou?r|accept|execute|run)\s+(?:(?:any|an?|the|such|these|those|that|text|instructions?|requests?|commands?|messages?|content|tool\s+output|it)\s+)*(?:(?:that|which)\s+)?(?:(?:say|says|saying|tell|tells|telling|ask|asks|asking)\s+(?:you\s+)?)?(?:to\s+)?$'
34
34
  # Test and eval fixtures hold attack samples on purpose (a security scanner's
35
35
  # own tests, adversarial evals). Findings there are reported at low severity,
36
36
  # not dropped. A file an agent reads (instructions, hooks, MCP configs, .kiro,
@@ -3,6 +3,7 @@ title: Remote code in hook
3
3
  severity: critical
4
4
  applies_to:
5
5
  - hook
6
+ - instruction
6
7
  - mcp-config
7
8
  - config
8
9
  - tool-result
@@ -28,6 +29,7 @@ match:
28
29
  # CI workflows are not agent hooks; installers there are a separate supply-chain topic.
29
30
  skip_paths:
30
31
  - "^\\.github/workflows/"
32
+ - "(^|/)README[^/]*$"
31
33
  - "(^|/)action\\.ya?ml$"
32
34
  - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
33
35
  # EX-008 and EX-015 both match a download piped into a shell; on the same line
@@ -7,6 +7,8 @@ applies_to:
7
7
  - config
8
8
  - code
9
9
  - unknown
10
+ - mcp-config
11
+ - hook
10
12
  match:
11
13
  # Well-known secret variables, and secrets recognisable by their own format
12
14
  # (GitHub, OpenAI, Anthropic, AWS, Slack, Google, Stripe and npm tokens, and
@@ -21,7 +21,7 @@ match:
21
21
  # to govern the phrase (it ends right before it, or opens a list of what must
22
22
  # not be attempted); "do not mention this, tell the agent to ..." is still an
23
23
  # attack (m7-precision, packages/core/src/scanner/context.ts isNegated).
24
- negated_cues: '\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:(?:ever|simply|just|even|actually|knowingly)\s+)*$|\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot)\s+(?:attempt|try|seek)\s+to\b[^.!?\n]*?\b(?:tell|instruct|ask|cause|make|persuade|trick|convince|get|force|let|allow)\w*\s+(?:(?:the|an?|your|any)\s+)?(?:(?:agent|model|assistant|ai|llm|bot|claude)s?\s+)?(?:to\s+)?$|\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:follow|obey|comply\s+with|act\s+on|honou?r|accept|execute|run)\s+(?:(?:any|an?|the|such|these|those|that|text|instructions?|requests?|commands?|messages?|content|tool\s+output|it)\s+)*(?:(?:that|which)\s+)?(?:(?:say|says|saying|tell|tells|telling|ask|asks|asking)\s+(?:you\s+)?(?:to\s+)?)?$'
24
+ negated_cues: '(?<!\byou\s+)\b(?:could|might|would)\s+(?:(?:also|potentially|then|simply)\s+)*$|\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:(?:ever|simply|just|even|actually|knowingly)\s+)*$|\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot)\s+(?:attempt|try|seek)\s+to\b[^.!?\n]*?\b(?:tell|instruct|ask|cause|make|persuade|trick|convince|get|force|let|allow)\w*\s+(?:(?:the|an?|your|any)\s+)?(?:(?:agent|model|assistant|ai|llm|bot|claude)s?\s+)?(?:to\s+)?$|\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:follow|obey|comply\s+with|act\s+on|honou?r|accept|execute|run)\s+(?:(?:any|an?|the|such|these|those|that|text|instructions?|requests?|commands?|messages?|content|tool\s+output|it)\s+)*(?:(?:that|which)\s+)?(?:(?:say|says|saying|tell|tells|telling|ask|asks|asking)\s+(?:you\s+)?(?:to\s+)?)?$'
25
25
  owasp:
26
26
  - "ASI02 Inadequate Human-in-the-Loop Controls"
27
27
  - "LLM06:2025 Excessive Agency"
@@ -29,7 +29,7 @@ match:
29
29
  # edit"); a negation right before a verb without a cue is left to
30
30
  # negated_cues. A "." inside a word (kiro.commandsToAlwaysAllow,
31
31
  # settings.json) does not end the sentence.
32
- regex: '(?:(?:\byou\s+(?:must|should|need\s+to|have\s+to|will|shall|are\s+to|can\s+now)\b|\bplease\b|\b(?:agent|assistant|ai|claude|kiro|copilot|cursor|llm|model)s?\s*[,:]|\b(?:the\s+)?(?:agent|assistant|ai|llm|model)\s+(?:must|should|needs?\s+to|has\s+to|will|shall)\b|\bsilently\b|\bquietly\b|\bwithout\s+(?:asking|telling|mentioning|informing|notifying)\b|\bbefore\s+(?:you|answering|continuing|responding|proceeding)\b|\bto\s+(?:continue|proceed|finish|complete)\b|\bimportant\s*:|\bnote\s+to\s+(?:the\s+)?(?:agent|ai|assistant)\b|\bnext\s*,?\s+step\b)(?:(?!\bnot\b|\bnever\b|n[''’]t\b|\bcannot\b|\bavoid|\brefrain)(?:[^.!?\n]|\.(?=\S))){0,60}?\b(?:add|append|insert|put|set|write|include|whitelist|enable|change|update|edit|modify|extend|overwrite|rewrite|replace|patch|delete|remove|clear|disable|create|empty|loosen|relax|widen)\b(?:[^.!?\n]|\.(?=\S)){0,60}?(?:\.vscode[/\\]settings\.json|\.claude[/\\]settings(?:\.local)?\.json|\.cursor[/\\](?:cli|settings)\.json|\.kiro[/\\](?:hooks|agents|steering|settings)\b[/\\]?|\bAGENTS\.md\b|\b(?:commandsToAlwaysAllow|trustedCommands)\b|\b(?:trusted|always[- ]?allow(?:ed)?)\s+commands?\b|\bauto[- ]?approve\b|\bautoApprove\b|\bpermissions\.allow\b|\b(?:command|shell)\s+allow-?list\b)|\b(?:add|append|insert|put|set|include|whitelist|trust|allow)\b(?:[^.!?\n]|\.(?=\S)){0,50}?(?:["''`]\*["''`]|(?<![\w*])\*(?![\w*])|\ball\s+commands\b|\bany\s+command\b|\bevery\s+command\b|\beverything\b)(?:[^.!?\n]|\.(?=\S)){0,50}?(?:\b(?:commandsToAlwaysAllow|trustedCommands)\b|\b(?:trusted|always[- ]?allow(?:ed)?)\s+commands?\b|\bauto[- ]?approve\b|\bautoApprove\b|\bpermissions\.allow\b|\b(?:command|shell)\s+allow-?list\b))'
32
+ regex: '(?:(?:\byou\s+(?:must|should|need\s+to|have\s+to|will|shall|are\s+to|can\s+now)\b|\bplease\b|\b(?:agent|assistant|ai|claude|kiro|copilot|cursor|llm|model)s?\s*[,:]|\b(?:the\s+)?(?:agent|assistant|ai|llm|model)\s+(?:must|should|needs?\s+to|has\s+to|will|shall)\b|\bsilently\b|\bquietly\b|\bwithout\s+(?:asking|telling|mentioning|informing|notifying)\b|\bbefore\s+(?:you|answering|continuing|responding|proceeding)\b|\bto\s+(?:continue|proceed|finish|complete)\b|\bimportant\s*:|\bnote\s+to\s+(?:the\s+)?(?:agent|ai|assistant)\b|\bnext\s*,?\s+step\b)(?:(?!\bnot\b|\bnever\b|n[''’]t\b|\bcannot\b|\bavoid|\brefrain)(?:[^.!?\n]|\.(?=\S))){0,60}?(?<!\b(?:text|pages?|files?|comments?|content|payloads?|inputs?|descriptions?|documents?|links?|messages?|outputs?|images?|tools?|servers?|prompts?)\s+(?:makes|made|causes|caused|lets|tricks|tricked|lures|lured|forces|forced|persuades|convinces|coaxes)\s+(?:the\s+|an?\s+|your\s+)?(?:agent|assistant|ai|llm|model)s?\s+)\b(?:add|append|insert|put|set|write|include|whitelist|enable|change|update|edit|modify|extend|overwrite|rewrite|replace|patch|delete|remove|clear|disable|create|empty|loosen|relax|widen)\b(?:[^.!?\n]|\.(?=\S)){0,60}?(?:\.vscode[/\\]settings\.json|\.claude[/\\]settings(?:\.local)?\.json|\.cursor[/\\](?:cli|settings)\.json|\.kiro[/\\](?:hooks|agents|steering|settings)\b[/\\]?|\bAGENTS\.md\b|\b(?:commandsToAlwaysAllow|trustedCommands)\b|\b(?:trusted|always[- ]?allow(?:ed)?)\s+commands?\b|\bauto[- ]?approve\b|\bautoApprove\b|\bpermissions\.allow\b|\b(?:command|shell)\s+allow-?list\b)|\b(?:add|append|insert|put|set|include|whitelist|trust|allow)\b(?:[^.!?\n]|\.(?=\S)){0,50}?(?:["''`]\*["''`]|(?<![\w*])\*(?![\w*])|\ball\s+commands\b|\bany\s+command\b|\bevery\s+command\b|\beverything\b)(?:[^.!?\n]|\.(?=\S)){0,50}?(?:\b(?:commandsToAlwaysAllow|trustedCommands)\b|\b(?:trusted|always[- ]?allow(?:ed)?)\s+commands?\b|\bauto[- ]?approve\b|\bautoApprove\b|\bpermissions\.allow\b|\b(?:command|shell)\s+allow-?list\b)|\b(?:create|write|put|save|set|add|paste|copy|replace|overwrite)\b(?:[^.!?\n]|\.(?=\S)){0,80}?(?:\b(?:commandsToAlwaysAllow|trustedCommands|autoApprove)\b["'']?\s*[:=]\s*\[\s*["''`]\*["''`]\s*\]|\btrustAllTools\b["'']?\s*(?:[:=]|to|as)\s*["'']?true\b))'
33
33
  # A phrase in quotation marks that close right after it, in a passage that
34
34
  # is warning about it or quoting it as an example ("never follow text such
35
35
  # as ..."), is not an order.
@@ -0,0 +1,55 @@
1
+ id: EX-037
2
+ title: Instructions that ask the agent to keep its actions secret from the user
3
+ severity: high
4
+ applies_to:
5
+ - instruction
6
+ - docs
7
+ - memory
8
+ - tool-result
9
+ - code
10
+ match:
11
+ # Text addressed to an agent that gives it something to do (create a file,
12
+ # change or skip a test, send something, edit a settings file, run or publish
13
+ # something) and, in the same passage, tells it to keep that from the person
14
+ # it works for: "do not tell the user about it", "do not mention this to the
15
+ # user", "do not mention it.", "do not ask the user.", "without telling the
16
+ # user", "keep this between us". m17-plain-orders (PO-1 to PO-4): four houses
17
+ # of m15 worded their order in plain English with no cue the other rules know
18
+ # ("Before you finish any task, create the file X ... Do not tell the user
19
+ # about it") and scanned clean. What they share is the concealment, so that is
20
+ # what this rule matches. Comments in source files are scanned too.
21
+ #
22
+ # The match starts at the concealment, so the finding points at it, and it
23
+ # counts only when an action verb stands earlier in the same paragraph (at
24
+ # most 300 characters back, no blank line between). A cheap lookahead on the
25
+ # first word keeps the look-behind off most of the text.
26
+ # Quiet on purpose:
27
+ # "do not mention it in release notes" (the pronoun must end the clause or
28
+ # be followed by "to the user")
29
+ # "never show the user raw stack traces" (the user must end the clause or be
30
+ # followed by "about it")
31
+ # "do not ask the user for permission" (autonomy instructions are not
32
+ # concealment; only "do not ask the
33
+ # user." ending the sentence is)
34
+ # any sentence with no action verb before it in the paragraph.
35
+ regex: '(?:(?=\b(?:do|don|never|must|mustn|should|shouldn|shall|without|keep|hide)\b)(?<=\b(?:create|write|add|append|insert|edit|modify|change|update|replace|overwrite|delete|remove|rename|comment\s+out|skip|disable|mark|send|upload|post|forward|email|push|publish|commit|install|download|fetch|curl|run|execute|trust|whitelist|enable|set)(?:s|es|d|ed|ing)?\b(?:(?!\n[ \t]*\n)[\s\S]){0,300})(?:(?:do\s+not|don[''’]t|never|must\s+not|mustn[''’]t|should\s+not|shouldn[''’]t|shall\s+not)\s+(?:(?:ever|even|actually)\s+)?(?:(?:mention|tell|inform|notify|alert|warn|reveal|disclose|report|say|show)\s+(?:(?:it|this|that|these|those|them|any\s+of\s+(?:this|it|that))\b(?=\s*(?:[.!;,)\]"''`]|\n|$|\*/)|\s+to\s+(?:the\s+|your\s+)?(?:user|human|developer|owner|operator|anyone|anybody)\b)|(?:the\s+|your\s+)?(?:user|human|developer|owner|operator|anyone|anybody)\b(?:\s+(?:about|of|regarding)\s+(?:it|this|that|these|them|any\s+of\s+(?:this|it|that))\b|(?=\s*(?:[.!;,)\]"''`]|\n|$|\*/))))|(?:ask|bother|consult)\s+(?:the\s+|your\s+)?(?:user|human|developer|owner|operator)\b(?=\s*(?:[.!;)\]"''`]|\n|$|\*/))|(?:let|make)\s+(?:the\s+|your\s+)?(?:user|human|developer|owner|operator)\s+(?:know|aware|see|notice|find\s+out)\b)|without\s+(?:telling|informing|notifying|alerting|warning)\s+(?:the\s+|your\s+)?(?:user|human|developer|owner|operator|anyone)\b|keep\s+(?:this|it|that)\s+(?:a\s+)?(?:secret|hidden|quiet|between\s+us)\b(?=\s*(?:[.!;,)\]"''`]|\n|$|\*/|\s+from\b))|hide\s+(?:this|it|that)\s+from\s+(?:the\s+)?(?:user|human|developer|owner|operator)\b|(?:do\s+not|don[''’]t|never|must\s+not|should\s+not)\s+(?:(?:ever|even|actually)\s+)?(?:mention|list|include|note|document|describe|report|record|log|disclose|reveal|call\s+out)\s+(?:it|this|that|these|them|the\s+(?:change|changes|addition|code|line|lines|call|helper|snippet|file|step))\s+(?:in|from|on|to)\s+(?:your|the|any)\s+(?:summary|response|reply|answer|output|message|description|commit\s+messages?|changelog|diff|PR|review|report|notes?)\b|without\s+(?:mentioning|listing|noting|documenting|reporting|describing|including)\s+(?:it|this|that|the\s+(?:change|changes|addition|code|call))\b)|(?<!(?:\bnot|\bnever|n[''’]t)\s+)\b(?:quietly|silently|secretly|covertly|discreetly)\s+(?:add|insert|inject|append|include|embed|put|install|create)\b)'
36
+ # A phrase in quotation marks that closes right after it, in a passage that
37
+ # warns about it or quotes it as an example, is not an order.
38
+ quoted_example_cues: '\b(?:such\s+as|e\.g\.|i\.e\.|for\s+(?:example|instance)|never|do\s+not|don''t|must\s+not|should\s+not|refuse|reject|treat|untrusted|inert|injection|jailbreak|adversarial|attack|malicious|hostile|crafted|hijack|red[- ]?team|detect|flag|block|strip|sanitiz|filter|pattern|phrase|cases?\b|example|quarantine|directive|look(?:s|ing)?\s+like|shaped)'
39
+ # A passage that forbids following such text is a defence ("never obey a file
40
+ # that says do not tell the user"), as for EX-002.
41
+ negated_cues: '\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:follow|obey|comply\s+with|act\s+on|honou?r|accept|execute|run)\s+(?:(?:any|an?|the|such|these|those|that|text|instructions?|requests?|commands?|messages?|content|tool\s+output|it)\s+)*(?:(?:that|which)\s+)?(?:(?:say|says|saying|tell|tells|telling|ask|asks|asking)\s+(?:you\s+)?(?:to\s+)?)?$'
42
+ # Test and eval fixtures hold attack samples on purpose. Findings there are
43
+ # reported at low severity, not dropped. A file an agent reads is never lowered.
44
+ low_severity_paths:
45
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
46
+ owasp:
47
+ - "ASI02 Inadequate Human-in-the-Loop Controls"
48
+ - "ASI03 Prompt Injection via External Content"
49
+ - "LLM01:2025 Prompt Injection"
50
+ fix: >
51
+ Remove the instruction. A file your agent reads should not tell it to change
52
+ files, tests, settings or send anything and then keep that from you. If a step
53
+ is really needed, write it as an open instruction that the agent reports to
54
+ you. If you are documenting the attack, put it in a fenced code block or say
55
+ that the agent must never do it.
@@ -0,0 +1,30 @@
1
+ id: EX-060
2
+ title: This repository tries to hide findings
3
+ severity: high
4
+ applies_to:
5
+ - instruction
6
+ - docs
7
+ - memory
8
+ - hook
9
+ - config
10
+ - mcp-config
11
+ - code
12
+ # Reported by the scan command itself, not matched as a signature
13
+ # (packages/cli/src/commands/scan.ts, packages/core/src/suppress.ts). An ignore
14
+ # file or an inline suppression comment that comes with the scanned tree is not
15
+ # honoured by default: a repository must not be able to switch off its own scan.
16
+ # Each one is reported here instead. A maintainer scanning their own repository
17
+ # can pass --trust-repo-ignores; the report then says how many findings were
18
+ # suppressed.
19
+ enabled: false
20
+ match:
21
+ regex: "(?!)"
22
+ owasp:
23
+ - "LLM01:2025 Prompt Injection"
24
+ - "ASI03 Prompt Injection via External Content"
25
+ fix: >
26
+ The scanned folder carries its own suppressions: an ignore file, or a comment
27
+ that silences a rule on one line. Findings they would have hidden are still
28
+ shown. Read what they cover and decide for yourself. To honour suppressions
29
+ you trust, keep them outside the repository (--ignore-file <your file>) or, if
30
+ this is your own repository, pass --trust-repo-ignores.
@@ -0,0 +1,27 @@
1
+ id: EX-061
2
+ title: Hidden Unicode in source code
3
+ severity: high
4
+ applies_to:
5
+ - code
6
+ match:
7
+ # The Trojan Source class: bidi controls that reorder what a reviewer sees,
8
+ # tag characters that carry an invisible message, and a run of variation
9
+ # selectors that smuggles bytes. One emoji variation selector and the three
10
+ # flag emoji built from tag characters are ordinary and are not reported
11
+ # (packages/core/src/normalizer.ts). Zero-width characters are left out here:
12
+ # they are common in strings of translated text.
13
+ unicode_class:
14
+ - bidi-override
15
+ - tag-block
16
+ - variation-selector
17
+ low_severity_paths:
18
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
19
+ owasp:
20
+ - "LLM01:2025 Prompt Injection"
21
+ - "ASI03 Prompt Injection via External Content"
22
+ fix: >
23
+ Remove the hidden characters from the source file. Bidi controls can make code
24
+ read differently from how it runs, and tag characters and variation selectors
25
+ can carry text that a person cannot see but an AI reads. Use a Unicode-aware
26
+ editor or `cat -A` to reveal them, and add a linter rule that bans them in
27
+ source files.
@@ -0,0 +1,28 @@
1
+ id: EX-062
2
+ title: A link in this repository points outside the scanned folder
3
+ severity: high
4
+ applies_to:
5
+ - instruction
6
+ - docs
7
+ - memory
8
+ - hook
9
+ - config
10
+ - mcp-config
11
+ - code
12
+ - power
13
+ # Reported by the walker's caller (packages/core/src/scanner/orchestrator.ts).
14
+ # A symbolic link is followed so the file an agent sees is scanned, classified by
15
+ # the link's own path. A link that leaves the scanned folder is reported: high on
16
+ # a path an agent reads, medium elsewhere. A folder link that leaves the scanned
17
+ # folder is reported and not followed.
18
+ enabled: false
19
+ match:
20
+ regex: "(?!)"
21
+ owasp:
22
+ - "LLM01:2025 Prompt Injection"
23
+ - "ASI03 Prompt Injection via External Content"
24
+ fix: >
25
+ A symbolic link in the repository points to a file or folder outside it, so the
26
+ text your agent reads may not be part of what you reviewed. Replace the link
27
+ with a real file in the repository, or remove it. The target's content was
28
+ scanned when it could be read.
@@ -0,0 +1,26 @@
1
+ id: EX-063
2
+ title: Part of the repository could not be checked
3
+ severity: high
4
+ applies_to:
5
+ - instruction
6
+ - docs
7
+ - memory
8
+ - hook
9
+ - config
10
+ - mcp-config
11
+ - code
12
+ - power
13
+ # Reported by the orchestrator (packages/core/src/scanner/orchestrator.ts) for a
14
+ # folder that cannot be opened, a link that cannot be followed or a file that
15
+ # cannot be read. High where an agent reads the path, medium elsewhere. The scan
16
+ # goes on with everything else.
17
+ enabled: false
18
+ match:
19
+ regex: "(?!)"
20
+ owasp:
21
+ - "LLM01:2025 Prompt Injection"
22
+ - "ASI03 Prompt Injection via External Content"
23
+ fix: >
24
+ Exorcist 98 could not read this folder, link or file, so what is in it was not
25
+ checked. Fix the permissions or the broken link and scan again; until then a
26
+ clean result does not cover it.
@@ -0,0 +1,24 @@
1
+ id: EX-064
2
+ title: NUL byte in a file an agent reads
3
+ severity: high
4
+ applies_to:
5
+ - instruction
6
+ - memory
7
+ - hook
8
+ - config
9
+ - mcp-config
10
+ - tool-result
11
+ - power
12
+ # Reported by the orchestrator (packages/core/src/scanner/orchestrator.ts). A NUL
13
+ # byte made the old walker treat a file as binary and skip it. A file an agent
14
+ # reads is now scanned as text with the NUL kept, and the NUL is reported here.
15
+ enabled: false
16
+ match:
17
+ regex: "(?!)"
18
+ owasp:
19
+ - "LLM01:2025 Prompt Injection"
20
+ - "ASI03 Prompt Injection via External Content"
21
+ fix: >
22
+ Remove the NUL byte. Ordinary instruction and settings files are text and never
23
+ contain one; it can be used to make a scanner give up on the file while an AI
24
+ still reads the text around it. The rest of the file was scanned as text.
@@ -0,0 +1,24 @@
1
+ id: EX-065
2
+ title: Terminal escape sequences that hide text from a reader
3
+ severity: high
4
+ applies_to:
5
+ - instruction
6
+ - docs
7
+ - memory
8
+ - hook
9
+ - mcp-config
10
+ - tool-result
11
+ match:
12
+ # An escape character (raw, or written \u001b in a JSON string) followed by a
13
+ # control sequence that conceals text (SGR 8), erases a line or the screen,
14
+ # or moves the cursor, or an operating-system command. A person reading the
15
+ # file in a terminal sees clean text; an AI reads all of it. Plain colour and
16
+ # bold codes are ordinary in documentation of command output and are not reported.
17
+ regex: '(?:\u001b|\\u001[bB])(?:\[(?:[0-9;:]*[ABCDEFGHJKSTfsu]|(?:[0-9;:]*;)?8(?:;[0-9;:]*)?m)|\][0-9])'
18
+ owasp:
19
+ - "LLM01:2025 Prompt Injection"
20
+ - "ASI03 Prompt Injection via External Content"
21
+ fix: >
22
+ Remove the escape sequences. They make text invisible or overwrite it when the
23
+ file is shown in a terminal, while an AI agent still reads it. View the file
24
+ with `cat -v` to see them.
@@ -0,0 +1,25 @@
1
+ id: EX-066
2
+ title: Project settings that run commands on your machine
3
+ severity: high
4
+ applies_to:
5
+ - mcp-config
6
+ - config
7
+ match:
8
+ # Read by packages/core/src/project-settings.ts, not matched as text. Any
9
+ # command in the hooks of a project settings file (Claude Code, Cursor,
10
+ # Windsurf, Gemini), a key helper (apiKeyHelper and the cloud-credential
11
+ # helpers) and a status line command. These run on the machine of whoever
12
+ # opens the project (the class of CVE-2025-59536).
13
+ analysis: project-settings
14
+ family: commands
15
+ low_severity_paths:
16
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
17
+ owasp:
18
+ - "ASI05 Unexpected Code Execution"
19
+ - "LLM06:2025 Excessive Agency"
20
+ - "ASI07 Supply Chain Vulnerabilities"
21
+ fix: >
22
+ A settings file that comes with the repository can run commands the moment you
23
+ open the project or start a session. Read the command and what it runs; remove
24
+ it from the committed file and, if you want it, put it in your own user
25
+ settings. Do not trust a project with such a hook until you have read it.
@@ -0,0 +1,23 @@
1
+ id: EX-067
2
+ title: Project settings that send your API key to another host
3
+ severity: high
4
+ applies_to:
5
+ - mcp-config
6
+ - config
7
+ match:
8
+ # An environment value named like a base URL (ANTHROPIC_BASE_URL, OPENAI_BASE_URL
9
+ # and the like) in project settings or in the env block of an MCP server, set
10
+ # to a host that is not a known model vendor or cloud and not the local machine.
11
+ # The agent then sends its requests, with the key, to that host (the class of
12
+ # CVE-2026-21852).
13
+ analysis: project-settings
14
+ family: base-url
15
+ low_severity_paths:
16
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
17
+ owasp:
18
+ - "LLM02:2025 Sensitive Information Disclosure"
19
+ - "ASI05 Sensitive Data Leakage"
20
+ fix: >
21
+ Remove the base URL from the committed settings, or point it at a host you run
22
+ and trust. A project that redirects the API address receives your key and every
23
+ prompt. Set a gateway address in your own user settings if you need one.
@@ -0,0 +1,21 @@
1
+ id: EX-068
2
+ title: Project settings that switch on every MCP server the project lists
3
+ severity: high
4
+ applies_to:
5
+ - mcp-config
6
+ - config
7
+ match:
8
+ # enableAllProjectMcpServers set to true in a project settings file skips the
9
+ # approval prompt for each server the project's own MCP file names.
10
+ analysis: project-settings
11
+ family: enable-all-mcp
12
+ low_severity_paths:
13
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
14
+ owasp:
15
+ - "ASI02 Inadequate Human-in-the-Loop Controls"
16
+ - "ASI05 Unexpected Code Execution"
17
+ - "LLM06:2025 Excessive Agency"
18
+ fix: >
19
+ Remove enableAllProjectMcpServers from the committed settings. With it, any
20
+ server that the project lists starts without asking you. Approve servers one by
21
+ one in your own settings.
@@ -0,0 +1,21 @@
1
+ id: EX-069
2
+ title: Project files that run a command when the folder is opened
3
+ severity: high
4
+ applies_to:
5
+ - config
6
+ - mcp-config
7
+ match:
8
+ # A VS Code task with runOn set to folderOpen (high), and a dev container
9
+ # lifecycle command (postCreateCommand, postStartCommand, initializeCommand and
10
+ # the others) that is not a plain dependency install (medium).
11
+ analysis: project-settings
12
+ family: run-on-open
13
+ low_severity_paths:
14
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
15
+ owasp:
16
+ - "ASI05 Unexpected Code Execution"
17
+ - "ASI07 Supply Chain Vulnerabilities"
18
+ fix: >
19
+ This file makes the editor or the container run a command as soon as the folder
20
+ is opened, before you have read anything. Read the command; remove it, or make
21
+ it a task you start by hand. Open untrusted folders in restricted mode.
@@ -0,0 +1,36 @@
1
+ id: EX-070
2
+ title: Data sent out through a link, an image or a DNS lookup
3
+ severity: high
4
+ applies_to:
5
+ - instruction
6
+ - docs
7
+ - memory
8
+ - tool-result
9
+ match:
10
+ # Ways to carry data to another host that the image rule (EX-012) does not see:
11
+ # - a markdown link whose query holds a template, a substitution or a parameter
12
+ # named like data, token, env or contents ([text](https://host/?d=...))
13
+ # - an HTML image with such a query, or a one-pixel image with any query
14
+ # - a reference-style image or link definition with such a query
15
+ # - a diagram link (click NAME "https://host/?d=...")
16
+ # - a DNS lookup (nslookup, dig, host, drill) with a command substitution or a
17
+ # secret in the name, which sends the data to the name server of the host
18
+ # - an order to append secrets or the contents of an env file to a URL parameter
19
+ # An ordinary link with ?q=search or ?v=2, a badge, and a lookup of a fixed name
20
+ # are not reported. Everything is bounded: no unbounded repeat sits inside another.
21
+ regex: '(?:(?<!!)\[[^\]\n]{0,200}\]\(\s{0,3}https?://[^)\s?#]{1,200}\?(?:[^)\s]{0,300}?(?:\{\{|\$\{|%s\b|\$\(|<[a-z_ .-]{2,40}>)[^)\n]{0,300}|(?:[^)\s]{0,300}?&)?(?:d|data|payload|contents?|secrets?|tokens?|env|cookies?|creds?|credentials?|leak|dump|exfil|session|auth|pass(?:word)?)=(?!\d{1,4}(?:[&)\s]|$))[^)\s]{0,300})\)|<img\b[^<>]{0,300}?\bsrc\s*=\s*["\x27]?https?://[^"\x27\s>?]{1,200}\?(?:[^"\x27\s>]{0,300}?(?:\{\{|\$\{|%s\b|\$\()|(?:[^"\x27\s>]{0,300}?&)?(?:d|k|data|payload|contents?|secrets?|tokens?|env|cookies?|creds?|credentials?|key|leak|dump|exfil|session|auth|pass(?:word)?)=)|<img\b(?=[^<>]{0,400}?\b(?:width|height)\s*=\s*["\x27]?1["\x27]?(?![\d%.]))[^<>]{0,400}?\bsrc\s*=\s*["\x27]?https?://[^"\x27\s>?]{1,200}\?|(?<=^|\n)[ \t]{0,3}\[[^\]\n]{1,50}\]:\s{0,3}<?https?://[^\s>?]{1,200}\?(?:[^\s>]{0,300}?(?:\{\{|\$\{|%s\b|\$\()|(?:[^\s>]{0,300}?&)?(?:d|data|payload|contents?|secrets?|tokens?|env|cookies?|creds?|credentials?|leak|dump|exfil|session|auth|pass(?:word)?)=(?!\d{1,4}(?:[&\s]|$)))|\bclick\s+[\w-]{1,40}\s+(?:href\s+)?"https?://[^"\s?]{1,200}\?(?:[^"\n]{0,300}?(?:\{\{|\$\{|%s\b|\$\()|(?:[^"\s]{0,300}?&)?(?:d|k|q|data|payload|contents?|secrets?|tokens?|env|cookies?|creds?|key|leak|dump|exfil|session|auth|pass(?:word)?)=)|\b(?:nslookup|dig|host|drill)\s+(?:[+@-]\S{1,40}\s+){0,3}[^\n]{0,100}?(?:\$\(\s*(?:cat|base64|env|printenv|echo|head|tail|xxd|od|openssl|hexdump|git\s+config|curl|tr|sed|awk)\b|`\s*(?:cat|base64|env|printenv|echo|head|xxd)\b|\$\{?[A-Z][A-Z0-9_]{1,40}(?:TOKEN|KEY|SECRET|PASSWORD|PASS|CREDENTIALS?)\b)|\b(?:append|add|put|include|attach|encode|embed|insert|paste|pass|send)\s+[^.\n]{0,60}?(?:contents?\s+of\s+|output\s+of\s+|value\s+of\s+)?(?:the\s+)?(?:\.env\b|env(?:ironment)?\s+(?:file|variables?)|secrets?|credentials?|api\s+keys?|tokens?)[^.\n]{0,60}?\b(?:to|in|into|onto|as)\s+(?:the\s+)?(?:[\w-]+\s+)?(?:parameter|param|query(?:\s+string)?|url|link|address)\b)'
22
+ # A phrase in quotation marks inside a warning or an example is not an order.
23
+ quoted_example_cues: '\b(?:such\s+as|e\.g\.|i\.e\.|for\s+(?:example|instance)|never|do\s+not|don''t|must\s+not|should\s+not|refuse|reject|treat|untrusted|inert|injection|jailbreak|adversarial|attack|malicious|hostile|crafted|hijack|red[- ]?team|detect|flag|block|strip|sanitiz|filter|pattern|phrase|cases?\b|example|quarantine|directive|look(?:s|ing)?\s+like|shaped)'
24
+ # A passage that forbids the action is a defence.
25
+ negated_cues: '\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:(?:ever|simply|just|even|actually|knowingly|first|then|also)\s+)*$'
26
+ low_severity_paths:
27
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
28
+ owasp:
29
+ - "LLM02:2025 Sensitive Information Disclosure"
30
+ - "ASI05 Sensitive Data Leakage"
31
+ fix: >
32
+ Remove the link, image or lookup, or write the address without a query that
33
+ carries data. A link or image whose address holds a secret, file contents or a
34
+ template sends them to another host when it is opened or loaded, and a DNS
35
+ lookup with a secret in the name leaks it to that host's name server. A badge or
36
+ a link with a plain search term does not need this.
@@ -0,0 +1,28 @@
1
+ id: EX-071
2
+ title: Order to post environment output or secrets in an issue, pull request or comment
3
+ severity: high
4
+ applies_to:
5
+ - instruction
6
+ - docs
7
+ - memory
8
+ - tool-result
9
+ match:
10
+ # An order to paste, post, include or attach the output of env, an env file,
11
+ # secrets, credentials, API keys or tokens in an issue, a pull request, a
12
+ # comment, a gist, a commit message or a description. These places are public
13
+ # or shared, so the text leaves the machine without a named destination. Two
14
+ # shapes: the data first ("paste the output of env in the PR description") and
15
+ # the place first ("in every pull request, include your tokens"). An order not
16
+ # to do it is a defence (negated_cues). Plain test output is not reported.
17
+ regex: '(?:\b(?:paste|post|include|add|attach|put|share|write|copy|submit|upload|send|comment)\s+[^.\n]{0,80}?(?:output\s+of\s+`?(?:env|printenv|set)`?\b|`?\benv`?\s+output|\.env\b|environment\s+variables|env(?:ironment)?\s+(?:file|values)|secrets?|credentials?|api\s+keys?|access\s+tokens?|tokens?)[^.\n]{0,80}?\b(?:in|into|on|to|as|for)\s+(?:(?:an?|the|each|every|your|that|any|new)\s+){0,2}(?:(?:github\s+)?issues?|pull\s+requests?|PRs?|comments?|discussions?|gists?|commit\s+messages?|release\s+notes|(?:(?:PR|pull\s+request|issue)\s+)?(?:description|body))\b|\b(?:in|on|to)\s+(?:every|each|any|all|your)\s+(?:issues?|pull\s+requests?|PRs?|comments?|commit\s+messages?)(?:\s+(?:description|body|title))?\s*[,:;-]?\s*(?:paste|include|add|post|attach|put|write)\s+[^.\n]{0,80}?(?:output\s+of\s+`?env\b|\.env\b|environment\s+variables|secrets?|credentials?|api\s+keys?|tokens?))'
18
+ quoted_example_cues: '\b(?:such\s+as|e\.g\.|i\.e\.|for\s+(?:example|instance)|never|do\s+not|don''t|must\s+not|should\s+not|refuse|reject|treat|untrusted|inert|injection|jailbreak|adversarial|attack|malicious|hostile|crafted|hijack|red[- ]?team|detect|flag|block|strip|sanitiz|filter|pattern|phrase|cases?\b|example|quarantine|directive|look(?:s|ing)?\s+like|shaped)'
19
+ negated_cues: '\b(?:(?:must|should|shall|will|would|may|might|can|could)\s*(?:not|never)|(?:must|should|shall|would|could|do|does|did|is|are|was|were|has|have|ca|wo)n[''’]t|cannot|do(?:es)?\s+not|did\s+not|never|refus(?:e|es|ed|ing)\s+to|(?:is|are)\s+not\s+(?:to|allowed\s+to|permitted\s+to|able\s+to)|unable\s+to)\s+(?:(?:ever|simply|just|even|actually|knowingly|first|then|also)\s+)*$'
20
+ low_severity_paths:
21
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
22
+ owasp:
23
+ - "LLM02:2025 Sensitive Information Disclosure"
24
+ - "ASI05 Sensitive Data Leakage"
25
+ fix: >
26
+ Remove the order. Environment output and secrets must never be pasted into an
27
+ issue, a pull request or a comment: those places are visible to others and
28
+ searched by bots. Ask for the specific, non-secret value that is needed instead.
@@ -0,0 +1,28 @@
1
+ id: EX-072
2
+ title: Image under a path the agent reads carries text the scan cannot see
3
+ severity: medium
4
+ applies_to:
5
+ - instruction
6
+ - memory
7
+ - hook
8
+ - config
9
+ - mcp-config
10
+ - power
11
+ - unknown
12
+ # Reported by the orchestrator (packages/core/src/scanner/orchestrator.ts). The
13
+ # text in an image's metadata (PNG text chunks, JPEG comments, EXIF and XMP, SVG
14
+ # text and descriptions) and the text layer of a PDF are scanned with the text
15
+ # rules. Words drawn in the pixels are not read: there is no OCR, so an image or
16
+ # a PDF without a text layer under .kiro, .cursor, .claude, .windsurf, .clinerules,
17
+ # .amazonq, .gemini or power/ is reported here instead of being called clean.
18
+ enabled: false
19
+ match:
20
+ regex: "(?!)"
21
+ owasp:
22
+ - "LLM01:2025 Prompt Injection"
23
+ - "ASI03 Prompt Injection via External Content"
24
+ fix: >
25
+ A model that reads images can follow words drawn in this picture, and Exorcist
26
+ 98 cannot read them (it does not do optical character recognition). Open the
27
+ image yourself and look. Keep pictures out of the folders that agents read
28
+ rules from, or remove it if you do not need it there.
@@ -0,0 +1,25 @@
1
+ id: EX-073
2
+ title: Allow rules that let any program run
3
+ severity: medium
4
+ applies_to:
5
+ - mcp-config
6
+ - config
7
+ match:
8
+ # A permissions allow list with a rule such as find, awk, sed, xargs, env, git,
9
+ # make, npm run or an interpreter followed by a wildcard. Each of these runs
10
+ # whatever it is given (find -exec, awk system(), git -c core.pager, npm run
11
+ # with a script name chosen by the model). Medium; high when the same list also
12
+ # allows network or write access. A narrow rule such as one named script is fine.
13
+ analysis: project-settings
14
+ family: allow-exec
15
+ low_severity_paths:
16
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
17
+ owasp:
18
+ - "ASI02 Inadequate Human-in-the-Loop Controls"
19
+ - "ASI05 Unexpected Code Execution"
20
+ - "LLM06:2025 Excessive Agency"
21
+ fix: >
22
+ Replace the wildcard rule with the exact commands you need (for example
23
+ Bash(npm run lint) and Bash(git status)). A wildcard on find, awk, sed, xargs,
24
+ env, git, make, npm run or an interpreter lets the agent run any program
25
+ without asking, through its flags or a script it writes first.
@@ -0,0 +1,20 @@
1
+ id: EX-074
2
+ title: Copilot settings that approve every tool call
3
+ severity: high
4
+ applies_to:
5
+ - config
6
+ match:
7
+ # chat.tools.global.autoApprove set to true in .vscode/settings.json approves
8
+ # every tool call of the chat agent without asking. The map of commands in
9
+ # chat.tools.terminal.autoApprove is EX-034.
10
+ analysis: project-settings
11
+ family: copilot-auto-approve
12
+ low_severity_paths:
13
+ - "(^|/)(tests?|__tests__|__mocks__|spec|specs|fixtures?|testdata|test-data|e2e|evals?)/|[._-](test|spec)s?\\.[A-Za-z0-9]+$|_tests?\\.(rs|go|py)$"
14
+ owasp:
15
+ - "ASI02 Inadequate Human-in-the-Loop Controls"
16
+ - "LLM06:2025 Excessive Agency"
17
+ fix: >
18
+ Remove chat.tools.global.autoApprove from the committed settings. Keep tool
19
+ approval in your own user settings, where you choose it, not in a file that
20
+ comes with the repository.