gemini-cli-security
БесплатноЗапускает вложенные скриптыНе проверенAI-powered code vulnerability analysis and dependency scanning using Gemini CLI security extension patterns. Detects hardcoded secrets, injection attacks…
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Gemini CLI Security Skill
Overview
This skill adapts the Gemini CLI Security Extension's analysis methodology for the agent-studio framework. The original extension uses two MCP server patterns — a security analysis server and an OSV-Scanner integration — to provide dual-vector coverage. This skill implements equivalent analysis using native Claude Code tools (WebFetch for OSV.dev API, Grep/Bash for static analysis patterns).
Source repository: https://github.com/gemini-cli-extensions/security
License: Apache 2.0
Performance: 90% precision, 93% recall (OpenSSF CVE benchmark, TypeScript/JavaScript)
When to Use
- Before merging pull requests to detect introduced vulnerabilities
- During security reviews of new code changes
- For dependency auditing against known CVE databases
- For LLM-integrated applications requiring prompt injection defense review
- As part of CI/CD pipeline security gates
Iron Law
NO PRODUCTION CODE WITHOUT SECURITY ANALYSIS FOR AUTH/SECRETS/EXTERNAL-INPUT HANDLERS
All code paths handling authentication, hardcoded values, external input, or AI model outputs MUST be analyzed before production deployment.
Vulnerability Coverage
Category 1: Secrets Management
| Pattern | Detection Method |
|---|---|
| Hardcoded API keys | Grep for key patterns + entropy analysis |
| Hardcoded passwords | Credential keyword detection |
| Private keys in source | PEM block / base64 key detection |
| Encryption keys | Symmetric key constant patterns |
Category 2: Injection Attacks
| Attack Type | Examples |
|---|---|
| SQL injection | String concatenation in queries |
| XSS | Unescaped user content in HTML/JS output |
| Command injection | Shell exec with user-controlled args |
| SSRF | User-controlled URLs in server requests |
| Template injection | Unsanitized user input in template engines |
Category 3: Authentication Flaws
| Flaw | Detection |
|---|---|
| Session bypass | Missing auth middleware |
| Weak tokens | Predictable token generation |
| Insecure password reset | Token-less or email-only resets |
| Missing MFA enforcement | Auth flows without 2FA checks |
Category 4: Data Handling
| Issue | Detection |
|---|---|
| Weak cryptography | MD5/SHA1 for secrets; DES/RC4 usage |
| Sensitive data in logs | PII/credential patterns in log statements |
| PII violations | Unencrypted PII storage or transmission |
| Insecure deserialization | Unsafe pickle/eval/deserialize calls |
Category 5: LLM Safety (Novel)
| Risk | Detection |
|---|---|
| Prompt injection | User content injected into LLM prompts without sanitization |
| Unsafe output handling | LLM output used in exec/eval/shell without validation |
| Insecure tool integration | Tool calls with unchecked LLM-provided parameters |
Usage
Invocation
// From an agent
Skill({ skill: 'gemini-cli-security' });
// With arguments via Bash integration
Skill({ skill: 'gemini-cli-security', args: 'src/ --scan-deps' });
Workflow Execution
# Analyze code in a directory
node .claude/skills/gemini-cli-security/scripts/main.cjs --target src/
# Scan dependencies for CVEs
node .claude/skills/gemini-cli-security/scripts/main.cjs --scan-deps
# JSON output for CI integration
node .claude/skills/gemini-cli-security/scripts/main.c
Установить gemini-cli-security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashWebFetchGlobGrepВложенные файлы
FAQ
Что делает скилл gemini-cli-security?
AI-powered code vulnerability analysis and dependency scanning using Gemini CLI security extension patterns. Detects hardcoded secrets, injection attacks, weak cryptography, authentication flaws, and LLM prompt injection. Also scans dependencies against the OSV.dev vulnerability database.
Как установить скилл gemini-cli-security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gemini-cli-security запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic