[
 {
  "rule_id": null,
  "name": "TB pack-artex - B8. Credential added to an Entra ID application or role assigned to a service principal",
  "severity": "SEV_030_MEDIUM",
  "xql_query": "config case_sensitive = false\n| datamodel dataset = msft_azure_ad_audit_raw\n| filter xdm.event.operation in (\"Update application - Certificates and secrets management\", \"Add service principal credentials\", \"Add app role assignment to service principal\", \"Add member to role\")\n| fields _time, xdm.source.user.username, xdm.source.ipv4, xdm.event.operation",
  "is_enabled": false,
  "description": "Storm-0940 went through compromised applications. Noisy: correlate with ARTEX user agents and the password spray. Adapted from ThreatDefence rules (MIT licence). Experimental rule from Threat Brief (https://tlpclear.fr/detections/pack-artex), DRL 1.1: test and tune before enabling. References: https://github.com/ThreatDefence/artex-detections https://www.microsoft.com/en-us/security/blog/2026/10/21/storm-0940-uses-artex-agentic-ai-connectwise-supply-chain-compromise/ https://threatdefence.com/article/artex-agentic-attack-framework-detection-hunting",
  "alert_name": "Threat Brief - B8. Credential added to an Entra ID application or role assigned to a service principal",
  "alert_category": "PERSISTENCE",
  "alert_type": null,
  "alert_description": "Storm-0940 went through compromised applications. Noisy: correlate with ARTEX user agents and the password spray. Adapted from ThreatDefence rules (MIT licence).",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {},
  "execution_mode": "SCHEDULED",
  "search_window": "10 minutes",
  "simple_schedule": "10 minutes",
  "timezone": "Europe/Paris",
  "crontab": "*/10 * * * *",
  "suppression_enabled": false,
  "suppression_duration": null,
  "suppression_fields": null,
  "dataset": "alerts",
  "user_defined_severity": null,
  "user_defined_category": null,
  "mitre_defs": {
   "TA0003 - Persistence": [
    "T1098.001 - Account Manipulation: Additional Cloud Credentials",
    "T1098.003 - Account Manipulation: Additional Cloud Roles"
   ],
   "TA0004 - Privilege Escalation": [
    "T1098.001 - Account Manipulation: Additional Cloud Credentials",
    "T1098.003 - Account Manipulation: Additional Cloud Roles"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 }
]