ai-provider-google-gemini-sdk
Pass
Audited by Gen Agent Trust Hub on Sep 20, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill facilitates the ingestion of untrusted data from multiple external sources, which creates a vulnerability surface for indirect prompt injection.
- Ingestion points: The skill uses
fs.readFileSyncfor local images and PDFs,ai.files.uploadfor large media files, andcreatePartFromUrifor external URLs (inexamples/multimodal.md), as well as the built-ingoogleSearchtool (inexamples/tools.md). - Boundary markers: Although inputs are structured using SDK-specific objects (
Part,Content,inlineData), the examples do not include explicit boundary markers or instructions to the model to ignore embedded commands within the processed data. - Capability inventory: The agent is granted capabilities to perform network searches (
googleSearch), execute code via the Gemini API (codeExecution), and manage files, which could be exploited if a malicious payload is processed. - Sanitization: The skill promotes the use of Zod for structured output validation, but lacks equivalent guidance for sanitizing or escaping external inputs before passing them to the model.
- [PROMPT_INJECTION]: In
examples/advanced.md, the documentation explains how to setsafetySettingsthresholds toBLOCK_NONE. While this is a legitimate configuration for backend analysis and is accompanied by a caution for user-facing applications, instructions to disable safety filters are a known pattern for overriding AI behavior constraints. - [EXTERNAL_DOWNLOADS]: The skill documentation references several external Node.js packages, including the official
@google/genaiSDK and data validation libraries likezod. These references are standard for the skill's purpose and involve well-known, trusted organizations.
Audit Metadata