dflow
Audited by Socket on Aug 4, 2026
3 alerts found:
SecurityAnomalyx2SUSPICIOUS: internally consistent as a Solana trading skill, but it grants an AI agent the ability to perform real financial transactions and encourages private-key-backed automation. Data flows appear official and same-purpose, so this looks like high-impact trading functionality rather than confirmed malware.
No classic malware behaviors are evident in this module (no eval/Function, no obfuscation, no persistence, no system command execution). However, the code exhibits a significant supply-chain/trust-boundary risk: it deserializes and signs a full Solana transaction payload returned by an external service without locally verifying that it matches the requested swap parameters or expected programs/recipients. If the external API is compromised or returns unexpected transactions, the wallet can authorize and broadcast attacker-influenced on-chain actions. Treat the dependency/API as highly trusted only when integrity is assured (e.g., through strict endpoint trust, transaction validation, and allowlisted program/instruction checks).
No obvious embedded malware (no eval/dynamic execution, no local file/process activity, no explicit credential-stealing logic) is present in this snippet. However, the code carries a significant supply-chain/transaction-poisoning risk: it deserializes and signs a base64-encoded Solana transaction supplied by a third-party API without validating its contents against the intended swap parameters. If the external service is compromised or misbehaves, the user’s keypair could authorize unintended on-chain actions. This warrants adding strict local transaction validation (instruction/program allowlists, expected account/mint/amount checks) and safer trust boundaries.