Attackers breach 42 GitHub repositories with oversized hidden payloads
JFrog identified compromised repositories carrying developer-tool execution hooks and large concealed payloads, with stolen credentials linking npm releases to further repository attacks.

Attackers compromised 42 third-party GitHub repositories and concealed malicious payloads in files too large for ordinary search-based detection, according to InfoWorld’s coverage of an investigation by JFrog Security Research. The affected projects carried execution hooks for AI coding assistants and development environments, alongside wrappers reaching 13.7MB.
JFrog’s analysis connected the repository compromises to malicious npm releases, stolen credentials and publishing workflows that could spread the infection again. Differently packaged wrappers concealed the same CI-publisher payload, while an attacker-controlled repository received encrypted snapshots of collected data.
Another concealment mechanism separated the loader from its payload. A compiled native addon decrypted a file called .napi_cache during execution rather than carrying the malicious code itself. The investigation also uncovered hijacked accounts, manipulated commit histories, temporary publishing branches and exposed npm credentials.
From package installation to malicious publishing
The npm activity came into view when JFrog’s scanners detected shai-hulud packages on October 21. On October 22, SafeDep published its examination of the npm activity, including a decoded version of event-bus-lite-testmetest@0.0.1. Its assessment placed the payload in the Miasma family without settling its lineage. What initially appeared to SafeDep to be a test of the attacker’s packages was subsequently connected to malicious content in existing repositories.
Installation provided one execution route. Malicious testmetest packages used command expansion in binding.gyp to launch index.js without declaring a normal install script. Bun 1.2.18 supplied the runtime for the decrypted payload, with the loader either finding it locally or downloading it. Before that execution, a build-specific Caesar transformation operated on character codes and an AES-128-GCM encryption layer concealed the next stage. Some builds passed it directly to Bun; others used temporary directories that were deleted afterward.
The full worm harvested credentials, altered repositories and CI configuration, and spread through package registries. Stolen GitHub and npm credentials could open access to third-party projects, where attackers planted either placeholders or armed payloads. Decoded ci.js files contained publishers built for GitHub Actions: npm tokens or trusted publishing could then release additional malicious testmetest packages, reconnecting package distribution with repository compromise.
Folder-open hooks and evasive loaders
Aman Mahapatra, chief strategy officer at Tribeca Softech, identified a different execution trigger in the development tools themselves. Claude Code SessionStart hooks, Gemini settings, Cursor configuration and rules, and VS Code folder-open tasks could cause the payload to run when a developer opened a project, rather than only during an explicit installation or build.
Mahapatra also linked the oversized wrappers to gaps in detection: GitHub’s search indexing and contents API limits could leave analysts seeing the hooks without obtaining the hidden payload files. Early analysis consequently mistook those files for empty ones.
Frank Dickson, principal analyst at Dickson Research, highlighted the native addon’s environment checks. In his assessment, it avoided execution in CI environments, containers, small virtual machines and debugging sessions; on Windows, Wireshark or Process Monitor could also stop it from running.
Dickson distinguished the execution hooks from software vulnerabilities. The hooks were legitimate features, while stolen credentials were the underlying cause. His warning concerned the combination of automatic project-open execution and developer laptops holding repository, registry, cloud and AI-provider credentials.
Recovery extends beyond deleting packages
JFrog’s mitigation guidance calls for direct enumeration of repository trees instead of relying on code search or the contents API. Repository audits should examine assistant and editor configuration, unexpected execution hooks, unauthorized publishing branches and malicious workflows, as well as fake CodeQL artifacts.
For organizations that installed a full-worm version, JFrog recommends treating the host as compromised and revoking and rotating the accessible credentials. Its scope includes GitHub, GitLab, npm, PyPI, RubyGems, cloud, SSH, Vault, Kubernetes and AI providers—not just the token used to install the affected package.




















