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 IBM QRadar
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/
QRadar Detection Query
SELECT
DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS EventTime,
sourceip,
username,
QIDNAME(qid) AS EventName,
"CommandLine",
"ParentProcessName",
"NewProcessName",
CATEGORYNAME(category) AS Category,
logsourceid
FROM events
WHERE
LOGSOURCETYPEID IN (12, 101)
AND (
("EventID" = '4688' OR "EventID" = '1')
AND (
LOWER("CommandLine") MATCHES '.*(\.lnk|lnk icon|iconpath).*'
OR (
LOWER("ParentProcessName") LIKE '%explorer.exe'
AND LOWER("NewProcessName") MATCHES '.*(powershell|cmd|wscript|cscript|mshta|certutil|bitsadmin)\.exe.*'
AND LOWER("CommandLine") MATCHES '.*(http[s]?://|downloadstring|iex|invoke-expression|webclient).*'
)
)
)
LAST 24 HOURS QRadar AQL query searching Windows process creation events (EventID 4688 from Security log source type 12, or Sysmon type 101) for LNK-related command-line references or Explorer spawning download-capable interpreters with HTTP/download function arguments.
Data Sources
Required Tables
False Positives & Tuning
- Helpdesk software that uses .lnk references in process arguments for remote support session initiation
- Enterprise application launchers that log .lnk paths in process command lines during normal software execution
- Scheduled maintenance scripts invoked via Task Scheduler that reference LNK files in their argument chains
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