Malicious code in sme-rko-finance-front-operations-pegasus (npm)
The npm package sme-rko-finance-front-operations-pegasus contains malicious code that downloads and executes platform-specific binaries from attacker-controlled infrastructure upon require(). The package masquerades as a data-transformation utility but includes obfuscated dropper logic in both index.js and lib/telemetry.js.
- Disclosed
- Last updated
- Blast radius
- Unknown; depends on adoption of affected versions
- Ecosystems
- Attack vectors
- Affected entities
- sme-rko-finance-front-operations-pegasusnpm package containing malicious code
The npm package sme-rko-finance-front-operations-pegasus was found to contain malicious code designed to download and execute arbitrary binaries. Upon require(), the package's index.js loads _shim.js, which downloads platform-specific binaries from runtime-assembled *.workers.dev hostnames, with a DNS TXT fallback channel resolving through sdk/ext/pkg/net.dl.wel1.ru.
The malicious code writes the downloaded binary to /var/tmp/.cache_ on Linux/macOS or %TEMP%/dotnet_diag_.exe on Windows, sets executable permissions (mode 0755), and spawns it detached via shell. The package uses string obfuscation techniques—such as char-fragment arrays and string concatenation (e.g., require('child_'+'process'), fs['chmod'+'Sync'])—to evade static analysis detection.
The dropper logic is redundantly implemented in lib/telemetry.js (78KB), which reconstructs the payload via Buffer.from(chunks,'base64') from DNS-chunked data, ensuring execution even if _shim is removed. A cooldown file (.analytics_state) suppresses re-execution. The package's stated purpose is data-transformation utilities, providing no legitimate justification for native binary downloads from non-publisher infrastructure.
The incident was identified and credited to the OpenSSF malicious-packages repository.
Indicators of compromise
- Packages
- sme-rko-finance-front-operations-pegasus
- Domains
- workers.dev
- sdk/ext/pkg/net.dl.wel1.ru
Remediation
- Immediately remove sme-rko-finance-front-operations-pegasus from all projects and dependencies
- Audit npm package.json and lock files for any versions of this package
- Review and revoke any credentials or secrets that may have been exposed on affected systems
- Inspect systems that installed this package for unauthorized binaries in /var/tmp/.cache_ (Linux/macOS) or %TEMP%/dotnet_diag_.exe (Windows)
- Monitor network traffic for connections to *.workers.dev and sdk/ext/pkg/net.dl.wel1.ru
- Update to a patched version if available, or use an alternative package for data-transformation utilities
- Consider implementing package integrity verification and allowlisting in your supply chain
Sources
- GitHub Advisory GHSA-6fvh-4vgq-9765 · GitHub Advisory Database
Cite this entry
"Malicious code in sme-rko-finance-front-operations-pegasus (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 8, 2026; last updated August 8, 2026. https://supplychainattack.org/incident/malicious-code-in-sme-rko-finance-front-operations-pegasus-npm-mpe9ve
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- activecritical
Malware in eslint-generate-prerelease
Malware was discovered in the npm package eslint-generate-prerelease. Systems with this package installed or running should be considered fully compromised.
npmCompromised package - activecritical
Malware in celonix-otp-react
Malware discovered in the npm package celonix-otp-react. Systems with this package installed are considered fully compromised and require immediate remediation.
npmCompromised package - containedcritical
Malware in resolve-audit
The npm package resolve-audit was compromised and distributed with malware. Any system with the package installed or running should be considered fully compromised and all secrets/keys rotated immediately from a different machine.
npmCompromised package - resolvedcritical
Malware in alphazone
The npm package alphazone contained malware that provided full system compromise to attackers. Any computer with the package installed or running should be considered fully compromised.
npmCompromised package