security-guardian
FeaturedCLI security expert for RTK - command injection, shell escaping, hook security
AI & Automation 79,919 stars
5056 forks Updated today Apache-2.0
Install
Quality Score: 90/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
- today
- Language
- Rust
- License
- Apache-2.0
Integrates with
Similar Skills
Semantically similar based on skill content โ not just same category
AI & Automation Featured
security-awareness
Security best practices for safe command execution, URL handling, credential management, and supply chain safety. Guidance on avoiding common attack vectors like reverse shells, command injection, and malware distribution.
300 Updated yesterday
gendigitalinc AI & Automation Listed
security-sentinel
Security sentinel that analyzes ASTs for injection risks, verifies file path sandboxing, and prevents command tampering.
2 Updated 1 weeks ago
CardSorting Code & Development Listed
security-guard
Basic guardrails for agents. Injection checks, secret scanning, sandboxing.
3 Updated today
TheElephantCoder