title: Linux Fileless GitHub-C2 Advisory Flock Liveness Check and Master Cache id: 7a319c14-5c4b-4e82-9a11-386022721001 status: experimental description: Detects advisory flock checks or shell references against /var/tmp/.systemd/inhibit.lock or /usr/local/lib/.cache-sync used by deploy_ghc2.sh three-tier resurrection guards. author: Odin by Brandefense date: 2026-11-16 logsource: product: linux category: process_creation detection: selection_flock: Image|endswith: '/flock' CommandLine|contains: - '/var/tmp/.systemd/inhibit' - '.cache-sync' selection_dirs: CommandLine|contains: - '/var/tmp/.systemd/inhibit' - '/usr/local/lib/.cache-sync' - 'github-c2-agent-dual' - 'deploy_ghc2.sh' condition: selection_flock or selection_dirs falsepositives: - Unlikely; standard systemd-inhibit uses D-Bus and /run/systemd/inhibit rather than /var/tmp/.systemd/inhibit.lock level: critical tags: - attack.defense-evasion - attack.t1620 - attack.persistence --- title: Oracle Database-Link Dynamic DDL and Scheduler Pivot Execution id: 7a319c14-5c4b-4e82-9a11-386022721004 status: experimental description: Detects cross-database-link DBMS_UTILITY.EXEC_DDL_STATEMENT, remote DBMS_SCHEDULER OS job creation, TMPX9 directory mapping, and Java OS wrappers in Oracle Unified Auditing (requires audit policy capturing UNIFIED_AUDIT_TRAIL.SQL_TEXT). author: Odin by Brandefense date: 2026-11-16 logsource: category: database product: oracle detection: selection_dblink_ddl: SQL_TEXT|contains: - 'DBMS_UTILITY.EXEC_DDL_STATEMENT@' - 'DBMS_SCHEDULER.CREATE_JOB@' - 'CREATE OR REPLACE DIRECTORY TMPX9' - 'COMPILE JAVA SOURCE NAMED "PWN' - 'APPS.P9ZZ@' - 'P9RUN@' condition: selection_dblink_ddl fields: - DBUSERNAME - SQL_TEXT - ACTION_NAME falsepositives: - Administrative DDL executed across database links via DBMS_UTILITY is exceedingly rare in production EBS environments level: critical tags: - attack.lateral-movement - attack.execution - attack.t1053 --- title: Ahsay CBS or Middleware Tomcat JVM Spawning Encoded PowerShell id: 7a319c14-5c4b-4e82-9a11-386022721005 status: experimental description: Host-side detection for encrypted HTTPS JSP webshell commands (ahsay_localdep.py ?c=powershell -nop -enc) covering bundled Ahsay CBS JVM (bJW.exe/java.exe) and PowerShell encoded flag variants (-e, -ec, -enc, -encodedcommand). author: Odin by Brandefense date: 2026-11-16 logsource: product: windows category: process_creation detection: selection_parent: ParentImage|endswith: - '\java.exe' - '\javaw.exe' - '\bJW.exe' - '\cbssvc.exe' - '\tomcat8.exe' - '\tomcat9.exe' Image|endswith: - '\powershell.exe' - '\pwsh.exe' CommandLine|re: '(?i)\s[-/]e(c|nc|ncodedcommand)?\s' condition: selection_parent falsepositives: - Rare administrative backup post-scripts invoking Base64-encoded PowerShell directly from Java level: critical tags: - attack.persistence - attack.execution - attack.t1505.003 - attack.t1059.001 --- title: Windows SMB Lateral Staging Masquerading as MicrosoftEdgeUpdateCore in Temp id: 7a319c14-5c4b-4e82-9a11-386022721002 status: experimental description: Detects SYSTEM scheduled task creation for MicrosoftEdgeUpdateCore pointing to C:\Windows\Temp\msedge\edge.exe observed in inst_nb.ps1, go_local.ps1, and ahsay_localdep.py lateral movement. author: Odin by Brandefense date: 2026-11-16 logsource: product: windows category: process_creation detection: selection_schtasks: Image|endswith: '\schtasks.exe' CommandLine|contains|all: - '/create' - 'MicrosoftEdgeUpdateCore' - '\Windows\Temp\msedge\' selection_exec: Image|endswith: '\Windows\Temp\msedge\edge.exe' condition: selection_schtasks or selection_exec falsepositives: - Legitimate Microsoft Edge Update runs from Program Files (x86)\Microsoft\EdgeUpdate, never C:\Windows\Temp\msedge level: critical tags: - attack.lateral-movement - attack.persistence - attack.t1053.005 --- title: Hidden MSSQL$ Local Administrator Creation and Reverse Tunnel Tooling id: 7a319c14-5c4b-4e82-9a11-386022721006 status: experimental description: Detects hera_adduser.ps1 creating hidden local account MSSQL$ and hiding it under Winlogon SpecialAccounts UserList, or chisel/plink reverse-tunnel execution staged from workbench port 8000. author: Odin by Brandefense date: 2026-11-16 logsource: product: windows category: process_creation detection: selection_net_user: Image|endswith: - '\net.exe' - '\net1.exe' CommandLine|contains|all: - 'MSSQL$' - '/add' selection_reg_hide: CommandLine|contains|all: - 'Winlogon\SpecialAccounts\UserList' - 'MSSQL$' selection_tunnel: CommandLine|contains|all: - 'client' - ' R:' Image|endswith: - '\chisel.exe' - '\chisel_upx.exe' - '\chisel_orig.exe' condition: selection_net_user or selection_reg_hide or selection_tunnel falsepositives: - Legitimate SQL Server named-instance service administration uses sc.exe/net start MSSQL$INSTANCE, never net user MSSQL$ /add level: critical tags: - attack.persistence - attack.defense-evasion - attack.command-and-control - attack.t1136.001 - attack.t1572 --- title: PowerShell Script-Block Tampering with AnyDesk Password Hash or Nocturnal TaskMgr Loop id: 7a319c14-5c4b-4e82-9a11-386022721003 status: experimental description: Detects PowerShell EventID 4104 execution of hera_setpwd.ps1 (in-script Get-Content/Set-Content overwriting ad.anynet.pwd_hash in AnyDesk service.conf) or Taskgmr.ps1 (nocturnal 18:00-09:00 Taskmgr.exe kill loop). author: Odin by Brandefense date: 2026-11-16 logsource: product: windows category: ps_script detection: selection_anydesk_setpwd: ScriptBlockText|contains|all: - 'AnyDesk\service.conf' - 'ad.anynet.pwd_hash=' selection_taskgmr_loop: ScriptBlockText|contains|all: - 'MicrosoftEdgeUpdateSvc' - 'TaskMgrMaxOpenDuration' - 'KillStartTime' condition: selection_anydesk_setpwd or selection_taskgmr_loop falsepositives: - None expected; AnyDesk manages service.conf natively inside AnyDesk.exe rather than PowerShell Set-Content level: critical tags: - attack.persistence - attack.defense-evasion - attack.t1219 - attack.t1036.005