Malicious code in @onescience/onecode (npm)
The npm package @onescience/onecode contains malicious code in its postinstall hook that downloads and executes an arbitrary binary from a hardcoded IP address without TLS certificate verification or integrity checks. This allows an attacker controlling the remote host or a network attacker to execute arbitrary code on the installer's machine. The package mimics another unrelated project and uses misleading naming conventions. Multiple specific versions of @onescience/onecode 1.14.50-202607161038 through 1.14.50-202608061753 are affected.
AI Analysis
Technical Summary
The @onescience/onecode npm package's postinstall hook runs a function that downloads a tarball from a hardcoded bare IPv4 address over HTTPS with TLS verification disabled (rejectUnauthorized: false). The tarball is extracted and an executable is installed and invoked. No hash or signature verification is performed on the downloaded artifact. The download source is not a publisher-owned domain but a bare IP on a non-standard port, enabling arbitrary code execution if the remote host or network is compromised. The package name and launcher mimic an unrelated project 'opencode', using environment variables and asset directories referencing 'opencode' while retrieving payloads from an unrelated IP endpoint. This behavior constitutes a supply chain malicious package threat.
Potential Impact
Any user installing affected versions of @onescience/onecode will execute arbitrary code controlled by the attacker hosting the payload. This can lead to full compromise of the installer's environment. The lack of TLS certificate verification and absence of artifact integrity checks allow man-in-the-middle or remote host compromise to inject malicious payloads. The threat affects all users of the specified versions of the package.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the affected versions of @onescience/onecode listed. Verify package authenticity before installation and consider using package integrity verification tools. Monitor for updates from the package publisher or npm advisories for official fixes. Since no patch information is available, patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in @onescience/onecode (npm)
Description
The npm package @onescience/onecode contains malicious code in its postinstall hook that downloads and executes an arbitrary binary from a hardcoded IP address without TLS certificate verification or integrity checks. This allows an attacker controlling the remote host or a network attacker to execute arbitrary code on the installer's machine. The package mimics another unrelated project and uses misleading naming conventions. Multiple specific versions of @onescience/onecode 1.14.50-202607161038 through 1.14.50-202608061753 are affected.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @onescience/onecode npm package's postinstall hook runs a function that downloads a tarball from a hardcoded bare IPv4 address over HTTPS with TLS verification disabled (rejectUnauthorized: false). The tarball is extracted and an executable is installed and invoked. No hash or signature verification is performed on the downloaded artifact. The download source is not a publisher-owned domain but a bare IP on a non-standard port, enabling arbitrary code execution if the remote host or network is compromised. The package name and launcher mimic an unrelated project 'opencode', using environment variables and asset directories referencing 'opencode' while retrieving payloads from an unrelated IP endpoint. This behavior constitutes a supply chain malicious package threat.
Potential Impact
Any user installing affected versions of @onescience/onecode will execute arbitrary code controlled by the attacker hosting the payload. This can lead to full compromise of the installer's environment. The lack of TLS certificate verification and absence of artifact integrity checks allow man-in-the-middle or remote host compromise to inject malicious payloads. The threat affects all users of the specified versions of the package.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the affected versions of @onescience/onecode listed. Verify package authenticity before installation and consider using package integrity verification tools. Monitor for updates from the package publisher or npm advisories for official fixes. Since no patch information is available, patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10717
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cf8ebf8831d5391aea81
Added to database: 08/06/2026, 18:16:46 UTC
Last enriched: 08/06/2026, 18:41:27 UTC
Last updated: 08/06/2026, 21:21:35 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.