Detection rules › Sigma

Sigma rules: 2d

RuleSeverity
Access of Sudoers File Contentmedium
Activity From Anonymous IP Addresshigh
Bypass UAC via Fodhelper.exehigh
CVE-2023-46747 Exploitation Activity - Webserverhigh
Diamond Sleet APT Scheduled Task Creationcritical
Disable Or Stop Servicesmedium
DNS Exfiltration and Tunneling Tools Executionhigh
Download from Suspicious Dyndns Hostsmedium
Google Workspace Granted Domain API Accessmedium
Host constrained delegation settings changed for potential abuse (Rubeus) - Kerberos onlyhigh
macOS ESF Suspicious W+X Memory Mappinghigh
Okta Admin Functions Access Through Proxymedium
OpenSSH server firewall configuration on Windows (command)high
Possible DCSync Attackhigh
Potential APT FIN7 Exploitation Activitymedium
Potential PowerShell Execution Policy Tampering - ProcCreationhigh
Python Image Load By Non-Python Processlow
Regedit as Trusted Installerhigh
Remote Printing Abuse for Lateral Movementhigh
Remote Thread Creation In Uncommon Target Imagemedium
Renamed Procdump tool used for dumping LSASS processhigh
Service DACL Abuse To Hide Services Via Sc.EXEhigh
Set Files as System Files Using Attrib.EXElow
Suspicious Get-ADDBAccount Usagehigh
Suspicious modification of a fake domain controller SPN (DCshadow) (Directory Services)high
Suspicious Rundll32 Setupapi.dll Activitymedium
Suspicious ScreenSave Change by Reg.exemedium
Systemd Service Creationmedium
Transferring Files with Credential Data via Network Shares - Zeekmedium
Turla Group Named Pipescritical
Use of Legacy Authentication Protocolshigh
Visual Studio Code Tunnel Executionmedium
WINEKEY Registry Modificationhigh
Winnti Pipemon Characteristicscritical

Access of Sudoers File Content

#
Status
test
Severity
medium
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the execution of a text-based file access or inspection utilities to read the content of /etc/sudoers in order to potentially list all users that have sudo rights.

Known False Positives

  • Legitimate administration activities

MITRE ATT&CK Coverage

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Access of Sudoers File Content
id: 0f79c4d2-4e1f-4683-9c36-b5469a665e06
status: test
description: Detects the execution of a text-based file access or inspection utilities to read the content of /etc/sudoers in order to potentially list all users that have sudo rights.
references:
    - https://github.com/sleventyeleven/linuxprivchecker/
author: Florian Roth (Nextron Systems)
date: 2022-06-20
modified: 2025-06-04
tags:
    - attack.reconnaissance
    - attack.t1592.004
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith:
            - '/cat'
            - '/ed'
            - '/egrep'
            - '/emacs'
            - '/fgrep'
            - '/grep'
            - '/head'
            - '/less'
            - '/more'
            - '/nano'
            - '/tail'
        CommandLine|contains: ' /etc/sudoers'
    condition: selection
falsepositives:
    - Legitimate administration activities
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '/cat'
        - '/ed'
        - '/egrep'
        - '/emacs'
        - '/fgrep'
        - '/grep'
        - '/head'
        - '/less'
        - '/more'
        - '/nano'
        - '/tail'
    CommandLine|contains: ' /etc/sudoers'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /etc/sudoers
field:"CommandLine" kind:match value:" /etc/sudoers"
Imageends_with
  • /cat corpus 10 (sigma 10)
  • /ed corpus 3 (sigma 3)
  • /egrep corpus 2 (sigma 2)
  • /emacs corpus 3 (sigma 3)
  • /fgrep
  • /grep corpus 7 (sigma 7)
  • /head corpus 7 (sigma 7)
  • /less corpus 5 (sigma 5)
  • /more corpus 7 (sigma 7)
  • /nano corpus 4 (sigma 4)
  • /tail corpus 7 (sigma 7)
field:"Image" kind:ends_with

Activity From Anonymous IP Address

#
Status
test
Severity
high
Author
Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
Source
github.com/SigmaHQ/sigma

Identifies that users were active from an IP address that has been identified as an anonymous proxy IP address.

Known False Positives

  • We recommend investigating the sessions flagged by this detection in the context of other sign-ins from the user.

MITRE ATT&CK Coverage

TacticTechniques
Initial Access
Persistence
Privilege Escalation
Stealth

Rule Body

title: Activity From Anonymous IP Address
id: be4d9c86-d702-4030-b52e-c7859110e5e8
status: test
description: Identifies that users were active from an IP address that has been identified as an anonymous proxy IP address.
references:
    - https://learn.microsoft.com/en-us/entra/id-protection/concept-identity-protection-risks#activity-from-anonymous-ip-address
    - https://learn.microsoft.com/en-us/entra/architecture/security-operations-user-accounts#unusual-sign-ins
author: Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
date: 2023-09-03
tags:
    - attack.stealth
    - attack.t1078
    - attack.persistence
    - attack.privilege-escalation
    - attack.initial-access
logsource:
    product: azure
    service: riskdetection
detection:
    selection:
        riskEventType: 'riskyIPAddress'
    condition: selection
falsepositives:
    - We recommend investigating the sessions flagged by this detection in the context of other sign-ins from the user.
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    riskEventType: 'riskyIPAddress'

Indicators

These rows show field, operator, and value matches.

Bypass UAC via Fodhelper.exe

#
Status
test
Severity
high
Author
E.M. Anhaus (originally from Atomic Blue Detections, Tony Lambert), oscd.community
Source
github.com/SigmaHQ/sigma

Identifies use of Fodhelper.exe to bypass User Account Control. Adversaries use this technique to execute privileged processes.

Known False Positives

  • Legitimate use of fodhelper.exe utility by legitimate user

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Bypass UAC via Fodhelper.exe
id: 7f741dcf-fc22-4759-87b4-9ae8376676a2
status: test
description: Identifies use of Fodhelper.exe to bypass User Account Control. Adversaries use this technique to execute privileged processes.
references:
    - https://eqllib.readthedocs.io/en/latest/analytics/e491ce22-792f-11e9-8f5c-d46d6d62a49e.html
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1548.002/T1548.002.md
author: E.M. Anhaus (originally from Atomic Blue Detections, Tony Lambert), oscd.community
date: 2019-10-24
modified: 2021-11-27
tags:
    - attack.privilege-escalation
    - attack.t1548.002
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\fodhelper.exe'
    condition: selection
falsepositives:
    - Legitimate use of fodhelper.exe utility by legitimate user
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith: '\fodhelper.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ParentImageends_with
  • \fodhelper.exe corpus 2 (sigma 2)
field:"ParentImage" kind:ends_with value:"\fodhelper.exe"

CVE-2023-46747 Exploitation Activity - Webserver

#
Status
test
Severity
high
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects exploitation activity of CVE-2023-46747 an unauthenticated remote code execution vulnerability in F5 BIG-IP.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: CVE-2023-46747 Exploitation Activity - Webserver
id: e9928831-ba14-42ea-a4bc-33d352b9929a
related:
    - id: f195b2ff-e542-41bf-8d91-864fb81e5c20
      type: similar
status: test
description: Detects exploitation activity of CVE-2023-46747 an unauthenticated remote code execution vulnerability in F5 BIG-IP.
references:
    - https://github.com/AliBrTab/CVE-2023-46747-POC/tree/main
    - https://github.com/0xorOne/nuclei-templates/blob/2fef4270ec6e5573d0a1732cb18bcfc4b1580a88/http/cves/2023/CVE-2023-46747.yaml
    - https://mp.weixin.qq.com/s/wUoBy7ZiqJL2CUOMC-8Wdg
    - https://www.praetorian.com/blog/refresh-compromising-f5-big-ip-with-request-smuggling-cve-2023-46747/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-11-08
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2023-46747
    - detection.emerging-threats
logsource:
    category: webserver
    definition: 'Requirements: The POST request body data must be collected in order to make use of this detection'
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem|contains: '/mgmt/tm/util/bash'
    keywords_hex:
        '|all':
            - '2f746d75692f436f6e74726f6c2f666f726d' # /tmui/Control/form
            - '666f726d5f706167653d253266746d756925326673797374656d253266757365722532666372656174652e6a7370' # form_page=%2ftmui%2fsystem%2fuser%2fcreate.jsp
    keywords_plain:
        '|all':
            - '/tmui/Control/form'
            - 'form_page=%2ftmui%2fsystem%2fuser%2fcreate.jsp'
    condition: selection and (keywords_hex or keywords_plain)
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection and (keywords_hex or keywords_plain)

Stage 1: selection

selection:
    cs-method: 'POST'
    cs-uri-stem|contains: '/mgmt/tm/util/bash'

Stage 2: keywords_hex

keywords_hex:
    '|all':
        - '2f746d75692f436f6e74726f6c2f666f726d'
        - '666f726d5f706167653d253266746d756925326673797374656d253266757365722532666372656174652e6a7370'

Stage 3: keywords_plain

keywords_plain:
    '|all':
        - '/tmui/Control/form'
        - 'form_page=%2ftmui%2fsystem%2fuser%2fcreate.jsp'

Indicators

These rows show field, operator, and value matches.

Diamond Sleet APT Scheduled Task Creation

#
Status
test
Severity
critical
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects registry event related to the creation of a scheduled task used by Diamond Sleet APT during exploitation of Team City CVE-2023-42793 vulnerability

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Diamond Sleet APT Scheduled Task Creation
id: 3b8e5084-4de9-449a-a40d-0e11014f2e2d
status: test
description: |
    Detects registry event related to the creation of a scheduled task used by Diamond Sleet APT during exploitation of Team City CVE-2023-42793 vulnerability
references:
    - https://www.microsoft.com/en-us/security/blog/2023/10/18/multiple-north-korean-threat-actors-exploiting-the-teamcity-cve-2023-42793-vulnerability/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-10-24
tags:
    - attack.execution
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1053.005
    - detection.emerging-threats
logsource:
    product: windows
    service: security
    definition: 'The Advanced Audit Policy setting Object Access > Audit Other Object Access Events has to be configured to allow this detection. We also recommend extracting the Command field from the embedded XML in the event data.'
detection:
    selection:
        EventID: 4698
        TaskName: '\Windows TeamCity Settings User Interface'
        TaskContent|contains: 'uTYNkfKxHiZrx3KJ'
    condition: selection
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4698
    TaskName: '\Windows TeamCity Settings User Interface'
    TaskContent|contains: 'uTYNkfKxHiZrx3KJ'

Indicators

These rows show field, operator, and value matches.

Disable Or Stop Services

#
Status
test
Severity
medium
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the usage of utilities such as 'systemctl', 'service'...etc to stop or disable tools and services on Linux systems. Attackers may stop or disable security tools and services to evade detection, maintain persistence, or disrupt system operations.

Known False Positives

  • Legitimate administration activities
  • Some false positives are to be expected. Apply additional filters as needed before pushing to production.

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment
Impact

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Disable Or Stop Services
id: de25eeb8-3655-4643-ac3a-b662d3f26b6b
status: test
description: |
    Detects the usage of utilities such as 'systemctl', 'service'...etc to stop or disable tools and services on Linux systems.
    Attackers may stop or disable security tools and services to evade detection, maintain persistence, or disrupt system operations.
references:
    - https://www.trendmicro.com/pl_pl/research/20/i/the-evolution-of-malicious-shell-scripts.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-15
modified: 2025-03-18
tags:
    - attack.defense-impairment
    - attack.t1685
    - attack.impact
    - attack.t1489
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith:
            - '/service'
            - '/systemctl'
            - '/chkconfig'
        CommandLine|contains:
            - ' stop '
            - ' disable '
    filter_main_legit_snapd:
        Image|endswith: '/systemctl'
        CommandLine|contains:
            - '--no-reload disable snap-snapd-'
            - ' stop snap-snapd-'
    filter_main_ssh_preinstall:
        Image|endswith: '/systemctl'
        ParentCommandLine|contains: 'tmp.ci/preinst upgrade'
        CommandLine|contains|all:
            - ' stop '
            - 'ssh.'
    filter_main_ubuntu_upgrade:
        ParentCommandLine|contains: '/dpkg/info/ubuntu-pro-client.prerm upgrade'
        Image|endswith: '/systemctl'
    filter_optional_aws_agent:
        Image|endswith: '/systemctl'
        CommandLine|endswith: 'snap.amazon-ssm-agent.amazon-ssm-agent.service'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Legitimate administration activities
    - Some false positives are to be expected. Apply additional filters as needed before pushing to production.
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    Image|endswith:
        - '/service'
        - '/systemctl'
        - '/chkconfig'
    CommandLine|contains:
        - ' stop '
        - ' disable '

Stage 2: not filter_main_*

filter_main_legit_snapd:
    Image|endswith: '/systemctl'
    CommandLine|contains:
        - '--no-reload disable snap-snapd-'
        - ' stop snap-snapd-'
filter_main_ssh_preinstall:
    Image|endswith: '/systemctl'
    ParentCommandLine|contains: 'tmp.ci/preinst upgrade'
    CommandLine|contains|all:
        - ' stop '
        - 'ssh.'
filter_main_ubuntu_upgrade:
    ParentCommandLine|contains: '/dpkg/info/ubuntu-pro-client.prerm upgrade'
    Image|endswith: '/systemctl'

Stage 3: not filter_optional_aws_agent

filter_optional_aws_agent:
    Image|endswith: '/systemctl'
    CommandLine|endswith: 'snap.amazon-ssm-agent.amazon-ssm-agent.service'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • disable corpus 2 (sigma 2)
  • stop corpus 8 (sigma 6, splunk 2)
field:"CommandLine" kind:match
Imageends_with
  • /chkconfig corpus 2 (sigma 2)
  • /service corpus 2 (sigma 2)
  • /systemctl corpus 4 (sigma 4)
field:"Image" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

DNS Exfiltration and Tunneling Tools Execution

#
Status
test
Severity
high
Author
Daniil Yugoslavskiy, oscd.community
Source
github.com/SigmaHQ/sigma

Well-known DNS Exfiltration tools execution

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: DNS Exfiltration and Tunneling Tools Execution
id: 98a96a5a-64a0-4c42-92c5-489da3866cb0
status: test
description: Well-known DNS Exfiltration tools execution
references:
    - https://github.com/iagox86/dnscat2
    - https://github.com/yarrick/iodine
author: Daniil Yugoslavskiy, oscd.community
date: 2019-10-24
modified: 2021-11-27
tags:
    - attack.exfiltration
    - attack.t1048.001
    - attack.command-and-control
    - attack.t1071.004
    - attack.t1132.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|endswith: '\iodine.exe'
        - Image|contains: '\dnscat2'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Image|endswith: '\iodine.exe'
    - Image|contains: '\dnscat2'

Indicators

These rows show field, operator, and value matches.

Download from Suspicious Dyndns Hosts

#
Status
test
Severity
medium
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects download of certain file types from hosts with dynamic DNS names (selected list)

Known False Positives

  • Software downloads

MITRE ATT&CK Coverage

Rule Body

title: Download from Suspicious Dyndns Hosts
id: 195c1119-ef07-4909-bb12-e66f5e07bf3c
status: test
description: Detects download of certain file types from hosts with dynamic DNS names (selected list)
references:
    - https://www.alienvault.com/blogs/security-essentials/dynamic-dns-security-and-potential-threats
author: Florian Roth (Nextron Systems)
date: 2017-11-08
modified: 2023-05-18
tags:
    - attack.command-and-control
    - attack.t1105
    - attack.t1568
logsource:
    category: proxy
detection:
    selection:
        c-uri-extension:
            - 'exe'
            - 'vbs'
            - 'bat'
            - 'rar'
            - 'ps1'
            - 'doc'
            - 'docm'
            - 'xls'
            - 'xlsm'
            - 'pptm'
            - 'rtf'
            - 'hta'
            - 'dll'
            - 'ws'
            - 'wsf'
            - 'sct'
            - 'zip'
            # If you want to add more extensions - see https://docs.google.com/spreadsheets/d/1TWS238xacAto-fLKh1n5uTsdijWdCEsGIM0Y0Hvmc5g/
        cs-host|endswith:
            - '.hopto.org'
            - '.no-ip.org'
            - '.no-ip.info'
            - '.no-ip.biz'
            - '.no-ip.com'
            - '.noip.com'
            - '.ddns.name'
            - '.myftp.org'
            - '.myftp.biz'
            - '.serveblog.net'
            - '.servebeer.com'
            - '.servemp3.com'
            - '.serveftp.com'
            - '.servequake.com'
            - '.servehalflife.com'
            - '.servehttp.com'
            - '.servegame.com'
            - '.servepics.com'
            - '.myvnc.com'
            - '.ignorelist.com'
            - '.jkub.com'
            - '.dlinkddns.com'
            - '.jumpingcrab.com'
            - '.ddns.info'
            - '.mooo.com'
            - '.dns-dns.com'
            - '.strangled.net'
            - '.adultdns.net'
            - '.craftx.biz'
            - '.ddns01.com'
            - '.dns53.biz'
            - '.dnsapi.info'
            - '.dnsd.info'
            - '.dnsdynamic.com'
            - '.dnsdynamic.net'
            - '.dnsget.org'
            - '.fe100.net'
            - '.flashserv.net'
            - '.ftp21.net'
            - '.http01.com'
            - '.http80.info'
            - '.https443.com'
            - '.imap01.com'
            - '.kadm5.com'
            - '.mysq1.net'
            - '.ns360.info'
            - '.ntdll.net'
            - '.ole32.com'
            - '.proxy8080.com'
            - '.sql01.com'
            - '.ssh01.com'
            - '.ssh22.net'
            - '.tempors.com'
            - '.tftpd.net'
            - '.ttl60.com'
            - '.ttl60.org'
            - '.user32.com'
            - '.voip01.com'
            - '.wow64.net'
            - '.x64.me'
            - '.xns01.com'
            - '.dyndns.org'
            - '.dyndns.info'
            - '.dyndns.tv'
            - '.dyndns-at-home.com'
            - '.dnsomatic.com'
            - '.zapto.org'
            - '.webhop.net'
            - '.25u.com'
            - '.slyip.net'
    condition: selection
falsepositives:
    - Software downloads
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    c-uri-extension:
        - 'exe'
        - 'vbs'
        - 'bat'
        - 'rar'
        - 'ps1'
        - 'doc'
        - 'docm'
        - 'xls'
        - 'xlsm'
        - 'pptm'
        - 'rtf'
        - 'hta'
        - 'dll'
        - 'ws'
        - 'wsf'
        - 'sct'
        - 'zip'
    cs-host|endswith:
        - '.hopto.org'
        - '.no-ip.org'
        - '.no-ip.info'
        - '.no-ip.biz'
        - '.no-ip.com'
        - '.noip.com'
        - '.ddns.name'
        - '.myftp.org'
        - '.myftp.biz'
        - '.serveblog.net'
        - '.servebeer.com'
        - '.servemp3.com'
        - '.serveftp.com'
        - '.servequake.com'
        - '.servehalflife.com'
        - '.servehttp.com'
        - '.servegame.com'
        - '.servepics.com'
        - '.myvnc.com'
        - '.ignorelist.com'
        - '.jkub.com'
        - '.dlinkddns.com'
        - '.jumpingcrab.com'
        - '.ddns.info'
        - '.mooo.com'
        - '.dns-dns.com'
        - '.strangled.net'
        - '.adultdns.net'
        - '.craftx.biz'
        - '.ddns01.com'
        - '.dns53.biz'
        - '.dnsapi.info'
        - '.dnsd.info'
        - '.dnsdynamic.com'
        - '.dnsdynamic.net'
        - '.dnsget.org'
        - '.fe100.net'
        - '.flashserv.net'
        - '.ftp21.net'
        - '.http01.com'
        - '.http80.info'
        - '.https443.com'
        - '.imap01.com'
        - '.kadm5.com'
        - '.mysq1.net'
        - '.ns360.info'
        - '.ntdll.net'
        - '.ole32.com'
        - '.proxy8080.com'
        - '.sql01.com'
        - '.ssh01.com'
        - '.ssh22.net'
        - '.tempors.com'
        - '.tftpd.net'
        - '.ttl60.com'
        - '.ttl60.org'
        - '.user32.com'
        - '.voip01.com'
        - '.wow64.net'
        - '.x64.me'
        - '.xns01.com'
        - '.dyndns.org'
        - '.dyndns.info'
        - '.dyndns.tv'
        - '.dyndns-at-home.com'
        - '.dnsomatic.com'
        - '.zapto.org'
        - '.webhop.net'
        - '.25u.com'
        - '.slyip.net'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
c-uri-extensioneq
  • bat
  • dll
  • doc
  • docm
  • exe
  • hta
  • pptm
  • ps1
  • rar
  • rtf
  • sct
  • vbs
  • ws
  • wsf
  • xls
  • xlsm
  • zip
field:"c-uri-extension" kind:eq
cs-hostends_with
  • .25u.com
  • .adultdns.net
  • .craftx.biz
  • .ddns.info
  • .ddns.name
  • .ddns01.com
  • .dlinkddns.com
  • .dns-dns.com
  • .dns53.biz
  • .dnsapi.info
  • .dnsd.info
  • .dnsdynamic.com
  • .dnsdynamic.net
  • .dnsget.org
  • .dnsomatic.com
  • .dyndns-at-home.com
  • .dyndns.info
  • .dyndns.org
  • .dyndns.tv
  • .fe100.net
  • .flashserv.net
  • .ftp21.net
  • .hopto.org
  • .http01.com
  • .http80.info
  • .https443.com
  • .ignorelist.com
  • .imap01.com
  • .jkub.com
  • .jumpingcrab.com
  • .kadm5.com
  • .mooo.com
  • .myftp.biz
  • .myftp.org
  • .mysq1.net
  • .myvnc.com
  • .no-ip.biz
  • .no-ip.com
  • .no-ip.info
  • .no-ip.org
  • +30 more values (see full rule source)
field:"cs-host" kind:ends_with

Google Workspace Granted Domain API Access

#
Status
test
Severity
medium
Author
Austin Songer
Source
github.com/SigmaHQ/sigma

Detects when an API access service account is granted domain authority.

MITRE ATT&CK Coverage

TacticTechniques
Persistence
Privilege Escalation

Telemetry Coverage

Rule Body

title: Google Workspace Granted Domain API Access
id: 04e2a23a-9b29-4a5c-be3a-3542e3f982ba
status: test
description: Detects when an API access service account is granted domain authority.
references:
    - https://cloud.google.com/logging/docs/audit/gsuite-audit-logging#3
    - https://developers.google.com/admin-sdk/reports/v1/appendix/activity/admin-domain-settings#AUTHORIZE_API_CLIENT_ACCESS
author: Austin Songer
date: 2021-08-23
modified: 2023-10-11
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1098
logsource:
    product: gcp
    service: google_workspace.admin
detection:
    selection:
        eventService: admin.googleapis.com
        eventName: AUTHORIZE_API_CLIENT_ACCESS
    condition: selection
falsepositives:
    - Unknown

level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventService: admin.googleapis.com
    eventName: AUTHORIZE_API_CLIENT_ACCESS

Indicators

These rows show field, operator, and value matches.

Host constrained delegation settings changed for potential abuse (Rubeus) - Kerberos only

#
Status
experimental
Severity
high
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker modifies host delegation settings for privilege escalation.

Known False Positives

  • Rare administrator modifying host delegation settings

MITRE ATT&CK Coverage

TacticTechniques
Persistence

Telemetry Coverage

Rule Body

title: Host constrained delegation settings changed for potential abuse (Rubeus) - Kerberos only
description: Detects scenarios where an attacker modifies host delegation settings for privilege escalation.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1098.xxx-Account%20manipulation
- https://dirkjanm.io/krbrelayx-unconstrained-delegation-abuse-toolkit/
- https://www.alsid.com/crb_article/kerberos-delegation/
- https://www.harmj0y.net/blog/activedirectory/s4u2pwnage/
- https://shenaniganslabs.io/2019/01/28/Wagging-the-Dog.html
- https://www.ired.team/offensive-security-experiments/active-directory-kerberos-abuse/abusing-kerberos-constrained-delegation
- https://www.guidepointsecurity.com/delegating-like-a-boss-abusing-kerberos-delegation-in-active-directory/
- https://stealthbits.com/blog/what-is-kerberos-delegation-an-overview-of-kerberos-delegation/
- https://posts.specterops.io/hunting-in-active-directory-unconstrained-delegation-forests-trusts-71f2b33688e1
- https://www.thehacker.recipes/ad/movement/kerberos/delegations#talk
tags:
- attack.persistence
- attack.t1098
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection: # Delegation to specified service, Kerberos only
    EventID: 4742
    UserAccountControl: '-'  # Avoid duplicate with with "constrained delegation to any protocol"
  filter:
    AllowedToDelegateTo: '-' # Can be: "cifs/srv01 cifs/srv02.demo.lan dcom/dc03..."
  condition: selection and not filter
falsepositives:
- Rare administrator modifying host delegation settings
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 4742
  UserAccountControl: '-'

Stage 2: not filter

filter:
  AllowedToDelegateTo: '-'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
AllowedToDelegateToeq-excludes:AllowedToDelegateTo field:"AllowedToDelegateTo" value:"-"

macOS ESF Suspicious W+X Memory Mapping

#
Status
experimental
Severity
high
Author
Eric Brown - Nebulock, Inc.
Source
github.com/Nebulock-Inc/macos-coresigma

Detect processes creating writable and executable memory mappings which can indicate shellcode/JIT usage.

Known False Positives

  • legitimate JIT engines (e.g., browsers, VMs)

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Rule Body

title: macOS ESF Suspicious W+X Memory Mapping
id: 1d3f5c4b-3c5b-4a2a-bf6d-0d1a9e7f2d77
status: experimental
description: Detect processes creating writable and executable memory mappings which
  can indicate shellcode/JIT usage.
author: Eric Brown - Nebulock, Inc.
date: 2025-10-29
logsource:
  product: macos
  service: endpointsecurity
level: high
detection:
  selection_evt:
    esf.event_type: 20
    event.action: mprotect
  selection_flags:
    MemoryProtection|contains:
    - wx
    - xw
  condition: selection_evt and selection_flags
falsepositives:
- legitimate JIT engines (e.g., browsers, VMs)
tags:
- attack.defense_evasion
modified: 2025/01/15

Stages and Predicates

Stage 0: condition

selection_evt and selection_flags

Stage 1: selection_evt

selection_evt:
  esf.event_type: 20
  event.action: mprotect

Stage 2: selection_flags

selection_flags:
  MemoryProtection|contains:
  - wx
  - xw

Indicators

These rows show field, operator, and value matches.

Okta Admin Functions Access Through Proxy

#
Status
test
Severity
medium
Author
Muhammad Faisal @faisalusuf
Source
github.com/SigmaHQ/sigma

Detects access to Okta admin functions through proxy.

Known False Positives

  • False positives are expected if administrators access these function through proxy legitimatly. Apply additional filters if necessary

MITRE ATT&CK Coverage

TacticTechniques
Credential AccessNo specific technique

Rule Body

title: Okta Admin Functions Access Through Proxy
id: 9058ca8b-f397-4fd1-a9fa-2b7aad4d6309
status: test
description: Detects access to Okta admin functions through proxy.
references:
    - https://www.beyondtrust.com/blog/entry/okta-support-unit-breach
    - https://dataconomy.com/2023/10/23/okta-data-breach/
    - https://blog.cloudflare.com/how-cloudflare-mitigated-yet-another-okta-compromise/
author: Muhammad Faisal @faisalusuf
date: 2023-10-25
tags:
    - attack.credential-access
logsource:
    service: okta
    product: okta
detection:
    selection:
        debugContext.debugData.requestUri|contains: 'admin'
        securityContext.isProxy: 'true'
    condition: selection
falsepositives:
    - False positives are expected if administrators access these function through proxy legitimatly. Apply additional filters if necessary
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    debugContext.debugData.requestUri|contains: 'admin'
    securityContext.isProxy: 'true'

Indicators

These rows show field, operator, and value matches.

OpenSSH server firewall configuration on Windows (command)

#
Status
experimental
Severity
high
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker configure the Windows firewall to allow incoming connections to perform stealthy lateral movement.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: OpenSSH server firewall configuration on Windows (command)
description: Detects scenarios where an attacker configure the Windows firewall to allow incoming connections to perform stealthy lateral movement.
references:
 - https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0008-Lateral%20Movement/T1021.004-Remote%20Service%20SSH
 - https://winaero.com/enable-openssh-server-windows-10/
 - https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
 - https://virtualizationreview.com/articles/2020/05/21/ssh-server-on-windows-10.aspx
tags:
- attack.defense_evasion
- attack.t1562.004
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection_event:
    EventID: 4688

  selection_netsh_adv: # Command for firewall rule creation (available starting Server 2012 R2)
    CommandLine|contains|all:
      - netsh
      - advfirewall
      - localport=
      - '22'

  selection_netsh: # Command for firewall rule creation (deprecated)
    CommandLine|contains|all:
      - netsh
      - firewall
      - portopening
      - '22'

  condition: selection_event and (selection_netsh_adv or selection_netsh)
falsepositives:
- Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_event and (selection_netsh_adv or selection_netsh)

Stage 1: selection_event

selection_event:
  EventID: 4688

Stage 2: selection_netsh_adv

selection_netsh_adv:
  CommandLine|contains|all:
    - netsh
    - advfirewall
    - localport=
    - '22'

Stage 3: selection_netsh

selection_netsh:
  CommandLine|contains|all:
    - netsh
    - firewall
    - portopening
    - '22'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • 22
  • advfirewall corpus 6 (sigma 6)
  • firewall corpus 13 (sigma 7, splunk 6)
  • localport=
  • netsh corpus 9 (sigma 9)
  • portopening corpus 2 (sigma 2)
field:"CommandLine" kind:match

Possible DCSync Attack

#
Status
test
Severity
high
Author
Sagie Dulce, Dekel Paz
Source
github.com/SigmaHQ/sigma

Detects remote RPC calls to MS-DRSR from non DC hosts, which could indicate DCSync / DCShadow attacks.

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

Rule Body

title: Possible DCSync Attack
id: 56fda488-113e-4ce9-8076-afc2457922c3
status: test
description: Detects remote RPC calls to MS-DRSR from non DC hosts, which could indicate DCSync / DCShadow attacks.
references:
    - https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-drsr/f977faaa-673e-4f66-b9bf-48c640241d47?redirectedfrom=MSDN
    - https://github.com/jsecurity101/MSRPC-to-ATTACK/blob/ddd4608fe8684fcf2fcf9b48c5f0b3c28097f8a3/documents/MS-DRSR.md
    - https://github.com/zeronetworks/rpcfirewall
    - https://zeronetworks.com/blog/stopping-lateral-movement-via-the-rpc-firewall/
author: Sagie Dulce, Dekel Paz
date: 2022-01-01
tags:
    - attack.t1033
    - attack.discovery
logsource:
    product: rpc_firewall
    category: application
    definition: 'Requirements: install and apply the RPC Firewall to all processes, enable DRSR UUID (e3514235-4b06-11d1-ab04-00c04fc2dcd2) for "dangerous" opcodes (not 0,1 or 12) only from trusted IPs (DCs)'
detection:
    selection:
        EventLog: RPCFW
        EventID: 3
        InterfaceUuid: e3514235-4b06-11d1-ab04-00c04fc2dcd2
    filter:
        OpNum:
            - 0
            - 1
            - 12
    condition: selection and not filter
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    EventLog: RPCFW
    EventID: 3
    InterfaceUuid: e3514235-4b06-11d1-ab04-00c04fc2dcd2

Stage 2: not filter

filter:
    OpNum:
        - 0
        - 1
        - 12

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

Potential APT FIN7 Exploitation Activity

#
Status
test
Severity
medium
Author
Alex Walston (@4ayymm)
Source
github.com/SigmaHQ/sigma

Detects potential APT FIN7 exploitation activity as reported by Google. In order to obtain initial access, FIN7 used compromised Remote Desktop Protocol (RDP) credentials to login to a target server and initiate specific Windows process chains.

Known False Positives

  • Notepad++ can legitimately spawn cmd (Open Containing Folder in CMD)

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential APT FIN7 Exploitation Activity
id: 6676896b-2cce-422d-82af-5a1abe65e241
status: test
description: |
    Detects potential APT FIN7 exploitation activity as reported by Google.
    In order to obtain initial access, FIN7 used compromised Remote Desktop Protocol (RDP) credentials to login to a target server and initiate specific Windows process chains.
references:
    - https://cloud.google.com/blog/topics/threat-intelligence/evolution-of-fin7/
author: Alex Walston (@4ayymm)
date: 2024-07-29
tags:
    - attack.execution
    - attack.t1059.001
    - attack.t1059.003
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_notepad_plus:
        ParentImage|endswith: '\notepad++.exe'
        Image|endswith: '\cmd.exe'
    selection_rdpinit:
        ParentImage|endswith: '\rdpinit.exe'
        Image|endswith: '\notepad++.exe'
    condition: 1 of selection_*
falsepositives:
    - Notepad++ can legitimately spawn cmd (Open Containing Folder in CMD)
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_notepad_plus

selection_notepad_plus:
    ParentImage|endswith: '\notepad++.exe'
    Image|endswith: '\cmd.exe'

Stage 2: selection_rdpinit

selection_rdpinit:
    ParentImage|endswith: '\rdpinit.exe'
    Image|endswith: '\notepad++.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \notepad++.exe
field:"Image" kind:ends_with
ParentImageends_with
  • \notepad++.exe
  • \rdpinit.exe
field:"ParentImage" kind:ends_with

Potential PowerShell Execution Policy Tampering - ProcCreation

#
Status
test
Severity
high
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects changes to the PowerShell execution policy registry key in order to bypass signing requirements for script execution from the CommandLine

MITRE ATT&CK Coverage

TacticTechniques
Defense ImpairmentNo specific technique

Telemetry Coverage

Rule Body

title: Potential PowerShell Execution Policy Tampering - ProcCreation
id: cf2e938e-9a3e-4fe8-a347-411642b28a9f
related:
    - id: fad91067-08c5-4d1a-8d8c-d96a21b37814 # ProcCreation Registry
      type: similar
    - id: 87e3c4e8-a6a8-4ad9-bb4f-46e7ff99a180 # ProcCreation Cmdlet
      type: similar
    - id: 61d0475c-173f-4844-86f7-f3eebae1c66b # PowerShell ScriptBlock
      type: similar
status: test
description: Detects changes to the PowerShell execution policy registry key in order to bypass signing requirements for script execution from the CommandLine
references:
    - https://learn.microsoft.com/de-de/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.3
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-01-11
tags:
    - attack.defense-impairment
logsource:
    product: windows
    category: process_creation
detection:
    selection_path:
        CommandLine|contains:
            - '\ShellIds\Microsoft.PowerShell\ExecutionPolicy'
            - '\Policies\Microsoft\Windows\PowerShell\ExecutionPolicy'
    selection_values:
        CommandLine|contains:
            - 'Bypass'
            - 'RemoteSigned'
            - 'Unrestricted'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_path

selection_path:
    CommandLine|contains:
        - '\ShellIds\Microsoft.PowerShell\ExecutionPolicy'
        - '\Policies\Microsoft\Windows\PowerShell\ExecutionPolicy'

Stage 2: selection_values

selection_values:
    CommandLine|contains:
        - 'Bypass'
        - 'RemoteSigned'
        - 'Unrestricted'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • Bypass corpus 6 (sigma 6)
  • RemoteSigned
  • Unrestricted corpus 2 (sigma 2)
  • \Policies\Microsoft\Windows\PowerShell\ExecutionPolicy
  • \ShellIds\Microsoft.PowerShell\ExecutionPolicy
field:"CommandLine" kind:match

Python Image Load By Non-Python Process

#
Status
test
Severity
low
Author
Patrick St. John, OTR (Open Threat Research)
Source
github.com/SigmaHQ/sigma

Detects the image load of "Python Core" by a non-Python process. This might be indicative of a execution of executable that has been bundled from Python code. Various tools like Py2Exe, PyInstaller, and cx_Freeze are used to bundle Python code into standalone executables. Threat actors often use these tools to bundle malicious Python scripts into executables, sometimes to obfuscate the code or to bypass security measures.

Known False Positives

  • Legitimate Py2Exe Binaries
  • Known false positive caused with Python Anaconda
  • Various legitimate software is bundled from Python code into executables

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule Body

title: Python Image Load By Non-Python Process
id: cbb56d62-4060-40f7-9466-d8aaf3123f83
status: test
description: |
    Detects the image load of "Python Core" by a non-Python process. This might be indicative of a execution of executable that has been bundled from Python code.
    Various tools like Py2Exe, PyInstaller, and cx_Freeze are used to bundle Python code into standalone executables.
    Threat actors often use these tools to bundle malicious Python scripts into executables, sometimes to obfuscate the code or to bypass security measures.
references:
    - https://www.py2exe.org/
    - https://unit42.paloaltonetworks.com/unit-42-technical-analysis-seaduke/
author: Patrick St. John, OTR (Open Threat Research)
date: 2020-05-03
modified: 2025-08-18
tags:
    - attack.stealth
    - attack.t1027.002
logsource:
    product: windows
    category: image_load
detection:
    selection:
        Description: 'Python Core'
    filter_main_generic:
        - Image|contains: 'Python'  # FPs with python38.dll, python.exe etc.
        - Image|startswith:
              - 'C:\Program Files\'
              - 'C:\Program Files (x86)\'
              - 'C:\ProgramData\Anaconda3\' # Comment out if you don't use Anaconda in your environment
    filter_optional_null_image:
        Image: null
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Legitimate Py2Exe Binaries
    - Known false positive caused with Python Anaconda
    - Various legitimate software is bundled from Python code into executables
level: low

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    Description: 'Python Core'

Stage 2: not filter_main_generic

filter_main_generic:
    - Image|contains: 'Python'
    - Image|startswith:
          - 'C:\Program Files\'
          - 'C:\Program Files (x86)\'
          - 'C:\ProgramData\Anaconda3\'

Stage 3: not filter_optional_null_image

filter_optional_null_image:
    Image: null

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ImagematchPythonexcludes:Image field:"Image" value:"Python"
Imagestarts_withC:\Program Files (x86)\excludes:Image field:"Image" value:"C:\Program Files (x86)\"
Imagestarts_withC:\Program Files\excludes:Image field:"Image" value:"C:\Program Files\"
Imagestarts_withC:\ProgramData\Anaconda3\excludes:Image field:"Image" value:"C:\ProgramData\Anaconda3\"
Imageis_null(no value, null check)excludes:Image

Regedit as Trusted Installer

#
Status
test
Severity
high
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects a regedit started with TrustedInstaller privileges or by ProcessHacker.exe

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation

Telemetry Coverage

Rule Body

title: Regedit as Trusted Installer
id: 883835a7-df45-43e4-bf1d-4268768afda4
status: test
description: Detects a regedit started with TrustedInstaller privileges or by ProcessHacker.exe
references:
    - https://twitter.com/1kwpeter/status/1397816101455765504
author: Florian Roth (Nextron Systems)
date: 2021-05-27
modified: 2022-10-09
tags:
    - attack.privilege-escalation
    - attack.t1548
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\regedit.exe'
        ParentImage|endswith:
            - '\TrustedInstaller.exe'
            - '\ProcessHacker.exe'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\regedit.exe'
    ParentImage|endswith:
        - '\TrustedInstaller.exe'
        - '\ProcessHacker.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \regedit.exe corpus 8 (sigma 8)
field:"Image" kind:ends_with value:"\regedit.exe"
ParentImageends_with
  • \ProcessHacker.exe
  • \TrustedInstaller.exe
field:"ParentImage" kind:ends_with

Remote Printing Abuse for Lateral Movement

#
Status
test
Severity
high
Author
Sagie Dulce, Dekel Paz
Source
github.com/SigmaHQ/sigma

Detects remote RPC calls to possibly abuse remote printing service via MS-RPRN / MS-PAR

Known False Positives

  • Actual printing

MITRE ATT&CK Coverage

TacticTechniques
Lateral MovementNo specific technique

Telemetry Coverage

Rule Body

title: Remote Printing Abuse for Lateral Movement
id: bc3a4b0c-e167-48e1-aa88-b3020950e560
status: test
description: Detects remote RPC calls to possibly abuse remote printing service via MS-RPRN / MS-PAR
references:
    - https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-34527
    - https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rprn/d42db7d5-f141-4466-8f47-0a4be14e2fc1
    - https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-pan/e44d984c-07d3-414c-8ffc-f8c8ad8512a8
    - https://github.com/jsecurity101/MSRPC-to-ATTACK/blob/ddd4608fe8684fcf2fcf9b48c5f0b3c28097f8a3/documents/MS-RPRN-PAR.md
    - https://github.com/zeronetworks/rpcfirewall
    - https://zeronetworks.com/blog/stopping-lateral-movement-via-the-rpc-firewall/
author: Sagie Dulce, Dekel Paz
date: 2022-01-01
tags:
    - attack.lateral-movement
logsource:
    product: rpc_firewall
    category: application
    definition: 'Requirements: install and apply the RPC Firewall to all processes with "audit:true action:block uuid:12345678-1234-abcd-ef00-0123456789ab or 76f03f96-cdfd-44fc-a22c-64950a001209 or ae33069b-a2a8-46ee-a235-ddfd339be281 or 0b6edbfa-4a24-4fc6-8a23-942b1eca65d1'
detection:
    selection:
        EventLog: RPCFW
        EventID: 3
        InterfaceUuid:
            - 12345678-1234-abcd-ef00-0123456789ab
            - 76f03f96-cdfd-44fc-a22c-64950a001209
            - 0b6edbfa-4a24-4fc6-8a23-942b1eca65d1
            - ae33069b-a2a8-46ee-a235-ddfd339be281
    condition: selection
falsepositives:
    - Actual printing
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventLog: RPCFW
    EventID: 3
    InterfaceUuid:
        - 12345678-1234-abcd-ef00-0123456789ab
        - 76f03f96-cdfd-44fc-a22c-64950a001209
        - 0b6edbfa-4a24-4fc6-8a23-942b1eca65d1
        - ae33069b-a2a8-46ee-a235-ddfd339be281

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventLogeq
  • RPCFW corpus 17 (sigma 17)
field:"EventLog" kind:eq value:"RPCFW"
InterfaceUuideq
  • 0b6edbfa-4a24-4fc6-8a23-942b1eca65d1
  • 12345678-1234-abcd-ef00-0123456789ab
  • 76f03f96-cdfd-44fc-a22c-64950a001209
  • ae33069b-a2a8-46ee-a235-ddfd339be281
field:"InterfaceUuid" kind:eq

Remote Thread Creation In Uncommon Target Image

#
Status
test
Severity
medium
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects uncommon target processes for remote thread creation

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 8: CreateRemoteThread

Rule Body

title: Remote Thread Creation In Uncommon Target Image
id: a1a144b7-5c9b-4853-a559-2172be8d4a03
related:
    - id: f016c716-754a-467f-a39e-63c06f773987
      type: obsolete
status: test
description: Detects uncommon target processes for remote thread creation
references:
    - https://web.archive.org/web/20220319032520/https://blog.redbluepurple.io/offensive-research/bypassing-injection-detection
author: Florian Roth (Nextron Systems)
date: 2022-03-16
modified: 2025-07-04
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055.003
logsource:
    product: windows
    category: create_remote_thread
detection:
    selection:
        TargetImage|endswith:
            - '\calc.exe'
            - '\calculator.exe'
            - '\mspaint.exe'
            - '\notepad.exe'
            - '\ping.exe'
            - '\sethc.exe'
            - '\spoolsv.exe'
            - '\wordpad.exe'
            - '\write.exe'
    filter_main_csrss:
        SourceImage: 'C:\Windows\System32\csrss.exe'
    filter_main_notepad:
        SourceImage:
            - 'C:\Windows\System32\explorer.exe'
            - 'C:\Windows\System32\OpenWith.exe'
        TargetImage: 'C:\Windows\System32\notepad.exe'
    filter_main_sethc:
        SourceImage: 'C:\Windows\System32\AtBroker.exe'
        TargetImage: 'C:\Windows\System32\Sethc.exe'
    filter_optional_aurora_1:
        StartFunction: 'EtwpNotificationThread'
    filter_optional_aurora_2:
        SourceImage|contains: 'unknown process'
    filter_optional_vmtoolsd:
        SourceImage: 'C:\Program Files\VMware\VMware Tools\vmtoolsd.exe'
        StartFunction: 'GetCommandLineW'
        TargetImage:
            - 'C:\Windows\System32\notepad.exe'
            - 'C:\Windows\System32\spoolsv.exe'
    filter_optional_xerox_pjems:
        SourceImage: 'C:\Program Files\Xerox\XeroxPrintExperience\CommonFiles\XeroxPrintJobEventManagerService.exe'
        StartFunction: 'LoadLibraryW'
        TargetImage: 'C:\Windows\System32\spoolsv.exe'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    TargetImage|endswith:
        - '\calc.exe'
        - '\calculator.exe'
        - '\mspaint.exe'
        - '\notepad.exe'
        - '\ping.exe'
        - '\sethc.exe'
        - '\spoolsv.exe'
        - '\wordpad.exe'
        - '\write.exe'

Stage 2: not filter_main_*

filter_main_csrss:
    SourceImage: 'C:\Windows\System32\csrss.exe'
filter_main_notepad:
    SourceImage:
        - 'C:\Windows\System32\explorer.exe'
        - 'C:\Windows\System32\OpenWith.exe'
    TargetImage: 'C:\Windows\System32\notepad.exe'
filter_main_sethc:
    SourceImage: 'C:\Windows\System32\AtBroker.exe'
    TargetImage: 'C:\Windows\System32\Sethc.exe'

Stage 3: not filter_optional_*

filter_optional_aurora_1:
    StartFunction: 'EtwpNotificationThread'
filter_optional_aurora_2:
    SourceImage|contains: 'unknown process'
filter_optional_vmtoolsd:
    SourceImage: 'C:\Program Files\VMware\VMware Tools\vmtoolsd.exe'
    StartFunction: 'GetCommandLineW'
    TargetImage:
        - 'C:\Windows\System32\notepad.exe'
        - 'C:\Windows\System32\spoolsv.exe'
filter_optional_xerox_pjems:
    SourceImage: 'C:\Program Files\Xerox\XeroxPrintExperience\CommonFiles\XeroxPrintJobEventManagerService.exe'
    StartFunction: 'LoadLibraryW'
    TargetImage: 'C:\Windows\System32\spoolsv.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetImageends_with
  • \calc.exe corpus 2 (sigma 2)
  • \calculator.exe corpus 2 (sigma 2)
  • \mspaint.exe corpus 2 (sigma 2)
  • \notepad.exe corpus 2 (sigma 2)
  • \ping.exe corpus 2 (sigma 2)
  • \sethc.exe
  • \spoolsv.exe
  • \wordpad.exe corpus 2 (sigma 2)
  • \write.exe corpus 2 (sigma 2)
field:"TargetImage" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
SourceImageeqC:\Windows\System32\OpenWith.exeexcludes:SourceImage field:"SourceImage" value:"C:\Windows\System32\OpenWith.exe"
SourceImageeqC:\Windows\System32\explorer.exeexcludes:SourceImage field:"SourceImage" value:"C:\Windows\System32\explorer.exe"
TargetImageeqC:\Windows\System32\notepad.exeexcludes:TargetImage field:"TargetImage" value:"C:\Windows\System32\notepad.exe"
SourceImageeqC:\Windows\System32\AtBroker.exeexcludes:SourceImage field:"SourceImage" value:"C:\Windows\System32\AtBroker.exe"
TargetImageeqC:\Windows\System32\Sethc.exeexcludes:TargetImage field:"TargetImage" value:"C:\Windows\System32\Sethc.exe"
SourceImageeqC:\Windows\System32\csrss.exeexcludes:SourceImage field:"SourceImage" value:"C:\Windows\System32\csrss.exe"
TargetImageeqC:\Windows\System32\spoolsv.exeexcludes:TargetImage field:"TargetImage" value:"C:\Windows\System32\spoolsv.exe"
SourceImageeqC:\Program Files\VMware\VMware Tools\vmtoolsd.exeexcludes:SourceImage field:"SourceImage" value:"C:\Program Files\VMware\VMware Tools\vmtoolsd.exe"
StartFunctioneqGetCommandLineWexcludes:StartFunction field:"StartFunction" value:"GetCommandLineW"
SourceImageeqC:\Program Files\Xerox\XeroxPrintExperience\CommonFiles\XeroxPrintJobEventManagerService.exeexcludes:SourceImage field:"SourceImage" value:"C:\Program Files\Xerox\XeroxPrintExperience\CommonFiles\XeroxPrintJobEventManagerService.exe"
StartFunctioneqLoadLibraryWexcludes:StartFunction field:"StartFunction" value:"LoadLibraryW"
SourceImagematchunknown processexcludes:SourceImage field:"SourceImage" value:"unknown process"
StartFunctioneqEtwpNotificationThreadexcludes:StartFunction field:"StartFunction" value:"EtwpNotificationThread"

Renamed Procdump tool used for dumping LSASS process

#
Status
experimental
Severity
high
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker attempts to dump the LSASS process content using a renamed version of the Procdump tool.

Known False Positives

  • None

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Renamed Procdump tool used for dumping LSASS process
description: Detects scenarios where an attacker attempts to dump the LSASS process content using a renamed version of the Procdump tool.
references:
- https://www.intrinsec.com/apt27-analysis/
- https://learn.microsoft.com/en-us/sysinternals/downloads/procdump
tags:
- attack.execution
- attack.t1569.002
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection_name:
    - Image|endswith: '\procdump.exe'
    - OriginalFilename: 'procdump.exe'

  selection_paramters:
    CommandLine|contains|all:
      - accepteula
      - '-ma' # Write a 'Full' dump file.
  condition: selection_name or selection_paramters
falsepositives:
- None 
level: high

Stages and Predicates

Stage 0: condition

selection_name or selection_paramters

Stage 1: selection_name

selection_name:
  - Image|endswith: '\procdump.exe'
  - OriginalFilename: 'procdump.exe'

Stage 2: selection_paramters

selection_paramters:
  CommandLine|contains|all:
    - accepteula
    - '-ma'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -ma corpus 3 (kusto 2, sigma 1)
  • accepteula corpus 4 (sigma 3, splunk 1)
field:"CommandLine" kind:match
Imageends_with
  • \procdump.exe corpus 4 (sigma 4)
field:"Image" kind:ends_with value:"\procdump.exe"
OriginalFilenameeq
  • procdump.exe
field:"OriginalFileName" kind:eq value:"procdump.exe"

Service DACL Abuse To Hide Services Via Sc.EXE

#
Status
test
Severity
high
Author
Andreas Hunkeler (@Karneades)
Source
github.com/SigmaHQ/sigma

Detects usage of the "sc.exe" utility adding a new service with special permission seen used by threat actors which makes the service hidden and unremovable.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Service DACL Abuse To Hide Services Via Sc.EXE
id: a537cfc3-4297-4789-92b5-345bfd845ad0
related:
    - id: 99cf1e02-00fb-4c0d-8375-563f978dfd37 # Deny Service Access
      type: similar
    - id: 98c5aeef-32d5-492f-b174-64a691896d25 # Generic SD tampering
      type: similar
status: test
description: Detects usage of the "sc.exe" utility adding a new service with special permission seen used by threat actors which makes the service hidden and unremovable.
references:
    - https://blog.talosintelligence.com/2021/10/threat-hunting-in-large-datasets-by.html
    - https://www.sans.org/blog/red-team-tactics-hiding-windows-services/
    - https://twitter.com/Alh4zr3d/status/1580925761996828672
    - https://itconnect.uw.edu/tools-services-support/it-systems-infrastructure/msinf/other-help/understanding-sddl-syntax/
author: Andreas Hunkeler (@Karneades)
date: 2021-12-20
modified: 2022-08-08
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.011
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\sc.exe'
        - OriginalFileName: 'sc.exe'
    selection_cli:
        CommandLine|contains|all:
            - 'sdset'
            # Summary of permissions
            #   DC: Delete All Child Objects
            #   LC: List Contents
            #   WP: Write All Properties
            #   DT: Delete Subtree
            #   SD: Delete
            - 'DCLCWPDTSD'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\sc.exe'
    - OriginalFileName: 'sc.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'sdset'
        - 'DCLCWPDTSD'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • DCLCWPDTSD corpus 2 (sigma 2)
  • sdset corpus 5 (sigma 5)
field:"CommandLine" kind:match
Imageends_with
  • \sc.exe corpus 30 (sigma 30)
field:"Image" kind:ends_with value:"\sc.exe"
OriginalFileNameeq
  • sc.exe corpus 28 (sigma 12, splunk 10, elastic 6)
field:"OriginalFileName" kind:eq value:"sc.exe"

Set Files as System Files Using Attrib.EXE

#
Status
test
Severity
low
Author
frack113
Source
github.com/SigmaHQ/sigma

Detects the execution of "attrib" with the "+s" flag to mark files as system files

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Set Files as System Files Using Attrib.EXE
id: bb19e94c-59ae-4c15-8c12-c563d23fe52b
related:
    - id: efec536f-72e8-4656-8960-5e85d091345b
      type: similar
status: test
description: Detects the execution of "attrib" with the "+s" flag to mark files as system files
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1564.001/T1564.001.md#atomic-test-3---create-windows-system-file-with-attrib
    - https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/attrib
    - https://unit42.paloaltonetworks.com/unit42-sure-ill-take-new-combojack-malware-alters-clipboards-steal-cryptocurrency/
author: frack113
date: 2022-02-04
modified: 2023-03-14
tags:
    - attack.stealth
    - attack.t1564.001
    - detection.threat-hunting
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\attrib.exe'
        - OriginalFileName: 'ATTRIB.EXE'
    selection_cli:
        CommandLine|contains: ' +s '
    condition: all of selection_*
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\attrib.exe'
    - OriginalFileName: 'ATTRIB.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: ' +s '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • +s corpus 2 (sigma 2)
field:"CommandLine" kind:match value:" +s "
Imageends_with
  • \attrib.exe corpus 5 (sigma 5)
field:"Image" kind:ends_with value:"\attrib.exe"
OriginalFileNameeq
  • ATTRIB.EXE corpus 3 (sigma 3)
field:"OriginalFileName" kind:eq value:"ATTRIB.EXE"

Suspicious Get-ADDBAccount Usage

#
Status
test
Severity
high
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects suspicious invocation of the Get-ADDBAccount script that reads from a ntds.dit file and may be used to get access to credentials without using any credential dumpers

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rule Body

title: Suspicious Get-ADDBAccount Usage
id: b140afd9-474b-4072-958e-2ebb435abd68
status: test
description: Detects suspicious invocation of the Get-ADDBAccount script that reads from a ntds.dit file and may be used to get access to credentials without using any credential dumpers
references:
    - https://www.n00py.io/2022/03/manipulating-user-passwords-without-mimikatz/
    - https://github.com/MichaelGrafnetter/DSInternals/blob/7ba59c12ee9a1cb430d7dc186a3366842dd612c8/Documentation/PowerShell/Get-ADDBAccount.md
author: Florian Roth (Nextron Systems)
date: 2022-03-16
tags:
    - attack.credential-access
    - attack.t1003.003
logsource:
    product: windows
    category: ps_module
    definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
detection:
    selection:
        Payload|contains|all:
            - 'Get-ADDBAccount'
            - 'BootKey '
            - 'DatabasePath '
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Payload|contains|all:
        - 'Get-ADDBAccount'
        - 'BootKey '
        - 'DatabasePath '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Payloadmatch
  • BootKey
  • DatabasePath
  • Get-ADDBAccount
field:"Payload" kind:match

Suspicious modification of a fake domain controller SPN (DCshadow) (Directory Services)

#
Status
experimental
Severity
high
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker update the Service Principal Name (SPN) of a computer account in order to perform "Kerberos redirection" and escalate privileges.

Known False Positives

  • Rare administrator modifications on user objects

MITRE ATT&CK Coverage

TacticTechniques
Persistence

Telemetry Coverage

Rule Body

title: Suspicious modification of a fake domain controller SPN (DCshadow) (Directory Services)
description: Detects scenarios where an attacker update the Service Principal Name (SPN) of a computer account in order to perform "Kerberos redirection" and escalate privileges.
requirements: auditing SACL ("Write all properties") must be placed on the OU to monitor using the Active Directory console (https://www.manageengine.com/products/active-directory-audit/active-directory-auditing-configuration-guide-configure-object-level-auditing-manually.html).
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1098.xxx-Account%20manipulation
- https://www.ired.team/offensive-security-experiments/active-directory-kerberos-abuse/t1207-creating-rogue-domain-controllers-with-dcshadow
- https://medium.com/@maarten.goet/dcshadow-detecting-a-rogue-domain-controller-replicating-malicious-changes-to-your-active-1e22440df9ad
- https://github.com/AlsidOfficial/UncoverDCShadow
- https://github.com/shellster/DCSYNCMonitor
- https://blog.alsid.eu/dcshadow-explained-4510f52fc19d
- https://stealthbits.com/blog/detecting-dcshadow-with-event-logs/
- https://www.labofapenetrationtester.com/2018/05/dcshadow-sacl.html
- https://blog.stealthbits.com/creating-persistence-with-dcshadow/
- https://book.hacktricks.xyz/windows/active-directory-methodology/dcshadow
tags:
- attack.persistence
- attack.t1098 # Account Manipulation 
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 5136
    AttributeLDAPDisplayName: servicePrincipalName
    ObjectClas: computer
    OperationType: '%%14674' # Value is added
    AttributeValue|startswith: 'GC/'
  condition: selection
falsepositives:
- Rare administrator modifications on user objects
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 5136
  AttributeLDAPDisplayName: servicePrincipalName
  ObjectClas: computer
  OperationType: '%%14674'
  AttributeValue|startswith: 'GC/'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
AttributeLDAPDisplayNameeq
  • servicePrincipalName corpus 8 (sigma 4, splunk 3, elastic 1)
field:"AttributeLDAPDisplayName" kind:eq value:"servicePrincipalName"
AttributeValuestarts_with
  • GC/ corpus 3 (sigma 2, splunk 1)
field:"AttributeValue" kind:starts_with value:"GC/"
ObjectClaseq
  • computer
field:"ObjectClas" kind:eq value:"computer"
OperationTypeeq
  • %%14674 corpus 16 (sigma 9, splunk 4, elastic 3)
field:"OperationType" kind:eq value:"%%14674"

Suspicious Rundll32 Setupapi.dll Activity

#
Status
test
Severity
medium
Author
Konstantin Grishchenko, oscd.community
Source
github.com/SigmaHQ/sigma

setupapi.dll library provide InstallHinfSection function for processing INF files. INF file may contain instructions allowing to create values in the registry, modify files and install drivers. This technique could be used to obtain persistence via modifying one of Run or RunOnce registry keys, run process or use other DLLs chain calls (see references) InstallHinfSection function in setupapi.dll calls runonce.exe executable regardless of actual content of INF file.

Known False Positives

  • Scripts and administrative tools that use INF files for driver installation with setupapi.dll

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Rundll32 Setupapi.dll Activity
id: 285b85b1-a555-4095-8652-a8a4106af63f
status: test
description: setupapi.dll library provide InstallHinfSection function for processing INF files. INF file may contain instructions allowing to create values in the registry, modify files and install drivers. This technique could be used to obtain persistence via modifying one of Run or RunOnce registry keys, run process or use other DLLs chain calls (see references) InstallHinfSection function in setupapi.dll calls runonce.exe executable regardless of actual content of INF file.
references:
    - https://lolbas-project.github.io/lolbas/Libraries/Setupapi/
    - https://gist.githubusercontent.com/bohops/0cc6586f205f3691e04a1ebf1806aabd/raw/baf7b29891bb91e76198e30889fbf7d6642e8974/calc_exe.inf
    - https://raw.githubusercontent.com/huntresslabs/evading-autoruns/master/shady.inf
    - https://twitter.com/Z3Jpa29z/status/1313742350292746241?s=20
author: Konstantin Grishchenko, oscd.community
date: 2020-10-07
modified: 2021-11-27
tags:
    - attack.stealth
    - attack.t1218.011
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\runonce.exe'
        ParentImage|endswith: '\rundll32.exe'
        ParentCommandLine|contains|all:
            - 'setupapi.dll'
            - 'InstallHinfSection'
    condition: selection
falsepositives:
    - Scripts and administrative tools that use INF files for driver installation with setupapi.dll
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\runonce.exe'
    ParentImage|endswith: '\rundll32.exe'
    ParentCommandLine|contains|all:
        - 'setupapi.dll'
        - 'InstallHinfSection'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \runonce.exe corpus 3 (sigma 3)
field:"Image" kind:ends_with value:"\runonce.exe"
ParentCommandLinematch
  • InstallHinfSection
  • setupapi.dll
field:"ParentCommandLine" kind:match
ParentImageends_with
  • \rundll32.exe corpus 15 (sigma 15)
field:"ParentImage" kind:ends_with value:"\rundll32.exe"

Suspicious ScreenSave Change by Reg.exe

#
Status
test
Severity
medium
Author
frack113
Source
github.com/SigmaHQ/sigma

Adversaries may establish persistence by executing malicious content triggered by user inactivity. Screensavers are programs that execute after a configurable time of user inactivity and consist of Portable Executable (PE) files with a .scr file extension

Known False Positives

  • GPO

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious ScreenSave Change by Reg.exe
id: 0fc35fc3-efe6-4898-8a37-0b233339524f
status: test
description: |
    Adversaries may establish persistence by executing malicious content triggered by user inactivity.
    Screensavers are programs that execute after a configurable time of user inactivity and consist of Portable Executable (PE) files with a .scr file extension
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.002/T1546.002.md
    - https://www.welivesecurity.com/wp-content/uploads/2017/08/eset-gazer.pdf
author: frack113
date: 2021-08-19
modified: 2022-06-02
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1546.002
logsource:
    category: process_creation
    product: windows
detection:
    selection_reg:
        Image|endswith: '\reg.exe'
        CommandLine|contains:
            - 'HKEY_CURRENT_USER\Control Panel\Desktop'
            - 'HKCU\Control Panel\Desktop'
    selection_option_1: # /force Active ScreenSaveActive
        CommandLine|contains|all:
            - '/v ScreenSaveActive'
            - '/t REG_SZ'
            - '/d 1'
            - '/f'
    selection_option_2: # /force  set ScreenSaveTimeout
        CommandLine|contains|all:
            - '/v ScreenSaveTimeout'
            - '/t REG_SZ'
            - '/d '
            - '/f'
    selection_option_3: # /force set ScreenSaverIsSecure
        CommandLine|contains|all:
            - '/v ScreenSaverIsSecure'
            - '/t REG_SZ'
            - '/d 0'
            - '/f'
    selection_option_4: # /force set a .scr
        CommandLine|contains|all:
            - '/v SCRNSAVE.EXE'
            - '/t REG_SZ'
            - '/d '
            - '.scr'
            - '/f'
    condition: selection_reg and 1 of selection_option_*
falsepositives:
    - GPO
level: medium

Stages and Predicates

Stage 0: condition

selection_reg and 1 of selection_option_*

Stage 1: selection_reg

selection_reg:
    Image|endswith: '\reg.exe'
    CommandLine|contains:
        - 'HKEY_CURRENT_USER\Control Panel\Desktop'
        - 'HKCU\Control Panel\Desktop'

Stage 2: selection_option_1

selection_option_1:
    CommandLine|contains|all:
        - '/v ScreenSaveActive'
        - '/t REG_SZ'
        - '/d 1'
        - '/f'

Stage 3: selection_option_2

selection_option_2:
    CommandLine|contains|all:
        - '/v ScreenSaveTimeout'
        - '/t REG_SZ'
        - '/d '
        - '/f'

Stage 4: selection_option_3

selection_option_3:
    CommandLine|contains|all:
        - '/v ScreenSaverIsSecure'
        - '/t REG_SZ'
        - '/d 0'
        - '/f'

Stage 5: selection_option_4

selection_option_4:
    CommandLine|contains|all:
        - '/v SCRNSAVE.EXE'
        - '/t REG_SZ'
        - '/d '
        - '.scr'
        - '/f'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • .scr corpus 5 (sigma 5)
  • /d corpus 2 (sigma 2)
  • /d 0 corpus 2 (sigma 2)
  • /d 1 corpus 2 (sigma 2)
  • /f corpus 6 (sigma 5, splunk 1)
  • /t REG_SZ corpus 2 (sigma 2)
  • /v SCRNSAVE.EXE
  • /v ScreenSaveActive
  • /v ScreenSaveTimeout
  • /v ScreenSaverIsSecure
  • HKCU\Control Panel\Desktop
  • HKEY_CURRENT_USER\Control Panel\Desktop
field:"CommandLine" kind:match
Imageends_with
  • \reg.exe corpus 58 (sigma 58)
field:"Image" kind:ends_with value:"\reg.exe"

Systemd Service Creation

#
Status
test
Severity
medium
Author
Pawel Mazur
Source
github.com/SigmaHQ/sigma

Detects a creation of systemd services which could be used by adversaries to execute malicious code.

Known False Positives

  • Admin work like legit service installs.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Systemd Service Creation
id: 1bac86ba-41aa-4f62-9d6b-405eac99b485
status: test
description: Detects a creation of systemd services which could be used by adversaries to execute malicious code.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1543.002/T1543.002.md
author: 'Pawel Mazur'
date: 2022-02-03
modified: 2022-02-06
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1543.002
logsource:
    product: linux
    service: auditd
detection:
    path:
        type: 'PATH'
        nametype: 'CREATE'
    name_1:
        name|startswith:
            - '/usr/lib/systemd/system/'
            - '/etc/systemd/system/'
    name_2:
        name|contains: '/.config/systemd/user/'
    condition: path and 1 of name_*
falsepositives:
    - Admin work like legit service installs.
level: medium

Stages and Predicates

Stage 0: condition

path and 1 of name_*

Stage 1: path

path:
    type: 'PATH'
    nametype: 'CREATE'

Stage 2: name_1

name_1:
    name|startswith:
        - '/usr/lib/systemd/system/'
        - '/etc/systemd/system/'

Stage 3: name_2

name_2:
    name|contains: '/.config/systemd/user/'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
namematch
  • /.config/systemd/user/
field:"name" kind:match value:"/.config/systemd/user/"
namestarts_with
  • /etc/systemd/system/
  • /usr/lib/systemd/system/
field:"name" kind:starts_with
nametypeeq
  • CREATE corpus 2 (sigma 1, splunk 1)
field:"nametype" kind:eq value:"CREATE"
typeeq
  • PATH corpus 19 (sigma 12, splunk 7)
field:"type" kind:eq value:"PATH"

Transferring Files with Credential Data via Network Shares - Zeek

#
Status
test
Severity
medium
Author
@neu5ron, Teymur Kheirkhabarov, oscd.community
Source
github.com/SigmaHQ/sigma

Transferring files with well-known filenames (sensitive files with credential data) using network shares

Known False Positives

  • Transferring sensitive files for legitimate administration work by legitimate administrator

MITRE ATT&CK Coverage

Rule Body

title: Transferring Files with Credential Data via Network Shares - Zeek
id: 2e69f167-47b5-4ae7-a390-47764529eff5
related:
    - id: 910ab938-668b-401b-b08c-b596e80fdca5
      type: similar
status: test
description: Transferring files with well-known filenames (sensitive files with credential data) using network shares
references:
    - https://www.slideshare.net/heirhabarov/hunting-for-credentials-dumping-in-windows-environment
author: '@neu5ron, Teymur Kheirkhabarov, oscd.community'
date: 2020-04-02
modified: 2021-11-27
tags:
    - attack.credential-access
    - attack.t1003.002
    - attack.t1003.001
    - attack.t1003.003
logsource:
    product: zeek
    service: smb_files
detection:
    selection:
        name:
            - '\mimidrv'
            - '\lsass'
            - '\windows\minidump\'
            - '\hiberfil'
            - '\sqldmpr'
            - '\sam'
            - '\ntds.dit'
            - '\security'
    condition: selection
falsepositives:
    - Transferring sensitive files for legitimate administration work by legitimate administrator
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    name:
        - '\mimidrv'
        - '\lsass'
        - '\windows\minidump\'
        - '\hiberfil'
        - '\sqldmpr'
        - '\sam'
        - '\ntds.dit'
        - '\security'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
nameeq
  • \hiberfil
  • \lsass
  • \mimidrv
  • \ntds.dit
  • \sam
  • \security
  • \sqldmpr
  • \windows\minidump\
field:"name" kind:eq

Turla Group Named Pipes

#
Status
test
Severity
critical
Author
Markus Neis
Source
github.com/SigmaHQ/sigma

Detects a named pipe used by Turla group samples

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Execution

Telemetry Coverage

Rule Body

title: Turla Group Named Pipes
id: 739915e4-1e70-4778-8b8a-17db02f66db1
status: test
description: Detects a named pipe used by Turla group samples
references:
    - Internal Research
author: Markus Neis
date: 2017-11-06
modified: 2021-11-27
tags:
    - attack.g0010
    - attack.execution
    - attack.t1106
    - detection.emerging-threats
logsource:
    product: windows
    category: pipe_created
    definition: 'Note that you have to configure logging for Named Pipe Events in Sysmon config (Event ID 17 and Event ID 18). The basic configuration is in popular sysmon configuration (https://github.com/SwiftOnSecurity/sysmon-config), but it is worth verifying. You can also use other repo, e.g. https://github.com/Neo23x0/sysmon-config, https://github.com/olafhartong/sysmon-modular. How to test detection? You can check powershell script from this site https://svch0st.medium.com/guide-to-named-pipes-and-hunting-for-cobalt-strike-pipes-dc46b2c5f575'
detection:
    selection:
        PipeName:
            - '\atctl'    # https://www.virustotal.com/#/file/a4ddb2664a6c87a1d3c5da5a5a32a5df9a0b0c8f2e951811bd1ec1d44d42ccf1/detection
            - '\comnap'   # https://www.gdatasoftware.com/blog/2015/01/23926-analysis-of-project-cobra
            - '\iehelper' # ruag apt case
            - '\sdlrpc'   # project cobra https://www.gdatasoftware.com/blog/2015/01/23926-analysis-of-project-cobra
            - '\userpipe' # ruag apt case
            # - '\rpc' # may cause too many false positives : http://kb.palisade.com/index.php?pg=kb.page&id=483
    condition: selection
falsepositives:
    - Unlikely
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    PipeName:
        - '\atctl'
        - '\comnap'
        - '\iehelper'
        - '\sdlrpc'
        - '\userpipe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
PipeNameeq
  • \atctl
  • \comnap
  • \iehelper
  • \sdlrpc corpus 2 (sigma 2)
  • \userpipe
field:"PipeName" kind:eq

Use of Legacy Authentication Protocols

#
Status
test
Severity
high
Author
Yochana Henderson, '@Yochana-H'
Source
github.com/SigmaHQ/sigma

Alert on when legacy authentication has been used on an account

Known False Positives

  • User has been put in acception group so they can use legacy authentication

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Use of Legacy Authentication Protocols
id: 60f6535a-760f-42a9-be3f-c9a0a025906e
status: test
description: Alert on when legacy authentication has been used on an account
references:
    - https://learn.microsoft.com/en-gb/entra/architecture/security-operations-privileged-accounts
author: Yochana Henderson, '@Yochana-H'
date: 2022-06-17
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.initial-access
    - attack.credential-access
    - attack.stealth
    - attack.t1078.004
    - attack.t1110
logsource:
    product: azure
    service: signinlogs
detection:
    selection:
        ActivityDetails: Sign-ins
        ClientApp:
            - Other client
            - IMAP
            - POP3
            - MAPI
            - SMTP
            - Exchange ActiveSync
            - Exchange Web Services
        Username: 'UPN'
    condition: selection
falsepositives:
    - User has been put in acception group so they can use legacy authentication
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ActivityDetails: Sign-ins
    ClientApp:
        - Other client
        - IMAP
        - POP3
        - MAPI
        - SMTP
        - Exchange ActiveSync
        - Exchange Web Services
    Username: 'UPN'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ActivityDetailseq
  • Sign-ins
field:"ActivityDetails" kind:eq value:"Sign-ins"
ClientAppeq
  • Exchange ActiveSync
  • Exchange Web Services
  • IMAP
  • MAPI
  • Other client
  • POP3
  • SMTP
field:"ClientApp" kind:eq
Usernameeq
  • UPN
field:"user" kind:eq value:"UPN"

Visual Studio Code Tunnel Execution

#
Status
test
Severity
medium
Author
Nasreddine Bencherchali (Nextron Systems), citron_ninja
Source
github.com/SigmaHQ/sigma

Detects Visual Studio Code tunnel execution. Attackers can abuse this functionality to establish a C2 channel

Known False Positives

  • Legitimate use of Visual Studio Code tunnel

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Visual Studio Code Tunnel Execution
id: 90d6bd71-dffb-4989-8d86-a827fedd6624
status: test
description: Detects Visual Studio Code tunnel execution. Attackers can abuse this functionality to establish a C2 channel
references:
    - https://ipfyx.fr/post/visual-studio-code-tunnel/
    - https://badoption.eu/blog/2023/01/31/code_c2.html
    - https://code.visualstudio.com/docs/remote/tunnels
author: Nasreddine Bencherchali (Nextron Systems), citron_ninja
date: 2023-10-25
modified: 2025-10-29
tags:
    - attack.command-and-control
    - attack.t1071.001
    - attack.t1219
logsource:
    category: process_creation
    product: windows
detection:
    selection_only_tunnel:
        OriginalFileName: null
        CommandLine|endswith: '.exe tunnel'
    selection_tunnel_args:
        CommandLine|contains|all:
            - '.exe tunnel'
            - '--accept-server-license-terms'
    selection_parent_tunnel:
        ParentCommandLine|endswith: ' tunnel'
        Image|endswith: '\cmd.exe'
        CommandLine|contains|all:
            - '/d /c '
            - '\servers\Stable-'
            - 'code-server.cmd'
    condition: 1 of selection_*
falsepositives:
    - Legitimate use of Visual Studio Code tunnel
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_only_tunnel

selection_only_tunnel:
    OriginalFileName: null
    CommandLine|endswith: '.exe tunnel'

Stage 2: selection_tunnel_args

selection_tunnel_args:
    CommandLine|contains|all:
        - '.exe tunnel'
        - '--accept-server-license-terms'

Stage 3: selection_parent_tunnel

selection_parent_tunnel:
    ParentCommandLine|endswith: ' tunnel'
    Image|endswith: '\cmd.exe'
    CommandLine|contains|all:
        - '/d /c '
        - '\servers\Stable-'
        - 'code-server.cmd'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • .exe tunnel corpus 2 (sigma 2)
field:"CommandLine" kind:ends_with value:".exe tunnel"
CommandLinematch
  • --accept-server-license-terms corpus 3 (sigma 3)
  • .exe tunnel corpus 2 (sigma 2)
  • /d /c corpus 2 (sigma 2)
  • \servers\Stable- corpus 2 (sigma 2)
  • code-server.cmd corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
field:"Image" kind:ends_with value:"\cmd.exe"
OriginalFileNameis_null
  • (no value, null check)
field:"OriginalFileName" kind:is_null
ParentCommandLineends_with
  • tunnel corpus 2 (sigma 2)
field:"ParentCommandLine" kind:ends_with value:" tunnel"

WINEKEY Registry Modification

#
Status
test
Severity
high
Author
omkar72
Source
github.com/SigmaHQ/sigma

Detects potential malicious modification of run keys by winekey or team9 backdoor

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: WINEKEY Registry Modification
id: b98968aa-dbc0-4a9c-ac35-108363cbf8d5
status: test
description: Detects potential malicious modification of run keys by winekey or team9 backdoor
references:
    - https://www.fireeye.com/blog/threat-research/2020/10/kegtap-and-singlemalt-with-a-ransomware-chaser.html
author: omkar72
date: 2020-10-30
modified: 2021-11-27
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547
logsource:
    category: registry_event
    product: windows
detection:
    selection:
        TargetObject|endswith: 'Software\Microsoft\Windows\CurrentVersion\Run\Backup Mgr'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith: 'Software\Microsoft\Windows\CurrentVersion\Run\Backup Mgr'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • Software\Microsoft\Windows\CurrentVersion\Run\Backup Mgr
field:"TargetObject" kind:ends_with value:"Software\Microsoft\Windows\CurrentVersion\Run\Backup Mgr"

Winnti Pipemon Characteristics

#
Status
stable
Severity
critical
Author
Florian Roth (Nextron Systems), oscd.community
Source
github.com/SigmaHQ/sigma

Detects specific process characteristics of Winnti Pipemon malware reported by ESET

Known False Positives

  • Legitimate setups that use similar flags

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Winnti Pipemon Characteristics
id: 73d70463-75c9-4258-92c6-17500fe972f2
status: stable
description: Detects specific process characteristics of Winnti Pipemon malware reported by ESET
references:
    - https://www.welivesecurity.com/2020/05/21/no-game-over-winnti-group/
author: Florian Roth (Nextron Systems), oscd.community
date: 2020-07-30
modified: 2021-11-27
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.t1574.001
    - attack.g0044
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_1:
        CommandLine|contains: 'setup0.exe -p'
    selection_2:
        CommandLine|contains: 'setup.exe'
        CommandLine|endswith:
            - '-x:0'
            - '-x:1'
            - '-x:2'
    condition: 1 of selection_*
falsepositives:
    - Legitimate setups that use similar flags
level: critical

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_1

selection_1:
    CommandLine|contains: 'setup0.exe -p'

Stage 2: selection_2

selection_2:
    CommandLine|contains: 'setup.exe'
    CommandLine|endswith:
        - '-x:0'
        - '-x:1'
        - '-x:2'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • -x:0
  • -x:1
  • -x:2
field:"CommandLine" kind:ends_with
CommandLinematch
  • setup.exe
  • setup0.exe -p
field:"CommandLine" kind:match

Back to all Sigma rules