Security researchers at ClearSky have found a spy-focused hacking campaign going after Ukrainian organizations, using two newly discovered malware programs called BadPaw and MeowMeow. The attack is built around a step-by-step infection process meant to quietly dig in for the long term while staying as hard to detect and analyze as possible.The campaign pulls together several moving parts: phishing emails to get a foot in the door, a .NET-based loader, gradual payload delivery, and a backdoor that sticks around. It also includes multiple layers of tricks specifically designed to slow down reverse engineering and foil sandbox testing.

Researchers are highly confident this is the work of a Russian state-backed actor, and moderately confident it’s linked to the group known as APT28 (Fancy Bear), based on who was targeted, Russian-language traces in the code, and overlapping techniques seen in past Russian operations.

Initial Access: Phishing and Social Engineering

Everything starts with phishing emails sent to Ukrainian targets. The messages are crafted to look like they’re from trustworthy senders and often spoof the popular Ukrainian email service ukr.net to seem more legitimate.

Each email contains a link leading to a ZIP file download. In some cases, clicking the link first quietly loads a tiny hidden image with a tracking pixel that lets the attackers confirm the victim actually engaged with the email before they bother sending the malicious archive. It’s essentially a live-target verification step.

Inside the ZIP is a file made to look like a plain HTML document. It’s actually an HTA (HTML Application) file which is a format Windows treats as executable, so it runs code directly on the machine when opened.

Opening it triggers two things at once:

  1. A decoy document in Ukrainian appears on screen, themed around border-crossing appeals, giving the victim something believable to look at.
  2. Meanwhile, the infection chain starts running silently in the background.

The victim sees a convincing document; the malware gets to work unnoticed.

Environment Checks and Sandbox Evasion

Before going any further, the HTA runs a set of checks to figure out whether it’s on a real victim’s computer or inside an automated sandbox which is a controlled environment security tools use to safely detonate and study suspicious files.

One check reads the Windows Registry to find out when the operating system was installed. A very recent installation date is treated as a red flag suggesting a freshly set-up analysis environment, and the malware shuts itself down rather than proceed.

This is a deliberate countermeasure. Many sandbox platforms use clean, recently installed systems for each analysis run, and malware authors routinely exploit this pattern to slip past them undetected.

Stage Two: The BadPaw Loader

If the checks pass, the HTA fetches and runs BadPaw which is a .NET-based loader responsible for driving the rest of the infection forward.

BadPaw is wrapped in heavy obfuscation using .NET Reactor, a commercial tool normally sold to protect legitimate software from being copied or reverse-engineered. In this context it makes static analysis then it is reading the code without running it which is considerably harder for researchers.

Parameter-Controlled Execution

A standout feature of BadPaw is that it behaves entirely differently depending on how it’s launched. Without the specific command-line argument -renew, no malicious activity occurs at all. Instead, BadPaw opens a fully working fake utility called Regex Finder, which lets users search files using regular expression patterns.

This serves two goals:

  • Mislead human analysts who run the file during an investigation and see only a harmless-looking tool
  • Stay invisible to automated scanners that execute files without supplying command-line arguments, never triggering the malicious logic

Command-and-Control Communication

When launched with the -renew argument, BadPaw connects to a remote C2 (command-and-control) server run by the attackers.

The communication is deliberately gradual and conditional. Early responses from the server are minimal as just simple numeric values or placeholder content, before it eventually sends real instructions. This staged back-and-forth makes the network traffic harder to flag as suspicious.

When the server is ready, it delivers a block of ASCII-encoded data hidden inside HTML content hence a payload disguised as a normal webpage response. BadPaw pulls this encoded block out of the HTML, decodes it to reconstruct the next-stage payload, writes it to disk, and executes it.

Stage Three: The MeowMeow Backdoor

That decoded payload produces an executable called MeowMeowProgram.exe which is the campaign’s main backdoor and the attackers’ primary tool for long-term control over infected machines.

Decoy Execution Mode

MeowMeow uses the same parameter trick as BadPaw. Run it outside the intended attack chain and it opens a harmless screen showing a cat image. Clicking it just pops up the message “Meow Meow Meow” with nothing harmful happens, and the file looks like a joke program to anyone stumbling across it.

Malicious Activation

Run it with the -v argument, though, and the real backdoor kicks in with a full set of capabilities:

  • Running remote commands via PowerShell hence giving the attacker the ability to execute virtually anything on the machine
  • File system control: reading, writing, and deleting files on the compromised system
  • Persistent C2 communication so keeping a reliable, ongoing connection back to the attackers’ infrastructure
  • Full remote system access: hands-on, continuous control over the victim’s environment

This gives the attackers a solid and flexible base for reconnaissance, data theft, and moving deeper into the victim’s network.

Anti-Analysis and Defensive Mechanisms

Both programs actively look for signs they’re being analyzed and shut down if they find any. Specifically, they check for the presence of widely used security and monitoring tools:

  • Wireshark – used to capture and inspect network traffic
  • ProcMon (Process Monitor) – used to track process, file, and registry activity in real time
  • Fiddler – used to intercept and inspect web traffic

If any of these are detected running on the system, the malware immediately exits before it can be observed.

On top of that, the dependency on specific launch parameters means automated sandboxes – which typically run files in a default, no-argument way so will almost certainly never activate the malicious behavior, producing a clean result and a false sense of safety.

Attribution Indicators

The attribution case rests on three converging factors:

Targeting – The campaign focuses on Ukrainian organizations, which lines up with the geopolitical priorities of Russian intelligence services.
Language – Russian-language strings embedded in the malware code suggest it was built in a Russian-speaking development environment.
Tradecraft – Staged loaders, phishing delivery, and obfuscated .NET malware are all consistent with techniques documented in previous Russian espionage operations.
Together these point strongly toward a Russian state-aligned threat actor, with a plausible but not certain link to APT28.

Strategic Significance

Individually, the techniques used here aren’t groundbreaking. Together, though, they form a well-thought-out chain that stacks:

  • Social engineering via convincing phishing
  • Gradual, multi-stage payload delivery
  • Parameter-gated execution to prevent accidental activation
  • Decoy interfaces to fool manual investigators
  • Active environment detection to dodge analysis tools

The combined effect is an attack that is meaningfully harder to catch especially for automated systems that may never see the malicious behavior at all. It’s a strong example of how modern espionage operations increasingly win through disciplined tradecraft rather than raw technical sophistication.

References