Latest alertCVE-2018-11776 in Apache Struts Confirmed Exploited in the WildRead
Search all news in the platform

Detection rule

PUA - Seatbelt Execution

HighTest-data validatedSigmaHQ (community)T1083T1087T1526

Overview

Detects the execution of the PUA/Recon tool Seatbelt via PE information of command line parameters

Rule id
38646daa-e78f-4ace-9de0-55547b2d30da
ATT&CK techniques
T1083 File and Directory Discovery, T1087 Account Discovery, T1526 Cloud Service Discovery
Severity
High
Confidence
Low
Origin
SigmaHQ (community)
SigmaHQ status
test
Used in defense packs
The Gentlemen, qilin, Akira, safepay, rhysida, Play, nightspire, braincipher

Validation

  1. ExperimentalSyntax checked only. Not yet tested on events.
  2. Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
  3. SIEM-validatedRun in a real SIEM, with a recorded result.

3 of 3 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.

Detection logic and queries

Queries are shown exactly as generated. Test them in your environment before you deploy them.

Sigma

Sigma (YAML) · 38646daa-e78f-4ace-9de0-55547b2d30da

Download
title: PUA - Seatbelt Execution
id: 38646daa-e78f-4ace-9de0-55547b2d30da
status: test
description: Detects the execution of the PUA/Recon tool Seatbelt via PE information of command line parameters
references:
    - https://github.com/GhostPack/Seatbelt
    - https://web.archive.org/web/20250718134453/https://www.bluetangle.dev/2022/08/fastening-seatbelt-on-threat-hunting.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-18
modified: 2023-02-04
tags:
    - attack.discovery
    - attack.t1526
    - attack.t1087
    - attack.t1083
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\Seatbelt.exe'
        - OriginalFileName: 'Seatbelt.exe'
        - Description: 'Seatbelt'
        - CommandLine|contains:
              # This just a list of the commands that will produce the least amount of FP in "theory"
              # Comment out/in as needed in your environment
              # To get the full list of commands see reference section
              - ' DpapiMasterKeys'
              - ' InterestingProcesses'
              - ' InterestingFiles'
              - ' CertificateThumbprints'
              - ' ChromiumBookmarks'
              - ' ChromiumHistory'
              - ' ChromiumPresence'
              - ' CloudCredentials'
              - ' CredEnum'
              - ' CredGuard'
              - ' FirefoxHistory'
              - ' ProcessCreationEvents'
              # - ' RDPSessions'
              # - ' PowerShellHistory'
    selection_group_list:
        CommandLine|contains:
            - ' -group=misc'
            - ' -group=remote'
            - ' -group=chromium'
            - ' -group=slack'
            - ' -group=system'
            - ' -group=user'
            - ' -group=all'
    selection_group_output:
        CommandLine|contains: ' -outputfile='
    condition: selection_img or all of selection_group_*
falsepositives:
    - Unlikely
level: high

QRadar CRE

Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.

Rule name
OffSet7: PUA - Seatbelt Execution
Rule type
Event rule (Local)
Log source types
Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1

Building blocks

  • BB:OffSet7:PUA Seatbelt Execution:selection_img (match)
    Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
    • Process Path / Process Name ends with: \Seatbelt.exe
    • Filename is equal to (case-insensitive): Seatbelt.exe
    • custom property needed: Description is equal to (case-insensitive): Seatbelt
      No QRadar property mapped for "Description": create a custom event property (regex or JSON) on the DSM first.
    • Command contains: DpapiMasterKeys, InterestingProcesses, InterestingFiles, CertificateThumbprints, ChromiumBookmarks, ChromiumHistory, ChromiumPresence, CloudCredentials, CredEnum, CredGuard, FirefoxHistory, ProcessCreationEvents
  • BB:OffSet7:PUA Seatbelt Execution:selection_group_list (match)
    All test lines must match (AND).
    • Command contains: -group=misc, -group=remote, -group=chromium, -group=slack, -group=system, -group=user, -group=all
  • BB:OffSet7:PUA Seatbelt Execution:selection_group_output (match)
    All test lines must match (AND).
    • Command contains: -outputfile=

Main rule, option A (building blocks)

  1. when the event(s) were detected by one or more of these log source types: Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1
  2. when an event matches the condition built from these building blocks: BB:OffSet7:PUA Seatbelt Execution:selection_img OR (ALL of [BB:OffSet7:PUA Seatbelt Execution:selection_group_list, BB:OffSet7:PUA Seatbelt Execution:selection_group_output])

Main rule, option B (AQL filter test)

Not available: the AQL conversion failed for this rule.

Rule response

  • Severity 7, credibility 6, relevance 7
  • Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
  • Respond no more than once per 30 minutes per Log Source (tune per environment)

Limitations

  • AQL conversion failed (field 'Description' is not supported); only the building-block design is available.
  • QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.

Splunk

Splunk SPLSearch

Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.

Image="*\\Seatbelt.exe" OR OriginalFileName="Seatbelt.exe" OR Description="Seatbelt" OR CommandLine IN ("* DpapiMasterKeys*", "* InterestingProcesses*", "* InterestingFiles*", "* CertificateThumbprints*", "* ChromiumBookmarks*", "* ChromiumHistory*", "* ChromiumPresence*", "* CloudCredentials*", "* CredEnum*", "* CredGuard*", "* FirefoxHistory*", "* ProcessCreationEvents*") OR ((CommandLine IN ("* -group=misc*", "* -group=remote*", "* -group=chromium*", "* -group=slack*", "* -group=system*", "* -group=user*", "* -group=all*")) CommandLine="* -outputfile=*")

Splunk savedsearches.conf stanzaScheduled search template

Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.

[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now

[PUA - Seatbelt Execution]
description = Detects the execution of the PUA/Recon tool Seatbelt via PE information of command line parameters
search = Image="*\\Seatbelt.exe" OR OriginalFileName="Seatbelt.exe" OR Description="Seatbelt" OR CommandLine IN ("* DpapiMasterKeys*", "* InterestingProcesses*", "* InterestingFiles*", "* CertificateThumbprints*", "* ChromiumBookmarks*", "* ChromiumHistory*", "* ChromiumPresence*", "* CloudCredentials*", "* CredEnum*", "* CredGuard*", "* FirefoxHistory*", "* ProcessCreationEvents*") OR ((CommandLine IN ("* -group=misc*", "* -group=remote*", "* -group=chromium*", "* -group=slack*", "* -group=system*", "* -group=user*", "* -group=all*")) CommandLine="* -outputfile=*")

Microsoft Sentinel

Microsoft Sentinel KQL (ASIM)Hunting query

Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.

imProcessCreate
| where (TargetProcessName endswith "\\Seatbelt.exe" or TargetProcessFileOriginalName =~ "Seatbelt.exe" or TargetProcessFileDescription =~ "Seatbelt" or (TargetProcessCommandLine contains " DpapiMasterKeys" or TargetProcessCommandLine contains " InterestingProcesses" or TargetProcessCommandLine contains " InterestingFiles" or TargetProcessCommandLine contains " CertificateThumbprints" or TargetProcessCommandLine contains " ChromiumBookmarks" or TargetProcessCommandLine contains " ChromiumHistory" or TargetProcessCommandLine contains " ChromiumPresence" or TargetProcessCommandLine contains " CloudCredentials" or TargetProcessCommandLine contains " CredEnum" or TargetProcessCommandLine contains " CredGuard" or TargetProcessCommandLine contains " FirefoxHistory" or TargetProcessCommandLine contains " ProcessCreationEvents")) or ((TargetProcessCommandLine contains " -group=misc" or TargetProcessCommandLine contains " -group=remote" or TargetProcessCommandLine contains " -group=chromium" or TargetProcessCommandLine contains " -group=slack" or TargetProcessCommandLine contains " -group=system" or TargetProcessCommandLine contains " -group=user" or TargetProcessCommandLine contains " -group=all") and TargetProcessCommandLine contains " -outputfile=")

Defender XDR

Microsoft Defender XDR KQLHunting query

Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.

DeviceProcessEvents
| where (FolderPath endswith "\\Seatbelt.exe" or ProcessVersionInfoOriginalFileName =~ "Seatbelt.exe" or ProcessVersionInfoFileDescription =~ "Seatbelt" or (ProcessCommandLine contains " DpapiMasterKeys" or ProcessCommandLine contains " InterestingProcesses" or ProcessCommandLine contains " InterestingFiles" or ProcessCommandLine contains " CertificateThumbprints" or ProcessCommandLine contains " ChromiumBookmarks" or ProcessCommandLine contains " ChromiumHistory" or ProcessCommandLine contains " ChromiumPresence" or ProcessCommandLine contains " CloudCredentials" or ProcessCommandLine contains " CredEnum" or ProcessCommandLine contains " CredGuard" or ProcessCommandLine contains " FirefoxHistory" or ProcessCommandLine contains " ProcessCreationEvents")) or ((ProcessCommandLine contains " -group=misc" or ProcessCommandLine contains " -group=remote" or ProcessCommandLine contains " -group=chromium" or ProcessCommandLine contains " -group=slack" or ProcessCommandLine contains " -group=system" or ProcessCommandLine contains " -group=user" or ProcessCommandLine contains " -group=all") and ProcessCommandLine contains " -outputfile=")

Elastic

Elastic Lucene (ECS)Hunting query

Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.

(process.executable:*\\Seatbelt.exe OR process.pe.original_file_name:Seatbelt.exe OR process.pe.description:Seatbelt OR (process.command_line:(*\ DpapiMasterKeys* OR *\ InterestingProcesses* OR *\ InterestingFiles* OR *\ CertificateThumbprints* OR *\ ChromiumBookmarks* OR *\ ChromiumHistory* OR *\ ChromiumPresence* OR *\ CloudCredentials* OR *\ CredEnum* OR *\ CredGuard* OR *\ FirefoxHistory* OR *\ ProcessCreationEvents*))) OR ((process.command_line:(*\ \-group\=misc* OR *\ \-group\=remote* OR *\ \-group\=chromium* OR *\ \-group\=slack* OR *\ \-group\=system* OR *\ \-group\=user* OR *\ \-group\=all*)) AND process.command_line:*\ \-outputfile\=*)

Elastic EQL (ECS)Hunting query

EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.

any where (process.executable:"*\\Seatbelt.exe" or process.pe.original_file_name:"Seatbelt.exe" or process.pe.description:"Seatbelt" or (process.command_line like~ ("* DpapiMasterKeys*", "* InterestingProcesses*", "* InterestingFiles*", "* CertificateThumbprints*", "* ChromiumBookmarks*", "* ChromiumHistory*", "* ChromiumPresence*", "* CloudCredentials*", "* CredEnum*", "* CredGuard*", "* FirefoxHistory*", "* ProcessCreationEvents*"))) or ((process.command_line like~ ("* -group=misc*", "* -group=remote*", "* -group=chromium*", "* -group=slack*", "* -group=system*", "* -group=user*", "* -group=all*")) and process.command_line:"* -outputfile=*")

Elastic ES|QL (ECS)Hunting query

ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.

from * metadata _id, _index, _version | where ends_with(process.executable, "\\Seatbelt.exe") or process.pe.original_file_name=="Seatbelt.exe" or process.pe.description=="Seatbelt" or process.command_line like "* DpapiMasterKeys*" or process.command_line like "* InterestingProcesses*" or process.command_line like "* InterestingFiles*" or process.command_line like "* CertificateThumbprints*" or process.command_line like "* ChromiumBookmarks*" or process.command_line like "* ChromiumHistory*" or process.command_line like "* ChromiumPresence*" or process.command_line like "* CloudCredentials*" or process.command_line like "* CredEnum*" or process.command_line like "* CredGuard*" or process.command_line like "* FirefoxHistory*" or process.command_line like "* ProcessCreationEvents*" or (process.command_line like "* -group=misc*" or process.command_line like "* -group=remote*" or process.command_line like "* -group=chromium*" or process.command_line like "* -group=slack*" or process.command_line like "* -group=system*" or process.command_line like "* -group=user*" or process.command_line like "* -group=all*") and process.command_line like "* -outputfile=*"

No working conversion: IBM QRadar AQL (hunting query) (QRadar AQL backend has no property mapping for field "Description")

Required telemetry

Log source
product: windows · category: process_creation
Fields used
CommandLine Description Image OriginalFileName

False positives

  • Unlikely

Investigation and response

No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.

References

Author and attribution

Author
Nasreddine Bencherchali (Nextron Systems)
Source
SigmaHQ · rules/windows/process_creation/proc_creation_win_pua_seatbelt.yml
Upstream commit
9688134317a2
Licence
Detection Rule License (DRL) 1.1

Version history

  1. Version 1Imported from SigmaHQ
  2. OffSet7 build · SigmaHQ 9688134317a2

Related rules