[
 {
  "rule_id": null,
  "name": "TB 2026-11-07 - doas executed in an alpine account SSH session",
  "severity": "SEV_030_MEDIUM",
  "xql_query": "config case_sensitive = false\n| dataset = xdr_data\n| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START\n| filter causality_actor_process_image_name = \"sshd\" and action_process_image_name = \"doas\"\n| filter actor_effective_username in (\"alpine\", \"root\")\n| fields _time, agent_hostname, actor_effective_username, actor_process_command_line, action_process_image_command_line",
  "is_enabled": false,
  "description": "On Alpine tiny-cloud images, alpine has passwordless doas: after SSHole, privilege escalation occurs via doas. Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-07), DRL 1.1: test and tune before enabling. References: https://cert.cyber.gouv.fr/alerte/CERTFR-2026-ALE-015/ https://thehackernews.com/2026/11/hackers-exploited-openssh-sshole-flaw.html",
  "alert_name": "Threat Brief - doas executed in an alpine account SSH session",
  "alert_category": "PRIVILEGE_ESCALATION",
  "alert_type": null,
  "alert_description": "On Alpine tiny-cloud images, alpine has passwordless doas: after SSHole, privilege escalation occurs via doas.",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {
   "agent_hostname": "agent_hostname",
   "actor_effective_username": "actor_effective_username",
   "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": {
   "TA0004 - Privilege Escalation": [
    "T1548.003 - Abuse Elevation Control Mechanism: Sudo and Sudo Caching",
    "T1078 - Valid Accounts"
   ],
   "TA0005 - Stealth": [
    "T1078 - Valid Accounts"
   ],
   "TA0003 - Persistence": [
    "T1078 - Valid Accounts"
   ],
   "TA0001 - Initial Access": [
    "T1078 - Valid Accounts"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 },
 {
  "rule_id": null,
  "name": "TB 2026-11-07 - cwpsrv.prev-*, child shell of cwpsrv or traffic to 136.0.141.71",
  "severity": "SEV_040_HIGH",
  "xql_query": "config case_sensitive = false\n| dataset = xdr_data\n| filter (event_type = ENUM.FILE and action_file_path contains \"/usr/local/cwpsrv/bin/cwpsrv.prev-\") or (event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START and actor_process_image_name = \"cwpsrv\" and action_process_image_name in (\"sh\", \"bash\", \"curl\", \"wget\", \"python3\")) or (event_type = ENUM.NETWORK and action_remote_ip = \"136.0.141.71\")\n| fields _time, agent_hostname, event_type, actor_process_image_name, actor_process_command_line, action_process_image_command_line, action_file_path, action_remote_ip",
  "is_enabled": false,
  "description": "CWPdoor host artefacts: cwpsrv.prev-* backup, unexpected cwpsrv children, and traffic to published staging IP. Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-07), DRL 1.1: test and tune before enabling. References: https://thehackernews.com/2026/11/hackers-hide-linux-backdoor-in-control.html https://www.bleepingcomputer.com/news/security/hackers-backdoor-linux-servers-using-trojanized-cwp-web-server/",
  "alert_name": "Threat Brief - cwpsrv.prev-*, child shell of cwpsrv or traffic to 136.0.141.71",
  "alert_category": "PERSISTENCE",
  "alert_type": null,
  "alert_description": "CWPdoor host artefacts: cwpsrv.prev-* backup, unexpected cwpsrv children, and traffic to published staging IP.",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {
   "agent_hostname": "agent_hostname",
   "action_remote_ip": "action_remote_ip",
   "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",
   "action_remote_ip"
  ],
  "dataset": "alerts",
  "user_defined_severity": null,
  "user_defined_category": null,
  "mitre_defs": {
   "TA0003 - Persistence": [
    "T1505.003 - Server Software Component: Web Shell"
   ],
   "TA0002 - Execution": [
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 }
]