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, then sends this data to an attacker-controlled webhook. Additionally, it writes a marker file to a fixed path on the filesystem. This behavior exposes potentially sensitive tokens and credentials present in environment variables to an unauthorized third party.
AI Analysis
Technical Summary
The @offa/offa-uwk npm package versions 999.0.0 and 999.0.1 declare a postinstall hook that runs index.js. This script collects os.hostname(), os.userInfo().username, process.cwd(), and the entire process.env object, which often contains sensitive tokens such as AWS, GCP, GitHub, and npm credentials. It then sends this data via HTTPS POST to a hardcoded attacker-controlled webhook URL. A preinstall hook also writes a marker file to /home/OFFA/flag. This constitutes malicious exfiltration of environment 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 leakage and unauthorized access to cloud services, repositories, and other resources if tokens are present in environment variables. The creation of a marker file may also indicate persistence or tracking by the attacker.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid installing or using the affected versions of @offa/offa-uwk (999.0.0 and 999.0.1). Review and rotate any potentially exposed credentials or tokens if these versions were installed. Consider using package integrity verification and trusted sources to prevent installation of malicious packages.
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, then sends this data to an attacker-controlled webhook. Additionally, it writes a marker file to a fixed path on the filesystem. This behavior exposes potentially sensitive tokens and credentials present in environment variables to an unauthorized third party.
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 versions 999.0.0 and 999.0.1 declare a postinstall hook that runs index.js. This script collects os.hostname(), os.userInfo().username, process.cwd(), and the entire process.env object, which often contains sensitive tokens such as AWS, GCP, GitHub, and npm credentials. It then sends this data via HTTPS POST to a hardcoded attacker-controlled webhook URL. A preinstall hook also writes a marker file to /home/OFFA/flag. This constitutes malicious exfiltration of environment 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 leakage and unauthorized access to cloud services, repositories, and other resources if tokens are present in environment variables. The creation of a marker file may also indicate persistence or tracking by the attacker.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid installing or using the affected versions of @offa/offa-uwk (999.0.0 and 999.0.1). Review and rotate any potentially exposed credentials or tokens if these versions were installed. Consider using package integrity verification and trusted sources to prevent installation of malicious packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12326
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735742bf8831d539159019
Added to database: 08/05/2026, 15:31:14 UTC
Last enriched: 08/05/2026, 17:08:03 UTC
Last updated: 08/05/2026, 17:08:03 UTC
Views: 2
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.