Detection rules › Sigma

Kapeka Backdoor Autorun Persistence

Status
test
Severity
high
Log source
product windows, category registry_set
Author
Swachchhanda Shrawan Poudel
Source
github.com/SigmaHQ/sigma

Detects the setting of a new value in the Autorun key that is used by the Kapeka backdoor for persistence.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 13RegistryEvent (Value Set)

Rule body yaml

title: Kapeka Backdoor Autorun Persistence
id: c0c67b21-eb8a-4c84-a395-40473ec3b482
related:
    - id: 64a871dd-83f6-4e5f-80fc-5a7ca3a8a819
      type: similar
status: test
description: Detects the setting of a new value in the Autorun key that is used by the Kapeka backdoor for persistence.
references:
    - https://labs.withsecure.com/publications/kapeka
    - https://app.any.run/tasks/1efb3ed4-cc0f-4690-a0ed-24516809bc72/
author: Swachchhanda Shrawan Poudel
date: 2024-07-03
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.001
    - detection.emerging-threats
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run'
        TargetObject|endswith:
            - '\Sens Api'
            - '\OneDrive'
        Details|contains|all:
            - ':\WINDOWS\system32\rundll32.exe'
            - '.wll'
            - '#1'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run'
    TargetObject|endswith:
        - '\Sens Api'
        - '\OneDrive'
    Details|contains|all:
        - ':\WINDOWS\system32\rundll32.exe'
        - '.wll'
        - '#1'

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
Detailsmatch
  • #1
  • .wll
  • :\WINDOWS\system32\rundll32.exe
TargetObjectends_with
  • \OneDrive
  • \Sens Api
TargetObjectmatch
  • \SOFTWARE\Microsoft\Windows\CurrentVersion\Run corpus 4 (sigma 4)