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 Splunk
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/
SPL Detection Query
index=* (sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" OR sourcetype="WinEventLog:Security")
| eval EventCode=coalesce(EventCode, event_id)
| search (EventCode=1 OR EventCode=4688)
| eval ParentProcess=coalesce(ParentImage, ParentProcessName),
ChildProcess=coalesce(Image, NewProcessName),
CmdLine=coalesce(CommandLine, ProcessCommandLine)
| where (like(ParentProcess, "%explorer.exe") OR like(CmdLine, "%.lnk%"))
AND match(ChildProcess, "(?i)(powershell|cmd|wscript|cscript|mshta|rundll32|regsvr32|certutil|curl|bitsadmin)\.exe$")
| where match(CmdLine, "(?i)(http[s]?://|ftp://|\\\\\\\\[^\\s]+|iex|invoke-expression|downloadstring|downloadfile|webclient|wget)")
| eval RiskScore=case(
match(CmdLine, "(?i)(iex|invoke-expression|downloadstring)"), 90,
match(CmdLine, "(?i)(certutil|bitsadmin)"), 85,
match(CmdLine, "(?i)(mshta|regsvr32)"), 80,
true(), 70)
| table _time, host, user, ParentProcess, ChildProcess, CmdLine, RiskScore
| sort - RiskScore Detects Sysmon process creation events (Event ID 1) or Windows Security process creation (Event ID 4688) where Explorer or an LNK-referenced parent spawns a scripting interpreter or download utility with suspicious command-line arguments including HTTP/HTTPS URLs or download functions.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Corporate deployment shortcuts that invoke PowerShell against internal SCCM/MECM distribution points via HTTP
- Legitimate vendor installer LNK files that download components from vendor CDNs at installation time
- Security tooling (e.g., EDR agents, vulnerability scanners) that may create shortcut-based launchers pointing to update endpoints
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