Detection rules › Sigma

HackTool - LocalPotato Execution

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

Detects the execution of the LocalPotato POC based on basic PE metadata information and default CLI examples

MITRE ATT&CK coverage

TacticTechniques
Privilege EscalationNo specific technique
StealthNo specific technique

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: HackTool - LocalPotato Execution
id: 6bd75993-9888-4f91-9404-e1e4e4e34b77
status: test
description: Detects the execution of the LocalPotato POC based on basic PE metadata information and default CLI examples
references:
    - https://www.localpotato.com/localpotato_html/LocalPotato.html
    - https://github.com/decoder-it/LocalPotato
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-02-14
modified: 2024-11-23
tags:
    - attack.privilege-escalation
    - cve.2023-21746
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        Image|endswith: '\LocalPotato.exe'
    selection_cli:
        CommandLine|contains|all:
            - '.exe -i C:\'
            - '-o Windows\'
    selection_hash_plain:
        Hashes|contains:
            - 'IMPHASH=E1742EE971D6549E8D4D81115F88F1FC'
            - 'IMPHASH=DD82066EFBA94D7556EF582F247C8BB5'
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_img

selection_img:
    Image|endswith: '\LocalPotato.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - '.exe -i C:\'
        - '-o Windows\'

Stage 3: selection_hash_plain

selection_hash_plain:
    Hashes|contains:
        - 'IMPHASH=E1742EE971D6549E8D4D81115F88F1FC'
        - 'IMPHASH=DD82066EFBA94D7556EF582F247C8BB5'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • -o Windows\
  • .exe -i C:\
Hashesmatch
  • IMPHASH=DD82066EFBA94D7556EF582F247C8BB5
  • IMPHASH=E1742EE971D6549E8D4D81115F88F1FC
Imageends_with
  • \LocalPotato.exe corpus 2 (sigma 2)