Detection rules · Sigma, Cortex XQL, YARA

All rules, every day

The catalogue of Threat Brief rules since day one: filter by format, period, level or ATT&CK technique, open a rule to read its code, and download the selection as one file.

1 rule over 1 day · technique T1572 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
26/11 XQL RedAmon Stack or Reverse Shell Tunnel on a HostAgentic attack frameworks: Cortex XQL pack medium T1059 T1572
tb-pack-agentic-frameworks-pile-redamon-ou-tunnel-de-reverse-shell-sur-un-h-te.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · RedAmon · RedAmon Stack or Reverse Shell Tunnel on a Host · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter ((action_process_image_command_line contains "redamon-kali" or action_process_image_command_line contains "redamon-agent" or action_process_image_command_line contains "redamon-webapp" or action_process_image_command_line contains "redamon-recon-" or action_process_image_command_line contains "redamon-docker-broker" or action_process_image_command_line contains "/opt/mcp_servers/run_servers.py" or action_process_image_command_line contains "/opt/mcp_servers/tunnel_manager.py" or action_process_image_command_line contains "redamon.sh ") or action_process_image_command_line contains "ngrok tcp 4444" or (action_process_image_command_line contains "chisel client" and action_process_image_command_line contains "R:4444:localhost:4444"))
| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_process_image_path, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects the RedAmon Docker stack being run (its container names, control script and sandbox servers) and the tunnels it opens for reverse shells: ngrok or chisel forwarding port 4444 to the Metasploit handler in its Kali sandbox. RedAmon is a penetration testing platform; on a host that is not a tester's, find out who installed it. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Penetration testers and students running RedAmon ; Another tool that forwards port 4444 through ngrok or chisel, which is also worth a look.