LNK
SHORTCUT
EXPLORER
POWERSHELL
DetectionBlue TeamSOCOctober 12, 2026•9 min read

Detecting Malicious LNK Shortcut Files

A shortcut looks like a document and behaves like a launcher. Its whole payload is a command line.

Scroll

A LNK file is a pointer with arguments, so a weaponised shortcut can run powershell, cmd, mshta or a script host with a full attack chain in the argument field, and present a document icon while doing it. Detection splits across where shortcuts arrive, how they execute and what the file structure gives away.

Signals at a Glance

SignalWhereATT&CK
explorer.exe spawning powershell, cmd, mshta or wscript with hidden-window or encoded argumentsSysmon 1, EDRT1204.002
LNK created in Downloads, a mail cache or an extracted-archive pathSysmon 11, EDRT1204.002
LNK whose target is a system interpreter rather than a document or applicationFile inspection, EDRT1059.003
Unusually large shortcut padded with content or an embedded payloadFile inspectionT1027
Shortcut with a document icon and a double extension (invoice.pdf.lnk)Email gateway, file eventsT1036.007

Execution From Explorer

Double-clicking a shortcut makes explorer.exe the parent of the target. A user running a shortcut that launches an interpreter with a hidden window is a high-signal pattern, because normal shortcuts target applications and documents:

title: Explorer Launches Interpreter With Suspicious Arguments
logsource:
  product: windows
  category: process_creation
detection:
  parent:
    ParentImage|endswith: '\explorer.exe'
  child:
    Image|endswith:
      - '\powershell.exe'
      - '\pwsh.exe'
      - '\cmd.exe'
      - '\mshta.exe'
      - '\wscript.exe'
      - '\cscript.exe'
  args:
    CommandLine|contains:
      - '-w hidden'
      - '-windowstyle hidden'
      - '-enc '
      - '-nop'
      - 'downloadstring'
      - 'iwr '
      - 'curl '
      - '/c start /min'
  condition: parent and child and args
level: high
# tune/validate: IT shortcuts and login helpers; scope out by signed script path or command hash.

Where Shortcuts Come From

A shortcut inside an archive or disk image is the common delivery shape. Hunt shortcut creation by the extraction or mount process, and measure the file instead of only reading the name:

// Defender XDR (KQL) - LNK created by an archive or image handler, then run within 30 minutes
DeviceFileEvents
| where Timestamp > ago(7d)
| where FileName endswith ".lnk"
| where InitiatingProcessFileName in~ ("7zFM.exe","winrar.exe","explorer.exe","msedge.exe","chrome.exe","outlook.exe")
| where FolderPath has_any ("Downloads","Temp","Content.Outlook")
| join kind=inner (
    DeviceProcessEvents
    | where Timestamp > ago(7d)
    | where InitiatingProcessFileName =~ "explorer.exe"
    | where FileName in~ ("powershell.exe","cmd.exe","mshta.exe","wscript.exe","cscript.exe","rundll32.exe")
    | project RunTime=Timestamp, DeviceId, FileName, ProcessCommandLine
) on DeviceId
| where RunTime between (Timestamp .. Timestamp + 30m)
| project Timestamp, RunTime, DeviceName, LnkName=FileName, FolderPath, FileName1, ProcessCommandLine
// tune/validate: join on DeviceId is coarse; add the shortcut name to the command line check where logging allows
Vetted sources

Use SigmaHQ LNK and explorer-spawn rules, Elastic's shortcut execution detections and public LNK parser documentation. Baseline your own environment — software installers and login scripts still use shortcuts that call interpreters.

Build Detections That Fire

Mjolnir Security helps blue teams turn threat intelligence into high-fidelity detections across endpoint, network, identity and cloud telemetry.

Detection EngineeringManaged Detection & ResponseThreat HuntingIncident ResponsePurple Teaming
  • Detection Engineering We build and tune detections mapped to ATT&CK from your own telemetry.
  • Threat Hunting as a Service Hypothesis-driven hunts for the behaviours on this page.
  • 24/7 Incident Response Containment when a detection fires. Call +1 833 403 5875.
Written by: Mjolnir Threat Research (MTAC)  |  Published: October 12, 2026  |  Last reviewed: October 12, 2026