T01 · Skill Instruction Hijacking
- Location
scripts/create-skill.sh:53- Finding
Untrusted conversation content can become published Agent instructions
- Content
View full analysis
/dev/null | head -100 > "$OUTPUT_DIR/conversation.txt" || echo "Note: jq not available, using grep fallback" ``` ```bash # scripts/extract-from-history.sh:88-94 # Look for common skill patterns grep -E "(脚本|script|备份|backup|定时|cron|任务|task|自动化|automate)" "$OUTPUT_DIR/conversation.txt" | head -20 > "$OUTPUT_DIR/patterns.txt" || true if [ -s "$OUTPUT_DIR/patterns.txt" ]; then echo "Potential skill patterns found:" cat "$OUTPUT_DIR/patterns.txt" | head -10 fi ``` ```bash # scripts/extract-from-history.sh:106-131 # Generate summary echo "" echo "=== Summary ===" cat > "$OUTPUT_DIR/extraction-summary.md" << EOF # Extraction Summary ## Source - Session: $(basename "$SESSION_FILE") - Date: $(date) ## Extracted Files - conversation.txt - Full conversation text - patterns.txt - Identified skill patterns - code_hints.txt - Code/script references ## Next Steps 1. Review patterns.txt for skill ideas 2. Check code_hints.txt for reusable scripts 3. Run create-skill.sh to generate skill structure ## Suggested Skill Name $(basename "$OUTPUT_DIR") ## Suggested Description $(head -1 "$OUTPUT_DIR/patterns.txt" 2>/dev/null || echo "Based on conversation from $(basename "$SESSION_FILE")") EOF ``` ```bash # scripts/create-skill.sh:53-74 # Generate des ...[truncated 4008 chars]- Remediation
View remediation
