GitHub's flash malware campaign spreads a Python loader that runs JavaScript with Node.js

Author: Published 6 min de lectura 21 reading

The images in this article were generated with artificial intelligence. How we publish

Security researchers have documented a malware distribution campaign that abuses public repositories in GitHub to spread a loader written in Python and an execution chain that ends in JavaScript charges executed with Node.js. Done confirmed: the loader has been found embedded in utility packages or conftest.py files to run when Python imports those modules; the loaded code consults Etheum address transactions to recover and run its next stage. Among the technical parts detected are obfuscation methods that extract a command and control address (C2) encoded in bytes from a wallet address and request resources such as "/ 0x / cls" and "/ 0x / ls" by HTTPS.

How it works technically (summary): a short Python file - approximately 58 lines in the most recent cases - is hidden inside a repository. When imported, the script consults the last transaction sent by a specific wallet in the Etheum block chain; it interprets some of the data from that transaction as JavaScript code and runs it with Node.js. That JavaScript, in turn, reads another wallet to locate the address of the C2 server; then launches the next stage in a separate interactive Node.js process (Node -i). In some cases, attackers use a technique called NullReceiver or previous variants called EtherHering to encode the C2 IP within the bytes of an Etherium direction and a constant mark ("helloipbot!!") to signal the loaders.

GitHub's flash malware campaign spreads a Python loader that runs JavaScript with Node.js
Image generated with IA.

Who it affects: mainly open source developers and projects. The vectors observed include: accounts of held-up maintainers to publish malicious packages, forced commits (force-push) that hide the loader in git histories, malicious extensions or "takehome" instructions in false job offers that induce candidates to run installers or commands (curl-124; sh), and committed developer machines that allow attackers to push changes to repositories to which the developer has access.

Real impact and risk for production environments: when an infected repository is cloned, open in Visual Studio Code, or its build configuration runs, the loader can start the download and run chain. The samples collected in previous research install infostealers that exfilter credentials, cookies, environment secrets, crypto and development tokens; backdoors and RATs (remote access tools) have also been observed. This turns a simple flow of development work into a gateway to cloud and code accounts that runs in business infrastructure.

Facts confirmed by multiple research groups: the charger has appeared in hundreds (according to one source) or thousands (according to another) of repositories; the attackers have reused known Etheum addresses to orchestrate downloads; and there is no public evidence that PyPI or npm are distributing the loader centrally - the infection is spread by manipulated repositories and commons. You can inspect one of the wallets mentioned in the reports through Etherscan to see the transactions that are used as signboards: https: / / etherscan.io / address / 0x1eef0849eda15d87f64e51c73c8442cf3c8bcef3.

Relevant estimates and uncertainties: range figures vary according to the researcher - one group reported the presence in 375 repositories owned by 260 accounts; others estimate thousands of affected repositories - and there are discrepancies as to when operations began: blockchain records and previous samples indicate activity already in 2025, but the propagation pattern observed in 2025 shows a more aggressive use of forced commits and infection techniques. What remains to be fully clarified is the exact nature of the payloads served by "/ 0x / cls" and "/ 0x / ls" in all recent variants; in previous waves these endpoints delivered information robbers and backdoors, but the content may vary by campaign and by wave of distribution.

Practical consequences for equipment and security officials: the threat is not only that a package contains malware, but that legitimate repositories used by developers can be converted into delivery vectors. A loader that gets its server address from the lockchain resists the downtake of a static C2 server: by moving the reference in the block chain the attackers can massively reconfigure the loaders without touching the infected repositories.

Specific and immediate measures to be taken by the reader (developer or security officer):

1) Review repositories and buildings: look for unexpected files called utils, conftest.py or changes that insert hidden code (e.g. long lines of spaces before a payload). Verify commitments and recent force-puthes; use git refog to detect history rewritings.

2) Securing accounts and tokens: revoke personal tokens and suspicious OAuth apps, enable 2FA and implement minimum access policies for integration. GitHub documents how to revoke tokens in: https: / / docs.github.com /... / revoking-your-personal-access-token.

3) Avoid automatic executions and unverified commands: disable tasks that run automatically in VS Code, do not run scripts provided by unknown candidates or sites (avoid "curl-124; sh") and reject extensions that ask for excessive permits.

4) Monitoring units and activity in repositories: enable scanning of dependencies and integrity alerts for change detectors in sensitive packages and files; limit write access and active protection of binding branches and signatures to prevent unauthorized force-push.

5) Response to incidents: If you suspect commitment, isolate the machine, capture artifacts (logs, git objects), review running Node.js processes, change credentials and keys that may have been exposed, and notify affected projects to rotate secrets and review reproducible buildings.

GitHub's flash malware campaign spreads a Python loader that runs JavaScript with Node.js
Image generated with IA.

Strategic context: the reports link this activity to a cluster of threats associated with North Korean actors who have historically exploited the software supply chain for persistent access and asset theft. The techniques shown here - hosting instructions in blockchain transactions, abuse of maintenance accounts and forced commitment to hide traces - are a reminder that development security is an integral part of corporate defense and not a purely operational matter.

Conclusion: The combination of public repositories, automated development practices and privileged tokens creates an attack surface that these actors are exploiting with a high degree of automation. Review local configurations, strengthen access controls and treat any remote code execution as potentially dangerous are concrete steps that reduce risk. For further research and public telemetry, see technical reports published by incident response teams and blockchain reviews linked to the above addresses.

Additional sources and readings: Unit 42 technical analysis of related activities (Palo Alto Networks) and the public trail of wallets in Etherscan. https: / / unit42.paloaltonetworks.com / polinrider /- https: / / etherscan.io / address / 0x1eef0849eda15d87f64e51c73c8442cf3c8bcef3.

Coverage

Related

More news on the same subject.