CVE-2024-38217
Medium · 5.4 CISA KEVCVSS
5.4
EPSS
10.0%
Published
Sep 10, 2024
CISA due date
Oct 1, 2024
Cloudanix analysis
A Windows flaw can let malicious downloaded files avoid normal safety warnings, making it easier for attackers to trick users into running harmful content.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Other
- Component
- Other
- Class
- Other
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
This vulnerability is a Windows Mark of the Web security feature bypass. Mark of the Web is the metadata Windows applies to files obtained from the Internet so that downstream controls such as Microsoft Defender SmartScreen, Protected View, macro restrictions, and application reputation checks can apply higher scrutiny. Exploitation allows a specially crafted file to avoid or neutralize that Internet-origin marking, causing Windows or applications that rely on it to treat the file as more trusted than it should be. The flaw does not directly provide code execution by itself, but it materially weakens the warning and containment controls that normally stand between a user and malicious content.
Why it matters to the business
An attacker can make Internet-delivered files appear safer to Windows and Microsoft applications, increasing the likelihood that phishing attachments, downloaded archives, shortcuts, documents, or installers execute without expected warnings or restrictions. Because this issue is listed in CISA KEV, has confirmed in-the-wild exploitation, and had a federal remediation deadline of 2024-10-01, unpatched systems should be treated as exposed to a known attacker technique rather than a theoretical weakness. Operationally, this raises the risk of malware deployment, credential theft, ransomware staging, and broader compromise from user-driven delivery methods.
How an attack unfolds
An attacker prepares a malicious file or file package that abuses the Mark of the Web handling flaw so the downloaded content is not properly tagged or is interpreted as local/trusted content. The attacker delivers it through a phishing email, malicious website, file-sharing link, messaging platform, or compromised legitimate site. A user is convinced to open or extract the file. Because the Internet-origin metadata is bypassed, Windows and dependent applications may not display the expected SmartScreen, Protected View, macro, or file-origin warnings. The malicious content can then launch a payload, script interpreter, installer, shortcut target, or living-off-the-land binary to establish execution. Follow-on activity commonly includes payload download, persistence, credential access, command-and-control, and lateral movement, depending on the malware family used. Public reporting and KEV status indicate active exploitation, so investigations should look for this technique as part of broader phishing and initial-access activity rather than relying on a single unique exploit artifact.
How to fix it
Apply the Microsoft security updates that address CVE-2024-38217 for all supported Windows versions. Because no product-specific fixed versions were provided in the input, use the applicable September 2024 or later cumulative Windows updates from Microsoft for each operating system build. Prioritize internet-facing workstations, virtual desktops, jump boxes, developer workstations, and systems used by users who frequently handle external documents or downloads. Where immediate patching is not possible, reduce exposure by enforcing Microsoft Defender SmartScreen, blocking or warning on files from the Internet, restricting execution from user-writable download and temporary directories, disabling or constraining script interpreters where feasible, using Attack Surface Reduction rules, blocking Office child-process creation, and inspecting archives or attachments at the email/web gateway. Ensure endpoint security tooling preserves and inspects Zone.Identifier alternate data streams and flags Internet-delivered content that launches scripts or system utilities.
How to confirm the fix worked
Confirm that each Windows endpoint has installed the Microsoft cumulative update level that includes the September 2024 fix or a later superseding update. Validate through centralized patch management, Windows Update history, Microsoft Update Compliance, endpoint management inventory, or vulnerability scanner authenticated checks. On representative systems, test that Internet-downloaded files receive a Zone.Identifier alternate data stream and that SmartScreen or application-origin protections trigger as expected for untrusted content. Review configuration baselines to ensure SmartScreen, Defender, Attack Surface Reduction rules, Office Protected View, macro restrictions, and archive-handling controls remain enabled. Vulnerability scanners should no longer report CVE-2024-38217 after patching and reboot, where required.
Typical attack path
- Attacker crafts a file, shortcut, archive, document, or installer that abuses the Mark of the Web bypass condition.
- Attacker delivers the file through email, web download, file-sharing service, messaging app, or another user-facing channel.
- User downloads, extracts, or opens the content on a vulnerable Windows system.
- Windows fails to apply or enforce Internet-origin protections as expected.
- Expected SmartScreen, Protected View, macro, or reputation-based prompts may be absent or weakened.
- Malicious content executes directly or launches a helper process such as a script interpreter, command shell, installer, or signed Windows utility.
- Payload downloads additional malware or connects to attacker infrastructure.
- Attacker performs post-exploitation actions such as persistence, credential theft, reconnaissance, lateral movement, or data staging.
How to detect it
There is no single universal IOC for this vulnerability because exploitation depends on crafted content and the payload chosen by the attacker. Detection should focus on retrospective behavioral hunting around user-driven file execution. Collect and review endpoint process creation logs, Sysmon events, Microsoft Defender for Endpoint device file and process events, Windows Security Event ID 4688 command-line telemetry, PowerShell logs including Event IDs 4103 and 4104, browser download history, email gateway attachment logs, archive extraction telemetry, and file creation events including Zone.Identifier alternate data streams. Look for files downloaded from the Internet, email, chat, or file-sharing services that lack an expected Zone.Identifier stream, especially when those files execute or spawn child processes. Pay particular attention to LNK, ISO, IMG, ZIP, RAR, 7Z, MSI, HTA, JS, VBS, CHM, Office documents, and executable files created in Downloads, Temp, browser cache, OneDrive, Teams, Outlook, or archive extraction directories. Hunt for process chains where explorer.exe, winword.exe, excel.exe, powerpoint.exe, outlook.exe, acrord32.exe, chrome.exe, edge.exe, firefox.exe, 7z.exe, winrar.exe, or archive utilities launch scripting engines, shells, living-off-the-land binaries, or installers. Compare timestamps of file download, extraction, first execution, missing or malformed Zone.Identifier metadata, network connections, and subsequent payload staging. If threat intelligence identifies specific campaigns or malware in the environment, pivot from the initial file-open event to network destinations, dropped files, persistence keys, scheduled tasks, service creation, and credential access behavior.
- Zone.Identifier
- ZoneId=3
- ZoneId=4
- :Zone.Identifier
- powershell.exe -enc
- powershell.exe -EncodedCommand
- powershell.exe -ExecutionPolicy Bypass
- cmd.exe /c
- mshta.exe http
- mshta.exe https
- rundll32.exe javascript:
- regsvr32.exe /s /n /u /i:http
- regsvr32.exe /s /n /u /i:https
- wscript.exe
- cscript.exe
- %USERPROFILE%\Downloads\
- %LOCALAPPDATA%\Temp\
- \AppData\Local\Temp\
- \Temporary Internet Files\
- \Microsoft\Windows\INetCache\
- Microsoft-Windows-Sysmon/Operational Event ID 15
- Microsoft-Windows-Sysmon/Operational Event ID 11
- Windows Security Event ID 4688
- PowerShell Event ID 4104
What your security team should do
- Patch all affected Windows systems immediately, prioritizing user endpoints and systems that routinely process Internet-downloaded files, because the vulnerability is in CISA KEV and exploited in the wild.
- Confirm compliance against the CISA KEV remediation expectation of 2024-10-01 and treat any remaining unpatched systems as high-priority exceptions requiring compensating controls.
- Hunt for recent user-opened files from email, browser, chat, or file-sharing sources that executed without a Zone.Identifier alternate data stream or without expected SmartScreen/Protected View telemetry.
- Create detections for Internet-delivered files, archives, shortcuts, documents, and installers spawning powershell.exe, cmd.exe, wscript.exe, cscript.exe, mshta.exe, rundll32.exe, regsvr32.exe, or installer processes from user-writable directories.
- Enable or tune Microsoft Defender Attack Surface Reduction rules, especially rules blocking Office child processes, executable content from email/webmail, credential stealing from LSASS, and script abuse.
- Restrict execution from Downloads, Temp, browser cache, archive extraction, and other user-writable directories using application control where feasible.
- Preserve endpoint telemetry for file creation, alternate data streams, process creation, command lines, archive extraction, browser downloads, and email attachment opens for retrospective investigation.
- Educate help desk and users that missing Windows security prompts does not guarantee a downloaded file is safe, especially for files received through email or file-sharing links.
The record
Windows Mark of the Web Security Feature Bypass Vulnerability
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|