title: SQL Server Agent Spawning CmdExec Dropper or ProgramData Tunnel Binary id: 95a1b201-4e11-4c92-8a15-202611160501 status: experimental description: > Detects Microsoft SQL Server Agent (sqlagent.exe) or Database Engine (sqlservr.exe) directly spawning command shells or file-transfer utilities referencing C:\ProgramData\, reverse tunnel flags, diagnostic collectors, or Defender tampering queries, matching AA_mcp.sql, AB_diag.sql, AC_diag2.sql, and AD_svc.sql while avoiding routine TSQL maintenance noise. author: Odin by Brandefense date: 2026-11-16 logsource: category: process_creation product: windows detection: selection_parent: ParentImage|endswith: - '\sqlagent.exe' - '\sqlservr.exe' selection_child: Image|endswith: - '\cmd.exe' - '\powershell.exe' - '\pwsh.exe' - '\curl.exe' - '\certutil.exe' - '\rs.exe' - '\svc.exe' selection_cli: CommandLine|contains: - 'C:\ProgramData\' - '--reconnect' - '--port 9001' - '43.230.171.146' - 'start_svc.ps1' - 'diag.txt' - 'Get-MpThreat' condition: selection_parent and selection_child and selection_cli falsepositives: - Rare third-party DBA monitoring scripts explicitly staged inside C:\ProgramData\ level: critical tags: - attack.persistence - attack.execution - attack.t1505.001 --- title: Epicor Kinetic IIS Worker Writing BPM Verification File or ASPX Webshell id: 95b2c302-5f22-4d03-9b26-202611160502 status: experimental description: > Detects IIS worker processes (w3wp.exe) hosting Epicor Kinetic application pools performing in-process CLR File.WriteAllText writes of BPM verification markers (rcx_bpm.txt) or ASPX files inside inetpub\wwwroot following SQL injection of XAML CustomCodeAction payloads into Ice.BpDirective. Pair general .aspx writes with maintenance-window change controls. author: Odin by Brandefense date: 2026-11-16 logsource: category: file_event product: windows detection: selection_iis_writer: Image|endswith: '\w3wp.exe' TargetFilename|contains: '\inetpub\wwwroot\' selection_artifact: TargetFilename|endswith: - '\rcx_bpm.txt' - '.aspx' condition: selection_iis_writer and selection_artifact falsepositives: - Planned Epicor Kinetic application deployments or hotfix rollouts writing .aspx files during maintenance windows level: high tags: - attack.persistence - attack.t1505.003 --- title: Activiti or n8n Workflow Runtime Spawning Shell or Empty-Argv Pkexec Escalation id: 95c3d403-6a33-4e14-8c37-202611160503 status: experimental description: > Detects Apache Activiti / Flowable (Java) or n8n (Node.js) workflow runtimes spawning interactive POSIX shells (excluding npm package lifecycle scripts on EDRs populating ParentCommandLine), or local privilege escalation via CVE-2021-4034 (PwnKit) where pkexec is invoked via zero-argument execve (empty or null CommandLine, never bare 'pkexec') from a GCONV_PATH/writable staging directory or workflow parent alongside GCONV_PATH=. environment staging or /tmp/pwned_bash execution (pair with Linux auditd EXECVE argc=0 rules where process_creation omits empty-argv telemetry). author: Odin by Brandefense date: 2026-11-16 logsource: category: process_creation product: linux detection: selection_workflow_parent: ParentImage|endswith: - '/java' - '/node' ParentCommandLine|contains: - 'activiti' - 'org.activiti' - 'flowable' - '/n8n' - 'n8n start' - 'task-runner' selection_workflow_shell_child: Image|endswith: - '/bash' - '/sh' - '/dash' - '/zsh' - '/curl' selection_pwnkit_empty_argv: Image|endswith: '/pkexec' CommandLine: - '' - null selection_pwnkit_cwd: CurrentDirectory|contains: - 'GCONV_PATH=' - '/tmp/' - '/dev/shm/' - '/var/tmp/' selection_pwnkit_gconv_cli: CommandLine|contains: - 'GCONV_PATH=.' - 'CHARSET=PWNKIT' selection_pwnkit_dropper: Image|endswith: '/pwned_bash' condition: (selection_workflow_parent and selection_workflow_shell_child) or (selection_pwnkit_empty_argv and (selection_pwnkit_cwd or selection_workflow_parent)) or selection_pwnkit_gconv_cli or selection_pwnkit_dropper falsepositives: - Self-hosted n8n or Activiti servers intentionally configured to execute host shell commands level: high tags: - attack.execution - attack.privilege-escalation - attack.t1059.004 - attack.t1068