agentmail
Audited by Socket on Mar 6, 2026
2 alerts found:
Anomalyx2The JavaScript wrapper is benign in structure but embodies a high supply-chain risk by executing an unverified, hidden native binary with inherited stdio and the invoking user's privileges. The wrapper's behavior is expected for a CLI shim that delegates functionality to native code, however without integrity checks or visibility into the bundled binary, the package should be treated cautiously. Recommend obtaining and verifying the native binary's provenance (signed release, checksum, source or reproducible build), and auditing the binary itself before trusting this package in sensitive environments.
The code fragment is a documentation excerpt for a CLI that uses environment-based or flag-based API keys to perform authenticated requests to an external API. The primary security considerations are the handling and exposure of the API key and message payloads in logs or command history, particularly when --debug is used. There are no obvious malicious features in the snippet, but proper handling of secrets, safe logging, and input validation in the actual implementation are essential to prevent data exposure. Overall, moderate risk primarily due to potential logging of sensitive data when debugging is enabled.