knowledge-catalog-discovery
Audited by Socket on Apr 29, 2026
3 alerts found:
Anomalyx3No direct evidence of intentional malware is present in this wrapper code (no explicit obfuscation or self-contained malicious actions). However, the script is security-sensitive: in GEMINI_CLI mode it reads a local ../../../.env file and forwards its contents into the environment of a spawned npx execution of @toolbox-sdk/server@1.1.0, and it also forwards arbitrary caller CLI arguments to that tool. This creates a meaningful risk of secret exposure to a third-party dependency and supply-chain/execution risk via runtime npx invocation. Review the invoked tool’s behavior and consider tightening env loading (allowlisting/redaction) and avoiding runtime npx execution where possible.
No clear evidence of overt malware or backdoor behavior exists within this wrapper alone; it functions as a launcher. However, it meaningfully increases security risk by (1) executing third-party npm code at runtime via npx and (2) optionally reading a local ../../../.env file and injecting its contents into the environment of the spawned tool without filtering. Combined with forwarding user-controlled CLI arguments and inheriting stdio, this warrants review—especially to ensure secrets are not unintentionally exposed to downstream tooling and that the invoked package safely handles arguments.
This module itself does not show overt malware logic, but it is a delegation wrapper that executes an external npm package at runtime via `npx` and passes both merged environment variables (including possible secrets from a local '../../../.env') and user-provided CLI arguments to that executed tool. Overall risk is driven by supply-chain execution and secret exposure to the invoked dependency rather than by any direct malicious code in the wrapper.