security-scan

Audit Gemini CLI configurations for security vulnerabilities using AgentShield.

86|21|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/Jamkris/everything-gemini-code --skill security-scan-jamkris
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-scan
Source: https://github.com/Jamkris/everything-gemini-code/tree/main/skills/security-scan
Command: npx skills add https://github.com/Jamkris/everything-gemini-code --skill security-scan-jamkris

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit Gemini CLI configurations for security vulnerabilities across GEMINI.md, settings.json, MCP configurations, hooks, and agent definitions using AgentShield.

Core Features & Use Cases

  • Scans GEMINI.md for secrets or prompt injection patterns
  • Checks .gemini/settings.json and mcp.json for risky permissions and server exposure
  • Alerts on dangerous hooks and agent access, with actionable remediation guidance

Quick Start

Run the scanner against your project’s .gemini directory to identify security risks.

Frequently Asked Questions about security-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan Gemini CLI configurations for security vulnerabilities?

To scan Gemini CLI configurations, run the security scanner against your project's .gemini directory to detect hardcoded secrets, prompt injection risks, and risky MCP servers. It audits GEMINI.md, settings.json, mcp.json, hooks, and agent definitions using AgentShield.

What types of security risks are detected in GEMINI.md and mcp.json files?

Security risks detected in GEMINI.md and mcp.json files include hardcoded secrets, prompt injection patterns, data exfiltration risks, dangerous hooks, and risky MCP server permissions. The scanner analyzes these configurations to identify exposure and provide actionable remediation guidance.

When should I run a security audit on my .gemini directory?

You should run a security audit on your .gemini directory for new projects, after modifying configurations, or as routine security hygiene. This ensures that settings.json, mcp.json, hooks, and agent definitions remain free from newly introduced vulnerabilities.

Does the AgentShield scanner check agent definitions for dangerous access?

Yes, the AgentShield scanner checks agent definitions for dangerous access and alerts on risky permissions. It audits the entire .gemini directory to identify potential security vulnerabilities and reports actionable fixes to secure your environment.

Can I get actionable remediation steps for risky permissions in settings.json?

Yes, you can get actionable remediation steps for risky permissions in settings.json. The scanner alerts on dangerous hooks and agent access, providing specific guidance to fix configuration vulnerabilities and secure your Gemini setup.

What is the best way to prevent prompt injection in Gemini agent configurations?

The best way to prevent prompt injection in Gemini agent configurations is to scan GEMINI.md and agent definitions for malicious patterns. The scanner identifies injection risks and data exfiltration attempts, reporting actionable fixes to secure your setup.