Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for T1027.012.
Upgrade to ProDetect LNK Icon Smuggling in CrowdStrike LogScale
This detection identifies adversary abuse of Windows shortcut (.LNK) file metadata — specifically the IconEnvironmentDataBlock (icon location field) and target path field — to smuggle commands or URLs that download malicious payloads. Threat actors including Kimsuky, Gamaredon Group, and Mustang Panda have leveraged crafted LNK files delivered via phishing or USB to execute scripts and binaries while displaying benign icons (e.g., PDF, Word document). Detection focuses on LNK files spawning unusual child processes, network connections originating from LNK-invoked interpreters, suspicious icon paths pointing to remote UNC or HTTP locations, and command-line interpreters launched with padded or obfuscated arguments consistent with LNK target field abuse.
MITRE ATT&CK
- Tactic
- Defense Evasion
- Technique
- T1027 Obfuscated Files or Information
- Sub-technique
- T1027.012 LNK Icon Smuggling
- Canonical reference
- https://attack.mitre.org/techniques/T1027/012/
LogScale Detection Query
#event_simpleName=ProcessRollup2
| ParentBaseFileName = /(?i)^explorer\.exe$/
| ImageFileName = /(?i)(powershell|cmd|wscript|cscript|mshta|certutil|bitsadmin|rundll32)\.exe$/
| CommandLine = /(?i)(http[s]?:\/\/|downloadstring|downloadfile|webclient|invoke-expression|iex\s*\(|\.lnk)/
| groupBy([ComputerName, UserName, ParentBaseFileName, ImageFileName], function=[
collect(CommandLine, limit=10),
count(as=EventCount),
min(ContextTimeStamp, as=FirstSeen),
max(ContextTimeStamp, as=LastSeen)
])
| sort(EventCount, order=desc)
| rename(field=ComputerName, as="Host")
| rename(field=UserName, as="User")
| table([Host, User, ParentBaseFileName, ImageFileName, CommandLine, EventCount, FirstSeen, LastSeen]) CrowdStrike LogScale CQL detecting ProcessRollup2 events where Explorer spawns scripting interpreters or LOLBins containing HTTP URLs, download function references, or LNK path strings in the command line, grouped by host and user for triage.
Data Sources
Required Tables
False Positives & Tuning
- Falcon sensor update processes that may invoke PowerShell shortcuts during agent self-update procedures
- Third-party EDR migration tooling that creates shortcut launchers referencing HTTPS download endpoints
- Enterprise patch management solutions (e.g., WSUS, MECM) that use shortcut-based distribution mechanisms
Other platforms for T1027.012
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1LNK Icon Path URL Trigger via PowerShell Download
Expected signal: DeviceProcessEvents: powershell.exe spawned by explorer.exe with -WindowStyle Hidden and DownloadString URL; DeviceNetworkEvents: outbound connection from powershell.exe to 127.0.0.1:8080; Sysmon Event ID 11: LNK file creation in %TEMP%; Sysmon Event ID 3: network connection from powershell.exe
- Test 2LNK Target Field Padding to Bypass Visual Inspection
Expected signal: Sysmon Event ID 1 or Security Event ID 4688: cmd.exe spawned by explorer.exe; CommandLine field showing /c echo command with 300+ trailing spaces; Sysmon Event ID 11: lnk_test_output.txt created in %TEMP%
- Test 3LNK File Executing mshta for Remote HTA Payload
Expected signal: DeviceProcessEvents: mshta.exe spawned by explorer.exe with HTTP URL argument; DeviceNetworkEvents: outbound HTTP GET from mshta.exe to 127.0.0.1:8080; Sysmon Event ID 1: mshta.exe with command line containing http://; Sysmon Event ID 3: network connection from mshta.exe process
References (5)
- https://attack.mitre.org/techniques/T1027/012/
- https://unprotect.it/technique/shortcut-icon-smuggling/
- https://blog.talosintelligence.com/mustang-panda-targets-europe/
- https://www.mandiant.com/resources/blog/lnk-icon-smuggling-technique
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1027.012/T1027.012.md
Unlock playbooks & atomic tests with Pro
Get the full detection package for T1027.012 — response playbook and atomic red team tests, plus investigation guidance and hunting queries.
df00tech Pro — £29/user/month