Hackers have devised a novel technique dubbed LNK Stomping to circumvent the Windows Mark of the Web (MoTW) security feature, underscoring the persistent threat posed by shortcut files (LNKs) once designed solely for user convenience.
Despite Microsoft’s strengthened macro blocking policy in 2022 and its reliance on MoTW metadata for reputation checks via SmartScreen and Smart App Control (SAC), attackers continue exploiting LNKs often delivered as email attachments or within compressed archives to invoke trusted system tools and deploy malicious payloads under the guise of legitimate processes.
LNK File Structure and MoTW Overview
Windows shortcut files encapsulate rich metadata in a binary structure defined by Microsoft.
The Shell Link Header contains basic metadata and flags indicating which optional structures follow.
The LinkTarget IDList employs a hierarchical Shell namespace to pinpoint targets, while LinkInfo reveals volume and network path details.
Supplementary String Data fields such as RELATIVE_PATH, WORKING_DIR, and COMMAND_LINE_ARGUMENTS customize execution, and the Extra Data blocks store environment variables, console settings, and trace information.
To thwart malicious shortcuts, Windows appends the Zone.Identifier alternate data streams in files downloaded from the Internet.
This MoTW label triggers policy checks by SAC and SmartScreen, warning users or blocking execution of untrusted content.
Exploiting Path Normalization to Remove MoTW
In 2024, Elastic Security Labs disclosed that Explorer’s path normalization process can be manipulated to strip MoTW metadata from LNK files.

The technique hinges on crafting non-standard target paths within the LinkTarget IDList so that when a user clicks the shortcut, explorer.exe detects a structural anomaly and rewrites the LNK to a normalized form.
During this rewrite, the alternate data stream containing MoTW is not preserved, effectively erasing the security label before checks occur.
Three primary evasion methods exist: embedding the entire path in a single IDList segment instead of backslash-delimited segments; appending a trailing period or space to the target path; and omitting directory segments to force relative path interpretation.
Each approach triggers Explorer to resave the LNK sans MoTW, allowing the payload to execute unimpeded.
Real-World Implications and Defensive Measures
Although no publicly attributed threat actor has yet been linked to CVE-2024-38217 exploits, Elastic’s author Joe Desimone identified multiple LNK stomping patterns in VirusTotal submissions dating back to 2018.
The U.S. Cybersecurity and Infrastructure Security Agency added the vulnerability to its Known Exploited Vulnerabilities catalogue on September 10, 2024, and Rapid7’s Patch Tuesday analysis the same day confirmed active exploitation.
These findings illustrate that LNK-based evasion is not a theoretical concern but a longstanding tactic in the wild.
Organizations must update endpoint detection rules to scrutinize LNK file canonicalization events and monitor for unexpected shortcut rewrites.
Behavior-based analysis should flag Explorer processes that modify LNK files without corresponding user actions.
Security teams are advised to enforce application whitelisting for explorer.exe modifications and to educate users about the risks of executing unsolicited shortcuts.
As attacks evolve, continuous research into file format weaknesses and proactive rule tuning will be crucial to defend against innovative evasion techniques like LNK Stomping.
Find this Story Interesting! Follow us on Google News, LinkedIn, and X to Get More Instant Updates