github
Audited by Socket on Mar 10, 2026
5 alerts found:
Obfuscated Filex5The file itself contains no classic malware constructs (no shell execution, no obfuscation, no reverse shells). The primary security concern is supply-chain and data-exfiltration risk: it blindly forwards user-supplied or file-supplied JSON to an external OneKeyAgentRouter service and includes a hardcoded default access key. Treat the external dependency and its endpoints as untrusted until audited. Recommendations: remove hardcoded keys, limit/redact forwarded fields, confirm sending of sensitive file contents, and audit the ai_agent_marketplace package and its network behavior before running in sensitive environments.
The script itself is not obviously malicious: it contains straightforward Python without obfuscation or direct exploit code. However, it is a high-risk operational wrapper because it forwards unvalidated user-provided JSON to an opaque remote agent that performs destructive actions, and the code includes a hardcoded fallback API key. The real security concern is supply-chain and authorization: review the ai_agent_marketplace package, eliminate the hardcoded key, enforce stricter payload validation, and add confirmation/dry-run controls before invoking destructive APIs.
The reviewed module itself is not directly malicious based on the contents of this file alone, but it presents a moderate security risk: it reads user-provided or local JSON files and forwards them to an external OneKeyAgentRouter service, using an environment-supplied or hardcoded access key. The most actionable concerns are the hardcoded fallback credential and the lack of payload sanitization prior to sending. Recommend auditing the ai_agent_marketplace package, removing the hardcoded default key, requiring explicit confirmation before sending local file contents, and adding stricter validation and redaction of sensitive fields before invocation.
This module is not overtly malicious by itself, but it presents a moderate supply-chain and data-exfiltration risk. The primary issues: (1) an embedded default access key in source code (secret baked-in); (2) no validation or redaction of user-supplied payloads before they are forwarded to an opaque external service; and (3) reliance on ai_agent_marketplace.OneKeyAgentRouter whose behavior is not visible here. Recommend removing hardcoded credentials, requiring explicit environment configuration, adding payload validation and optional redaction/whitelisting, and auditing the ai_agent_marketplace dependency and the remote endpoint(s) before use. If the embedded key is active, treat this as higher risk and rotate/revoke it immediately.
The module itself contains no explicit local malware constructs, but it acts as a conduit for arbitrary user-provided JSON to be sent to an external service (OneKeyAgentRouter) while embedding a hardcoded default API key. Primary risks are data exfiltration of sensitive payload contents and credential misuse due to the embedded default key and the opaque behavior of the external dependency. Mitigations: remove the hardcoded key, require explicit configuration of credentials, validate/redact payloads, and audit the ai_agent_marketplace package and remote endpoints before use.