
security
by KvFxKaido
Tactical, Relationship-Driven TTRPG with AI Game Master - 11 factions, narrative choices, consequence tracking
SKILL.md
name: security description: Run security scans and vulnerability analysis using Gemini's security extension. Scan dependencies, generate PoCs, and document findings. allowed-tools: Bash, Read, Glob, Write user-invocable: true proactive: false
Security Review
Run security scans and vulnerability analysis using Gemini CLI's security extension. Supports dependency scanning, vulnerability PoC generation, and security note documentation.
Usage
/security scan <path> # Full security scan of directory
/security deps # Scan dependencies for known CVEs
/security poc <vulnerability> # Generate PoC for a vulnerability
/security note <finding> # Document a security finding
Available Commands
Branch Analysis
Analyze code changes on the current branch for security issues:
gemini -e security "security:analyze"
This compares your current branch against the base branch and scans all changes for:
- Common security vulnerabilities
- Privacy violations
- Injection flaws
- Authentication issues
Best used after making changes, before committing or opening a PR.
GitHub PR Analysis
For CI/CD integration with GitHub Actions:
gemini -e security "security:analyze-github-pr"
Only for use with the run-gemini-cli GitHub Action. Analyzes PR diffs automatically.
Dependency Scanning
Scan project dependencies for known vulnerabilities (CVEs):
gemini -e security "scan_deps"
gemini -e security "security:scan_deps"
Run from the project root or specify a path. Checks:
- Python:
requirements.txt,pyproject.toml,setup.py - Node:
package.json,package-lock.json - Other package managers as supported
Security Notes
Create or append to security documentation:
gemini -e security "security:note-adder <description>"
Use this to document:
- Identified vulnerabilities
- Risk assessments
- Remediation recommendations
- False positive notes
Proof of Concept Generation
[Experimental] Generate a PoC for a specific vulnerability:
gemini -e security "security:poc <vulnerability_description>"
Use responsibly for:
- Validating reported vulnerabilities
- Testing remediation effectiveness
- Security research and education
Workflow
Quick Dependency Check
/security deps
Runs scan_deps on the current project and reports any known CVEs.
Full Directory Review
/security scan sentinel-campaign
- Scans dependencies in the target directory
- Analyzes code for common vulnerability patterns:
- Injection flaws (SQL, command, path traversal)
- Authentication/authorization issues
- Sensitive data exposure
- Insecure deserialization
- SSRF, XSS, CSRF patterns
- Documents findings with
security:note-adder
Investigate Specific Vulnerability
/security poc "path traversal in wiki_adapter.py update_wiki function"
Generates a proof-of-concept to validate the vulnerability.
Step-by-Step: Full Scan
-
Scan dependencies first:
gemini -e security "scan_deps" -
Review code for patterns: Ask Gemini to analyze specific files or directories:
gemini -e security "Review sentinel-campaign/src/sentinel_campaign/tools/ for security vulnerabilities including injection, path traversal, and access control issues" -
Document findings:
gemini -e security "security:note-adder Found potential path traversal in update_wiki - user input used in file path without validation" -
Generate PoC if needed:
gemini -e security "security:poc path traversal in update_wiki allowing arbitrary file write"
SENTINEL-Specific Targets
Priority areas for security review:
| Component | Risk Areas |
|---|---|
sentinel-campaign/src/sentinel_campaign/tools/ | MCP tool handlers accept external input |
sentinel-campaign/src/sentinel_campaign/resources/ | Resource handlers, file reads |
sentinel-agent/src/state/manager.py | Campaign state persistence |
sentinel-agent/src/state/wiki_adapter.py | Wiki file operations |
sentinel-agent/src/tools/registry.py | Tool handler implementations |
scripts/create_character.py | YAML file writes from user input |
Common Patterns to Check
- Path Traversal: Any file path built from user input
- Command Injection: Subprocess calls with user data
- YAML/JSON Deserialization: Loading untrusted data
- MCP Tool Input: All tool parameters from external callers
- Wiki Overlays: Campaign-specific file writes
Output Location
Security notes are typically saved to:
security-notes/in the project root- Or specify a custom location
Example Session
User: /security scan sentinel-campaign
Claude: Running security scan on sentinel-campaign...
1. Dependency scan:
[runs gemini -e security "scan_deps" in sentinel-campaign/]
2. Code review:
[runs gemini -e security "Review the MCP server tools for injection and access control vulnerabilities"]
3. Findings documented to security-notes/
Results:
- 0 known CVEs in dependencies
- 2 potential issues identified:
- wiki.py:45 - path construction from user input
- tools.py:123 - campaign_id used without validation
Integration with /council
For architecture-level security review, combine with /council:
/council "Review the security architecture of sentinel-campaign MCP server"
This gets perspectives from multiple AI agents on the overall security design.
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です