Winlogon Shell Registry Persistence Attempt (KamiKakaBot Indicators) on Windows
Flags registry changes to Winlogon Shell that include PowerShell-style startup and explorer.exe indicators.
- Product
- windows
- Category
- registry_set
- Author
- Nasreddine Bencherchali (Nextron Systems), X__Junior (SigmaHQ), DRL 1.1
- Published
- 2024-03-22
- Updated
- 2026-07-31
ATT&CK techniques
Persistence → Priv EscRecon
Resource Dev
Initial Access
Execution
Persistence
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule identifies registry value writes targeting the Winlogon Shell setting where the data contains specific process-spawn indicators: '-nop -w h', '$env', 'explorer.exe', and 'Start-Process'. Attackers often use Winlogon Shell persistence to ensure their payload launches at user logon, blending into normal startup behavior. The detection relies on Windows registry set telemetry that includes the registry path (TargetObject) and the written value (Details).
Reporting behind it
Changelog
v5- v5Candidate ingested via manual entry.2026-07-31
- v4Candidate ingested via manual entry.2026-07-31
- v3Candidate ingested via manual entry.2026-07-31
- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: Winlogon Shell Registry Persistence Attempt (KamiKakaBot Indicators) on Windows
id: 5ffe1adf-809f-4753-882a-dae8206acdb8
status: test
description: "This rule identifies registry value writes targeting the Winlogon Shell setting where the data contains specific process-spawn indicators: '-nop -w h', '$env', 'explorer.exe', and 'Start-Process'. Attackers often use Winlogon Shell persistence to ensure their payload launches at user logon, blending into normal startup behavior. The detection relies on Windows registry set telemetry that includes the registry path (TargetObject) and the written value (Details)."
references:
- https://www.nextron-systems.com/2024/03/22/unveiling-kamikakabot-malware-analysis/
- https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2024/Malware/KamiKakaBot/registry_set_malware_kamikakabot_winlogon_persistence.yml
author: Nasreddine Bencherchali (Nextron Systems), X__Junior, Huntrule Team
date: 2024-03-22
tags:
- attack.privilege-escalation
- attack.persistence
- attack.t1547.001
- detection.emerging-threats
logsource:
category: registry_set
product: windows
detection:
selection:
TargetObject|endswith: \Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
Details|contains|all:
- -nop -w h
- $env
- explorer.exe
- Start-Process
condition: selection
falsepositives:
- Unlikely
level: high
license: DRL-1.1
related:
- id: c9b86500-1ec2-4de6-9120-d744c8fb5caf
type: derived