ai_ml / README.md

Guardrails and safety

1 min read index source

Guardrails and safety

# File Covers
01 01_prompt_injection.md OWASP LLM #1 — why it can’t be sanitised away, and what actually works
02 02_guardrails_and_output_validation.md structured output, groundedness checking, layering, fail open vs closed
03 03_pii_privacy_and_compliance.md PII leak surfaces, EU AI Act as of August 2026, GDPR

The three positions

Prompt injection is not SQL injection. There’s no grammar separating instructions from data, so there’s no parameterisation. Defences are architectural: least privilege per context, server-side authorization, approval gates, egress control.

Indirect injection is the serious variant. The user is the victim, not the attacker. Any agent reading email, web pages or shared documents is executing text written by a third party.

The EU AI Act’s transparency duties are live now. June 2026 amendments delayed most high-risk obligations to December 2027 and August 2028, but Article 50, GPAI enforcement powers and the penalty regime all took effect 2 August 2026.