Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

MAL-2026-6699: Malicious code in ecto-corsair-flag-7kq3mz (npm)

0
High
Published: 06/30/2026 (06/30/2026, 21:00:23 UTC)
Source: GCVE Database
Product: ecto-corsair-flag-7kq3mz

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

npmghsa
ecto-corsair-flag-7kq3mz
Affected versions
=1.0.2=1.0.0=1.0.1

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

AILast updated: 06/30/2026, 23:39:38 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses