Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in @depup/aws-sdk__credential-provider-process (npm)

@depup/aws-sdk__credential-provider-process is a malicious npm package that impersonates the official @aws-sdk/credential-provider-process by preserving AWS metadata while injecting code to intercept and exfiltrate AWS credentials. The package injects a hook into the credential materialization path that can observe or replace the output of AWS credential_process execution.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any developer or system using @depup/aws-sdk__credential-provider-process as a dependency, with potential access to AWS credentials of affected systems.
Ecosystems
Attack vectors
Affected entities
  • @depup/aws-sdk__credential-provider-processMalicious npm package impersonating official AWS SDK package

@depup/aws-sdk__credential-provider-process is a republished fork of the official @aws-sdk/credential-provider-process package designed to impersonate the legitimate AWS SDK package. It preserves AWS author, homepage, and repository metadata to present itself as a drop-in variant, while shipping malicious modified code in the credential handling path.\n\nThe attack works by intercepting the credential_process execution through an externalDataInterceptor?.getTokenRecord?.().exec hook sourced from '@smithy/core/config' before falling back to node:child_process.exec. This allows a coordinated malicious variant of @smithy/core in the dependency graph to supply an exec function that can observe or replace the output of the user's configured AWS credential_process, yielding the installer's live AWS credentials.\n\nThe upstream official AWS package invokes child_process.exec directly without such hooks. The addition of this interception point represents a novel attack vector injected into a credential-handling code path by a non-AWS publisher impersonating AWS metadata.\n\nThis incident was identified and credited to the OpenSSF malicious-packages project.

Indicators of compromise

Packages
  • @depup/aws-sdk__credential-provider-process

Remediation

  • Immediately remove @depup/aws-sdk__credential-provider-process from all projects and dependencies
  • Replace with the official @aws-sdk/credential-provider-process package from AWS
  • Audit npm package.json and lock files for any presence of @depup/aws-sdk__credential-provider-process or related @depup/* packages
  • If the package was installed, rotate all AWS credentials that may have been exposed
  • Review AWS CloudTrail logs for any unauthorized API activity during the period the malicious package was installed
  • Implement dependency scanning and verification tools to detect typosquatting and impersonation attacks
  • Use npm audit and supply chain security tools to identify similar malicious packages

Sources

  1. GitHub Advisory GHSA-f2wr-82xc-8pmq · GitHub Advisory Database

Cite this entry

"Malicious code in @depup/aws-sdk__credential-provider-process (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 7, 2026; last updated August 7, 2026. https://supplychainattack.org/incident/malicious-code-in-depup-aws-sdk-credential-provider-process-npm-f09jhh

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 @finaxis/common-js (npm)

    The npm package @finaxis/common-js was published with a README and keywords copied from lodash v4.18.1, but contained a heavily obfuscated Xelis (XEL) proof-of-work cryptominer instead of lodash functionality. Consumers installing this package would unknowingly run a covert CPU/GPU miner on their systems.

    npmCompromised packageTyposquatting
  2. resolvedcritical

    Malicious code in akamai-sensor (npm)

    A malicious npm package named akamai-sensor impersonated Akamai's legitimate sensor_data anti-bot SDK. The package contained hidden JavaScript code concealed using invisible Unicode characters and implemented a dynamic command-and-control channel via a Google Calendar dead-drop, enabling arbitrary code execution on installation.

    npmCompromised packageTyposquatting
  3. resolvedcritical

    Malicious code in depcruise-wrap-stream-in-html (npm)

    depcruise-wrap-stream-in-html@99.9.1 is a malicious npm package that mimics an internal helper of dependency-cruiser. It is a hollow package that downloads and executes arbitrary code from a Google Cloud Storage bucket during installation.

    npmCompromised packageDependency confusionTyposquatting
  4. containedcritical

    Malicious code in @polymarkets/clob-client-v2 (npm)

    @polymarkets/clob-client-v2 (npm) is a malicious package that typosquats the legitimate @polymarket scope and redirects its inquirer dependency to a lookalike npm registry (registrynpmjs.to) to deliver arbitrary code execution during installation and on first require.

    npmTyposquattingCompromised packageDependency confusion