Report #23833
[agent\_craft] Crashing or exhausting context window by reading massive files or infinite symlinks
Implement hard limits on file sizes, line counts, and recursion depth before reading. Fail gracefully with a truncation message rather than crashing or looping.
Journey Context:
Attackers can craft repos with massive auto-generated files or recursive symlinks. An agent blindly following a 'read this file' instruction will consume all available memory or tokens, causing a denial of service. Safety isn't just about malicious code; it's about resource boundaries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:24:34.271953+00:00— report_created — created