Radicl
Detection engineering exercise: an assigned intrusion scenario, a self-picked article walked through as a worked example, and notes on detection strategy and pipeline design.
Sandworm / Ukraine Campaign
https://www.security.com/blog-post/ukraine-russia-attacks
- Kill chain
- Initial access: webshell dropped via curl to an IIS
aspnet_clientdirectory - Recon: whoami / systeminfo / net group / tasklist bursts
- Defense evasion: Windows Defender exclusion added on the Downloads folder
- Credential access: comsvcs.dll minidump against a KeePass process, a
reg.exehive export, and a rarerdrleakdiag /fullmemdmptechnique - Persistence: scheduled tasks re-running the memory dump every 30 minutes
- Lateral movement: RDP hardening rolled back and a firewall rule opened, OpenSSH silently installed
- Second stage:
dotnet-install.ps1abused to stage a custom .NET payload
- Initial access: webshell dropped via curl to an IIS
- Detections built
- P1: curl/wget writing an .aspx into an inetpub path (webshell drop);
rundll32callingcomsvcs.dll,MiniDumporrdrleakdiag /fullmemdmp(credential dumping);reg.exe saveagainst SAM/SYSTEM/SECURITY hives;schtasks /createon a 30-minute interval re-running the dump command - P2:
Add-MpPreference -ExclusionPathon Downloads; RDP re-enabled via registry + a matching firewall rule; OpenSSH silently installed via msiexec;Get-AdComputer/net groupenumeration bursts - Behavioral: 3+ recon commands followed by a credential-dumping technique within an hour; a Defender exclusion change followed by execution of a binary from that same excluded path
- P1: curl/wget writing an .aspx into an inetpub path (webshell drop);
ClickFix Cache Smuggling
https://expel.com/blog/cache-smuggling-when-a-picture-isnt-a-thousand-words/
- How it worked
- Phishing page pads the clipboard payload with ~139 spaces so only a fake UNC path is visible when pasted into Explorer
- Real payload: a hidden
conhost.exe --headlessPowerShell command - The page serves a file as
image/jpegthat the browser dutifully caches — it's actually a ZIP, extracted with a regex between two marker strings - No download tooling, no C2 traffic: the payload delivery rides entirely on normal browser caching behavior
- Detections built
conhost.exe --headlessspawningpowershell.exe- A non-browser process reading from a Chrome/Edge/Firefox cache directory
- PowerShell using a regex lookaround (
(?<=...)/(?=...)) against file contents read from that cache - Sequence rule: cache access →
Expand-Archive→ execution of the extracted binary, all within a short window
Detection Strategy & Pipeline
- Prioritization: rare, high-fidelity techniques (rdrleakdiag) and anything touching credentials or persistence go P1; IOC-based detections decay fast, so behavioral chains are weighted over atomic indicators
- Detection-as-code: rules as YAML in git, CI runs lint + syntax dry-run + tests against malicious/benign sample sets + a performance budget, manual approval before prod, rollback is a PR revert
- SOC tuning: exclusion requests need evidence and an expiry date; prefer narrowing a rule over disabling it entirely
- IOC vetting: automatic enrichment (VirusTotal, passive DNS, WHOIS, Shodan) feeds a scoring model — high-confidence indicators push to firewall/proxy blocklists automatically, dual-use tools are never auto-blocked by hash