Developer seeks open-source guardrails against malicious file uploads to LLM chatbots

SnooCupcakes982 · reddit · 2026-11-05

A developer on Reddit asks how to secure an LLM chatbot moving from text-only to image+text inputs against malicious file uploads and prompt injection, citing a draft 40-step pipeline: whitelisting file types (.md/.txt/.xlsx/.png/.jpeg), size limits, magic-byte type checks, rebuilding files in a secrets-free sandbox, renaming and deleting originals, and text decoding for injection checks. They find building it from scratch too costly and ask for open-source guardrail solutions, highlighting the lack of standardized tooling for file-input security in AI apps.

Original post →

More from coding & agent

coding & agent channel →