mcp-server-chart
Audited by Socket on Mar 10, 2026
2 alerts found:
AnomalyObfuscated FileThe code is a straightforward CLI wrapper that forwards a payload to an external router component. Primary risks come from: (a) the default environment-based key value which could expose credentials, (b) minimal input validation beyond 'title' and 'data', and (c) lack of robust error handling around JSON parsing and router invocation. Recommend tightening secret management (avoid defaults, require explicit config), expanding payload validation, and adding try/except around JSON parsing and router calls to provide clearer failure modes. External dependency review is essential to assess data handling, authentication, and network behavior.
This file is a thin CLI wrapper that forwards user-supplied or file-supplied JSON to an external agent via OneKeyAgentRouter.invoke. The code itself does not contain active backdoors or dynamic execution, but it exposes a significant supply-chain/data-exfiltration risk because it (1) contains a hardcoded fallback API key, (2) forwards arbitrary JSON (and thus sensitive local file contents) to an opaque external dependency, and (3) lacks error handling and thorough input validation. Recommended mitigations: remove hardcoded credentials, require explicit environment configuration, add strict schema validation and size limits for payloads, add error handling around network calls, and audit/trust the ai_agent_marketplace package and its network endpoints before use.