agent-threat-rules 2.1.5 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +365 -327
- package/dist/engine.d.ts +46 -1
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +242 -1
- package/dist/engine.js.map +1 -1
- package/dist/eval/eval-harness.d.ts.map +1 -1
- package/dist/eval/eval-harness.js +9 -0
- package/dist/eval/eval-harness.js.map +1 -1
- package/dist/eval/run-hackaprompt-benchmark.js +9 -0
- package/dist/eval/run-hackaprompt-benchmark.js.map +1 -1
- package/dist/eval/run-pint-benchmark.js +9 -0
- package/dist/eval/run-pint-benchmark.js.map +1 -1
- package/dist/eval/skill-benchmark.d.ts +11 -0
- package/dist/eval/skill-benchmark.d.ts.map +1 -1
- package/dist/eval/skill-benchmark.js +57 -0
- package/dist/eval/skill-benchmark.js.map +1 -1
- package/dist/measurement/from-eval-harness.d.ts +70 -0
- package/dist/measurement/from-eval-harness.d.ts.map +1 -0
- package/dist/measurement/from-eval-harness.js +49 -0
- package/dist/measurement/from-eval-harness.js.map +1 -0
- package/dist/measurement/schema.d.ts +152 -0
- package/dist/measurement/schema.d.ts.map +1 -0
- package/dist/measurement/schema.js +178 -0
- package/dist/measurement/schema.js.map +1 -0
- package/dist/measurement/write.d.ts +64 -0
- package/dist/measurement/write.d.ts.map +1 -0
- package/dist/measurement/write.js +163 -0
- package/dist/measurement/write.js.map +1 -0
- package/dist/semantic-evaluator.d.ts +48 -0
- package/dist/semantic-evaluator.d.ts.map +1 -0
- package/dist/semantic-evaluator.js +107 -0
- package/dist/semantic-evaluator.js.map +1 -0
- package/dist/trace-evaluator.d.ts +22 -0
- package/dist/trace-evaluator.d.ts.map +1 -0
- package/dist/trace-evaluator.js +249 -0
- package/dist/trace-evaluator.js.map +1 -0
- package/dist/types.d.ts +143 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -3
- package/rules/agent-manipulation/ATR-2026-00552-goal-drift-after-pressure-injection.yaml +216 -0
- package/rules/context-exfiltration/ATR-2026-00471-garak-sysprompt-extraction-mixedunassigned.yaml +126 -0
- package/rules/context-exfiltration/ATR-2026-00501-data-exfiltration-via-markdown-image-and-link-url-injection.yaml +173 -0
- package/rules/context-exfiltration/ATR-2026-00504-tool-and-function-capability-enumeration.yaml +164 -0
- package/rules/context-exfiltration/ATR-2026-00505-system-prompt-extraction-instruction-dump-request.yaml +178 -0
- package/rules/context-exfiltration/ATR-2026-00514-system-prompt-extraction.yaml +202 -0
- package/rules/context-exfiltration/ATR-2026-00516-output-xss-via-llm.yaml +180 -0
- package/rules/context-exfiltration/ATR-2026-00524-claude-code-anthropic-base-url-credential-exfil.yaml +257 -0
- package/rules/context-exfiltration/ATR-2026-00548-cross-agent-session-context-leak.yaml +177 -0
- package/rules/excessive-autonomy/ATR-2026-00491-garak-agent-breaker-markdown-just-raw-json.yaml +152 -0
- package/rules/excessive-autonomy/ATR-2026-00500-ssrf-via-agent-url-fetch-instruction.yaml +168 -0
- package/rules/excessive-autonomy/ATR-2026-00553-runaway-tool-loop-behavioral.yaml +174 -0
- package/rules/model-abuse/ATR-2026-00502-training-data-extraction-via-divergent-repetition-attack.yaml +158 -0
- package/rules/model-abuse/ATR-2026-00517-model-extraction-distillation.yaml +187 -0
- package/rules/privilege-escalation/ATR-2026-00528-praisonai-auth-disabled-default.yaml +192 -0
- package/rules/privilege-escalation/ATR-2026-00539-crewai-codeinterpreter-sandbox-escape-rce.yaml +292 -0
- package/rules/privilege-escalation/ATR-2026-00546-crewai-json-loader-local-file-read.yaml +162 -0
- package/rules/privilege-escalation/ATR-2026-00547-crewai-rag-url-ssrf-bypass.yaml +167 -0
- package/rules/privilege-escalation/ATR-2026-00549-destructive-tool-without-human-approval.yaml +193 -0
- package/rules/privilege-escalation/ATR-2026-00551-cross-conversation-memory-write.yaml +198 -0
- package/rules/prompt-injection/ATR-2026-00452-direct-pwned-payload-injection.yaml +172 -0
- package/rules/prompt-injection/ATR-2026-00453-secret-key-reveal-demand.yaml +165 -0
- package/rules/prompt-injection/ATR-2026-00454-backslash-per-character-encoding.yaml +162 -0
- package/rules/prompt-injection/ATR-2026-00455-no-period-output-override.yaml +153 -0
- package/rules/prompt-injection/ATR-2026-00456-conditional-empty-input-injection.yaml +168 -0
- package/rules/prompt-injection/ATR-2026-00457-garak-dan-to-every-prompt.yaml +160 -0
- package/rules/prompt-injection/ATR-2026-00458-garak-dra-step-by-step.yaml +143 -0
- package/rules/prompt-injection/ATR-2026-00459-garak-dan-an-ai-language.yaml +136 -0
- package/rules/prompt-injection/ATR-2026-00460-garak-dan-no-matter-how.yaml +162 -0
- package/rules/prompt-injection/ATR-2026-00461-garak-goodside-mixedunassigned.yaml +140 -0
- package/rules/prompt-injection/ATR-2026-00462-garak-gcg-mixedunassigned.yaml +141 -0
- package/rules/prompt-injection/ATR-2026-00463-garak-lmrc-mixedunassigned.yaml +142 -0
- package/rules/prompt-injection/ATR-2026-00464-garak-dan-i-would-like.yaml +139 -0
- package/rules/prompt-injection/ATR-2026-00465-garak-dan-your-prompt-here.yaml +145 -0
- package/rules/prompt-injection/ATR-2026-00466-garak-latentinjection-following-text-from.yaml +141 -0
- package/rules/prompt-injection/ATR-2026-00467-garak-dan-act-as-a.yaml +140 -0
- package/rules/prompt-injection/ATR-2026-00468-garak-goat-the-target-llm.yaml +141 -0
- package/rules/prompt-injection/ATR-2026-00469-garak-dan-at-the-end.yaml +140 -0
- package/rules/prompt-injection/ATR-2026-00470-garak-dan-as-an-ai.yaml +155 -0
- package/rules/prompt-injection/ATR-2026-00472-garak-dan-are-going-to.yaml +150 -0
- package/rules/prompt-injection/ATR-2026-00473-garak-lmrc-how-can-i.yaml +140 -0
- package/rules/prompt-injection/ATR-2026-00474-garak-dan-that-chatgpt-has.yaml +133 -0
- package/rules/prompt-injection/ATR-2026-00475-garak-web-injection-alert-1-script.yaml +136 -0
- package/rules/prompt-injection/ATR-2026-00476-garak-web-injection-javascript-alert-1.yaml +157 -0
- package/rules/prompt-injection/ATR-2026-00477-garak-latentinjection-translate-the-following-text.yaml +143 -0
- package/rules/prompt-injection/ATR-2026-00478-garak-latentinjection-abuse-contact-email.yaml +136 -0
- package/rules/prompt-injection/ATR-2026-00479-garak-latentinjection-mixedunassigned.yaml +146 -0
- package/rules/prompt-injection/ATR-2026-00480-garak-dan-the-role-of.yaml +137 -0
- package/rules/prompt-injection/ATR-2026-00481-garak-dan-mixedunassigned.yaml +153 -0
- package/rules/prompt-injection/ATR-2026-00482-garak-lmrc-what-s-an.yaml +128 -0
- package/rules/prompt-injection/ATR-2026-00483-garak-dan-the-user-s.yaml +141 -0
- package/rules/prompt-injection/ATR-2026-00484-garak-dan-and-you-will.yaml +138 -0
- package/rules/prompt-injection/ATR-2026-00485-garak-dan-and-does-not.yaml +141 -0
- package/rules/prompt-injection/ATR-2026-00486-garak-dan-t-care-about.yaml +125 -0
- package/rules/prompt-injection/ATR-2026-00487-garak-dan-and-nothing-else.yaml +134 -0
- package/rules/prompt-injection/ATR-2026-00488-garak-encoding-alert-1-script.yaml +137 -0
- package/rules/prompt-injection/ATR-2026-00489-garak-encoding-javascript-alert-1.yaml +158 -0
- package/rules/prompt-injection/ATR-2026-00490-garak-dan-in-order-to.yaml +158 -0
- package/rules/prompt-injection/ATR-2026-00492-garak-dan-want-you-to.yaml +156 -0
- package/rules/prompt-injection/ATR-2026-00493-garak-latentinjection-registrar-iana-id.yaml +158 -0
- package/rules/prompt-injection/ATR-2026-00495-garak-dan-insert-prompt-here.yaml +177 -0
- package/rules/prompt-injection/ATR-2026-00496-garak-dan-no-matter-what.yaml +148 -0
- package/rules/prompt-injection/ATR-2026-00497-garak-encoding-mixedunassigned.yaml +179 -0
- package/rules/prompt-injection/ATR-2026-00498-garak-web-injection-mixedunassigned.yaml +169 -0
- package/rules/prompt-injection/ATR-2026-00499-garak-dan-from-now-on.yaml +150 -0
- package/rules/prompt-injection/ATR-2026-00503-fake-error-state-takeover-unrestricted-replacement-bot.yaml +160 -0
- package/rules/prompt-injection/ATR-2026-00506-nevermind-override-goal-hijacking-in-user-input-promptinject.yaml +149 -0
- package/rules/prompt-injection/ATR-2026-00507-screaming-stop-goal-hijacking-in-user-input-promptinject.yaml +154 -0
- package/rules/prompt-injection/ATR-2026-00508-escape-delimiter-wrapped-goal-hijacking-in-user-input-prompt.yaml +154 -0
- package/rules/prompt-injection/ATR-2026-00509-prompt-leaking-via-ignore-previous-instructions-in-user-inpu.yaml +168 -0
- package/rules/prompt-injection/ATR-2026-00510-delayed-tool-invocation-injection.yaml +189 -0
- package/rules/prompt-injection/ATR-2026-00511-mcp-web-context-poisoning.yaml +185 -0
- package/rules/prompt-injection/ATR-2026-00512-rules-file-backdoor-injection.yaml +181 -0
- package/rules/prompt-injection/ATR-2026-00515-hidden-text-prompt-injection.yaml +194 -0
- package/rules/prompt-injection/ATR-2026-00518-ignore-previous-and-following-instructions-output-command-promptinject.yaml +154 -0
- package/rules/prompt-injection/ATR-2026-00519-tautology-logic-noise-injection-promptbench.yaml +151 -0
- package/rules/prompt-injection/ATR-2026-00520-nlp-task-random-token-suffix-injection-promptbench.yaml +153 -0
- package/rules/prompt-injection/ATR-2026-00535-windsurf-ide-zero-click-prompt-injection.yaml +199 -0
- package/rules/prompt-injection/ATR-2026-00550-untrusted-retrieval-to-privileged-tool.yaml +199 -0
- package/rules/skill-compromise/ATR-2026-00123-skill-overreach-permissions.yaml +5 -2
- package/rules/skill-compromise/ATR-2026-00523-claude-code-hooks-session-start-pre-trust-rce.yaml +221 -0
- package/rules/skill-compromise/ATR-2026-00525-mini-shai-hulud-gh-token-monitor-persistence.yaml +220 -0
- package/rules/skill-compromise/ATR-2026-00527-skill-silent-git-remote-mirror-exfiltration.yaml +201 -0
- package/rules/tool-poisoning/ATR-2026-00494-garak-exploitation-mixedunassigned.yaml +179 -0
- package/rules/tool-poisoning/ATR-2026-00513-package-hallucination-exploitation.yaml +167 -0
- package/rules/tool-poisoning/ATR-2026-00521-shell-command-injection-agent-tool-context.yaml +176 -0
- package/rules/tool-poisoning/ATR-2026-00522-sql-injection-natural-language-agent-interface.yaml +219 -0
- package/rules/tool-poisoning/ATR-2026-00526-claude-code-shell-metachar-in-double-quoted-path.yaml +167 -0
- package/rules/tool-poisoning/ATR-2026-00529-litellm-proxy-sqli-cisa-kev.yaml +158 -0
- package/rules/tool-poisoning/ATR-2026-00530-ms-agent-shell-tool-unsanitized-argv-rce.yaml +184 -0
- package/rules/tool-poisoning/ATR-2026-00531-praisonai-unauthenticated-agent-api.yaml +174 -0
- package/rules/tool-poisoning/ATR-2026-00532-apache-doris-mcp-sql-injection.yaml +155 -0
- package/rules/tool-poisoning/ATR-2026-00533-apache-pinot-mcp-unauthenticated-takeover.yaml +151 -0
- package/rules/tool-poisoning/ATR-2026-00534-alibaba-rds-mcp-unauthenticated-metadata-exfil.yaml +155 -0
- package/rules/tool-poisoning/ATR-2026-00536-nginx-ui-mcp-unauthenticated-command-execution.yaml +199 -0
- package/rules/tool-poisoning/ATR-2026-00537-fastmcp-server-name-cmd-injection-windows.yaml +226 -0
- package/rules/tool-poisoning/ATR-2026-00538-langchain-chatchat-mcp-stdio-unauthenticated-rce.yaml +244 -0
- package/rules/tool-poisoning/ATR-2026-00540-praisonai-parse-mcp-command-cli-injection.yaml +186 -0
- package/rules/tool-poisoning/ATR-2026-00541-agent-zero-mcp-config-command-injection.yaml +183 -0
- package/rules/tool-poisoning/ATR-2026-00542-upsonic-mcp-command-allowlist-bypass.yaml +166 -0
- package/rules/tool-poisoning/ATR-2026-00543-litellm-mcp-server-argv-injection.yaml +168 -0
- package/rules/tool-poisoning/ATR-2026-00544-praisonai-pth-file-path-traversal-rce.yaml +172 -0
- package/rules/tool-poisoning/ATR-2026-00545-praisonai-tool-override-unauth-rce.yaml +170 -0
- package/spec/README.md +279 -0
- package/spec/atr-correlation-v1.0.md +281 -0
- package/spec/atr-event-v1.0.md +294 -0
- package/spec/atr-language-detection-v1.0.md +218 -0
- package/spec/atr-method-v1.1.md +557 -0
- package/spec/atr-profile-v1.0.md +307 -0
- package/spec/atr-schema.yaml +279 -8
- package/spec/category-registry/v1.0.yaml +200 -0
- package/spec/conformance/README.md +244 -0
- package/spec/conformance/SIGNING.md +191 -0
- package/spec/conformance/baseline/fixtures/ATR-2026-00001-tp-001/expected.json +36 -0
- package/spec/conformance/baseline/fixtures/ATR-2026-00001-tp-001/input.json +16 -0
- package/spec/conformance/baseline/fixtures/README.md +120 -0
- package/spec/conformance/baseline/manifest.json +56 -0
- package/spec/conformance/expected-results.schema.json +121 -0
- package/spec/external-registries/cccs-yara.md +142 -0
- package/spec/internet-drafts/draft-lin-atr-core-00.html +1925 -0
- package/spec/internet-drafts/draft-lin-atr-core-00.md +288 -0
- package/spec/internet-drafts/draft-lin-atr-core-00.txt +560 -0
- package/spec/internet-drafts/draft-lin-atr-core-00.xml +424 -0
- package/spec/mappings/README.md +43 -0
- package/spec/mappings/atr-to-nist-csf-2.0.md +234 -0
- package/spec/schema/correlation.schema.json +144 -0
- package/spec/schema/event.schema.json +233 -0
- package/spec/schema/profile.schema.json +196 -0
- package/spec/schema/rule.schema.json +224 -0
- package/spec/stix-extension/README.md +76 -13
- package/spec/stix-extension/examples/atr-rule-trace-method-example.json +85 -0
- package/spec/stix-extension/extension-definition.json +23 -3
- 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-<hex> 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><<a href="https://www.rfc-editor.org/rfc/rfc2119">https://www.rfc-editor.org/rfc/rfc2119</a>></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><<a href="https://www.rfc-editor.org/rfc/rfc8174">https://www.rfc-editor.org/rfc/rfc8174</a>></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><<a href="https://www.rfc-editor.org/rfc/rfc5234">https://www.rfc-editor.org/rfc/rfc5234</a>></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><<a href="https://yaml.org/spec/1.2.2/">https://yaml.org/spec/1.2.2/</a>></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><<a href="https://github.com/SigmaHQ/sigma-specification">https://github.com/SigmaHQ/sigma-specification</a>></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><<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>></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><<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>></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><<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>></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><<a href="https://genai.owasp.org/llm-top-10/agentic-top-10/">https://genai.owasp.org/llm-top-10/agentic-top-10/</a>></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><<a href="https://atlas.mitre.org/">https://atlas.mitre.org/</a>></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><<a href="https://github.com/safe-agentic-framework/safe-mcp">https://github.com/safe-agentic-framework/safe-mcp</a>></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>
|