[
 {
  "rule_id": null,
  "name": "TB 2026-11-30 - Malicious Q-Dir updater or file written under DeviceSync\\b2 (Cortex XDR)",
  "severity": "SEV_040_HIGH",
  "xql_query": "config case_sensitive = false\n| dataset = xdr_data\n| filter (event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START and (action_process_image_name = \"Q-Dir_AutoUpdate.exe\" or action_process_image_path contains \"\\programdata\\microsoft\\devicesync\\b2\")) or (event_type = ENUM.FILE and action_file_path contains \"\\programdata\\microsoft\\devicesync\\b2\")\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_command_line, action_file_path",
  "is_enabled": false,
  "description": "BIOC-style query: Q-Dir_AutoUpdate.exe started, or a process run or file written under ProgramData\\Microsoft\\DeviceSync\\b2, the Python RAT folder. Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-30), DRL 1.1: test and tune before enabling. References: https://www.bleepingcomputer.com/news/security/q-dir-and-desktopok-windows-utilities-compromised-to-push-python-rat/",
  "alert_name": "Threat Brief - Malicious Q-Dir updater or file written under DeviceSync\\b2 (Cortex XDR)",
  "alert_category": "INFILTRATION",
  "alert_type": null,
  "alert_description": "BIOC-style query: Q-Dir_AutoUpdate.exe started, or a process run or file written under ProgramData\\Microsoft\\DeviceSync\\b2, the Python RAT folder.",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {
   "agent_hostname": "agent_hostname",
   "actor_effective_username": "actor_effective_username",
   "actor_process_image_name": "actor_process_image_name",
   "actor_process_command_line": "actor_process_command_line"
  },
  "execution_mode": "SCHEDULED",
  "search_window": "10 minutes",
  "simple_schedule": "10 minutes",
  "timezone": "Europe/Paris",
  "crontab": "*/10 * * * *",
  "suppression_enabled": true,
  "suppression_duration": "24 hours",
  "suppression_fields": [
   "agent_hostname",
   "actor_effective_username"
  ],
  "dataset": "alerts",
  "user_defined_severity": null,
  "user_defined_category": null,
  "mitre_defs": {
   "TA0001 - Initial Access": [
    "T1195.002 - Supply Chain Compromise: Compromise Software Supply Chain"
   ],
   "TA0002 - Execution": [
    "T1059.006 - Command and Scripting Interpreter: Python"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 }
]