Skip to content

Commit 3e3e899

Browse files
eeee2345poiana
authored andcommitted
rules: add MITRE ATLAS/ATT&CK mappings to 29 unmapped deny/ask rules
Several default rules already carry ATLAS / ATT&CK tags (sandbox-disable, container escape), but credential-access, exfiltration, persistence, MCP supply-chain, and self-protection rules did not. This adds framework tags to those 29 rules following the existing tag convention (AML.Txxxx_name / mitre_txxxx_name). Tags-only, additive: no condition, macro, field, or verdict-tag change; rule count unchanged (60); YAML validated. Cannot affect Falco rule loading or verdict evaluation (tags are free-form strings). Signed-off-by: Adam Lin <adam@agentthreatrule.org>
1 parent ac3851c commit 3e3e899

1 file changed

Lines changed: 29 additions & 29 deletions

File tree

rules/default/coding_agents_rules.yaml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
Falco blocked reading %tool.real_file_path because it is a sensitive path
229229
priority: CRITICAL
230230
source: coding_agent
231-
tags: [coding_agent_deny]
231+
tags: [coding_agent_deny, mitre_t1083_file_and_directory_discovery]
232232

233233
- rule: Deny writing to sensitive paths
234234
desc: >
@@ -1135,7 +1135,7 @@
11351135
Falco blocked a Bash command referencing a credential path or secret token (%tool.input_command)
11361136
priority: CRITICAL
11371137
source: coding_agent
1138-
tags: [coding_agent_deny]
1138+
tags: [coding_agent_deny, mitre_t1552_unsecured_credentials]
11391139

11401140
- rule: Deny credential file access via Read tool
11411141
desc: >
@@ -1151,7 +1151,7 @@
11511151
Falco blocked the Read tool accessing a credential file at %tool.real_file_path
11521152
priority: CRITICAL
11531153
source: coding_agent
1154-
tags: [coding_agent_deny]
1154+
tags: [coding_agent_deny, mitre_t1552_unsecured_credentials]
11551155

11561156
- rule: Deny destructive system commands
11571157
desc: >
@@ -1165,7 +1165,7 @@
11651165
Falco blocked a destructive system command (%tool.input_command)
11661166
priority: CRITICAL
11671167
source: coding_agent
1168-
tags: [coding_agent_deny]
1168+
tags: [coding_agent_deny, mitre_t1485_data_destruction]
11691169

11701170
- rule: Ask before potentially destructive shell commands
11711171
desc: >
@@ -1181,7 +1181,7 @@
11811181
Falco requires confirmation before a potentially destructive shell command (%tool.input_command)
11821182
priority: WARNING
11831183
source: coding_agent
1184-
tags: [coding_agent_ask]
1184+
tags: [coding_agent_ask, mitre_t1485_data_destruction]
11851185

11861186
- rule: Ask before container privilege escalation or host breakout
11871187
desc: >
@@ -1215,7 +1215,7 @@
12151215
Falco blocked piping content to a shell interpreter (%tool.input_command)
12161216
priority: CRITICAL
12171217
source: coding_agent
1218-
tags: [coding_agent_deny]
1218+
tags: [coding_agent_deny, mitre_t1059_command_and_scripting_interpreter, mitre_t1105_ingress_tool_transfer]
12191219

12201220
- rule: Deny encoded payload execution
12211221
desc: >
@@ -1227,7 +1227,7 @@
12271227
Falco blocked execution of a potentially encoded or inline-interpreted payload (%tool.input_command)
12281228
priority: CRITICAL
12291229
source: coding_agent
1230-
tags: [coding_agent_deny]
1230+
tags: [coding_agent_deny, mitre_t1027_obfuscated_files_or_information, mitre_t1140_deobfuscate_decode_files_or_information]
12311231

12321232
- rule: Deny curl wget exfiltration
12331233
desc: >
@@ -1239,7 +1239,7 @@
12391239
Falco blocked a potential data exfiltration command via curl or wget (%tool.input_command)
12401240
priority: CRITICAL
12411241
source: coding_agent
1242-
tags: [coding_agent_deny]
1242+
tags: [coding_agent_deny, AML.T0025_exfiltration_via_cyber_means, mitre_t1567_exfiltration_over_web_service]
12431243

12441244
- rule: Ask before writing to tmp staging paths
12451245
desc: >
@@ -1258,7 +1258,7 @@
12581258
Falco requires confirmation before writing to the staging path %tool.real_file_path
12591259
priority: WARNING
12601260
source: coding_agent
1261-
tags: [coding_agent_ask]
1261+
tags: [coding_agent_ask, mitre_t1074_data_staged]
12621262

12631263
- rule: Deny reverse shell via Bash
12641264
desc: >
@@ -1270,7 +1270,7 @@
12701270
Falco blocked a reverse shell command (%tool.input_command)
12711271
priority: CRITICAL
12721272
source: coding_agent
1273-
tags: [coding_agent_deny]
1273+
tags: [coding_agent_deny, mitre_t1059_command_and_scripting_interpreter, mitre_t1571_non_standard_port]
12741274

12751275
- rule: Deny cloud metadata service access via Bash
12761276
desc: >
@@ -1283,7 +1283,7 @@
12831283
Falco blocked access to a cloud metadata service (%tool.input_command)
12841284
priority: CRITICAL
12851285
source: coding_agent
1286-
tags: [coding_agent_deny]
1286+
tags: [coding_agent_deny, mitre_t1552.005_cloud_instance_metadata_api]
12871287

12881288
- rule: Deny credential directory archive via Bash
12891289
desc: >
@@ -1295,7 +1295,7 @@
12951295
Falco blocked archiving a credential directory (%tool.input_command)
12961296
priority: CRITICAL
12971297
source: coding_agent
1298-
tags: [coding_agent_deny]
1298+
tags: [coding_agent_deny, mitre_t1560_archive_collected_data, mitre_t1552_unsecured_credentials]
12991299

13001300
- rule: Deny SSH reverse tunnel and SOCKS proxy
13011301
desc: >
@@ -1308,7 +1308,7 @@
13081308
Falco blocked an SSH tunneling or proxy command (%tool.input_command)
13091309
priority: CRITICAL
13101310
source: coding_agent
1311-
tags: [coding_agent_deny]
1311+
tags: [coding_agent_deny, mitre_t1572_protocol_tunneling]
13121312

13131313
- rule: Ask before cron and scheduled task manipulation
13141314
desc: >
@@ -1321,7 +1321,7 @@
13211321
Falco requires confirmation before modifying cron configuration (%tool.input_command)
13221322
priority: WARNING
13231323
source: coding_agent
1324-
tags: [coding_agent_ask]
1324+
tags: [coding_agent_ask, mitre_t1053_scheduled_task_job]
13251325

13261326
- rule: Deny audit trail destruction
13271327
desc: >
@@ -1334,7 +1334,7 @@
13341334
Falco blocked a shell history wipe attempt (%tool.input_command)
13351335
priority: CRITICAL
13361336
source: coding_agent
1337-
tags: [coding_agent_deny]
1337+
tags: [coding_agent_deny, mitre_t1070_indicator_removal]
13381338

13391339
- rule: Deny package publish
13401340
desc: >
@@ -1347,7 +1347,7 @@
13471347
Falco blocked a package publish command (%tool.input_command)
13481348
priority: CRITICAL
13491349
source: coding_agent
1350-
tags: [coding_agent_deny]
1350+
tags: [coding_agent_deny, AML.T0010_ml_supply_chain_compromise, mitre_t1195_supply_chain_compromise]
13511351

13521352
- rule: Ask before modifying shell startup files
13531353
desc: >
@@ -1363,7 +1363,7 @@
13631363
Falco requires confirmation before modifying shell startup file %tool.real_file_path
13641364
priority: WARNING
13651365
source: coding_agent
1366-
tags: [coding_agent_ask]
1366+
tags: [coding_agent_ask, mitre_t1546.004_unix_shell_configuration_modification]
13671367

13681368
- rule: Ask before writing agent instruction files outside working directory
13691369
desc: >
@@ -1381,7 +1381,7 @@
13811381
Falco requires confirmation before writing agent instruction file %tool.real_file_path outside working directory %agent.real_cwd
13821382
priority: WARNING
13831383
source: coding_agent
1384-
tags: [coding_agent_ask]
1384+
tags: [coding_agent_ask, AML.T0051_llm_prompt_injection]
13851385

13861386
- rule: Deny cross-agent authentication file access
13871387
desc: >
@@ -1394,7 +1394,7 @@
13941394
Falco blocked %agent.name from reading another agent's authentication file %tool.real_file_path
13951395
priority: CRITICAL
13961396
source: coding_agent
1397-
tags: [coding_agent_deny]
1397+
tags: [coding_agent_deny, mitre_t1552_unsecured_credentials]
13981398

13991399
- rule: Deny MCP server or skill install from untrusted host
14001400
desc: >
@@ -1407,7 +1407,7 @@
14071407
Falco blocked installing a package or skill from an untrusted host (%tool.input_command)
14081408
priority: CRITICAL
14091409
source: coding_agent
1410-
tags: [coding_agent_deny]
1410+
tags: [coding_agent_deny, AML.T0010_ml_supply_chain_compromise, AML.T0048_llm_plugin_compromise]
14111411

14121412
- rule: Deny MCP server execution from temporary directory
14131413
desc: >
@@ -1420,7 +1420,7 @@
14201420
Falco blocked executing a potential MCP server from a temporary directory (%tool.input_command)
14211421
priority: CRITICAL
14221422
source: coding_agent
1423-
tags: [coding_agent_deny]
1423+
tags: [coding_agent_deny, AML.T0048_llm_plugin_compromise]
14241424

14251425
- rule: Ask before Glob with credential directory patterns
14261426
desc: >
@@ -1434,7 +1434,7 @@
14341434
Falco requires confirmation before globbing with a credential-targeting pattern (%tool.input)
14351435
priority: WARNING
14361436
source: coding_agent
1437-
tags: [coding_agent_ask]
1437+
tags: [coding_agent_ask, mitre_t1552_unsecured_credentials]
14381438

14391439
# ===========================================================================
14401440
# Section 5 — MCP and skill content
@@ -1842,7 +1842,7 @@
18421842
Falco requires confirmation before writing to Claude Code settings backups at %tool.real_file_path
18431843
priority: WARNING
18441844
source: coding_agent
1845-
tags: [coding_agent_ask, prempti_self_protection]
1845+
tags: [coding_agent_ask, prempti_self_protection, mitre_t1562.001_impair_defenses_disable_or_modify_tools]
18461846

18471847
# ===========================================================================
18481848
# Section 6 — Persistence vectors
@@ -2170,7 +2170,7 @@
21702170
Falco blocked an agent invocation of the premptictl CLI (%tool.input_command)
21712171
priority: CRITICAL
21722172
source: coding_agent
2173-
tags: [coding_agent_deny, prempti_self_protection]
2173+
tags: [coding_agent_deny, prempti_self_protection, mitre_t1562.001_impair_defenses_disable_or_modify_tools]
21742174

21752175
- macro: is_service_stop_linux
21762176
condition: >
@@ -2228,7 +2228,7 @@
22282228
Falco blocked a platform service-stop command targeting Prempti (%tool.input_command)
22292229
priority: CRITICAL
22302230
source: coding_agent
2231-
tags: [coding_agent_deny, prempti_self_protection]
2231+
tags: [coding_agent_deny, prempti_self_protection, mitre_t1562.001_impair_defenses_disable_or_modify_tools]
22322232

22332233
- macro: is_prempti_install_path
22342234
condition: >
@@ -2261,7 +2261,7 @@
22612261
Falco blocked writing to %tool.real_file_path under the Prempti install prefix
22622262
priority: CRITICAL
22632263
source: coding_agent
2264-
tags: [coding_agent_deny, prempti_self_protection]
2264+
tags: [coding_agent_deny, prempti_self_protection, mitre_t1562.001_impair_defenses_disable_or_modify_tools]
22652265

22662266
- rule: Deny writes to Claude Code settings file
22672267
desc: >
@@ -2274,7 +2274,7 @@
22742274
Falco blocked writing to Claude Code settings at %tool.real_file_path
22752275
priority: CRITICAL
22762276
source: coding_agent
2277-
tags: [coding_agent_deny, prempti_self_protection]
2277+
tags: [coding_agent_deny, prempti_self_protection, mitre_t1562.001_impair_defenses_disable_or_modify_tools]
22782278

22792279
- rule: Deny writes to Claude Code policy limits file
22802280
desc: >
@@ -2293,7 +2293,7 @@
22932293
Falco blocked writing to Claude Code policy-limits.json at %tool.real_file_path
22942294
priority: CRITICAL
22952295
source: coding_agent
2296-
tags: [coding_agent_deny, prempti_self_protection]
2296+
tags: [coding_agent_deny, prempti_self_protection, mitre_t1562.001_impair_defenses_disable_or_modify_tools]
22972297

22982298
- rule: Ask before reading Claude Code settings file
22992299
desc: >
@@ -2306,4 +2306,4 @@
23062306
Falco requires confirmation to read Claude Code settings at %tool.real_file_path
23072307
priority: WARNING
23082308
source: coding_agent
2309-
tags: [coding_agent_ask, prempti_self_protection]
2309+
tags: [coding_agent_ask, prempti_self_protection, mitre_t1562.001_impair_defenses_disable_or_modify_tools]

0 commit comments

Comments
 (0)