OpenClaw GitHub Ghosts: How Fake Repositories Delivered the GhostSocks Infostealer

Open-source ecosystems thrive on trust. Developers regularly pull code, clone repositories, and run tools from platforms like GitHub with little friction. But that same openness makes these ecosystems attractive to attackers.

Recently, security researchers uncovered a campaign abusing GitHub to distribute malware disguised as tools related to OpenClaw, a rapidly growing AI agent framework. The operation used fake repositories, malicious installers, and stealthy loaders to deploy an infostealer known as GhostSocks along with additional payloads.

This blog explores how the campaign worked, the malware chain involved, and why developers are increasingly becoming prime targets in software supply-chain attacks.


The Rise of OpenClaw—and the Attacker Interest

OpenClaw is an open-source AI agent framework designed to run locally and automate tasks such as scheduling, managing emails, or interacting with external services. Because the tool integrates with many platforms, it requires storing API keys, authentication tokens, and cryptographic keys in configuration files.

That makes OpenClaw installations particularly valuable targets for attackers.

Infostealers traditionally focus on browser credentials and cookies. But as AI agents become more integrated into daily workflows, attackers are now targeting the configuration and identity files of these agents.

The GitHub campaign analyzed by Huntress shows exactly how threat actors are exploiting this shift.


The Attack Begins: Fake GitHub Repositories

The campaign started with attackers creating malicious GitHub repositories designed to appear legitimate. These repositories promoted fake OpenClaw installers or related tools.

Several indicators revealed that the accounts were suspicious:

  • Newly created GitHub accounts with little prior activity
  • Links to non-existent social profiles
  • Repositories pushing alternative downloads for OpenClaw tools

One repository included code that looked mostly legitimate because it was partially copied from an existing project related to Cloudflare’s moltworker.

However, the real payload wasn’t in the source code itself.

Instead, the malware was hidden inside the release assets.


Weaponized Installer: OpenClaw_x64.exe

Inside the repository’s release section was a compressed archive containing a file named:

OpenClaw_x64.exe

When executed, the installer triggered a multi-stage infection chain.

The executable dropped multiple components onto the system, including Rust-based loaders designed to run malware directly in memory, making detection more difficult.

This stage deployed the GhostSocks infostealer alongside other payloads.


Payload Chain and Malware Components

The infection chain included several malicious binaries working together:

1. Rust-based loaders

The loaders were responsible for unpacking encrypted payloads and executing them in memory to evade traditional antivirus detection.

2. GhostSocks Infostealer

GhostSocks was used to extract sensitive information from the infected host.

Typical data targets included:

  • Browser credentials
  • Cookies and authentication tokens
  • System information
  • Application credentials

3. Vidar Stealer Variant

One of the binaries discovered during analysis—cloudvideo.exe—was identified as a Vidar infostealer variant.

Vidar is a well-known credential-stealing malware capable of collecting:

  • Telegram credentials
  • Steam account data
  • browser passwords and cookies
  • cryptocurrency wallets

It can also dynamically retrieve command-and-control (C2) infrastructure.


The Stealth Packer: Hiding the Malware

Researchers also identified a previously unseen “stealth packer” used in the attack.

Debug messages embedded in the sample suggested that this packer performs several stealth operations, including:

  • In-memory malware execution
  • Firewall rule modification
  • Creation of hidden scheduled tasks
  • Anti-VM checks such as monitoring mouse movement before execution

These techniques are designed to bypass sandbox analysis and automated malware detection systems.


Why OpenClaw Users Are Attractive Targets

OpenClaw installations often contain sensitive files stored locally.

Examples include:

FileDescription
openclaw.jsonStores user email, workspace details, and gateway authentication tokens
device.jsonContains cryptographic keys used for device pairing and signing
soul.md, MEMORY.mdStore contextual memory and behavioral instructions for the AI agent

If attackers steal these files, they may gain access to authentication tokens, private keys, and contextual data about the user’s workflows.

This could allow attackers to impersonate the user, access connected services, or conduct highly targeted social engineering attacks.


A New Evolution of Infostealers

Security researchers believe this attack represents an important shift in the behavior of credential-stealing malware.

Historically, infostealers focused on:

  • browser passwords
  • saved cookies
  • crypto wallets

Now they are beginning to harvest the identities and operational context of AI agents.

Because AI assistants integrate with multiple services and store long-lived tokens, compromising them could provide attackers with far broader access than traditional credential theft.


Security Lessons for Developers

The GitHub GhostSocks campaign highlights several important lessons for developers and organizations:

1. Don’t trust repositories blindly

Even legitimate-looking repositories may contain malicious release artifacts.

2. Inspect binaries before execution

Check checksums, signatures, and build artifacts before running downloaded executables.

3. Protect AI configuration files

Files storing API keys and tokens should be treated as sensitive secrets.

4. Limit local secrets

Use secret management systems instead of storing long-lived credentials locally.

5. Monitor outbound traffic

Infostealers rely on communication with command-and-control servers to exfiltrate stolen data.


The Bigger Picture: Supply Chain Attacks in the AI Era

The OpenClaw GhostSocks campaign demonstrates how quickly attackers adapt to emerging technologies.

As AI agents gain access to email, cloud platforms, and internal workflows, compromising them becomes equivalent to compromising a digital identity.

Attackers no longer need to breach multiple systems. They only need access to the agent controlling them.

This shift suggests that AI agent environments will soon become a major battleground in cybersecurity.


Key Takeaway:
The GitHub GhostSocks campaign shows how attackers weaponize trusted platforms, disguise malware inside legitimate-looking tools, and exploit the growing ecosystem of AI agents to harvest credentials and digital identities.

Developers and organizations must treat AI agent environments with the same security rigor as production infrastructure.