Securing multimodal AI with NeMo Guardrails and vision models
Text-only guardrails can't see PII or prompt injections embedded in images, so using a vision model as a NeMo Guardrails input judge closes that gap: separate PII and prompt-injection judges each screen the image against their own policy prompt and block unsafe requests before the main model runs. The setup uses open-weight models (Gemma 3 4B, Qwen3-VL-8B) with a single ConfigMap on OpenShift AI or Ollama locally, and several silent failure modes matter: the judge prompt must be a bare {{ user_input }} to keep the image attached, the general prompt must be overridden so images reach the main model, thinking judges need a large max_tokens budget or they fail closed on everything, and the policy must not let the user's message excuse instructions inside the image. Results on synthetic test images were strong for injection detection (8/8, 5/5) but showed a missed employee badge and false positives on redacted forms.
Related posts
- Welcoming Llama Guard 4 on Hugging Face Hub
Hugging Face mediumAdeptLlama Guard 4 is a 12B dense multimodal safety classifier pruned from Llama 4 Scout by dropping all routed MoE experts and keeping only the shared expert, then post-trained on 3:1 text-to-multimodal data. It flags 14 MLCommons hazard categories plus code interpreter abuse in both prompts and model responses, fits on a single 24 GB GPU, and lets users exclude categories through the chat template. Compared with Llama Guard 3 it gains notably on multi-image inputs (+20% recall, +17% F1), while multilingual performance is flat. Meta also released Llama Prompt Guard 2 classifiers (86M and 22M) for binary jailbreak and prompt-injection detection, with transformers code examples for both.
- Nemotron 3.5 Content Safety: Customizable Multimodal Safety for Global Enterprise AI
Hugging Face easyNoviceNemotron 3.5 Content Safety is a 4B-parameter guard model, a LoRA fine-tune of Gemma 3 4B IT, that classifies a user prompt, an optional image and an optional assistant response together in one pass. It adds natural-language custom policies (category suppression and injection) and an optional THINK mode that emits short auditable reasoning traces. Those traces were distilled in two steps: Qwen 397B generated label-conditioned chains of thought, then Qwen 80B compressed them to three sentences or fewer. The model averages about 85% across multilingual and multimodal benchmarks and 96.5% on Multilingual Aegis across 12 languages, keeps Nemotron 3's latency when THINK mode is off, and ships with an open training dataset built largely on real photographs.
- AprielGuard: A Guardrail for Safety and Adversarial Robustness in Modern LLM Systems
Hugging Face mediumAdeptAprielGuard is an 8B-parameter guardrail model from ServiceNow that classifies 16 categories of safety risk and flags adversarial attacks such as jailbreaks and prompt injections. It works on standalone prompts, multi-turn conversations and agentic workflows that include tool calls, memory and reasoning traces. It is trained on synthetic data with noise augmentation and on agentic traces where individual components were deliberately corrupted. It runs in either a reasoning mode that explains its decisions or a fast classification-only mode. Benchmarks show strong F1 on most public safety and jailbreak sets but weak recall on some prompt-injection sets (around 0.52–0.57). On 32k-token inputs, reasoning mode raises adversarial recall from 0.78 to 0.94 but increases the false-positive rate to about 0.10.
- 4M Models Scanned: Protect AI + Hugging Face 6 Months In
Hugging Face easyNoviceSix months into the Hugging Face partnership, Protect AI's Guardian has scanned 4.47 million model versions across 1.41 million Hub repositories and flagged 352,000 unsafe or suspicious issues in 51,700 models. It serves 226 million requests a month at about 8 ms response time. Four new detection modules cover archive slip, Joblib code execution, TensorFlow SavedModel architectural backdoors and malicious llamafiles. Recurring attack themes are library-dependent call chains (e.g. torchvision.io file overwrites), payloads hidden through compression and nested archives, framework-extensibility exploits such as Keras CVE-2025-1550, and chained attack vectors, all handled under a zero-trust stance that treats any arbitrary code execution as suspicious.
- Designing AI agents to resist prompt injection
OpenAI easyNovice
Real-world prompt injection against AI agents increasingly resembles social engineering rather than simple instruction overrides, so input-classifying "AI firewalls" largely fail. Detecting such attacks becomes as hard as detecting lies, often without the needed context. OpenAI therefore treats agents like human customer-support staff: assume some manipulation will succeed and constrain its impact with deterministic controls. In ChatGPT this pairs safety training with source-sink analysis and a mechanism called Safe Url, which detects when conversation data would be sent to a third party and either asks the user to confirm or blocks the action. The same approach covers Atlas, Deep Research, Canvas and Apps sandboxes, and the recommendation is to give agents the controls a human in the same role would have.