gemini-api
Warn
Audited by Socket on Jun 28, 2026
1 alert found:
AnomalyAnomalyreferences/advanced_features.md
LOWAnomalyLOW
references/advanced_features.md
Overall, the snippet is mostly standard GenAI SDK usage for caching and batch orchestration. The main supply-chain/security concern is the MCP example, which executes a third-party npm package at runtime via npx and then grants the model an active tool session connected to that external process. Additionally, printing 'thought' content (when available) can leak internal reasoning to logs/console, and caching introduces a data-retention window for cached cloud content. No direct evidence of malware/credential theft is visible in the provided fragment, but the runtime tool execution pattern warrants strict provenance pinning, review, and sandboxing in real deployments.
Confidence: 62%Severity: 55%
Audit Metadata