Gemini Guide

Security checks across static analysis, malware telemetry, and agentic risk

Overview

This is a benign instruction-only Gemini API guide, but following its examples may install Google’s SDK and send API keys, files, or cached documents to Google.

This skill appears safe as an instruction-only Gemini API reference. Before following the examples, use secure secret handling for API keys, install packages from trusted sources, and avoid uploading or caching sensitive files unless you understand Google Gemini’s data handling and retention terms.

Static analysis

No static analysis findings were reported for this release.

VirusTotal

VirusTotal findings are pending for this skill version.

View on VirusTotal

Risk analysis

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

If the user follows the example, their environment will install a third-party SDK package.

Why it was flagged

The guide recommends installing an external Python package. This is expected for a Gemini API guide, but users should install from trusted package sources and manage versions appropriately.

Skill content
pip install google-genai   # 官方 SDK
Recommendation

Install the SDK from a trusted package index, consider pinning versions in projects, and review dependency policies for production environments.

What this means

Users need a Google/Gemini API key to run the examples, and that key can authorize API usage and billing depending on the account configuration.

Why it was flagged

The example uses a Gemini API key. This credential use is purpose-aligned and shown as a placeholder, with no artifact evidence of hardcoded secrets, logging, or unrelated credential access.

Skill content
client = genai.Client(api_key="YOUR_API_KEY")
Recommendation

Store API keys in environment variables or a secrets manager rather than hardcoding them, and use least-privilege keys where available.

What this means

If users copy these examples with real files, images, video, or audio may be sent to Google’s Gemini service.

Why it was flagged

The guide shows uploading local media files to the Gemini provider. This is expected for multimodal Gemini usage, but it can transmit user-controlled local content to an external service.

Skill content
video_file = client.files.upload(file="video.mp4")
Recommendation

Only upload files you are permitted to share with the provider, and review provider data handling terms for sensitive or regulated content.

What this means

Documents supplied for caching may remain available to the Gemini service for the cache lifetime and could be reused in follow-up prompts.

Why it was flagged

The guide demonstrates provider-side context caching for a large document. This is purpose-aligned for cost reduction, but cached content may persist for the configured TTL and be reused in later requests.

Skill content
client.caches.create(model="gemini-2.0-flash", contents=[large_document], ... ttl="3600s")
Recommendation

Avoid caching sensitive documents unless the provider terms and retention settings are acceptable, and keep TTLs as short as practical.