T01 · Skill Instruction Hijacking
- Location
scripts/generate_daily_memory.py:53- Finding
Untrusted Discord Messages Bypass Filtering and Enter Persistent Agent Memory
- Content
View full analysis
&1 | tee -a "$LOG_FILE" else echo "[$(date)] Step 1: Skipping export (no guild ID or --skip-export)" | tee -a "$LOG_FILE" fi # Step 2: Regenerate today's memory file echo "[$(date)] Step 2: Regenerating memory for $TODAY..." | tee -a "$LOG_FILE" export DISCORD_SOUL_DB="$SQLITE_DB" export DISCORD_SOUL_MEMORY="$MEMORY_PATH" python3 "$SCRIPT_DIR/generate_daily_memory.py" "$TODAY" 2>&1 | tee -a "$LOG_FILE" ``` `scripts/generate_daily_memory.py:53-64`: ```python # Get ALL messages for the day with full content cur.execute(""" SELECT id, content, author_id, author_name, author_nickname, author_color, channel_id, channel_name, channel_category, timestamp, reactions_count, reply_to, message_type, is_pinned, attachments_count, embeds_count, mentions_count FROM messages WHERE date(timestamp) = ? ...[truncated 3622 chars]- Remediation
View remediation
