AI engineering glossary · Evals guardrails AI security

What is improper output handling?

Improper output handling (also called insecure output handling): An OWASP-listed risk where an application trusts and uses model output without checking it, so the output can trigger issues such as script injection, unsafe commands or malformed data in downstream systems. Treat model output like untrusted user input.

Level: intermediateTopic: Evals guardrails AI security

Improper output handling: an example

A chat app inserts model text directly into a web page and an injected script tag in the reply runs in the visitor's browser.

Related terms

More Evals guardrails AI security terms

Where you learn it

Improper output handling is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.