Malicious Script That Gets Rid of ADS, (Wed, Apr 1st)
Today, most malware are called “fileless” because they try to reduce their footprint on the infected computer filesystem to the bare minimum. But they need to write something… think about persistence. They can use the registry as an alternative storage location.
AI Analysis
Technical Summary
The analyzed threat is a malicious script leveraging fileless malware tactics to minimize its footprint on the infected Windows system’s filesystem. It achieves persistence by copying itself to the %APPDATA%\Microsoft\Windows\Templates directory as dwm.cmd and registering this script to run at system boot via the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Run. The script uses a copy command to replicate itself and then executes a PowerShell one-liner to remove the Zone.Identifier alternate data stream (ADS) from the copied file. The ADS is a metadata stream Windows attaches to files downloaded from the internet, indicating their origin and often triggering security warnings or forensic flags. By removing this ADS, the malware evades detection during digital forensic and incident response (DFIR) investigations that scan for files marked as downloaded from untrusted sources. The script then executes another PowerShell command to deploy DonutLoader, a known malware loader capable of loading additional payloads in memory, furthering the infection. This approach combines registry-based persistence, ADS removal for stealth, and in-memory malware loading, making detection and remediation more challenging. The threat does not require elevated privileges beyond the current user context and does not rely on network exploitation, limiting its attack vector to local execution or social engineering delivery of the script.
Potential Impact
Organizations worldwide face risks from this threat primarily in the form of stealthy persistence and subsequent malware deployment. The removal of ADS metadata complicates forensic investigations, potentially delaying detection and response efforts. The use of registry Run keys for persistence means the malware can survive reboots and maintain a foothold on infected systems. Deployment of DonutLoader can lead to further compromise, including data theft, lateral movement, or ransomware infection depending on subsequent payloads. Although the initial infection requires local execution, the stealth and persistence mechanisms increase the likelihood of prolonged undetected presence, raising the risk of significant operational disruption, data breaches, and financial loss. Organizations with large Windows user bases, especially those with less mature endpoint detection and response (EDR) capabilities, are particularly vulnerable. The threat also poses challenges to incident responders due to its evasion of common forensic indicators.
Mitigation Recommendations
To mitigate this threat, organizations should implement advanced endpoint detection solutions capable of monitoring registry Run key modifications and detecting suspicious script executions, especially those involving PowerShell commands that manipulate ADS or drop loaders like DonutLoader. Monitoring and alerting on removal of Zone.Identifier ADS streams can be a useful detection heuristic. Employ application whitelisting to restrict execution of unauthorized scripts and binaries in user AppData directories. Enforce least privilege principles to limit user ability to write to sensitive registry keys and directories. Regularly audit registry Run keys and user AppData folders for unknown or suspicious entries. Deploy PowerShell logging with script block transcription and module logging enabled to capture malicious command execution. Educate users on the risks of executing untrusted scripts and implement email and web filtering to reduce delivery of malicious scripts. Incident response teams should be trained to recognize ADS removal as an evasion technique and incorporate ADS scanning in forensic workflows. Finally, keep endpoint security tools and OS patches up to date to reduce exploitation opportunities.
Affected Countries
United States, Germany, United Kingdom, France, Canada, Australia, Japan, South Korea, India, Brazil
Malicious Script That Gets Rid of ADS, (Wed, Apr 1st)
Description
Today, most malware are called “fileless” because they try to reduce their footprint on the infected computer filesystem to the bare minimum. But they need to write something… think about persistence. They can use the registry as an alternative storage location.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The analyzed threat is a malicious script leveraging fileless malware tactics to minimize its footprint on the infected Windows system’s filesystem. It achieves persistence by copying itself to the %APPDATA%\Microsoft\Windows\Templates directory as dwm.cmd and registering this script to run at system boot via the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Run. The script uses a copy command to replicate itself and then executes a PowerShell one-liner to remove the Zone.Identifier alternate data stream (ADS) from the copied file. The ADS is a metadata stream Windows attaches to files downloaded from the internet, indicating their origin and often triggering security warnings or forensic flags. By removing this ADS, the malware evades detection during digital forensic and incident response (DFIR) investigations that scan for files marked as downloaded from untrusted sources. The script then executes another PowerShell command to deploy DonutLoader, a known malware loader capable of loading additional payloads in memory, furthering the infection. This approach combines registry-based persistence, ADS removal for stealth, and in-memory malware loading, making detection and remediation more challenging. The threat does not require elevated privileges beyond the current user context and does not rely on network exploitation, limiting its attack vector to local execution or social engineering delivery of the script.
Potential Impact
Organizations worldwide face risks from this threat primarily in the form of stealthy persistence and subsequent malware deployment. The removal of ADS metadata complicates forensic investigations, potentially delaying detection and response efforts. The use of registry Run keys for persistence means the malware can survive reboots and maintain a foothold on infected systems. Deployment of DonutLoader can lead to further compromise, including data theft, lateral movement, or ransomware infection depending on subsequent payloads. Although the initial infection requires local execution, the stealth and persistence mechanisms increase the likelihood of prolonged undetected presence, raising the risk of significant operational disruption, data breaches, and financial loss. Organizations with large Windows user bases, especially those with less mature endpoint detection and response (EDR) capabilities, are particularly vulnerable. The threat also poses challenges to incident responders due to its evasion of common forensic indicators.
Mitigation Recommendations
To mitigate this threat, organizations should implement advanced endpoint detection solutions capable of monitoring registry Run key modifications and detecting suspicious script executions, especially those involving PowerShell commands that manipulate ADS or drop loaders like DonutLoader. Monitoring and alerting on removal of Zone.Identifier ADS streams can be a useful detection heuristic. Employ application whitelisting to restrict execution of unauthorized scripts and binaries in user AppData directories. Enforce least privilege principles to limit user ability to write to sensitive registry keys and directories. Regularly audit registry Run keys and user AppData folders for unknown or suspicious entries. Deploy PowerShell logging with script block transcription and module logging enabled to capture malicious command execution. Educate users on the risks of executing untrusted scripts and implement email and web filtering to reduce delivery of malicious scripts. Incident response teams should be trained to recognize ADS removal as an evasion technique and incorporate ADS scanning in forensic workflows. Finally, keep endpoint security tools and OS patches up to date to reduce exploitation opportunities.
Technical Details
- Article Source
- {"url":"https://isc.sans.edu/diary/rss/32854","fetched":true,"fetchedAt":"2026-04-01T10:53:17.315Z","wordCount":457}
Threat ID: 69ccf91de6bfc5ba1dc22852
Added to database: 4/1/2026, 10:53:17 AM
Last enriched: 4/1/2026, 10:53:28 AM
Last updated: 4/3/2026, 9:36:37 AM
Views: 37
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.