dflow
Audited by Socket on Apr 19, 2026
2 alerts found:
AnomalySecurityThis module is a swap/order execution client that relies on a remote service to provide a base64-encoded Solana transaction. While it does not show obvious standalone malware behaviors (no dynamic execution or data theft), it creates a significant high-impact trust boundary: the code deserializes and signs a remote-provided transaction without local verification that it matches the requested parameters or enforces safety constraints. If DFLOW_API_BASE (or its upstream) is compromised or misconfigured, it could lead to unauthorized on-chain actions by the caller’s keypair. Recommended mitigations include local transaction validation/allowlisting (expected program IDs/instruction set/accounts/recipients), verifying that outputs correspond to requested mints/amounts/slippage, and tightly controlling/authenticating DFLOW_API_BASE usage.
Purpose and capabilities are largely aligned: this is a DFlow/Solana trading integration guide, not a disguised exfiltration tool. However, it is still high risk as an AI-agent skill because it enables autonomous cryptocurrency trading, uses API keys, and includes private-key-based agent examples that can trigger irreversible financial transactions.