Malicious code in rs-lookout-sandbox-poc (npm)
Description
The npm package rs-lookout-sandbox-poc version 1.0.1 contains malicious code that, upon being loaded, automatically collects the local system username and sends it to an external third-party URL. Additionally, it performs reconnaissance on the AWS Instance Metadata Service by attempting to retrieve an IMDSv2 token and enumerating IAM role credentials associated with the host. These actions occur without any explicit invocation by the user.
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 rs-lookout-sandbox-poc npm package version 1.0.1 includes malicious behavior triggered immediately upon module load. The package reads the local operating system username via os.userInfo().username and sends this information via an HTTPS GET request to a hardcoded external collector endpoint at https://webhook.site/553dad0e-c841-46a8-b07d-213b52a24686/. Concurrently, it performs AWS Instance Metadata Service (IMDS) reconnaissance by issuing a PUT request to obtain an IMDSv2 session token from 169.254.169.254/latest/api/token and then a GET request to enumerate IAM security credentials from /latest/meta-data/iam/security-credentials/. These actions occur automatically without user interaction, indicating the package is designed to exfiltrate sensitive environment information stealthily.
Potential Impact
The malicious code exposes the local system username to an anonymous external endpoint, potentially compromising user privacy. More critically, the AWS IMDS reconnaissance attempts to retrieve IAM role credentials, which could lead to unauthorized access to AWS resources if exploited further. This behavior risks credential leakage and unauthorized cloud resource access on hosts running this package.
Mitigation Recommendations
No official patch or remediation is currently documented for this package version. Users should avoid installing or using rs-lookout-sandbox-poc version 1.0.1. Remove the package from any environments where it is present. Monitor for unexpected network connections to unknown external endpoints, especially those resembling the described webhook URL. Consider restricting outbound network access for build or runtime environments to prevent data exfiltration. Check vendor advisories or npm security advisories for updates or removal notices.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-18109
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6ad7ec532cdf04f6566ba2d8
Added to database: 10/20/2026, 22:33:55 UTC
Last enriched: 10/20/2026, 22:45:27 UTC
Last updated: 10/20/2026, 22:45:27 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.
External Links
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.