Detection Rule Catalog
Sigma rules mapped to MITRE ATT&CK, unit-tested against sample logs and compiled to Splunk SPL, Elastic Lucene and ES|QL on every commit.
ATT&CK coverage
Reconnaissance
Resource Development
Execution
T1047Windows Management Instrumentation1T1053.003Cron1T1053.005Scheduled Task1T1059.001PowerShell1T1059.004Unix Shell1Persistence
T1053.003Cron1T1053.005Scheduled Task1T1078.004Cloud Accounts1T1098Account Manipulation1T1098.003Additional Cloud Roles1T1098.004SSH Authorized Keys1T1505.003Web Shell1Privilege Escalation
T1053.003Cron1T1053.005Scheduled Task1T1078.004Cloud Accounts1T1098Account Manipulation1T1098.003Additional Cloud Roles1T1098.004SSH Authorized Keys1Defense Evasion
T1027Obfuscated Files or Information1T1070.001Clear Windows Event Logs1T1078.004Cloud Accounts1T1218.010Regsvr321T1562.008Disable or Modify Cloud Logs1Discovery
Lateral Movement
Collection
Exfiltration
Rules (18)
critical LSASS Memory Dumped With comsvcs.dll MiniDump windows / process_creation tests pass
Detects rundll32 calling the MiniDump export of comsvcs.dll (by name or ordinal 24), which is used to dump LSASS memory for offline credential extraction.
title: LSASS Memory Dumped With comsvcs.dll MiniDump
id: 7b0cee57-e8b6-4137-b20a-4c86f3c40a61
status: test
description: Detects rundll32 calling the MiniDump export of comsvcs.dll (by name or ordinal 24), which is used to dump LSASS memory for offline credential extraction.
references:
- https://attack.mitre.org/techniques/T1003/001/
- https://lolbas-project.github.io/lolbas/Libraries/comsvcs/
author: Dave
date: 2026-11-25
tags:
- attack.credential-access
- attack.t1003.001
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\rundll32.exe'
- OriginalFileName: 'RUNDLL32.EXE'
selection_dll:
CommandLine|contains: 'comsvcs'
selection_export:
CommandLine|contains:
- 'minidump'
- '#24'
- '#+24'
condition: all of selection_*
falsepositives:
- Unlikely
level: criticalImage="*\\rundll32.exe" OR OriginalFileName="RUNDLL32.EXE" CommandLine="*comsvcs*" CommandLine IN ("*minidump*", "*#24*", "*#+24*")(process.executable.caseless:*\\rundll32.exe OR process.pe.original_file_name:RUNDLL32.EXE) AND process.command_line:*comsvcs* AND (process.command_line:(*minidump* OR *#24* OR *#\+24*))from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, "\\rundll32.exe") or process.pe.original_file_name=="RUNDLL32.EXE") and process.command_line like "*comsvcs*" and (process.command_line like "*minidump*" or process.command_line like "*#24*" or process.command_line like "*#+24*")False positives
- Unlikely
high AWS AdministratorAccess Policy Attached to an Identity aws / cloudtrail tests pass
Detects the AWS managed AdministratorAccess policy being attached to a user, group or role, a fast way to escalate a foothold to full account control.
title: AWS AdministratorAccess Policy Attached to an Identity
id: febcb7c5-6f60-4f26-8212-89d5871dd42d
status: test
description: Detects the AWS managed AdministratorAccess policy being attached to a user, group or role, a fast way to escalate a foothold to full account control.
references:
- https://attack.mitre.org/techniques/T1098/003/
- https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachUserPolicy.html
author: Dave
date: 2026-11-25
tags:
- attack.persistence
- attack.privilege-escalation
- attack.t1098.003
logsource:
product: aws
service: cloudtrail
detection:
selection:
eventSource: 'iam.amazonaws.com'
eventName:
- 'AttachUserPolicy'
- 'AttachGroupPolicy'
- 'AttachRolePolicy'
requestParameters.policyArn|endswith: ':policy/AdministratorAccess'
filter_main_failed:
errorCode|exists: true
condition: selection and not 1 of filter_main_*
falsepositives:
- Break-glass role setup through infrastructure as code; exclude the deployment role by userIdentity.arn.
level: highsourcetype="aws:cloudtrail" eventSource="iam.amazonaws.com" eventName IN ("AttachUserPolicy", "AttachGroupPolicy", "AttachRolePolicy") requestParameters.policyArn="*:policy/AdministratorAccess" NOT errorCode=*(event.provider:iam.amazonaws.com AND (event.action:(AttachUserPolicy OR AttachGroupPolicy OR AttachRolePolicy)) AND aws.cloudtrail.flattened.request_parameters.policyArn:*\:policy\/AdministratorAccess) AND (NOT _exists_:aws.cloudtrail.error_code)from logs-aws.cloudtrail-*, filebeat-* metadata _id, _index, _version | where event.provider=="iam.amazonaws.com" and (event.action in ("AttachUserPolicy", "AttachGroupPolicy", "AttachRolePolicy")) and ends_with(aws.cloudtrail.flattened.request_parameters.policyArn, ":policy/AdministratorAccess") and not aws.cloudtrail.error_code is not nullFalse positives
- Break-glass role setup through infrastructure as code; exclude the deployment role by userIdentity.arn.
high AWS CloudTrail Logging Stopped or Trail Deleted aws / cloudtrail tests pass
Detects successful StopLogging or DeleteTrail calls. Disabling CloudTrail blinds the audit trail for every following API call in the account.
title: AWS CloudTrail Logging Stopped or Trail Deleted
id: da86cf4e-2f93-416f-8dbd-3b6116c2f84e
status: test
description: Detects successful StopLogging or DeleteTrail calls. Disabling CloudTrail blinds the audit trail for every following API call in the account.
references:
- https://attack.mitre.org/techniques/T1562/008/
- https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StopLogging.html
author: Dave
date: 2026-11-25
tags:
- attack.defense-evasion
- attack.t1562.008
logsource:
product: aws
service: cloudtrail
detection:
selection:
eventSource: 'cloudtrail.amazonaws.com'
eventName:
- 'StopLogging'
- 'DeleteTrail'
filter_main_failed:
errorCode|exists: true
condition: selection and not 1 of filter_main_*
falsepositives:
- Planned trail migration by the cloud platform team.
level: highsourcetype="aws:cloudtrail" eventSource="cloudtrail.amazonaws.com" eventName IN ("StopLogging", "DeleteTrail") NOT errorCode=*(event.provider:cloudtrail.amazonaws.com AND (event.action:(StopLogging OR DeleteTrail))) AND (NOT _exists_:aws.cloudtrail.error_code)from logs-aws.cloudtrail-*, filebeat-* metadata _id, _index, _version | where event.provider=="cloudtrail.amazonaws.com" and (event.action in ("StopLogging", "DeleteTrail")) and not aws.cloudtrail.error_code is not nullFalse positives
- Planned trail migration by the cloud platform team.
high AWS Root Account Console Login aws / cloudtrail tests pass
Detects a successful AWS Management Console sign-in with the root user. Day-to-day work should never use root, so every login deserves a look.
title: AWS Root Account Console Login
id: 64d77121-1019-4887-a803-54b3d56cd1f3
status: test
description: Detects a successful AWS Management Console sign-in with the root user. Day-to-day work should never use root, so every login deserves a look.
references:
- https://attack.mitre.org/techniques/T1078/004/
- https://docs.aws.amazon.com/IAM/latest/UserGuide/root-user-best-practices.html
author: Dave
date: 2026-11-25
tags:
- attack.initial-access
- attack.defense-evasion
- attack.persistence
- attack.privilege-escalation
- attack.t1078.004
logsource:
product: aws
service: cloudtrail
detection:
selection:
eventName: 'ConsoleLogin'
userIdentity.type: 'Root'
responseElements.ConsoleLogin: 'Success'
condition: selection
falsepositives:
- The few tasks that genuinely require root (closing the account, changing support plan); expect them to be announced.
level: highsourcetype="aws:cloudtrail" eventName="ConsoleLogin" userIdentity.type="Root" responseElements.ConsoleLogin="Success"event.action:ConsoleLogin AND aws.cloudtrail.user_identity.type:Root AND aws.cloudtrail.flattened.response_elements.ConsoleLogin:Successfrom logs-aws.cloudtrail-*, filebeat-* metadata _id, _index, _version | where event.action=="ConsoleLogin" and aws.cloudtrail.user_identity.type=="Root" and aws.cloudtrail.flattened.response_elements.ConsoleLogin=="Success"False positives
- The few tasks that genuinely require root (closing the account, changing support plan); expect them to be announced.
high Certutil Used to Download a File windows / process_creation tests pass
Detects certutil.exe fetching a remote URL with -urlcache or -verifyctl, a classic living-off-the-land download technique.
title: Certutil Used to Download a File
id: f1ca80c3-ee2e-4167-8245-ade13c81c910
status: test
description: Detects certutil.exe fetching a remote URL with -urlcache or -verifyctl, a classic living-off-the-land download technique.
references:
- https://attack.mitre.org/techniques/T1105/
- https://lolbas-project.github.io/lolbas/Binaries/Certutil/
author: Dave
date: 2026-11-25
tags:
- attack.command-and-control
- attack.t1105
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\certutil.exe'
- OriginalFileName: 'CertUtil.exe'
selection_cli:
CommandLine|windash|contains:
- '-urlcache '
- '-verifyctl '
selection_url:
CommandLine|contains:
- 'http://'
- 'https://'
- 'ftp://'
condition: all of selection_*
falsepositives:
- Administrators troubleshooting certificate revocation list retrieval.
level: highImage="*\\certutil.exe" OR OriginalFileName="CertUtil.exe" CommandLine="*-urlcache *" OR CommandLine="*/urlcache *" OR CommandLine="*–urlcache *" OR CommandLine="*—urlcache *" OR CommandLine="*―urlcache *" OR CommandLine="*-verifyctl *" OR CommandLine="*/verifyctl *" OR CommandLine="*–verifyctl *" OR CommandLine="*—verifyctl *" OR CommandLine="*―verifyctl *" CommandLine IN ("*http://*", "*https://*", "*ftp://*")(process.executable.caseless:*\\certutil.exe OR process.pe.original_file_name:CertUtil.exe) AND (process.command_line:(*\-urlcache\ * OR *\/urlcache\ * OR *–urlcache\ * OR *—urlcache\ * OR *―urlcache\ *) OR process.command_line:(*\-verifyctl\ * OR *\/verifyctl\ * OR *–verifyctl\ * OR *—verifyctl\ * OR *―verifyctl\ *)) AND (process.command_line:(*http\:\/\/* OR *https\:\/\/* OR *ftp\:\/\/*))from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, "\\certutil.exe") or process.pe.original_file_name=="CertUtil.exe") and (process.command_line like "*-urlcache *" or process.command_line like "*/urlcache *" or process.command_line like "*–urlcache *" or process.command_line like "*—urlcache *" or process.command_line like "*―urlcache *" or process.command_line like "*-verifyctl *" or process.command_line like "*/verifyctl *" or process.command_line like "*–verifyctl *" or process.command_line like "*—verifyctl *" or process.command_line like "*―verifyctl *") and (process.command_line like "*http://*" or process.command_line like "*https://*" or process.command_line like "*ftp://*")False positives
- Administrators troubleshooting certificate revocation list retrieval.
high Cron Job Installed That Downloads or Decodes a Payload linux / process_creation tests pass
Detects a crontab being written from a shell pipeline that also fetches or decodes content, the typical persistence step of Linux cryptominers and botnets.
title: Cron Job Installed That Downloads or Decodes a Payload
id: 9bb620c0-5a79-4530-bb5c-fb6e5f963d5f
status: test
description: Detects a crontab being written from a shell pipeline that also fetches or decodes content, the typical persistence step of Linux cryptominers and botnets.
references:
- https://attack.mitre.org/techniques/T1053/003/
author: Dave
date: 2026-11-25
tags:
- attack.execution
- attack.persistence
- attack.privilege-escalation
- attack.t1053.003
logsource:
category: process_creation
product: linux
detection:
selection_crontab:
CommandLine|contains: 'crontab'
selection_payload:
CommandLine|contains:
- 'curl '
- 'wget '
- '/dev/tcp/'
- 'base64 -d'
- 'base64 --decode'
condition: all of selection_*
falsepositives:
- Configuration management bootstrap scripts; they normally run from a known parent such as cloud-init.
level: highsourcetype="sysmon:linux" CommandLine="*crontab*" CommandLine IN ("*curl *", "*wget *", "*/dev/tcp/*", "*base64 -d*", "*base64 --decode*")process.command_line:*crontab* AND (process.command_line:(*curl\ * OR *wget\ * OR *\/dev\/tcp\/* OR *base64\ \-d* OR *base64\ \-\-decode*))from logs-endpoint.events.process-*, auditbeat-* metadata _id, _index, _version | where process.command_line like "*crontab*" and (process.command_line like "*curl *" or process.command_line like "*wget *" or process.command_line like "*/dev/tcp/*" or process.command_line like "*base64 -d*" or process.command_line like "*base64 --decode*")False positives
- Configuration management bootstrap scripts; they normally run from a known parent such as cloud-init.
high Regsvr32 Loading a Remote or Scriptlet COM Object windows / process_creation tests pass
Detects regsvr32 with a /i switch pointing at a URL or scrobj.dll ("Squiblydoo"), used to run script code through a signed Microsoft binary.
title: Regsvr32 Loading a Remote or Scriptlet COM Object
id: 16c8ef39-51aa-47c1-a998-a4958e47c26e
status: test
description: Detects regsvr32 with a /i switch pointing at a URL or scrobj.dll ("Squiblydoo"), used to run script code through a signed Microsoft binary.
references:
- https://attack.mitre.org/techniques/T1218/010/
- https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/
author: Dave
date: 2026-11-25
tags:
- attack.defense-evasion
- attack.t1218.010
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\regsvr32.exe'
- OriginalFileName: 'REGSVR32.EXE'
selection_flag:
CommandLine|windash|contains: '-i:'
selection_payload:
CommandLine|contains:
- 'http://'
- 'https://'
- 'scrobj.dll'
condition: all of selection_*
falsepositives:
- Unlikely
level: highImage="*\\regsvr32.exe" OR OriginalFileName="REGSVR32.EXE" CommandLine="*-i:*" OR CommandLine="*/i:*" OR CommandLine="*–i:*" OR CommandLine="*—i:*" OR CommandLine="*―i:*" CommandLine IN ("*http://*", "*https://*", "*scrobj.dll*")(process.executable.caseless:*\\regsvr32.exe OR process.pe.original_file_name:REGSVR32.EXE) AND process.command_line:(*\-i\:* OR *\/i\:* OR *–i\:* OR *—i\:* OR *―i\:*) AND (process.command_line:(*http\:\/\/* OR *https\:\/\/* OR *scrobj.dll*))from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, "\\regsvr32.exe") or process.pe.original_file_name=="REGSVR32.EXE") and (process.command_line like "*-i:*" or process.command_line like "*/i:*" or process.command_line like "*–i:*" or process.command_line like "*—i:*" or process.command_line like "*―i:*") and (process.command_line like "*http://*" or process.command_line like "*https://*" or process.command_line like "*scrobj.dll*")False positives
- Unlikely
high Reverse Shell Command Line on Linux linux / process_creation tests pass
Detects common reverse shell one-liners - bash redirection to /dev/tcp or /dev/udp, and netcat binding a shell with -e/-c.
title: Reverse Shell Command Line on Linux
id: 95c33114-d86b-46a0-991c-a88c190dcb4c
status: test
description: Detects common reverse shell one-liners - bash redirection to /dev/tcp or /dev/udp, and netcat binding a shell with -e/-c.
references:
- https://attack.mitre.org/techniques/T1059/004/
author: Dave
date: 2026-11-25
tags:
- attack.execution
- attack.t1059.004
logsource:
category: process_creation
product: linux
detection:
selection_devtcp:
CommandLine|contains:
- '/dev/tcp/'
- '/dev/udp/'
selection_netcat:
Image|endswith:
- '/nc'
- '/ncat'
- '/netcat'
- '/nc.traditional'
CommandLine|contains:
- ' -e /bin/sh'
- ' -e /bin/bash'
- ' -c /bin/sh'
- ' -c /bin/bash'
- ' -e sh'
- ' -e bash'
condition: 1 of selection_*
falsepositives:
- Health-check scripts that probe ports with bash /dev/tcp (they rarely redirect stdin and stdout to it).
level: highsourcetype="sysmon:linux" CommandLine IN ("*/dev/tcp/*", "*/dev/udp/*") OR (Image IN ("*/nc", "*/ncat", "*/netcat", "*/nc.traditional") CommandLine IN ("* -e /bin/sh*", "* -e /bin/bash*", "* -c /bin/sh*", "* -c /bin/bash*", "* -e sh*", "* -e bash*"))(process.command_line:(*\/dev\/tcp\/* OR *\/dev\/udp\/*)) OR ((process.executable:(*\/nc OR *\/ncat OR *\/netcat OR *\/nc.traditional)) AND (process.command_line:(*\ \-e\ \/bin\/sh* OR *\ \-e\ \/bin\/bash* OR *\ \-c\ \/bin\/sh* OR *\ \-c\ \/bin\/bash* OR *\ \-e\ sh* OR *\ \-e\ bash*)))from logs-endpoint.events.process-*, auditbeat-* metadata _id, _index, _version | where process.command_line like "*/dev/tcp/*" or process.command_line like "*/dev/udp/*" or (ends_with(process.executable, "/nc") or ends_with(process.executable, "/ncat") or ends_with(process.executable, "/netcat") or ends_with(process.executable, "/nc.traditional")) and (process.command_line like "* -e /bin/sh*" or process.command_line like "* -e /bin/bash*" or process.command_line like "* -c /bin/sh*" or process.command_line like "* -c /bin/bash*" or process.command_line like "* -e sh*" or process.command_line like "* -e bash*")False positives
- Health-check scripts that probe ports with bash /dev/tcp (they rarely redirect stdin and stdout to it).
high Security Event Log Cleared windows / security tests pass
Detects event 1102 (the audit log was cleared). Attackers clear the Security log to remove evidence of logons and privilege use.
title: Security Event Log Cleared
id: eb402ed1-9e53-4fde-a2f1-82fe783bddea
status: test
description: Detects event 1102 (the audit log was cleared). Attackers clear the Security log to remove evidence of logons and privilege use.
references:
- https://attack.mitre.org/techniques/T1070/001/
- https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-1102
author: Dave
date: 2026-11-25
tags:
- attack.defense-evasion
- attack.t1070.001
logsource:
product: windows
service: security
detection:
selection:
EventID: 1102
Provider_Name: 'Microsoft-Windows-Eventlog'
condition: selection
falsepositives:
- Planned log rotation on hosts without forwarding (should be rare and announced).
level: highsource="WinEventLog:Security" EventCode=1102 Provider_Name="Microsoft-Windows-Eventlog"winlog.channel:Security AND (event.code:1102 AND winlog.provider_name:Microsoft\-Windows\-Eventlog)from logs-system.security-*, winlogbeat-* metadata _id, _index, _version | where winlog.channel=="Security" and event.code=="1102" and winlog.provider_name=="Microsoft-Windows-Eventlog"False positives
- Planned log rotation on hosts without forwarding (should be rare and announced).
high Volume Shadow Copies or Backup Catalog Deleted windows / process_creation tests pass
Detects vssadmin, wmic or wbadmin being used to delete shadow copies or the backup catalog. Ransomware does this right before encryption so that victims cannot roll files back.
title: Volume Shadow Copies or Backup Catalog Deleted
id: d64da330-1afb-40a3-a9a2-d40a4b5ff0f5
status: test
description: |
Detects vssadmin, wmic or wbadmin being used to delete shadow copies or the backup catalog.
Ransomware does this right before encryption so that victims cannot roll files back.
references:
- https://attack.mitre.org/techniques/T1490/
author: Dave
date: 2026-11-25
tags:
- attack.impact
- attack.t1490
logsource:
category: process_creation
product: windows
detection:
selection_vssadmin:
Image|endswith: '\vssadmin.exe'
CommandLine|contains|all:
- 'delete'
- 'shadows'
selection_wmic:
Image|endswith: '\wmic.exe'
CommandLine|contains|all:
- 'shadowcopy'
- 'delete'
selection_wbadmin:
Image|endswith: '\wbadmin.exe'
CommandLine|contains|all:
- 'delete'
- 'catalog'
condition: 1 of selection_*
falsepositives:
- Backup software rotating its own snapshots (usually through the VSS API rather than these tools).
level: high(Image="*\\vssadmin.exe" CommandLine="*delete*" CommandLine="*shadows*") OR (Image="*\\wmic.exe" CommandLine="*shadowcopy*" CommandLine="*delete*") OR (Image="*\\wbadmin.exe" CommandLine="*delete*" CommandLine="*catalog*")(process.executable.caseless:*\\vssadmin.exe AND (process.command_line:*delete* AND process.command_line:*shadows*)) OR (process.executable.caseless:*\\wmic.exe AND (process.command_line:*shadowcopy* AND process.command_line:*delete*)) OR (process.executable.caseless:*\\wbadmin.exe AND (process.command_line:*delete* AND process.command_line:*catalog*))from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where ends_with(process.executable.caseless, "\\vssadmin.exe") and process.command_line like "*delete*" and process.command_line like "*shadows*" or ends_with(process.executable.caseless, "\\wmic.exe") and process.command_line like "*shadowcopy*" and process.command_line like "*delete*" or ends_with(process.executable.caseless, "\\wbadmin.exe") and process.command_line like "*delete*" and process.command_line like "*catalog*"False positives
- Backup software rotating its own snapshots (usually through the VSS API rather than these tools).
high Web Shell Command Execution via Query Parameter webserver tests pass
Detects requests to server-side script pages whose query string passes a reconnaissance command (whoami, id, uname, ipconfig, hostname) in a cmd/exec style parameter.
title: Web Shell Command Execution via Query Parameter
id: 179db1ef-ef21-49ba-aaf1-bd537fd20abc
status: test
description: Detects requests to server-side script pages whose query string passes a reconnaissance command (whoami, id, uname, ipconfig, hostname) in a cmd/exec style parameter.
references:
- https://attack.mitre.org/techniques/T1505/003/
author: Dave
date: 2026-11-25
tags:
- attack.persistence
- attack.t1505.003
logsource:
category: webserver
detection:
selection_page:
cs-uri-stem|endswith:
- '.php'
- '.jsp'
- '.jspx'
- '.asp'
- '.aspx'
- '.ashx'
selection_cmd:
# Leading and trailing .* keep the regex portable: Lucene and ES|QL anchor regexes to the whole value.
cs-uri-query|re: '.*(cmd|exec|command|execute|run)=(whoami|id|uname|ipconfig|ifconfig|hostname).*'
condition: all of selection_*
falsepositives:
- Internal admin tools that legitimately expose a command parameter (they should not be internet-facing).
level: highuri_path IN ("*.php", "*.jsp", "*.jspx", "*.asp", "*.aspx", "*.ashx")
| regex uri_query=".*(cmd|exec|command|execute|run)=(whoami|id|uname|ipconfig|ifconfig|hostname).*"(url.path:(*.php OR *.jsp OR *.jspx OR *.asp OR *.aspx OR *.ashx)) AND url.query:/.*(cmd|exec|command|execute|run)=(whoami|id|uname|ipconfig|ifconfig|hostname).*/from logs-nginx.access-*, logs-apache.access-*, logs-iis.access-*, filebeat-* metadata _id, _index, _version | where (ends_with(url.path, ".php") or ends_with(url.path, ".jsp") or ends_with(url.path, ".jspx") or ends_with(url.path, ".asp") or ends_with(url.path, ".aspx") or ends_with(url.path, ".ashx")) and url.query rlike ".*(cmd|exec|command|execute|run)=(whoami|id|uname|ipconfig|ifconfig|hostname).*"False positives
- Internal admin tools that legitimately expose a command parameter (they should not be internet-facing).
medium Account Added to the Local Administrators Group windows / security tests pass
Detects event 4732 where the target group is BUILTIN\Administrators (SID S-1-5-32-544), excluding changes made by the machine account during provisioning.
title: Account Added to the Local Administrators Group
id: 1e50b0b6-9f18-4058-bb22-c3ffc59f7c18
status: test
description: Detects event 4732 where the target group is BUILTIN\Administrators (SID S-1-5-32-544), excluding changes made by the machine account during provisioning.
references:
- https://attack.mitre.org/techniques/T1098/
- https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4732
author: Dave
date: 2026-11-25
tags:
- attack.persistence
- attack.privilege-escalation
- attack.t1098
logsource:
product: windows
service: security
detection:
selection:
EventID: 4732
TargetSid: 'S-1-5-32-544'
filter_main_machine_account:
SubjectUserName|endswith: '$'
condition: selection and not 1 of filter_main_*
falsepositives:
- Help desk granting temporary admin rights; correlate with a change ticket.
level: mediumsource="WinEventLog:Security" EventCode=4732 TargetSid="S-1-5-32-544" NOT SubjectUserName="*$"winlog.channel:Security AND ((event.code:4732 AND winlog.event_data.TargetSid:S\-1\-5\-32\-544) AND (NOT user.name:*$))from logs-system.security-*, winlogbeat-* metadata _id, _index, _version | where winlog.channel=="Security" and event.code=="4732" and winlog.event_data.TargetSid=="S-1-5-32-544" and not ends_with(user.name, "$")False positives
- Help desk granting temporary admin rights; correlate with a change ticket.
medium Kerberos Service Ticket Requested With RC4 Encryption windows / security tests pass
Detects successful TGS requests (event 4769) using RC4-HMAC (0x17) for a user service account. Kerberoasting tools request RC4 tickets because they are much faster to crack offline than AES ones.
title: Kerberos Service Ticket Requested With RC4 Encryption
id: 1919ec4f-a56d-437c-b6de-adbdaec8c7eb
status: test
description: |
Detects successful TGS requests (event 4769) using RC4-HMAC (0x17) for a user service account.
Kerberoasting tools request RC4 tickets because they are much faster to crack offline than AES ones.
references:
- https://attack.mitre.org/techniques/T1558/003/
- https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4769
author: Dave
date: 2026-11-25
tags:
- attack.credential-access
- attack.t1558.003
logsource:
product: windows
service: security
detection:
selection:
EventID: 4769
TicketEncryptionType: '0x17'
Status: '0x0'
filter_main_machine_or_krbtgt:
- ServiceName|endswith: '$'
- ServiceName: 'krbtgt'
condition: selection and not 1 of filter_main_*
falsepositives:
- Legacy applications or appliances that only support RC4; inventory them and exclude by IpAddress.
level: mediumsource="WinEventLog:Security" EventCode=4769 TicketEncryptionType="0x17" Status="0x0" NOT (ServiceName IN ("*$", "krbtgt"))winlog.channel:Security AND ((event.code:4769 AND winlog.event_data.TicketEncryptionType:0x17 AND winlog.event_data.Status:0x0) AND (NOT (service.name:(*$ OR krbtgt))))from logs-system.security-*, winlogbeat-* metadata _id, _index, _version | where winlog.channel=="Security" and event.code=="4769" and winlog.event_data.TicketEncryptionType=="0x17" and winlog.event_data.Status=="0x0" and not (ends_with(service.name, "$") or service.name=="krbtgt")False positives
- Legacy applications or appliances that only support RC4; inventory them and exclude by IpAddress.
medium Path Traversal or Local File Inclusion Attempt in a Web Request webserver tests pass
Detects directory traversal sequences (plain or URL-encoded) and requests for well-known sensitive files in the URI of web server access logs.
title: Path Traversal or Local File Inclusion Attempt in a Web Request
id: ffe90572-ec84-4176-8163-cc83448eb75b
status: test
description: Detects directory traversal sequences (plain or URL-encoded) and requests for well-known sensitive files in the URI of web server access logs.
references:
- https://attack.mitre.org/techniques/T1190/
- https://owasp.org/www-community/attacks/Path_Traversal
author: Dave
date: 2026-11-25
tags:
- attack.initial-access
- attack.t1190
logsource:
category: webserver
detection:
selection_traversal:
cs-uri-query|contains:
- '../'
- '..\'
- '..%2f'
- '..%5c'
- '%2e%2e%2f'
- '%2e%2e/'
- '..%252f'
selection_files:
cs-uri-query|contains:
- '/etc/passwd'
- '/etc/shadow'
- '/proc/self/environ'
- 'win.ini'
- 'boot.ini'
condition: 1 of selection_*
falsepositives:
- Vulnerability scanners run by the security team; exclude their source addresses.
level: mediumuri_query IN ("*../*", "*..\\*", "*..%2f*", "*..%5c*", "*%2e%2e%2f*", "*%2e%2e/*", "*..%252f*") OR uri_query IN ("*/etc/passwd*", "*/etc/shadow*", "*/proc/self/environ*", "*win.ini*", "*boot.ini*")(url.query:(*..\/* OR *..\\* OR *..%2f* OR *..%5c* OR *%2e%2e%2f* OR *%2e%2e\/* OR *..%252f*)) OR (url.query:(*\/etc\/passwd* OR *\/etc\/shadow* OR *\/proc\/self\/environ* OR *win.ini* OR *boot.ini*))from logs-nginx.access-*, logs-apache.access-*, logs-iis.access-*, filebeat-* metadata _id, _index, _version | where url.query like "*../*" or url.query like "*..\\*" or url.query like "*..%2f*" or url.query like "*..%5c*" or url.query like "*%2e%2e%2f*" or url.query like "*%2e%2e/*" or url.query like "*..%252f*" or url.query like "*/etc/passwd*" or url.query like "*/etc/shadow*" or url.query like "*/proc/self/environ*" or url.query like "*win.ini*" or url.query like "*boot.ini*"False positives
- Vulnerability scanners run by the security team; exclude their source addresses.
medium PowerShell Launched With an Encoded Command windows / process_creation tests pass
Detects PowerShell started with -EncodedCommand (or one of its abbreviations such as -enc / -e / -ec). Base64-encoded command lines are a common way for loaders and malicious macros to hide what they run.
title: PowerShell Launched With an Encoded Command
id: fe5675ae-2a88-4ae8-a66d-d6ea9a44fbf3
status: test
description: |
Detects PowerShell started with -EncodedCommand (or one of its abbreviations such as -enc / -e / -ec).
Base64-encoded command lines are a common way for loaders and malicious macros to hide what they run.
references:
- https://attack.mitre.org/techniques/T1059/001/
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_powershell_exe
author: Dave
date: 2026-11-25
tags:
- attack.execution
- attack.t1059.001
- attack.defense-evasion
- attack.t1027
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- OriginalFileName:
- 'PowerShell.EXE'
- 'pwsh.dll'
selection_flag:
CommandLine|windash|contains:
- ' -e '
- ' -en '
- ' -enc '
- ' -enco '
- ' -ec '
- ' -encodedcommand '
condition: all of selection_*
falsepositives:
- Some management agents (SCCM, RMM tools) pass encoded commands; tune with a ParentImage filter.
level: mediumImage IN ("*\\powershell.exe", "*\\pwsh.exe") OR OriginalFileName IN ("PowerShell.EXE", "pwsh.dll") CommandLine="* -e *" OR CommandLine="* /e *" OR CommandLine="* –e *" OR CommandLine="* —e *" OR CommandLine="* ―e *" OR CommandLine="* -en *" OR CommandLine="* /en *" OR CommandLine="* –en *" OR CommandLine="* —en *" OR CommandLine="* ―en *" OR CommandLine="* -enc *" OR CommandLine="* /enc *" OR CommandLine="* –enc *" OR CommandLine="* —enc *" OR CommandLine="* ―enc *" OR CommandLine="* -enco *" OR CommandLine="* /enco *" OR CommandLine="* –enco *" OR CommandLine="* —enco *" OR CommandLine="* ―enco *" OR CommandLine="* -ec *" OR CommandLine="* /ec *" OR CommandLine="* –ec *" OR CommandLine="* —ec *" OR CommandLine="* ―ec *" OR CommandLine="* -encodedcommand *" OR CommandLine="* /encodedcommand *" OR CommandLine="* –encodedcommand *" OR CommandLine="* —encodedcommand *" OR CommandLine="* ―encodedcommand *"((process.executable.caseless:(*\\powershell.exe OR *\\pwsh.exe)) OR (process.pe.original_file_name:(PowerShell.EXE OR pwsh.dll))) AND (process.command_line:(*\ \-e\ * OR *\ \/e\ * OR *\ –e\ * OR *\ —e\ * OR *\ ―e\ *) OR process.command_line:(*\ \-en\ * OR *\ \/en\ * OR *\ –en\ * OR *\ —en\ * OR *\ ―en\ *) OR process.command_line:(*\ \-enc\ * OR *\ \/enc\ * OR *\ –enc\ * OR *\ —enc\ * OR *\ ―enc\ *) OR process.command_line:(*\ \-enco\ * OR *\ \/enco\ * OR *\ –enco\ * OR *\ —enco\ * OR *\ ―enco\ *) OR process.command_line:(*\ \-ec\ * OR *\ \/ec\ * OR *\ –ec\ * OR *\ —ec\ * OR *\ ―ec\ *) OR process.command_line:(*\ \-encodedcommand\ * OR *\ \/encodedcommand\ * OR *\ –encodedcommand\ * OR *\ —encodedcommand\ * OR *\ ―encodedcommand\ *))from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, "\\powershell.exe") or ends_with(process.executable.caseless, "\\pwsh.exe") or process.pe.original_file_name in ("PowerShell.EXE", "pwsh.dll")) and (process.command_line like "* -e *" or process.command_line like "* /e *" or process.command_line like "* –e *" or process.command_line like "* —e *" or process.command_line like "* ―e *" or process.command_line like "* -en *" or process.command_line like "* /en *" or process.command_line like "* –en *" or process.command_line like "* —en *" or process.command_line like "* ―en *" or process.command_line like "* -enc *" or process.command_line like "* /enc *" or process.command_line like "* –enc *" or process.command_line like "* —enc *" or process.command_line like "* ―enc *" or process.command_line like "* -enco *" or process.command_line like "* /enco *" or process.command_line like "* –enco *" or process.command_line like "* —enco *" or process.command_line like "* ―enco *" or process.command_line like "* -ec *" or process.command_line like "* /ec *" or process.command_line like "* –ec *" or process.command_line like "* —ec *" or process.command_line like "* ―ec *" or process.command_line like "* -encodedcommand *" or process.command_line like "* /encodedcommand *" or process.command_line like "* –encodedcommand *" or process.command_line like "* —encodedcommand *" or process.command_line like "* ―encodedcommand *")False positives
- Some management agents (SCCM, RMM tools) pass encoded commands; tune with a ParentImage filter.
medium Scheduled Task Created to Run From a User-Writable Folder windows / process_creation tests pass
Detects schtasks /create where the task action points into Temp, Public, ProgramData or AppData, a common persistence pattern for droppers.
title: Scheduled Task Created to Run From a User-Writable Folder
id: bd8f2b9f-c6c3-46ad-b68b-cc4c5ae289d9
status: test
description: Detects schtasks /create where the task action points into Temp, Public, ProgramData or AppData, a common persistence pattern for droppers.
references:
- https://attack.mitre.org/techniques/T1053/005/
author: Dave
date: 2026-11-25
tags:
- attack.execution
- attack.persistence
- attack.privilege-escalation
- attack.t1053.005
logsource:
category: process_creation
product: windows
detection:
selection_img:
Image|endswith: '\schtasks.exe'
selection_create:
CommandLine|windash|contains: '-create '
selection_path:
CommandLine|contains:
- '\AppData\Local\Temp\'
- '\AppData\Roaming\'
- '\Users\Public\'
- '\ProgramData\'
- '%TEMP%'
- '%APPDATA%'
- '%PUBLIC%'
filter_main_system:
ParentImage|startswith:
- 'C:\Windows\System32\'
- 'C:\Program Files\'
- 'C:\Program Files (x86)\'
condition: all of selection_* and not 1 of filter_main_*
falsepositives:
- Installers that stage a helper task in ProgramData; add their parent image to the filter.
level: mediumImage="*\\schtasks.exe" CommandLine="*-create *" OR CommandLine="*/create *" OR CommandLine="*–create *" OR CommandLine="*—create *" OR CommandLine="*―create *" CommandLine IN ("*\\AppData\\Local\\Temp\\*", "*\\AppData\\Roaming\\*", "*\\Users\\Public\\*", "*\\ProgramData\\*", "*%TEMP%*", "*%APPDATA%*", "*%PUBLIC%*") NOT (ParentImage IN ("C:\\Windows\\System32\\*", "C:\\Program Files\\*", "C:\\Program Files (x86)\\*"))(process.executable.caseless:*\\schtasks.exe AND process.command_line:(*\-create\ * OR *\/create\ * OR *–create\ * OR *—create\ * OR *―create\ *) AND (process.command_line:(*\\AppData\\Local\\Temp\\* OR *\\AppData\\Roaming\\* OR *\\Users\\Public\\* OR *\\ProgramData\\* OR *%TEMP%* OR *%APPDATA%* OR *%PUBLIC%*))) AND (NOT (process.parent.executable.caseless:(C\:\\Windows\\System32\\* OR C\:\\Program\ Files\\* OR C\:\\Program\ Files\ \(x86\)\\*)))from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where ends_with(process.executable.caseless, "\\schtasks.exe") and (process.command_line like "*-create *" or process.command_line like "*/create *" or process.command_line like "*–create *" or process.command_line like "*—create *" or process.command_line like "*―create *") and (process.command_line like "*\\AppData\\Local\\Temp\\*" or process.command_line like "*\\AppData\\Roaming\\*" or process.command_line like "*\\Users\\Public\\*" or process.command_line like "*\\ProgramData\\*" or process.command_line like "*%TEMP%*" or process.command_line like "*%APPDATA%*" or process.command_line like "*%PUBLIC%*") and not (starts_with(process.parent.executable.caseless, "C:\\Windows\\System32\\") or starts_with(process.parent.executable.caseless, "C:\\Program Files\\") or starts_with(process.parent.executable.caseless, "C:\\Program Files (x86)\\"))False positives
- Installers that stage a helper task in ProgramData; add their parent image to the filter.
medium SSH Authorized Keys File Modified linux / file_event tests pass
Detects writes to authorized_keys files outside of known provisioning tools. Adding a key gives an attacker password-less SSH access that survives password resets.
title: SSH Authorized Keys File Modified
id: 5262f814-c8b6-4816-acad-e968396c6de9
status: test
description: Detects writes to authorized_keys files outside of known provisioning tools. Adding a key gives an attacker password-less SSH access that survives password resets.
references:
- https://attack.mitre.org/techniques/T1098/004/
author: Dave
date: 2026-11-25
tags:
- attack.persistence
- attack.privilege-escalation
- attack.t1098.004
logsource:
category: file_event
product: linux
detection:
selection:
TargetFilename|endswith:
- '/.ssh/authorized_keys'
- '/.ssh/authorized_keys2'
filter_main_provisioning:
Image|endswith:
- '/cloud-init'
- '/google_guest_agent'
- '/waagent'
condition: selection and not 1 of filter_main_*
falsepositives:
- Users adding their own keys with an editor or ssh-copy-id; consider lowering severity for non-root home directories.
level: mediumsourcetype="sysmon:linux" TargetFilename IN ("*/.ssh/authorized_keys", "*/.ssh/authorized_keys2") NOT (Image IN ("*/cloud-init", "*/google_guest_agent", "*/waagent"))(file.path:(*\/.ssh\/authorized_keys OR *\/.ssh\/authorized_keys2)) AND (NOT (process.executable:(*\/cloud\-init OR *\/google_guest_agent OR *\/waagent)))from logs-endpoint.events.file-*, auditbeat-* metadata _id, _index, _version | where (ends_with(file.path, "/.ssh/authorized_keys") or ends_with(file.path, "/.ssh/authorized_keys2")) and not (ends_with(process.executable, "/cloud-init") or ends_with(process.executable, "/google_guest_agent") or ends_with(process.executable, "/waagent"))False positives
- Users adding their own keys with an editor or ssh-copy-id; consider lowering severity for non-root home directories.
medium WMIC Remote Process Creation windows / process_creation tests pass
Detects wmic.exe starting a process on another host (/node:<host> process call create), a lateral execution technique that needs no extra tooling.
title: WMIC Remote Process Creation
id: 9ea64786-ad5a-41a5-86f8-da28530ca023
status: test
description: Detects wmic.exe starting a process on another host (/node:<host> process call create), a lateral execution technique that needs no extra tooling.
references:
- https://attack.mitre.org/techniques/T1047/
author: Dave
date: 2026-11-25
tags:
- attack.execution
- attack.t1047
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\wmic.exe'
- OriginalFileName: 'wmic.exe'
selection_remote:
CommandLine|windash|contains: '-node:'
selection_create:
CommandLine|contains|all:
- 'process'
- 'call'
- 'create'
filter_main_localhost:
CommandLine|windash|contains:
- '-node:localhost '
- '-node:127.0.0.1 '
- '-node:"localhost"'
condition: all of selection_* and not 1 of filter_main_*
falsepositives:
- Software deployment scripts that still use WMIC; most have moved to PowerShell remoting or an agent.
level: mediumImage="*\\wmic.exe" OR OriginalFileName="wmic.exe" CommandLine="*-node:*" OR CommandLine="*/node:*" OR CommandLine="*–node:*" OR CommandLine="*—node:*" OR CommandLine="*―node:*" CommandLine="*process*" CommandLine="*call*" CommandLine="*create*" NOT (CommandLine="*-node:localhost *" OR CommandLine="*/node:localhost *" OR CommandLine="*–node:localhost *" OR CommandLine="*—node:localhost *" OR CommandLine="*―node:localhost *" OR CommandLine="*-node:127.0.0.1 *" OR CommandLine="*/node:127.0.0.1 *" OR CommandLine="*–node:127.0.0.1 *" OR CommandLine="*—node:127.0.0.1 *" OR CommandLine="*―node:127.0.0.1 *" OR CommandLine="*-node:\"localhost\"*" OR CommandLine="*/node:\"localhost\"*" OR CommandLine="*–node:\"localhost\"*" OR CommandLine="*—node:\"localhost\"*" OR CommandLine="*―node:\"localhost\"*")((process.executable.caseless:*\\wmic.exe OR process.pe.original_file_name:wmic.exe) AND process.command_line:(*\-node\:* OR *\/node\:* OR *–node\:* OR *—node\:* OR *―node\:*) AND (process.command_line:*process* AND process.command_line:*call* AND process.command_line:*create*)) AND (NOT (process.command_line:(*\-node\:localhost\ * OR *\/node\:localhost\ * OR *–node\:localhost\ * OR *—node\:localhost\ * OR *―node\:localhost\ *) OR process.command_line:(*\-node\:127.0.0.1\ * OR *\/node\:127.0.0.1\ * OR *–node\:127.0.0.1\ * OR *—node\:127.0.0.1\ * OR *―node\:127.0.0.1\ *) OR process.command_line:(*\-node\:\"localhost\"* OR *\/node\:\"localhost\"* OR *–node\:\"localhost\"* OR *—node\:\"localhost\"* OR *―node\:\"localhost\"*)))from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, "\\wmic.exe") or process.pe.original_file_name=="wmic.exe") and (process.command_line like "*-node:*" or process.command_line like "*/node:*" or process.command_line like "*–node:*" or process.command_line like "*—node:*" or process.command_line like "*―node:*") and process.command_line like "*process*" and process.command_line like "*call*" and process.command_line like "*create*" and not (process.command_line like "*-node:localhost *" or process.command_line like "*/node:localhost *" or process.command_line like "*–node:localhost *" or process.command_line like "*—node:localhost *" or process.command_line like "*―node:localhost *" or process.command_line like "*-node:127.0.0.1 *" or process.command_line like "*/node:127.0.0.1 *" or process.command_line like "*–node:127.0.0.1 *" or process.command_line like "*—node:127.0.0.1 *" or process.command_line like "*―node:127.0.0.1 *" or process.command_line like "*-node:\"localhost\"*" or process.command_line like "*/node:\"localhost\"*" or process.command_line like "*–node:\"localhost\"*" or process.command_line like "*—node:\"localhost\"*" or process.command_line like "*―node:\"localhost\"*")False positives
- Software deployment scripts that still use WMIC; most have moved to PowerShell remoting or an agent.