Detection rules › Sigma

HackTool - CoercedPotato Execution

Status
test
Severity
high
Log source
category process_creation, product windows
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the use of CoercedPotato, a tool for privilege escalation

MITRE ATT&CK coverage

TacticTechniques
Privilege Escalation
Stealth

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule body

title: HackTool - CoercedPotato Execution
id: e8d34729-86a4-4140-adfd-0a29c2106307
status: test
description: Detects the use of CoercedPotato, a tool for privilege escalation
references:
    - https://github.com/hackvens/CoercedPotato
    - https://blog.hackvens.fr/articles/CoercedPotato.html
author: Florian Roth (Nextron Systems)
date: 2023-10-11
modified: 2024-11-23
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055
logsource:
    category: process_creation
    product: windows
detection:
    selection_loader_img:
        Image|endswith: '\CoercedPotato.exe'
    selection_params:
        CommandLine|contains: ' --exploitId '
    selection_loader_imphash:
        Hashes|contains:
            - 'IMPHASH=A75D7669DB6B2E107A44C4057FF7F7D6'
            - 'IMPHASH=F91624350E2C678C5DCBE5E1F24E22C9'
            - 'IMPHASH=14C81850A079A87E83D50CA41C709A15'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_loader_img

selection_loader_img:
    Image|endswith: '\CoercedPotato.exe'

Stage 2: selection_params

selection_params:
    CommandLine|contains: ' --exploitId '

Stage 3: selection_loader_imphash

selection_loader_imphash:
    Hashes|contains:
        - 'IMPHASH=A75D7669DB6B2E107A44C4057FF7F7D6'
        - 'IMPHASH=F91624350E2C678C5DCBE5E1F24E22C9'
        - 'IMPHASH=14C81850A079A87E83D50CA41C709A15'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • --exploitId
field:"CommandLine" kind:match value:" --exploitId "
Hashesmatch
  • IMPHASH=14C81850A079A87E83D50CA41C709A15
  • IMPHASH=A75D7669DB6B2E107A44C4057FF7F7D6
  • IMPHASH=F91624350E2C678C5DCBE5E1F24E22C9
field:"Hashes" kind:match
Imageends_with
  • \CoercedPotato.exe
field:"Image" kind:ends_with value:"\CoercedPotato.exe"