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 Sumo Logic CSE
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/
Sumo Detection Query
(_sourceCategory=windows/sysmon OR _sourceCategory=windows/security)
| parse regex "(?:CommandLine|ProcessCommandLine)=(?P<cmdline>[^\n\r]+)" nodrop
| parse regex "(?:Image|NewProcessName)=(?P<process_name>[^\n\r]+)" nodrop
| parse regex "(?:ParentImage|ParentProcessName)=(?P<parent_process>[^\n\r]+)" nodrop
| where EventCode in ("1", "4688")
| where (
matches(toLowerCase(parent_process), "*explorer.exe")
AND matches(toLowerCase(process_name), "*(powershell|cmd|wscript|cscript|mshta|certutil|bitsadmin|rundll32).exe*")
AND (
matches(toLowerCase(cmdline), "*http://*")
OR matches(toLowerCase(cmdline), "*https://*")
OR matches(toLowerCase(cmdline), "*downloadstring*")
OR matches(toLowerCase(cmdline), "*iex*")
OR matches(toLowerCase(cmdline), "*invoke-expression*")
OR matches(toLowerCase(cmdline), "*.lnk*")
)
)
| count by _sourceHost, _sourceCategory, process_name, parent_process, cmdline
| sort by _count desc Sumo Logic query correlating Windows process creation events from Sysmon or Security logs where Explorer spawns a scripting interpreter or LOLBin with HTTP URLs, download functions, or explicit LNK references in the command line.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate enterprise application shortcuts managed by Group Policy that point to intranet web-based launchers
- Corporate AV or EDR update processes that create temporary shortcut files during signature update cycles
- Developer toolchains that generate LNK files referencing PowerShell-based build or test scripts
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