Detection rules › Sigma

Sigma rules: 1y

RuleSeverity
Attempts of Kerberos Coercion Via DNS SPN Spoofinghigh
Atypical Travelhigh
AWS RDS Master Password Changemedium
AWS SecurityHub Findings Evasionhigh
Clipboard Data Collection Via Pbpastemedium
Copy .DMP/.DUMP Files From Remote Share Via Cmd.EXEhigh
Credentials In Files - Linuxhigh
Exchange PowerShell Cmdlet History Deletedhigh
Flash Player Update from Suspicious Locationhigh
Forfiles.EXE Child Process Masqueradinghigh
Gzip Archive Decode Via PowerShellmedium
HackTool - RedMimicry Winnti Playbook Executionhigh
IE ZoneMap Setting Downgraded To MyComputer Zone For HTTP Protocolshigh
Important Windows Service Terminated Unexpectedlyhigh
Linux Base64 Encoded Shebang In CLImedium
MITRE BZAR Indicators for Executionmedium
NET NGenAssemblyUsageLog Registry Key Tamperhigh
Potential Base64 Encoded User-Agentmedium
Potential CVE-2021-27905 Exploitation Attemptmedium
Potential Snatch Ransomware Activityhigh
Potential SocGholish Second Stage C2 DNS Queryhigh
Potentially Suspicious Execution Of Regasm/Regsvcs From Uncommon Locationmedium
PowerShell Set-Acl On Windows Folderhigh
Remote Access Tool - Renamed MeshAgent Execution - MacOShigh
Suspicious Network Connection to IP Lookup Service APIsmedium
Suspicious permissions modification on a network sharemedium
Suspicious Process Patterns NTDS.DIT Exfilhigh
Tamper Windows Defender - ScriptBlockLogginghigh
Uncommon Outbound Kerberos Connectionmedium
VsCode Powershell Profile Modificationmedium
Vulnerable Driver Load By Namelow
Webshell Tool Reconnaissance Activityhigh
Windows Shell/Scripting Application File Write to Suspicious Folderhigh

Attempts of Kerberos Coercion Via DNS SPN Spoofing

#
Status
experimental
Severity
high
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the presence of "UWhRC....AAYBAAAA" pattern in command line. The pattern "1UWhRCAAAAA..BAAAA" is a base64-encoded signature that corresponds to a marshaled CREDENTIAL_TARGET_INFORMATION structure. Attackers can use this technique to coerce authentication from victim systems to attacker-controlled hosts. It is one of the strong indicators of a Kerberos coercion attack, where adversaries manipulate DNS records to spoof Service Principal Names (SPNs) and redirect authentication requests like in CVE-2025-33073. If you see this pattern in the command line, it is likely an attempt to add spoofed Service Principal Names (SPNs) to DNS records, or checking for the presence of such records through the nslookup command.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Attempts of Kerberos Coercion Via DNS SPN Spoofing
id: 0ed99dda-6a35-11ef-8c99-0242ac120002
related:
    - id: b07e58cf-cacc-4135-8473-ccb2eba63dd2
      type: similar
status: experimental
description: |
    Detects the presence of "UWhRC....AAYBAAAA" pattern in command line.
    The pattern "1UWhRCAAAAA..BAAAA" is a base64-encoded signature that corresponds to a marshaled CREDENTIAL_TARGET_INFORMATION structure.
    Attackers can use this technique to coerce authentication from victim systems to attacker-controlled hosts.
    It is one of the strong indicators of a Kerberos coercion attack, where adversaries manipulate DNS records
    to spoof Service Principal Names (SPNs) and redirect authentication requests like in CVE-2025-33073.
    If you see this pattern in the command line, it is likely an attempt to add spoofed Service Principal Names (SPNs) to DNS records,
    or checking for the presence of such records through the `nslookup` command.
references:
    - https://www.synacktiv.com/publications/ntlm-reflection-is-dead-long-live-ntlm-reflection-an-in-depth-analysis-of-cve-2025
    - https://googleprojectzero.blogspot.com/2021/10/using-kerberos-for-authentication-relay.html
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-06-20
tags:
    - attack.collection
    - attack.credential-access
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1557.001
    - attack.t1187
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - 'UWhRCA'
            - 'BAAAA'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - 'UWhRCA'
        - 'BAAAA'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • BAAAA
  • UWhRCA
field:"CommandLine" kind:match

Atypical Travel

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

Identifies two sign-ins originating from geographically distant locations, where at least one of the locations may also be atypical for the user, given past behavior.

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: Atypical Travel
id: 1a41023f-1e70-4026-921a-4d9341a9038e
status: test
description: Identifies two sign-ins originating from geographically distant locations, where at least one of the locations may also be atypical for the user, given past behavior.
references:
    - https://learn.microsoft.com/en-us/entra/id-protection/concept-identity-protection-risks#atypical-travel
    - 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: 'unlikelyTravel'
    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: 'unlikelyTravel'

Indicators

These rows show field, operator, and value matches.

AWS RDS Master Password Change

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

Detects the change of database master password. It may be a part of data exfiltration.

Known False Positives

  • Benign changes to a db instance

MITRE ATT&CK Coverage

TacticTechniques
Exfiltration

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: AWS RDS Master Password Change
id: 8a63cdd4-6207-414a-85bc-7e032bd3c1a2
status: test
description: Detects the change of database master password. It may be a part of data exfiltration.
references:
    - https://github.com/RhinoSecurityLabs/pacu/blob/866376cd711666c775bbfcde0524c817f2c5b181/pacu/modules/rds__explore_snapshots/main.py
author: faloker
date: 2020-02-12
modified: 2022-10-05
tags:
    - attack.exfiltration
    - attack.t1020
logsource:
    product: aws
    service: cloudtrail
detection:
    selection_source:
        eventSource: rds.amazonaws.com
        responseElements.pendingModifiedValues.masterUserPassword|contains: '*'
        eventName: ModifyDBInstance
    condition: selection_source
falsepositives:
    - Benign changes to a db instance
level: medium

Stages and Predicates

Stage 0: condition

selection_source

Stage 1: selection_source

selection_source:
    eventSource: rds.amazonaws.com
    responseElements.pendingModifiedValues.masterUserPassword|contains: '*'
    eventName: ModifyDBInstance

Indicators

These rows show field, operator, and value matches.

AWS SecurityHub Findings Evasion

#
Status
stable
Severity
high
Author
Sittikorn S
Source
github.com/SigmaHQ/sigma

Detects the modification of the findings on SecurityHub.

Known False Positives

  • System or Network administrator behaviors
  • DEV, UAT, SAT environment. You should apply this rule with PROD environment only.

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: AWS SecurityHub Findings Evasion
id: a607e1fe-74bf-4440-a3ec-b059b9103157
status: stable
description: Detects the modification of the findings on SecurityHub.
references:
    - https://docs.aws.amazon.com/cli/latest/reference/securityhub/
author: Sittikorn S
date: 2021-06-28
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource: securityhub.amazonaws.com
        eventName:
            - 'BatchUpdateFindings'
            - 'DeleteInsight'
            - 'UpdateFindings'
            - 'UpdateInsight'
    condition: selection
falsepositives:
    - System or Network administrator behaviors
    - DEV, UAT, SAT environment. You should apply this rule with PROD environment only.
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventSource: securityhub.amazonaws.com
    eventName:
        - 'BatchUpdateFindings'
        - 'DeleteInsight'
        - 'UpdateFindings'
        - 'UpdateInsight'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
eventNameeq
  • BatchUpdateFindings
  • DeleteInsight
  • UpdateFindings
  • UpdateInsight
field:"aws::eventName" kind:eq
eventSourceeq
  • securityhub.amazonaws.com
field:"aws::eventSource" kind:eq value:"securityhub.amazonaws.com"

Clipboard Data Collection Via Pbpaste

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

Detects execution of the "pbpaste" utility, which retrieves the contents of the clipboard (a.k.a. pasteboard) and writes them to the standard output (stdout). The utility is often used for creating new files with the clipboard content or for piping clipboard contents to other commands. It can also be used in shell scripts that may require clipboard content as input. Attackers can abuse this utility in order to collect data from the user clipboard, which may contain passwords or sensitive information. Use this rule to hunt for potential abuse of the utility by looking at the parent process and any potentially suspicious command line content.

Known False Positives

  • Legitimate administration activities

MITRE ATT&CK Coverage

TacticTechniques
Collection

Telemetry Coverage

Rule Body

title: Clipboard Data Collection Via Pbpaste
id: d8af0da1-2959-40f9-a3e4-37a6aa1228b7
status: test
description: |
    Detects execution of the "pbpaste" utility, which retrieves the contents of the clipboard (a.k.a. pasteboard) and writes them to the standard output (stdout).
    The utility is often used for creating new files with the clipboard content or for piping clipboard contents to other commands.
    It can also be used in shell scripts that may require clipboard content as input.
    Attackers can abuse this utility in order to collect data from the user clipboard, which may contain passwords or sensitive information.
    Use this rule to hunt for potential abuse of the utility by looking at the parent process and any potentially suspicious command line content.
references:
    - https://www.loobins.io/binaries/pbpaste/
    - https://medium.com/@NullByteWht/hacking-macos-how-to-dump-1password-keepassx-lastpass-passwords-in-plaintext-723c5b1c311b
    - https://media.defense.gov/2021/Jul/19/2002805003/-1/-1/1/CSA_CHINESE_STATE-SPONSORED_CYBER_TTPS.PDF
author: Daniel Cortez
date: 2024-07-30
tags:
    - attack.collection
    - attack.credential-access
    - attack.t1115
    - detection.threat-hunting
logsource:
    product: macos
    category: process_creation
detection:
    selection:
        Image|endswith: '/pbpaste'
    condition: selection
falsepositives:
    - Legitimate administration activities
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '/pbpaste'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • /pbpaste
field:"Image" kind:ends_with value:"/pbpaste"

Copy .DMP/.DUMP Files From Remote Share Via Cmd.EXE

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

Detects usage of the copy builtin cmd command to copy files with the ".dmp"/".dump" extension from a remote share

MITRE ATT&CK Coverage

TacticTechniques
Credential AccessNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Copy .DMP/.DUMP Files From Remote Share Via Cmd.EXE
id: 044ba588-dff4-4918-9808-3f95e8160606
status: test
description: Detects usage of the copy builtin cmd command to copy files with the ".dmp"/".dump" extension from a remote share
references:
    - https://thedfirreport.com/2022/09/26/bumblebee-round-two/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-27
modified: 2023-09-12
tags:
    - attack.credential-access
logsource:
    category: process_creation
    product: windows
detection:
    # Example: copy \\<host>\\<folder>\\process.dmp C:\Users\process.dmp
    selection_img:
        - Image|endswith: '\cmd.exe'
        - OriginalFileName: 'Cmd.Exe'
    selection_cli:
        CommandLine|contains|all:
            - 'copy '
            - ' \\\\'
        CommandLine|contains:
            - '.dmp'
            - '.dump'
            - '.hdmp'
    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: '\cmd.exe'
    - OriginalFileName: 'Cmd.Exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'copy '
        - ' \\\\'
    CommandLine|contains:
        - '.dmp'
        - '.dump'
        - '.hdmp'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • \\\\ corpus 8 (sigma 8)
  • .dmp corpus 8 (sigma 8)
  • .dump corpus 3 (sigma 3)
  • .hdmp corpus 3 (sigma 3)
  • copy corpus 11 (sigma 11)
field:"CommandLine" kind:match
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
field:"Image" kind:ends_with value:"\cmd.exe"
OriginalFileNameeq
  • Cmd.Exe corpus 75 (sigma 43, splunk 17, elastic 15)
field:"OriginalFileName" kind:eq value:"Cmd.Exe"

Credentials In Files - Linux

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

Detecting attempts to extract passwords with grep

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Credentials In Files - Linux
id: df3fcaea-2715-4214-99c5-0056ea59eb35
status: test
description: 'Detecting attempts to extract passwords with grep'
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1552.001/T1552.001.md
author: 'Igor Fits, oscd.community'
date: 2020-10-15
modified: 2023-04-30
tags:
    - attack.credential-access
    - attack.t1552.001
logsource:
    product: linux
    service: auditd
detection:
    selection:
        type: 'EXECVE'
    keywords:
        '|all':
            - 'grep'
            - 'password'
    condition: selection and keywords
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and keywords

Stage 1: selection

selection:
    type: 'EXECVE'

Stage 2: keywords

keywords:
    '|all':
        - 'grep'
        - 'password'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
typeeq
  • EXECVE corpus 37 (sigma 31, splunk 6)
field:"type" kind:eq value:"EXECVE"

Exchange PowerShell Cmdlet History Deleted

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

Detects the deletion of the Exchange PowerShell cmdlet History logs which may indicate an attempt to destroy forensic evidence

Known False Positives

  • Possible FP during log rotation

MITRE ATT&CK Coverage

TacticTechniques
Stealth

Telemetry Coverage

Rule Body

title: Exchange PowerShell Cmdlet History Deleted
id: a55349d8-9588-4c5a-8e3b-1925fe2a4ffe
status: test
description: Detects the deletion of the Exchange PowerShell cmdlet History logs which may indicate an attempt to destroy forensic evidence
references:
    - https://m365internals.com/2022/10/07/hunting-in-on-premises-exchange-server-logs/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-26
modified: 2022-12-30
tags:
    - attack.stealth
    - attack.t1070
logsource:
    category: file_delete
    product: windows
detection:
    selection:
        TargetFilename|startswith: '\Logging\CmdletInfra\LocalPowerShell\Cmdlet\'
        TargetFilename|contains: '_Cmdlet_'
    condition: selection
falsepositives:
    - Possible FP during log rotation
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|startswith: '\Logging\CmdletInfra\LocalPowerShell\Cmdlet\'
    TargetFilename|contains: '_Cmdlet_'

Indicators

These rows show field, operator, and value matches.

Flash Player Update from Suspicious Location

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

Detects a flashplayer update from an unofficial location

Known False Positives

  • Unknown flash download locations

MITRE ATT&CK Coverage

Rule Body

title: Flash Player Update from Suspicious Location
id: 4922a5dd-6743-4fc2-8e81-144374280997
status: test
description: Detects a flashplayer update from an unofficial location
references:
    - https://gist.github.com/roycewilliams/a723aaf8a6ac3ba4f817847610935cfb
author: Florian Roth (Nextron Systems)
date: 2017-10-25
modified: 2022-08-08
tags:
    - attack.initial-access
    - attack.stealth
    - attack.t1189
    - attack.execution
    - attack.t1204.002
    - attack.t1036.005
logsource:
    category: proxy
detection:
    selection:
        - c-uri|contains: '/flash_install.php'
        - c-uri|endswith: '/install_flash_player.exe'
    filter:
        cs-host|endswith: '.adobe.com'
    condition: selection and not filter
falsepositives:
    - Unknown flash download locations
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    - c-uri|contains: '/flash_install.php'
    - c-uri|endswith: '/install_flash_player.exe'

Stage 2: not filter

filter:
    cs-host|endswith: '.adobe.com'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
cs-hostends_with.adobe.comexcludes:cs-host field:"cs-host" value:".adobe.com"

Forfiles.EXE Child Process Masquerading

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

Detects the execution of "forfiles" from a non-default location, in order to potentially spawn a custom "cmd.exe" from the current working directory.

MITRE ATT&CK Coverage

TacticTechniques
Stealth

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Forfiles.EXE Child Process Masquerading
id: f53714ec-5077-420e-ad20-907ff9bb2958
status: test
description: |
    Detects the execution of "forfiles" from a non-default location, in order to potentially spawn a custom "cmd.exe" from the current working directory.
references:
    - https://www.hexacorn.com/blog/2023/12/31/1-little-known-secret-of-forfiles-exe/
author: Nasreddine Bencherchali (Nextron Systems), Anish Bogati
date: 2024-01-05
tags:
    - attack.stealth
    - attack.t1036
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        # Notes:
        #   - The parent must not have CLI options
        #   - The Child Image must be named "cmd" as its hardcoded in the "forfiles" binary
        #   - The Child CLI will always contains "/c echo" as its hardcoded in the original "forfiles" binary
        ParentCommandLine|endswith:
            - '.exe'
            - '.exe"'
        Image|endswith: '\cmd.exe'
        CommandLine|startswith: '/c echo "'
    filter_main_parent_not_sys:
        ParentImage|contains:
            - ':\Windows\System32\'
            - ':\Windows\SysWOW64\'
        ParentImage|endswith: '\forfiles.exe'
        Image|contains:
            - ':\Windows\System32\'
            - ':\Windows\SysWOW64\'
        Image|endswith: '\cmd.exe'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    ParentCommandLine|endswith:
        - '.exe'
        - '.exe"'
    Image|endswith: '\cmd.exe'
    CommandLine|startswith: '/c echo "'

Stage 2: not filter_main_parent_not_sys

filter_main_parent_not_sys:
    ParentImage|contains:
        - ':\Windows\System32\'
        - ':\Windows\SysWOW64\'
    ParentImage|endswith: '\forfiles.exe'
    Image|contains:
        - ':\Windows\System32\'
        - ':\Windows\SysWOW64\'
    Image|endswith: '\cmd.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinestarts_with
  • /c echo "
field:"CommandLine" kind:starts_with
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
field:"Image" kind:ends_with value:"\cmd.exe"
ParentCommandLineends_with
  • .exe corpus 2 (sigma 2)
  • .exe"
field:"ParentCommandLine" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

Gzip Archive Decode Via PowerShell

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

Detects attempts of decoding encoded Gzip archives via PowerShell.

Known False Positives

  • Legitimate administrative scripts may use this functionality. Use "ParentImage" in combination with the script names and allowed users and applications to filter legitimate executions

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

Rule Body

title: Gzip Archive Decode Via PowerShell
id: 98767d61-b2e8-4d71-b661-e36783ee24c1
status: test
description: Detects attempts of decoding encoded Gzip archives via PowerShell.
references:
    - https://www.zscaler.com/blogs/security-research/onenote-growing-threat-malware-distribution
author: Hieu Tran
date: 2023-03-13
tags:
    - attack.command-and-control
    - attack.t1132.001
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        CommandLine|contains|all:
            - 'GZipStream'
            - '::Decompress'
    condition: selection
falsepositives:
    - Legitimate administrative scripts may use this functionality. Use "ParentImage" in combination with the script names and allowed users and applications to filter legitimate executions
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - 'GZipStream'
        - '::Decompress'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • ::Decompress
  • GZipStream
field:"CommandLine" kind:match

HackTool - RedMimicry Winnti Playbook Execution

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

Detects actions caused by the RedMimicry Winnti playbook a automated breach emulations utility

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: HackTool - RedMimicry Winnti Playbook Execution
id: 95022b85-ff2a-49fa-939a-d7b8f56eeb9b
status: test
description: Detects actions caused by the RedMimicry Winnti playbook a automated breach emulations utility
references:
    - https://redmimicry.com/posts/redmimicry-winnti/
author: Alexander Rausch
date: 2020-06-24
modified: 2023-03-01
tags:
    - attack.execution
    - attack.stealth
    - attack.t1106
    - attack.t1059.003
    - attack.t1218.011
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        Image|endswith:
            - '\rundll32.exe'
            - '\cmd.exe'
        CommandLine|contains:
            - 'gthread-3.6.dll'
            - '\Windows\Temp\tmp.bat'
            - 'sigcmm-2.4.dll'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '\rundll32.exe'
        - '\cmd.exe'
    CommandLine|contains:
        - 'gthread-3.6.dll'
        - '\Windows\Temp\tmp.bat'
        - 'sigcmm-2.4.dll'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • \Windows\Temp\tmp.bat
  • gthread-3.6.dll
  • sigcmm-2.4.dll
field:"CommandLine" kind:match
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \rundll32.exe corpus 94 (sigma 94)
field:"Image" kind:ends_with

IE ZoneMap Setting Downgraded To MyComputer Zone For HTTP Protocols

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

Detects changes to Internet Explorer's (IE / Windows Internet properties) ZoneMap configuration of the "HTTP" and "HTTPS" protocols to point to the "My Computer" zone. This allows downloaded files from the Internet to be granted the same level of trust as files stored locally.

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

Rule Body

title: IE ZoneMap Setting Downgraded To MyComputer Zone For HTTP Protocols
id: 3fd4c8d7-8362-4557-a8e6-83b29cc0d724
related:
    - id: 10344bb3-7f65-46c2-b915-2d00d47be5b0
      type: similar
status: test
description: |
    Detects changes to Internet Explorer's (IE / Windows Internet properties) ZoneMap configuration of the "HTTP" and "HTTPS" protocols to point to the "My Computer" zone. This allows downloaded files from the Internet to be granted the same level of trust as files stored locally.
references:
    - https://twitter.com/M_haggis/status/1699056847154725107
    - https://twitter.com/JAMESWT_MHT/status/1699042827261391247
    - https://learn.microsoft.com/en-us/troubleshoot/developer/browsers/security-privacy/ie-security-zones-registry-entries
    - https://www.virustotal.com/gui/file/339ff720c74dc44265b917b6d3e3ba0411d61f3cd3c328e9a2bae81592c8a6e5/content
author: Nasreddine Bencherchali (Nextron Systems), Michael Haag (idea)
date: 2023-09-05
tags:
    - attack.stealth
logsource:
    product: windows
    category: registry_set
detection:
    selection:
        TargetObject|contains: '\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults'
        TargetObject|endswith:
            - '\http'
            - '\https'
        Details|contains: 'DWORD (0x00000000)'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults'
    TargetObject|endswith:
        - '\http'
        - '\https'
    Details|contains: 'DWORD (0x00000000)'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailsmatch
  • DWORD (0x00000000) corpus 2 (sigma 2)
field:"Details" kind:match value:"DWORD (0x00000000)"
TargetObjectends_with
  • \http
  • \https
field:"TargetObject" kind:ends_with
TargetObjectmatch
  • \Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults
field:"TargetObject" kind:match value:"\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults"

Important Windows Service Terminated Unexpectedly

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

Detects important or interesting Windows services that got terminated unexpectedly.

Known False Positives

  • Rare false positives could occur since service termination could happen due to multiple reasons

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

Rule Body

title: Important Windows Service Terminated Unexpectedly
id: 56abae0c-6212-4b97-adc0-0b559bb950c3
status: test
description: Detects important or interesting Windows services that got terminated unexpectedly.
references:
    - https://www.randori.com/blog/vulnerability-analysis-queuejumper-cve-2023-21554/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-04-14
tags:
    - attack.stealth
logsource:
    product: windows
    service: system
detection:
    selection_eid:
        Provider_Name: 'Service Control Manager'
        EventID: 7034 # The X service terminated unexpectedly. It has done this Y time(s).
    selection_name:
        # Note that these names contained in "param1" are "Display Names" and are language specific. If you're using a non-english system these can and will be different
        - param1|contains: 'Message Queuing'
        # Use this If you collect the binary value provided from this event, which is the wide hex encoded value of the service name.
        - Binary|contains:
              - '4d0053004d005100' # MSMQ (Microsoft Message Queuing). Encoded in upper case just in case
              - '6d0073006d007100' # msmq
    condition: all of selection_*
falsepositives:
    - Rare false positives could occur since service termination could happen due to multiple reasons
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_eid

selection_eid:
    Provider_Name: 'Service Control Manager'
    EventID: 7034

Stage 2: selection_name

selection_name:
    - param1|contains: 'Message Queuing'
    - Binary|contains:
          - '4d0053004d005100'
          - '6d0073006d007100'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Binarymatch
  • 4d0053004d005100
  • 6d0073006d007100
field:"Binary" kind:match
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)
field:"Provider_Name" kind:eq value:"Service Control Manager"
param1match
  • Message Queuing
field:"param1" kind:match value:"Message Queuing"

Linux Base64 Encoded Shebang In CLI

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

Detects the presence of a base64 version of the shebang in the commandline, which could indicate a malicious payload about to be decoded

Known False Positives

  • Legitimate administration activities

MITRE ATT&CK Coverage

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Linux Base64 Encoded Shebang In CLI
id: fe2f9663-41cb-47e2-b954-8a228f3b9dff
status: test
description: Detects the presence of a base64 version of the shebang in the commandline, which could indicate a malicious payload about to be decoded
references:
    - https://www.trendmicro.com/pl_pl/research/20/i/the-evolution-of-malicious-shell-scripts.html
    - https://github.com/carlospolop/PEASS-ng/tree/master/linPEAS
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-15
tags:
    - attack.stealth
    - attack.t1140
logsource:
    product: linux
    category: process_creation
detection:
    selection:
        CommandLine|contains:
            - "IyEvYmluL2Jhc2" # Note: #!/bin/bash"
            - "IyEvYmluL2Rhc2" # Note: #!/bin/dash"
            - "IyEvYmluL3pza" # Note: #!/bin/zsh"
            - "IyEvYmluL2Zpc2" # Note: #!/bin/fish
            - "IyEvYmluL3No" # Note: # !/bin/sh"
    condition: selection
falsepositives:
    - Legitimate administration activities
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains:
        - "IyEvYmluL2Jhc2"
        - "IyEvYmluL2Rhc2"
        - "IyEvYmluL3pza"
        - "IyEvYmluL2Zpc2"
        - "IyEvYmluL3No"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • IyEvYmluL2Jhc2
  • IyEvYmluL2Rhc2
  • IyEvYmluL2Zpc2
  • IyEvYmluL3No
  • IyEvYmluL3pza
field:"CommandLine" kind:match

MITRE BZAR Indicators for Execution

#
Status
test
Severity
medium
Author
@neu5ron, SOC Prime
Source
github.com/SigmaHQ/sigma

Windows DCE-RPC functions which indicate an execution techniques on the remote system. All credit for the Zeek mapping of the suspicious endpoint/operation field goes to MITRE

Known False Positives

  • Windows administrator tasks or troubleshooting
  • Windows management scripts or software

MITRE ATT&CK Coverage

Rule Body

title: MITRE BZAR Indicators for Execution
id: b640c0b8-87f8-4daa-aef8-95a24261dd1d
status: test
description: 'Windows DCE-RPC functions which indicate an execution techniques on the remote system. All credit for the Zeek mapping of the suspicious endpoint/operation field goes to MITRE'
references:
    - https://github.com/mitre-attack/bzar#indicators-for-attck-execution
author: '@neu5ron, SOC Prime'
date: 2020-03-19
modified: 2021-11-27
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.t1047
    - attack.t1053.002
    - attack.t1569.002
logsource:
    product: zeek
    service: dce_rpc
detection:
    op1:
        endpoint: 'JobAdd'
        operation: 'atsvc'
    op2:
        endpoint: 'ITaskSchedulerService'
        operation: 'SchRpcEnableTask'
    op3:
        endpoint: 'ITaskSchedulerService'
        operation: 'SchRpcRegisterTask'
    op4:
        endpoint: 'ITaskSchedulerService'
        operation: 'SchRpcRun'
    op5:
        endpoint: 'IWbemServices'
        operation: 'ExecMethod'
    op6:
        endpoint: 'IWbemServices'
        operation: 'ExecMethodAsync'
    op7:
        endpoint: 'svcctl'
        operation: 'CreateServiceA'
    op8:
        endpoint: 'svcctl'
        operation: 'CreateServiceW'
    op9:
        endpoint: 'svcctl'
        operation: 'StartServiceA'
    op10:
        endpoint: 'svcctl'
        operation: 'StartServiceW'
    condition: 1 of op*
falsepositives:
    - Windows administrator tasks or troubleshooting
    - Windows management scripts or software
level: medium

Stages and Predicates

Stage 0: condition

1 of op*

Stage 1: op1

op1:
    endpoint: 'JobAdd'
    operation: 'atsvc'

Stage 2: op2

op2:
    endpoint: 'ITaskSchedulerService'
    operation: 'SchRpcEnableTask'

Stage 3: op3

op3:
    endpoint: 'ITaskSchedulerService'
    operation: 'SchRpcRegisterTask'

Stage 4: op4

op4:
    endpoint: 'ITaskSchedulerService'
    operation: 'SchRpcRun'

Stage 5: op5

op5:
    endpoint: 'IWbemServices'
    operation: 'ExecMethod'

Stage 6: op6

op6:
    endpoint: 'IWbemServices'
    operation: 'ExecMethodAsync'

Stage 7: op7

op7:
    endpoint: 'svcctl'
    operation: 'CreateServiceA'

Stage 8: op8

op8:
    endpoint: 'svcctl'
    operation: 'CreateServiceW'

Stage 9: op9

op9:
    endpoint: 'svcctl'
    operation: 'StartServiceA'

Stage 10: op10

op10:
    endpoint: 'svcctl'
    operation: 'StartServiceW'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
endpointeq
  • ITaskSchedulerService
  • IWbemServices
  • JobAdd
  • svcctl
field:"endpoint" kind:eq
operationeq
  • CreateServiceA
  • CreateServiceW
  • ExecMethod
  • ExecMethodAsync
  • SchRpcEnableTask
  • SchRpcRegisterTask
  • SchRpcRun
  • StartServiceA
  • StartServiceW
  • atsvc
field:"operation" kind:eq

NET NGenAssemblyUsageLog Registry Key Tamper

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

Detects changes to the NGenAssemblyUsageLog registry key. .NET Usage Log output location can be controlled by setting the NGenAssemblyUsageLog CLR configuration knob in the Registry or by configuring an environment variable (as described in the next section). By simplify specifying an arbitrary value (e.g. fake output location or junk data) for the expected value, a Usage Log file for the .NET execution context will not be created.

MITRE ATT&CK Coverage

TacticTechniques
Persistence
Defense Impairment

Telemetry Coverage

Rule Body

title: NET NGenAssemblyUsageLog Registry Key Tamper
id: 28036918-04d3-423d-91c0-55ecf99fb892
status: test
description: |
  Detects changes to the NGenAssemblyUsageLog registry key.
  .NET Usage Log output location can be controlled by setting the NGenAssemblyUsageLog CLR configuration knob in the Registry or by configuring an environment variable (as described in the next section).
  By simplify specifying an arbitrary value (e.g. fake output location or junk data) for the expected value, a Usage Log file for the .NET execution context will not be created.
references:
    - https://bohops.com/2021/03/16/investigating-net-clr-usage-log-tampering-techniques-for-edr-evasion/
author: frack113
date: 2022-11-18
modified: 2023-08-17
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    product: windows
    category: registry_set
detection:
    selection:
        TargetObject|endswith: 'SOFTWARE\Microsoft\.NETFramework\NGenAssemblyUsageLog'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith: 'SOFTWARE\Microsoft\.NETFramework\NGenAssemblyUsageLog'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • SOFTWARE\Microsoft\.NETFramework\NGenAssemblyUsageLog
field:"TargetObject" kind:ends_with value:"SOFTWARE\Microsoft\.NETFramework\NGenAssemblyUsageLog"

Potential Base64 Encoded User-Agent

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

Detects User Agent strings that end with an equal sign, which can be a sign of base64 encoding.

MITRE ATT&CK Coverage

Rule Body

title: Potential Base64 Encoded User-Agent
id: 894a8613-cf12-48b3-8e57-9085f54aa0c3
related:
    - id: d443095b-a221-4957-a2c4-cd1756c9b747
      type: derived
status: test
description: Detects User Agent strings that end with an equal sign, which can be a sign of base64 encoding.
references:
    - https://blogs.jpcert.or.jp/en/2022/07/yamabot.html
    - https://deviceatlas.com/blog/list-of-user-agent-strings#desktop
author: Florian Roth (Nextron Systems), Brian Ingram (update)
date: 2022-07-08
modified: 2023-05-04
tags:
    - attack.command-and-control
    - attack.t1071.001
logsource:
    category: proxy
detection:
    selection:
        c-useragent|endswith: '='
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    c-useragent|endswith: '='

Indicators

These rows show field, operator, and value matches.

Potential CVE-2021-27905 Exploitation Attempt

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

Detects exploitation attempt of the CVE-2021-27905 which affects all Apache Solr versions prior to and including 8.8.1.

Known False Positives

  • Vulnerability Scanners

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: Potential CVE-2021-27905 Exploitation Attempt
id: 0bbcd74b-0596-41a4-94a0-4e88a76ffdb3
status: test
description: Detects exploitation attempt of the CVE-2021-27905 which affects all Apache Solr versions prior to and including 8.8.1.
references:
    - https://twitter.com/Al1ex4/status/1382981479727128580
    - https://twitter.com/sec715/status/1373472323538362371
    - https://nsfocusglobal.com/apache-solr-arbitrary-file-read-and-ssrf-vulnerability-threat-alert/
    - https://mp.weixin.qq.com/s?__biz=Mzg3NDU2MTg0Ng==&mid=2247484117&idx=1&sn=2fdab8cbe4b873f8dd8abb35d935d186
    - https://github.com/murataydemir/CVE-2021-27905
author: '@gott_cyber'
date: 2022-12-11
modified: 2023-03-24
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2021-27905
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_request1:
        cs-uri-query|contains|all:
            - '/solr/'
            - '/debug/dump?'
            - 'param=ContentStream'
        sc-status: 200
    selection_request2:
        cs-method: 'GET'
        cs-uri-query|contains|all:
            - '/solr/'
            - 'command=fetchindex'
            - 'masterUrl='
        sc-status: 200
    condition: 1 of selection_*
falsepositives:
    - Vulnerability Scanners
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_request1

selection_request1:
    cs-uri-query|contains|all:
        - '/solr/'
        - '/debug/dump?'
        - 'param=ContentStream'
    sc-status: 200

Stage 2: selection_request2

selection_request2:
    cs-method: 'GET'
    cs-uri-query|contains|all:
        - '/solr/'
        - 'command=fetchindex'
        - 'masterUrl='
    sc-status: 200

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
cs-methodeq
  • GET
field:"cs-method" kind:eq value:"GET"
cs-uri-querymatch
  • /debug/dump?
  • /solr/
  • command=fetchindex
  • masterUrl=
  • param=ContentStream
field:"cs-uri-query" kind:match
sc-statuseq
  • 200
field:"sc-status" kind:eq value:"200"

Potential Snatch Ransomware Activity

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

Detects specific process characteristics of Snatch ransomware word document droppers

Known False Positives

  • Scripts that shutdown the system immediately and reboot them in safe mode are unlikely

MITRE ATT&CK Coverage

TacticTechniques
Execution

Telemetry Coverage

Rule Body

title: Potential Snatch Ransomware Activity
id: 5325945e-f1f0-406e-97b8-65104d393fff
status: stable
description: Detects specific process characteristics of Snatch ransomware word document droppers
references:
    - https://news.sophos.com/en-us/2019/12/09/snatch-ransomware-reboots-pcs-into-safe-mode-to-bypass-protection/
author: Florian Roth (Nextron Systems)
date: 2020-08-26
modified: 2025-10-19
tags:
    - attack.execution
    - attack.t1204
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - CommandLine|re: 'shutdown\s+/r /f /t 00' # Shutdown in safe mode immediately
        - CommandLine|re: 'net\s+stop SuperBackupMan'
    condition: selection
falsepositives:
    - Scripts that shutdown the system immediately and reboot them in safe mode are unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - CommandLine|re: 'shutdown\s+/r /f /t 00'
    - CommandLine|re: 'net\s+stop SuperBackupMan'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineregex_match
  • net\s+stop SuperBackupMan
  • shutdown\s+/r /f /t 00
field:"CommandLine" kind:regex_match

Potential SocGholish Second Stage C2 DNS Query

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

Detects a DNS query initiated from a "wscript" process for domains matching a specific pattern that was seen being used by SocGholish for its Command and Control traffic

Known False Positives

  • Legitimate domain names matching the regex pattern by chance (e.g. domain controllers dc01.company.co.uk)

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 22: DNSEvent (DNS query)

Rule Body

title: Potential SocGholish Second Stage C2 DNS Query
id: 70761fe8-6aa2-4f80-98c1-a57049c08e66
status: test
description: Detects a DNS query initiated from a "wscript" process for domains matching a specific pattern that was seen being used by SocGholish for its Command and Control traffic
references:
    - https://www.virustotal.com/gui/file/0e2854753d17b1bb534de8e765d5813c9fb584a745978b3d92bc6ca78e3e7735/relations
    - https://www.virustotal.com/gui/file/d5661009c461a8b20e1ad22f48609cc84dd90aee9182e026659dde4d46aaf25e/relations
    - https://www.proofpoint.com/us/blog/threat-insight/part-1-socgholish-very-real-threat-very-fake-update
author: Dusty Miller
date: 2023-02-23
tags:
    - attack.command-and-control
    - attack.t1219.002
    - detection.emerging-threats
logsource:
    product: windows
    category: dns_query
detection:
    selection:
        Image|endswith: '\wscript.exe'
        QueryName|re: '[a-f0-9]{4,8}\.(?:[a-z0-9\-]+\.){2}[a-z0-9\-]+'
    condition: selection
falsepositives:
    - Legitimate domain names matching the regex pattern by chance (e.g. domain controllers dc01.company.co.uk)
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\wscript.exe'
    QueryName|re: '[a-f0-9]{4,8}\.(?:[a-z0-9\-]+\.){2}[a-z0-9\-]+'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \wscript.exe corpus 74 (sigma 74)
field:"Image" kind:ends_with value:"\wscript.exe"
QueryNameregex_match
  • [a-f0-9]{4,8}.(?:[a-z0-9\-]+.){2}[a-z0-9\-]+
field:"QueryName" kind:regex_match value:"[a-f0-9]{4,8}.(?:[a-z0-9\-]+.){2}[a-z0-9\-]+"

Potentially Suspicious Execution Of Regasm/Regsvcs From Uncommon Location

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

Detects potentially suspicious execution of the Regasm/Regsvcs utilities from a potentially suspicious location

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potentially Suspicious Execution Of Regasm/Regsvcs From Uncommon Location
id: cc368ed0-2411-45dc-a222-510ace303cb2
related:
    - id: e9f8f8cc-07cc-4e81-b724-f387db9175e4
      type: derived
status: test
description: Detects potentially suspicious execution of the Regasm/Regsvcs utilities from a potentially suspicious location
references:
    - https://www.fortiguard.com/threat-signal-report/4718?s=09
    - https://lolbas-project.github.io/lolbas/Binaries/Regasm/
    - https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-25
modified: 2023-02-13
tags:
    - attack.stealth
    - attack.t1218.009
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\Regsvcs.exe'
              - '\Regasm.exe'
        - OriginalFileName:
              - 'RegSvcs.exe'
              - 'RegAsm.exe'
    selection_dir:
        CommandLine|contains:
            # Note: Add more potentially suspicious directories
            - '\AppData\Local\Temp\'
            - '\Microsoft\Windows\Start Menu\Programs\Startup\'
            - '\PerfLogs\'
            - '\Users\Public\'
            - '\Windows\Temp\'
            # - '\Desktop\'
            # - '\Downloads\'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\Regsvcs.exe'
          - '\Regasm.exe'
    - OriginalFileName:
          - 'RegSvcs.exe'
          - 'RegAsm.exe'

Stage 2: selection_dir

selection_dir:
    CommandLine|contains:
        - '\AppData\Local\Temp\'
        - '\Microsoft\Windows\Start Menu\Programs\Startup\'
        - '\PerfLogs\'
        - '\Users\Public\'
        - '\Windows\Temp\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • \AppData\Local\Temp\ corpus 28 (sigma 26, elastic 2)
  • \Microsoft\Windows\Start Menu\Programs\Startup\ corpus 3 (sigma 3)
  • \PerfLogs\ corpus 3 (sigma 3)
  • \Users\Public\ corpus 18 (sigma 17, elastic 1)
  • \Windows\Temp\ corpus 13 (sigma 12, elastic 1)
field:"CommandLine" kind:match
Imageends_with
  • \Regasm.exe corpus 9 (sigma 9)
  • \Regsvcs.exe corpus 8 (sigma 8)
field:"Image" kind:ends_with
OriginalFileNameeq
  • RegAsm.exe corpus 13 (sigma 6, elastic 6, splunk 1)
  • RegSvcs.exe corpus 12 (elastic 6, sigma 5, splunk 1)
field:"OriginalFileName" kind:eq

PowerShell Set-Acl On Windows Folder

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

Detects PowerShell scripts to set the ACL to a file in the Windows folder

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: PowerShell Set-Acl On Windows Folder
id: 0944e002-e3f6-4eb5-bf69-3a3067b53d73 # ProcCreation Susp
related:
    - id: cae80281-ef23-44c5-873b-fd48d2666f49 # PsScript Low
      type: derived
    - id: bdeb2cff-af74-4094-8426-724dc937f20a # ProcCreation Low
      type: derived
    - id: 3bf1d859-3a7e-44cb-8809-a99e066d3478 # PsScript High
      type: derived
status: test
description: Detects PowerShell scripts to set the ACL to a file in the Windows folder
references:
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-acl?view=powershell-5.1
    - https://github.com/redcanaryco/atomic-red-team/blob/74438b0237d141ee9c99747976447dc884cb1a39/atomics/T1505.005/T1505.005.md
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-18
tags:
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
    selection_cmdlet:
        CommandLine|contains|all:
            - 'Set-Acl '
            - '-AclObject '
    selection_paths:
        # Note: Add more suspicious paths
        CommandLine|contains:
            - '-Path "C:\Windows'
            - "-Path 'C:\\Windows"
            - '-Path %windir%'
            - '-Path $env:windir'
    selection_permissions:
        # Note: Add more suspicious permissions
        CommandLine|contains:
            - 'FullControl'
            - 'Allow'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - OriginalFileName:
          - 'PowerShell.EXE'
          - 'pwsh.dll'
    - Image|endswith:
          - '\powershell.exe'
          - '\pwsh.exe'

Stage 2: selection_cmdlet

selection_cmdlet:
    CommandLine|contains|all:
        - 'Set-Acl '
        - '-AclObject '

Stage 3: selection_paths

selection_paths:
    CommandLine|contains:
        - '-Path "C:\Windows'
        - "-Path 'C:\\Windows"
        - '-Path %windir%'
        - '-Path $env:windir'

Stage 4: selection_permissions

selection_permissions:
    CommandLine|contains:
        - 'FullControl'
        - 'Allow'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -AclObject corpus 2 (sigma 2)
  • -Path "C:\Windows
  • -Path $env:windir
  • -Path %windir%
  • -Path 'C:\Windows
  • Allow corpus 6 (sigma 4, splunk 2)
  • FullControl
  • Set-Acl corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
OriginalFileNameeq
  • PowerShell.EXE corpus 134 (sigma 86, splunk 30, elastic 18)
  • pwsh.dll corpus 115 (sigma 81, splunk 30, elastic 4)
field:"OriginalFileName" kind:eq

Remote Access Tool - Renamed MeshAgent Execution - MacOS

#
Status
experimental
Severity
high
Author
Norbert Jaśniewicz (AlphaSOC)
Source
github.com/SigmaHQ/sigma

Detects the execution of a renamed instance of the Remote Monitoring and Management (RMM) tool, MeshAgent. RMM tools such as MeshAgent are commonly utilized by IT administrators for legitimate remote support and system management. However, malicious actors may exploit these tools by renaming them to bypass detection mechanisms, enabling unauthorized access and control over compromised systems.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Remote Access Tool - Renamed MeshAgent Execution - MacOS
id: bd3b5eaa-439d-4a42-8f35-a49f5c8a2582
related:
    - id: b471f462-eb0d-4832-be35-28d94bdb4780
      type: similar
    - id: 22c45af6-f590-4d44-bab3-b5b2d2a2b6d9
      type: derived
status: experimental
description: |
    Detects the execution of a renamed instance of the Remote Monitoring and Management (RMM) tool, MeshAgent.
    RMM tools such as MeshAgent are commonly utilized by IT administrators for legitimate remote support and system management.
    However, malicious actors may exploit these tools by renaming them to bypass detection mechanisms, enabling unauthorized access and control over compromised systems.
references:
    - https://www.huntress.com/blog/know-thy-enemy-a-novel-november-case-on-persistent-remote-access
    - https://thecyberexpress.com/ukraine-hit-by-meshagent-malware-campaign/
    - https://wazuh.com/blog/how-to-detect-meshagent-with-wazuh/
    - https://www.security.com/threat-intelligence/medusa-ransomware-attacks
author: Norbert Jaśniewicz (AlphaSOC)
date: 2025-05-19
tags:
    - attack.command-and-control
    - attack.stealth
    - attack.t1219.002
    - attack.t1036.003
logsource:
    category: process_creation
    product: macos
detection:
    selection_meshagent:
        - CommandLine|contains: '--meshServiceName'
        - OriginalFileName|contains: 'meshagent'
    filter_main_legitimate:
        Image|endswith:
            - '/meshagent'
            - '/meshagent_osx64'
    condition: selection_meshagent and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_meshagent and not 1 of filter_main_*

Stage 1: selection_meshagent

selection_meshagent:
    - CommandLine|contains: '--meshServiceName'
    - OriginalFileName|contains: 'meshagent'

Stage 2: not filter_main_legitimate

filter_main_legitimate:
    Image|endswith:
        - '/meshagent'
        - '/meshagent_osx64'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • --meshServiceName corpus 4 (sigma 4)
field:"CommandLine" kind:match value:"--meshServiceName"
OriginalFileNamematch
  • meshagent corpus 2 (sigma 2)
field:"OriginalFileName" kind:match value:"meshagent"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with/meshagentexcludes:Image field:"Image" value:"/meshagent"
Imageends_with/meshagent_osx64excludes:Image field:"Image" value:"/meshagent_osx64"

Suspicious Network Connection to IP Lookup Service APIs

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

Detects external IP address lookups by non-browser processes via services such as "api.ipify.org". This could be indicative of potential post compromise internet test activity.

Known False Positives

  • Legitimate use of the external websites for troubleshooting or network monitoring

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Suspicious Network Connection to IP Lookup Service APIs
id: edf3485d-dac4-4d50-90e4-b0e5813f7e60
related:
    - id: ec82e2a5-81ea-4211-a1f8-37a0286df2c2
      type: derived
status: test
description: Detects external IP address lookups by non-browser processes via services such as "api.ipify.org". This could be indicative of potential post compromise internet test activity.
references:
    - https://github.com/rsp/scripts/blob/c8bb272d68164a9836e4f273d8f924927f39b8c6/externalip-benchmark.md
    - https://www.cisa.gov/news-events/cybersecurity-advisories/aa20-302a
    - https://thedfirreport.com/2022/11/28/emotet-strikes-again-lnk-file-leads-to-domain-wide-ransomware/
    - https://www.trendmicro.com/en_us/research/23/e/managed-xdr-investigation-of-ducktail-in-trend-micro-vision-one.html
author: Janantha Marasinghe, Nasreddine Bencherchali (Nextron Systems)
date: 2023-04-24
modified: 2024-03-22
tags:
    - attack.discovery
    - attack.t1016
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        - DestinationHostname:
              - 'www.ip.cn'
              - 'l2.io'
        - DestinationHostname|contains:
              - 'api.2ip.ua'
              - 'api.bigdatacloud.net'
              - 'api.ipify.org'
              - 'bot.whatismyipaddress.com'
              - 'canireachthe.net'
              - 'checkip.amazonaws.com'
              - 'checkip.dyndns.org'
              - 'curlmyip.com'
              - 'db-ip.com'
              - 'edns.ip-api.com'
              - 'eth0.me'
              - 'freegeoip.app'
              - 'geoipy.com'
              - 'getip.pro'
              - 'icanhazip.com'
              - 'ident.me'
              - 'ifconfig.io'
              - 'ifconfig.me'
              - 'ip-api.com'
              - 'ip.360.cn'
              - 'ip.anysrc.net'
              - 'ip.taobao.com'
              - 'ip.tyk.nu'
              - 'ipaddressworld.com'
              - 'ipapi.co'
              - 'ipconfig.io'
              - 'ipecho.net'
              - 'ipinfo.io'
              - 'ipip.net'
              - 'ipof.in'
              - 'ipv4.icanhazip.com'
              - 'ipv4bot.whatismyipaddress.com'
              - 'ipv6-test.com'
              - 'ipwho.is'
              - 'jsonip.com'
              - 'myexternalip.com'
              - 'seeip.org'
              - 'wgetip.com'
              - 'whatismyip.akamai.com'
              - 'whois.pconline.com.cn'
              - 'wtfismyip.com'
    filter_optional_brave:
        Image|endswith: '\brave.exe'
    filter_optional_chrome:
        Image:
            - 'C:\Program Files\Google\Chrome\Application\chrome.exe'
            - 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
    filter_optional_firefox:
        Image:
            - 'C:\Program Files\Mozilla Firefox\firefox.exe'
            - 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'
    filter_optional_ie:
        Image:
            - 'C:\Program Files (x86)\Internet Explorer\iexplore.exe'
            - 'C:\Program Files\Internet Explorer\iexplore.exe'
    filter_optional_maxthon:
        Image|endswith: '\maxthon.exe'
    filter_optional_edge_1:
        - Image|startswith: 'C:\Program Files (x86)\Microsoft\EdgeWebView\Application\'
        - Image|endswith: '\WindowsApps\MicrosoftEdge.exe'
        - Image:
              - 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
              - 'C:\Program Files\Microsoft\Edge\Application\msedge.exe'
    filter_optional_edge_2:
        Image|startswith:
            - 'C:\Program Files (x86)\Microsoft\EdgeCore\'
            - 'C:\Program Files\Microsoft\EdgeCore\'
        Image|endswith:
            - '\msedge.exe'
            - '\msedgewebview2.exe'
    filter_optional_opera:
        Image|endswith: '\opera.exe'
    filter_optional_safari:
        Image|endswith: '\safari.exe'
    filter_optional_seamonkey:
        Image|endswith: '\seamonkey.exe'
    filter_optional_vivaldi:
        Image|endswith: '\vivaldi.exe'
    filter_optional_whale:
        Image|endswith: '\whale.exe'
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - Legitimate use of the external websites for troubleshooting or network monitoring
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_optional_*

Stage 1: selection

selection:
    - DestinationHostname:
          - 'www.ip.cn'
          - 'l2.io'
    - DestinationHostname|contains:
          - 'api.2ip.ua'
          - 'api.bigdatacloud.net'
          - 'api.ipify.org'
          - 'bot.whatismyipaddress.com'
          - 'canireachthe.net'
          - 'checkip.amazonaws.com'
          - 'checkip.dyndns.org'
          - 'curlmyip.com'
          - 'db-ip.com'
          - 'edns.ip-api.com'
          - 'eth0.me'
          - 'freegeoip.app'
          - 'geoipy.com'
          - 'getip.pro'
          - 'icanhazip.com'
          - 'ident.me'
          - 'ifconfig.io'
          - 'ifconfig.me'
          - 'ip-api.com'
          - 'ip.360.cn'
          - 'ip.anysrc.net'
          - 'ip.taobao.com'
          - 'ip.tyk.nu'
          - 'ipaddressworld.com'
          - 'ipapi.co'
          - 'ipconfig.io'
          - 'ipecho.net'
          - 'ipinfo.io'
          - 'ipip.net'
          - 'ipof.in'
          - 'ipv4.icanhazip.com'
          - 'ipv4bot.whatismyipaddress.com'
          - 'ipv6-test.com'
          - 'ipwho.is'
          - 'jsonip.com'
          - 'myexternalip.com'
          - 'seeip.org'
          - 'wgetip.com'
          - 'whatismyip.akamai.com'
          - 'whois.pconline.com.cn'
          - 'wtfismyip.com'

Stage 2: not filter_optional_*

filter_optional_brave:
    Image|endswith: '\brave.exe'
filter_optional_chrome:
    Image:
        - 'C:\Program Files\Google\Chrome\Application\chrome.exe'
        - 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
filter_optional_firefox:
    Image:
        - 'C:\Program Files\Mozilla Firefox\firefox.exe'
        - 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'
filter_optional_ie:
    Image:
        - 'C:\Program Files (x86)\Internet Explorer\iexplore.exe'
        - 'C:\Program Files\Internet Explorer\iexplore.exe'
filter_optional_maxthon:
    Image|endswith: '\maxthon.exe'
filter_optional_edge_1:
    - Image|startswith: 'C:\Program Files (x86)\Microsoft\EdgeWebView\Application\'
    - Image|endswith: '\WindowsApps\MicrosoftEdge.exe'
    - Image:
          - 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
          - 'C:\Program Files\Microsoft\Edge\Application\msedge.exe'
filter_optional_edge_2:
    Image|startswith:
        - 'C:\Program Files (x86)\Microsoft\EdgeCore\'
        - 'C:\Program Files\Microsoft\EdgeCore\'
    Image|endswith:
        - '\msedge.exe'
        - '\msedgewebview2.exe'
filter_optional_opera:
    Image|endswith: '\opera.exe'
filter_optional_safari:
    Image|endswith: '\safari.exe'
filter_optional_seamonkey:
    Image|endswith: '\seamonkey.exe'
filter_optional_vivaldi:
    Image|endswith: '\vivaldi.exe'
filter_optional_whale:
    Image|endswith: '\whale.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
DestinationHostnameeq
  • l2.io
  • www.ip.cn
field:"DestinationHostname" kind:eq
DestinationHostnamematch
  • api.2ip.ua
  • api.bigdatacloud.net
  • api.ipify.org
  • bot.whatismyipaddress.com
  • canireachthe.net
  • checkip.amazonaws.com
  • checkip.dyndns.org
  • curlmyip.com
  • db-ip.com
  • edns.ip-api.com
  • eth0.me
  • freegeoip.app
  • geoipy.com
  • getip.pro
  • icanhazip.com
  • ident.me
  • ifconfig.io
  • ifconfig.me
  • ip-api.com
  • ip.360.cn
  • ip.anysrc.net
  • ip.taobao.com
  • ip.tyk.nu
  • ipaddressworld.com
  • ipapi.co
  • ipconfig.io
  • ipecho.net
  • ipinfo.io
  • ipip.net
  • ipof.in
  • ipv4.icanhazip.com
  • ipv4bot.whatismyipaddress.com
  • ipv6-test.com
  • ipwho.is
  • jsonip.com
  • myexternalip.com
  • seeip.org
  • wgetip.com
  • whatismyip.akamai.com
  • whois.pconline.com.cn
  • wtfismyip.com
field:"DestinationHostname" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\msedge.exeexcludes:Image field:"Image" value:"\msedge.exe"
Imageends_with\msedgewebview2.exeexcludes:Image field:"Image" value:"\msedgewebview2.exe"
Imagestarts_withC:\Program Files (x86)\Microsoft\EdgeCore\excludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft\EdgeCore\"
Imagestarts_withC:\Program Files\Microsoft\EdgeCore\excludes:Image field:"Image" value:"C:\Program Files\Microsoft\EdgeCore\"
Imageends_with\WindowsApps\MicrosoftEdge.exeexcludes:Image field:"Image" value:"\WindowsApps\MicrosoftEdge.exe"
Imageends_with\brave.exeexcludes:Image field:"Image" value:"\brave.exe"
Imageends_with\maxthon.exeexcludes:Image field:"Image" value:"\maxthon.exe"
Imageends_with\opera.exeexcludes:Image field:"Image" value:"\opera.exe"
Imageends_with\safari.exeexcludes:Image field:"Image" value:"\safari.exe"
Imageends_with\seamonkey.exeexcludes:Image field:"Image" value:"\seamonkey.exe"
Imageends_with\vivaldi.exeexcludes:Image field:"Image" value:"\vivaldi.exe"
Imageends_with\whale.exeexcludes:Image field:"Image" value:"\whale.exe"
ImageeqC:\Program Files (x86)\Google\Chrome\Application\chrome.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
ImageeqC:\Program Files (x86)\Internet Explorer\iexplore.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Internet Explorer\iexplore.exe"
ImageeqC:\Program Files (x86)\Microsoft\Edge\Application\msedge.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
ImageeqC:\Program Files (x86)\Mozilla Firefox\firefox.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
ImageeqC:\Program Files\Google\Chrome\Application\chrome.exeexcludes:Image field:"Image" value:"C:\Program Files\Google\Chrome\Application\chrome.exe"
ImageeqC:\Program Files\Internet Explorer\iexplore.exeexcludes:Image field:"Image" value:"C:\Program Files\Internet Explorer\iexplore.exe"
ImageeqC:\Program Files\Microsoft\Edge\Application\msedge.exeexcludes:Image field:"Image" value:"C:\Program Files\Microsoft\Edge\Application\msedge.exe"
ImageeqC:\Program Files\Mozilla Firefox\firefox.exeexcludes:Image field:"Image" value:"C:\Program Files\Mozilla Firefox\firefox.exe"
Imagestarts_withC:\Program Files (x86)\Microsoft\EdgeWebView\Application\excludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft\EdgeWebView\Application\"

Suspicious permissions modification on a network share

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

Detects scenarios where an attacker modifies network share permissions in order to facilitate lateral movement and avoid detection by creating new network shares

Known False Positives

  • Administrator modification on network shares, SCCM servers, DFS shares, printer servers

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious permissions modification on a network share
description: Detects scenarios where an attacker modifies network share permissions in order to facilitate lateral movement and avoid detection by creating new network shares
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1222.001-File%20and%20Directory%20Permissions%20Modification
- https://medium.com/falconforce/falconfriday-monitoring-for-public-shares-0xff1a-ece14fe137e1
tags:
- attack.defense_evasion
- attack.t1222.001
- attack.lateral_movement
- attack.t1021.002
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 5143  # modified share
    #OldSD != NewSD # Comparing 2 fields is not possible in SIGMA language
  filter:
    Computer: '%domain_controllers%'
  condition: selection and not filter
falsepositives:
- Administrator modification on network shares, SCCM servers, DFS shares, printer servers
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 5143

Stage 2: not filter

filter:
  Computer: '%domain_controllers%'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Computereq%domain_controllers%excludes:Computer field:"Computer" value:"%domain_controllers%"

Suspicious Process Patterns NTDS.DIT Exfil

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

Detects suspicious process patterns used in NTDS.DIT exfiltration

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rule Body

title: Suspicious Process Patterns NTDS.DIT Exfil
id: 8bc64091-6875-4881-aaf9-7bd25b5dda08
status: test
description: Detects suspicious process patterns used in NTDS.DIT exfiltration
references:
    - https://www.ired.team/offensive-security/credential-access-and-credential-dumping/ntds.dit-enumeration
    - https://www.n00py.io/2022/03/manipulating-user-passwords-without-mimikatz/
    - https://pentestlab.blog/tag/ntds-dit/
    - https://github.com/samratashok/nishang/blob/414ee1104526d7057f9adaeee196d91ae447283e/Gather/Copy-VSS.ps1
    - https://github.com/zcgonvh/NTDSDumpEx
    - https://github.com/rapid7/metasploit-framework/blob/d297adcebb5c1df6fe30b12ca79b161deb71571c/data/post/powershell/NTDSgrab.ps1
    - https://blog.talosintelligence.com/2022/08/recent-cyber-attack.html?m=1
author: Florian Roth (Nextron Systems)
date: 2022-03-11
modified: 2022-11-10
tags:
    - attack.credential-access
    - attack.t1003.003
logsource:
    product: windows
    category: process_creation
detection:
    selection_tool:
        # https://github.com/zcgonvh/NTDSDumpEx
        - Image|endswith:
              - '\NTDSDump.exe'
              - '\NTDSDumpEx.exe'
        - CommandLine|contains|all:
              # ntdsdumpex.exe -d ntds.dit -o hash.txt -s system.hiv
              - 'ntds.dit'
              - 'system.hiv'
        - CommandLine|contains: 'NTDSgrab.ps1'
    selection_oneliner_1:
        # powershell "ntdsutil.exe 'ac i ntds' 'ifm' 'create full c:\temp' q q"
        CommandLine|contains|all:
            - 'ac i ntds'
            - 'create full'
    selection_onliner_2:
        # cmd.exe /c copy z:\windows\ntds\ntds.dit c:\exfil\ntds.dit
        CommandLine|contains|all:
            - '/c copy '
            - '\windows\ntds\ntds.dit'
    selection_onliner_3:
        # ntdsutil "activate instance ntds" "ifm" "create full c:\windows\temp\data\" "quit" "quit"
        CommandLine|contains|all:
            - 'activate instance ntds'
            - 'create full'
    selection_powershell:
        CommandLine|contains|all:
            - 'powershell'
            - 'ntds.dit'
    set1_selection_ntds_dit:
        CommandLine|contains: 'ntds.dit'
    set1_selection_image_folder:
        - ParentImage|contains:
              - '\apache'
              - '\tomcat'
              - '\AppData\'
              - '\Temp\'
              - '\Public\'
              - '\PerfLogs\'
        - Image|contains:
              - '\apache'
              - '\tomcat'
              - '\AppData\'
              - '\Temp\'
              - '\Public\'
              - '\PerfLogs\'
    condition: 1 of selection* or all of set1*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_susp_ntds/info.yml

Stages and Predicates

Stage 0: condition

1 of selection* or all of set1*

Stage 1: selection_tool

selection_tool:
    - Image|endswith:
          - '\NTDSDump.exe'
          - '\NTDSDumpEx.exe'
    - CommandLine|contains|all:
          - 'ntds.dit'
          - 'system.hiv'
    - CommandLine|contains: 'NTDSgrab.ps1'

Stage 2: selection_oneliner_1

selection_oneliner_1:
    CommandLine|contains|all:
        - 'ac i ntds'
        - 'create full'

Stage 3: selection_onliner_2

selection_onliner_2:
    CommandLine|contains|all:
        - '/c copy '
        - '\windows\ntds\ntds.dit'

Stage 4: selection_onliner_3

selection_onliner_3:
    CommandLine|contains|all:
        - 'activate instance ntds'
        - 'create full'

Stage 5: selection_powershell

selection_powershell:
    CommandLine|contains|all:
        - 'powershell'
        - 'ntds.dit'

Stage 6: set1_selection_ntds_dit

set1_selection_ntds_dit:
    CommandLine|contains: 'ntds.dit'

Stage 7: set1_selection_image_folder

set1_selection_image_folder:
    - ParentImage|contains:
          - '\apache'
          - '\tomcat'
          - '\AppData\'
          - '\Temp\'
          - '\Public\'
          - '\PerfLogs\'
    - Image|contains:
          - '\apache'
          - '\tomcat'
          - '\AppData\'
          - '\Temp\'
          - '\Public\'
          - '\PerfLogs\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /c copy
  • NTDSgrab.ps1
  • \windows\ntds\ntds.dit corpus 5 (sigma 5)
  • ac i ntds
  • activate instance ntds
  • create full
  • ntds.dit corpus 3 (elastic 2, sigma 1)
  • powershell corpus 24 (sigma 24)
  • system.hiv
field:"CommandLine" kind:match
Imageends_with
  • \NTDSDump.exe
  • \NTDSDumpEx.exe
field:"Image" kind:ends_with
Imagematch
  • \AppData\ corpus 6 (sigma 6)
  • \PerfLogs\ corpus 4 (sigma 4)
  • \Public\ corpus 2 (sigma 2)
  • \Temp\ corpus 6 (sigma 3, splunk 3)
  • \apache
  • \tomcat
field:"Image" kind:match
ParentImagematch
  • \AppData\ corpus 3 (sigma 3)
  • \PerfLogs\ corpus 2 (sigma 2)
  • \Public\ corpus 2 (sigma 2)
  • \Temp\ corpus 3 (sigma 3)
  • \apache corpus 2 (sigma 2)
  • \tomcat corpus 6 (sigma 6)
field:"ParentImage" kind:match

Tamper Windows Defender - ScriptBlockLogging

#
Status
test
Severity
high
Author
frack113, elhoim, Tim Shelton (fps, alias support), Swachchhanda Shrawan Poudel, Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects PowerShell scripts attempting to disable scheduled scanning and other parts of Windows Defender ATP or set default actions to allow.

Known False Positives

  • Legitimate PowerShell scripts that disable Windows Defender for troubleshooting purposes. Must be investigated.

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Tamper Windows Defender - ScriptBlockLogging
id: 14c71865-6cd3-44ae-adaa-1db923fae5f2
related:
    - id: ec19ebab-72dc-40e1-9728-4c0b805d722c
      type: derived
status: test
description: Detects PowerShell scripts attempting to disable scheduled scanning and other parts of Windows Defender ATP or set default actions to allow.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md
    - https://learn.microsoft.com/en-us/powershell/module/defender/set-mppreference?view=windowsserver2022-ps
    - https://bidouillesecurity.com/disable-windows-defender-in-powershell/
author: frack113, elhoim, Tim Shelton (fps, alias support), Swachchhanda Shrawan Poudel, Nasreddine Bencherchali (Nextron Systems)
date: 2022-01-16
modified: 2024-01-02
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection_options_disabling_preference:
        ScriptBlockText|contains: 'Set-MpPreference'
    selection_options_disabling_function:
        ScriptBlockText|contains:
            - '-dbaf $true'
            - '-dbaf 1'
            - '-dbm $true'
            - '-dbm 1'
            - '-dips $true'
            - '-dips 1'
            - '-DisableArchiveScanning $true'
            - '-DisableArchiveScanning 1'
            - '-DisableBehaviorMonitoring $true'
            - '-DisableBehaviorMonitoring 1'
            - '-DisableBlockAtFirstSeen $true'
            - '-DisableBlockAtFirstSeen 1'
            - '-DisableCatchupFullScan $true'
            - '-DisableCatchupFullScan 1'
            - '-DisableCatchupQuickScan $true'
            - '-DisableCatchupQuickScan 1'
            - '-DisableIntrusionPreventionSystem $true'
            - '-DisableIntrusionPreventionSystem 1'
            - '-DisableIOAVProtection $true'
            - '-DisableIOAVProtection 1'
            - '-DisableRealtimeMonitoring $true'
            - '-DisableRealtimeMonitoring 1'
            - '-DisableRemovableDriveScanning $true'
            - '-DisableRemovableDriveScanning 1'
            - '-DisableScanningMappedNetworkDrivesForFullScan $true'
            - '-DisableScanningMappedNetworkDrivesForFullScan 1'
            - '-DisableScanningNetworkFiles $true'
            - '-DisableScanningNetworkFiles 1'
            - '-DisableScriptScanning $true'
            - '-DisableScriptScanning 1'
            - '-MAPSReporting $false'
            - '-MAPSReporting 0'
            - '-drdsc $true'
            - '-drdsc 1'
            - '-drtm $true'
            - '-drtm 1'
            - '-dscrptsc $true'
            - '-dscrptsc 1'
            - '-dsmndf $true'
            - '-dsmndf 1'
            - '-dsnf $true'
            - '-dsnf 1'
            - '-dss $true'
            - '-dss 1'
    selection_other_default_actions_allow:
        ScriptBlockText|contains: 'Set-MpPreference'
    selection_other_default_actions_func:
        ScriptBlockText|contains:
            - 'HighThreatDefaultAction Allow'
            - 'htdefac Allow'
            - 'LowThreatDefaultAction Allow'
            - 'ltdefac Allow'
            - 'ModerateThreatDefaultAction Allow'
            - 'mtdefac Allow'
            - 'SevereThreatDefaultAction Allow'
            - 'stdefac Allow'
    condition: all of selection_options_disabling_* or all of selection_other_default_actions_*
falsepositives:
    - Legitimate PowerShell scripts that disable Windows Defender for troubleshooting purposes. Must be investigated.
level: high
regression_tests_path: regression_data/rules/windows/powershell/powershell_script/posh_ps_tamper_windows_defender_set_mp/info.yml

Stages and Predicates

Stage 0: condition

all of selection_options_disabling_* or all of selection_other_default_actions_*

Stage 1: selection_options_disabling_preference

selection_options_disabling_preference:
    ScriptBlockText|contains: 'Set-MpPreference'

Stage 2: selection_options_disabling_function

selection_options_disabling_function:
    ScriptBlockText|contains:
        - '-dbaf $true'
        - '-dbaf 1'
        - '-dbm $true'
        - '-dbm 1'
        - '-dips $true'
        - '-dips 1'
        - '-DisableArchiveScanning $true'
        - '-DisableArchiveScanning 1'
        - '-DisableBehaviorMonitoring $true'
        - '-DisableBehaviorMonitoring 1'
        - '-DisableBlockAtFirstSeen $true'
        - '-DisableBlockAtFirstSeen 1'
        - '-DisableCatchupFullScan $true'
        - '-DisableCatchupFullScan 1'
        - '-DisableCatchupQuickScan $true'
        - '-DisableCatchupQuickScan 1'
        - '-DisableIntrusionPreventionSystem $true'
        - '-DisableIntrusionPreventionSystem 1'
        - '-DisableIOAVProtection $true'
        - '-DisableIOAVProtection 1'
        - '-DisableRealtimeMonitoring $true'
        - '-DisableRealtimeMonitoring 1'
        - '-DisableRemovableDriveScanning $true'
        - '-DisableRemovableDriveScanning 1'
        - '-DisableScanningMappedNetworkDrivesForFullScan $true'
        - '-DisableScanningMappedNetworkDrivesForFullScan 1'
        - '-DisableScanningNetworkFiles $true'
        - '-DisableScanningNetworkFiles 1'
        - '-DisableScriptScanning $true'
        - '-DisableScriptScanning 1'
        - '-MAPSReporting $false'
        - '-MAPSReporting 0'
        - '-drdsc $true'
        - '-drdsc 1'
        - '-drtm $true'
        - '-drtm 1'
        - '-dscrptsc $true'
        - '-dscrptsc 1'
        - '-dsmndf $true'
        - '-dsmndf 1'
        - '-dsnf $true'
        - '-dsnf 1'
        - '-dss $true'
        - '-dss 1'

Stage 3: selection_other_default_actions_allow

selection_other_default_actions_allow:
    ScriptBlockText|contains: 'Set-MpPreference'

Stage 4: selection_other_default_actions_func

selection_other_default_actions_func:
    ScriptBlockText|contains:
        - 'HighThreatDefaultAction Allow'
        - 'htdefac Allow'
        - 'LowThreatDefaultAction Allow'
        - 'ltdefac Allow'
        - 'ModerateThreatDefaultAction Allow'
        - 'mtdefac Allow'
        - 'SevereThreatDefaultAction Allow'
        - 'stdefac Allow'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -DisableArchiveScanning $true
  • -DisableArchiveScanning 1
  • -DisableBehaviorMonitoring $true
  • -DisableBehaviorMonitoring 1
  • -DisableBlockAtFirstSeen $true
  • -DisableBlockAtFirstSeen 1
  • -DisableCatchupFullScan $true
  • -DisableCatchupFullScan 1
  • -DisableCatchupQuickScan $true
  • -DisableCatchupQuickScan 1
  • -DisableIOAVProtection $true
  • -DisableIOAVProtection 1
  • -DisableIntrusionPreventionSystem $true
  • -DisableIntrusionPreventionSystem 1
  • -DisableRealtimeMonitoring $true
  • -DisableRealtimeMonitoring 1
  • -DisableRemovableDriveScanning $true
  • -DisableRemovableDriveScanning 1
  • -DisableScanningMappedNetworkDrivesForFullScan $true
  • -DisableScanningMappedNetworkDrivesForFullScan 1
  • -DisableScanningNetworkFiles $true
  • -DisableScanningNetworkFiles 1
  • -DisableScriptScanning $true
  • -DisableScriptScanning 1
  • -MAPSReporting $false
  • -MAPSReporting 0
  • -dbaf $true
  • -dbaf 1
  • -dbm $true
  • -dbm 1
  • -dips $true
  • -dips 1
  • -drdsc $true
  • -drdsc 1
  • -drtm $true
  • -drtm 1
  • -dscrptsc $true
  • -dscrptsc 1
  • -dsmndf $true
  • -dsmndf 1
  • -dsnf $true
  • -dsnf 1
  • -dss $true
  • -dss 1
  • HighThreatDefaultAction Allow
  • LowThreatDefaultAction Allow
  • ModerateThreatDefaultAction Allow
  • Set-MpPreference corpus 3 (sigma 3)
  • SevereThreatDefaultAction Allow
  • htdefac Allow
  • ltdefac Allow
  • mtdefac Allow
  • stdefac Allow
field:"ScriptBlockText" kind:match

Uncommon Outbound Kerberos Connection

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

Detects uncommon outbound network activity via Kerberos default port indicating possible lateral movement or first stage PrivEsc via delegation.

Known False Positives

  • Web Browsers and third party application might generate similar activity. An initial baseline is required.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Uncommon Outbound Kerberos Connection
id: e54979bd-c5f9-4d6c-967b-a04b19ac4c74
related:
    - id: eca91c7c-9214-47b9-b4c5-cb1d7e4f2350
      type: similar
status: test
description: |
    Detects uncommon outbound network activity via Kerberos default port indicating possible lateral movement or first stage PrivEsc via delegation.
references:
    - https://github.com/GhostPack/Rubeus
author: Ilyas Ochkov, oscd.community
date: 2019-10-24
modified: 2024-03-15
tags:
    - attack.credential-access
    - attack.t1558
    - attack.lateral-movement
    - attack.t1550.003
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        DestinationPort: 88
        Initiated: 'true'
    filter_main_lsass:
        Image: 'C:\Windows\System32\lsass.exe'
    filter_optional_chrome:
        Image:
            - 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
            - 'C:\Program Files\Google\Chrome\Application\chrome.exe'
    filter_optional_firefox:
        Image:
            - 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'
            - 'C:\Program Files\Mozilla Firefox\firefox.exe'
    filter_optional_tomcat:
        Image|endswith: '\tomcat\bin\tomcat8.exe'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Web Browsers and third party application might generate similar activity. An initial baseline is required.
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:
    DestinationPort: 88
    Initiated: 'true'

Stage 2: not filter_main_lsass

filter_main_lsass:
    Image: 'C:\Windows\System32\lsass.exe'

Stage 3: not filter_optional_*

filter_optional_chrome:
    Image:
        - 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
        - 'C:\Program Files\Google\Chrome\Application\chrome.exe'
filter_optional_firefox:
    Image:
        - 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'
        - 'C:\Program Files\Mozilla Firefox\firefox.exe'
filter_optional_tomcat:
    Image|endswith: '\tomcat\bin\tomcat8.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
DestinationPorteq
  • 88 corpus 3 (sigma 2, splunk 1)
field:"DestinationPort" kind:eq value:"88"
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ImageeqC:\Windows\System32\lsass.exeexcludes:Image field:"Image" value:"C:\Windows\System32\lsass.exe"
Imageends_with\tomcat\bin\tomcat8.exeexcludes:Image field:"Image" value:"\tomcat\bin\tomcat8.exe"
ImageeqC:\Program Files (x86)\Google\Chrome\Application\chrome.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
ImageeqC:\Program Files (x86)\Mozilla Firefox\firefox.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
ImageeqC:\Program Files\Google\Chrome\Application\chrome.exeexcludes:Image field:"Image" value:"C:\Program Files\Google\Chrome\Application\chrome.exe"
ImageeqC:\Program Files\Mozilla Firefox\firefox.exeexcludes:Image field:"Image" value:"C:\Program Files\Mozilla Firefox\firefox.exe"

VsCode Powershell Profile Modification

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

Detects the creation or modification of a vscode related powershell profile which could indicate suspicious activity as the profile can be used as a mean of persistence

Known False Positives

  • Legitimate use of the profile by developers or administrators

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: VsCode Powershell Profile Modification
id: 3a9fa2ec-30bc-4ebd-b49e-7c9cff225502
related:
    - id: b5b78988-486d-4a80-b991-930eff3ff8bf
      type: similar
status: test
description: Detects the creation or modification of a vscode related powershell profile which could indicate suspicious activity as the profile can be used as a mean of persistence
references:
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.2
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-24
modified: 2023-01-06
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1546.013
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|endswith: '\Microsoft.VSCode_profile.ps1'
    condition: selection
falsepositives:
    - Legitimate use of the profile by developers or administrators
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|endswith: '\Microsoft.VSCode_profile.ps1'

Indicators

These rows show field, operator, and value matches.

Vulnerable Driver Load By Name

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

Detects the load of known vulnerable drivers via the file name of the drivers.

Known False Positives

  • False positives may occur if one of the vulnerable driver names mentioned above didn't change its name between versions. So always make sure that the driver being loaded is the legitimate one and the non vulnerable version.
  • If you experience a lot of FP you could comment the driver name or its exact known legitimate location (when possible)

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 6: Driver loaded

Rule Body

title: Vulnerable Driver Load By Name
id: 72cd00d6-490c-4650-86ff-1d11f491daa1
status: test
description: Detects the load of known vulnerable drivers via the file name of the drivers.
references:
    - https://loldrivers.io/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-03
modified: 2023-12-02
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1543.003
    - attack.t1068
logsource:
    product: windows
    category: driver_load
detection:
    selection:
        ImageLoaded|endswith:
            - '\panmonfltx64.sys'
            - '\dbutil.sys'
            - '\fairplaykd.sys'
            - '\nvaudio.sys'
            - '\superbmc.sys'
            - '\bsmi.sys'
            - '\smarteio64.sys'
            - '\bwrsh.sys'
            - '\agent64.sys'
            - '\asmmap64.sys'
            - '\dellbios.sys'
            - '\chaos-rootkit.sys'
            - '\wcpu.sys'
            - '\dh_kernel.sys'
            - '\sbiosio64.sys'
            - '\bw.sys'
            - '\asrdrv102.sys'
            - '\nt6.sys'
            - '\mhyprot3.sys'
            - '\winio64c.sys'
            - '\asupio64.sys'
            - '\blackbonedrv10.sys'
            - '\d.sys'
            - '\driver7-x86.sys'
            - '\sfdrvx32.sys'
            - '\enetechio64.sys'
            - '\gdrv.sys'
            - '\sysinfodetectorx64.sys'
            - '\fh-ethercat_dio.sys'
            - '\asromgdrv.sys'
            - '\my.sys'
            - '\dcprotect.sys'
            - '\irec.sys'
            - '\gedevdrv.sys'
            - '\winio32a.sys'
            - '\gvcidrv64.sys'
            - '\winio32.sys'
            - '\bs_hwmio64.sys'
            - '\nstr.sys'
            - '\inpoutx64.sys'
            - '\hw.sys'
            - '\winio64.sys'
            - '\hpportiox64.sys'
            - '\iobitunlocker.sys'
            - '\b1.sys'
            - '\aoddriver.sys'
            - '\elbycdio.sys'
            - '\protects.sys'
            - '\kprocesshacker.sys'
            - '\speedfan.sys'
            - '\radhwmgr.sys'
            - '\iscflashx64.sys'
            - '\black.sys'
            - '\b4.sys'
            - '\hwos2ec10x64.sys'
            - '\winflash64.sys'
            - '\corsairllaccess64.sys'
            - '\bs_i2cio.sys'
            - '\d3.sys'
            - '\windows-xp-64.sys'
            - '\aswvmm.sys'
            - '\bs_i2c64.sys'
            - '\1.sys'
            - '\nchgbios2x64.sys'
            - '\cpuz141.sys'
            - '\segwindrvx64.sys'
            - '\tdeio64.sys'
            - '\ntiolib.sys'
            - '\gtckmdfbs.sys'
            - '\iomap64.sys'
            - '\avalueio.sys'
            - '\semav6msr.sys'
            - '\lgdcatcher.sys'
            - '\b.sys'
            - '\hwdetectng.sys'
            - '\nt4.sys'
            - '\tgsafe.sys'
            - '\mydrivers.sys'
            - '\eneio64.sys'
            - '\procexp.sys'
            - '\viragt64.sys'
            - '\fpcie2com.sys'
            - '\lenovodiagnosticsdriver.sys'
            - '\cp2x72c.sys'
            - '\kerneld.amd64'
            - '\bs_def64.sys'
            - '\piddrv.sys'
            - '\amifldrv64.sys'
            - '\cpuz_x64.sys'
            - '\proxy32.sys'
            - '\wsdkd.sys'
            - '\t8.sys'
            - '\ucorew64.sys'
            - '\atszio.sys'
            - '\lmiinfo.sys'
            - '\80.sys'
            - '\nt3.sys'
            - '\ngiodriver.sys'
            - '\lv561av.sys'
            - '\gpcidrv64.sys'
            - '\fd3b7234419fafc9bdd533f48896ed73_b816c5cd.sys'
            - '\rtport.sys'
            - '\full.sys'
            - '\viragt.sys'
            - '\fiddrv64.sys'
            - '\cupfixerx64.sys'
            - '\cpupress.sys'
            - '\hwos2ec7x64.sys'
            - '\driver7-x86-withoutdbg.sys'
            - '\asrdrv10.sys'
            - '\nvflsh64.sys'
            - '\asrrapidstartdrv.sys'
            - '\tmcomm.sys'
            - '\wiseunlo.sys'
            - '\rwdrv.sys'
            - '\asio64.sys'
            - '\nvoclock.sys'
            - '\panio.sys'
            - '\mtcbsv64.sys'
            - '\amigendrv64.sys'
            - '\capcom.sys'
            - '\netflt.sys'
            - '\phlashnt.sys'
            - '\dbutil_2_3.sys'
            - '\ni.sys'
            - '\ntiolib_x64.sys'
            - '\atszio64.sys'
            - '\lgcoretemp.sys'
            - '\lha.sys'
            - '\phymem64.sys'
            - '\dbutildrv2.sys'
            - '\asrdrv103.sys'
            - '\rtcore64.sys'
            - '\bs_hwmio64_w10.sys'
            - '\ene.sys'
            - '\winio64b.sys'
            - '\piddrv64.sys'
            - '\directio32.sys'
            - '\monitor_win10_x64.sys'
            - '\nt5.sys'
            - '\asrsmartconnectdrv.sys'
            - '\rtif.sys'
            - '\atillk64.sys'
            - '\directio.sys'
            - '\asribdrv.sys'
            - '\kfeco11x64.sys'
            - '\citmdrv_ia64.sys'
            - '\sysdrv3s.sys'
            - '\amp.sys'
            - '\vboxdrv.sys'
            - '\adv64drv.sys'
            - '\hostnt.sys'
            - '\phymem_ext64.sys'
            - '\echo_driver.sys'
            - '\winiodrv.sys'
            - '\pdfwkrnl.sys'
            - '\glckio2.sys'
            - '\asrdrv106.sys'
            - '\nscm.sys'
            - '\bs_rcio64.sys'
            - '\ncpl.sys'
            - '\sandra.sys'
            - '\fiddrv.sys'
            - '\hwrwdrv.sys'
            - '\mhyprot.sys'
            - '\asrsetupdrv103.sys'
            - '\iqvw64.sys'
            - '\b3.sys'
            - '\ssport.sys'
            - '\bs_def.sys'
            - '\computerz.sys'
            - '\windows8-10-32.sys'
            - '\nstrwsk.sys'
            - '\lurker.sys'
            - '\bsmemx64.sys'
            - '\wyproxy64.sys'
            - '\asio.sys'
            - '\t3.sys'
            - '\cpuz.sys'
            - '\rtkio.sys'
            - '\driver7-x64.sys'
            - '\netfilterdrv.sys'
            - '\ioaccess.sys'
            - '\testbone.sys'
            - '\gameink.sys'
            - '\kevp64.sys'
            - '\mhyprot2.sys'
            - '\se64a.sys'
            - '\vboxusb.sys'
            - '\windows7-32.sys'
            - '\vproeventmonitor.sys'
            - '\winio64a.sys'
            - '\asrdrv101.sys'
            - '\netproxydriver.sys'
            - '\elrawdsk.sys'
            - '\zam64.sys'
            - '\cg6kwin2k.sys'
            - '\asupio.sys'
            - '\stdcdrvws64.sys'
            - '\81.sys'
            - '\citmdrv_amd64.sys'
            - '\amdryzenmasterdriver.sys'
            - '\vmdrv.sys'
            - '\sysinfo.sys'
            - '\alsysio64.sys'
            - '\directio64.sys'
            - '\rzpnk.sys'
            - '\amdpowerprofiler.sys'
            - '\truesight.sys'
            - '\wirwadrv.sys'
            - '\phymemx64.sys'
            - '\msio64.sys'
            - '\sepdrv3_1.sys'
            - '\gametersafe.sys'
            - '\bs_rcio.sys'
            - '\d4.sys'
            - '\t.sys'
            - '\eio.sys'
            - '\nt2.sys'
            - '\winring0.sys'
            - '\physmem.sys'
            - '\libnicm.sys'
            - '\msio32.sys'
            - '\asrautochkupddrv.sys'
            - '\asio32.sys'
            - '\etdsupp.sys'
            - '\smep_namco.sys'
            - '\bandai.sys'
            - '\d2.sys'
            - '\magdrvamd64.sys'
            - '\nvflash.sys'
            - '\goad.sys'
            - '\proxy64.sys'
            - '\amsdk.sys'
            - '\kbdcap64.sys'
            - '\vdbsv64.sys'
            - '\pchunter.sys'
            - '\sysconp.sys'
            - '\dh_kernel_10.sys'
            - '\msrhook.sys'
            - '\bedaisy.sys'
            - '\dcr.sys'
            - '\panmonflt.sys'
            - '\bsmixp64.sys'
            - '\otipcibus.sys'
            - '\fidpcidrv.sys'
            - '\kfeco10x64.sys'
            - '\asrdrv104.sys'
            - '\c.sys'
            - '\tdklib64.sys'
            - '\bsmix64.sys'
            - '\bs_flash64.sys'
            - '\stdcdrv64.sys'
            - '\naldrv.sys'
            - '\ctiio64.sys'
            - '\bwrs.sys'
            - '\nicm.sys'
            - '\winio32b.sys'
            - '\paniox64.sys'
            - '\ecsiodriverx64.sys'
            - '\iomem64.sys'
            - '\fidpcidrv64.sys'
            - '\aswarpot.sys'
            - '\bs_rciow1064.sys'
            - '\asmio64.sys'
            - '\openlibsys.sys'
            - '\viraglt64.sys'
            - '\dbk64.sys'
            - '\t7.sys'
            - '\atlaccess.sys'
            - '\nbiolib_x64.sys'
            - '\smep_capcom.sys'
            - '\iqvw64e.sys'
    condition: selection
falsepositives:
    - False positives may occur if one of the vulnerable driver names mentioned above didn't change its name between versions. So always make sure that the driver being loaded is the legitimate one and the non vulnerable version.
    - If you experience a lot of FP you could comment the driver name or its exact known legitimate location (when possible)
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ImageLoaded|endswith:
        - '\panmonfltx64.sys'
        - '\dbutil.sys'
        - '\fairplaykd.sys'
        - '\nvaudio.sys'
        - '\superbmc.sys'
        - '\bsmi.sys'
        - '\smarteio64.sys'
        - '\bwrsh.sys'
        - '\agent64.sys'
        - '\asmmap64.sys'
        - '\dellbios.sys'
        - '\chaos-rootkit.sys'
        - '\wcpu.sys'
        - '\dh_kernel.sys'
        - '\sbiosio64.sys'
        - '\bw.sys'
        - '\asrdrv102.sys'
        - '\nt6.sys'
        - '\mhyprot3.sys'
        - '\winio64c.sys'
        - '\asupio64.sys'
        - '\blackbonedrv10.sys'
        - '\d.sys'
        - '\driver7-x86.sys'
        - '\sfdrvx32.sys'
        - '\enetechio64.sys'
        - '\gdrv.sys'
        - '\sysinfodetectorx64.sys'
        - '\fh-ethercat_dio.sys'
        - '\asromgdrv.sys'
        - '\my.sys'
        - '\dcprotect.sys'
        - '\irec.sys'
        - '\gedevdrv.sys'
        - '\winio32a.sys'
        - '\gvcidrv64.sys'
        - '\winio32.sys'
        - '\bs_hwmio64.sys'
        - '\nstr.sys'
        - '\inpoutx64.sys'
        - '\hw.sys'
        - '\winio64.sys'
        - '\hpportiox64.sys'
        - '\iobitunlocker.sys'
        - '\b1.sys'
        - '\aoddriver.sys'
        - '\elbycdio.sys'
        - '\protects.sys'
        - '\kprocesshacker.sys'
        - '\speedfan.sys'
        - '\radhwmgr.sys'
        - '\iscflashx64.sys'
        - '\black.sys'
        - '\b4.sys'
        - '\hwos2ec10x64.sys'
        - '\winflash64.sys'
        - '\corsairllaccess64.sys'
        - '\bs_i2cio.sys'
        - '\d3.sys'
        - '\windows-xp-64.sys'
        - '\aswvmm.sys'
        - '\bs_i2c64.sys'
        - '\1.sys'
        - '\nchgbios2x64.sys'
        - '\cpuz141.sys'
        - '\segwindrvx64.sys'
        - '\tdeio64.sys'
        - '\ntiolib.sys'
        - '\gtckmdfbs.sys'
        - '\iomap64.sys'
        - '\avalueio.sys'
        - '\semav6msr.sys'
        - '\lgdcatcher.sys'
        - '\b.sys'
        - '\hwdetectng.sys'
        - '\nt4.sys'
        - '\tgsafe.sys'
        - '\mydrivers.sys'
        - '\eneio64.sys'
        - '\procexp.sys'
        - '\viragt64.sys'
        - '\fpcie2com.sys'
        - '\lenovodiagnosticsdriver.sys'
        - '\cp2x72c.sys'
        - '\kerneld.amd64'
        - '\bs_def64.sys'
        - '\piddrv.sys'
        - '\amifldrv64.sys'
        - '\cpuz_x64.sys'
        - '\proxy32.sys'
        - '\wsdkd.sys'
        - '\t8.sys'
        - '\ucorew64.sys'
        - '\atszio.sys'
        - '\lmiinfo.sys'
        - '\80.sys'
        - '\nt3.sys'
        - '\ngiodriver.sys'
        - '\lv561av.sys'
        - '\gpcidrv64.sys'
        - '\fd3b7234419fafc9bdd533f48896ed73_b816c5cd.sys'
        - '\rtport.sys'
        - '\full.sys'
        - '\viragt.sys'
        - '\fiddrv64.sys'
        - '\cupfixerx64.sys'
        - '\cpupress.sys'
        - '\hwos2ec7x64.sys'
        - '\driver7-x86-withoutdbg.sys'
        - '\asrdrv10.sys'
        - '\nvflsh64.sys'
        - '\asrrapidstartdrv.sys'
        - '\tmcomm.sys'
        - '\wiseunlo.sys'
        - '\rwdrv.sys'
        - '\asio64.sys'
        - '\nvoclock.sys'
        - '\panio.sys'
        - '\mtcbsv64.sys'
        - '\amigendrv64.sys'
        - '\capcom.sys'
        - '\netflt.sys'
        - '\phlashnt.sys'
        - '\dbutil_2_3.sys'
        - '\ni.sys'
        - '\ntiolib_x64.sys'
        - '\atszio64.sys'
        - '\lgcoretemp.sys'
        - '\lha.sys'
        - '\phymem64.sys'
        - '\dbutildrv2.sys'
        - '\asrdrv103.sys'
        - '\rtcore64.sys'
        - '\bs_hwmio64_w10.sys'
        - '\ene.sys'
        - '\winio64b.sys'
        - '\piddrv64.sys'
        - '\directio32.sys'
        - '\monitor_win10_x64.sys'
        - '\nt5.sys'
        - '\asrsmartconnectdrv.sys'
        - '\rtif.sys'
        - '\atillk64.sys'
        - '\directio.sys'
        - '\asribdrv.sys'
        - '\kfeco11x64.sys'
        - '\citmdrv_ia64.sys'
        - '\sysdrv3s.sys'
        - '\amp.sys'
        - '\vboxdrv.sys'
        - '\adv64drv.sys'
        - '\hostnt.sys'
        - '\phymem_ext64.sys'
        - '\echo_driver.sys'
        - '\winiodrv.sys'
        - '\pdfwkrnl.sys'
        - '\glckio2.sys'
        - '\asrdrv106.sys'
        - '\nscm.sys'
        - '\bs_rcio64.sys'
        - '\ncpl.sys'
        - '\sandra.sys'
        - '\fiddrv.sys'
        - '\hwrwdrv.sys'
        - '\mhyprot.sys'
        - '\asrsetupdrv103.sys'
        - '\iqvw64.sys'
        - '\b3.sys'
        - '\ssport.sys'
        - '\bs_def.sys'
        - '\computerz.sys'
        - '\windows8-10-32.sys'
        - '\nstrwsk.sys'
        - '\lurker.sys'
        - '\bsmemx64.sys'
        - '\wyproxy64.sys'
        - '\asio.sys'
        - '\t3.sys'
        - '\cpuz.sys'
        - '\rtkio.sys'
        - '\driver7-x64.sys'
        - '\netfilterdrv.sys'
        - '\ioaccess.sys'
        - '\testbone.sys'
        - '\gameink.sys'
        - '\kevp64.sys'
        - '\mhyprot2.sys'
        - '\se64a.sys'
        - '\vboxusb.sys'
        - '\windows7-32.sys'
        - '\vproeventmonitor.sys'
        - '\winio64a.sys'
        - '\asrdrv101.sys'
        - '\netproxydriver.sys'
        - '\elrawdsk.sys'
        - '\zam64.sys'
        - '\cg6kwin2k.sys'
        - '\asupio.sys'
        - '\stdcdrvws64.sys'
        - '\81.sys'
        - '\citmdrv_amd64.sys'
        - '\amdryzenmasterdriver.sys'
        - '\vmdrv.sys'
        - '\sysinfo.sys'
        - '\alsysio64.sys'
        - '\directio64.sys'
        - '\rzpnk.sys'
        - '\amdpowerprofiler.sys'
        - '\truesight.sys'
        - '\wirwadrv.sys'
        - '\phymemx64.sys'
        - '\msio64.sys'
        - '\sepdrv3_1.sys'
        - '\gametersafe.sys'
        - '\bs_rcio.sys'
        - '\d4.sys'
        - '\t.sys'
        - '\eio.sys'
        - '\nt2.sys'
        - '\winring0.sys'
        - '\physmem.sys'
        - '\libnicm.sys'
        - '\msio32.sys'
        - '\asrautochkupddrv.sys'
        - '\asio32.sys'
        - '\etdsupp.sys'
        - '\smep_namco.sys'
        - '\bandai.sys'
        - '\d2.sys'
        - '\magdrvamd64.sys'
        - '\nvflash.sys'
        - '\goad.sys'
        - '\proxy64.sys'
        - '\amsdk.sys'
        - '\kbdcap64.sys'
        - '\vdbsv64.sys'
        - '\pchunter.sys'
        - '\sysconp.sys'
        - '\dh_kernel_10.sys'
        - '\msrhook.sys'
        - '\bedaisy.sys'
        - '\dcr.sys'
        - '\panmonflt.sys'
        - '\bsmixp64.sys'
        - '\otipcibus.sys'
        - '\fidpcidrv.sys'
        - '\kfeco10x64.sys'
        - '\asrdrv104.sys'
        - '\c.sys'
        - '\tdklib64.sys'
        - '\bsmix64.sys'
        - '\bs_flash64.sys'
        - '\stdcdrv64.sys'
        - '\naldrv.sys'
        - '\ctiio64.sys'
        - '\bwrs.sys'
        - '\nicm.sys'
        - '\winio32b.sys'
        - '\paniox64.sys'
        - '\ecsiodriverx64.sys'
        - '\iomem64.sys'
        - '\fidpcidrv64.sys'
        - '\aswarpot.sys'
        - '\bs_rciow1064.sys'
        - '\asmio64.sys'
        - '\openlibsys.sys'
        - '\viraglt64.sys'
        - '\dbk64.sys'
        - '\t7.sys'
        - '\atlaccess.sys'
        - '\nbiolib_x64.sys'
        - '\smep_capcom.sys'
        - '\iqvw64e.sys'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ImageLoadedends_with
  • \1.sys
  • \80.sys
  • \81.sys
  • \adv64drv.sys
  • \agent64.sys
  • \alsysio64.sys
  • \amdpowerprofiler.sys
  • \amdryzenmasterdriver.sys
  • \amifldrv64.sys
  • \amigendrv64.sys
  • \amp.sys
  • \amsdk.sys
  • \aoddriver.sys
  • \asio.sys
  • \asio32.sys
  • \asio64.sys
  • \asmio64.sys
  • \asmmap64.sys
  • \asrautochkupddrv.sys
  • \asrdrv10.sys
  • \asrdrv101.sys
  • \asrdrv102.sys
  • \asrdrv103.sys
  • \asrdrv104.sys
  • \asrdrv106.sys
  • \asribdrv.sys
  • \asromgdrv.sys
  • \asrrapidstartdrv.sys
  • \asrsetupdrv103.sys
  • \asrsmartconnectdrv.sys
  • \asupio.sys
  • \asupio64.sys
  • \aswarpot.sys
  • \aswvmm.sys
  • \atillk64.sys
  • \atlaccess.sys
  • \atszio.sys
  • \atszio64.sys
  • \avalueio.sys
  • \b.sys
  • +233 more values (see full rule source)
field:"ImageLoaded" kind:ends_with

Webshell Tool Reconnaissance Activity

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

Detects processes spawned from web servers (PHP, Tomcat, IIS, etc.) that perform reconnaissance looking for the existence of popular scripting tools (perl, python, wget) on the system via the help commands

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Webshell Tool Reconnaissance Activity
id: f64e5c19-879c-4bae-b471-6d84c8339677
status: test
description: |
    Detects processes spawned from web servers (PHP, Tomcat, IIS, etc.) that perform reconnaissance looking for the existence of popular scripting tools (perl, python, wget) on the system via the help commands
references:
    - https://ragged-lab.blogspot.com/2020/07/webshells-automating-reconnaissance.html
author: Cian Heasley, Florian Roth (Nextron Systems)
date: 2020-07-22
modified: 2023-11-09
tags:
    - attack.persistence
    - attack.t1505.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_webserver_image:
        ParentImage|endswith:
            - '\caddy.exe'
            - '\httpd.exe'
            - '\nginx.exe'
            - '\php-cgi.exe'
            - '\w3wp.exe'
            - '\ws_tomcatservice.exe'
    selection_webserver_characteristics_tomcat1:
        ParentImage|endswith:
            - '\java.exe'
            - '\javaw.exe'
        ParentImage|contains:
            - '-tomcat-'
            - '\tomcat'
    selection_webserver_characteristics_tomcat2:
        ParentImage|endswith:
            - '\java.exe'
            - '\javaw.exe'
        CommandLine|contains:
            - 'CATALINA_HOME'
            - 'catalina.jar'
    selection_recon:
        CommandLine|contains:
            - 'perl --help'
            - 'perl -h'
            - 'python --help'
            - 'python -h'
            - 'python3 --help'
            - 'python3 -h'
            - 'wget --help'
    condition: 1 of selection_webserver_* and selection_recon
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_webserver_* and selection_recon

Stage 1: selection_webserver_image

selection_webserver_image:
    ParentImage|endswith:
        - '\caddy.exe'
        - '\httpd.exe'
        - '\nginx.exe'
        - '\php-cgi.exe'
        - '\w3wp.exe'
        - '\ws_tomcatservice.exe'

Stage 2: selection_webserver_characteristics_tomcat1

selection_webserver_characteristics_tomcat1:
    ParentImage|endswith:
        - '\java.exe'
        - '\javaw.exe'
    ParentImage|contains:
        - '-tomcat-'
        - '\tomcat'

Stage 3: selection_webserver_characteristics_tomcat2

selection_webserver_characteristics_tomcat2:
    ParentImage|endswith:
        - '\java.exe'
        - '\javaw.exe'
    CommandLine|contains:
        - 'CATALINA_HOME'
        - 'catalina.jar'

Stage 4: selection_recon

selection_recon:
    CommandLine|contains:
        - 'perl --help'
        - 'perl -h'
        - 'python --help'
        - 'python -h'
        - 'python3 --help'
        - 'python3 -h'
        - 'wget --help'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • CATALINA_HOME corpus 3 (sigma 3)
  • catalina.jar corpus 3 (sigma 3)
  • perl --help
  • perl -h
  • python --help
  • python -h
  • python3 --help
  • python3 -h
  • wget --help
field:"CommandLine" kind:match
ParentImageends_with
  • \caddy.exe corpus 4 (sigma 4)
  • \httpd.exe corpus 6 (sigma 6)
  • \java.exe corpus 8 (sigma 8)
  • \javaw.exe corpus 7 (sigma 7)
  • \nginx.exe corpus 6 (sigma 6)
  • \php-cgi.exe corpus 6 (sigma 6)
  • \w3wp.exe corpus 12 (sigma 12)
  • \ws_tomcatservice.exe corpus 6 (sigma 6)
field:"ParentImage" kind:ends_with
ParentImagematch
  • -tomcat- corpus 4 (sigma 4)
  • \tomcat corpus 6 (sigma 6)
field:"ParentImage" kind:match

Windows Shell/Scripting Application File Write to Suspicious Folder

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

Detects Windows shells and scripting applications that write files to suspicious folders

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Windows Shell/Scripting Application File Write to Suspicious Folder
id: 1277f594-a7d1-4f28-a2d3-73af5cbeab43
status: test
description: Detects Windows shells and scripting applications that write files to suspicious folders
references:
    - Internal Research
author: Florian Roth (Nextron Systems)
date: 2021-11-20
modified: 2023-03-29
tags:
    - attack.execution
    - attack.t1059
logsource:
    category: file_event
    product: windows
detection:
    selection_1:
        Image|endswith:
            - '\bash.exe'
            - '\cmd.exe'
            - '\cscript.exe'
            - '\msbuild.exe'  # https://github.com/elastic/detection-rules/blob/c76a39796972ecde44cb1da6df47f1b6562c9770/rules/windows/defense_evasion_execution_msbuild_started_by_office_app.toml
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\sh.exe'
            - '\wscript.exe'
        TargetFilename|startswith:
            - 'C:\PerfLogs\'
            - 'C:\Users\Public\'
    selection_2:
        Image|endswith:
            - '\certutil.exe'
            - '\forfiles.exe'
            - '\mshta.exe'
            # - '\rundll32.exe' # Potential FP
            - '\schtasks.exe'
            - '\scriptrunner.exe'
            - '\wmic.exe'  # https://app.any.run/tasks/c903e9c8-0350-440c-8688-3881b556b8e0/
        TargetFilename|contains:
            - 'C:\PerfLogs\'
            - 'C:\Users\Public\'
            - 'C:\Windows\Temp\'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/file/file_event/file_event_win_shell_write_susp_directory/info.yml

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_1

selection_1:
    Image|endswith:
        - '\bash.exe'
        - '\cmd.exe'
        - '\cscript.exe'
        - '\msbuild.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\sh.exe'
        - '\wscript.exe'
    TargetFilename|startswith:
        - 'C:\PerfLogs\'
        - 'C:\Users\Public\'

Stage 2: selection_2

selection_2:
    Image|endswith:
        - '\certutil.exe'
        - '\forfiles.exe'
        - '\mshta.exe'
        - '\schtasks.exe'
        - '\scriptrunner.exe'
        - '\wmic.exe'
    TargetFilename|contains:
        - 'C:\PerfLogs\'
        - 'C:\Users\Public\'
        - 'C:\Windows\Temp\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \bash.exe corpus 21 (sigma 21)
  • \certutil.exe corpus 43 (sigma 43)
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \cscript.exe corpus 72 (sigma 72)
  • \forfiles.exe corpus 11 (sigma 11)
  • \msbuild.exe corpus 9 (sigma 9)
  • \mshta.exe corpus 67 (sigma 66, splunk 1)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
  • \schtasks.exe corpus 55 (sigma 55)
  • \scriptrunner.exe corpus 12 (sigma 12)
  • \sh.exe corpus 16 (sigma 16)
  • \wmic.exe corpus 62 (sigma 62)
  • \wscript.exe corpus 74 (sigma 74)
field:"Image" kind:ends_with
TargetFilenamematch
  • C:\PerfLogs\ corpus 2 (sigma 2)
  • C:\Users\Public\ corpus 2 (sigma 2)
  • C:\Windows\Temp\
field:"TargetFilename" kind:match
TargetFilenamestarts_with
  • C:\PerfLogs\ corpus 2 (sigma 2)
  • C:\Users\Public\
field:"TargetFilename" kind:starts_with

Back to all Sigma rules