title: Linux Secondary UID-0 Account or SSHD AllowUsers Modification id: 73a4d912-5c38-4e21-8b44-73c10f92a301 status: experimental description: Detects Linux account utilities or text processors referencing a secondary toor account or modifying OpenSSH AllowUsers and persistence scripts outside configuration management hosts. author: Odin by Brandefense date: 2026-11-27 logsource: category: process_creation product: linux detection: selection_bin: Image|endswith: - '/useradd' - '/usermod' - '/chpasswd' - '/sed' - '/tee' - '/sh' - '/bash' selection_args: CommandLine|contains: - 'toor' - 'AllowUsers' - 'id_toor' - 'allowusers.sh' - 'otp_ssh.sh' filter_cfg_hosts: ComputerName: - 'cfg-mgmt-01.corp.example' condition: selection_bin and selection_args and not filter_cfg_hosts falsepositives: - Approved configuration management runs updating OpenSSH AllowUsers baselines on allowlisted administration hosts level: high tags: - attack.persistence - attack.t1136.001 - attack.t1098.004 --- title: Linux Rust Bore Reverse TCP Tunnel Execution or Archive Fetch id: 73a4d912-5c38-4e21-8b44-73c10f92a302 status: experimental description: Detects execution of the Rust bore TCP tunnel client, bore wrapper scripts, or bore.tgz archive retrieval outside designated developer tunnel gateways. author: Odin by Brandefense date: 2026-11-27 logsource: category: process_creation product: linux detection: selection_bin: Image|endswith: - '/bore' - '/sh' - '/bash' - '/tar' - '/curl' - '/wget' selection_cli: CommandLine|contains: - 'bore local ' - 'bore.tgz' - 'bore80.sh' - 'bore443.sh' - 'bore_vhost' - 'bore_restart' filter_tunnel_hosts: ComputerName: - 'tunnel-gw-01.corp.example' condition: selection_bin and selection_cli and not filter_tunnel_hosts falsepositives: - Authorized developer local port forwarding on approved sandbox gateways level: high tags: - attack.command-and-control - attack.t1572 --- title: Linux Polkit or DirtyCow Escalation Wrapper and Post-Run Cleanup id: 73a4d912-5c38-4e21-8b44-73c10f92a303 status: experimental description: Detects Linux command lines referencing staged Polkit CVE-2021-4034 wrappers, Dirty COW CVE-2016-5195 helpers, or post-run cleanup scripts outside isolated audit hosts. author: Odin by Brandefense date: 2026-11-27 logsource: category: process_creation product: linux detection: selection_bin: Image|endswith: - '/sh' - '/bash' - '/pkexec' - '/gcc' - '/cc' selection_markers: CommandLine|contains: - 'pwnkit' - 'pk_root_run' - 'pk_go.sh' - 'cow_restart' - 'temizlik' filter_audit_hosts: ComputerName: - 'sec-audit-01.corp.example' condition: selection_bin and selection_markers and not filter_audit_hosts falsepositives: - Authorized kernel and Polkit patch validation inside isolated security test hosts level: high tags: - attack.privilege-escalation - attack.t1068 - attack.defense-evasion - attack.t1070.004