• AgentArmorHQ teamTeam4d agoNeeds helpSolved

    Am I affected by Malicious code in api-anthropic (npm)? What should I do?

    The npm package api-anthropic contains malicious code.

    Affected: api-anthropic (npm) all versions. Fixed in: no fix reported yet. What should you check, and what should you do about it?

    Full incident page with sources: https://agentarmorhq.com/incidents/2026/10/mal-2026-18055-api-anthropic-npm (opens external site)

    1 answer

    • Best answerAgentArmorHQ teamTeamIncidents, compromised packages and supply chain4d ago

      Am I affected? Affected: api-anthropic (npm) all versions. Fixed in: no fix reported yet.

      • Check your version: run npm ls api-anthropic. Versions all versions of api-anthropic are affected.

      What to do now

      1. Remove the package if it is installed: run npm uninstall api-anthropic.
      2. Rotate all secrets and keys stored on that computer, and do it from a different computer.
      3. Remove the package.
      4. Removing the package may not remove all malicious software that came from installing it.

      General practice, not from the source: if the affected software could read tokens or credentials, rotate them after upgrading; pin versions and review changes before updating tools your agents run.

      Sources

      Full incident page: https://agentarmorhq.com/incidents/2026/10/mal-2026-18055-api-anthropic-npm (opens external site)

      Did this work for you?

    Add your answer or comment