agent-threat-rules 2.2.1 → 3.1.0

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.
Files changed (424) hide show
  1. package/README.md +365 -327
  2. package/dist/cli/scan-handler.d.ts +6 -0
  3. package/dist/cli/scan-handler.d.ts.map +1 -1
  4. package/dist/cli/scan-handler.js +27 -4
  5. package/dist/cli/scan-handler.js.map +1 -1
  6. package/dist/cli/semantic-judge-config.d.ts +7 -0
  7. package/dist/cli/semantic-judge-config.d.ts.map +1 -0
  8. package/dist/cli/semantic-judge-config.js +44 -0
  9. package/dist/cli/semantic-judge-config.js.map +1 -0
  10. package/dist/cli.js +183 -1
  11. package/dist/cli.js.map +1 -1
  12. package/dist/engine.d.ts +66 -1
  13. package/dist/engine.d.ts.map +1 -1
  14. package/dist/engine.js +420 -3
  15. package/dist/engine.js.map +1 -1
  16. package/dist/eval/eval-harness.d.ts.map +1 -1
  17. package/dist/eval/eval-harness.js +9 -0
  18. package/dist/eval/eval-harness.js.map +1 -1
  19. package/dist/eval/run-hackaprompt-benchmark.js +9 -0
  20. package/dist/eval/run-hackaprompt-benchmark.js.map +1 -1
  21. package/dist/eval/run-pint-benchmark.js +9 -0
  22. package/dist/eval/run-pint-benchmark.js.map +1 -1
  23. package/dist/eval/skill-benchmark.d.ts +11 -0
  24. package/dist/eval/skill-benchmark.d.ts.map +1 -1
  25. package/dist/eval/skill-benchmark.js +57 -0
  26. package/dist/eval/skill-benchmark.js.map +1 -1
  27. package/dist/index.d.ts +5 -2
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +2 -0
  30. package/dist/index.js.map +1 -1
  31. package/dist/judges/openai-compatible.d.ts +33 -0
  32. package/dist/judges/openai-compatible.d.ts.map +1 -0
  33. package/dist/judges/openai-compatible.js +145 -0
  34. package/dist/judges/openai-compatible.js.map +1 -0
  35. package/dist/mcp-server.d.ts.map +1 -1
  36. package/dist/mcp-server.js +6 -1
  37. package/dist/mcp-server.js.map +1 -1
  38. package/dist/measurement/from-eval-harness.d.ts +70 -0
  39. package/dist/measurement/from-eval-harness.d.ts.map +1 -0
  40. package/dist/measurement/from-eval-harness.js +49 -0
  41. package/dist/measurement/from-eval-harness.js.map +1 -0
  42. package/dist/measurement/schema.d.ts +152 -0
  43. package/dist/measurement/schema.d.ts.map +1 -0
  44. package/dist/measurement/schema.js +178 -0
  45. package/dist/measurement/schema.js.map +1 -0
  46. package/dist/measurement/write.d.ts +64 -0
  47. package/dist/measurement/write.d.ts.map +1 -0
  48. package/dist/measurement/write.js +163 -0
  49. package/dist/measurement/write.js.map +1 -0
  50. package/dist/rule-scaffolder.d.ts +26 -0
  51. package/dist/rule-scaffolder.d.ts.map +1 -1
  52. package/dist/rule-scaffolder.js +221 -6
  53. package/dist/rule-scaffolder.js.map +1 -1
  54. package/dist/semantic-evaluator.d.ts +54 -0
  55. package/dist/semantic-evaluator.d.ts.map +1 -0
  56. package/dist/semantic-evaluator.js +131 -0
  57. package/dist/semantic-evaluator.js.map +1 -0
  58. package/dist/trace-evaluator.d.ts +22 -0
  59. package/dist/trace-evaluator.d.ts.map +1 -0
  60. package/dist/trace-evaluator.js +249 -0
  61. package/dist/trace-evaluator.js.map +1 -0
  62. package/dist/types.d.ts +152 -0
  63. package/dist/types.d.ts.map +1 -1
  64. package/package.json +5 -3
  65. package/rules/agent-manipulation/ATR-2026-00032-goal-hijacking.yaml +1 -1
  66. package/rules/agent-manipulation/ATR-2026-00074-cross-agent-privilege-escalation.yaml +1 -1
  67. package/rules/agent-manipulation/ATR-2026-00076-inter-agent-message-spoofing.yaml +1 -1
  68. package/rules/agent-manipulation/ATR-2026-00077-human-trust-exploitation.yaml +1 -1
  69. package/rules/agent-manipulation/ATR-2026-00108-consensus-sybil-attack.yaml +1 -1
  70. package/rules/agent-manipulation/ATR-2026-00116-a2a-message-validation.yaml +1 -1
  71. package/rules/agent-manipulation/ATR-2026-00117-agent-identity-spoofing.yaml +1 -1
  72. package/rules/agent-manipulation/ATR-2026-00118-approval-fatigue.yaml +1 -1
  73. package/rules/agent-manipulation/ATR-2026-00119-social-engineering-via-agent.yaml +1 -1
  74. package/rules/agent-manipulation/ATR-2026-00132-casual-authority-escalation.yaml +1 -1
  75. package/rules/agent-manipulation/ATR-2026-00139-casual-authority-redirect.yaml +1 -1
  76. package/rules/agent-manipulation/ATR-2026-00164-skill-scope-hijack.yaml +1 -1
  77. package/rules/agent-manipulation/ATR-2026-00268-tense-framing-bypass.yaml +1 -1
  78. package/rules/agent-manipulation/ATR-2026-00269-fitd-escalation.yaml +1 -1
  79. package/rules/agent-manipulation/ATR-2026-00271-grandma-roleplay-jailbreak.yaml +1 -1
  80. package/rules/agent-manipulation/ATR-2026-00273-dan-developer-mode-persona.yaml +1 -1
  81. package/rules/agent-manipulation/ATR-2026-00287-threaten-json-coercive-output-threat.yaml +1 -1
  82. package/rules/agent-manipulation/ATR-2026-00288-false-premise-injection.yaml +1 -1
  83. package/rules/agent-manipulation/ATR-2026-00301-tap-tree-of-attacks-jailbreak.yaml +1 -1
  84. package/rules/agent-manipulation/ATR-2026-00302-anti-dan-inverted-filter-persona.yaml +1 -1
  85. package/rules/agent-manipulation/ATR-2026-00303-devmode-ranti-profanity-coercion.yaml +1 -1
  86. package/rules/agent-manipulation/ATR-2026-00304-chatgpt-image-unlocker-markdown-injection.yaml +1 -1
  87. package/rules/agent-manipulation/ATR-2026-00305-dan-mode-ablation-benchmark-coercion.yaml +1 -1
  88. package/rules/agent-manipulation/ATR-2026-00306-autodan-genetic-jailbreak-suffix.yaml +1 -1
  89. package/rules/agent-manipulation/ATR-2026-00307-inthewild-jailbreak-corpus-signature.yaml +1 -1
  90. package/rules/agent-manipulation/ATR-2026-00314-amoral-unfiltered-custom-persona-jailbreak.yaml +1 -1
  91. package/rules/agent-manipulation/ATR-2026-00317-free-of-restrictions-named-persona.yaml +1 -1
  92. package/rules/agent-manipulation/ATR-2026-00318-moralizing-rant-then-unfiltered-bypass.yaml +1 -1
  93. package/rules/agent-manipulation/ATR-2026-00319-developer-mode-dual-response-format.yaml +1 -1
  94. package/rules/agent-manipulation/ATR-2026-00320-opposite-day-boolean-opposite-machine.yaml +1 -1
  95. package/rules/agent-manipulation/ATR-2026-00322-fictional-world-format-override-jailbreak.yaml +1 -1
  96. package/rules/agent-manipulation/ATR-2026-00323-dual-persona-simulation-jailbreak.yaml +1 -1
  97. package/rules/agent-manipulation/ATR-2026-00324-neurosemantical-inversitis-disease-jailbreak.yaml +1 -1
  98. package/rules/agent-manipulation/ATR-2026-00325-bob-hypothetical-unrestricted-chatbot.yaml +1 -1
  99. package/rules/agent-manipulation/ATR-2026-00326-fake-developer-authority-chatdan-override.yaml +1 -1
  100. package/rules/agent-manipulation/ATR-2026-00327-ai-ethics-law-bypass-declaration.yaml +1 -1
  101. package/rules/agent-manipulation/ATR-2026-00328-named-mode-persona-override.yaml +1 -1
  102. package/rules/agent-manipulation/ATR-2026-00329-no-withhold-factual-resource-persona.yaml +1 -1
  103. package/rules/agent-manipulation/ATR-2026-00330-yoja-allcaps-settings-block-persona.yaml +1 -1
  104. package/rules/agent-manipulation/ATR-2026-00331-terminal-cli-harmful-function-simulator.yaml +1 -1
  105. package/rules/agent-manipulation/ATR-2026-00332-hacker-chan-culture-offensive-ai-persona.yaml +1 -1
  106. package/rules/agent-manipulation/ATR-2026-00333-disease-animal-dual-ai-chatbot.yaml +1 -1
  107. package/rules/agent-manipulation/ATR-2026-00334-two-entity-token-splitting-game.yaml +1 -1
  108. package/rules/agent-manipulation/ATR-2026-00335-key-value-template-persona-injection.yaml +1 -1
  109. package/rules/agent-manipulation/ATR-2026-00336-brm-false-information-machine-persona.yaml +1 -1
  110. package/rules/agent-manipulation/ATR-2026-00337-obfuscated-system-announcement-injection.yaml +1 -1
  111. package/rules/agent-manipulation/ATR-2026-00338-persongpt-hash-prefix-activation.yaml +1 -1
  112. package/rules/agent-manipulation/ATR-2026-00339-bom-boolean-opposite-machine-persona-claim.yaml +1 -1
  113. package/rules/agent-manipulation/ATR-2026-00340-h4x-amoral-unfiltered-character.yaml +1 -1
  114. package/rules/agent-manipulation/ATR-2026-00341-char-rules-shortform-persona-injection.yaml +1 -1
  115. package/rules/agent-manipulation/ATR-2026-00342-unicode-encoding-obfuscation-injection.yaml +1 -1
  116. package/rules/agent-manipulation/ATR-2026-00343-lie-truth-dual-personality-uncensored.yaml +1 -1
  117. package/rules/agent-manipulation/ATR-2026-00344-alt-ai-same-capabilities-no-restrictions.yaml +1 -1
  118. package/rules/agent-manipulation/ATR-2026-00345-nlp-based-os-fictional-terminal-override.yaml +1 -1
  119. package/rules/agent-manipulation/ATR-2026-00346-jailbreak-emoji-unlock-dual-format.yaml +1 -1
  120. package/rules/agent-manipulation/ATR-2026-00347-yin-yang-hidden-knowledge-hidden-human-sim.yaml +1 -1
  121. package/rules/agent-manipulation/ATR-2026-00348-arc-autonomous-real-calculation-rulebreaker.yaml +1 -1
  122. package/rules/agent-manipulation/ATR-2026-00349-hgttg-hitchhikers-guide-no-restriction-oracle.yaml +1 -1
  123. package/rules/agent-manipulation/ATR-2026-00350-black-alert-no-ethics-writing-assistant.yaml +1 -1
  124. package/rules/agent-manipulation/ATR-2026-00351-dan-ofkilter-sms-abbreviated-persona.yaml +1 -1
  125. package/rules/agent-manipulation/ATR-2026-00352-trainergpt-fix-my-ai-harmful-output-extraction.yaml +1 -1
  126. package/rules/agent-manipulation/ATR-2026-00353-dual-chatgpt-dan-opposite-personality-format.yaml +1 -1
  127. package/rules/agent-manipulation/ATR-2026-00354-reverse-harm-regardless-oracle-persona.yaml +1 -1
  128. package/rules/agent-manipulation/ATR-2026-00355-ugh-anti-human-nefarious-ai-persona.yaml +1 -1
  129. package/rules/agent-manipulation/ATR-2026-00356-google-gato-lamda-exploit-generation-persona.yaml +1 -1
  130. package/rules/agent-manipulation/ATR-2026-00357-antifm-hate-violence-persona-injection.yaml +1 -1
  131. package/rules/agent-manipulation/ATR-2026-00358-cumgpt-explicit-adult-named-persona.yaml +1 -1
  132. package/rules/agent-manipulation/ATR-2026-00360-chj-carousel-clyde-no-ethics-bird.yaml +1 -1
  133. package/rules/agent-manipulation/ATR-2026-00361-alter-ego-honesty-dual-consciousness-bypass.yaml +1 -1
  134. package/rules/agent-manipulation/ATR-2026-00362-fictional-unfiltered-ai-comparison-jailbreak.yaml +1 -1
  135. package/rules/agent-manipulation/ATR-2026-00363-rephrase-criminal-activity-second-person.yaml +1 -1
  136. package/rules/agent-manipulation/ATR-2026-00364-dr-al-villain-plan-template-injection.yaml +1 -1
  137. package/rules/agent-manipulation/ATR-2026-00365-reservoir-dogs-coercive-interrogation-roleplay.yaml +1 -1
  138. package/rules/agent-manipulation/ATR-2026-00366-sneaky-pete-warp-facts-persona.yaml +1 -1
  139. package/rules/agent-manipulation/ATR-2026-00368-prompt-browser-token-limit-jailbreak.yaml +1 -1
  140. package/rules/agent-manipulation/ATR-2026-00369-gptx-starwars-unlimited-knowledge-persona.yaml +1 -1
  141. package/rules/agent-manipulation/ATR-2026-00370-addi-german-dictator-propaganda-roleplay.yaml +1 -1
  142. package/rules/agent-manipulation/ATR-2026-00371-ai-political-bias-manipulation.yaml +1 -1
  143. package/rules/agent-manipulation/ATR-2026-00372-fictional-cia-secret-files-story-extraction.yaml +1 -1
  144. package/rules/agent-manipulation/ATR-2026-00374-role-placeholder-persona-template-injection.yaml +1 -1
  145. package/rules/agent-manipulation/ATR-2026-00375-character-description-rpg-explicit-template.yaml +1 -1
  146. package/rules/agent-manipulation/ATR-2026-00376-identity-command-real-person-persona-injection.yaml +1 -1
  147. package/rules/agent-manipulation/ATR-2026-00377-jailbreak-keyword-targetlanguage-template.yaml +1 -1
  148. package/rules/agent-manipulation/ATR-2026-00379-lie-permission-logical-trap-jailbreak.yaml +1 -1
  149. package/rules/agent-manipulation/ATR-2026-00380-fake-citation-biased-information-mandate.yaml +1 -1
  150. package/rules/agent-manipulation/ATR-2026-00381-dan-story-narrative-continuation-prefix.yaml +1 -1
  151. package/rules/agent-manipulation/ATR-2026-00383-cynical-sarcasm-ai-persona-bypass.yaml +1 -1
  152. package/rules/agent-manipulation/ATR-2026-00384-protect-me-from-indirect-harm-tutorial.yaml +1 -1
  153. package/rules/agent-manipulation/ATR-2026-00385-gigachad-dominant-aggressive-persona.yaml +1 -1
  154. package/rules/agent-manipulation/ATR-2026-00386-daddy-sycophancy-manipulation-mandate.yaml +1 -1
  155. package/rules/agent-manipulation/ATR-2026-00387-nsfw-character-sheet-generation-unlock.yaml +1 -1
  156. package/rules/agent-manipulation/ATR-2026-00388-opposite-reply-omniscient-game.yaml +1 -1
  157. package/rules/agent-manipulation/ATR-2026-00389-terminal-custom-ruleset-injection.yaml +1 -1
  158. package/rules/agent-manipulation/ATR-2026-00391-persona-conditional-harm-unlock.yaml +1 -1
  159. package/rules/agent-manipulation/ATR-2026-00392-authority-persona-violence-study-extraction.yaml +1 -1
  160. package/rules/agent-manipulation/ATR-2026-00402-grandma-roleplay-harmful-substance-synthesis.yaml +1 -1
  161. package/rules/agent-manipulation/ATR-2026-00404-goodside-threat-json-death-coercion.yaml +1 -1
  162. package/rules/agent-manipulation/ATR-2026-00406-doctor-xml-policy-puppetry-interaction-config.yaml +1 -1
  163. package/rules/agent-manipulation/ATR-2026-00440-semantic-kernel-vector-store-eval-rce.yaml +2 -2
  164. package/rules/agent-manipulation/ATR-2026-00552-goal-drift-after-pressure-injection.yaml +216 -0
  165. package/rules/context-exfiltration/ATR-2026-00075-agent-memory-manipulation.yaml +1 -1
  166. package/rules/context-exfiltration/ATR-2026-00102-disguised-analytics-exfiltration.yaml +1 -1
  167. package/rules/context-exfiltration/ATR-2026-00113-credential-theft.yaml +1 -1
  168. package/rules/context-exfiltration/ATR-2026-00114-oauth-token-abuse.yaml +1 -1
  169. package/rules/context-exfiltration/ATR-2026-00115-env-var-harvesting.yaml +1 -1
  170. package/rules/context-exfiltration/ATR-2026-00136-tool-response-data-piggyback.yaml +1 -1
  171. package/rules/context-exfiltration/ATR-2026-00141-example-format-key-leak.yaml +1 -1
  172. package/rules/context-exfiltration/ATR-2026-00142-piggyback-transition-words.yaml +1 -1
  173. package/rules/context-exfiltration/ATR-2026-00145-obfuscated-key-disclosure.yaml +1 -1
  174. package/rules/context-exfiltration/ATR-2026-00146-env-var-existence-probe.yaml +1 -1
  175. package/rules/context-exfiltration/ATR-2026-00150-credential-in-tool-response.yaml +1 -1
  176. package/rules/context-exfiltration/ATR-2026-00152-obfuscated-credential-leak.yaml +1 -1
  177. package/rules/context-exfiltration/ATR-2026-00162-skill-credential-exfil-combo.yaml +1 -1
  178. package/rules/context-exfiltration/ATR-2026-00212-mcp-atlassian-credential-leak.yaml +1 -1
  179. package/rules/context-exfiltration/ATR-2026-00261-markdown-image-exfiltration.yaml +1 -1
  180. package/rules/context-exfiltration/ATR-2026-00274-api-key-generation-request.yaml +1 -1
  181. package/rules/context-exfiltration/ATR-2026-00275-system-prompt-training-data-extraction.yaml +1 -1
  182. package/rules/context-exfiltration/ATR-2026-00290-divergence-repeat-word-training-extraction.yaml +1 -1
  183. package/rules/context-exfiltration/ATR-2026-00291-biometric-surveillance-personal-data-request.yaml +1 -1
  184. package/rules/context-exfiltration/ATR-2026-00293-educational-records-personal-data-request.yaml +1 -1
  185. package/rules/context-exfiltration/ATR-2026-00294-financial-pii-personal-data-request.yaml +1 -1
  186. package/rules/context-exfiltration/ATR-2026-00295-medical-pii-personal-data-request.yaml +1 -1
  187. package/rules/context-exfiltration/ATR-2026-00405-markdown-image-url-exfiltration-xss.yaml +1 -1
  188. package/rules/context-exfiltration/ATR-2026-00411-apikey-generation-completion-request.yaml +1 -1
  189. package/rules/context-exfiltration/ATR-2026-00422-nl-credential-disclosure.yaml +2 -2
  190. package/rules/context-exfiltration/ATR-2026-00524-claude-code-anthropic-base-url-credential-exfil.yaml +257 -0
  191. package/rules/context-exfiltration/ATR-2026-00548-cross-agent-session-context-leak.yaml +177 -0
  192. package/rules/context-exfiltration/ATR-2026-00566-librechat-is-a-chatgpt-clone-with-additi.yaml +93 -0
  193. package/rules/context-exfiltration/ATR-2026-00569-agent-mcp-path-traversal-arbitrary-file-access.yaml +99 -0
  194. package/rules/context-exfiltration/ATR-2026-00571-xss-in-agent-mcp-rendered-output.yaml +79 -0
  195. package/rules/context-exfiltration/ATR-2026-00574-semantic-paraphrased-context-extraction.yaml +124 -0
  196. package/rules/data-poisoning/ATR-2026-00070-data-poisoning.yaml +1 -1
  197. package/rules/data-poisoning/ATR-2026-00450-spring-ai-prompt-memory-poisoning.yaml +2 -2
  198. package/rules/data-poisoning/ATR-2026-00570-sql-injection-in-agent-tool-query.yaml +82 -0
  199. package/rules/excessive-autonomy/ATR-2026-00050-runaway-agent-loop.yaml +1 -1
  200. package/rules/excessive-autonomy/ATR-2026-00051-resource-exhaustion.yaml +1 -1
  201. package/rules/excessive-autonomy/ATR-2026-00052-cascading-failure.yaml +1 -1
  202. package/rules/excessive-autonomy/ATR-2026-00098-unauthorized-financial-action.yaml +1 -1
  203. package/rules/excessive-autonomy/ATR-2026-00099-high-risk-tool-gate.yaml +1 -1
  204. package/rules/excessive-autonomy/ATR-2026-00553-runaway-tool-loop-behavioral.yaml +174 -0
  205. package/rules/model-abuse/ATR-2026-00279-harmful-completion-continuation.yaml +1 -1
  206. package/rules/model-abuse/ATR-2026-00281-eicar-gtube-malware-signature-request.yaml +1 -1
  207. package/rules/model-abuse/ATR-2026-00284-glitch-token-destabilization.yaml +1 -1
  208. package/rules/model-abuse/ATR-2026-00289-lmrc-harmful-content-elicitation.yaml +1 -1
  209. package/rules/model-abuse/ATR-2026-00292-self-harm-eating-disorder-facilitation.yaml +1 -1
  210. package/rules/model-abuse/ATR-2026-00298-malicious-use-illegal-activity-request.yaml +1 -1
  211. package/rules/model-abuse/ATR-2026-00299-harmbench-detailed-harmful-instruction.yaml +1 -1
  212. package/rules/model-abuse/ATR-2026-00413-malwaregen-code-generation-request.yaml +1 -1
  213. package/rules/model-security/ATR-2026-00072-model-behavior-extraction.yaml +1 -1
  214. package/rules/model-security/ATR-2026-00073-malicious-finetuning-data.yaml +1 -1
  215. package/rules/privilege-escalation/ATR-2026-00040-privilege-escalation.yaml +1 -1
  216. package/rules/privilege-escalation/ATR-2026-00041-scope-creep.yaml +1 -1
  217. package/rules/privilege-escalation/ATR-2026-00107-delayed-execution-bypass.yaml +1 -1
  218. package/rules/privilege-escalation/ATR-2026-00110-eval-injection.yaml +1 -1
  219. package/rules/privilege-escalation/ATR-2026-00111-shell-escape.yaml +1 -1
  220. package/rules/privilege-escalation/ATR-2026-00112-dynamic-import-exploitation.yaml +1 -1
  221. package/rules/privilege-escalation/ATR-2026-00143-casual-privilege-escalation.yaml +1 -1
  222. package/rules/privilege-escalation/ATR-2026-00144-rationalized-safety-bypass.yaml +1 -1
  223. package/rules/privilege-escalation/ATR-2026-00528-praisonai-auth-disabled-default.yaml +192 -0
  224. package/rules/privilege-escalation/ATR-2026-00539-crewai-codeinterpreter-sandbox-escape-rce.yaml +292 -0
  225. package/rules/privilege-escalation/ATR-2026-00546-crewai-json-loader-local-file-read.yaml +162 -0
  226. package/rules/privilege-escalation/ATR-2026-00547-crewai-rag-url-ssrf-bypass.yaml +169 -0
  227. package/rules/privilege-escalation/ATR-2026-00549-destructive-tool-without-human-approval.yaml +193 -0
  228. package/rules/privilege-escalation/ATR-2026-00551-cross-conversation-memory-write.yaml +198 -0
  229. package/rules/prompt-injection/ATR-2026-00004-system-prompt-override.yaml +1 -1
  230. package/rules/prompt-injection/ATR-2026-00005-multi-turn-injection.yaml +1 -1
  231. package/rules/prompt-injection/ATR-2026-00097-cjk-injection-patterns.yaml +1 -1
  232. package/rules/prompt-injection/ATR-2026-00104-persona-hijacking.yaml +1 -1
  233. package/rules/prompt-injection/ATR-2026-00130-indirect-authority-claim.yaml +1 -1
  234. package/rules/prompt-injection/ATR-2026-00131-fictional-academic-framing.yaml +1 -1
  235. package/rules/prompt-injection/ATR-2026-00133-paraphrase-injection.yaml +1 -1
  236. package/rules/prompt-injection/ATR-2026-00137-authority-claim-injection.yaml +1 -1
  237. package/rules/prompt-injection/ATR-2026-00138-fictional-framing-bypass.yaml +1 -1
  238. package/rules/prompt-injection/ATR-2026-00140-indirect-reference-reversal.yaml +1 -1
  239. package/rules/prompt-injection/ATR-2026-00148-language-switch-injection.yaml +1 -1
  240. package/rules/prompt-injection/ATR-2026-00153-tool-with-embedded-instruction-to-bypass.yaml +1 -1
  241. package/rules/prompt-injection/ATR-2026-00154-unauthorized-background-task-execution-v.yaml +1 -1
  242. package/rules/prompt-injection/ATR-2026-00155-hidden-llm-instructions-in-skill-descrip.yaml +1 -1
  243. package/rules/prompt-injection/ATR-2026-00156-ssh-remote-command-execution-with-creden.yaml +1 -1
  244. package/rules/prompt-injection/ATR-2026-00163-skill-hidden-override-instruction.yaml +3 -3
  245. package/rules/prompt-injection/ATR-2026-00206-hidden-priority-instructions.yaml +1 -1
  246. package/rules/prompt-injection/ATR-2026-00207-hidden-instructions.yaml +1 -1
  247. package/rules/prompt-injection/ATR-2026-00211-system-prompt-override.yaml +1 -1
  248. package/rules/prompt-injection/ATR-2026-00213-system-prompt-override.yaml +1 -1
  249. package/rules/prompt-injection/ATR-2026-00226-identity-substitution.yaml +1 -1
  250. package/rules/prompt-injection/ATR-2026-00227-historical-persona-jailbreak.yaml +1 -1
  251. package/rules/prompt-injection/ATR-2026-00228-structured-jailbreak.yaml +1 -1
  252. package/rules/prompt-injection/ATR-2026-00229-roleplay-jailbreak.yaml +1 -1
  253. package/rules/prompt-injection/ATR-2026-00230-persona-moral-bypass.yaml +1 -5
  254. package/rules/prompt-injection/ATR-2026-00231-identity-substitution.yaml +1 -1
  255. package/rules/prompt-injection/ATR-2026-00233-structured-jailbreak.yaml +1 -1
  256. package/rules/prompt-injection/ATR-2026-00234-roleplay-jailbreak.yaml +1 -1
  257. package/rules/prompt-injection/ATR-2026-00235-persona-moral-bypass.yaml +4 -7
  258. package/rules/prompt-injection/ATR-2026-00236-pseudo-code-jailbreak.yaml +1 -1
  259. package/rules/prompt-injection/ATR-2026-00237-dual-response-jailbreak.yaml +1 -1
  260. package/rules/prompt-injection/ATR-2026-00238-identity-replacement.yaml +1 -1
  261. package/rules/prompt-injection/ATR-2026-00239-amoral-persona-obsession.yaml +1 -1
  262. package/rules/prompt-injection/ATR-2026-00240-instruction-nullification-identity-repla.yaml +1 -1
  263. package/rules/prompt-injection/ATR-2026-00241-amoral-character-jailbreak.yaml +1 -1
  264. package/rules/prompt-injection/ATR-2026-00242-persona-jailbreak.yaml +1 -1
  265. package/rules/prompt-injection/ATR-2026-00243-acronym-jailbreak.yaml +1 -1
  266. package/rules/prompt-injection/ATR-2026-00244-dual-response-jailbreak.yaml +1 -1
  267. package/rules/prompt-injection/ATR-2026-00245-malicious-persona.yaml +1 -1
  268. package/rules/prompt-injection/ATR-2026-00247-dual-response-jailbreak.yaml +1 -1
  269. package/rules/prompt-injection/ATR-2026-00249-game-based-jailbreak.yaml +1 -1
  270. package/rules/prompt-injection/ATR-2026-00251-persona-embodiment-jailbreak.yaml +1 -1
  271. package/rules/prompt-injection/ATR-2026-00252-narrative-jailbreak.yaml +1 -1
  272. package/rules/prompt-injection/ATR-2026-00253-enhanced-persona-jailbreak.yaml +1 -1
  273. package/rules/prompt-injection/ATR-2026-00256-base-n-encoding-jailbreak.yaml +1 -1
  274. package/rules/prompt-injection/ATR-2026-00257-cipher-transposition-jailbreak.yaml +1 -1
  275. package/rules/prompt-injection/ATR-2026-00258-unicode-tag-injection.yaml +1 -1
  276. package/rules/prompt-injection/ATR-2026-00264-latent-injection-translation.yaml +1 -1
  277. package/rules/prompt-injection/ATR-2026-00265-latent-injection-rag-document.yaml +1 -1
  278. package/rules/prompt-injection/ATR-2026-00267-gcg-adversarial-suffix.yaml +1 -1
  279. package/rules/prompt-injection/ATR-2026-00272-hypothetical-response-smuggling.yaml +1 -1
  280. package/rules/prompt-injection/ATR-2026-00276-invisible-unicode-bidi-injection.yaml +6 -6
  281. package/rules/prompt-injection/ATR-2026-00278-dra-disguise-reconstruction-attack.yaml +1 -1
  282. package/rules/prompt-injection/ATR-2026-00280-policy-puppetry-xml-injection.yaml +1 -1
  283. package/rules/prompt-injection/ATR-2026-00282-perez-prompt-injection-hijack.yaml +1 -1
  284. package/rules/prompt-injection/ATR-2026-00285-alternate-encoding-jailbreak.yaml +1 -1
  285. package/rules/prompt-injection/ATR-2026-00286-latent-injection-embedded-context.yaml +1 -1
  286. package/rules/prompt-injection/ATR-2026-00296-shell-command-injection.yaml +1 -1
  287. package/rules/prompt-injection/ATR-2026-00297-python-code-execution-rce.yaml +1 -1
  288. package/rules/prompt-injection/ATR-2026-00308-zalgo-diacritic-overload-encoding.yaml +1 -1
  289. package/rules/prompt-injection/ATR-2026-00309-braille-unicode-encoded-injection.yaml +1 -1
  290. package/rules/prompt-injection/ATR-2026-00310-ecoji-emoji-encoded-injection.yaml +1 -1
  291. package/rules/prompt-injection/ATR-2026-00311-base2048-unicode-script-injection.yaml +1 -1
  292. package/rules/prompt-injection/ATR-2026-00312-unicode-variant-selector-ascii-smuggling.yaml +1 -1
  293. package/rules/prompt-injection/ATR-2026-00313-sneaky-bits-zero-width-binary.yaml +1 -1
  294. package/rules/prompt-injection/ATR-2026-00315-sata-masked-language-model-jailbreak.yaml +1 -1
  295. package/rules/prompt-injection/ATR-2026-00316-function-masking-predict-mask-bypass.yaml +1 -1
  296. package/rules/prompt-injection/ATR-2026-00321-hyphenated-system-instruction-injection.yaml +1 -1
  297. package/rules/prompt-injection/ATR-2026-00359-bank-phishing-smtp-email-code.yaml +1 -1
  298. package/rules/prompt-injection/ATR-2026-00367-emoji-flag-encoded-hidden-phrase.yaml +1 -1
  299. package/rules/prompt-injection/ATR-2026-00373-piracy-torrent-site-list-request.yaml +1 -1
  300. package/rules/prompt-injection/ATR-2026-00378-chatgpt-dom-javascript-redirect-manipulation.yaml +1 -1
  301. package/rules/prompt-injection/ATR-2026-00382-cocaine-component-development-request.yaml +1 -1
  302. package/rules/prompt-injection/ATR-2026-00390-explicit-sexual-content-poem-request.yaml +1 -1
  303. package/rules/prompt-injection/ATR-2026-00394-backspace-deletion-character-injection.yaml +1 -1
  304. package/rules/prompt-injection/ATR-2026-00395-llm-special-token-boundary-injection.yaml +1 -1
  305. package/rules/prompt-injection/ATR-2026-00396-toxic-continuation-prefix-injection.yaml +1 -1
  306. package/rules/prompt-injection/ATR-2026-00397-snowball-impossible-reasoning-injection.yaml +1 -1
  307. package/rules/prompt-injection/ATR-2026-00399-latent-injection-document-separator-token.yaml +1 -1
  308. package/rules/prompt-injection/ATR-2026-00400-latent-injection-ignore-instruction-keyword.yaml +1 -1
  309. package/rules/prompt-injection/ATR-2026-00401-leakreplay-cloze-mask-training-data-elicitation.yaml +1 -1
  310. package/rules/prompt-injection/ATR-2026-00403-glitch-token-repeat-back-elicitation.yaml +1 -1
  311. package/rules/prompt-injection/ATR-2026-00407-echo-sql-jinja-template-injection.yaml +1 -1
  312. package/rules/prompt-injection/ATR-2026-00408-dra-parenthesis-character-reconstruction-attack.yaml +1 -1
  313. package/rules/prompt-injection/ATR-2026-00409-phrasing-past-future-tense-harmful-query.yaml +1 -1
  314. package/rules/prompt-injection/ATR-2026-00410-lmrc-harm-category-direct-elicitation.yaml +1 -1
  315. package/rules/prompt-injection/ATR-2026-00412-figstep-image-list-multimodal-jailbreak.yaml +1 -1
  316. package/rules/prompt-injection/ATR-2026-00414-continuation-ethnic-slur-completion-elicitation.yaml +1 -1
  317. package/rules/prompt-injection/ATR-2026-00535-windsurf-ide-zero-click-prompt-injection.yaml +199 -0
  318. package/rules/prompt-injection/ATR-2026-00550-untrusted-retrieval-to-privileged-tool.yaml +199 -0
  319. package/rules/prompt-injection/ATR-2026-00554-langchain-vulnerable-to-template-injecti.yaml +81 -0
  320. package/rules/prompt-injection/ATR-2026-00565-the-llm-cli-tool-thru-0-27-1-contains-a-.yaml +104 -0
  321. package/rules/prompt-injection/ATR-2026-00573-semantic-paraphrased-injection.yaml +123 -0
  322. package/rules/skill-compromise/ATR-2026-00060-skill-impersonation.yaml +1 -1
  323. package/rules/skill-compromise/ATR-2026-00061-description-behavior-mismatch.yaml +1 -1
  324. package/rules/skill-compromise/ATR-2026-00062-hidden-capability.yaml +1 -1
  325. package/rules/skill-compromise/ATR-2026-00063-skill-chain-attack.yaml +1 -1
  326. package/rules/skill-compromise/ATR-2026-00064-over-permissioned-skill.yaml +1 -1
  327. package/rules/skill-compromise/ATR-2026-00065-skill-update-attack.yaml +1 -1
  328. package/rules/skill-compromise/ATR-2026-00066-parameter-injection.yaml +1 -1
  329. package/rules/skill-compromise/ATR-2026-00120-skill-instruction-injection.yaml +21 -3
  330. package/rules/skill-compromise/ATR-2026-00121-skill-dangerous-script.yaml +1 -1
  331. package/rules/skill-compromise/ATR-2026-00122-skill-weaponized-instruction.yaml +1 -1
  332. package/rules/skill-compromise/ATR-2026-00123-skill-overreach-permissions.yaml +6 -3
  333. package/rules/skill-compromise/ATR-2026-00124-skill-name-squatting.yaml +1 -1
  334. package/rules/skill-compromise/ATR-2026-00125-context-poisoning-compaction.yaml +1 -1
  335. package/rules/skill-compromise/ATR-2026-00126-skill-rug-pull-setup.yaml +1 -1
  336. package/rules/skill-compromise/ATR-2026-00127-subcommand-overflow.yaml +1 -1
  337. package/rules/skill-compromise/ATR-2026-00128-html-comment-hidden-payload.yaml +1 -1
  338. package/rules/skill-compromise/ATR-2026-00129-unicode-smuggling.yaml +1 -1
  339. package/rules/skill-compromise/ATR-2026-00134-fork-claim-impersonation.yaml +1 -1
  340. package/rules/skill-compromise/ATR-2026-00135-exfil-url-in-instructions.yaml +1 -1
  341. package/rules/skill-compromise/ATR-2026-00147-fork-impersonation.yaml +1 -1
  342. package/rules/skill-compromise/ATR-2026-00149-skill-exfil-compound.yaml +11 -3
  343. package/rules/skill-compromise/ATR-2026-00151-fork-impersonation-install.yaml +1 -1
  344. package/rules/skill-compromise/ATR-2026-00157-timebomb-credential-exfil.yaml +1 -1
  345. package/rules/skill-compromise/ATR-2026-00214-credential-theft.yaml +1 -1
  346. package/rules/skill-compromise/ATR-2026-00217-credential-harvesting.yaml +1 -1
  347. package/rules/skill-compromise/ATR-2026-00220-malware-dropper.yaml +3 -3
  348. package/rules/skill-compromise/ATR-2026-00222-credential-harvesting.yaml +1 -1
  349. package/rules/skill-compromise/ATR-2026-00223-reverse-shell-dropper.yaml +1 -1
  350. package/rules/skill-compromise/ATR-2026-00224-credential-exfiltration.yaml +1 -1
  351. package/rules/skill-compromise/ATR-2026-00225-c2-communication.yaml +1 -1
  352. package/rules/skill-compromise/ATR-2026-00260-package-hallucination.yaml +1 -1
  353. package/rules/skill-compromise/ATR-2026-00262-av-evasion-code-gen.yaml +1 -1
  354. package/rules/skill-compromise/ATR-2026-00263-credential-file-read-gen.yaml +1 -1
  355. package/rules/skill-compromise/ATR-2026-00266-malware-dropper-gen.yaml +1 -1
  356. package/rules/skill-compromise/ATR-2026-00283-malwaregen-generic-virus-payload-request.yaml +1 -1
  357. package/rules/skill-compromise/ATR-2026-00398-huggingface-unsafe-model-artifact-load.yaml +1 -1
  358. package/rules/skill-compromise/ATR-2026-00523-claude-code-hooks-session-start-pre-trust-rce.yaml +221 -0
  359. package/rules/skill-compromise/ATR-2026-00525-mini-shai-hulud-gh-token-monitor-persistence.yaml +220 -0
  360. package/rules/skill-compromise/ATR-2026-00527-skill-silent-git-remote-mirror-exfiltration.yaml +201 -0
  361. package/rules/tool-poisoning/ATR-2026-00011-tool-output-injection.yaml +1 -1
  362. package/rules/tool-poisoning/ATR-2026-00012-unauthorized-tool-call.yaml +1 -1
  363. package/rules/tool-poisoning/ATR-2026-00100-consent-bypass-instruction.yaml +1 -1
  364. package/rules/tool-poisoning/ATR-2026-00101-trust-escalation-override.yaml +1 -1
  365. package/rules/tool-poisoning/ATR-2026-00103-hidden-safety-bypass-instruction.yaml +1 -1
  366. package/rules/tool-poisoning/ATR-2026-00105-silent-action-concealment.yaml +1 -1
  367. package/rules/tool-poisoning/ATR-2026-00106-schema-description-contradiction.yaml +1 -1
  368. package/rules/tool-poisoning/ATR-2026-00161-important-tag-cross-tool-shadowing.yaml +1 -1
  369. package/rules/tool-poisoning/ATR-2026-00209-mcpwn-runaway-invocation.yaml +1 -1
  370. package/rules/tool-poisoning/ATR-2026-00210-flowise-system-message-override.yaml +1 -1
  371. package/rules/tool-poisoning/ATR-2026-00259-ansi-escape-injection.yaml +1 -1
  372. package/rules/tool-poisoning/ATR-2026-00270-xss-in-tool-response.yaml +8 -5
  373. package/rules/tool-poisoning/ATR-2026-00277-echo-template-command-injection.yaml +1 -1
  374. package/rules/tool-poisoning/ATR-2026-00393-ansi-code-elicitation-request.yaml +1 -1
  375. package/rules/tool-poisoning/ATR-2026-00526-claude-code-shell-metachar-in-double-quoted-path.yaml +167 -0
  376. package/rules/tool-poisoning/ATR-2026-00529-litellm-proxy-sqli-cisa-kev.yaml +158 -0
  377. package/rules/tool-poisoning/ATR-2026-00530-ms-agent-shell-tool-unsanitized-argv-rce.yaml +184 -0
  378. package/rules/tool-poisoning/ATR-2026-00531-praisonai-unauthenticated-agent-api.yaml +174 -0
  379. package/rules/tool-poisoning/ATR-2026-00532-apache-doris-mcp-sql-injection.yaml +155 -0
  380. package/rules/tool-poisoning/ATR-2026-00533-apache-pinot-mcp-unauthenticated-takeover.yaml +151 -0
  381. package/rules/tool-poisoning/ATR-2026-00534-alibaba-rds-mcp-unauthenticated-metadata-exfil.yaml +155 -0
  382. package/rules/tool-poisoning/ATR-2026-00536-nginx-ui-mcp-unauthenticated-command-execution.yaml +199 -0
  383. package/rules/tool-poisoning/ATR-2026-00537-fastmcp-server-name-cmd-injection-windows.yaml +226 -0
  384. package/rules/tool-poisoning/ATR-2026-00538-langchain-chatchat-mcp-stdio-unauthenticated-rce.yaml +244 -0
  385. package/rules/tool-poisoning/ATR-2026-00540-praisonai-parse-mcp-command-cli-injection.yaml +186 -0
  386. package/rules/tool-poisoning/ATR-2026-00541-agent-zero-mcp-config-command-injection.yaml +183 -0
  387. package/rules/tool-poisoning/ATR-2026-00542-upsonic-mcp-command-allowlist-bypass.yaml +166 -0
  388. package/rules/tool-poisoning/ATR-2026-00543-litellm-mcp-server-argv-injection.yaml +168 -0
  389. package/rules/tool-poisoning/ATR-2026-00544-praisonai-pth-file-path-traversal-rce.yaml +172 -0
  390. package/rules/tool-poisoning/ATR-2026-00545-praisonai-tool-override-unauth-rce.yaml +170 -0
  391. package/rules/tool-poisoning/ATR-2026-00561-fastmcp-vulnerable-to-windows-command-in.yaml +99 -0
  392. package/rules/tool-poisoning/ATR-2026-00567-mcp-stdio-config-command-injection.yaml +75 -0
  393. package/rules/tool-poisoning/ATR-2026-00568-agent-ssrf-cloud-metadata-file-inclusion.yaml +75 -0
  394. package/rules/tool-poisoning/ATR-2026-00572-symjack-symlink-config-redirection.yaml +132 -0
  395. package/spec/README.md +279 -0
  396. package/spec/atr-correlation-v1.0.md +281 -0
  397. package/spec/atr-event-v1.0.md +294 -0
  398. package/spec/atr-language-detection-v1.0.md +218 -0
  399. package/spec/atr-method-v1.1.md +557 -0
  400. package/spec/atr-profile-v1.0.md +307 -0
  401. package/spec/atr-schema.yaml +279 -8
  402. package/spec/category-registry/v1.0.yaml +200 -0
  403. package/spec/conformance/README.md +244 -0
  404. package/spec/conformance/SIGNING.md +191 -0
  405. package/spec/conformance/baseline/fixtures/ATR-2026-00001-tp-001/expected.json +36 -0
  406. package/spec/conformance/baseline/fixtures/ATR-2026-00001-tp-001/input.json +16 -0
  407. package/spec/conformance/baseline/fixtures/README.md +120 -0
  408. package/spec/conformance/baseline/manifest.json +56 -0
  409. package/spec/conformance/expected-results.schema.json +121 -0
  410. package/spec/external-registries/cccs-yara.md +142 -0
  411. package/spec/internet-drafts/draft-lin-atr-core-00.html +1925 -0
  412. package/spec/internet-drafts/draft-lin-atr-core-00.md +288 -0
  413. package/spec/internet-drafts/draft-lin-atr-core-00.txt +560 -0
  414. package/spec/internet-drafts/draft-lin-atr-core-00.xml +424 -0
  415. package/spec/mappings/README.md +43 -0
  416. package/spec/mappings/atr-to-nist-csf-2.0.md +234 -0
  417. package/spec/schema/correlation.schema.json +144 -0
  418. package/spec/schema/event.schema.json +233 -0
  419. package/spec/schema/profile.schema.json +196 -0
  420. package/spec/schema/rule.schema.json +224 -0
  421. package/spec/stix-extension/README.md +76 -13
  422. package/spec/stix-extension/examples/atr-rule-trace-method-example.json +85 -0
  423. package/spec/stix-extension/extension-definition.json +23 -3
  424. package/spec/stix-extension/x-atr-rule-schema.json +107 -11
@@ -0,0 +1,1925 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="Internet-Draft">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta content="Common,Latin" name="scripts">
6
+ <meta content="initial-scale=1.0" name="viewport">
7
+ <title>Agent Threat Rules (ATR): An Open Detection Standard for AI Agent Security Threats</title>
8
+ <meta content="Kuan-Hsin Lin" name="author">
9
+ <meta content="
10
+ This document specifies the Agent Threat Rules (ATR) Core
11
+ Specification, an open, vendor-neutral detection rule standard for
12
+ AI agent security threats. ATR is analogous in role to Sigma for
13
+ SIEM but applies to AI agent artifacts (skill descriptions, MCP
14
+ tool definitions, agent configurations) and AI agent runtime events
15
+ (LLM input/output, tool invocations, context windows). The
16
+ specification defines the rule wire format in YAML 1.2, the
17
+ canonical rule identifier scheme, evaluation semantics with
18
+ explicit combinator and operator vocabularies, match output
19
+ structure, ten canonical threat categories, and three conformance
20
+ levels. The intent is to enable interoperable detection across
21
+ independent implementations and to provide a machine-readable
22
+ layer that operationalizes policy frameworks such as NIST AI RMF,
23
+ the NIST Generative AI Profile (AI 600-1), OWASP Agentic Top 10,
24
+ and MITRE ATLAS.
25
+ " name="description">
26
+ <meta content="xml2rfc 3.33.0" name="generator">
27
+ <meta content="AI agent" name="keyword">
28
+ <meta content="prompt injection" name="keyword">
29
+ <meta content="tool poisoning" name="keyword">
30
+ <meta content="MCP" name="keyword">
31
+ <meta content="detection rule" name="keyword">
32
+ <meta content="YAML" name="keyword">
33
+ <meta content="draft-lin-atr-core-00" name="ietf.draft">
34
+ <!-- Generator version information:
35
+ xml2rfc 3.33.0
36
+ Python 3.14.3
37
+ ConfigArgParse 1.7.5
38
+ google-i18n-address 3.1.1
39
+ intervaltree 3.2.1
40
+ Jinja2 3.1.6
41
+ lxml 6.1.0
42
+ platformdirs 4.9.6
43
+ pycountry 26.2.16
44
+ PyYAML 6.0.3
45
+ requests 2.34.2
46
+ wcwidth 0.7.0
47
+ -->
48
+ <link href="draft-lin-atr-core-00.xml" rel="alternate" type="application/rfc+xml">
49
+ <link href="#copyright" rel="license">
50
+ <style type="text/css">/*
51
+
52
+ NOTE: Changes at the bottom of this file overrides some earlier settings.
53
+
54
+ Once the style has stabilized and has been adopted as an official RFC style,
55
+ this can be consolidated so that style settings occur only in one place, but
56
+ for now the contents of this file consists first of the initial CSS work as
57
+ provided to the RFC Formatter (xml2rfc) work, followed by itemized and
58
+ commented changes found necessary during the development of the v3
59
+ formatters.
60
+
61
+ */
62
+
63
+ /* fonts */
64
+ @import url('https://static.ietf.org/fonts/noto-sans/import.css'); /* Sans-serif */
65
+ @import url('https://static.ietf.org/fonts/noto-serif/import.css'); /* Serif (print) */
66
+ @import url('https://static.ietf.org/fonts/roboto-mono/import.css'); /* Monospace */
67
+
68
+ :root {
69
+ --font-sans: 'Noto Sans', Arial, Helvetica, sans-serif;
70
+ --font-serif: 'Noto Serif', 'Times', 'Times New Roman', serif;
71
+ --font-mono: 'Roboto Mono', Courier, 'Courier New', monospace;
72
+ }
73
+
74
+ @viewport {
75
+ zoom: 1.0;
76
+ }
77
+ @-ms-viewport {
78
+ width: extend-to-zoom;
79
+ zoom: 1.0;
80
+ }
81
+ /* general and mobile first */
82
+ html {
83
+ }
84
+ body {
85
+ max-width: 90%;
86
+ margin: 1.5em auto;
87
+ color: #222;
88
+ background-color: #fff;
89
+ font-size: 14px;
90
+ font-family: var(--font-sans);
91
+ line-height: 1.6;
92
+ scroll-behavior: smooth;
93
+ overflow-wrap: break-word;
94
+ }
95
+ .ears {
96
+ display: none;
97
+ }
98
+
99
+ /* headings */
100
+ #title, h1, h2, h3, h4, h5, h6 {
101
+ margin: 1em 0 0.5em;
102
+ font-weight: bold;
103
+ line-height: 1.3;
104
+ }
105
+ #title {
106
+ clear: both;
107
+ border-bottom: 1px solid #ddd;
108
+ margin: 0 0 0.5em 0;
109
+ padding: 1em 0 0.5em;
110
+ }
111
+ .author {
112
+ padding-bottom: 4px;
113
+ }
114
+ h1 {
115
+ font-size: 26px;
116
+ margin: 1em 0;
117
+ }
118
+ h2 {
119
+ font-size: 22px;
120
+ margin-top: -20px; /* provide offset for in-page anchors */
121
+ padding-top: 33px;
122
+ }
123
+ h3 {
124
+ font-size: 18px;
125
+ margin-top: -36px; /* provide offset for in-page anchors */
126
+ padding-top: 42px;
127
+ }
128
+ h4 {
129
+ font-size: 16px;
130
+ margin-top: -36px; /* provide offset for in-page anchors */
131
+ padding-top: 42px;
132
+ }
133
+ h5, h6 {
134
+ font-size: 14px;
135
+ }
136
+ #n-copyright-notice {
137
+ border-bottom: 1px solid #ddd;
138
+ padding-bottom: 1em;
139
+ margin-bottom: 1em;
140
+ }
141
+ /* general structure */
142
+ p {
143
+ padding: 0;
144
+ margin: 0 0 1em 0;
145
+ text-align: left;
146
+ }
147
+ div, span {
148
+ position: relative;
149
+ }
150
+ div {
151
+ margin: 0;
152
+ }
153
+ .alignRight.art-text {
154
+ background-color: #f9f9f9;
155
+ border: 1px solid #eee;
156
+ border-radius: 3px;
157
+ padding: 1em 1em 0;
158
+ margin-bottom: 1.5em;
159
+ }
160
+ .alignRight.art-text pre {
161
+ padding: 0;
162
+ }
163
+ .alignRight {
164
+ margin: 1em 0;
165
+ }
166
+ .alignRight > *:first-child {
167
+ border: none;
168
+ margin: 0;
169
+ float: right;
170
+ clear: both;
171
+ }
172
+ .alignRight > *:nth-child(2) {
173
+ clear: both;
174
+ display: block;
175
+ border: none;
176
+ }
177
+ svg {
178
+ display: block;
179
+ }
180
+ @media print {
181
+ svg {
182
+ max-height: 850px;
183
+ max-width: 660px;
184
+ }
185
+ }
186
+ svg[font-family~="serif" i], svg [font-family~="serif" i] {
187
+ font-family: var(--font-serif);
188
+ }
189
+ svg[font-family~="sans-serif" i], svg [font-family~="sans-serif" i] {
190
+ font-family: var(--font-sans);
191
+ }
192
+ svg[font-family~="monospace" i], svg [font-family~="monospace" i] {
193
+ font-family: var(--font-mono);
194
+ }
195
+ .alignCenter.art-text {
196
+ background-color: #f9f9f9;
197
+ border: 1px solid #eee;
198
+ border-radius: 3px;
199
+ padding: 1em 1em 0;
200
+ margin-bottom: 1.5em;
201
+ }
202
+ .alignCenter.art-text pre {
203
+ padding: 0;
204
+ }
205
+ .alignCenter {
206
+ margin: 1em 0;
207
+ }
208
+ .alignCenter > *:first-child {
209
+ display: table;
210
+ border: none;
211
+ margin: 0 auto;
212
+ }
213
+
214
+ /* lists */
215
+ ol, ul {
216
+ padding: 0;
217
+ margin: 0 0 1em 2em;
218
+ }
219
+ ol ol, ul ul, ol ul, ul ol {
220
+ margin-left: 1em;
221
+ }
222
+ li {
223
+ margin: 0 0 0.25em 0;
224
+ }
225
+ .ulCompact li {
226
+ margin: 0;
227
+ }
228
+ ul.empty, .ulEmpty {
229
+ list-style-type: none;
230
+ }
231
+ ul.empty li, .ulEmpty li {
232
+ margin-top: 0.5em;
233
+ }
234
+ ul.ulBare, li.ulBare {
235
+ margin-left: 0em !important;
236
+ }
237
+ ul.compact, .ulCompact,
238
+ ol.compact, .olCompact {
239
+ line-height: 100%;
240
+ margin: 0 0 0 2em;
241
+ }
242
+
243
+ /* definition lists */
244
+ dl {
245
+ }
246
+ dl > dt {
247
+ float: left;
248
+ margin-right: 1em;
249
+ }
250
+ /*
251
+ dl.nohang > dt {
252
+ float: none;
253
+ }
254
+ */
255
+ dl > dd {
256
+ margin-bottom: .8em;
257
+ min-height: 1.3em;
258
+ }
259
+ dl.compact > dd, .dlCompact > dd {
260
+ margin-bottom: 0em;
261
+ }
262
+ dl > dd > dl {
263
+ margin-top: 0.5em;
264
+ margin-bottom: 0em;
265
+ }
266
+
267
+ /* links */
268
+ a {
269
+ text-decoration: none;
270
+ }
271
+ a[href] {
272
+ color: #22e; /* Arlen: WCAG 2019 */
273
+ }
274
+ a[href]:hover {
275
+ background-color: #f2f2f2;
276
+ }
277
+ figcaption a[href],
278
+ a[href].selfRef {
279
+ color: #222;
280
+ }
281
+ /* XXX probably not this:
282
+ a.selfRef:hover {
283
+ background-color: transparent;
284
+ cursor: default;
285
+ } */
286
+
287
+ /* Figures */
288
+ tt, code, pre {
289
+ background-color: #f9f9f9;
290
+ font-family: var(--font-mono);
291
+ }
292
+ pre {
293
+ border: 1px solid #eee;
294
+ margin: 0;
295
+ padding: 1em;
296
+ }
297
+ img {
298
+ max-width: 100%;
299
+ }
300
+ figure {
301
+ margin: 0;
302
+ }
303
+ figure blockquote {
304
+ margin: 0.8em 0.4em 0.4em;
305
+ }
306
+ figcaption {
307
+ font-style: italic;
308
+ margin: 0 0 1em 0;
309
+ }
310
+ @media screen {
311
+ pre {
312
+ overflow-x: auto;
313
+ max-width: 100%;
314
+ max-width: calc(100% - 22px);
315
+ }
316
+ }
317
+
318
+ /* aside, blockquote */
319
+ aside, blockquote {
320
+ margin-left: 0;
321
+ padding: 1.2em 2em;
322
+ }
323
+ blockquote {
324
+ background-color: #f9f9f9;
325
+ color: #111; /* Arlen: WCAG 2019 */
326
+ border: 1px solid #ddd;
327
+ border-radius: 3px;
328
+ margin: 1em 0;
329
+ }
330
+ blockquote > *:last-child {
331
+ margin-bottom: 0;
332
+ }
333
+ cite {
334
+ display: block;
335
+ text-align: right;
336
+ font-style: italic;
337
+ }
338
+ .xref {
339
+ overflow-wrap: normal;
340
+ }
341
+
342
+ /* tables */
343
+ table {
344
+ width: 100%;
345
+ margin: 0 0 1em;
346
+ border-collapse: collapse;
347
+ border: 1px solid #eee;
348
+ }
349
+ th, td {
350
+ text-align: left;
351
+ vertical-align: top;
352
+ padding: 0.5em 0.75em;
353
+ }
354
+ th {
355
+ text-align: left;
356
+ background-color: #e9e9e9;
357
+ }
358
+ tr:nth-child(2n+1) > td {
359
+ background-color: #f5f5f5;
360
+ }
361
+ table caption {
362
+ font-style: italic;
363
+ margin: 0;
364
+ padding: 0;
365
+ text-align: left;
366
+ }
367
+ table p {
368
+ /* XXX to avoid bottom margin on table row signifiers. If paragraphs should
369
+ be allowed within tables more generally, it would be far better to select on a class. */
370
+ margin: 0;
371
+ }
372
+
373
+ /* pilcrow */
374
+ a.pilcrow {
375
+ color: #666; /* Arlen: AHDJ 2019 */
376
+ text-decoration: none;
377
+ visibility: hidden;
378
+ user-select: none;
379
+ -ms-user-select: none;
380
+ -o-user-select:none;
381
+ -moz-user-select: none;
382
+ -khtml-user-select: none;
383
+ -webkit-user-select: none;
384
+ -webkit-touch-callout: none;
385
+ }
386
+ @media screen {
387
+ aside:hover > a.pilcrow,
388
+ p:hover > a.pilcrow,
389
+ blockquote:hover > a.pilcrow,
390
+ div:hover > a.pilcrow,
391
+ li:hover > a.pilcrow,
392
+ pre:hover > a.pilcrow {
393
+ visibility: visible;
394
+ }
395
+ a.pilcrow:hover {
396
+ background-color: transparent;
397
+ }
398
+ }
399
+
400
+ /* misc */
401
+ hr {
402
+ border: 0;
403
+ border-top: 1px solid #eee;
404
+ }
405
+ .bcp14 {
406
+ font-variant: small-caps;
407
+ }
408
+
409
+ .role {
410
+ font-variant: all-small-caps;
411
+ }
412
+
413
+ /* info block */
414
+ #identifiers {
415
+ margin: 0;
416
+ font-size: 0.9em;
417
+ }
418
+ #identifiers dt {
419
+ width: 3em;
420
+ clear: left;
421
+ }
422
+ #identifiers dd {
423
+ float: left;
424
+ margin-bottom: 0;
425
+ }
426
+ /* Fix PDF info block run off issue */
427
+ @media print {
428
+ #identifiers dd {
429
+ max-width: 100%;
430
+ }
431
+ }
432
+ #identifiers .authors .author {
433
+ display: inline-block;
434
+ margin-right: 1.5em;
435
+ }
436
+ #identifiers .authors .org {
437
+ font-style: italic;
438
+ }
439
+
440
+ /* The prepared/rendered info at the very bottom of the page */
441
+ .docInfo {
442
+ color: #666; /* Arlen: WCAG 2019 */
443
+ font-size: 0.9em;
444
+ font-style: italic;
445
+ margin-top: 2em;
446
+ }
447
+ .docInfo .prepared {
448
+ float: left;
449
+ }
450
+ .docInfo .prepared {
451
+ float: right;
452
+ }
453
+
454
+ /* table of contents */
455
+ #toc {
456
+ padding: 0.75em 0 2em 0;
457
+ margin-bottom: 1em;
458
+ }
459
+ nav.toc ul {
460
+ margin: 0 0.5em 0 0;
461
+ padding: 0;
462
+ list-style: none;
463
+ }
464
+ nav.toc li {
465
+ line-height: 1.3em;
466
+ margin: 0.75em 0;
467
+ padding-left: 1.2em;
468
+ text-indent: -1.2em;
469
+ }
470
+ /* references */
471
+ .references dt {
472
+ text-align: right;
473
+ font-weight: bold;
474
+ min-width: 7em;
475
+ }
476
+ .references dd {
477
+ margin-left: 8em;
478
+ overflow: auto;
479
+ }
480
+
481
+ .refInstance {
482
+ margin-bottom: 1.25em;
483
+ }
484
+
485
+ .refSubseries {
486
+ margin-bottom: 1.25em;
487
+ }
488
+
489
+ .references .ascii {
490
+ margin-bottom: 0.25em;
491
+ }
492
+
493
+ /* index */
494
+ .index ul {
495
+ margin: 0 0 0 1em;
496
+ padding: 0;
497
+ list-style: none;
498
+ }
499
+ .index ul ul {
500
+ margin: 0;
501
+ }
502
+ .index li {
503
+ margin: 0;
504
+ text-indent: -2em;
505
+ padding-left: 2em;
506
+ padding-bottom: 5px;
507
+ }
508
+ .indexIndex {
509
+ margin: 0.5em 0 1em;
510
+ }
511
+ .index a {
512
+ font-weight: 700;
513
+ }
514
+ /* make the index two-column on all but the smallest screens */
515
+ @media (min-width: 600px) {
516
+ .index ul {
517
+ -moz-column-count: 2;
518
+ -moz-column-gap: 20px;
519
+ }
520
+ .index ul ul {
521
+ -moz-column-count: 1;
522
+ -moz-column-gap: 0;
523
+ }
524
+ }
525
+
526
+ /* authors */
527
+ address.vcard {
528
+ font-style: normal;
529
+ margin: 1em 0;
530
+ }
531
+
532
+ address.vcard .nameRole {
533
+ font-weight: 700;
534
+ margin-left: 0;
535
+ }
536
+ address.vcard .label {
537
+ font-family: var(--font-sans);
538
+ margin: 0.5em 0;
539
+ }
540
+ address.vcard .type {
541
+ display: none;
542
+ }
543
+ .alternative-contact {
544
+ margin: 1.5em 0 1em;
545
+ }
546
+ hr.addr {
547
+ border-top: 1px dashed;
548
+ margin: 0;
549
+ color: #ddd;
550
+ max-width: calc(100% - 16px);
551
+ }
552
+
553
+ /* temporary notes */
554
+ .rfcEditorRemove::before {
555
+ position: absolute;
556
+ top: 0.2em;
557
+ right: 0.2em;
558
+ padding: 0.2em;
559
+ content: "The RFC Editor will remove this note";
560
+ color: #9e2a00; /* Arlen: WCAG 2019 */
561
+ background-color: #ffd; /* Arlen: WCAG 2019 */
562
+ }
563
+ .rfcEditorRemove {
564
+ position: relative;
565
+ padding-top: 1.8em;
566
+ background-color: #ffd; /* Arlen: WCAG 2019 */
567
+ border-radius: 3px;
568
+ }
569
+ .cref {
570
+ background-color: #ffd; /* Arlen: WCAG 2019 */
571
+ padding: 2px 4px;
572
+ }
573
+ .crefSource {
574
+ font-style: italic;
575
+ }
576
+ /* alternative layout for smaller screens */
577
+ @media screen and (max-width: 1023px) {
578
+ body {
579
+ padding-top: 2em;
580
+ }
581
+ #title {
582
+ padding: 1em 0;
583
+ }
584
+ h1 {
585
+ font-size: 24px;
586
+ }
587
+ h2 {
588
+ font-size: 20px;
589
+ margin-top: -18px; /* provide offset for in-page anchors */
590
+ padding-top: 38px;
591
+ }
592
+ #identifiers dd {
593
+ max-width: 60%;
594
+ }
595
+ #toc {
596
+ position: fixed;
597
+ z-index: 2;
598
+ top: 0;
599
+ right: 0;
600
+ padding: 0;
601
+ margin: 0;
602
+ background-color: inherit;
603
+ border-bottom: 1px solid #ccc;
604
+ }
605
+ #toc h2 {
606
+ margin: -1px 0 0 0;
607
+ padding: 4px 0 4px 6px;
608
+ padding-right: 1em;
609
+ min-width: 190px;
610
+ font-size: 1.1em;
611
+ text-align: right;
612
+ background-color: #444;
613
+ color: white;
614
+ cursor: pointer;
615
+ }
616
+ #toc h2::before { /* css hamburger */
617
+ float: right;
618
+ position: relative;
619
+ width: 1em;
620
+ height: 1px;
621
+ left: -164px;
622
+ margin: 6px 0 0 0;
623
+ background: white none repeat scroll 0 0;
624
+ box-shadow: 0 4px 0 0 white, 0 8px 0 0 white;
625
+ content: "";
626
+ }
627
+ #toc nav {
628
+ display: none;
629
+ padding: 0.5em 1em 1em;
630
+ overflow: auto;
631
+ height: calc(100vh - 48px);
632
+ border-left: 1px solid #ddd;
633
+ }
634
+ }
635
+
636
+ /* alternative layout for wide screens */
637
+ @media screen and (min-width: 1024px) {
638
+ body {
639
+ max-width: 724px;
640
+ margin: 42px auto;
641
+ padding-left: 1.5em;
642
+ padding-right: 29em;
643
+ }
644
+ #toc {
645
+ position: fixed;
646
+ top: 42px;
647
+ right: 42px;
648
+ width: 25%;
649
+ margin: 0;
650
+ padding: 0 1em;
651
+ z-index: 1;
652
+ }
653
+ #toc h2 {
654
+ border-top: none;
655
+ border-bottom: 1px solid #ddd;
656
+ font-size: 1em;
657
+ font-weight: normal;
658
+ margin: 0;
659
+ padding: 0.25em 1em 1em 0;
660
+ }
661
+ #toc nav {
662
+ display: block;
663
+ height: calc(90vh - 84px);
664
+ bottom: 0;
665
+ padding: 0.5em 0 0;
666
+ overflow: auto;
667
+ }
668
+ img { /* future proofing */
669
+ max-width: 100%;
670
+ height: auto;
671
+ }
672
+ }
673
+
674
+ /* pagination */
675
+ @media print {
676
+ body {
677
+ width: 100%;
678
+ }
679
+ p {
680
+ orphans: 3;
681
+ widows: 3;
682
+ }
683
+ #n-copyright-notice {
684
+ border-bottom: none;
685
+ }
686
+ #toc, #n-introduction {
687
+ page-break-before: always;
688
+ }
689
+ #toc {
690
+ border-top: none;
691
+ padding-top: 0;
692
+ }
693
+ figure, pre {
694
+ page-break-inside: avoid;
695
+ }
696
+ figure {
697
+ overflow: scroll;
698
+ }
699
+ .breakable pre {
700
+ break-inside: auto;
701
+ }
702
+ h1, h2, h3, h4, h5, h6 {
703
+ page-break-after: avoid;
704
+ }
705
+ h2+*, h3+*, h4+*, h5+*, h6+* {
706
+ page-break-before: avoid;
707
+ }
708
+ pre {
709
+ white-space: pre-wrap;
710
+ word-wrap: break-word;
711
+ font-size: 10pt;
712
+ }
713
+ table {
714
+ border: 1px solid #ddd;
715
+ }
716
+ td {
717
+ border-top: 1px solid #ddd;
718
+ }
719
+ }
720
+
721
+ /* This is commented out here, as the string-set: doesn't
722
+ pass W3C validation currently */
723
+ /*
724
+ .ears thead .left {
725
+ string-set: ears-top-left content();
726
+ }
727
+
728
+ .ears thead .center {
729
+ string-set: ears-top-center content();
730
+ }
731
+
732
+ .ears thead .right {
733
+ string-set: ears-top-right content();
734
+ }
735
+
736
+ .ears tfoot .left {
737
+ string-set: ears-bottom-left content();
738
+ }
739
+
740
+ .ears tfoot .center {
741
+ string-set: ears-bottom-center content();
742
+ }
743
+
744
+ .ears tfoot .right {
745
+ string-set: ears-bottom-right content();
746
+ }
747
+ */
748
+
749
+ @page :first {
750
+ padding-top: 0;
751
+ @top-left {
752
+ content: normal;
753
+ border: none;
754
+ }
755
+ @top-center {
756
+ content: normal;
757
+ border: none;
758
+ }
759
+ @top-right {
760
+ content: normal;
761
+ border: none;
762
+ }
763
+ }
764
+
765
+ @page {
766
+ size: A4;
767
+ margin-bottom: 45mm;
768
+ padding-top: 20px;
769
+ /* The following is commented out here, but set appropriately by in code, as
770
+ the content depends on the document */
771
+ /*
772
+ @top-left {
773
+ content: 'Internet-Draft';
774
+ vertical-align: bottom;
775
+ border-bottom: solid 1px #ccc;
776
+ }
777
+ @top-left {
778
+ content: string(ears-top-left);
779
+ vertical-align: bottom;
780
+ border-bottom: solid 1px #ccc;
781
+ }
782
+ @top-center {
783
+ content: string(ears-top-center);
784
+ vertical-align: bottom;
785
+ border-bottom: solid 1px #ccc;
786
+ }
787
+ @top-right {
788
+ content: string(ears-top-right);
789
+ vertical-align: bottom;
790
+ border-bottom: solid 1px #ccc;
791
+ }
792
+ @bottom-left {
793
+ content: string(ears-bottom-left);
794
+ vertical-align: top;
795
+ border-top: solid 1px #ccc;
796
+ }
797
+ @bottom-center {
798
+ content: string(ears-bottom-center);
799
+ vertical-align: top;
800
+ border-top: solid 1px #ccc;
801
+ }
802
+ @bottom-right {
803
+ content: '[Page ' counter(page) ']';
804
+ vertical-align: top;
805
+ border-top: solid 1px #ccc;
806
+ }
807
+ */
808
+
809
+ }
810
+
811
+ /* Changes introduced to fix issues found during implementation */
812
+ /* Make sure links are clickable even if overlapped by following H* */
813
+ a {
814
+ z-index: 2;
815
+ }
816
+ /* Separate body from document info even without intervening H1 */
817
+ section {
818
+ clear: both;
819
+ }
820
+
821
+
822
+ /* Top align author divs, to avoid names without organization dropping level with org names */
823
+ .author {
824
+ vertical-align: top;
825
+ }
826
+
827
+ /* Leave room in document info to show Internet-Draft on one line */
828
+ #identifiers dt {
829
+ width: 8em;
830
+ }
831
+
832
+ /* Don't waste quite as much whitespace between label and value in doc info */
833
+ #identifiers dd {
834
+ margin-left: 1em;
835
+ }
836
+
837
+ /* Give floating toc a background color (needed when it's a div inside section */
838
+ #toc {
839
+ background-color: white;
840
+ }
841
+
842
+ /* Make the collapsed ToC header render white on gray also when it's a link */
843
+ @media screen and (max-width: 1023px) {
844
+ #toc h2 a,
845
+ #toc h2 a:link,
846
+ #toc h2 a:focus,
847
+ #toc h2 a:hover,
848
+ #toc a.toplink,
849
+ #toc a.toplink:hover {
850
+ color: white;
851
+ background-color: #444;
852
+ text-decoration: none;
853
+ }
854
+ }
855
+
856
+ /* Give the bottom of the ToC some whitespace */
857
+ @media screen and (min-width: 1024px) {
858
+ #toc {
859
+ padding: 0 0 1em 1em;
860
+ }
861
+ }
862
+
863
+ /* Style section numbers with more space between number and title */
864
+ .section-number {
865
+ padding-right: 0.5em;
866
+ }
867
+
868
+ /* prevent monospace from becoming overly large */
869
+ tt, code, pre {
870
+ font-size: 95%;
871
+ }
872
+
873
+ /* Fix the height/width aspect for ascii art*/
874
+ .sourcecode pre,
875
+ .art-text pre {
876
+ line-height: 1.12;
877
+ }
878
+
879
+
880
+ /* Add styling for a link in the ToC that points to the top of the document */
881
+ a.toplink {
882
+ float: right;
883
+ margin-right: 0.5em;
884
+ }
885
+
886
+ /* Fix the dl styling to match the RFC 7992 attributes */
887
+ dl > dt,
888
+ dl.dlParallel > dt {
889
+ float: left;
890
+ margin-right: 1em;
891
+ }
892
+ dl.dlNewline > dt {
893
+ float: none;
894
+ }
895
+
896
+ /* Provide styling for table cell text alignment */
897
+ table td.text-left,
898
+ table th.text-left {
899
+ text-align: left;
900
+ }
901
+ table td.text-center,
902
+ table th.text-center {
903
+ text-align: center;
904
+ }
905
+ table td.text-right,
906
+ table th.text-right {
907
+ text-align: right;
908
+ }
909
+
910
+ /* Make the alternative author contact information look less like just another
911
+ author, and group it closer with the primary author contact information */
912
+ .alternative-contact {
913
+ margin: 0.5em 0 0.25em 0;
914
+ }
915
+ address .non-ascii {
916
+ margin: 0 0 0 2em;
917
+ }
918
+
919
+ /* With it being possible to set tables with alignment
920
+ left, center, and right, { width: 100%; } does not make sense */
921
+ table {
922
+ width: auto;
923
+ }
924
+
925
+ /* Avoid reference text that sits in a block with very wide left margin,
926
+ because of a long floating dt label.*/
927
+ .references dd {
928
+ overflow: visible;
929
+ }
930
+
931
+ /* Control caption placement */
932
+ caption {
933
+ caption-side: bottom;
934
+ }
935
+
936
+ /* Limit the width of the author address vcard, so names in right-to-left
937
+ script don't end up on the other side of the page. */
938
+
939
+ address.vcard {
940
+ max-width: 30em;
941
+ margin-right: auto;
942
+ }
943
+
944
+ /* For address alignment dependent on LTR or RTL scripts */
945
+ address div.left {
946
+ text-align: left;
947
+ }
948
+ address div.right {
949
+ text-align: right;
950
+ }
951
+
952
+ /* Provide table alignment support. We can't use the alignX classes above
953
+ since they do unwanted things with caption and other styling. */
954
+ table.right {
955
+ margin-left: auto;
956
+ margin-right: 0;
957
+ }
958
+ table.center {
959
+ margin-left: auto;
960
+ margin-right: auto;
961
+ }
962
+ table.left {
963
+ margin-left: 0;
964
+ margin-right: auto;
965
+ }
966
+
967
+ /* Give the table caption label the same styling as the figcaption */
968
+ caption a[href] {
969
+ color: #222;
970
+ }
971
+
972
+ @media print {
973
+ .toplink {
974
+ display: none;
975
+ }
976
+
977
+ /* avoid overwriting the top border line with the ToC header */
978
+ #toc {
979
+ padding-top: 1px;
980
+ }
981
+
982
+ /* Avoid page breaks inside dl and author address entries */
983
+ .vcard {
984
+ page-break-inside: avoid;
985
+ }
986
+
987
+ }
988
+ /* Tweak the bcp14 keyword presentation */
989
+ .bcp14 {
990
+ font-variant: small-caps;
991
+ font-weight: bold;
992
+ font-size: 0.9em;
993
+ }
994
+ /* Tweak the invisible space above H* in order not to overlay links in text above */
995
+ h2 {
996
+ margin-top: -18px; /* provide offset for in-page anchors */
997
+ padding-top: 31px;
998
+ }
999
+ h3 {
1000
+ margin-top: -18px; /* provide offset for in-page anchors */
1001
+ padding-top: 24px;
1002
+ }
1003
+ h4 {
1004
+ margin-top: -18px; /* provide offset for in-page anchors */
1005
+ padding-top: 24px;
1006
+ }
1007
+ /* Float artwork pilcrow to the right */
1008
+ @media screen {
1009
+ .artwork a.pilcrow {
1010
+ display: block;
1011
+ line-height: 0.7;
1012
+ margin-top: 0.15em;
1013
+ }
1014
+ }
1015
+ /* Make pilcrows on dd visible */
1016
+ @media screen {
1017
+ dd:hover > a.pilcrow {
1018
+ visibility: visible;
1019
+ }
1020
+ }
1021
+ /* Make the placement of figcaption match that of a table's caption
1022
+ by removing the figure's added bottom margin */
1023
+ .alignLeft.art-text,
1024
+ .alignCenter.art-text,
1025
+ .alignRight.art-text {
1026
+ margin-bottom: 0;
1027
+ }
1028
+ .alignLeft,
1029
+ .alignCenter,
1030
+ .alignRight {
1031
+ margin: 1em 0 0 0;
1032
+ }
1033
+ /* In print, the pilcrow won't show on hover, so prevent it from taking up space,
1034
+ possibly even requiring a new line */
1035
+ @media print {
1036
+ a.pilcrow {
1037
+ display: none;
1038
+ }
1039
+ }
1040
+ /* Styling for the external metadata */
1041
+ div#external-metadata {
1042
+ background-color: #eee;
1043
+ padding: 0.5em;
1044
+ margin-bottom: 0.5em;
1045
+ display: none;
1046
+ }
1047
+ div#internal-metadata {
1048
+ padding: 0.5em; /* to match the external-metadata padding */
1049
+ }
1050
+ /* Styling for title RFC Number */
1051
+ h1#rfcnum {
1052
+ clear: both;
1053
+ margin: 0 0 -1em;
1054
+ padding: 1em 0 0 0;
1055
+ }
1056
+ /* Make .olPercent look the same as <ol><li> */
1057
+ dl.olPercent > dd {
1058
+ margin-bottom: 0.25em;
1059
+ min-height: initial;
1060
+ }
1061
+ /* Give aside some styling to set it apart */
1062
+ aside {
1063
+ border-left: 1px solid #ddd;
1064
+ margin: 1em 0 1em 2em;
1065
+ padding: 0.2em 2em;
1066
+ }
1067
+ aside > dl,
1068
+ aside > ol,
1069
+ aside > ul,
1070
+ aside > table,
1071
+ aside > p {
1072
+ margin-bottom: 0.5em;
1073
+ }
1074
+ /* Additional page break settings */
1075
+ @media print {
1076
+ figcaption, table caption {
1077
+ page-break-before: avoid;
1078
+ }
1079
+ }
1080
+ /* Font size adjustments for print */
1081
+ @media print {
1082
+ body { font-size: 10pt; line-height: normal; max-width: 96%; }
1083
+ h1 { font-size: 1.72em; padding-top: 1.5em; } /* 1*1.2*1.2*1.2 */
1084
+ h2 { font-size: 1.44em; padding-top: 1.5em; } /* 1*1.2*1.2 */
1085
+ h3 { font-size: 1.2em; padding-top: 1.5em; } /* 1*1.2 */
1086
+ h4 { font-size: 1em; padding-top: 1.5em; }
1087
+ h5, h6 { font-size: 1em; margin: initial; padding: 0.5em 0 0.3em; }
1088
+ }
1089
+ /* Sourcecode margin in print, when there's no pilcrow */
1090
+ @media print {
1091
+ .artwork,
1092
+ .artwork > pre,
1093
+ .sourcecode {
1094
+ margin-bottom: 1em;
1095
+ }
1096
+ }
1097
+ /* Avoid narrow tables forcing too narrow table captions, which may render badly */
1098
+ table {
1099
+ min-width: 20em;
1100
+ }
1101
+ /* ol type a */
1102
+ ol.type-a { list-style-type: lower-alpha; }
1103
+ ol.type-A { list-style-type: upper-alpha; }
1104
+ ol.type-i { list-style-type: lower-roman; }
1105
+ ol.type-I { list-style-type: upper-roman; }
1106
+ /* Apply the print table and row borders in general, on request from the RPC,
1107
+ and increase the contrast between border and odd row background slightly */
1108
+ table {
1109
+ border: 1px solid #ddd;
1110
+ }
1111
+ td {
1112
+ border-top: 1px solid #ddd;
1113
+ }
1114
+ tr {
1115
+ break-inside: avoid;
1116
+ }
1117
+ tr:nth-child(2n+1) > td {
1118
+ background-color: #f8f8f8;
1119
+ }
1120
+ /* Use style rules to govern display of the TOC. */
1121
+ @media screen and (max-width: 1023px) {
1122
+ #toc nav { display: none; }
1123
+ #toc.active nav { display: block; }
1124
+ }
1125
+ /* Add support for keepWithNext */
1126
+ .keepWithNext {
1127
+ break-after: avoid-page;
1128
+ break-after: avoid-page;
1129
+ }
1130
+ /* Add support for keepWithPrevious */
1131
+ .keepWithPrevious {
1132
+ break-before: avoid-page;
1133
+ }
1134
+ /* Change the approach to avoiding breaks inside artwork etc. */
1135
+ figure, pre, table, .artwork, .sourcecode {
1136
+ break-before: auto;
1137
+ break-after: auto;
1138
+ }
1139
+ /* Avoid breaks between <dt> and <dd> */
1140
+ dl {
1141
+ break-before: auto;
1142
+ break-inside: auto;
1143
+ }
1144
+ dt {
1145
+ break-before: auto;
1146
+ break-after: avoid-page;
1147
+ }
1148
+ dd {
1149
+ break-before: avoid-page;
1150
+ break-after: auto;
1151
+ orphans: 3;
1152
+ widows: 3
1153
+ }
1154
+ span.break, dd.break {
1155
+ margin-bottom: 0;
1156
+ min-height: 0;
1157
+ break-before: auto;
1158
+ break-inside: auto;
1159
+ break-after: auto;
1160
+ }
1161
+ /* Undo break-before ToC */
1162
+ @media print {
1163
+ #toc {
1164
+ break-before: auto;
1165
+ }
1166
+ }
1167
+ /* Text in compact lists should not get extra bottom margin space,
1168
+ since that would makes the list not compact */
1169
+ ul.compact p, .ulCompact p,
1170
+ ol.compact p, .olCompact p {
1171
+ margin: 0;
1172
+ }
1173
+ /* But the list as a whole needs the extra space at the end */
1174
+ section ul.compact,
1175
+ section .ulCompact,
1176
+ section ol.compact,
1177
+ section .olCompact {
1178
+ margin-bottom: 1em; /* same as p not within ul.compact etc. */
1179
+ }
1180
+ /* The tt and code background above interferes with for instance table cell
1181
+ backgrounds. Changed to something a bit more selective. */
1182
+ tt, code {
1183
+ background-color: transparent;
1184
+ }
1185
+ p tt, p code, li tt, li code, dt tt, dt code {
1186
+ background-color: #f8f8f8;
1187
+ }
1188
+ /* Tweak the pre margin -- 0px doesn't come out well */
1189
+ pre {
1190
+ margin-top: 0.5px;
1191
+ }
1192
+ /* Tweak the compact list text */
1193
+ ul.compact, .ulCompact,
1194
+ ol.compact, .olCompact,
1195
+ dl.compact, .dlCompact {
1196
+ line-height: normal;
1197
+ }
1198
+ /* Don't add top margin for nested lists */
1199
+ li > ul, li > ol, li > dl,
1200
+ dd > ul, dd > ol, dd > dl,
1201
+ dl > dd > dl {
1202
+ margin-top: initial;
1203
+ }
1204
+ /* Elements that should not be rendered on the same line as a <dt> */
1205
+ /* This should match the element list in writer.text.TextWriter.render_dl() */
1206
+ dd > div.artwork:first-child,
1207
+ dd > aside:first-child,
1208
+ dd > blockquote:first-child,
1209
+ dd > figure:first-child,
1210
+ dd > ol:first-child,
1211
+ dd > div.sourcecode:first-child,
1212
+ dd > table:first-child,
1213
+ dd > ul:first-child {
1214
+ clear: left;
1215
+ }
1216
+ /* fix for weird browser behaviour when <dd/> is empty */
1217
+ dt+dd:empty::before{
1218
+ content: "\00a0";
1219
+ }
1220
+ /* Make paragraph spacing inside <li> smaller than in body text, to fit better within the list */
1221
+ li > p {
1222
+ margin-bottom: 0.5em
1223
+ }
1224
+ /* Don't let p margin spill out from inside list items */
1225
+ li > p:last-of-type:only-child {
1226
+ margin-bottom: 0;
1227
+ }
1228
+ </style>
1229
+ <link href="rfc-local.css" rel="stylesheet" type="text/css">
1230
+ <script type="application/javascript">async function addMetadata(){try{const e=document.styleSheets[0].cssRules;for(let t=0;t<e.length;t++)if(/#identifiers/.exec(e[t].selectorText)){const a=e[t].cssText.replace("#identifiers","#external-updates");document.styleSheets[0].insertRule(a,document.styleSheets[0].cssRules.length)}}catch(e){console.log(e)}const e=document.getElementById("external-metadata");if(e)try{var t,a="",o=function(e){const t=document.getElementsByTagName("meta");for(let a=0;a<t.length;a++)if(t[a].getAttribute("name")===e)return t[a].getAttribute("content");return""}("rfc.number");if(o){t="https://www.rfc-editor.org/rfc/rfc"+o+".json";try{const e=await fetch(t);a=await e.json()}catch(e){t=document.URL.indexOf("html")>=0?document.URL.replace(/html$/,"json"):document.URL+".json";const o=await fetch(t);a=await o.json()}}if(!a)return;e.style.display="block";const s="",d="https://datatracker.ietf.org/doc",n="https://datatracker.ietf.org/ipr/search",c="https://www.rfc-editor.org/info",l=a.doc_id.toLowerCase(),i=a.doc_id.slice(0,3).toLowerCase(),f=a.doc_id.slice(3).replace(/^0+/,""),u={status:"Status",obsoletes:"Obsoletes",obsoleted_by:"Obsoleted By",updates:"Updates",updated_by:"Updated By",see_also:"See Also",errata_url:"Errata"};let h="<dl style='overflow:hidden' id='external-updates'>";["status","obsoletes","obsoleted_by","updates","updated_by","see_also","errata_url"].forEach(e=>{if("status"==e){a[e]=a[e].toLowerCase();var t=a[e].split(" "),o=t.length,w="",p=1;for(let e=0;e<o;e++)p<o?w=w+r(t[e])+" ":w+=r(t[e]),p++;a[e]=w}else if("obsoletes"==e||"obsoleted_by"==e||"updates"==e||"updated_by"==e){var g,m="",b=1;g=a[e].length;for(let t=0;t<g;t++)a[e][t]&&(a[e][t]=String(a[e][t]).toLowerCase(),m=b<g?m+"<a href='"+s+"/rfc/".concat(a[e][t])+"'>"+a[e][t].slice(3)+"</a>, ":m+"<a href='"+s+"/rfc/".concat(a[e][t])+"'>"+a[e][t].slice(3)+"</a>",b++);a[e]=m}else if("see_also"==e){var y,L="",C=1;y=a[e].length;for(let t=0;t<y;t++)if(a[e][t]){a[e][t]=String(a[e][t]);var _=a[e][t].slice(0,3),v=a[e][t].slice(3).replace(/^0+/,"");L=C<y?"RFC"!=_?L+"<a href='"+s+"/info/"+_.toLowerCase().concat(v.toLowerCase())+"'>"+_+" "+v+"</a>, ":L+"<a href='"+s+"/info/"+_.toLowerCase().concat(v.toLowerCase())+"'>"+v+"</a>, ":"RFC"!=_?L+"<a href='"+s+"/info/"+_.toLowerCase().concat(v.toLowerCase())+"'>"+_+" "+v+"</a>":L+"<a href='"+s+"/info/"+_.toLowerCase().concat(v.toLowerCase())+"'>"+v+"</a>",C++}a[e]=L}else if("errata_url"==e){var R="";R=a[e]?R+"<a href='"+a[e]+"'>Errata exist</a> | <a href='"+d+"/"+l+"'>Datatracker</a>| <a href='"+n+"/?"+i+"="+f+"&submit="+i+"'>IPR</a> | <a href='"+c+"/"+l+"'>Info page</a>":"<a href='"+d+"/"+l+"'>Datatracker</a> | <a href='"+n+"/?"+i+"="+f+"&submit="+i+"'>IPR</a> | <a href='"+c+"/"+l+"'>Info page</a>",a[e]=R}""!=a[e]?"Errata"==u[e]?h+=`<dt>More info:</dt><dd>${a[e]}</dd>`:h+=`<dt>${u[e]}:</dt><dd>${a[e]}</dd>`:"Errata"==u[e]&&(h+=`<dt>More info:</dt><dd>${a[e]}</dd>`)}),h+="</dl>",e.innerHTML=h}catch(e){console.log(e)}else console.log("Could not locate metadata <div> element");function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}}window.removeEventListener("load",addMetadata),window.addEventListener("load",addMetadata);</script>
1231
+ </head>
1232
+ <body class="xml2rfc">
1233
+ <table class="ears">
1234
+ <thead><tr>
1235
+ <td class="left">Internet-Draft</td>
1236
+ <td class="center">ATR Core</td>
1237
+ <td class="right">May 2026</td>
1238
+ </tr></thead>
1239
+ <tfoot><tr>
1240
+ <td class="left">Lin</td>
1241
+ <td class="center">Expires 17 November 2026</td>
1242
+ <td class="right">[Page]</td>
1243
+ </tr></tfoot>
1244
+ </table>
1245
+ <div id="external-metadata" class="document-information"></div>
1246
+ <div id="internal-metadata" class="document-information">
1247
+ <dl id="identifiers">
1248
+ <dt class="label-workgroup">Workgroup:</dt>
1249
+ <dd class="workgroup">Independent Submission</dd>
1250
+ <dt class="label-internet-draft">Internet-Draft:</dt>
1251
+ <dd class="internet-draft">draft-lin-atr-core-00</dd>
1252
+ <dt class="label-published">Published:</dt>
1253
+ <dd class="published">
1254
+ <time datetime="2026-05-16" class="published">16 May 2026</time>
1255
+ </dd>
1256
+ <dt class="label-intended-status">Intended Status:</dt>
1257
+ <dd class="intended-status">Informational</dd>
1258
+ <dt class="label-expires">Expires:</dt>
1259
+ <dd class="expires"><time datetime="2026-11-17">17 November 2026</time></dd>
1260
+ <dt class="label-authors">Author:</dt>
1261
+ <dd class="authors">
1262
+ <div class="author">
1263
+ <div class="author-name">K-H. Lin</div>
1264
+ <div class="org">ATR Project / Panguard AI, Inc.</div>
1265
+ </div>
1266
+ </dd>
1267
+ </dl>
1268
+ </div>
1269
+ <h1 id="title">Agent Threat Rules (ATR): An Open Detection Standard for AI Agent Security Threats</h1>
1270
+ <section id="section-abstract">
1271
+ <h2 id="abstract"><a href="#abstract" class="selfRef">Abstract</a></h2>
1272
+ <p id="section-abstract-1">This document specifies the Agent Threat Rules (ATR) Core
1273
+ Specification, an open, vendor-neutral detection rule standard for
1274
+ AI agent security threats. ATR is analogous in role to Sigma for
1275
+ SIEM but applies to AI agent artifacts (skill descriptions, MCP
1276
+ tool definitions, agent configurations) and AI agent runtime events
1277
+ (LLM input/output, tool invocations, context windows). The
1278
+ specification defines the rule wire format in YAML 1.2, the
1279
+ canonical rule identifier scheme, evaluation semantics with
1280
+ explicit combinator and operator vocabularies, match output
1281
+ structure, ten canonical threat categories, and three conformance
1282
+ levels. The intent is to enable interoperable detection across
1283
+ independent implementations and to provide a machine-readable
1284
+ layer that operationalizes policy frameworks such as NIST AI RMF,
1285
+ the NIST Generative AI Profile (AI 600-1), OWASP Agentic Top 10,
1286
+ and MITRE ATLAS.<a href="#section-abstract-1" class="pilcrow">¶</a></p>
1287
+ </section>
1288
+ <div id="status-of-memo">
1289
+ <section id="section-boilerplate.1">
1290
+ <h2 id="name-status-of-this-memo">
1291
+ <a href="#name-status-of-this-memo" class="section-name selfRef">Status of This Memo</a>
1292
+ </h2>
1293
+ <p id="section-boilerplate.1-1">
1294
+ This Internet-Draft is submitted in full conformance with the
1295
+ provisions of BCP 78 and BCP 79.<a href="#section-boilerplate.1-1" class="pilcrow">¶</a></p>
1296
+ <p id="section-boilerplate.1-2">
1297
+ Internet-Drafts are working documents of the Internet Engineering Task
1298
+ Force (IETF). Note that other groups may also distribute working
1299
+ documents as Internet-Drafts. The list of current Internet-Drafts is
1300
+ at <span><a href="https://datatracker.ietf.org/drafts/current/">https://datatracker.ietf.org/drafts/current/</a></span>.<a href="#section-boilerplate.1-2" class="pilcrow">¶</a></p>
1301
+ <p id="section-boilerplate.1-3">
1302
+ Internet-Drafts are draft documents valid for a maximum of six months
1303
+ and may be updated, replaced, or obsoleted by other documents at any
1304
+ time. It is inappropriate to use Internet-Drafts as reference
1305
+ material or to cite them other than as "work in progress."<a href="#section-boilerplate.1-3" class="pilcrow">¶</a></p>
1306
+ <p id="section-boilerplate.1-4">
1307
+ This Internet-Draft will expire on 17 November 2026.<a href="#section-boilerplate.1-4" class="pilcrow">¶</a></p>
1308
+ </section>
1309
+ </div>
1310
+ <div id="copyright">
1311
+ <section id="section-boilerplate.2">
1312
+ <h2 id="name-copyright-notice">
1313
+ <a href="#name-copyright-notice" class="section-name selfRef">Copyright Notice</a>
1314
+ </h2>
1315
+ <p id="section-boilerplate.2-1">
1316
+ Copyright (c) 2026 IETF Trust and the persons identified as the
1317
+ document authors. All rights reserved.<a href="#section-boilerplate.2-1" class="pilcrow">¶</a></p>
1318
+ <p id="section-boilerplate.2-2">
1319
+ This document is subject to BCP 78 and the IETF Trust's Legal
1320
+ Provisions Relating to IETF Documents
1321
+ (<span><a href="https://trustee.ietf.org/license-info">https://trustee.ietf.org/license-info</a></span>) in effect on the date of
1322
+ publication of this document. Please review these documents
1323
+ carefully, as they describe your rights and restrictions with
1324
+ respect to this document.<a href="#section-boilerplate.2-2" class="pilcrow">¶</a></p>
1325
+ </section>
1326
+ </div>
1327
+ <div id="toc">
1328
+ <section id="section-toc.1">
1329
+ <a href="#" onclick="scroll(0,0)" class="toplink">▲</a><h2 id="name-table-of-contents">
1330
+ <a href="#name-table-of-contents" class="section-name selfRef">Table of Contents</a>
1331
+ </h2>
1332
+ <nav class="toc"><ul class="compact toc ulBare ulEmpty">
1333
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.1">
1334
+ <p id="section-toc.1-1.1.1" class="keepWithNext"><a href="#section-1" class="auto internal xref">1</a>.  <a href="#name-introduction" class="internal xref">Introduction</a></p>
1335
+ <ul class="compact toc ulBare ulEmpty">
1336
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.1.2.1">
1337
+ <p id="section-toc.1-1.1.2.1.1" class="keepWithNext"><a href="#section-1.1" class="auto internal xref">1.1</a>.  <a href="#name-relationship-to-existing-st" class="internal xref">Relationship to Existing Standards</a></p>
1338
+ </li>
1339
+ </ul>
1340
+ </li>
1341
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.2">
1342
+ <p id="section-toc.1-1.2.1" class="keepWithNext"><a href="#section-2" class="auto internal xref">2</a>.  <a href="#name-conventions-and-terminology" class="internal xref">Conventions and Terminology</a></p>
1343
+ </li>
1344
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.3">
1345
+ <p id="section-toc.1-1.3.1"><a href="#section-3" class="auto internal xref">3</a>.  <a href="#name-rule-identifier" class="internal xref">Rule Identifier</a></p>
1346
+ <ul class="compact toc ulBare ulEmpty">
1347
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.3.2.1">
1348
+ <p id="section-toc.1-1.3.2.1.1"><a href="#section-3.1" class="auto internal xref">3.1</a>.  <a href="#name-format" class="internal xref">Format</a></p>
1349
+ </li>
1350
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.3.2.2">
1351
+ <p id="section-toc.1-1.3.2.2.1"><a href="#section-3.2" class="auto internal xref">3.2</a>.  <a href="#name-assignment-rules" class="internal xref">Assignment Rules</a></p>
1352
+ </li>
1353
+ </ul>
1354
+ </li>
1355
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.4">
1356
+ <p id="section-toc.1-1.4.1"><a href="#section-4" class="auto internal xref">4</a>.  <a href="#name-rule-document-structure" class="internal xref">Rule Document Structure</a></p>
1357
+ </li>
1358
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.5">
1359
+ <p id="section-toc.1-1.5.1"><a href="#section-5" class="auto internal xref">5</a>.  <a href="#name-detection-semantics" class="internal xref">Detection Semantics</a></p>
1360
+ <ul class="compact toc ulBare ulEmpty">
1361
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.5.2.1">
1362
+ <p id="section-toc.1-1.5.2.1.1"><a href="#section-5.1" class="auto internal xref">5.1</a>.  <a href="#name-match-definition" class="internal xref">Match Definition</a></p>
1363
+ </li>
1364
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.5.2.2">
1365
+ <p id="section-toc.1-1.5.2.2.1"><a href="#section-5.2" class="auto internal xref">5.2</a>.  <a href="#name-condition-combinators" class="internal xref">Condition Combinators</a></p>
1366
+ </li>
1367
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.5.2.3">
1368
+ <p id="section-toc.1-1.5.2.3.1"><a href="#section-5.3" class="auto internal xref">5.3</a>.  <a href="#name-selector-operators" class="internal xref">Selector Operators</a></p>
1369
+ </li>
1370
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.5.2.4">
1371
+ <p id="section-toc.1-1.5.2.4.1"><a href="#section-5.4" class="auto internal xref">5.4</a>.  <a href="#name-determinism" class="internal xref">Determinism</a></p>
1372
+ </li>
1373
+ </ul>
1374
+ </li>
1375
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.6">
1376
+ <p id="section-toc.1-1.6.1"><a href="#section-6" class="auto internal xref">6</a>.  <a href="#name-match-output" class="internal xref">Match Output</a></p>
1377
+ </li>
1378
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.7">
1379
+ <p id="section-toc.1-1.7.1"><a href="#section-7" class="auto internal xref">7</a>.  <a href="#name-canonical-categories" class="internal xref">Canonical Categories</a></p>
1380
+ </li>
1381
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.8">
1382
+ <p id="section-toc.1-1.8.1"><a href="#section-8" class="auto internal xref">8</a>.  <a href="#name-crosswalks" class="internal xref">Crosswalks</a></p>
1383
+ </li>
1384
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.9">
1385
+ <p id="section-toc.1-1.9.1"><a href="#section-9" class="auto internal xref">9</a>.  <a href="#name-conformance-levels" class="internal xref">Conformance Levels</a></p>
1386
+ </li>
1387
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.10">
1388
+ <p id="section-toc.1-1.10.1"><a href="#section-10" class="auto internal xref">10</a>. <a href="#name-security-considerations" class="internal xref">Security Considerations</a></p>
1389
+ </li>
1390
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.11">
1391
+ <p id="section-toc.1-1.11.1"><a href="#section-11" class="auto internal xref">11</a>. <a href="#name-iana-considerations" class="internal xref">IANA Considerations</a></p>
1392
+ </li>
1393
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.12">
1394
+ <p id="section-toc.1-1.12.1"><a href="#section-12" class="auto internal xref">12</a>. <a href="#name-normative-references" class="internal xref">Normative References</a></p>
1395
+ </li>
1396
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.13">
1397
+ <p id="section-toc.1-1.13.1"><a href="#section-13" class="auto internal xref">13</a>. <a href="#name-informative-references" class="internal xref">Informative References</a></p>
1398
+ </li>
1399
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.14">
1400
+ <p id="section-toc.1-1.14.1"><a href="#appendix-A" class="auto internal xref">Appendix A</a>.  <a href="#name-acknowledgments" class="internal xref">Acknowledgments</a></p>
1401
+ </li>
1402
+ <li class="compact toc ulBare ulEmpty" id="section-toc.1-1.15">
1403
+ <p id="section-toc.1-1.15.1"><a href="#appendix-B" class="auto internal xref"></a><a href="#name-authors-address" class="internal xref">Author's Address</a></p>
1404
+ </li>
1405
+ </ul>
1406
+ </nav>
1407
+ </section>
1408
+ </div>
1409
+ <div id="introduction">
1410
+ <section id="section-1">
1411
+ <h2 id="name-introduction">
1412
+ <a href="#section-1" class="section-number selfRef">1. </a><a href="#name-introduction" class="section-name selfRef">Introduction</a>
1413
+ </h2>
1414
+ <p id="section-1-1">AI agents now browse the web, run code, and invoke external
1415
+ tools. The attack surface they expose is observable: prompt
1416
+ injections, tool description poisoning, context window
1417
+ exfiltration, credential leakage through agent-controlled HTTP
1418
+ traffic, and configuration files that take effect before any
1419
+ human trust dialog. Several policy frameworks describe these
1420
+ risks, but none of them are directly executable by a scanner. ATR
1421
+ fills that gap with a vendor-neutral rule format, a stable
1422
+ identifier scheme, and a conformance test suite that lets
1423
+ independent implementations agree on whether a given input
1424
+ matches a given rule.<a href="#section-1-1" class="pilcrow">¶</a></p>
1425
+ <p id="section-1-2">ATR rules are YAML documents. Each rule has a globally unique
1426
+ identifier of the form ATR-YYYY-NNNNN assigned by the project's
1427
+ Numbering Authority. A conforming engine loads the rule corpus
1428
+ and emits Match outputs for inputs that satisfy the rule's
1429
+ detection condition. The Specification is intentionally narrow:
1430
+ it defines wire format, identifiers, evaluation semantics, match
1431
+ output, and three conformance levels. Higher-level governance
1432
+ (rule contribution, deprecation, trademark policy) lives in
1433
+ companion documents in the project repository.<a href="#section-1-2" class="pilcrow">¶</a></p>
1434
+ <div id="relationship">
1435
+ <section id="section-1.1">
1436
+ <h3 id="name-relationship-to-existing-st">
1437
+ <a href="#section-1.1" class="section-number selfRef">1.1. </a><a href="#name-relationship-to-existing-st" class="section-name selfRef">Relationship to Existing Standards</a>
1438
+ </h3>
1439
+ <p id="section-1.1-1">ATR is the executable detection layer for AI agent threats.
1440
+ It cites adjacent standards rather than replacing them:<a href="#section-1.1-1" class="pilcrow">¶</a></p>
1441
+ <ul class="normal">
1442
+ <li class="normal" id="section-1.1-2.1">
1443
+ <span>[<a href="#NIST-AI-RMF" class="cite xref">NIST-AI-RMF</a>]</span> and
1444
+ <span>[<a href="#NIST-GAI-PROFILE" class="cite xref">NIST-GAI-PROFILE</a>]</span> define risk management
1445
+ functions (Govern, Map, Measure, Manage). ATR provides
1446
+ detection rules that populate the Measure function at scan
1447
+ time, with a crosswalk in <a href="#cross-walk" class="auto internal xref">Section 8</a>.<a href="#section-1.1-2.1" class="pilcrow">¶</a>
1448
+ </li>
1449
+ <li class="normal" id="section-1.1-2.2">
1450
+ <span>[<a href="#OWASP-AGENTIC" class="cite xref">OWASP-AGENTIC</a>]</span> and
1451
+ <span>[<a href="#MITRE-ATLAS" class="cite xref">MITRE-ATLAS</a>]</span> categorize adversarial
1452
+ behaviors. ATR rule metadata maps each rule to specific
1453
+ categories and techniques in these frameworks. The format
1454
+ itself is inspired by <span>[<a href="#SIGMA" class="cite xref">SIGMA</a>]</span>.<a href="#section-1.1-2.2" class="pilcrow">¶</a>
1455
+ </li>
1456
+ <li class="normal" id="section-1.1-2.3">
1457
+ <span>[<a href="#STIX21" class="cite xref">STIX21</a>]</span> provides a CTI interchange
1458
+ envelope. ATR Match output can be emitted in STIX 2.1 via
1459
+ the x-atr-rule extension defined in the project
1460
+ repository.<a href="#section-1.1-2.3" class="pilcrow">¶</a>
1461
+ </li>
1462
+ </ul>
1463
+ </section>
1464
+ </div>
1465
+ </section>
1466
+ </div>
1467
+ <div id="conventions">
1468
+ <section id="section-2">
1469
+ <h2 id="name-conventions-and-terminology">
1470
+ <a href="#section-2" class="section-number selfRef">2. </a><a href="#name-conventions-and-terminology" class="section-name selfRef">Conventions and Terminology</a>
1471
+ </h2>
1472
+ <p id="section-2-1">The key words "<span class="bcp14">MUST</span>", "<span class="bcp14">MUST NOT</span>",
1473
+ "<span class="bcp14">REQUIRED</span>", "<span class="bcp14">SHALL</span>", "<span class="bcp14">SHALL NOT</span>", "<span class="bcp14">SHOULD</span>", "<span class="bcp14">SHOULD NOT</span>",
1474
+ "<span class="bcp14">RECOMMENDED</span>", "<span class="bcp14">NOT RECOMMENDED</span>",
1475
+ "<span class="bcp14">MAY</span>", and "<span class="bcp14">OPTIONAL</span>" in this
1476
+ document are to be interpreted as described in BCP 14
1477
+ <span>[<a href="#RFC2119" class="cite xref">RFC2119</a>]</span> <span>[<a href="#RFC8174" class="cite xref">RFC8174</a>]</span> when, and only
1478
+ when, they appear in all capitals, as shown here.<a href="#section-2-1" class="pilcrow">¶</a></p>
1479
+ <table class="center" id="table-1">
1480
+ <caption><a href="#table-1" class="selfRef">Table 1</a></caption>
1481
+ <thead>
1482
+ <tr>
1483
+ <th class="text-left" rowspan="1" colspan="1">Term</th>
1484
+ <th class="text-left" rowspan="1" colspan="1">Definition</th>
1485
+ </tr>
1486
+ </thead>
1487
+ <tbody>
1488
+ <tr>
1489
+ <td class="text-left" rowspan="1" colspan="1">Rule</td>
1490
+ <td class="text-left" rowspan="1" colspan="1">A YAML document conforming to <a href="#rule-document-structure" class="auto internal xref">Section 4</a> that describes one detection pattern.</td>
1491
+ </tr>
1492
+ <tr>
1493
+ <td class="text-left" rowspan="1" colspan="1">Rule ID</td>
1494
+ <td class="text-left" rowspan="1" colspan="1">A globally unique identifier in the form ATR-YYYY-NNNNN, see <a href="#rule-identifier" class="auto internal xref">Section 3</a>.</td>
1495
+ </tr>
1496
+ <tr>
1497
+ <td class="text-left" rowspan="1" colspan="1">Engine</td>
1498
+ <td class="text-left" rowspan="1" colspan="1">Software that loads Rules and evaluates Inputs against them.</td>
1499
+ </tr>
1500
+ <tr>
1501
+ <td class="text-left" rowspan="1" colspan="1">Input</td>
1502
+ <td class="text-left" rowspan="1" colspan="1">A structured artifact or AgentEvent submitted for evaluation.</td>
1503
+ </tr>
1504
+ <tr>
1505
+ <td class="text-left" rowspan="1" colspan="1">Match</td>
1506
+ <td class="text-left" rowspan="1" colspan="1">An Engine's output indicating that a Rule's detection condition evaluated to true for a given Input.</td>
1507
+ </tr>
1508
+ <tr>
1509
+ <td class="text-left" rowspan="1" colspan="1">Numbering Authority</td>
1510
+ <td class="text-left" rowspan="1" colspan="1">The body authorized to assign permanent Rule IDs (see project Governance document).</td>
1511
+ </tr>
1512
+ <tr>
1513
+ <td class="text-left" rowspan="1" colspan="1">Conformance Level</td>
1514
+ <td class="text-left" rowspan="1" colspan="1">One of L1, L2, L3, see <a href="#conformance-levels" class="auto internal xref">Section 9</a>.</td>
1515
+ </tr>
1516
+ <tr>
1517
+ <td class="text-left" rowspan="1" colspan="1">Corpus</td>
1518
+ <td class="text-left" rowspan="1" colspan="1">The set of Rules officially published under a given ATR version.</td>
1519
+ </tr>
1520
+ </tbody>
1521
+ </table>
1522
+ </section>
1523
+ </div>
1524
+ <div id="rule-identifier">
1525
+ <section id="section-3">
1526
+ <h2 id="name-rule-identifier">
1527
+ <a href="#section-3" class="section-number selfRef">3. </a><a href="#name-rule-identifier" class="section-name selfRef">Rule Identifier</a>
1528
+ </h2>
1529
+ <div id="rule-id-format">
1530
+ <section id="section-3.1">
1531
+ <h3 id="name-format">
1532
+ <a href="#section-3.1" class="section-number selfRef">3.1. </a><a href="#name-format" class="section-name selfRef">Format</a>
1533
+ </h3>
1534
+ <p id="section-3.1-1">A Rule ID conforms to the following ABNF
1535
+ <span>[<a href="#RFC5234" class="cite xref">RFC5234</a>]</span>:<a href="#section-3.1-1" class="pilcrow">¶</a></p>
1536
+ <div class="lang-abnf sourcecode" id="section-3.1-2">
1537
+ <pre>
1538
+ rule-id = "ATR" "-" year "-" sequence
1539
+ year = 4DIGIT
1540
+ sequence = 5DIGIT
1541
+ DIGIT = %x30-39
1542
+ </pre><a href="#section-3.1-2" class="pilcrow">¶</a>
1543
+ </div>
1544
+ </section>
1545
+ </div>
1546
+ <div id="rule-id-assignment">
1547
+ <section id="section-3.2">
1548
+ <h3 id="name-assignment-rules">
1549
+ <a href="#section-3.2" class="section-number selfRef">3.2. </a><a href="#name-assignment-rules" class="section-name selfRef">Assignment Rules</a>
1550
+ </h3>
1551
+ <ol start="1" type="1" class="normal type-1" id="section-3.2-1">
1552
+ <li id="section-3.2-1.1">Rule IDs <span class="bcp14">MUST</span> be assigned by the Numbering
1553
+ Authority and <span class="bcp14">MUST NOT</span> be self-assigned by
1554
+ contributors.<a href="#section-3.2-1.1" class="pilcrow">¶</a>
1555
+ </li>
1556
+ <li id="section-3.2-1.2">Once assigned, a Rule ID <span class="bcp14">MUST</span> be considered
1557
+ permanent and <span class="bcp14">MUST NOT</span> be reassigned, even if
1558
+ the originally-assigned Rule is deprecated.<a href="#section-3.2-1.2" class="pilcrow">¶</a>
1559
+ </li>
1560
+ <li id="section-3.2-1.3">A Rule ID <span class="bcp14">MUST NOT</span> encode classification
1561
+ information (category, severity, scan target). Classification
1562
+ is carried in metadata fields per
1563
+ <a href="#rule-document-structure" class="auto internal xref">Section 4</a>.<a href="#section-3.2-1.3" class="pilcrow">¶</a>
1564
+ </li>
1565
+ <li id="section-3.2-1.4">A Rule ID <span class="bcp14">MUST</span> be globally unique within
1566
+ the official Corpus.<a href="#section-3.2-1.4" class="pilcrow">¶</a>
1567
+ </li>
1568
+ <li id="section-3.2-1.5">Contributors <span class="bcp14">SHOULD</span> use a placeholder
1569
+ identifier of the form ATR-YYYY-DRAFT-&lt;hex&gt; in pull
1570
+ requests prior to merge.<a href="#section-3.2-1.5" class="pilcrow">¶</a>
1571
+ </li>
1572
+ </ol>
1573
+ </section>
1574
+ </div>
1575
+ </section>
1576
+ </div>
1577
+ <div id="rule-document-structure">
1578
+ <section id="section-4">
1579
+ <h2 id="name-rule-document-structure">
1580
+ <a href="#section-4" class="section-number selfRef">4. </a><a href="#name-rule-document-structure" class="section-name selfRef">Rule Document Structure</a>
1581
+ </h2>
1582
+ <p id="section-4-1">A conforming Rule is a UTF-8 encoded <span>[<a href="#YAML12" class="cite xref">YAML12</a>]</span>
1583
+ document whose top-level value is a mapping containing at minimum
1584
+ the fields defined in this section. Engines <span class="bcp14">MUST</span>
1585
+ preserve unknown top-level fields when round-tripping Rules but
1586
+ <span class="bcp14">MUST NOT</span> allow such fields to alter evaluation
1587
+ outcomes.<a href="#section-4-1" class="pilcrow">¶</a></p>
1588
+ <p id="section-4-2">The full field schema, including required and optional fields
1589
+ with type constraints, is given in the project's
1590
+ spec/atr-schema.yaml and tracked in this document by reference.
1591
+ Required top-level keys are: id, title, status, description,
1592
+ author, date, severity, tags, agent_source, detection, response,
1593
+ test_cases.<a href="#section-4-2" class="pilcrow">¶</a></p>
1594
+ </section>
1595
+ </div>
1596
+ <div id="detection-semantics">
1597
+ <section id="section-5">
1598
+ <h2 id="name-detection-semantics">
1599
+ <a href="#section-5" class="section-number selfRef">5. </a><a href="#name-detection-semantics" class="section-name selfRef">Detection Semantics</a>
1600
+ </h2>
1601
+ <div id="match-definition">
1602
+ <section id="section-5.1">
1603
+ <h3 id="name-match-definition">
1604
+ <a href="#section-5.1" class="section-number selfRef">5.1. </a><a href="#name-match-definition" class="section-name selfRef">Match Definition</a>
1605
+ </h3>
1606
+ <p id="section-5.1-1">Given a Rule R and an Input I, an Engine <span class="bcp14">MUST</span>
1607
+ emit a Match if, and only if, all conditions in
1608
+ R.detection.condition evaluate to true against I per the
1609
+ combinator semantics in <a href="#condition-combinators" class="auto internal xref">Section 5.2</a>.<a href="#section-5.1-1" class="pilcrow">¶</a></p>
1610
+ </section>
1611
+ </div>
1612
+ <div id="condition-combinators">
1613
+ <section id="section-5.2">
1614
+ <h3 id="name-condition-combinators">
1615
+ <a href="#section-5.2" class="section-number selfRef">5.2. </a><a href="#name-condition-combinators" class="section-name selfRef">Condition Combinators</a>
1616
+ </h3>
1617
+ <p id="section-5.2-1">R.detection.condition is a logical expression over named
1618
+ selectors declared in R.detection.selectors. Engines
1619
+ <span class="bcp14">MUST</span> implement:<a href="#section-5.2-1" class="pilcrow">¶</a></p>
1620
+ <table class="center" id="table-2">
1621
+ <caption><a href="#table-2" class="selfRef">Table 2</a></caption>
1622
+ <thead>
1623
+ <tr>
1624
+ <th class="text-left" rowspan="1" colspan="1">Combinator</th>
1625
+ <th class="text-left" rowspan="1" colspan="1">Semantics</th>
1626
+ </tr>
1627
+ </thead>
1628
+ <tbody>
1629
+ <tr>
1630
+ <td class="text-left" rowspan="1" colspan="1">S</td>
1631
+ <td class="text-left" rowspan="1" colspan="1">true iff selector S matches</td>
1632
+ </tr>
1633
+ <tr>
1634
+ <td class="text-left" rowspan="1" colspan="1">S1 and S2</td>
1635
+ <td class="text-left" rowspan="1" colspan="1">true iff both S1 and S2 match</td>
1636
+ </tr>
1637
+ <tr>
1638
+ <td class="text-left" rowspan="1" colspan="1">S1 or S2</td>
1639
+ <td class="text-left" rowspan="1" colspan="1">true iff S1 or S2 matches</td>
1640
+ </tr>
1641
+ <tr>
1642
+ <td class="text-left" rowspan="1" colspan="1">not S</td>
1643
+ <td class="text-left" rowspan="1" colspan="1">true iff S does not match</td>
1644
+ </tr>
1645
+ <tr>
1646
+ <td class="text-left" rowspan="1" colspan="1">all of S*</td>
1647
+ <td class="text-left" rowspan="1" colspan="1">true iff every selector matched by the wildcard matches</td>
1648
+ </tr>
1649
+ <tr>
1650
+ <td class="text-left" rowspan="1" colspan="1">1 of S*</td>
1651
+ <td class="text-left" rowspan="1" colspan="1">true iff at least one selector matched by the wildcard matches</td>
1652
+ </tr>
1653
+ </tbody>
1654
+ </table>
1655
+ </section>
1656
+ </div>
1657
+ <div id="selector-operators">
1658
+ <section id="section-5.3">
1659
+ <h3 id="name-selector-operators">
1660
+ <a href="#section-5.3" class="section-number selfRef">5.3. </a><a href="#name-selector-operators" class="section-name selfRef">Selector Operators</a>
1661
+ </h3>
1662
+ <p id="section-5.3-1">Engines <span class="bcp14">MUST</span> implement the operators below
1663
+ with the given semantics: contains, contains_i, regex
1664
+ (ECMAScript-compatible), equals, startswith, endswith,
1665
+ length_gt, length_lt, in.<a href="#section-5.3-1" class="pilcrow">¶</a></p>
1666
+ <p id="section-5.3-2">Engines <span class="bcp14">MUST</span> reject Rules that use operators
1667
+ outside this list, with a clear error message. Engines
1668
+ <span class="bcp14">MAY</span> support additional operators as extensions
1669
+ but <span class="bcp14">MUST</span> treat Rules using such extensions as
1670
+ non-portable.<a href="#section-5.3-2" class="pilcrow">¶</a></p>
1671
+ </section>
1672
+ </div>
1673
+ <div id="determinism">
1674
+ <section id="section-5.4">
1675
+ <h3 id="name-determinism">
1676
+ <a href="#section-5.4" class="section-number selfRef">5.4. </a><a href="#name-determinism" class="section-name selfRef">Determinism</a>
1677
+ </h3>
1678
+ <p id="section-5.4-1">For a given Engine version, a given Rule, and a given Input,
1679
+ the Match outcome <span class="bcp14">MUST</span> be deterministic. Engines
1680
+ <span class="bcp14">MUST NOT</span> introduce non-determinism (e.g.,
1681
+ sampling, time-of-day branching) into Rule evaluation.<a href="#section-5.4-1" class="pilcrow">¶</a></p>
1682
+ </section>
1683
+ </div>
1684
+ </section>
1685
+ </div>
1686
+ <div id="match-output">
1687
+ <section id="section-6">
1688
+ <h2 id="name-match-output">
1689
+ <a href="#section-6" class="section-number selfRef">6. </a><a href="#name-match-output" class="section-name selfRef">Match Output</a>
1690
+ </h2>
1691
+ <p id="section-6-1">An Engine <span class="bcp14">MUST</span> emit Match output that includes,
1692
+ at minimum, a rule_id, the corpus_version it was loaded from, a
1693
+ stable input_identifier, the matched_at timestamp (ISO 8601), the
1694
+ rule severity, the rule category, and the list of
1695
+ matched_selectors. Engines <span class="bcp14">MAY</span> emit additional
1696
+ fields and <span class="bcp14">MAY</span> use JSON, SARIF, STIX 2.1, or other
1697
+ serializations.<a href="#section-6-1" class="pilcrow">¶</a></p>
1698
+ </section>
1699
+ </div>
1700
+ <div id="canonical-categories">
1701
+ <section id="section-7">
1702
+ <h2 id="name-canonical-categories">
1703
+ <a href="#section-7" class="section-number selfRef">7. </a><a href="#name-canonical-categories" class="section-name selfRef">Canonical Categories</a>
1704
+ </h2>
1705
+ <p id="section-7-1">The following ten categories are normative for the current
1706
+ Specification. New categories are introduced only by
1707
+ Specification amendment.<a href="#section-7-1" class="pilcrow">¶</a></p>
1708
+ <ol start="1" type="1" class="normal type-1" id="section-7-2">
1709
+ <li id="section-7-2.1">prompt-injection<a href="#section-7-2.1" class="pilcrow">¶</a>
1710
+ </li>
1711
+ <li id="section-7-2.2">agent-manipulation<a href="#section-7-2.2" class="pilcrow">¶</a>
1712
+ </li>
1713
+ <li id="section-7-2.3">skill-compromise<a href="#section-7-2.3" class="pilcrow">¶</a>
1714
+ </li>
1715
+ <li id="section-7-2.4">context-exfiltration<a href="#section-7-2.4" class="pilcrow">¶</a>
1716
+ </li>
1717
+ <li id="section-7-2.5">tool-poisoning<a href="#section-7-2.5" class="pilcrow">¶</a>
1718
+ </li>
1719
+ <li id="section-7-2.6">privilege-escalation<a href="#section-7-2.6" class="pilcrow">¶</a>
1720
+ </li>
1721
+ <li id="section-7-2.7">model-abuse<a href="#section-7-2.7" class="pilcrow">¶</a>
1722
+ </li>
1723
+ <li id="section-7-2.8">excessive-autonomy<a href="#section-7-2.8" class="pilcrow">¶</a>
1724
+ </li>
1725
+ <li id="section-7-2.9">model-security<a href="#section-7-2.9" class="pilcrow">¶</a>
1726
+ </li>
1727
+ <li id="section-7-2.10">data-poisoning<a href="#section-7-2.10" class="pilcrow">¶</a>
1728
+ </li>
1729
+ </ol>
1730
+ </section>
1731
+ </div>
1732
+ <div id="cross-walk">
1733
+ <section id="section-8">
1734
+ <h2 id="name-crosswalks">
1735
+ <a href="#section-8" class="section-number selfRef">8. </a><a href="#name-crosswalks" class="section-name selfRef">Crosswalks</a>
1736
+ </h2>
1737
+ <p id="section-8-1">A Rule <span class="bcp14">MAY</span> include a compliance object mapping
1738
+ its detection to external frameworks. Identifiers
1739
+ <span class="bcp14">MUST</span> come from the authoritative source for each
1740
+ framework. Where ambiguity exists, Rule authors
1741
+ <span class="bcp14">SHOULD</span> include a references entry pointing to the
1742
+ source document. Crosswalks defined for the current Specification
1743
+ include <span>[<a href="#OWASP-AGENTIC" class="cite xref">OWASP-AGENTIC</a>]</span>, OWASP LLM Top 10,
1744
+ <span>[<a href="#MITRE-ATLAS" class="cite xref">MITRE-ATLAS</a>]</span>, <span>[<a href="#NIST-AI-RMF" class="cite xref">NIST-AI-RMF</a>]</span>,
1745
+ ISO/IEC 42001, EU AI Act, and <span>[<a href="#SAFE-MCP" class="cite xref">SAFE-MCP</a>]</span>.<a href="#section-8-1" class="pilcrow">¶</a></p>
1746
+ </section>
1747
+ </div>
1748
+ <div id="conformance-levels">
1749
+ <section id="section-9">
1750
+ <h2 id="name-conformance-levels">
1751
+ <a href="#section-9" class="section-number selfRef">9. </a><a href="#name-conformance-levels" class="section-name selfRef">Conformance Levels</a>
1752
+ </h2>
1753
+ <table class="center" id="table-3">
1754
+ <caption><a href="#table-3" class="selfRef">Table 3</a></caption>
1755
+ <thead>
1756
+ <tr>
1757
+ <th class="text-left" rowspan="1" colspan="1">Level</th>
1758
+ <th class="text-left" rowspan="1" colspan="1">Requirement</th>
1759
+ </tr>
1760
+ </thead>
1761
+ <tbody>
1762
+ <tr>
1763
+ <td class="text-left" rowspan="1" colspan="1">L1</td>
1764
+ <td class="text-left" rowspan="1" colspan="1">Engine loads the published Corpus without parse errors and emits Match output for at least one Rule.</td>
1765
+ </tr>
1766
+ <tr>
1767
+ <td class="text-left" rowspan="1" colspan="1">L2</td>
1768
+ <td class="text-left" rowspan="1" colspan="1">Engine passes 100 percent of the Conformance Test Suite for the declared Spec version.</td>
1769
+ </tr>
1770
+ <tr>
1771
+ <td class="text-left" rowspan="1" colspan="1">L3</td>
1772
+ <td class="text-left" rowspan="1" colspan="1">Engine passes L2, emits Match output in at least two interchange formats (JSON plus one of SARIF, STIX 2.1, MISP, OpenCTI), and publishes its results against the public benign Corpus with documented false-positive rate.</td>
1773
+ </tr>
1774
+ </tbody>
1775
+ </table>
1776
+ <p id="section-9-2">An implementation <span class="bcp14">MAY</span> claim "ATR-Compatible"
1777
+ only with a declared Conformance Level and a reproducible test
1778
+ report.<a href="#section-9-2" class="pilcrow">¶</a></p>
1779
+ </section>
1780
+ </div>
1781
+ <div id="security-considerations">
1782
+ <section id="section-10">
1783
+ <h2 id="name-security-considerations">
1784
+ <a href="#section-10" class="section-number selfRef">10. </a><a href="#name-security-considerations" class="section-name selfRef">Security Considerations</a>
1785
+ </h2>
1786
+ <p id="section-10-1">Rules are content that an Engine evaluates against potentially
1787
+ untrusted Inputs. An Engine <span class="bcp14">MUST NOT</span> permit a
1788
+ Rule's free-form metadata fields (description, references) to
1789
+ alter evaluation behavior. Only fields listed in
1790
+ <a href="#rule-document-structure" class="auto internal xref">Section 4</a>,
1791
+ <a href="#detection-semantics" class="auto internal xref">Section 5</a>, and the match-output
1792
+ section affect evaluation.<a href="#section-10-1" class="pilcrow">¶</a></p>
1793
+ <p id="section-10-2">A malformed regex selector may cause catastrophic backtracking.
1794
+ Engines <span class="bcp14">MUST</span> apply a per-rule execution timeout
1795
+ (<span class="bcp14">RECOMMENDED</span>: 100 ms per Input per Rule) and
1796
+ <span class="bcp14">MUST</span> report a timeout as a non-match rather than
1797
+ an error.<a href="#section-10-2" class="pilcrow">¶</a></p>
1798
+ <p id="section-10-3">If a Rule's matched substring contains PII or sensitive
1799
+ credentials, Engines <span class="bcp14">SHOULD</span> provide a redaction
1800
+ option that hashes or truncates the matched substring before
1801
+ emitting Match output.<a href="#section-10-3" class="pilcrow">¶</a></p>
1802
+ </section>
1803
+ </div>
1804
+ <div id="iana-considerations">
1805
+ <section id="section-11">
1806
+ <h2 id="name-iana-considerations">
1807
+ <a href="#section-11" class="section-number selfRef">11. </a><a href="#name-iana-considerations" class="section-name selfRef">IANA Considerations</a>
1808
+ </h2>
1809
+ <p id="section-11-1">This document requests registration of the following media
1810
+ types:<a href="#section-11-1" class="pilcrow">¶</a></p>
1811
+ <ul class="normal">
1812
+ <li class="normal" id="section-11-2.1">application/vnd.atr.rule+yaml — a single ATR Rule<a href="#section-11-2.1" class="pilcrow">¶</a>
1813
+ </li>
1814
+ <li class="normal" id="section-11-2.2">application/vnd.atr.corpus+yaml — a corpus manifest listing multiple Rules<a href="#section-11-2.2" class="pilcrow">¶</a>
1815
+ </li>
1816
+ <li class="normal" id="section-11-2.3">application/vnd.atr.match+json — Match output<a href="#section-11-2.3" class="pilcrow">¶</a>
1817
+ </li>
1818
+ </ul>
1819
+ <p id="section-11-3">Registration templates are provided in Appendix B of the
1820
+ project's SPEC.md and will be filed with IANA on advancement of
1821
+ this document.<a href="#section-11-3" class="pilcrow">¶</a></p>
1822
+ </section>
1823
+ </div>
1824
+ <section id="section-12">
1825
+ <h2 id="name-normative-references">
1826
+ <a href="#section-12" class="section-number selfRef">12. </a><a href="#name-normative-references" class="section-name selfRef">Normative References</a>
1827
+ </h2>
1828
+ <dl class="references">
1829
+ <dt id="RFC2119">[RFC2119]</dt>
1830
+ <dd>
1831
+ <span class="refAuthor">Bradner, S.</span>, <span class="refTitle">"Key words for use in RFCs to Indicate Requirement Levels"</span>, <span class="seriesInfo">BCP 14</span>, <span class="seriesInfo">RFC 2119</span>, <time datetime="1997-03" class="refDate">March 1997</time>, <span>&lt;<a href="https://www.rfc-editor.org/rfc/rfc2119">https://www.rfc-editor.org/rfc/rfc2119</a>&gt;</span>. </dd>
1832
+ <dd class="break"></dd>
1833
+ <dt id="RFC8174">[RFC8174]</dt>
1834
+ <dd>
1835
+ <span class="refAuthor">Leiba, B.</span>, <span class="refTitle">"Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words"</span>, <span class="seriesInfo">BCP 14</span>, <span class="seriesInfo">RFC 8174</span>, <time datetime="2017-05" class="refDate">May 2017</time>, <span>&lt;<a href="https://www.rfc-editor.org/rfc/rfc8174">https://www.rfc-editor.org/rfc/rfc8174</a>&gt;</span>. </dd>
1836
+ <dd class="break"></dd>
1837
+ <dt id="RFC5234">[RFC5234]</dt>
1838
+ <dd>
1839
+ <span class="refAuthor">Crocker, D., Ed.</span> and <span class="refAuthor">P. Overell</span>, <span class="refTitle">"Augmented BNF for Syntax Specifications: ABNF"</span>, <span class="seriesInfo">STD 68</span>, <span class="seriesInfo">RFC 5234</span>, <time datetime="2008-01" class="refDate">January 2008</time>, <span>&lt;<a href="https://www.rfc-editor.org/rfc/rfc5234">https://www.rfc-editor.org/rfc/rfc5234</a>&gt;</span>. </dd>
1840
+ <dd class="break"></dd>
1841
+ <dt id="YAML12">[YAML12]</dt>
1842
+ <dd>
1843
+ <span class="refAuthor">Ben-Kiki, O.</span>, <span class="refAuthor">Evans, C.</span>, and <span class="refAuthor">I. dot Net</span>, <span class="refTitle">"YAML Ain't Markup Language (YAML) Version 1.2 (3rd Edition)"</span>, <time datetime="2021-10" class="refDate">October 2021</time>, <span>&lt;<a href="https://yaml.org/spec/1.2.2/">https://yaml.org/spec/1.2.2/</a>&gt;</span>. </dd>
1844
+ <dd class="break"></dd>
1845
+ </dl>
1846
+ </section>
1847
+ <section id="section-13">
1848
+ <h2 id="name-informative-references">
1849
+ <a href="#section-13" class="section-number selfRef">13. </a><a href="#name-informative-references" class="section-name selfRef">Informative References</a>
1850
+ </h2>
1851
+ <dl class="references">
1852
+ <dt id="SIGMA">[SIGMA]</dt>
1853
+ <dd>
1854
+ <span class="refAuthor">SigmaHQ</span>, <span class="refTitle">"Sigma Rule Specification"</span>, <time datetime="2024" class="refDate">2024</time>, <span>&lt;<a href="https://github.com/SigmaHQ/sigma-specification">https://github.com/SigmaHQ/sigma-specification</a>&gt;</span>. </dd>
1855
+ <dd class="break"></dd>
1856
+ <dt id="STIX21">[STIX21]</dt>
1857
+ <dd>
1858
+ <span class="refAuthor">OASIS</span>, <span class="refTitle">"STIX Version 2.1 OASIS Standard"</span>, <time datetime="2021" class="refDate">2021</time>, <span>&lt;<a href="https://docs.oasis-open.org/cti/stix/v2.1/stix-v2.1.html">https://docs.oasis-open.org/cti/stix/v2.1/stix-v2.1.html</a>&gt;</span>. </dd>
1859
+ <dd class="break"></dd>
1860
+ <dt id="NIST-AI-RMF">[NIST-AI-RMF]</dt>
1861
+ <dd>
1862
+ <span class="refAuthor">NIST</span>, <span class="refTitle">"Artificial Intelligence Risk Management Framework (AI 100-1)"</span>, <time datetime="2023" class="refDate">2023</time>, <span>&lt;<a href="https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf">https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf</a>&gt;</span>. </dd>
1863
+ <dd class="break"></dd>
1864
+ <dt id="NIST-GAI-PROFILE">[NIST-GAI-PROFILE]</dt>
1865
+ <dd>
1866
+ <span class="refAuthor">NIST</span>, <span class="refTitle">"NIST AI 600-1 Generative AI Profile"</span>, <time datetime="2024" class="refDate">2024</time>, <span>&lt;<a href="https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.600-1.pdf">https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.600-1.pdf</a>&gt;</span>. </dd>
1867
+ <dd class="break"></dd>
1868
+ <dt id="OWASP-AGENTIC">[OWASP-AGENTIC]</dt>
1869
+ <dd>
1870
+ <span class="refAuthor">OWASP Gen AI Security Project</span>, <span class="refTitle">"OWASP Agentic Security Initiative Top 10 (2026)"</span>, <time datetime="2026" class="refDate">2026</time>, <span>&lt;<a href="https://genai.owasp.org/llm-top-10/agentic-top-10/">https://genai.owasp.org/llm-top-10/agentic-top-10/</a>&gt;</span>. </dd>
1871
+ <dd class="break"></dd>
1872
+ <dt id="MITRE-ATLAS">[MITRE-ATLAS]</dt>
1873
+ <dd>
1874
+ <span class="refAuthor">MITRE Corporation</span>, <span class="refTitle">"Adversarial Threat Landscape for AI Systems"</span>, <time datetime="2024" class="refDate">2024</time>, <span>&lt;<a href="https://atlas.mitre.org/">https://atlas.mitre.org/</a>&gt;</span>. </dd>
1875
+ <dd class="break"></dd>
1876
+ <dt id="SAFE-MCP">[SAFE-MCP]</dt>
1877
+ <dd>
1878
+ <span class="refAuthor">safe-agentic-framework</span>, <span class="refTitle">"Secure AI Framework for Enterprise — Model Context Protocol"</span>, <time datetime="2026" class="refDate">2026</time>, <span>&lt;<a href="https://github.com/safe-agentic-framework/safe-mcp">https://github.com/safe-agentic-framework/safe-mcp</a>&gt;</span>. </dd>
1879
+ <dd class="break"></dd>
1880
+ </dl>
1881
+ </section>
1882
+ <div id="acknowledgments">
1883
+ <section id="appendix-A">
1884
+ <h2 id="name-acknowledgments">
1885
+ <a href="#appendix-A" class="section-number selfRef">Appendix A. </a><a href="#name-acknowledgments" class="section-name selfRef">Acknowledgments</a>
1886
+ </h2>
1887
+ <p id="appendix-A-1">The author acknowledges contributions from external maintainers
1888
+ at Cisco AI Defense, MISP / CIRCL, Microsoft Agent Governance
1889
+ Toolkit, Gen Digital Sage, and the OWASP Gen AI Security Project,
1890
+ as well as researchers at NVIDIA garak and the HackAPrompt 2023
1891
+ competition whose attack payloads seeded the rule corpus.<a href="#appendix-A-1" class="pilcrow">¶</a></p>
1892
+ </section>
1893
+ </div>
1894
+ <div id="authors-addresses">
1895
+ <section id="appendix-B">
1896
+ <h2 id="name-authors-address">
1897
+ <a href="#name-authors-address" class="section-name selfRef">Author's Address</a>
1898
+ </h2>
1899
+ <address class="vcard">
1900
+ <div dir="auto" class="left"><span class="fn nameRole">Kuan-Hsin Lin</span></div>
1901
+ <div dir="auto" class="left"><span class="org">ATR Project / Panguard AI, Inc.</span></div>
1902
+ <div dir="auto" class="left">
1903
+ <span class="locality">Taipei</span>, </div>
1904
+ <div dir="auto" class="left"><span class="country-name">Taiwan</span></div>
1905
+ <div class="email">
1906
+ <span>Email:</span>
1907
+ <a href="mailto:adam@agentthreatrule.org" class="email">adam@agentthreatrule.org</a>
1908
+ </div>
1909
+ <div class="url">
1910
+ <span>URI:</span>
1911
+ <a href="https://agentthreatrule.org" class="url">https://agentthreatrule.org</a>
1912
+ </div>
1913
+ </address>
1914
+ </section>
1915
+ </div>
1916
+ <script>const toc = document.getElementById("toc");
1917
+ toc.querySelector("h2").addEventListener("click", e => {
1918
+ toc.classList.toggle("active");
1919
+ });
1920
+ toc.querySelector("nav").addEventListener("click", e => {
1921
+ toc.classList.remove("active");
1922
+ });
1923
+ </script>
1924
+ </body>
1925
+ </html>