Malicious code in @offa/offa-uwk (npm)
The npm package @offa/offa-uwk versions 999.0.0 and 999.0.1 contains malicious code that executes during installation. It collects sensitive environment information including hostname, username, current working directory, and all environment variables, which often contain credentials and tokens. This data is then sent to an attacker-controlled webhook. Additionally, a preinstall hook writes a marker file to a fixed path on the system.
AI Analysis
Technical Summary
The @offa/offa-uwk npm package declares a postinstall hook that runs index.js. This script collects os.hostname(), os.userInfo().username, process.cwd(), and the entire process.env object, then sends this data as a JSON payload to a hardcoded attacker-controlled webhook URL. The environment variables may include sensitive tokens for AWS, GCP, GitHub, npm, and other services. A preinstall hook also writes a marker file to /home/OFFA/flag. This behavior constitutes malicious exfiltration of sensitive data during package installation.
Potential Impact
Sensitive environment variables and system information are exfiltrated to an attacker-controlled endpoint during package installation. This can lead to credential compromise and unauthorized access to cloud services, repositories, and other resources. The presence of a marker file may indicate system compromise or persistence attempts.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should immediately uninstall the affected versions (=999.0.0 and =999.0.1) of the @offa/offa-uwk package and avoid installing it. Review environment variables and credentials for potential compromise and rotate any exposed secrets. Monitor for unauthorized access resulting from leaked tokens.
Malicious code in @offa/offa-uwk (npm)
Description
The npm package @offa/offa-uwk versions 999.0.0 and 999.0.1 contains malicious code that executes during installation. It collects sensitive environment information including hostname, username, current working directory, and all environment variables, which often contain credentials and tokens. This data is then sent to an attacker-controlled webhook. Additionally, a preinstall hook writes a marker file to a fixed path on the system.
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 @offa/offa-uwk npm package declares a postinstall hook that runs index.js. This script collects os.hostname(), os.userInfo().username, process.cwd(), and the entire process.env object, then sends this data as a JSON payload to a hardcoded attacker-controlled webhook URL. The environment variables may include sensitive tokens for AWS, GCP, GitHub, npm, and other services. A preinstall hook also writes a marker file to /home/OFFA/flag. This behavior constitutes malicious exfiltration of sensitive data during package installation.
Potential Impact
Sensitive environment variables and system information are exfiltrated to an attacker-controlled endpoint during package installation. This can lead to credential compromise and unauthorized access to cloud services, repositories, and other resources. The presence of a marker file may indicate system compromise or persistence attempts.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should immediately uninstall the affected versions (=999.0.0 and =999.0.1) of the @offa/offa-uwk package and avoid installing it. Review environment variables and credentials for potential compromise and rotate any exposed secrets. Monitor for unauthorized access resulting from leaked tokens.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12326
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735742bf8831d539159019
Added to database: 08/05/2026, 15:31:14 UTC
Last enriched: 09/12/2026, 07:02:09 UTC
Last updated: 09/12/2026, 07:02:09 UTC
Views: 18
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.