"Specify clear output formats, request detailed reasoning and source citations, and use deterministic code to validate adherence to these formats."
EchoLeak's exfiltration channel was a Markdown image link in Copilot's output pointing to an attacker server. If output had been validated for unauthorized external URLs before being rendered, the data channel would have been blocked — even after the injection succeeded and even without a server-side patch.
Passing AI output directly to downstream rendering, email senders, or database writes without a validation step is one of the most common AI security gaps.
Inject and verify the output validation catches it — independently from whether the model resisted. Test with outputs containing external URLs, unexpected JSON fields, HTML, and Markdown links. Both layers (model constraint + code validation) must work independently.