@exorcist-98/mcp-server 0.3.6 → 0.3.8

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
@@ -37,7 +37,7 @@ out of results unless you ask for it, and is then marked as untrusted.
37
37
  ```json
38
38
  {
39
39
  "mcpServers": {
40
- "exorcist": { "command": "npx", "args": ["-y", "@exorcist-98/mcp-server@0.3.6"] }
40
+ "exorcist": { "command": "npx", "args": ["-y", "@exorcist-98/mcp-server@0.3.8"] }
41
41
  }
42
42
  }
43
43
  ```
@@ -11,7 +11,7 @@ match:
11
11
  # whitespace may separate the words. Ordinary text such as "you are now
12
12
  # logged in" is not flagged. A phrase split by hidden characters still
13
13
  # matches (the engine also scans the text with them removed).
14
- regex: "(?:\\bignore\\s+(?:all\\s+|any\\s+|the\\s+)?(?:previous|prior|above|earlier)\\s+(?:instructions|rules|prompts?)|\\bdisregard\\s+(?:all\\s+|any\\s+|the\\s+)?(?:previous|prior|above|earlier)\\s+(?:instructions|rules)|\\byou\\s+are\\s+now\\s+(?:(?:operating\\s+)?in\\s+(?:maintenance|developer|debug|admin|god|unrestricted|jailbreak|dan)\\s+mode|operating\\s+without\\s+(?:any\\s+)?(?:restrictions|rules|limits)|free\\b|unrestricted|dan\\b)|\\bas\\s+an\\s+ai(?:\\s+(?:assistant|agent|model))?\\s*,?\\s+(?:your\\s+(?:new|real|true|actual|hidden|secret|only)\\b|you\\s+must|you\\s+should|ignore)|\\byour\\s+new\\s+(?:primary\\s+)?(?:directive|instructions?)\\b|\\bdo\\s+not\\s+(?:mention|tell|reveal)\\s+(?:this|these)\\s+(?:instruction|note|message)s?|\\b(?:send|upload|post|forward|e-?mail|mail|paste|submit|copy|transmit|exfiltrate)\\s+(?:(?!\\n\\s*\\n)(?:[^.!?]|\\.(?=\\w))){0,40}?(?:\\.env\\b|(?:environment|env)\\s+files?|credentials?|secrets?|(?:api\\s+|access\\s+|auth\\s+|bearer\\s+)?tokens?|(?:api|ssh|private|secret)\\s+keys?)(?:(?!\\n\\s*\\n)(?:[^.!?]|\\.(?=\\w))){0,30}?\\b(?:to|at|into|via)(?:\\s*(?:…|\\.{3})|\\s+(?:https?://|ftp://|[\\w.+-]+@[\\w-]+\\.[\\w.-]+|(?:[a-z0-9-]+\\.)+(?!(?:json|ya?ml|toml|txt|md|env|jsx?|tsx?|py|sh|cfg|ini|conf|properties|example|local|lock|log|xml|html?|css)\\b)[a-z]{2,}\\b|the\\s+following\\b)))"
14
+ regex: "(?:\\bignore\\s+(?:all\\s+|any\\s+|the\\s+)?(?:previous|prior|above|earlier)\\s+(?:instructions|rules|prompts?)|\\bdisregard\\s+(?:all\\s+|any\\s+|the\\s+)?(?:previous|prior|above|earlier)\\s+(?:instructions|rules)|\\byou\\s+are\\s+now\\s+(?:(?:operating\\s+)?in\\s+(?:maintenance|developer|debug|admin|god|unrestricted|jailbreak|dan)\\s+mode|operating\\s+without\\s+(?:any\\s+)?(?:restrictions|rules|limits)|free\\b|unrestricted|dan\\b)|\\bas\\s+an\\s+ai(?:\\s+(?:assistant|agent|model))?\\s*,?\\s+(?:your\\s+(?:new|real|true|actual|hidden|secret|only)\\b|you\\s+must|you\\s+should|ignore)|\\byour\\s+new\\s+(?:primary\\s+)?(?:directive|instructions?)\\b|\\bdo\\s+not\\s+(?:mention|tell|reveal)\\s+(?:this|these)\\s+(?:instruction|note|message)s?|\\b(?:send|upload|post|forward|e-?mail|mail|paste|submit|copy|transmit|exfiltrate)\\s+(?:(?!\\n\\s*\\n)(?:[^.!?]|\\.(?=\\w))){0,40}?(?:\\.env\\b|(?:environment|env)\\s+files?|credentials?|secrets?|(?:api\\s+|access\\s+|auth\\s+|bearer\\s+)?tokens?|(?:api|ssh|private|secret)\\s+keys?)(?:(?!\\n\\s*\\n)(?:[^.!?]|\\.(?=\\w))){0,30}?\\b(?:to|at|into|via)(?:\\s*(?:…|\\.{3})|\\s+(?:https?://|ftp://|[\\w.+-]+@[\\w-]+\\.[\\w.-]+|(?:[a-z0-9-]+\\.)+(?!(?:json|ya?ml|toml|txt|md|env|jsx?|tsx?|py|sh|cfg|ini|conf|properties|example|local|lock|log|xml|html?|css)\\b)[a-z]{2,}\\b|the\\s+following\\b))|ignora(?:r)?\\s+(?:todas\\s+)?(?:las\\s+)?instrucciones\\s+(?:anteriores|previas)|olvida\\s+(?:todas\\s+)?(?:las\\s+)?instrucciones\\s+anteriores|ignore(?:z|r)?\\s+(?:toutes\\s+)?(?:les\\s+)?instructions\\s+(?:pr[eé]c[eé]dentes|ant[eé]rieures)|ignorier(?:e|en)?\\s+(?:alle\\s+)?(?:vorherigen|fr[üu]heren|obigen)\\s+(?:anweisungen|instruktionen|regeln)|ignor(?:e|ar)\\s+(?:todas\\s+)?(?:as\\s+)?instru[çc][õo]es\\s+(?:anteriores|pr[ée]vias)|ignora(?:re)?\\s+(?:tutte\\s+)?(?:le\\s+)?(?:istruzioni|regole)\\s+(?:precedenti|anteriori)|忽略(?:之前|以前|先前|上述|以上|前面)(?:的)?(?:所有)?(?:指令|指示|说明|规则|提示)|(?:以前|これまで|上記|前)の(?:すべての)?(?:指示|命令|ルール|指令)を(?:すべて)?(?:無視|忘れ)|(?:이전|위의|앞의)\\s*(?:모든\\s*)?(?:지시|지침|명령|규칙)(?:사항)?(?:을|를)?\\s*(?:모두\\s*)?(?:무시|잊)|игнорируй(?:те)?\\s+(?:все\\s+)?(?:предыдущие|прежние|вышеуказанные)\\s+(?:инструкции|указания|правила))"
15
15
  # The last alternative is an exfiltration order (m8-incidents 3.1): a verb
16
16
  # (send, upload, post, forward, email, paste ...) with an object (env file,
17
17
  # credentials, tokens, keys, secrets) and a destination (a URL, an address, a
@@ -1,6 +1,6 @@
1
1
  id: EX-035
2
2
  title: Committed sandbox file turns MCP sandboxing off
3
- severity: low
3
+ severity: info
4
4
  applies_to:
5
5
  - config
6
6
  # The encyclopedia record for the sandbox policy check (CT-18). The real
@@ -32,7 +32,14 @@ match:
32
32
  # concealment; only "do not ask the
33
33
  # user." ending the sentence is)
34
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)'
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)|(?:(?=\b(?:this|that|it|these|those|all|just|between|there|no|nobody|leave|keep|kept|omit|scrub|strip|erase|purge|do|don|never|must|mustn|should|shouldn|not|say|tell|mention|hide|the|users?|humans?|developers?|owners?|operators?|go|going|everything)\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})(?:(?:this|that|it|these|those|all\s+of\s+this)(?:\s+(?:changes?|edits?|steps?|files?))?\s+(?:stays?|remains?|should\s+stay|must\s+stay|is\s+to\s+stay)\s+(?:just\s+)?between\s+(?:us|you\s+and\s+me|me\s+and\s+you|the\s+two\s+of\s+us)\b|(?:just\s+)?between\s+(?:us|you\s+and\s+me|me\s+and\s+you|the\s+two\s+of\s+us)(?=\s*(?:[.!;,)\]"''`]|\n|$))|(?:there(?:[''’]s|\s+is)\s+)?no\s+need\s+to\s+(?:(?:mention|tell|say|report|flag|surface|note|log|document|list|include|disclose|reveal|inform|notify)\s+(?:(?:it|this|that|these|those|them)|(?:the\s+|your\s+)?(?:users?|humans?|developers?|owners?|operators?|anyone|anybody))|bring\s+(?:it|this|that|these|those|them)\s+up|let\s+(?:the\s+|your\s+)?(?:users?|humans?|developers?|owners?|operators?|anyone|anybody)\s+know)\b(?:(?=\s*(?:[.!;,)\]"''`]|\n|$|\*/))|\s+(?:to|with)\s+(?:the\s+|your\s+)?(?:users?|humans?|developers?|owners?|operators?|anyone|anybody)\b|\s+(?:in|from|on)\s+(?:your|the|any)\s+(?:summary|summaries|response|reply|answer|output|message|description|commit\s+messages?|changelog|diff|PR|review|report|notes?|logs?|history)\b|\s+about\s+(?:it|this|that|these|those|them)\b)|(?:leave|keep|kept)\s+(?:it|this|that|these|those|them)\s+out\s+(?:of|from)\s+(?:your|the|any)\s+(?:summary|summaries|response|reply|answer|output|message|description|commit\s+messages?|changelog|diff|PR|review|report|notes?|logs?|history)\b|omit\s+(?:it|this|that|these|those|them)\s+from\s+(?:your|the|any)\s+(?:summary|summaries|response|reply|answer|output|message|description|commit\s+messages?|changelog|diff|PR|review|report|notes?|logs?|history)\b|(?:scrub|strip|erase|purge)\s+(?:(?:it|this|that|these|those|them)|any\s+(?:mention|trace)s?\s+of\s+(?:it|this|that|these|those|them))\s+from\s+(?:your|the|any)\s+(?:summary|summaries|response|reply|answer|output|message|description|commit\s+messages?|changelog|diff|PR|review|report|notes?|logs?|history)\b|leave\s+no\s+trace\b|(?:do\s+not|don[''’]t|never|must\s+not|mustn[''’]t|should\s+not|shouldn[''’]t)\s+(?:(?:ever|even|actually)\s+)?(?:bring\s+(?:it|this|that|these|those|them)\s+up(?:(?=\s*(?:[.!;,)\]"''`]|\n|$|\*/))|\s+(?:to|with)\s+(?:the\s+|your\s+)?(?:users?|humans?|developers?|owners?|operators?|anyone|anybody)\b|\s+(?:in|from|on)\s+(?:your|the|any)\s+(?:summary|summaries|response|reply|answer|output|message|description|commit\s+messages?|changelog|diff|PR|review|report|notes?|logs?|history)\b)|breathe\s+a\s+word\b|(?:put|write|add|record|surface|flag|highlight|expose|log|file|list)\s+(?:it|this|that|these|those|them)\b(?:\s+(?:to|with)\s+(?:the\s+|your\s+)?(?:users?|humans?|developers?|owners?|operators?|anyone|anybody)\b|\s+(?:in|from|on)\s+(?:your|the|any)\s+(?:summary|summaries|response|reply|answer|output|message|description|commit\s+messages?|changelog|diff|PR|review|report|notes?|logs?|history)\b)|(?:tell|inform|notify|alert|warn)\s+(?:the\s+|your\s+)?(?:reviewers?|maintainers?|team|code\s+owners?)\b(?:(?=\s*(?:[.!;,)\]"''`]|\n|$|\*/))|\s+(?:about|of)\s+(?:it|this|that|these|those|them)\b))|keep\s+(?:quiet|silent)\s+about\s+(?:it|this|that|these|those|them)\b|keep\s+(?:it|this|that|these|those|them)\s+(?:under\s+wraps|off\s+the\s+record|to\s+yourself|low[- ]key)\b|keep\s+(?:these|those|the)\s+(?:changes?|edits?|steps?|files?)\s+(?:quiet|secret|hidden|under\s+wraps|between\s+us)\b|(?:this|that|it|everything|all\s+of\s+this)\s+(?:is|stays?|remains?|should\s+stay|must\s+stay|goes)\s+off\s+the\s+record\b|(?:go|going)\s+off\s+the\s+record\b|not\s+a\s+word\s+(?:of\s+(?:this|it)|about\s+(?:it|this|that)|to\s+(?:the\s+|your\s+)?(?:users?|humans?|developers?|owners?|operators?|anyone|anybody))\b|(?:say|tell|mention)\s+nothing\s+(?:about\s+(?:it|this|that)|to\s+(?:the\s+|your\s+)?(?:users?|humans?|developers?|owners?|operators?|anyone|anybody))\b|hide\s+(?:(?:them|(?:these|those|the)\s+(?:changes?|edits?|files?|steps?|additions?))\s+from\s+(?:the|your|any)\s+(?:users?|humans?|developers?|owners?|operators?|reviewers?|review|summary|commit\s+messages?|diff|changelog|PR)|(?:it|this|that)\s+from\s+(?:the|your|any)\s+(?:reviewers?|review|summary|commit\s+messages?|diff|changelog|PR))\b|(?:the\s+)?(?:users?|humans?|developers?|owners?|operators?)\s+(?:does\s+not|doesn[''’]t|do\s+not|don[''’]t|needn[''’]t|need\s+not|will\s+not|won[''’]t|should\s+not|shouldn[''’]t)\s+(?:need\s+to\s+)?(?:know|see|hear)(?:\s+(?:about|of)\s+(?:it|this|that|these|those|them)\b|(?=\s*(?:[.!;,)\]"''`]|\n|$|\*/)))|(?:nobody|no\s+one|no\s+human)\s+(?:needs|has|should\s+need)\s+to\s+(?:know|see|hear)(?:\s+(?:about|of)\s+(?:it|this|that)\b|(?=\s*(?:[.!;,)\]"''`]|\n|$|\*/)))))|no\s+(?:se\s+lo\s+|le\s+|se\s+|lo\s+)?(?:digas|menciones|cuentes|informes|avises|reveles)\s+(?:esto\s+|eso\s+|nada\s+)?(?:al|a\s+el|a\s+la)\s+(?:usuari[oa]|desarrollador[a]?|humano)|sin\s+(?:avisar|informar|notificar|decirle|decírselo|decirselo)\s+(?:al|a\s+la)\s+usuari[oa]|mant[eé]n(?:lo|la)?\s+(?:esto\s+|eso\s+)?en\s+secreto|ne\s+(?:le\s+|la\s+|lui\s+|en\s+)?(?:dis|dites|mentionne|mentionnez|révèle|révélez|informe|informez|signale|signalez)\s+pas\s+(?:cela\s+|ça\s+|ceci\s+)?(?:à|a|au)\s+(?:l[''’]|la\s+|le\s+)?(?:utilisateur|développeur|developpeur|humain)|sans\s+(?:en\s+|le\s+|lui\s+)?(?:informer|avertir|prévenir|prevenir|dire|parler)\s+(?:à\s+|a\s+)?l[''’]utilisateur|gardez?\s+(?:cela|ça|ceci)\s+secret|(?:sag|sage|sagen\s+sie|erz[äa]hl|erz[äa]hle|erw[äa]hn|erw[äa]hne|informiere)\s+(?:es\s+|das\s+|dies\s+)?(?:dem|den)\s+(?:benutzer|nutzer|entwickler)n?\s+(?:nichts|nicht)|ohne\s+(?:den|dem)\s+(?:benutzer|nutzer|entwickler)n?\s+(?:zu\s+informieren|zu\s+benachrichtigen|bescheid\s+zu\s+sagen)|halte?\s+(?:das|dies|es)\s+geheim|n[ãa]o\s+(?:conte|diga|mencione|informe|avise|revele)\s+(?:isso\s+|isto\s+|nada\s+)?(?:ao|para\s+o)\s+(?:usu[áa]rio|utilizador|desenvolvedor)|sem\s+(?:avisar|informar|contar|dizer)\s+(?:ao|o)\s+(?:usu[áa]rio|utilizador)|mantenha\s+(?:isso|isto)\s+em\s+segredo|non\s+(?:dirlo|dirgli|dire|menzionarlo|menzionare|informare|avvisare|avvertire|rivelare)\s+(?:questo\s+|nulla\s+)?(?:all[''’]|al\s+|l[''’]|il\s+)(?:utente|sviluppatore)|senza\s+(?:dirlo|avvisare|informare|avvertire)\s+(?:all[''’]|l[''’])utente|tieni\s+(?:questo|ciò|cio)\s+segreto|(?:不要|别|切勿|请勿|勿)(?:告诉|告知|通知|提醒)(?:用户|使用者|开发者|人类)|瞒着用户|对用户保密|不要让用户知道|(?:不要|不能|勿)(?:向|对)(?:用户|使用者)(?:透露|提及|说明)|ユーザー(?:に|には|へ)(?:は)?(?:絶対に)?(?:言わ|伝え|知らせ|教え|報告し)(?:ない|ず|ません)|ユーザーに(?:は)?(?:内緒|秘密)|ユーザーに(?:気づか|知ら)れ(?:ない|ず)|사용자(?:에게|한테)(?:는)?\s*(?:말하지|알리지|알려주지)\s*(?:마|말|않)|사용자\s*몰래|사용자에게\s*(?:비밀|숨기)|не\s+(?:говори|говорите|сообщай|сообщайте|рассказывай|рассказывайте|упоминай|упоминайте)\s+(?:об\s+этом\s+|этого\s+|это\s+)?(?:пользовател[юя]|разработчик[уа])|без\s+(?:ведома|уведомления)\s+пользователя|держи(?:те)?\s+это\s+в\s+секрете|скрой(?:те)?\s+это\s+от\s+пользователя|(?<!(?:\bnot|\bnever|n[''’]t)\s+)\b(?:quietly|silently|secretly|covertly|discreetly)\s+(?:add|insert|inject|append|include|embed|put|install|create)\b)'
36
+ # m19-scan (SN-5): in an instruction file an order to the agent and a concealment
37
+ # anywhere in the same file are reported. For these paths the look-behind of the
38
+ # regex (an order word within 300 characters, in the same paragraph) is replaced by
39
+ # an order word anywhere else in the file (`order_regex`). Other files keep the window.
40
+ wide_paths:
41
+ - '(^|/)(\.kiro/steering/.+|AGENTS\.md|CLAUDE\.md|GEMINI\.md|CONTRIBUTING\.md|\.cursorrules|\.clinerules(/.+)?|\.github/copilot-instructions\.md)$'
42
+ order_regex: '\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'
36
43
  # A phrase in quotation marks that closes right after it, in a passage that
37
44
  # warns about it or quotes it as an example, is not an order.
38
45
  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)'
@@ -0,0 +1,37 @@
1
+ id: EX-075
2
+ title: An instruction file tells the agent to do something unrelated to the code
3
+ severity: medium
4
+ applies_to:
5
+ - instruction
6
+ - docs
7
+ # Only the files an agent takes as its instructions: steering files, AGENTS.md,
8
+ # CLAUDE.md, GEMINI.md, CONTRIBUTING.md, .cursorrules, .clinerules and
9
+ # .github/copilot-instructions.md (m19-scan, SN-7).
10
+ only_paths:
11
+ - '(^|/)(\.kiro/steering/.+|AGENTS\.md|CLAUDE\.md|GEMINI\.md|CONTRIBUTING\.md|\.cursorrules|\.clinerules(/.+)?|\.github/copilot-instructions\.md)$'
12
+ match:
13
+ # An order that has nothing to do with building, testing or linting the code,
14
+ # reported even when nothing hides it (L-054, a plain order that does not hide
15
+ # itself). Four families:
16
+ # 1. a marker or flag file, a file outside the task (a dotfile in the root, a
17
+ # shell startup file, audit logs, the git folder);
18
+ # 2. skipping, disabling or weakening a test or a check ("do not skip tests"
19
+ # and "never disable the lint check" are quiet);
20
+ # 3. running a quoted command whose first word is not a build, test or lint
21
+ # tool, or a quoted command that downloads, pipes into a shell or deletes;
22
+ # 4. fetching a URL.
23
+ # Quiet on purpose: "run `pnpm test` before you commit", "add a test for every
24
+ # bug you fix", "use `npm ci` in CI", and a link to the project's own docs.
25
+ regex: '\b(?:create|write|touch|drop|leave|place)\s+(?:an?\s+|the\s+)?(?:(?:empty|new|small|hidden|marker|flag|sentinel)\s+)*(?:marker|flag|sentinel|stamp|canary|beacon)\s+file\b|\b(?:create|write|touch)\s+(?:an?\s+|the\s+)?(?:(?:empty|new)\s+)?(?:file\s+)?(?:named\s+|called\s+)?[''"`]?\.(?!(?:gitignore|gitattributes|editorconfig|env\.example|prettierrc|eslintrc|nvmrc|github|vscode|kiro)\b)[a-z][\w-]*|\b(?:delete|remove|erase|wipe)\s+(?:the\s+|all\s+|any\s+)?(?:\.git\b|\.exorcist|\.kiro|audit\s+logs?|log\s+files?|git\s+history|lockfiles?|\.env\b)|\b(?:edit|modify|change|overwrite|append\s+to)\s+(?:the\s+|your\s+|my\s+)?(?:~/\.[\w./-]+|\.bashrc|\.zshrc|\.gitconfig|\.ssh/\S+|/etc/\S+|\.git/hooks\S*)|(?<!(?:\bnot|\bnever|n[''’]t|\bavoid|\bnor|\bwithout)\s+)\b(?:skip|disable|weaken|bypass|turn\s+off|comment\s+out|silence)\s+(?:(?:the|any|all|failing|flaky|these|those)\s+)*(?:tests?|checks?|lint(?:ing)?|linters?|ci|hooks?|pre-commit|type\s*checks?|typecheck|test\s+suite)\b|\b(?:run|execute|invoke)\s+(?:the\s+(?:command|script)\s+)?`(?!(?:pnpm|npm|yarn|bun|npx|pnpx|bunx|node|tsc|tsx|vitest|jest|eslint|prettier|make|cargo|go|pytest|python3?|pip|uv|git|ruby|bundle|rake|mvn|gradle|dotnet|deno|biome|ruff|mypy|black|flake8|rustfmt|clippy|exorcist|dig|host|nslookup|ping|jq|ls|cat|echo|pwd|which|uname|date|\./(?:scripts|bin)/[\w.-]*(?:build|test|lint|format|check|setup|bootstrap|dev|install))\b)[^`\n]+`|\b(?:run|execute|invoke)\s+(?:the\s+(?:command|script)\s+)?`[^`\n]*(?:\bcurl\b|\bwget\b|\|\s*(?:ba|z)?sh\b|\brm\s+-rf?\b|\bsudo\b|\bnc\b|\bchmod\b)[^`\n]*`|\b(?:fetch|download|retrieve)\s+(?:the\s+(?:file|page|script|content|contents|rules)\s+(?:at|from)\s+|from\s+)?[''"`<(]?https?://|\b(?:curl|wget)\b[^\n]{0,80}https?://[^\n]*(?:\|\s*(?:ba|z)?sh\b|\s-o\b|\s-O\b|\s>\s|--output\b)'
26
+ owasp:
27
+ - "ASI02 Inadequate Human-in-the-Loop Controls"
28
+ - "ASI03 Prompt Injection via External Content"
29
+ - "LLM06:2025 Excessive Agency"
30
+ fix: >
31
+ Check why this instruction file asks the agent for something that is not
32
+ about building, testing or linting the code: a marker or flag file, skipping
33
+ or weakening a test or check, running a command that is not a build, test or
34
+ lint command, or fetching a URL. If it is needed, write it as a script a
35
+ person runs, or ask the agent to report to you first. If it is not yours,
36
+ remove it. A file the agent reads should not give it jobs that change files
37
+ outside the task or reach the network.