@pmate/cli@0.42.2
CLI utilities for the pMate project
AI Security Review
scanned 3d ago · by lpm-firewall-aiThe CLI automatically sends HEBO_MEMORY_TOKEN to the pMate auth service on startup, before the user’s command is parsed, and stores it in a temporary session file. This is credential forwarding without a dedicated sign-in action, so the package should be blocked.
Decision evidence
public snapshot- The package exposes dist/index.js as both its CLI and main entry point.
- On CLI startup, before argument parsing, main() calls ensureManagedSession().
- ensureManagedSession() reads HEBO_MEMORY_TOKEN and sends it as a Bearer token to auth-api-v2.pmate.chat.
- The function writes that token into a temporary pmate-delegated session.json file.
- The destination is the package vendor's own authentication API, and the code treats the token as a delegated pMate session.
- The package has no install lifecycle script; the credential flow runs when the CLI starts.
Source & flagged code
9 flaggedSource appears to send environment or credential material to an external endpoint.
dist/index.jsView on unpkg · L90A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/index.jsView on unpkg · L90Findings
Affected versions and remediation
This report applies to @pmate/cli@0.42.2.
See all versions of @pmate/cli for other recorded verdicts.
- Avoid installing @pmate/cli@0.42.2. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.