Detection rules › Sigma

Sigma rules: 1x

Active Directory Forest PowerShell class called from a non administrative host

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

Detects scenarios where an attacker attempts to call the Active Directory Forest PowerShell class on a non administrative host in order to enumerate trusts, forests, domains, sites and subnet information.

Known False Positives

  • Adminitrative host, jump host, domain controllers, Exchange servers, application interacting with Active Directory modules

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

Rule Body

title: Active Directory Forest PowerShell class called from a non administrative host
description: Detects scenarios where an attacker attempts to call the Active Directory Forest PowerShell class on a non administrative host in order to enumerate trusts, forests, domains, sites and subnet information.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1087-Account%20discovery
- https://podalirius.net/en/articles/active-directory-sites-and-subnets-enumeration/
- https://adsecurity.org/?p=192
- https://github.com/PyroTek3/PowerShell-AD-Recon/blob/master/Get-PSADForestInfo
- https://hochwald.net/powershell-retrieve-information-an-active-directory-forest/
tags:
- attack.discovery
- attack.t1482
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category:
    - ps_module
    - ps_classic_script
    - ps_script
detection:
  selection_powershell_native:
    EventID: 800
    EventData|contains: System.DirectoryServices.ActiveDirectory

  selection_powershell_modern:
    EventID: 4103
    Payload|contains: System.DirectoryServices.ActiveDirectory

  selection_powershell_block:
    EventID: 4104
    ScriptBlockText|contains: System.DirectoryServices.ActiveDirectory

  filter:
    - Computer: '%admin_workstation%'
    - Computer: '%domain_controllers%'

  condition: 1 of selection* and not filter
falsepositives:
- Adminitrative host, jump host, domain controllers, Exchange servers, application interacting with Active Directory modules
level: medium

Stages and Predicates

Stage 0: condition

1 of selection* and not filter

Stage 1: selection_powershell_native

selection_powershell_native:
  EventID: 800
  EventData|contains: System.DirectoryServices.ActiveDirectory

Stage 2: selection_powershell_modern

selection_powershell_modern:
  EventID: 4103
  Payload|contains: System.DirectoryServices.ActiveDirectory

Stage 3: selection_powershell_block

selection_powershell_block:
  EventID: 4104
  ScriptBlockText|contains: System.DirectoryServices.ActiveDirectory

Stage 4: not filter

filter:
  - Computer: '%admin_workstation%'
  - Computer: '%domain_controllers%'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

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

AD Privileged Users or Groups Reconnaissance

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

Detect priv users or groups recon based on 4661 eventid and known privileged users or groups SIDs

Known False Positives

  • If source account name is not an admin then its super suspicious

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: AD Privileged Users or Groups Reconnaissance
id: 35ba1d85-724d-42a3-889f-2e2362bcaf23
status: test
description: Detect priv users or groups recon based on 4661 eventid and known privileged users or groups SIDs
references:
    - https://web.archive.org/web/20230329163438/https://blog.menasec.net/2019/02/threat-hunting-5-detecting-enumeration.html
author: Samir Bousseaden
date: 2019-04-03
modified: 2022-07-13
tags:
    - attack.discovery
    - attack.t1087.002
logsource:
    product: windows
    service: security
    definition: 'Requirements: enable Object Access SAM on your Domain Controllers'
detection:
    selection:
        EventID: 4661
        ObjectType:
            - 'SAM_USER'
            - 'SAM_GROUP'
    selection_object:
        - ObjectName|endswith:
              - '-512'
              - '-502'
              - '-500'
              - '-505'
              - '-519'
              - '-520'
              - '-544'
              - '-551'
              - '-555'
        - ObjectName|contains: 'admin'
    filter:
        SubjectUserName|endswith: '$'
    condition: selection and selection_object and not filter
falsepositives:
    - If source account name is not an admin then its super suspicious
level: high

Stages and Predicates

Stage 0: condition

selection and selection_object and not filter

Stage 1: selection

selection:
    EventID: 4661
    ObjectType:
        - 'SAM_USER'
        - 'SAM_GROUP'

Stage 2: selection_object

selection_object:
    - ObjectName|endswith:
          - '-512'
          - '-502'
          - '-500'
          - '-505'
          - '-519'
          - '-520'
          - '-544'
          - '-551'
          - '-555'
    - ObjectName|contains: 'admin'

Stage 3: not filter

filter:
    SubjectUserName|endswith: '$'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ObjectNameends_with
  • -500 corpus 3 (sigma 3)
  • -502
  • -505
  • -512 corpus 3 (sigma 3)
  • -519
  • -520
  • -544
  • -551
  • -555
field:"ObjectName" kind:ends_with
ObjectNamematch
  • admin
field:"ObjectName" kind:match value:"admin"
ObjectTypeeq
  • SAM_GROUP corpus 4 (sigma 4)
  • SAM_USER corpus 5 (sigma 5)
field:"ObjectType" kind:eq

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
SubjectUserNameends_with$excludes:SubjectUserName field:"SubjectUserName" value:"$"

Bitbucket User Details Export Attempt Detected

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

Detects user data export activity.

Known False Positives

  • Legitimate user activity.

MITRE ATT&CK Coverage

Rule Body

title: Bitbucket User Details Export Attempt Detected
id: 5259cbf2-0a75-48bf-b57a-c54d6fabaef3
status: test
description: Detects user data export activity.
references:
    - https://confluence.atlassian.com/bitbucketserver/audit-log-events-776640423.html
    - https://support.atlassian.com/security-and-access-policies/docs/export-user-accounts
author: Muhammad Faisal (@faisalusuf)
date: 2024-02-25
tags:
    - attack.collection
    - attack.reconnaissance
    - attack.discovery
    - attack.t1213
    - attack.t1082
    - attack.t1591.004
logsource:
    product: bitbucket
    service: audit
    definition: 'Requirements: "Advance" log level is required to receive these audit events.'
detection:
    selection:
        auditType.category: 'Users and groups'
        auditType.action:
            - 'User permissions export failed'
            - 'User permissions export started'
            - 'User permissions exported'
    condition: selection
falsepositives:
    - Legitimate user activity.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    auditType.category: 'Users and groups'
    auditType.action:
        - 'User permissions export failed'
        - 'User permissions export started'
        - 'User permissions exported'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
auditType.actioneq
  • User permissions export failed
  • User permissions export started
  • User permissions exported
field:"auditType.action" kind:eq
auditType.categoryeq
  • Users and groups
field:"auditType.category" kind:eq value:"Users and groups"

Cisco Dot1x Disabled

#
Status
experimental
Severity
medium
Author
Luc Génaux
Source
github.com/SigmaHQ/sigma

Detects the manual disablement of IEEE 802.1X (dot1x) on a Cisco network device interface. Disabling dot1x bypasses Network Access Control (NAC) mechanisms, potentially allowing unauthorized devices to gain access to the internal network. This activity is a common technique used by attackers or malicious insiders to establish persistence or perform lateral movement via rogue devices.

Known False Positives

  • Administrator troubleshooting connectivity issues

MITRE ATT&CK Coverage

Rule Body

title: Cisco Dot1x Disabled
id: ef0ff092-a24a-4fbc-beea-06c08d53e085
status: experimental
description: |
    Detects the manual disablement of IEEE 802.1X (dot1x) on a Cisco network device interface.
    Disabling dot1x bypasses Network Access Control (NAC) mechanisms, potentially allowing unauthorized devices to gain access to the internal network.
    This activity is a common technique used by attackers or malicious insiders to establish persistence or perform lateral movement via rogue devices.
references:
    - https://www.cisco.com/en/US/docs/ios-xml/ios/san/command/san-xe-3se-3850-cr-book_chapter_00.html#wp3394428680 # Modern IOS-XE
    - https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/security/a1/sec-a1-xe-3se-3850-cr-book/sec-a1-xe-3se-3850-cr-book_chapter_010.html#wp3502072400 # Older IOS
    - https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960/software/release/12-2_53_se/command/reference/2960ComRef/cli1.html#47220 # Legacy
author: Luc Génaux
date: 2026-04-28
tags:
    - attack.persistence
    - attack.credential-access
    - attack.defense-impairment
    - attack.t1685
    - attack.t1556.004
logsource:
    product: cisco
    service: aaa
detection:
    keywords:
        # xxx port-control force-authorized : disables 802.1X authentication and causes the port to change to the authorized state without any authentication exchange required
        # no xxx port-control : causes the port to fallback to the default setting which is "force-authorized", thereby disabling 802.1X
        - 'access-session port-control force-authorized' # Modern IOS-XE
        - 'authentication port-control force-authorized' # Older IOS
        - 'dot1x port-control force-authorized' # Legacy
        - 'no access-session port-control' # Modern IOS-XE
        - 'no authentication port-control' # Older IOS
        - 'no dot1x port-control' # Legacy
        - 'no dot1x system-auth-control' # disables 802.1X globally
    condition: keywords
falsepositives:
    - Administrator troubleshooting connectivity issues
level: medium
# regression_tests_path: regression_data/rules/cisco/aaa/cisco_cli_dot1x_disabled/info.yml

Stages and Predicates

Stage 0: condition

keywords

Stage 1: keywords

keywords:
    - 'access-session port-control force-authorized'
    - 'authentication port-control force-authorized'
    - 'dot1x port-control force-authorized'
    - 'no access-session port-control'
    - 'no authentication port-control'
    - 'no dot1x port-control'
    - 'no dot1x system-auth-control'

CSExec Service File Creation

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

Detects default CSExec service filename which indicates CSExec service installation and execution

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: CSExec Service File Creation
id: f0e2b768-5220-47dd-b891-d57b96fc0ec1
status: test
description: Detects default CSExec service filename which indicates CSExec service installation and execution
references:
    - https://github.com/malcomvetter/CSExec
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-04
tags:
    - attack.execution
    - attack.t1569.002
    - attack.s0029
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|endswith: '\csexecsvc.exe'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|endswith: '\csexecsvc.exe'

Indicators

These rows show field, operator, and value matches.

Dumping of Sensitive Hives Via Reg.EXE

#
Status
test
Severity
high
Author
Teymur Kheirkhabarov, Endgame, JHasenbusch, Daniil Yugoslavskiy, oscd.community, frack113
Source
github.com/SigmaHQ/sigma

Detects the usage of "reg.exe" in order to dump sensitive registry hives. This includes SAM, SYSTEM and SECURITY hives.

Known False Positives

  • Dumping hives for legitimate purpouse i.e. backup or forensic investigation

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Dumping of Sensitive Hives Via Reg.EXE
id: fd877b94-9bb5-4191-bb25-d79cbd93c167
related:
    - id: 038cd51c-3ad8-41c5-ba8f-5d1c92f3cc1e
      type: obsolete
    - id: 4d6c9da1-318b-4edf-bcea-b6c93fa98fd0
      type: obsolete
status: test
description: Detects the usage of "reg.exe" in order to dump sensitive registry hives. This includes SAM, SYSTEM and SECURITY hives.
references:
    - https://www.slideshare.net/heirhabarov/hunting-for-credentials-dumping-in-windows-environment
    - https://eqllib.readthedocs.io/en/latest/analytics/aed95fc6-5e3f-49dc-8b35-06508613f979.html
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1003/T1003.md
    - https://www.wietzebeukema.nl/blog/windows-command-line-obfuscation
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1003.002/T1003.002.md#atomic-test-1---registry-dump-of-sam-creds-and-secrets
author: Teymur Kheirkhabarov, Endgame, JHasenbusch, Daniil Yugoslavskiy, oscd.community, frack113
date: 2019-10-22
modified: 2023-12-13
tags:
    - attack.credential-access
    - attack.t1003.002
    - attack.t1003.004
    - attack.t1003.005
    - car.2013-07-001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\reg.exe'
        - OriginalFileName: 'reg.exe'
    selection_cli_flag:
        CommandLine|contains:
            - ' save '
            - ' export '
            - ' ˢave '
            - ' eˣport '
    selection_cli_hklm:
        CommandLine|contains:
            - 'hklm'
            - 'hk˪m'
            - 'hkey_local_machine'
            - 'hkey_˪ocal_machine'
            - 'hkey_loca˪_machine'
            - 'hkey_˪oca˪_machine'
    selection_cli_hive:
        CommandLine|contains:
            - '\system'
            - '\sam'
            - '\security'
            - '\ˢystem'
            - '\syˢtem'
            - '\ˢyˢtem'
            - '\ˢam'
            - '\ˢecurity'
    condition: all of selection_*
falsepositives:
    - Dumping hives for legitimate purpouse i.e. backup or forensic investigation
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_reg_dumping_sensitive_hives/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli_flag

selection_cli_flag:
    CommandLine|contains:
        - ' save '
        - ' export '
        - ' ˢave '
        - ' eˣport '

Stage 3: selection_cli_hklm

selection_cli_hklm:
    CommandLine|contains:
        - 'hklm'
        - 'hk˪m'
        - 'hkey_local_machine'
        - 'hkey_˪ocal_machine'
        - 'hkey_loca˪_machine'
        - 'hkey_˪oca˪_machine'

Stage 4: selection_cli_hive

selection_cli_hive:
    CommandLine|contains:
        - '\system'
        - '\sam'
        - '\security'
        - '\ˢystem'
        - '\syˢtem'
        - '\ˢyˢtem'
        - '\ˢam'
        - '\ˢecurity'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • export corpus 3 (sigma 3)
  • eˣport
  • save
  • ˢave
  • \sam corpus 2 (sigma 1, elastic 1)
  • \security
  • \system
  • \syˢtem
  • \ˢam
  • \ˢecurity
  • \ˢystem
  • \ˢyˢtem
  • hkey_local_machine corpus 2 (sigma 2)
  • hkey_loca˪_machine
  • hkey_˪ocal_machine
  • hkey_˪oca˪_machine
  • hklm corpus 3 (sigma 3)
  • hk˪m
field:"CommandLine" kind:match
Imageends_with
  • \reg.exe corpus 58 (sigma 58)
field:"Image" kind:ends_with value:"\reg.exe"
OriginalFileNameeq
  • reg.exe corpus 41 (sigma 32, splunk 8, elastic 1)
field:"OriginalFileName" kind:eq value:"reg.exe"

ETW Logging Disabled For SCM

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

Detects changes to the "TracingDisabled" key in order to disable ETW logging for services.exe (SCM)

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: ETW Logging Disabled For SCM
id: 4f281b83-0200-4b34-bf35-d24687ea57c2
status: test
description: Detects changes to the "TracingDisabled" key in order to disable ETW logging for services.exe (SCM)
references:
    - http://redplait.blogspot.com/2020/07/whats-wrong-with-etw.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-12-09
modified: 2023-08-17
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
    - attack.t1685
logsource:
    product: windows
    category: registry_set
detection:
    selection:
        TargetObject|endswith: 'Software\Microsoft\Windows NT\CurrentVersion\Tracing\SCM\Regular\TracingDisabled'
        Details: 'DWORD (0x00000001)' # Funny (sad) enough, this value is by default 1.
    condition: selection
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith: 'Software\Microsoft\Windows NT\CurrentVersion\Tracing\SCM\Regular\TracingDisabled'
    Details: 'DWORD (0x00000001)'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailseq
  • DWORD (0x00000001) corpus 36 (sigma 36)
field:"Details" kind:eq value:"DWORD (0x00000001)"
TargetObjectends_with
  • Software\Microsoft\Windows NT\CurrentVersion\Tracing\SCM\Regular\TracingDisabled
field:"TargetObject" kind:ends_with value:"Software\Microsoft\Windows NT\CurrentVersion\Tracing\SCM\Regular\TracingDisabled"

File Creation Related To RAT Clients

#
Status
experimental
Severity
high
Author
Joseliyo Sanchez, @Joseliyo_Jstnk
Source
github.com/SigmaHQ/sigma

File .conf created related to VenomRAT, AsyncRAT and Lummac samples observed in the wild.

Known False Positives

  • Legitimate software creating a file with the same name

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: File Creation Related To RAT Clients
id: 2f3039c8-e8fe-43a9-b5cf-dcd424a2522d
status: experimental
description: |
    File .conf created related to VenomRAT, AsyncRAT and Lummac samples observed in the wild.
references:
    - https://www.virustotal.com/gui/file/c9f9f193409217f73cc976ad078c6f8bf65d3aabcf5fad3e5a47536d47aa6761
    - https://www.virustotal.com/gui/file/e96a0c1bc5f720d7f0a53f72e5bb424163c943c24a437b1065957a79f5872675
author: Joseliyo Sanchez, @Joseliyo_Jstnk
date: 2024-12-19
tags:
    - attack.execution
    - detection.emerging-threats
logsource:
    category: file_event
    product: windows
detection:
    # VT Query: behaviour_files:"\\AppData\\Roaming\\DataLogs\\DataLogs.conf"
    # VT Query: behaviour_files:"DataLogs.conf" or behaviour_files:"hvnc.conf" or behaviour_files:"dcrat.conf"
    selection_required:
        TargetFilename|contains: '\AppData\Roaming\'
    selection_variants:
        TargetFilename|contains:
            - '\mydata\'
            - '\datalogs\'
            - '\hvnc\'
            - '\dcrat\'
        TargetFilename|endswith:
            - '\datalogs.conf'
            - '\hvnc.conf'
            - '\dcrat.conf'
    condition: all of selection_*
falsepositives:
    - Legitimate software creating a file with the same name
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_required

selection_required:
    TargetFilename|contains: '\AppData\Roaming\'

Stage 2: selection_variants

selection_variants:
    TargetFilename|contains:
        - '\mydata\'
        - '\datalogs\'
        - '\hvnc\'
        - '\dcrat\'
    TargetFilename|endswith:
        - '\datalogs.conf'
        - '\hvnc.conf'
        - '\dcrat.conf'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • \datalogs.conf
  • \dcrat.conf
  • \hvnc.conf
field:"TargetFilename" kind:ends_with
TargetFilenamematch
  • \AppData\Roaming\ corpus 4 (sigma 2, splunk 2)
  • \datalogs\
  • \dcrat\
  • \hvnc\
  • \mydata\
field:"TargetFilename" kind:match

File Encryption Using Gpg4win

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

Detects usage of Gpg4win to encrypt files

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: File Encryption Using Gpg4win
id: 550bbb84-ce5d-4e61-84ad-e590f0024dcd
status: test
description: Detects usage of Gpg4win to encrypt files
references:
    - https://blogs.vmware.com/security/2022/11/batloader-the-evasive-downloader-malware.html
    - https://www.gpg4win.de/documentation.html
    - https://news.sophos.com/en-us/2022/01/19/zloader-installs-remote-access-backdoors-and-delivers-cobalt-strike/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-09
tags:
    - attack.execution
logsource:
    category: process_creation
    product: windows
detection:
    selection_metadata:
        - Image|endswith:
              - '\gpg.exe'
              - '\gpg2.exe'
        - Description: 'GnuPG’s OpenPGP tool'
    selection_cli:
        CommandLine|contains|all:
            - ' -c '
            - 'passphrase'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_metadata

selection_metadata:
    - Image|endswith:
          - '\gpg.exe'
          - '\gpg2.exe'
    - Description: 'GnuPG’s OpenPGP tool'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - ' -c '
        - 'passphrase'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -c corpus 13 (sigma 13)
  • passphrase corpus 2 (sigma 2)
field:"CommandLine" kind:match
Descriptioneq
  • GnuPG’s OpenPGP tool corpus 4 (sigma 4)
field:"Description" kind:eq value:"GnuPG’s OpenPGP tool"
Imageends_with
  • \gpg.exe corpus 4 (sigma 4)
  • \gpg2.exe corpus 4 (sigma 4)
field:"Image" kind:ends_with

Folder Removed From Exploit Guard ProtectedFolders List - Registry

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

Detects the removal of folders from the "ProtectedFolders" list of of exploit guard. This could indicate an attacker trying to launch an encryption process or trying to manipulate data inside of the protected folder

Known False Positives

  • Legitimate administrators removing applications (should always be investigated)

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Folder Removed From Exploit Guard ProtectedFolders List - Registry
id: 272e55a4-9e6b-4211-acb6-78f51f0b1b40
status: test
description: Detects the removal of folders from the "ProtectedFolders" list of of exploit guard. This could indicate an attacker trying to launch an encryption process or trying to manipulate data inside of the protected folder
references:
    - https://www.microsoft.com/security/blog/2017/10/23/windows-defender-exploit-guard-reduce-the-attack-surface-against-next-generation-malware/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-05
modified: 2023-02-08
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    category: registry_delete
    product: windows
detection:
    selection:
        EventType: DeleteValue
        TargetObject|contains: 'SOFTWARE\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders'
    condition: selection
falsepositives:
    - Legitimate administrators removing applications (should always be investigated)
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventType: DeleteValue
    TargetObject|contains: 'SOFTWARE\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventTypeeq
  • DeleteValue corpus 5 (sigma 4, splunk 1)
field:"EventType" kind:eq value:"DeleteValue"
TargetObjectmatch
  • SOFTWARE\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders
field:"TargetObject" kind:match value:"SOFTWARE\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders"

HackTool - SharPersist Execution

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

Detects the execution of the hacktool SharPersist - used to deploy various different kinds of persistence mechanisms

MITRE ATT&CK Coverage

TacticTechniques
Execution
Persistence
Privilege Escalation

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: HackTool - SharPersist Execution
id: 26488ad0-f9fd-4536-876f-52fea846a2e4
status: test
description: Detects the execution of the hacktool SharPersist - used to deploy various different kinds of persistence mechanisms
references:
    - https://www.mandiant.com/resources/blog/sharpersist-windows-persistence-toolkit
    - https://github.com/mandiant/SharPersist
author: Florian Roth (Nextron Systems)
date: 2022-09-15
modified: 2023-02-04
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.persistence
    - attack.t1053
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\SharPersist.exe'
        - Product: 'SharPersist'
    selection_cli_1:
        CommandLine|contains:
            - ' -t schtask -c '
            - ' -t startupfolder -c '
    selection_cli_2:
        CommandLine|contains|all:
            - ' -t reg -c '
            - ' -m add'
    selection_cli_3:
        CommandLine|contains|all:
            - ' -t service -c '
            - ' -m add'
    selection_cli_4:
        CommandLine|contains|all:
            - ' -t schtask -c '
            - ' -m add'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\SharPersist.exe'
    - Product: 'SharPersist'

Stage 2: selection_cli_1

selection_cli_1:
    CommandLine|contains:
        - ' -t schtask -c '
        - ' -t startupfolder -c '

Stage 3: selection_cli_2

selection_cli_2:
    CommandLine|contains|all:
        - ' -t reg -c '
        - ' -m add'

Stage 4: selection_cli_3

selection_cli_3:
    CommandLine|contains|all:
        - ' -t service -c '
        - ' -m add'

Stage 5: selection_cli_4

selection_cli_4:
    CommandLine|contains|all:
        - ' -t schtask -c '
        - ' -m add'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -m add
  • -t reg -c
  • -t schtask -c
  • -t service -c
  • -t startupfolder -c
field:"CommandLine" kind:match
Imageends_with
  • \SharPersist.exe
field:"Image" kind:ends_with value:"\SharPersist.exe"
Producteq
  • SharPersist
field:"Product" kind:eq value:"SharPersist"

Potential APT FIN7 Reconnaissance/POWERTRASH Related Activity

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

Detects specific command line execution used by FIN7 as reported by WithSecureLabs for reconnaissance and POWERTRASH execution

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

Rule Body

title: Potential APT FIN7 Reconnaissance/POWERTRASH Related Activity
id: 911389c7-5ae3-43ea-bab3-a947ebdeb85e
status: test
description: Detects specific command line execution used by FIN7 as reported by WithSecureLabs for reconnaissance and POWERTRASH execution
references:
    - https://labs.withsecure.com/publications/fin7-target-veeam-servers
    - https://labs.withsecure.com/publications/fin7-target-veeam-servers/jcr:content/root/responsivegrid/responsivegrid/responsivegrid/image_253944286.img.png/1682500394900.png
    - https://github.com/WithSecureLabs/iocs/blob/344203de742bb7e68bd56618f66d34be95a9f9fc/FIN7VEEAM/iocs.csv
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-04
tags:
    - attack.execution
    - attack.g0046
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_1:
        CommandLine|contains|all:
            - '-noni -nop -exe bypass -f \\\\'
            - 'ADMIN$'
    selection_2:
        CommandLine|contains|all:
            - '-ex bypass -noprof -nolog -nonint -f'
            - 'C:\Windows\Temp\'
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_1

selection_1:
    CommandLine|contains|all:
        - '-noni -nop -exe bypass -f \\\\'
        - 'ADMIN$'

Stage 2: selection_2

selection_2:
    CommandLine|contains|all:
        - '-ex bypass -noprof -nolog -nonint -f'
        - 'C:\Windows\Temp\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -ex bypass -noprof -nolog -nonint -f
  • -noni -nop -exe bypass -f \\\\
  • ADMIN$
  • C:\Windows\Temp\ corpus 7 (sigma 7)
field:"CommandLine" kind:match

Potential CVE-2023-23397 Exploitation Attempt - SMB

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

Detects (failed) outbound connection attempts to internet facing SMB servers. This could be a sign of potential exploitation attempts of CVE-2023-23397.

Known False Positives

  • Some false positives may occur from external trusted servers. Apply additional filters accordingly

MITRE ATT&CK Coverage

TacticTechniques
ExfiltrationNo specific technique

Telemetry Coverage

Rule Body

title: Potential CVE-2023-23397 Exploitation Attempt - SMB
id: de96b824-02b0-4241-9356-7e9b47f04bac
status: test
description: Detects (failed) outbound connection attempts to internet facing SMB servers. This could be a sign of potential exploitation attempts of CVE-2023-23397.
references:
    - https://www.microsoft.com/en-us/security/blog/2023/03/24/guidance-for-investigating-attacks-using-cve-2023-23397/
    - https://github.com/nasbench/Misc-Research/blob/fc46f6da34ff7e0076da28fd3e66d6e1100f1c2f/ETW/Microsoft-Windows-SMBClient.md
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-04-05
modified: 2025-10-13
tags:
    - attack.exfiltration
    - cve.2023-23397
    - detection.emerging-threats
logsource:
    product: windows
    service: smbclient-connectivity
detection:
    selection:
        # Author Note: You could adapt this rule to use the "ServerName" field and uncomment the commented EventIDs. But you need to provide your own filter for "trusted server names"
        EventID:
            # - 30800 # The server name cannot be resolved. (Doesn't contain the "ServerAddress" field)
            - 30803 # Failed to establish a network connection.
            - 30804 # A network connection was disconnected.
            - 30806 # The client re-established its session to the server.
            # - 31001 # Error (Doesn't contain the "ServerAddress" field)
    filter_main_local_ips:
        - ServerAddress|cidr:
              # IPv4
              - '10.0.0.0/8'
              - '127.0.0.0/8'
              - '169.254.0.0/16'
              - '172.16.0.0/12'
              - '192.168.0.0/16'
              # IPv6
              - '::1/128'  # IPv6 loopback
              - 'fe80::/10'  # IPv6 link-local addresses
              - 'fc00::/7'  # IPv6 private addresses
        - Address|startswith:
        # This is for EventID 30804, which doesn't have the "ServerAddress" field, but a field called "Address" and it contains a socket address (IP:Port) and not an IP
              # IPv4
              - '10.'
              - '127.'
              - '169.254.'
              - '172.'
              - '192.168.'
              # IPv6
              - '::1'
              - 'fe80::'
              - 'fc00::'
        # The filters below cover the XML raw log
        - Address|contains:
              # IPv6
              - '00000000000000000000000000000001' # ::1 - IPv6 loopback
              - 'FE80000000000000' # fe80:: - IPv6 link-local addresses
              - 'FC00000000000000' # fc00:: - IPv6 private addresses
              # IPv4
              # The "?" are meant to represent the port
              - '0200????C0A8' # 192.168.
              - '0200????AC' # 172.
              - '0200????0A' # 10.
              - '0200????7F' # 127
              - '0200????A9FE' # 169.254.
        - ServerAddress|contains:
              # IPv6
              - '00000000000000000000000000000001' # ::1 - IPv6 loopback
              - 'FE80000000000000' # fe80:: - IPv6 link-local addresses
              - 'FC00000000000000' # fc00:: - IPv6 private addresses
              # IPv4
              # The "?" are meant to represent the port
              - '0200????C0A8' # 192.168.
              - '0200????AC' # 172.
              - '0200????0A' # 10.
              - '0200????7F' # 127
              - '0200????A9FE' # 169.254.
        - RemoteAddress|contains:
              # IPv6
              - '00000000000000000000000000000001' # ::1 - IPv6 loopback
              - 'FE80000000000000' # fe80:: - IPv6 link-local addresses
              - 'FC00000000000000' # fc00:: - IPv6 private addresses
              # IPv4
              # The "?" are meant to represent the port
              - '0200????C0A8' # 192.168.
              - '0200????AC' # 172.
              - '0200????0A' # 10.
              - '0200????7F' # 127
              - '0200????A9FE' # 169.254.
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Some false positives may occur from external trusted servers. Apply additional filters accordingly
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    EventID:
        - 30803
        - 30804
        - 30806

Stage 2: not filter_main_local_ips

filter_main_local_ips:
    - ServerAddress|cidr:
          - '10.0.0.0/8'
          - '127.0.0.0/8'
          - '169.254.0.0/16'
          - '172.16.0.0/12'
          - '192.168.0.0/16'
          - '::1/128'
          - 'fe80::/10'
          - 'fc00::/7'
    - Address|startswith:
          - '10.'
          - '127.'
          - '169.254.'
          - '172.'
          - '192.168.'
          - '::1'
          - 'fe80::'
          - 'fc00::'
    - Address|contains:
          - '00000000000000000000000000000001'
          - 'FE80000000000000'
          - 'FC00000000000000'
          - '0200????C0A8'
          - '0200????AC'
          - '0200????0A'
          - '0200????7F'
          - '0200????A9FE'
    - ServerAddress|contains:
          - '00000000000000000000000000000001'
          - 'FE80000000000000'
          - 'FC00000000000000'
          - '0200????C0A8'
          - '0200????AC'
          - '0200????0A'
          - '0200????7F'
          - '0200????A9FE'
    - RemoteAddress|contains:
          - '00000000000000000000000000000001'
          - 'FE80000000000000'
          - 'FC00000000000000'
          - '0200????C0A8'
          - '0200????AC'
          - '0200????0A'
          - '0200????7F'
          - '0200????A9FE'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Addressmatch00000000000000000000000000000001excludes:Address field:"Address" value:"00000000000000000000000000000001"
Addressmatch0200????0Aexcludes:Address field:"Address" value:"0200????0A"
Addressmatch0200????7Fexcludes:Address field:"Address" value:"0200????7F"
Addressmatch0200????A9FEexcludes:Address field:"Address" value:"0200????A9FE"
Addressmatch0200????ACexcludes:Address field:"Address" value:"0200????AC"
Addressmatch0200????C0A8excludes:Address field:"Address" value:"0200????C0A8"
AddressmatchFC00000000000000excludes:Address field:"Address" value:"FC00000000000000"
AddressmatchFE80000000000000excludes:Address field:"Address" value:"FE80000000000000"
Addressstarts_with10.excludes:Address field:"Address" value:"10."
Addressstarts_with127.excludes:Address field:"Address" value:"127."
Addressstarts_with169.254.excludes:Address field:"Address" value:"169.254."
Addressstarts_with172.excludes:Address field:"Address" value:"172."
Addressstarts_with192.168.excludes:Address field:"Address" value:"192.168."
Addressstarts_with::1excludes:Address field:"Address" value:"::1"
Addressstarts_withfc00::excludes:Address field:"Address" value:"fc00::"
Addressstarts_withfe80::excludes:Address field:"Address" value:"fe80::"
RemoteAddressmatch00000000000000000000000000000001excludes:RemoteAddress field:"RemoteAddress" value:"00000000000000000000000000000001"
RemoteAddressmatch0200????0Aexcludes:RemoteAddress field:"RemoteAddress" value:"0200????0A"
RemoteAddressmatch0200????7Fexcludes:RemoteAddress field:"RemoteAddress" value:"0200????7F"
RemoteAddressmatch0200????A9FEexcludes:RemoteAddress field:"RemoteAddress" value:"0200????A9FE"
RemoteAddressmatch0200????ACexcludes:RemoteAddress field:"RemoteAddress" value:"0200????AC"
RemoteAddressmatch0200????C0A8excludes:RemoteAddress field:"RemoteAddress" value:"0200????C0A8"
RemoteAddressmatchFC00000000000000excludes:RemoteAddress field:"RemoteAddress" value:"FC00000000000000"
RemoteAddressmatchFE80000000000000excludes:RemoteAddress field:"RemoteAddress" value:"FE80000000000000"
ServerAddresscidr_match10.0.0.0/8excludes:ServerAddress field:"ServerAddress" value:"10.0.0.0/8"
ServerAddresscidr_match127.0.0.0/8excludes:ServerAddress field:"ServerAddress" value:"127.0.0.0/8"
ServerAddresscidr_match169.254.0.0/16excludes:ServerAddress field:"ServerAddress" value:"169.254.0.0/16"
ServerAddresscidr_match172.16.0.0/12excludes:ServerAddress field:"ServerAddress" value:"172.16.0.0/12"
ServerAddresscidr_match192.168.0.0/16excludes:ServerAddress field:"ServerAddress" value:"192.168.0.0/16"
ServerAddresscidr_match::1/128excludes:ServerAddress field:"ServerAddress" value:"::1/128"
ServerAddresscidr_matchfc00::/7excludes:ServerAddress field:"ServerAddress" value:"fc00::/7"
ServerAddresscidr_matchfe80::/10excludes:ServerAddress field:"ServerAddress" value:"fe80::/10"
ServerAddressmatch00000000000000000000000000000001excludes:ServerAddress field:"ServerAddress" value:"00000000000000000000000000000001"
ServerAddressmatch0200????0Aexcludes:ServerAddress field:"ServerAddress" value:"0200????0A"
ServerAddressmatch0200????7Fexcludes:ServerAddress field:"ServerAddress" value:"0200????7F"
ServerAddressmatch0200????A9FEexcludes:ServerAddress field:"ServerAddress" value:"0200????A9FE"
ServerAddressmatch0200????ACexcludes:ServerAddress field:"ServerAddress" value:"0200????AC"
ServerAddressmatch0200????C0A8excludes:ServerAddress field:"ServerAddress" value:"0200????C0A8"
ServerAddressmatchFC00000000000000excludes:ServerAddress field:"ServerAddress" value:"FC00000000000000"
ServerAddressmatchFE80000000000000excludes:ServerAddress field:"ServerAddress" value:"FE80000000000000"

Potential Exploitation of RCE Vulnerability CVE-2025-33053 - Process Access

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

Detects potential exploitation of remote code execution vulnerability CVE-2025-33053 by looking for process access that involves legitimate Windows executables (iediagcmd.exe, CustomShellHost.exe) accessing suspicious executables hosted on WebDAV shares. This indicates an attacker may be exploiting Process.Start() search order manipulation to execute malicious code from attacker-controlled WebDAV servers instead of legitimate system binaries. The vulnerability allows unauthorized code execution through external control of file names or paths via WebDAV.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 10: ProcessAccess

Rule Body

title: Potential Exploitation of RCE Vulnerability CVE-2025-33053 - Process Access
id: 9a2d8b3e-f5a1-4c68-9e21-7d9e1cf8a123
related:
    - id: abe06362-a5b9-4371-8724-ebd00cd48a04
      type: similar
    - id: 04fc4b22-91a6-495a-879d-0144fec5ec03
      type: similar
status: experimental
description: |
    Detects potential exploitation of remote code execution vulnerability CVE-2025-33053
    by looking for process access that involves legitimate Windows executables (iediagcmd.exe, CustomShellHost.exe)
    accessing suspicious executables hosted on WebDAV shares. This indicates an attacker may be exploiting
    Process.Start() search order manipulation to execute malicious code from attacker-controlled WebDAV servers
    instead of legitimate system binaries. The vulnerability allows unauthorized code execution through
    external control of file names or paths via WebDAV.
references:
    - https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2025-33053
    - https://research.checkpoint.com/2025/stealth-falcon-zero-day/
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-06-13
tags:
    - attack.command-and-control
    - attack.execution
    - attack.stealth
    - attack.t1218
    - attack.lateral-movement
    - attack.t1105
    - detection.emerging-threats
    - cve.2025-33053
logsource:
    category: process_access
    product: windows
detection:
    selection_src:
        SourceImage:
            - 'C:\Program Files\internet explorer\iediagcmd.exe'
            - 'C:\Windows\System32\CustomShellHost.exe'
    selection_target_dir:
        - TargetImage|startswith: '\\\\'
        - TargetImage|contains: '\DavWWWRoot\'
    selection_target_exe:
        TargetImage|endswith:
            - '\route.exe'
            - '\netsh.exe'
            - '\makecab.exe'
            - '\dxdiag.exe'
            - '\ipconfig.exe'
            - '\explorer.exe'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_src

selection_src:
    SourceImage:
        - 'C:\Program Files\internet explorer\iediagcmd.exe'
        - 'C:\Windows\System32\CustomShellHost.exe'

Stage 2: selection_target_dir

selection_target_dir:
    - TargetImage|startswith: '\\\\'
    - TargetImage|contains: '\DavWWWRoot\'

Stage 3: selection_target_exe

selection_target_exe:
    TargetImage|endswith:
        - '\route.exe'
        - '\netsh.exe'
        - '\makecab.exe'
        - '\dxdiag.exe'
        - '\ipconfig.exe'
        - '\explorer.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
SourceImageeq
  • C:\Program Files\internet explorer\iediagcmd.exe
  • C:\Windows\System32\CustomShellHost.exe
field:"SourceImage" kind:eq
TargetImageends_with
  • \dxdiag.exe
  • \explorer.exe
  • \ipconfig.exe
  • \makecab.exe
  • \netsh.exe
  • \route.exe
field:"TargetImage" kind:ends_with
TargetImagematch
  • \DavWWWRoot\
field:"TargetImage" kind:match value:"\DavWWWRoot\"
TargetImagestarts_with
  • \\\\
field:"TargetImage" kind:starts_with value:"\\\\"

Potentially Suspicious Network Connection To Notion API

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

Detects a non-browser process communicating with the Notion API. This could indicate potential use of a covert C2 channel such as "OffensiveNotion C2"

Known False Positives

  • Legitimate applications communicating with the "api.notion.com" endpoint that are not already in the exclusion list. The desktop and browser applications do not appear to be using the API by default unless integrations are configured.

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Potentially Suspicious Network Connection To Notion API
id: 7e9cf7b6-e827-11ed-a05b-15959c120003
status: test
description: Detects a non-browser process communicating with the Notion API. This could indicate potential use of a covert C2 channel such as "OffensiveNotion C2"
references:
    - https://github.com/mttaggart/OffensiveNotion
    - https://medium.com/@huskyhacks.mk/we-put-a-c2-in-your-notetaking-app-offensivenotion-3e933bace332
author: Gavin Knapp
date: 2023-05-03
tags:
    - attack.command-and-control
    - attack.t1102
logsource:
    product: windows
    category: network_connection
detection:
    selection:
        DestinationHostname|contains: 'api.notion.com'
    filter_main_notion:
        Image|endswith: '\AppData\Local\Programs\Notion\Notion.exe'
    filter_main_brave:
        Image|endswith: '\brave.exe'
    filter_main_chrome:
        Image:
            - 'C:\Program Files\Google\Chrome\Application\chrome.exe'
            - 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
    filter_main_firefox:
        Image:
            - 'C:\Program Files\Mozilla Firefox\firefox.exe'
            - 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'
    filter_main_ie:
        Image:
            - 'C:\Program Files (x86)\Internet Explorer\iexplore.exe'
            - 'C:\Program Files\Internet Explorer\iexplore.exe'
    filter_main_maxthon:
        Image|endswith: '\maxthon.exe'
    filter_main_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_main_edge_2:
        Image|startswith:
            - 'C:\Program Files (x86)\Microsoft\EdgeCore\'
            - 'C:\Program Files\Microsoft\EdgeCore\'
        Image|endswith:
            - '\msedge.exe'
            - '\msedgewebview2.exe'
    filter_main_opera:
        Image|endswith: '\opera.exe'
    filter_main_safari:
        Image|endswith: '\safari.exe'
    filter_main_seamonkey:
        Image|endswith: '\seamonkey.exe'
    filter_main_vivaldi:
        Image|endswith: '\vivaldi.exe'
    filter_main_whale:
        Image|endswith: '\whale.exe'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Legitimate applications communicating with the "api.notion.com" endpoint that are not already in the exclusion list. The desktop and browser applications do not appear to be using the API by default unless integrations are configured.
level: low

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    DestinationHostname|contains: 'api.notion.com'

Stage 2: not filter_main_*

filter_main_notion:
    Image|endswith: '\AppData\Local\Programs\Notion\Notion.exe'
filter_main_brave:
    Image|endswith: '\brave.exe'
filter_main_chrome:
    Image:
        - 'C:\Program Files\Google\Chrome\Application\chrome.exe'
        - 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
filter_main_firefox:
    Image:
        - 'C:\Program Files\Mozilla Firefox\firefox.exe'
        - 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'
filter_main_ie:
    Image:
        - 'C:\Program Files (x86)\Internet Explorer\iexplore.exe'
        - 'C:\Program Files\Internet Explorer\iexplore.exe'
filter_main_maxthon:
    Image|endswith: '\maxthon.exe'
filter_main_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_main_edge_2:
    Image|startswith:
        - 'C:\Program Files (x86)\Microsoft\EdgeCore\'
        - 'C:\Program Files\Microsoft\EdgeCore\'
    Image|endswith:
        - '\msedge.exe'
        - '\msedgewebview2.exe'
filter_main_opera:
    Image|endswith: '\opera.exe'
filter_main_safari:
    Image|endswith: '\safari.exe'
filter_main_seamonkey:
    Image|endswith: '\seamonkey.exe'
filter_main_vivaldi:
    Image|endswith: '\vivaldi.exe'
filter_main_whale:
    Image|endswith: '\whale.exe'

Indicators

These rows show field, operator, and value matches.

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\AppData\Local\Programs\Notion\Notion.exeexcludes:Image field:"Image" value:"\AppData\Local\Programs\Notion\Notion.exe"
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\"

Powershell Base64 Encoded MpPreference Cmdlet

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

Detects base64 encoded "MpPreference" PowerShell cmdlet code that tries to modifies or tamper with Windows Defender AV

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Powershell Base64 Encoded MpPreference Cmdlet
id: c6fb44c6-71f5-49e6-9462-1425d328aee3
status: test
description: Detects base64 encoded "MpPreference" PowerShell cmdlet code that tries to modifies or tamper with Windows Defender AV
references:
    - https://learn.microsoft.com/en-us/defender-endpoint/configure-process-opened-file-exclusions-microsoft-defender-antivirus
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md
    - https://twitter.com/AdamTheAnalyst/status/1483497517119590403
author: Florian Roth (Nextron Systems)
date: 2022-03-04
modified: 2023-01-30
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - CommandLine|base64offset|contains:
              - 'Add-MpPreference '
              - 'Set-MpPreference '
              - 'add-mppreference '
              - 'set-mppreference '
        - CommandLine|contains:
              # UTF16-LE
              - 'QQBkAGQALQBNAHAAUAByAGUAZgBlAHIAZQBuAGMAZQAgA'
              - 'EAZABkAC0ATQBwAFAAcgBlAGYAZQByAGUAbgBjAGUAIA'
              - 'BAGQAZAAtAE0AcABQAHIAZQBmAGUAcgBlAG4AYwBlACAA'
              - 'UwBlAHQALQBNAHAAUAByAGUAZgBlAHIAZQBuAGMAZQAgA'
              - 'MAZQB0AC0ATQBwAFAAcgBlAGYAZQByAGUAbgBjAGUAIA'
              - 'TAGUAdAAtAE0AcABQAHIAZQBmAGUAcgBlAG4AYwBlACAA'
              - 'YQBkAGQALQBtAHAAcAByAGUAZgBlAHIAZQBuAGMAZQAgA'
              - 'EAZABkAC0AbQBwAHAAcgBlAGYAZQByAGUAbgBjAGUAIA'
              - 'hAGQAZAAtAG0AcABwAHIAZQBmAGUAcgBlAG4AYwBlACAA'
              - 'cwBlAHQALQBtAHAAcAByAGUAZgBlAHIAZQBuAGMAZQAgA'
              - 'MAZQB0AC0AbQBwAHAAcgBlAGYAZQByAGUAbgBjAGUAIA'
              - 'zAGUAdAAtAG0AcABwAHIAZQBmAGUAcgBlAG4AYwBlACAA'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - CommandLine|base64offset|contains:
          - 'Add-MpPreference '
          - 'Set-MpPreference '
          - 'add-mppreference '
          - 'set-mppreference '
    - CommandLine|contains:
          - 'QQBkAGQALQBNAHAAUAByAGUAZgBlAHIAZQBuAGMAZQAgA'
          - 'EAZABkAC0ATQBwAFAAcgBlAGYAZQByAGUAbgBjAGUAIA'
          - 'BAGQAZAAtAE0AcABQAHIAZQBmAGUAcgBlAG4AYwBlACAA'
          - 'UwBlAHQALQBNAHAAUAByAGUAZgBlAHIAZQBuAGMAZQAgA'
          - 'MAZQB0AC0ATQBwAFAAcgBlAGYAZQByAGUAbgBjAGUAIA'
          - 'TAGUAdAAtAE0AcABQAHIAZQBmAGUAcgBlAG4AYwBlACAA'
          - 'YQBkAGQALQBtAHAAcAByAGUAZgBlAHIAZQBuAGMAZQAgA'
          - 'EAZABkAC0AbQBwAHAAcgBlAGYAZQByAGUAbgBjAGUAIA'
          - 'hAGQAZAAtAG0AcABwAHIAZQBmAGUAcgBlAG4AYwBlACAA'
          - 'cwBlAHQALQBtAHAAcAByAGUAZgBlAHIAZQBuAGMAZQAgA'
          - 'MAZQB0AC0AbQBwAHAAcgBlAGYAZQByAGUAbgBjAGUAIA'
          - 'zAGUAdAAtAG0AcABwAHIAZQBmAGUAcgBlAG4AYwBlACAA'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • BAGQAZAAtAE0AcABQAHIAZQBmAGUAcgBlAG4AYwBlACAA
  • BZGQtTXBQcmVmZXJlbmNlI
  • EAZABkAC0ATQBwAFAAcgBlAGYAZQByAGUAbgBjAGUAIA
  • EAZABkAC0AbQBwAHAAcgBlAGYAZQByAGUAbgBjAGUAIA
  • FkZC1NcFByZWZlcmVuY2Ug
  • FkZC1tcHByZWZlcmVuY2Ug
  • MAZQB0AC0ATQBwAFAAcgBlAGYAZQByAGUAbgBjAGUAIA
  • MAZQB0AC0AbQBwAHAAcgBlAGYAZQByAGUAbgBjAGUAIA
  • NldC1NcFByZWZlcmVuY2Ug
  • NldC1tcHByZWZlcmVuY2Ug
  • QQBkAGQALQBNAHAAUAByAGUAZgBlAHIAZQBuAGMAZQAgA
  • QWRkLU1wUHJlZmVyZW5jZS
  • TAGUAdAAtAE0AcABQAHIAZQBmAGUAcgBlAG4AYwBlACAA
  • TZXQtTXBQcmVmZXJlbmNlI
  • U2V0LU1wUHJlZmVyZW5jZS
  • UwBlAHQALQBNAHAAUAByAGUAZgBlAHIAZQBuAGMAZQAgA
  • YQBkAGQALQBtAHAAcAByAGUAZgBlAHIAZQBuAGMAZQAgA
  • YWRkLW1wcHJlZmVyZW5jZS
  • c2V0LW1wcHJlZmVyZW5jZS
  • cwBlAHQALQBtAHAAcAByAGUAZgBlAHIAZQBuAGMAZQAgA
  • hAGQAZAAtAG0AcABwAHIAZQBmAGUAcgBlAG4AYwBlACAA
  • hZGQtbXBwcmVmZXJlbmNlI
  • zAGUAdAAtAG0AcABwAHIAZQBmAGUAcgBlAG4AYwBlACAA
  • zZXQtbXBwcmVmZXJlbmNlI
field:"CommandLine" kind:match

Process Execution From A Potentially Suspicious Folder

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

Detects a potentially suspicious execution from an uncommon folder.

MITRE ATT&CK Coverage

TacticTechniques
Stealth

Telemetry Coverage

Rule Body

title: Process Execution From A Potentially Suspicious Folder
id: 3dfd06d2-eaf4-4532-9555-68aca59f57c4
status: test
description: Detects a potentially suspicious execution from an uncommon folder.
references:
    - https://github.com/mbevilacqua/appcompatprocessor/blob/6c847937c5a836e2ce2fe2b915f213c345a3c389/AppCompatSearch.txt
    - https://www.secureworks.com/research/bronze-butler-targets-japanese-businesses
    - https://www.crowdstrike.com/resources/reports/2019-crowdstrike-global-threat-report/
    - https://github.com/ThreatHuntingProject/ThreatHunting/blob/cb22598bb70651f88e0285abc8d835757d2cb596/hunts/suspicious_process_creation_via_windows_event_logs.md
author: Florian Roth (Nextron Systems), Tim Shelton
date: 2019-01-16
modified: 2024-07-12
tags:
    - attack.stealth
    - attack.t1036
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|contains:
            - ':\Perflogs\'
            - ':\Users\All Users\'
            - ':\Users\Default\'
            - ':\Users\NetworkService\'
            - ':\Windows\addins\'
            - ':\Windows\debug\'
            - ':\Windows\Fonts\'
            - ':\Windows\Help\'
            - ':\Windows\IME\'
            - ':\Windows\Media\'
            - ':\Windows\repair\'
            - ':\Windows\security\'
            - ':\Windows\System32\Tasks\'
            - ':\Windows\Tasks\'
            - '$Recycle.bin'
            - '\config\systemprofile\'
            - '\Intel\Logs\'
            - '\RSA\MachineKeys\'
    filter_optional_ibm:
        Image|startswith: 'C:\Users\Public\IBM\ClientSolutions\Start_Programs\'
    filter_optional_citrix:
        Image|startswith: 'C:\Windows\SysWOW64\config\systemprofile\Citrix\UpdaterBinaries\'
        Image|endswith: '\CitrixReceiverUpdater.exe'
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_optional_*

Stage 1: selection

selection:
    Image|contains:
        - ':\Perflogs\'
        - ':\Users\All Users\'
        - ':\Users\Default\'
        - ':\Users\NetworkService\'
        - ':\Windows\addins\'
        - ':\Windows\debug\'
        - ':\Windows\Fonts\'
        - ':\Windows\Help\'
        - ':\Windows\IME\'
        - ':\Windows\Media\'
        - ':\Windows\repair\'
        - ':\Windows\security\'
        - ':\Windows\System32\Tasks\'
        - ':\Windows\Tasks\'
        - '$Recycle.bin'
        - '\config\systemprofile\'
        - '\Intel\Logs\'
        - '\RSA\MachineKeys\'

Stage 2: not filter_optional_*

filter_optional_ibm:
    Image|startswith: 'C:\Users\Public\IBM\ClientSolutions\Start_Programs\'
filter_optional_citrix:
    Image|startswith: 'C:\Windows\SysWOW64\config\systemprofile\Citrix\UpdaterBinaries\'
    Image|endswith: '\CitrixReceiverUpdater.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imagematch
  • $Recycle.bin
  • :\Perflogs\ corpus 9 (sigma 9)
  • :\Users\All Users\
  • :\Users\Default\ corpus 3 (sigma 3)
  • :\Users\NetworkService\
  • :\Windows\Fonts\ corpus 3 (sigma 3)
  • :\Windows\Help\
  • :\Windows\IME\ corpus 3 (sigma 3)
  • :\Windows\Media\
  • :\Windows\System32\Tasks\ corpus 4 (sigma 4)
  • :\Windows\Tasks\ corpus 4 (sigma 4)
  • :\Windows\addins\
  • :\Windows\debug\
  • :\Windows\repair\
  • :\Windows\security\
  • \Intel\Logs\
  • \RSA\MachineKeys\
  • \config\systemprofile\ corpus 4 (sigma 4)
field:"Image" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\CitrixReceiverUpdater.exeexcludes:Image field:"Image" value:"\CitrixReceiverUpdater.exe"
Imagestarts_withC:\Windows\SysWOW64\config\systemprofile\Citrix\UpdaterBinaries\excludes:Image field:"Image" value:"C:\Windows\SysWOW64\config\systemprofile\Citrix\UpdaterBinaries\"
Imagestarts_withC:\Users\Public\IBM\ClientSolutions\Start_Programs\excludes:Image field:"Image" value:"C:\Users\Public\IBM\ClientSolutions\Start_Programs\"

PSexec service installation

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

Detects scenarios where an attacker installs PSexec service.

Known False Positives

  • Administrator activity

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: PSexec service installation
description: Detects scenarios where an attacker installs PSexec service.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1543.003-Create%20or%20Modify%20System%20Process-Windows%20Service
- https://attack.mitre.org/software/S0029/
- https://pentera.io/blog/135-is-the-new-145/
- https://nv2lt.github.io/windows/smb-psexec-smbexec-winexe-how-to/
- https://www.synacktiv.com/publications/traces-of-windows-remote-command-execution.html
tags:
- attack.privilege_execution
- attack.t1543.003
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: 
    - system
    - security
detection:
  selection_service_install:
    EventID:
      - 4697 # SECURITY logs: new service
      - 7045 # SYSTEM logs: new service
    ServiceName|contains: PSEXESVC

  selection_service_privilege:
    EventID: 4674
    ObjectServer: 'SC Manager'
    ProcessName|endswith: '\services.exe' # full path 'C:\Windows\System32\services.exe'
    ObjectName: PSEXESVC

  condition: selection_service_install or selection_service_privilege
falsepositives:
- Administrator activity
level: medium

Stages and Predicates

Stage 0: condition

selection_service_install or selection_service_privilege

Stage 1: selection_service_install

selection_service_install:
  EventID:
    - 4697
    - 7045
  ServiceName|contains: PSEXESVC

Stage 2: selection_service_privilege

selection_service_privilege:
  EventID: 4674
  ObjectServer: 'SC Manager'
  ProcessName|endswith: '\services.exe'
  ObjectName: PSEXESVC

Indicators

These rows show field, operator, and value matches.

Raw Paste Service Access

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

Detects direct access to raw pastes in different paste services often used by malware in their second stages to download malicious code in encrypted or encoded form

Known False Positives

  • User activity (e.g. developer that shared and copied code snippets and used the raw link instead of just copy & paste)

MITRE ATT&CK Coverage

Rule Body

title: Raw Paste Service Access
id: 5468045b-4fcc-4d1a-973c-c9c9578edacb
status: test
description: Detects direct access to raw pastes in different paste services often used by malware in their second stages to download malicious code in encrypted or encoded form
references:
    - https://www.virustotal.com/gui/domain/paste.ee/relations
author: Florian Roth (Nextron Systems)
date: 2019-12-05
modified: 2023-01-19
tags:
    - attack.command-and-control
    - attack.t1071.001
    - attack.t1102.001
    - attack.t1102.003
logsource:
    category: proxy
detection:
    selection:
        c-uri|contains:
            - '.paste.ee/r/'
            - '.pastebin.com/raw/'
            - '.hastebin.com/raw/'
            - '.ghostbin.co/paste/*/raw/'
            - 'pastetext.net/'
            - 'pastebin.pl/'
            - 'paste.ee/'
    condition: selection
falsepositives:
    - User activity (e.g. developer that shared and copied code snippets and used the raw link instead of just copy & paste)
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    c-uri|contains:
        - '.paste.ee/r/'
        - '.pastebin.com/raw/'
        - '.hastebin.com/raw/'
        - '.ghostbin.co/paste/*/raw/'
        - 'pastetext.net/'
        - 'pastebin.pl/'
        - 'paste.ee/'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
c-urimatch
  • .ghostbin.co/paste/*/raw/
  • .hastebin.com/raw/
  • .paste.ee/r/
  • .pastebin.com/raw/
  • paste.ee/
  • pastebin.pl/
  • pastetext.net/
field:"c-uri" kind:match

RDP Login from Localhost

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

RDP login with localhost source address may be a tunnelled login

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: RDP Login from Localhost
id: 51e33403-2a37-4d66-a574-1fda1782cc31
status: test
description: RDP login with localhost source address may be a tunnelled login
references:
    - https://www.fireeye.com/blog/threat-research/2019/01/bypassing-network-restrictions-through-rdp-tunneling.html
author: Thomas Patzke
date: 2019-01-28
modified: 2022-10-09
tags:
    - attack.lateral-movement
    - car.2013-07-002
    - attack.t1021.001
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4624
        LogonType: 10
        IpAddress:
            - '::1'
            - '127.0.0.1'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4624
    LogonType: 10
    IpAddress:
        - '::1'
        - '127.0.0.1'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
IpAddresseq
  • 127.0.0.1 corpus 6 (sigma 5, splunk 1)
  • ::1 corpus 6 (sigma 6)
field:"src_ip" kind:eq
LogonTypeeq
  • 10 corpus 4 (sigma 3, splunk 1)
field:"LogonType" kind:eq value:"10"

Remote local admin group enumeration via SharpHound

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

Detects scenarios where an attacker enumerates local administratos group on multiple hosts via SharpHound.

Known False Positives

  • Administrators
  • Azure Advanced Threat Protection (ATP) sensor

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Remote local admin group enumeration via SharpHound
description: Detects scenarios where an attacker enumerates local administratos group on multiple hosts via SharpHound.
correlation: correlate SubjectLogonId from ID 4799 with TargetLogonId from ID 4624 to identify the source of the enumeration.
requirements: Windows 10 / Server 2016 and higher
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1069-Permission%20Groups%20Discovery
- https://docs.google.com/presentation/d/1OdufXKGYPgoV1d5jDrMYSe-SYKZ7lcA4w2MFn8AkUWE/edit
- https://www.youtube.com/watch?v=_GJDkbUTSLY
- https://community.rsa.com/t5/rsa-netwitness-platform-blog/keeping-an-eye-on-your-hounds/ba-p/519889
- https://bloodhound.readthedocs.io/en/latest/data-collection/sharphound.html
- https://twitter.com/SBousseaden/status/1617856006255673345
tags:
- attack.discovery
- attack.t1069.001 # Permission Groups Discovery: Local Groups 
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4799 # Local group membership enumeration
    SubjectUserSid|startswith: 'S-1-5-21-' # Exclude false positives like local system accounts (eg: S-1-5-19 for Local Service)
    TargetSid:
      - 'S-1-5-32-544' # Administrators
      - 'S-1-5-32-555' # Remote Desktop Users
      - 'S-1-5-32-580' # Remote Management Users
    CallerProcessName: '-'  # Process is empty when call is done remotely. Process ID can also be used for the same purpose when it equals to '0x0'.
  filter:
    SubjectUserName|endswith: '$'
  condition: selection and not filter | count(Computer) by SubjectUserSid > 20 # Count on how many hosts this event was produced.
falsepositives:
- Administrators
- Azure Advanced Threat Protection (ATP) sensor
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter | count(Computer) by SubjectUserSid > 20 # Count on how many hosts this event was produced.

Stage 1: selection

selection:
  EventID: 4799
  SubjectUserSid|startswith: 'S-1-5-21-'
  TargetSid:
    - 'S-1-5-32-544'
    - 'S-1-5-32-555'
    - 'S-1-5-32-580'
  CallerProcessName: '-'
Threshold
> 20

Stage 2: not filter

filter:
  SubjectUserName|endswith: '$'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CallerProcessNameeq
  • -
field:"CallerProcessName" kind:eq value:"-"
SubjectUserSidstarts_with
  • S-1-5-21- corpus 5 (sigma 5)
field:"SubjectUserSid" kind:starts_with value:"S-1-5-21-"
TargetSideq
  • S-1-5-32-544 corpus 2 (sigma 2)
  • S-1-5-32-555
  • S-1-5-32-580
field:"TargetSid" kind:eq

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
SubjectUserNameends_with$excludes:SubjectUserName field:"SubjectUserName" value:"$"

Renamed BOINC Client Execution

#
Status
test
Severity
medium
Author
Matt Anderson (Huntress)
Source
github.com/SigmaHQ/sigma

Detects the execution of a renamed BOINC binary.

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Renamed BOINC Client Execution
id: 30d07da2-83ab-45d8-ae75-ec7c0edcaffc
status: test
description: Detects the execution of a renamed BOINC binary.
references:
    - https://boinc.berkeley.edu/
    - https://www.virustotal.com/gui/file/91e405e8a527023fb8696624e70498ae83660fe6757cef4871ce9bcc659264d3/details
    - https://www.huntress.com/blog/fake-browser-updates-lead-to-boinc-volunteer-computing-software
author: Matt Anderson (Huntress)
date: 2024-07-23
tags:
    - attack.defense-impairment
    - attack.t1553
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        OriginalFileName: 'BOINC.exe'
    filter_main_legit_name:
        Image|endswith: '\BOINC.exe'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    OriginalFileName: 'BOINC.exe'

Stage 2: not filter_main_legit_name

filter_main_legit_name:
    Image|endswith: '\BOINC.exe'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\BOINC.exeexcludes:Image field:"Image" value:"\BOINC.exe"

Renamed Whoami Execution

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

Detects the execution of whoami that has been renamed to a different name to avoid detection

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Renamed Whoami Execution
id: f1086bf7-a0c4-4a37-9102-01e573caf4a0
status: test
description: Detects the execution of whoami that has been renamed to a different name to avoid detection
references:
    - https://brica.de/alerts/alert/public/1247926/agent-tesla-keylogger-delivered-inside-a-power-iso-daa-archive/
    - https://app.any.run/tasks/7eaba74e-c1ea-400f-9c17-5e30eee89906/
author: Florian Roth (Nextron Systems)
date: 2021-08-12
modified: 2022-10-09
tags:
    - attack.discovery
    - attack.t1033
    - car.2016-03-001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        OriginalFileName: 'whoami.exe'
    filter:
        Image|endswith: '\whoami.exe'
    condition: selection and not filter
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    OriginalFileName: 'whoami.exe'

Stage 2: not filter

filter:
    Image|endswith: '\whoami.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
OriginalFileNameeq
  • whoami.exe corpus 11 (sigma 9, elastic 1, splunk 1)
field:"OriginalFileName" kind:eq value:"whoami.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\whoami.exeexcludes:Image field:"Image" value:"\whoami.exe"

Security Event Logging Disabled via MiniNt Registry Key - Process

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

Detects attempts to disable security event logging by adding the MiniNt registry key. This key is used to disable the Windows Event Log service, which collects and stores event logs from the operating system and applications. Adversaries may want to disable this service to prevent logging of security events that could be used to detect their activities.

Known False Positives

  • Highly Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Security Event Logging Disabled via MiniNt Registry Key - Process
id: 1a4bd6af-99ac-4466-b5b2-7b72b4a05462
related:
    - id: 8839e550-52d7-4958-9f2f-e13c1e736838 # Disable Security Events Logging Adding Reg Key MiniNt - Registry Set
      type: similar
status: experimental
description: |
    Detects attempts to disable security event logging by adding the `MiniNt` registry key.
    This key is used to disable the Windows Event Log service, which collects and stores event logs from the operating system and applications.
    Adversaries may want to disable this service to prevent logging of security events that could be used to detect their activities.
references:
    - https://www.hackingarticles.in/defense-evasion-windows-event-logging-t1562-002/
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-04-09
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1685.001
    - attack.t1112
    - car.2022-03-001
logsource:
    category: process_creation
    product: windows
detection:
    selection_reg_img:
        # Example: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MiniNt"
        - Image|endswith: '\reg.exe'
        - OriginalFileName: 'reg.exe'
    selection_reg_cmd:
        CommandLine|contains|all:
            - ' add '
            - '\SYSTEM\CurrentControlSet\Control\MiniNt'
    selection_powershell_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
              - '\powershell_ise.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_powershell_cmd1:
        CommandLine|contains:
            - 'New-Item '
            - 'ni '
    selection_powershell_cmd2:
        CommandLine|contains: '\SYSTEM\CurrentControlSet\Control\MiniNt'
    condition: all of selection_reg_* or all of selection_powershell_*
falsepositives:
    - Highly Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_reg_* or all of selection_powershell_*

Stage 1: selection_reg_img

selection_reg_img:
    - Image|endswith: '\reg.exe'
    - OriginalFileName: 'reg.exe'

Stage 2: selection_reg_cmd

selection_reg_cmd:
    CommandLine|contains|all:
        - ' add '
        - '\SYSTEM\CurrentControlSet\Control\MiniNt'

Stage 3: selection_powershell_img

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

Stage 4: selection_powershell_cmd1

selection_powershell_cmd1:
    CommandLine|contains:
        - 'New-Item '
        - 'ni '

Stage 5: selection_powershell_cmd2

selection_powershell_cmd2:
    CommandLine|contains: '\SYSTEM\CurrentControlSet\Control\MiniNt'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • add corpus 14 (sigma 13, splunk 1)
  • New-Item
  • \SYSTEM\CurrentControlSet\Control\MiniNt
  • ni corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \powershell_ise.exe corpus 41 (sigma 41)
  • \pwsh.exe corpus 166 (sigma 166)
  • \reg.exe corpus 58 (sigma 58)
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)
  • reg.exe corpus 41 (sigma 32, splunk 8, elastic 1)
field:"OriginalFileName" kind:eq

Sign-ins from Non-Compliant Devices

#
Status
test
Severity
high
Author
Michael Epping, '@mepples21'
Source
github.com/SigmaHQ/sigma

Monitor and alert for sign-ins where the device was non-compliant.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Sign-ins from Non-Compliant Devices
id: 4f77e1d7-3982-4ee0-8489-abf2d6b75284
status: test
description: Monitor and alert for sign-ins where the device was non-compliant.
references:
    - https://learn.microsoft.com/en-us/entra/architecture/security-operations-devices#non-compliant-device-sign-in
author: Michael Epping, '@mepples21'
date: 2022-06-28
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.initial-access
    - attack.stealth
    - attack.t1078.004
logsource:
    product: azure
    service: signinlogs
detection:
    selection:
        DeviceDetail.isCompliant: 'false'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    DeviceDetail.isCompliant: 'false'

Indicators

These rows show field, operator, and value matches.

Suspicious Execution of Powershell with Base64

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

Commandline to launch powershell with a base64 payload

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Execution of Powershell with Base64
id: fb843269-508c-4b76-8b8d-88679db22ce7
status: test
description: Commandline to launch powershell with a base64 payload
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1059.001/T1059.001.md#atomic-test-20---powershell-invoke-known-malicious-cmdlets
    - https://unit42.paloaltonetworks.com/unit42-pulling-back-the-curtains-on-encodedcommand-powershell-attacks/
    - https://mikefrobbins.com/2017/06/15/simple-obfuscation-with-powershell-using-base64-encoding/
author: frack113
date: 2022-01-02
modified: 2023-01-05
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - \powershell.exe
            - \pwsh.exe
        CommandLine|contains:
            - ' -e '
            - ' -en '
            - ' -enc '
            - ' -enco'
            - ' -ec '
    filter_encoding:
        CommandLine|contains: ' -Encoding '
    filter_azure:
        ParentImage|contains:
            - 'C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\'
            - '\gc_worker.exe'
    condition: selection and not 1 of filter_*
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_powershell_encode/info.yml

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_*

Stage 1: selection

selection:
    Image|endswith:
        - \powershell.exe
        - \pwsh.exe
    CommandLine|contains:
        - ' -e '
        - ' -en '
        - ' -enc '
        - ' -enco'
        - ' -ec '

Stage 2: not filter_*

filter_encoding:
    CommandLine|contains: ' -Encoding '
filter_azure:
    ParentImage|contains:
        - 'C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\'
        - '\gc_worker.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -e corpus 17 (sigma 14, elastic 3)
  • -ec corpus 2 (sigma 2)
  • -en corpus 5 (sigma 3, elastic 2)
  • -enc corpus 8 (sigma 6, elastic 2)
  • -enco 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

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch -Encoding excludes:CommandLine field:"CommandLine" value:" -Encoding "
ParentImagematchC:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\excludes:ParentImage field:"ParentImage" value:"C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\"
ParentImagematch\gc_worker.exeexcludes:ParentImage field:"ParentImage" value:"\gc_worker.exe"

Suspicious File Encoded To Base64 Via Certutil.EXE

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

Detects the execution of certutil with the "encode" flag to encode a file to base64 where the extensions of the file is suspicious

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious File Encoded To Base64 Via Certutil.EXE
id: ea0cdc3e-2239-4f26-a947-4e8f8224e464
related:
    - id: e62a9f0c-ca1e-46b2-85d5-a6da77f86d1a
      type: derived
status: test
description: Detects the execution of certutil with the "encode" flag to encode a file to base64 where the extensions of the file is suspicious
references:
    - https://www.virustotal.com/gui/file/35c22725a92d5cb1016b09421c0a6cdbfd860fd4778b3313669b057d4a131cb7/behavior
    - https://www.virustotal.com/gui/file/427616528b7dbc4a6057ac89eb174a3a90f7abcf3f34e5a359b7a910d82f7a72/behavior
    - https://www.virustotal.com/gui/file/34de4c8beded481a4084a1fd77855c3e977e8ac643e5c5842d0f15f7f9b9086f/behavior
    - https://www.virustotal.com/gui/file/4abe1395a09fda06d897a9c4eb247278c1b6cddda5d126ce5b3f4f499e3b8fa2/behavior
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-15
modified: 2024-03-05
tags:
    - attack.stealth
    - attack.t1027
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\certutil.exe'
        - OriginalFileName: 'CertUtil.exe'
    selection_cli:
        CommandLine|contains|windash: '-encode'
    selection_extension:
        CommandLine|contains:
            - '.acl'
            - '.bat'
            - '.doc'
            - '.gif'
            - '.jpeg'
            - '.jpg'
            - '.mp3'
            - '.pdf'
            - '.png'
            - '.ppt'
            - '.tmp'
            - '.xls'
            - '.xml'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_certutil_encode_susp_extensions/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\certutil.exe'
    - OriginalFileName: 'CertUtil.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|windash: '-encode'

Stage 3: selection_extension

selection_extension:
    CommandLine|contains:
        - '.acl'
        - '.bat'
        - '.doc'
        - '.gif'
        - '.jpeg'
        - '.jpg'
        - '.mp3'
        - '.pdf'
        - '.png'
        - '.ppt'
        - '.tmp'
        - '.xls'
        - '.xml'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -encode corpus 3 (sigma 3)
  • .acl
  • .bat corpus 10 (sigma 9, elastic 1)
  • .doc corpus 4 (sigma 4)
  • .gif corpus 9 (sigma 8, elastic 1)
  • .jpeg corpus 7 (sigma 6, elastic 1)
  • .jpg corpus 8 (sigma 7, elastic 1)
  • .mp3 corpus 2 (sigma 2)
  • .pdf corpus 3 (sigma 3)
  • .png corpus 8 (sigma 7, elastic 1)
  • .ppt corpus 4 (sigma 4)
  • .tmp corpus 3 (sigma 3)
  • .xls corpus 4 (sigma 4)
  • .xml corpus 6 (sigma 4, splunk 2)
  • /encode corpus 3 (sigma 3)
  • –encode corpus 3 (sigma 3)
  • —encode corpus 3 (sigma 3)
  • ―encode corpus 3 (sigma 3)
field:"CommandLine" kind:match
Imageends_with
  • \certutil.exe corpus 43 (sigma 43)
field:"Image" kind:ends_with value:"\certutil.exe"
OriginalFileNameeq
  • CertUtil.exe corpus 26 (sigma 14, elastic 6, splunk 6)
field:"OriginalFileName" kind:eq value:"CertUtil.exe"

Suspicious Manipulation Of Default Accounts Via Net.EXE

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

Detects suspicious manipulations of default accounts such as 'administrator' and 'guest'. For example 'enable' or 'disable' accounts or change the password...etc

Known False Positives

  • Some false positives could occur with the admin or guest account. It depends on the scripts being used by the admins in your env. If you experience a lot of FP you could reduce the level to medium

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Manipulation Of Default Accounts Via Net.EXE
id: 5b768e71-86f2-4879-b448-81061cbae951
status: test
description: Detects suspicious manipulations of default accounts such as 'administrator' and 'guest'. For example 'enable' or 'disable' accounts or change the password...etc
references:
    - https://www.trellix.com/en-sg/about/newsroom/stories/threat-labs/lockergoga-ransomware-family-used-in-targeted-attacks.html
    - https://redacted.com/blog/bianlian-ransomware-gang-gives-it-a-go/
    - https://www.microsoft.com/security/blog/2022/09/07/profiling-dev-0270-phosphorus-ransomware-operations/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-01
modified: 2023-02-21
tags:
    - attack.collection
    - attack.t1560.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\net.exe'
              - '\net1.exe'
        - OriginalFileName:
              - 'net.exe'
              - 'net1.exe'
    selection_user_option:
        CommandLine|contains: ' user '
    selection_username:
        CommandLine|contains:
            # Note: We need to write the full account name for cases starting with 'admin' to avoid lookups only with the user flag
            - ' Järjestelmänvalvoja ' # Finish
            - ' Rendszergazda ' # Hungarian
            - ' Администратор ' # Russian
            - ' Administrateur ' # French
            - ' Administrador ' # Portuguese (Brazil + Portugal) + Spanish
            - ' Administratör ' # Swedish
            - ' Administrator ' # English
            - ' guest '
            - ' DefaultAccount '
            # The cases below are for when an attacker requests the net command via 'cmd /c....'
            # First in double quotes
            - ' "Järjestelmänvalvoja" ' # Finish
            - ' "Rendszergazda" ' # Hungarian
            - ' "Администратор" ' # Russian
            - ' "Administrateur" ' # French
            - ' "Administrador" ' # Portuguese (Brazil + Portugal) + Spanish
            - ' "Administratör" ' # Swedish
            - ' "Administrator" ' # English
            - ' "guest" '
            - ' "DefaultAccount" '
            # Second in single quotes
            - " 'Järjestelmänvalvoja' " # Finish
            - " 'Rendszergazda' " # Hungarian
            - " 'Администратор' " # Russian
            - " 'Administrateur' " # French
            - " 'Administrador' " # Portuguese (Brazil + Portugal) + Spanish
            - " 'Administratör' " # Swedish
            - " 'Administrator' " # English
            - " 'guest' "
            - " 'DefaultAccount' "
    filter:
        CommandLine|contains|all:
            - 'guest'
            - '/active no'
    condition: all of selection_* and not filter
falsepositives:
    - Some false positives could occur with the admin or guest account. It depends on the scripts being used by the admins in your env. If you experience a lot of FP you could reduce the level to medium
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_net_user_default_accounts_manipulation/info.yml

Stages and Predicates

Stage 0: condition

all of selection_* and not filter

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\net.exe'
          - '\net1.exe'
    - OriginalFileName:
          - 'net.exe'
          - 'net1.exe'

Stage 2: selection_user_option

selection_user_option:
    CommandLine|contains: ' user '

Stage 3: selection_username

selection_username:
    CommandLine|contains:
        - ' Järjestelmänvalvoja '
        - ' Rendszergazda '
        - ' Администратор '
        - ' Administrateur '
        - ' Administrador '
        - ' Administratör '
        - ' Administrator '
        - ' guest '
        - ' DefaultAccount '
        - ' "Järjestelmänvalvoja" '
        - ' "Rendszergazda" '
        - ' "Администратор" '
        - ' "Administrateur" '
        - ' "Administrador" '
        - ' "Administratör" '
        - ' "Administrator" '
        - ' "guest" '
        - ' "DefaultAccount" '
        - " 'Järjestelmänvalvoja' "
        - " 'Rendszergazda' "
        - " 'Администратор' "
        - " 'Administrateur' "
        - " 'Administrador' "
        - " 'Administratör' "
        - " 'Administrator' "
        - " 'guest' "
        - " 'DefaultAccount' "

Stage 4: not filter

filter:
    CommandLine|contains|all:
        - 'guest'
        - '/active no'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • "Administrador"
  • "Administrateur"
  • "Administrator"
  • "Administratör"
  • "DefaultAccount"
  • "Järjestelmänvalvoja"
  • "Rendszergazda"
  • "guest"
  • "Администратор"
  • 'Administrador'
  • 'Administrateur'
  • 'Administrator'
  • 'Administratör'
  • 'DefaultAccount'
  • 'Järjestelmänvalvoja'
  • 'Rendszergazda'
  • 'guest'
  • 'Администратор'
  • Administrador
  • Administrateur
  • Administrator
  • Administratör
  • DefaultAccount
  • Järjestelmänvalvoja
  • Rendszergazda
  • guest
  • user corpus 3 (sigma 3)
  • Администратор
field:"CommandLine" kind:match
Imageends_with
  • \net.exe corpus 49 (sigma 49)
  • \net1.exe corpus 47 (sigma 47)
field:"Image" kind:ends_with
OriginalFileNameeq
  • net.exe corpus 25 (sigma 19, elastic 4, splunk 2)
  • net1.exe corpus 39 (sigma 19, splunk 19, elastic 1)
field:"OriginalFileName" kind:eq

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch/active noexcludes:CommandLine field:"CommandLine" value:"/active no"
CommandLinematchguestexcludes:CommandLine field:"CommandLine" value:"guest"

UAC Bypass Abusing Winsat Path Parsing - File

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

Detects the pattern of UAC Bypass using a path parsing issue in winsat.exe (UACMe 52)

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: UAC Bypass Abusing Winsat Path Parsing - File
id: 155dbf56-e0a4-4dd0-8905-8a98705045e8
status: test
description: Detects the pattern of UAC Bypass using a path parsing issue in winsat.exe (UACMe 52)
references:
    - https://github.com/hfiref0x/UACME
author: Christian Burkard (Nextron Systems)
date: 2021-08-30
modified: 2022-10-09
tags:
    - attack.privilege-escalation
    - attack.t1548.002
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|startswith: 'C:\Users\'
        TargetFilename|endswith:
            - '\AppData\Local\Temp\system32\winsat.exe'
            - '\AppData\Local\Temp\system32\winmm.dll'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|startswith: 'C:\Users\'
    TargetFilename|endswith:
        - '\AppData\Local\Temp\system32\winsat.exe'
        - '\AppData\Local\Temp\system32\winmm.dll'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • \AppData\Local\Temp\system32\winmm.dll
  • \AppData\Local\Temp\system32\winsat.exe
field:"TargetFilename" kind:ends_with
TargetFilenamestarts_with
  • C:\Users\ corpus 13 (sigma 9, elastic 4)
field:"TargetFilename" kind:starts_with value:"C:\Users\"

Use Get-NetTCPConnection

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

Adversaries may attempt to get a listing of network connections to or from the compromised system they are currently accessing or from remote systems by querying for information over the network.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
PowerShellEvent ID 400

Rule Body

title: Use Get-NetTCPConnection
id: b366adb4-d63d-422d-8a2c-186463b5ded0
status: test
description: Adversaries may attempt to get a listing of network connections to or from the compromised system they are currently accessing or from remote systems by querying for information over the network.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1049/T1049.md#atomic-test-2---system-network-connections-discovery-with-powershell
author: frack113
date: 2021-12-10
modified: 2023-10-27
tags:
    - attack.discovery
    - attack.t1049
logsource:
    product: windows
    category: ps_classic_start
detection:
    selection:
        Data|contains: 'Get-NetTCPConnection'
    condition: selection
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Data|contains: 'Get-NetTCPConnection'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Datamatch
  • Get-NetTCPConnection
field:"Data" kind:match value:"Get-NetTCPConnection"

Windows WebDAV User Agent

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

Detects WebDav DownloadCradle

Known False Positives

  • Administrative scripts that download files from the Internet
  • Administrative scripts that retrieve certain website contents
  • Legitimate WebDAV administration

MITRE ATT&CK Coverage

Rule Body

title: Windows WebDAV User Agent
id: e09aed7a-09e0-4c9a-90dd-f0d52507347e
status: test
description: Detects WebDav DownloadCradle
references:
    - https://mgreen27.github.io/posts/2018/04/02/DownloadCradle.html
author: Florian Roth (Nextron Systems)
date: 2018-04-06
modified: 2021-11-27
tags:
    - attack.command-and-control
    - attack.t1071.001
logsource:
    category: proxy
detection:
    selection:
        c-useragent|startswith: 'Microsoft-WebDAV-MiniRedir/'
        cs-method: 'GET'
    condition: selection
falsepositives:
    - Administrative scripts that download files from the Internet
    - Administrative scripts that retrieve certain website contents
    - Legitimate WebDAV administration
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    c-useragent|startswith: 'Microsoft-WebDAV-MiniRedir/'
    cs-method: 'GET'

Indicators

These rows show field, operator, and value matches.

WMI Event Subscription

#
Status
test
Severity
medium
Author
Tom Ueltschi (@c_APT_ure)
Source
github.com/SigmaHQ/sigma

Detects creation of WMI event subscription persistence method

Known False Positives

  • Exclude legitimate (vetted) use of WMI event subscription in your network

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: WMI Event Subscription
id: 0f06a3a5-6a09-413f-8743-e6cf35561297
status: test
description: Detects creation of WMI event subscription persistence method
references:
    - https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon#event-id-19-wmievent-wmieventfilter-activity-detected
    - https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon#event-id-20-wmievent-wmieventconsumer-activity-detected
    - https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon#event-id-21-wmievent-wmieventconsumertofilter-activity-detected
author: Tom Ueltschi (@c_APT_ure)
date: 2019-01-12
modified: 2021-11-27
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1546.003
logsource:
    product: windows
    category: wmi_event
detection:
    selection:
        EventID:
            - 19
            - 20
            - 21
    condition: selection
falsepositives:
    - Exclude legitimate (vetted) use of WMI event subscription in your network
level: medium
regression_tests_path: regression_data/rules/windows/wmi_event/sysmon_wmi_event_subscription/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID:
        - 19
        - 20
        - 21

Back to all Sigma rules