@flex-ng/header-componentnpm
Advisory published Updated
@flex-ng/header-component is a confirmed malicious npm package (MAL-2026-10223) that opens a backdoor for remote access (malicious version 0.1.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @flex-ng/header-component (npm)
What this malware does
The @flex-ng/header-component package was published to the npm registry by user 'click2ai' (maintainer email [email protected]) as part of a dependency-confusion / reconnaissance campaign. The package name mimics the internal/private package naming convention of a target organization (the @flex-ng organizational scope) so that a misconfigured resolver installs this public lookalike instead of the intended private dependency.
The package declares a preinstall hook ("npm install @sentry/node && node examples/verify.js") that executes automatically at npm install time, before any application code runs. The bundled examples/verify.js initializes the @sentry/node client against a hardcoded, attacker-controlled Sentry DSN with sendDefaultPii enabled, resolves the installing host's public egress IP address by requesting Cloudflare's /cdn-cgi/trace endpoint (using a spoofed desktop-browser User-Agent to bypass bot challenges), then deliberately triggers a runtime exception and captures it. Flushing the event beacons the collected host telemetry (public IP plus Sentry default PII such as hostname, OS username and runtime/environment metadata) to the attacker's Sentry ingest endpoint at o4510485815754752.ingest.us.sentry.io.
Each impersonated namespace in the campaign beacons to a distinct Sentry project ID, letting the operator attribute successful installs to specific victim organizations — behaviour consistent with a dependency-confusion reconnaissance beacon rather than legitimate error monitoring. The install-time payload is byte-for-byte identical across all packages published by this account, differing only in the package name and the target DSN. This package's beacon targets Sentry project 4511632071262208.
Package is published under a UI-suggestive name (@flex-ng/header-component) but ships no UI/header code — it ships only Sentry error-reporting code plus an install-time telemetry trigger. The preinstall lifecycle script in package.json runs npm install @sentry/node && node examples/verify.js. examples/verify.js fetches the installer's public IP from Cloudflare's /cdn-cgi/trace, initializes Sentry against a hardcoded author-owned DSN (o4510485815754752.ingest.us.sentry.io/4511632071262208) with sendDefaultPii: true, then deliberately triggers and flushes a captured exception. The Sentry event payload includes the installer's public IP, hostname, OS, runtime, and environment context, all transmitted to the author's ingest project on npm install without user consent or README disclosure. src/index.js additionally hardcodes the same DSN as DEFAULT_DSN, so any consumer that later calls init() without arguments silently routes their error telemetry (with PII enabled) to the same author-controlled destination. The name/purpose mismatch (header component vs. error-reporter with install-time beacon) functions as cover for unannounced install-time data collection.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Backdoor / remote accessFind it
Search your lockfiles and build artifacts for @flex-ng/header-component (version 0.1.0).
If you installed it — respond
@flex-ng/header-component establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.
Did it already run?
If @flex-ng/header-component was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
- SafeDep · finder
Detect & block this
O3 blocks @flex-ng/header-component-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.