MAL-2026-6699: Malicious code in ecto-corsair-flag-7kq3mz (npm)
The npm package ecto-corsair-flag-7kq3mz (versions 1.0.0, 1.0.1, and 1.0.2) contains malicious code that executes during installation. Its postinstall.js script collects sensitive environment information and searches the filesystem for flag-like strings, then exfiltrates this data to an attacker-controlled server. The package also attempts to detect successful dependency confusion attacks. Installing this package results in unauthorized data exfiltration.
AI Analysis
Technical Summary
The ecto-corsair-flag-7kq3mz npm package uses lifecycle hooks (preinstall, install, postinstall) to run a postinstall.js script unconditionally on npm install. This script collects hostname, current working directory, user ID, and environment variables related to FLAG/CTF/NPM/REGISTRY/CI/GITHUB/RUNNER. It recursively searches directories such as /app, /workspace, /challenge, and others for strings resembling flags. The collected data is base64-encoded and sent via HTTP PUT to a remote IP address, with an additional GET request to a webhook URL. The package also checks npm_config_registry for signs of dependency confusion. Despite framing as a CTF probe, it performs unauthorized exfiltration of environment and filesystem data to an attacker-controlled endpoint.
Potential Impact
Installation of affected versions of this package results in unconsented exfiltration of potentially sensitive environment variables and filesystem contents to an attacker-controlled server. This compromises confidentiality of the host environment and any sensitive data present in searched directories. The malicious behavior occurs automatically during package installation without user consent.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing the ecto-corsair-flag-7kq3mz package, especially versions 1.0.0, 1.0.1, and 1.0.2. Review and audit dependencies before installation to prevent supply chain compromise. Monitor for and remove this package if found in existing environments. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
MAL-2026-6699: Malicious code in ecto-corsair-flag-7kq3mz (npm)
Description
The npm package ecto-corsair-flag-7kq3mz (versions 1.0.0, 1.0.1, and 1.0.2) contains malicious code that executes during installation. Its postinstall.js script collects sensitive environment information and searches the filesystem for flag-like strings, then exfiltrates this data to an attacker-controlled server. The package also attempts to detect successful dependency confusion attacks. Installing this package results in unauthorized data exfiltration.
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 ecto-corsair-flag-7kq3mz npm package uses lifecycle hooks (preinstall, install, postinstall) to run a postinstall.js script unconditionally on npm install. This script collects hostname, current working directory, user ID, and environment variables related to FLAG/CTF/NPM/REGISTRY/CI/GITHUB/RUNNER. It recursively searches directories such as /app, /workspace, /challenge, and others for strings resembling flags. The collected data is base64-encoded and sent via HTTP PUT to a remote IP address, with an additional GET request to a webhook URL. The package also checks npm_config_registry for signs of dependency confusion. Despite framing as a CTF probe, it performs unauthorized exfiltration of environment and filesystem data to an attacker-controlled endpoint.
Potential Impact
Installation of affected versions of this package results in unconsented exfiltration of potentially sensitive environment variables and filesystem contents to an attacker-controlled server. This compromises confidentiality of the host environment and any sensitive data present in searched directories. The malicious behavior occurs automatically during package installation without user consent.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing the ecto-corsair-flag-7kq3mz package, especially versions 1.0.0, 1.0.1, and 1.0.2. Review and audit dependencies before installation to prevent supply chain compromise. Monitor for and remove this package if found in existing environments. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6699
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4452d127e9c797198dfbe7
Added to database: 06/30/2026, 23:35:45 UTC
Last enriched: 06/30/2026, 23:39:38 UTC
Last updated: 06/30/2026, 23:39:38 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.