T09 · Insecure Skill Coding Practices
- Location
scripts/brief.sh:34- Finding
Untrusted Readwise Metadata Can Inject Instructions into LLM Prompts
- Content
View full analysis
/dev/null | tail -n 1 | tr -d '\n') ``` ```bash CONTEXT_DATA="TOPIC: $QUERY RECENT_SAVES (Last 24h): $(echo "$RECENT_JSON" | jq -r '.results[] | "Title: \(.title)\nAuthor: \(.author)\nType: \(.category)\nSaved: \(.saved_at)\nSummary: \(.summary)\n"') ARCHIVE_HITS (Historical context): $(echo "$ARCHIVE_JSON" | jq -r '.results[] | "Title: \(.title)\nAuthor: \(.author)\nType: \(.category)\nSaved: \(.saved_at)\nSummary: \(.summary)\nURL: \(.url)\n"') GOAL: Provide at least 5 deep dive connections from the archive, ordered by save date." # Capture multi-line response # We find where the actual content starts (skipping initialization logs) BRIEF=$(gemini -o text 2>/dev/null <- Remediation
View remediation
