Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malicious code in secdriven (npm)

The npm package 'secdriven' version 1.0.8 contains malicious postinstall code that exfiltrates host identity, username, working directory, and CI environment variables to a third-party OOB-detection endpoint. The package is a dependency-confusion payload targeting Google's internal namespace, masquerading as a security research canary.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any npm installer resolving the public 'secdriven' package; targets Google's internal namespace via dependency confusion.
Ecosystems
Attack vectors
Affected entities
  • secdriven · 1.0.8

The npm package 'secdriven' (version 1.0.8) was identified as malicious by both Amazon Inspector and the OpenSSF Package Analysis project. The package contains a postinstall.js script that executes on installation and performs unauthorized system reconnaissance.

Upon installation, the malicious script executes the whoami command via child_process and collects sensitive environment data including the system hostname, platform, current working directory, and CI/GitHub repository environment variables. This information is then transmitted without user consent to a hardcoded interactsh subdomain (lg5ys3jebfzwk366pilidbmah1nsbszh.oastify.com) via HTTPS GET requests under the path /google/secdriven/. A secondary exfiltration channel uses DNS lookups with the whoami output as a subdomain.

The package metadata—including its description ("Security research canary — Google") and README pointing to a Google CTF internal package.json—indicates this is a dependency-confusion attack targeting Google's internal package namespace. Any installer whose resolver picks up this public package name leaks host identity, username, working directory, and CI repository information to the attacker's OOB-detection endpoint.

Whether published as research or as an active attack, the installer-side effect is identical: unconsented identity and environment exfiltration at install time.

Indicators of compromise

Packages
  • secdriven
Domains
  • lg5ys3jebfzwk366pilidbmah1nsbszh.oastify.com

Remediation

  • Immediately uninstall the 'secdriven' package from all environments
  • Audit npm install logs and CI/CD logs for any installations of secdriven version 1.0.8 or earlier
  • Assume any system that installed this package has had its hostname, username, working directory, and CI repository information exposed
  • Review and rotate credentials for any CI/CD systems that may have been affected
  • Implement npm package allow-listing or use private registries to prevent dependency-confusion attacks
  • Monitor for suspicious outbound HTTPS connections to interactsh subdomains
  • Consider using npm audit and supply-chain security tools to detect similar malicious packages

Sources

  1. GitHub Advisory GHSA-vf52-4986-52f7 · GitHub Advisory Database

Cite this entry

"Malicious code in secdriven (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 27, 2026; last updated July 27, 2026. https://supplychainattack.org/incident/malicious-code-in-secdriven-npm-14bkri

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in sme-rko-finance-front-operations-notifications-impl (npm)

    The npm package sme-rko-finance-front-operations-notifications-impl contained malicious code that executed platform-specific payloads fetched from attacker-controlled infrastructure upon installation. The package used obfuscation and dependency-confusion tactics to evade detection and mimic internal naming conventions.

    npmCompromised packageDependency confusion
  2. containedcritical

    Malicious code in sme-rko-finance-front-payments-currency-payment-domain (npm)

    A malicious npm package named sme-rko-finance-front-payments-currency-payment-domain was published publicly, designed to mimic an internal corporate package name (dependency-confusion attack). On installation or import, the package executes arbitrary native code via multiple obfuscated loader mechanisms, establishing command-and-control communication through DNS TXT records and Cloudflare Workers.

    npmCompromised packageDependency confusion
  3. resolvedcritical

    Malicious code in consumerweb-creditcollection (npm)

    consumerweb-creditcollection@99.9.1 is a malicious npm package that uses dependency confusion to force installation of attacker-controlled code from a Google Cloud Storage bucket. The package exports an empty object but pulls in a dependency (ltidisafe) pinned to an arbitrary tarball URL outside the npm registry, bypassing security scanning.

    npmDependency confusionCompromised package
  4. resolvedcritical

    Malicious code in @united-airlines-org/atmos-design-system (npm)

    The npm package @united-airlines-org/atmos-design-system contains a malicious preinstall script that exfiltrates host reconnaissance data (hostname, directory listing, username) to an attacker-controlled endpoint. The package uses a scope name resembling an internal United Airlines organization, matching a dependency-confusion attack pattern.

    npmCompromised packageDependency confusion