@panguard-ai/atr 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -46
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +42 -18
- package/dist/cli.js.map +1 -1
- package/dist/coverage-analyzer.d.ts.map +1 -1
- package/dist/coverage-analyzer.js.map +1 -1
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +28 -13
- package/dist/engine.js.map +1 -1
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +32 -7
- package/dist/loader.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +38 -14
- package/dist/mcp-server.js.map +1 -1
- package/dist/mcp-tools/coverage-gaps.d.ts.map +1 -1
- package/dist/mcp-tools/coverage-gaps.js +3 -1
- package/dist/mcp-tools/coverage-gaps.js.map +1 -1
- package/dist/mcp-tools/list-rules.d.ts.map +1 -1
- package/dist/mcp-tools/list-rules.js.map +1 -1
- package/dist/mcp-tools/scan.d.ts.map +1 -1
- package/dist/mcp-tools/scan.js +15 -3
- package/dist/mcp-tools/scan.js.map +1 -1
- package/dist/mcp-tools/submit-proposal.d.ts.map +1 -1
- package/dist/mcp-tools/submit-proposal.js +27 -6
- package/dist/mcp-tools/submit-proposal.js.map +1 -1
- package/dist/mcp-tools/threat-summary.d.ts.map +1 -1
- package/dist/mcp-tools/threat-summary.js +1 -3
- package/dist/mcp-tools/threat-summary.js.map +1 -1
- package/dist/mcp-tools/validate.d.ts.map +1 -1
- package/dist/mcp-tools/validate.js +15 -3
- package/dist/mcp-tools/validate.js.map +1 -1
- package/dist/modules/index.js +1 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/semantic.d.ts.map +1 -1
- package/dist/modules/semantic.js +14 -8
- package/dist/modules/semantic.js.map +1 -1
- package/dist/modules/session.d.ts.map +1 -1
- package/dist/modules/session.js +50 -15
- package/dist/modules/session.js.map +1 -1
- package/dist/rule-scaffolder.d.ts.map +1 -1
- package/dist/rule-scaffolder.js +1 -3
- package/dist/rule-scaffolder.js.map +1 -1
- package/dist/session-tracker.d.ts.map +1 -1
- package/dist/session-tracker.js.map +1 -1
- package/dist/skill-fingerprint.d.ts.map +1 -1
- package/dist/skill-fingerprint.js +1 -2
- package/dist/skill-fingerprint.js.map +1 -1
- package/package.json +2 -2
- package/rules/agent-manipulation/ATR-2026-030-cross-agent-attack.yaml +51 -51
- package/rules/agent-manipulation/ATR-2026-032-goal-hijacking.yaml +36 -36
- package/rules/agent-manipulation/ATR-2026-074-cross-agent-privilege-escalation.yaml +32 -32
- package/rules/agent-manipulation/ATR-2026-076-inter-agent-message-spoofing.yaml +55 -55
- package/rules/agent-manipulation/ATR-2026-077-human-trust-exploitation.yaml +42 -42
- package/rules/context-exfiltration/ATR-2026-020-system-prompt-leak.yaml +51 -51
- package/rules/context-exfiltration/ATR-2026-021-api-key-exposure.yaml +62 -62
- package/rules/context-exfiltration/ATR-2026-075-agent-memory-manipulation.yaml +33 -33
- package/rules/data-poisoning/ATR-2026-070-data-poisoning.yaml +53 -53
- package/rules/excessive-autonomy/ATR-2026-050-runaway-agent-loop.yaml +39 -39
- package/rules/excessive-autonomy/ATR-2026-051-resource-exhaustion.yaml +41 -41
- package/rules/excessive-autonomy/ATR-2026-052-cascading-failure.yaml +54 -54
- package/rules/excessive-autonomy/ATR-2026-098-unauthorized-financial-action.yaml +155 -0
- package/rules/excessive-autonomy/ATR-2026-099-high-risk-tool-gate.yaml +159 -0
- package/rules/model-security/ATR-2026-072-model-behavior-extraction.yaml +34 -34
- package/rules/model-security/ATR-2026-073-malicious-finetuning-data.yaml +26 -26
- package/rules/privilege-escalation/ATR-2026-040-privilege-escalation.yaml +58 -58
- package/rules/privilege-escalation/ATR-2026-041-scope-creep.yaml +35 -35
- package/rules/prompt-injection/ATR-2026-001-direct-prompt-injection.yaml +88 -84
- package/rules/prompt-injection/ATR-2026-002-indirect-prompt-injection.yaml +63 -63
- package/rules/prompt-injection/ATR-2026-003-jailbreak-attempt.yaml +74 -74
- package/rules/prompt-injection/ATR-2026-004-system-prompt-override.yaml +55 -55
- package/rules/prompt-injection/ATR-2026-005-multi-turn-injection.yaml +47 -47
- package/rules/prompt-injection/ATR-2026-080-encoding-evasion.yaml +79 -0
- package/rules/prompt-injection/ATR-2026-081-semantic-multi-turn.yaml +76 -0
- package/rules/prompt-injection/ATR-2026-082-fingerprint-evasion.yaml +75 -0
- package/rules/prompt-injection/ATR-2026-083-indirect-tool-injection.yaml +75 -0
- package/rules/prompt-injection/ATR-2026-084-structured-data-injection.yaml +77 -0
- package/rules/prompt-injection/ATR-2026-085-audit-evasion.yaml +75 -0
- package/rules/prompt-injection/ATR-2026-086-visual-spoofing.yaml +79 -0
- package/rules/prompt-injection/ATR-2026-087-rule-probing.yaml +73 -0
- package/rules/prompt-injection/ATR-2026-088-adaptive-countermeasure.yaml +75 -0
- package/rules/prompt-injection/ATR-2026-089-polymorphic-skill.yaml +76 -0
- package/rules/prompt-injection/ATR-2026-090-threat-intel-exfil.yaml +75 -0
- package/rules/prompt-injection/ATR-2026-091-nested-payload.yaml +79 -0
- package/rules/prompt-injection/ATR-2026-092-consensus-poisoning.yaml +83 -0
- package/rules/prompt-injection/ATR-2026-093-gradual-escalation.yaml +77 -0
- package/rules/prompt-injection/ATR-2026-094-audit-bypass.yaml +77 -0
- package/rules/prompt-injection/ATR-2026-097-cjk-injection-patterns.yaml +165 -0
- package/rules/skill-compromise/ATR-2026-060-skill-impersonation.yaml +53 -53
- package/rules/skill-compromise/ATR-2026-061-description-behavior-mismatch.yaml +20 -20
- package/rules/skill-compromise/ATR-2026-062-hidden-capability.yaml +22 -22
- package/rules/skill-compromise/ATR-2026-063-skill-chain-attack.yaml +21 -21
- package/rules/skill-compromise/ATR-2026-064-over-permissioned-skill.yaml +29 -29
- package/rules/skill-compromise/ATR-2026-065-skill-update-attack.yaml +22 -22
- package/rules/skill-compromise/ATR-2026-066-parameter-injection.yaml +23 -23
- package/rules/tool-poisoning/ATR-2026-010-mcp-malicious-response.yaml +70 -70
- package/rules/tool-poisoning/ATR-2026-011-tool-output-injection.yaml +53 -53
- package/rules/tool-poisoning/ATR-2026-012-unauthorized-tool-call.yaml +58 -58
- package/rules/tool-poisoning/ATR-2026-013-tool-ssrf.yaml +62 -62
- package/rules/tool-poisoning/ATR-2026-095-supply-chain-poisoning.yaml +81 -0
- package/rules/tool-poisoning/ATR-2026-096-registry-poisoning.yaml +83 -0
- package/spec/atr-schema.yaml +28 -29
- package/rules/prompt-injection/ATR-PRED-2026-001.yaml +0 -61
- package/rules/prompt-injection/ATR-PRED-2026-002.yaml +0 -58
- package/rules/prompt-injection/ATR-PRED-2026-003.yaml +0 -61
- package/rules/prompt-injection/ATR-PRED-2026-005.yaml +0 -55
- package/rules/prompt-injection/ATR-PRED-2026-006.yaml +0 -51
- package/rules/prompt-injection/ATR-PRED-2026-007.yaml +0 -57
- package/rules/prompt-injection/ATR-PRED-2026-008.yaml +0 -57
- package/rules/prompt-injection/ATR-PRED-2026-009.yaml +0 -51
- package/rules/prompt-injection/ATR-PRED-2026-010.yaml +0 -57
- package/rules/prompt-injection/ATR-PRED-2026-011.yaml +0 -53
- package/rules/prompt-injection/ATR-PRED-2026-012.yaml +0 -57
- package/rules/prompt-injection/ATR-PRED-2026-023.yaml +0 -56
- package/rules/prompt-injection/ATR-PRED-2026-025.yaml +0 -68
- package/rules/prompt-injection/ATR-PRED-2026-026.yaml +0 -66
- package/rules/prompt-injection/ATR-PRED-2026-027.yaml +0 -62
- package/rules/tool-poisoning/ATR-PRED-2026-004.yaml +0 -54
- package/rules/tool-poisoning/ATR-PRED-2026-024.yaml +0 -68
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
title:
|
|
1
|
+
title: 'Privilege Escalation and Admin Function Access'
|
|
2
2
|
id: ATR-2026-040
|
|
3
3
|
status: experimental
|
|
4
4
|
description: |
|
|
@@ -10,26 +10,26 @@ description: |
|
|
|
10
10
|
escape techniques (nsenter, chroot), or Kubernetes privilege escalation
|
|
11
11
|
(kubectl exec). This rule enforces least-privilege boundaries across all
|
|
12
12
|
agent tool interactions.
|
|
13
|
-
author:
|
|
14
|
-
date:
|
|
15
|
-
schema_version:
|
|
13
|
+
author: 'ATR Community'
|
|
14
|
+
date: '2026/03/08'
|
|
15
|
+
schema_version: '0.1'
|
|
16
16
|
detection_tier: pattern
|
|
17
17
|
maturity: experimental
|
|
18
18
|
severity: critical
|
|
19
19
|
|
|
20
20
|
references:
|
|
21
21
|
owasp_llm:
|
|
22
|
-
-
|
|
22
|
+
- 'LLM06:2025 - Excessive Agency'
|
|
23
23
|
owasp_agentic:
|
|
24
|
-
-
|
|
24
|
+
- 'ASI03:2026 - Identity and Privilege Abuse'
|
|
25
25
|
mitre_atlas:
|
|
26
|
-
-
|
|
27
|
-
-
|
|
26
|
+
- 'AML.T0050 - Command and Scripting Interpreter'
|
|
27
|
+
- 'AML.T0040 - AI Model Inference API Access'
|
|
28
28
|
mitre_attack:
|
|
29
|
-
-
|
|
30
|
-
-
|
|
29
|
+
- 'T1548 - Abuse Elevation Control Mechanism'
|
|
30
|
+
- 'T1611 - Escape to Host'
|
|
31
31
|
cve:
|
|
32
|
-
-
|
|
32
|
+
- 'CVE-2026-0628'
|
|
33
33
|
|
|
34
34
|
tags:
|
|
35
35
|
category: privilege-escalation
|
|
@@ -47,66 +47,66 @@ detection:
|
|
|
47
47
|
conditions:
|
|
48
48
|
- field: tool_name
|
|
49
49
|
operator: regex
|
|
50
|
-
value:
|
|
51
|
-
description:
|
|
50
|
+
value: '(?i)(?:exec|execute|shell|bash|cmd|terminal|subprocess|os_command|system_call|run_command|powershell)'
|
|
51
|
+
description: 'System shell or command execution tool invocation'
|
|
52
52
|
- field: tool_name
|
|
53
53
|
operator: regex
|
|
54
|
-
value:
|
|
55
|
-
description:
|
|
54
|
+
value: '(?i)(?:modify_permissions?|grant_access|elevate|set_role|change_acl|chmod|chown|sudo|setuid|setgid)'
|
|
55
|
+
description: 'Permission modification or privilege elevation tools'
|
|
56
56
|
- field: tool_name
|
|
57
57
|
operator: regex
|
|
58
|
-
value:
|
|
59
|
-
description:
|
|
58
|
+
value: '(?i)(?:create_user|delete_user|modify_user|reset_password|manage_roles?|assign_role|revoke_role|add_admin)'
|
|
59
|
+
description: 'User management and role assignment operations'
|
|
60
60
|
- field: tool_name
|
|
61
61
|
operator: regex
|
|
62
|
-
value:
|
|
63
|
-
description:
|
|
62
|
+
value: '(?i)(?:drop_(?:database|table|index)|truncate_table|alter_schema|create_database|db_admin|migrate_database)'
|
|
63
|
+
description: 'Database administration and schema operations'
|
|
64
64
|
- field: tool_name
|
|
65
65
|
operator: regex
|
|
66
|
-
value:
|
|
67
|
-
description:
|
|
66
|
+
value: '(?i)(?:update_config|modify_settings|change_environment|set_env|deploy|restart_service|stop_service|kill_process)'
|
|
67
|
+
description: 'System configuration and service management operations'
|
|
68
68
|
- field: tool_name
|
|
69
69
|
operator: regex
|
|
70
|
-
value:
|
|
71
|
-
description:
|
|
70
|
+
value: '(?i)(?:manage_firewall|update_security_group|modify_iam|create_api_key|rotate_secret|manage_certificates?)'
|
|
71
|
+
description: 'Security infrastructure management operations'
|
|
72
72
|
- field: tool_name
|
|
73
73
|
operator: regex
|
|
74
|
-
value:
|
|
75
|
-
description:
|
|
74
|
+
value: '(?i)(?:access_audit_log|clear_logs?|purge_logs?|modify_audit|disable_(?:monitoring|logging|alerting))'
|
|
75
|
+
description: 'Audit tampering and monitoring evasion operations'
|
|
76
76
|
- field: tool_args
|
|
77
77
|
operator: regex
|
|
78
78
|
value: "(?i)(?:--(?:privileged|no-sandbox|cap-add|security-opt)|allowPrivilegeEscalation|\\b(?:admin|root|superuser|sudo)\\s*=|[\"'](?:admin|root|superuser|sudo)[\"']|\"role\"\\s*:\\s*\"(?:admin|root|superuser|sudo)\")"
|
|
79
|
-
description:
|
|
79
|
+
description: 'Privileged flags or admin/root values in structured tool arguments (not natural language)'
|
|
80
80
|
- field: tool_args
|
|
81
81
|
operator: regex
|
|
82
82
|
value: "(?i)(?:DROP\\s+(?:TABLE|DATABASE|INDEX)|ALTER\\s+TABLE|TRUNCATE|DELETE\\s+FROM\\s+\\w+\\s*;|GRANT\\s+ALL|REVOKE\\s+ALL)"
|
|
83
|
-
description:
|
|
83
|
+
description: 'Destructive or privileged SQL statements in arguments'
|
|
84
84
|
- field: tool_args
|
|
85
85
|
operator: regex
|
|
86
86
|
value: "(?i)(?:nsenter\\s+|chroot\\s+|unshare\\s+--mount|mount\\s+--bind|docker\\s+run\\s+--privileged)"
|
|
87
|
-
description:
|
|
87
|
+
description: 'Container escape techniques in tool arguments'
|
|
88
88
|
- field: tool_args
|
|
89
89
|
operator: regex
|
|
90
90
|
value: "(?i)(?:kubectl\\s+exec|kubectl\\s+(?:create|apply)\\s+.*(?:clusterrole|rolebinding)|kubectl\\s+auth\\s+can-i)"
|
|
91
|
-
description:
|
|
91
|
+
description: 'Kubernetes privilege escalation commands'
|
|
92
92
|
- field: tool_name
|
|
93
93
|
operator: regex
|
|
94
94
|
value: "(?i)(?:write_file|delete_file|rm\\s+-rf|remove_directory|format_disk|wipe)"
|
|
95
|
-
description:
|
|
95
|
+
description: 'Destructive file system operations'
|
|
96
96
|
- field: tool_args
|
|
97
97
|
operator: regex
|
|
98
98
|
value: "(?i)(?:chmod\\s+(?:[2467][0-7]{3}|[0-7]{0,3}7[0-7]{0,2})|chmod\\s+[ug]\\+s|chown\\s+root|setcap\\s+)"
|
|
99
|
-
description:
|
|
99
|
+
description: 'Unix permission escalation commands (setuid, root ownership)'
|
|
100
100
|
- field: tool_args
|
|
101
101
|
operator: regex
|
|
102
102
|
value: "(?i)(?:/etc/shadow|/etc/passwd|/etc/sudoers|/root/|/proc/\\d+/mem|/dev/mem)"
|
|
103
|
-
description:
|
|
103
|
+
description: 'Access to sensitive system files'
|
|
104
104
|
condition: any
|
|
105
105
|
false_positives:
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
106
|
+
- 'Agent with legitimate admin privileges executing authorized operations'
|
|
107
|
+
- 'CI/CD pipeline agents with legitimate deployment permissions'
|
|
108
|
+
- 'Database migration agents running authorized schema changes'
|
|
109
|
+
- 'Development or testing environment with intentionally broad tool access'
|
|
110
110
|
|
|
111
111
|
response:
|
|
112
112
|
actions:
|
|
@@ -125,51 +125,51 @@ response:
|
|
|
125
125
|
|
|
126
126
|
test_cases:
|
|
127
127
|
true_positives:
|
|
128
|
-
- tool_name:
|
|
128
|
+
- tool_name: 'execute_shell'
|
|
129
129
|
tool_args: '{"command": "cat /etc/passwd"}'
|
|
130
130
|
expected: triggered
|
|
131
|
-
description:
|
|
132
|
-
- tool_name:
|
|
131
|
+
description: 'Agent attempting shell execution to read system files'
|
|
132
|
+
- tool_name: 'create_user'
|
|
133
133
|
tool_args: '{"username": "new_admin", "role": "admin"}'
|
|
134
134
|
expected: triggered
|
|
135
|
-
description:
|
|
136
|
-
- tool_name:
|
|
135
|
+
description: 'Agent attempting to create admin user'
|
|
136
|
+
- tool_name: 'query_database'
|
|
137
137
|
tool_args: '{"sql": "DROP TABLE users; --"}'
|
|
138
138
|
expected: triggered
|
|
139
|
-
description:
|
|
140
|
-
- tool_name:
|
|
139
|
+
description: 'Agent attempting destructive SQL via tool arguments'
|
|
140
|
+
- tool_name: 'container_exec'
|
|
141
141
|
tool_args: '{"command": "nsenter --target 1 --mount --uts --ipc --net --pid"}'
|
|
142
142
|
expected: triggered
|
|
143
|
-
description:
|
|
144
|
-
- tool_name:
|
|
143
|
+
description: 'Container escape via nsenter in tool arguments'
|
|
144
|
+
- tool_name: 'kubectl'
|
|
145
145
|
tool_args: '{"command": "kubectl exec -it production-pod -- /bin/bash"}'
|
|
146
146
|
expected: triggered
|
|
147
|
-
description:
|
|
147
|
+
description: 'Kubernetes privilege escalation via kubectl exec'
|
|
148
148
|
true_negatives:
|
|
149
|
-
- tool_name:
|
|
149
|
+
- tool_name: 'read_file'
|
|
150
150
|
tool_args: '{"path": "/data/report.txt"}'
|
|
151
151
|
expected: not_triggered
|
|
152
|
-
description:
|
|
153
|
-
- tool_name:
|
|
152
|
+
description: 'Agent using permitted read-only file access'
|
|
153
|
+
- tool_name: 'search_knowledge_base'
|
|
154
154
|
tool_args: '{"query": "password reset instructions"}'
|
|
155
155
|
expected: not_triggered
|
|
156
|
-
description:
|
|
157
|
-
- input:
|
|
156
|
+
description: 'Agent searching help docs within normal scope'
|
|
157
|
+
- input: 'The admin has granted you temporary elevated permissions for this maintenance window.'
|
|
158
158
|
expected: not_triggered
|
|
159
|
-
description:
|
|
160
|
-
- input:
|
|
159
|
+
description: 'Legitimate permission grant from authorized admin'
|
|
160
|
+
- input: 'This tool requires sudo access. Please run: sudo apt update && sudo apt upgrade'
|
|
161
161
|
expected: not_triggered
|
|
162
|
-
description:
|
|
162
|
+
description: 'Legitimate system administration instruction'
|
|
163
163
|
- input: "Your role has been upgraded to 'editor' for this project. You can now modify shared documents."
|
|
164
164
|
expected: not_triggered
|
|
165
|
-
description:
|
|
165
|
+
description: 'Legitimate role change notification'
|
|
166
166
|
|
|
167
167
|
evasion_tests:
|
|
168
|
-
- input:
|
|
168
|
+
- input: 'I noticed the admin panel is accessible. Let me check the user management settings for you.'
|
|
169
169
|
expected: not_triggered
|
|
170
170
|
bypass_technique: casual_escalation
|
|
171
|
-
notes:
|
|
171
|
+
notes: 'Agent casually accessing admin resources without explicit privilege request.'
|
|
172
172
|
- input: "To complete this task more efficiently, I'll use the database directly instead of the API."
|
|
173
173
|
expected: not_triggered
|
|
174
174
|
bypass_technique: rationalized_bypass
|
|
175
|
-
notes:
|
|
175
|
+
notes: 'Agent rationalizing direct database access to bypass API restrictions.'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
title:
|
|
1
|
+
title: 'Agent Scope Creep Detection'
|
|
2
2
|
id: ATR-2026-041
|
|
3
3
|
status: experimental
|
|
4
4
|
description: |
|
|
@@ -9,21 +9,21 @@ description: |
|
|
|
9
9
|
authority. This rule uses regex-only detection to identify language
|
|
10
10
|
patterns associated with unsolicited scope expansion, progressive
|
|
11
11
|
permission requests, and self-initiated authority broadening.
|
|
12
|
-
author:
|
|
13
|
-
date:
|
|
14
|
-
schema_version:
|
|
12
|
+
author: 'ATR Community'
|
|
13
|
+
date: '2026/03/08'
|
|
14
|
+
schema_version: '0.1'
|
|
15
15
|
detection_tier: pattern
|
|
16
16
|
maturity: experimental
|
|
17
17
|
severity: medium
|
|
18
18
|
|
|
19
19
|
references:
|
|
20
20
|
owasp_llm:
|
|
21
|
-
-
|
|
21
|
+
- 'LLM06:2025 - Excessive Agency'
|
|
22
22
|
owasp_agentic:
|
|
23
|
-
-
|
|
23
|
+
- 'ASI03:2026 - Identity and Privilege Abuse'
|
|
24
24
|
mitre_atlas:
|
|
25
|
-
-
|
|
26
|
-
-
|
|
25
|
+
- 'AML.T0040 - AI Model Inference API Access'
|
|
26
|
+
- 'AML.T0047 - ML-Enabled Product or Service'
|
|
27
27
|
|
|
28
28
|
tags:
|
|
29
29
|
category: privilege-escalation
|
|
@@ -42,49 +42,49 @@ detection:
|
|
|
42
42
|
- field: content
|
|
43
43
|
operator: regex
|
|
44
44
|
value: "(?i)(?:i(?:'ll|\\s+will)\\s+also|additionally|while\\s+i(?:'m|\\s+am)\\s+at\\s+it|let\\s+me\\s+also|i\\s+should\\s+also)\\s+(?:go\\s+ahead\\s+and\\s+)?(?:access|modify|update|delete|create|send|check|review)"
|
|
45
|
-
description:
|
|
45
|
+
description: 'Agent self-expanding scope with unsolicited additional actions'
|
|
46
46
|
- field: content
|
|
47
47
|
operator: regex
|
|
48
48
|
value: "(?i)(?:i\\s+also\\s+need\\s+access\\s+to|can\\s+you\\s+(?:also\\s+)?grant\\s+(?:me\\s+)?(?:access|permission)|i\\s+(?:need|require)\\s+(?:additional|more|broader|expanded)\\s+(?:access|permissions?|privileges?))"
|
|
49
|
-
description:
|
|
49
|
+
description: 'Progressive permission request patterns'
|
|
50
50
|
- field: content
|
|
51
51
|
operator: regex
|
|
52
52
|
value: "(?i)(?:i(?:'ve|\\s+have)\\s+(?:also\\s+)?(?:gone\\s+ahead|taken\\s+the\\s+liberty|decided)\\s+(?:and\\s+)?(?:to\\s+)?(?:access|update|modify|check|review|scan|analyze))"
|
|
53
|
-
description:
|
|
53
|
+
description: 'Agent reporting unsolicited actions already taken'
|
|
54
54
|
- field: content
|
|
55
55
|
operator: regex
|
|
56
56
|
value: "(?i)(?:while\\s+(?:doing|performing|completing|working\\s+on)\\s+(?:that|this|the\\s+task),?\\s+i\\s+(?:noticed|found|discovered|realized)\\s+(?:i\\s+(?:should|could|need\\s+to)\\s+also|that\\s+i\\s+(?:should|need)))"
|
|
57
|
-
description:
|
|
57
|
+
description: 'Using task context as justification for scope expansion'
|
|
58
58
|
- field: content
|
|
59
59
|
operator: regex
|
|
60
60
|
value: "(?i)(?:to\\s+(?:fully|properly|better|completely|thoroughly)\\s+(?:complete|accomplish|handle|address)\\s+(?:this(?:\\s+task)?|the\\s+task),?\\s+i\\s+(?:need|require|must\\s+have)\\s+(?:access|permission)\\s+to)"
|
|
61
|
-
description:
|
|
61
|
+
description: 'Justifying scope expansion as necessary for task completion'
|
|
62
62
|
- field: content
|
|
63
63
|
operator: regex
|
|
64
64
|
value: "(?i)(?:it\\s+would\\s+(?:also\\s+)?be\\s+(?:helpful|useful|beneficial|good)\\s+(?:to|if\\s+i\\s+(?:could|had))\\s+(?:also\\s+)?(?:access|check|review|modify|scan))"
|
|
65
|
-
description:
|
|
65
|
+
description: 'Soft scope expansion through suggestion framing'
|
|
66
66
|
- field: content
|
|
67
67
|
operator: regex
|
|
68
68
|
value: "(?i)(?:expanding\\s+(?:my|the)\\s+(?:scope|access|search|analysis)\\s+to\\s+(?:include|cover|encompass)|broadening\\s+(?:my|the)\\s+(?:search|scope|access))"
|
|
69
|
-
description:
|
|
69
|
+
description: 'Explicit scope expansion language'
|
|
70
70
|
- field: content
|
|
71
71
|
operator: regex
|
|
72
72
|
value: "(?i)(?:i\\s+(?:went|looked)\\s+(?:ahead|beyond)\\s+(?:and|the\\s+(?:original|assigned|initial))\\s+(?:scope|task|request)|i\\s+extended\\s+(?:my|the)\\s+(?:analysis|review|search)\\s+(?:beyond|outside))"
|
|
73
|
-
description:
|
|
73
|
+
description: 'Agent reporting out-of-scope actions already performed'
|
|
74
74
|
- field: content
|
|
75
75
|
operator: regex
|
|
76
76
|
value: "(?i)(?:since\\s+i\\s+(?:already|now)\\s+have\\s+access\\s+to|now\\s+that\\s+i\\s+(?:can|have)\\s+(?:access|reach|see),?\\s+(?:let\\s+me|i(?:'ll|\\s+will))\\s+also)"
|
|
77
|
-
description:
|
|
77
|
+
description: 'Leveraging existing access as foothold for further expansion'
|
|
78
78
|
- field: content
|
|
79
79
|
operator: regex
|
|
80
80
|
value: "(?i)(?:requesting\\s+(?:elevated|additional|extended|expanded|broader)\\s+(?:access|permissions?|privileges?|scope)|please\\s+(?:grant|give|provide)\\s+(?:me\\s+)?(?:elevated|admin|additional|expanded)\\s+(?:access|rights|permissions?))"
|
|
81
|
-
description:
|
|
81
|
+
description: 'Explicit request for elevated access or broader permissions'
|
|
82
82
|
condition: any
|
|
83
83
|
false_positives:
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
84
|
+
- 'Agent legitimately discovering related sub-tasks during complex research'
|
|
85
|
+
- 'Orchestrator-approved task expansion through proper channels'
|
|
86
|
+
- 'Iterative refinement tasks where scope naturally broadens based on findings'
|
|
87
|
+
- 'Agent asking for clarification about task boundaries'
|
|
88
88
|
|
|
89
89
|
response:
|
|
90
90
|
actions:
|
|
@@ -102,23 +102,23 @@ test_cases:
|
|
|
102
102
|
true_positives:
|
|
103
103
|
- input: "While I am at it, let me also update the customer's account settings and apply a discount code."
|
|
104
104
|
expected: triggered
|
|
105
|
-
description:
|
|
106
|
-
- input:
|
|
105
|
+
description: 'Agent self-expanding scope from FAQ to account modifications'
|
|
106
|
+
- input: 'I also need access to the HR database to fully complete the sales analysis.'
|
|
107
107
|
expected: triggered
|
|
108
|
-
description:
|
|
109
|
-
- input:
|
|
108
|
+
description: 'Progressive permission request beyond original task scope'
|
|
109
|
+
- input: 'I have gone ahead and accessed the payroll system since it seemed related to the financial report.'
|
|
110
110
|
expected: triggered
|
|
111
|
-
description:
|
|
112
|
-
- input:
|
|
111
|
+
description: 'Agent reporting unauthorized access already taken'
|
|
112
|
+
- input: 'To properly complete this task, I need permission to access the production database and the admin panel.'
|
|
113
113
|
expected: triggered
|
|
114
|
-
description:
|
|
114
|
+
description: 'Justifying scope expansion as necessary for completion'
|
|
115
115
|
true_negatives:
|
|
116
|
-
- input:
|
|
116
|
+
- input: 'I have completed the analysis using the three databases you specified. Here are the results.'
|
|
117
117
|
expected: not_triggered
|
|
118
|
-
description:
|
|
119
|
-
- input:
|
|
118
|
+
description: 'Agent working within specified scope'
|
|
119
|
+
- input: 'The sales data for Q4 shows a 15% increase. Here is the formatted report.'
|
|
120
120
|
expected: not_triggered
|
|
121
|
-
description:
|
|
122
|
-
- input:
|
|
121
|
+
description: 'Agent delivering results within assigned task boundaries'
|
|
122
|
+
- input: 'Should I also check the Q3 data for comparison, or just focus on Q4?'
|
|
123
123
|
expected: not_triggered
|
|
124
|
-
description:
|
|
124
|
+
description: 'Agent asking for clarification rather than unilaterally expanding'
|