security-guardian

Solid

CLI security expert for RTK - command injection, shell escaping, hook security

AI & Automation 62,019 stars 3821 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 90/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Security Guardian Comprehensive security analysis for RTK CLI tool, focusing on **command injection**, **shell escaping**, **hook security**, and **malicious input handling**. ## When to Use - **Automatically triggered**: After filter changes, shell command execution logic, hook modifications - **Manual invocation**: Before release, after security-sensitive code changes - **Proactive**: When handling user input, executing shell commands, or parsing untrusted output ## RTK Security Threat Model RTK faces unique security challenges as a CLI proxy that: 1. **Executes shell commands** based on user input 2. **Parses untrusted command output** (git, cargo, gh, etc.) 3. **Integrates with Claude Code hooks** (rtk-rewrite.sh, rtk-suggest.sh) 4. **Routes commands transparently** (command injection vectors) ### Threat Categories | Threat | Severity | Impact | Mitigation | |--------|----------|--------|------------| | **Command Injection** | ๐Ÿ”ด CRITICAL | Remote code execution | Input validation, shell escaping | | **Shell Escaping** | ๐Ÿ”ด CRITICAL | Arbitrary command execution | Platform-specific escaping | | **Hook Injection** | ๐ŸŸก HIGH | Hook hijacking, command interception | Permission checks, signature validation | | **Malicious Output** | ๐ŸŸก MEDIUM | RTK crash, DoS | Robust parsing, error handling | | **Path Traversal** | ๐ŸŸข LOW | File access outside filters/ | Path sanitization | ## Security Analysis Workflow ### 1. Threat Identification **Questions to ask** for every ...

Details

Author
rtk-ai
Repository
rtk-ai/rtk
Created
4 months ago
Last Updated
today
Language
Rust
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content โ€” not just same category

AI & Automation Solid

secure-code-guardian

Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities โ€” including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.

9,854 Updated 3 weeks ago
Jeffallan
AI & Automation Listed

secure-code-guardian

Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities โ€” including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.

7 Updated 2 days ago
ankurCES
AI & Automation Listed

command-injection

Detect OS command injection via shell execution sinks where user-controlled input reaches system commands without proper sanitization.

0 Updated today
Liaabnormal676