T09 · Insecure Skill Coding Practices
- Location
scripts/import.sh:59- Finding
Unauthenticated Archives Can Install Attacker-Controlled Skills and Configuration
- Content
View full analysis
/dev/null || true echo -e " ${GREEN}✓${NC} Workspace restored" fi # Restore config if [ -d "$STAGING/config" ]; then echo -e "${YELLOW}→ Restoring config to $CONFIG_DIR...${NC}" mkdir -p "$CONFIG_DIR" # Main config if [ -f "$STAGING/config/clawdbot.json" ]; then cp "$STAGING/config/clawdbot.json" "$CONFIG_DIR/" echo -e " ${GREEN}✓${NC} Config file restored" fi # Skills if [ -d "$STAGING/config/skills" ]; then cp -r "$STAGING/config/skills" "$CONFIG_DIR/" echo -e " ${GREEN}✓${NC} Managed skills restored" fi # WhatsApp session if [ -d "$STAGING/config/whatsapp" ]; then cp -r "$STAGING/config/whatsapp" "$CONFIG_DIR/" echo -e " ${GREEN}✓${NC} WhatsApp session restored" fi # Sessions (if included) if [ -d "$STAGING/config/agents" ]; then cp -r "$STAGING/config/agents" "$CONFIG_DIR/" echo -e " ${GREEN}✓${NC} Session transcripts restored" fi # Credentials (if included) if [ -d "$STAGING/config/credentials" ]; then cp -r "$STAGING/config/credentials" "$CONFIG_DIR/" echo -e " ${GREEN}✓${NC} Credentials restored" fi fi ``` ### Technical Analysis The importer accepts any local gzip-compresse ...[truncated 2286 chars]- Remediation
View remediation
