security-guardian

Featured

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

AI & Automation 77,319 stars 4864 forks Updated yesterday 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
7 months ago
Last Updated
yesterday
Language
Rust
License
Apache-2.0

Integrates with

Similar Skills

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