Prompt Injection Defense
Hardening systems against malicious instructions. (Ref: https://en.wikipedia.org/wiki/Prompt_injection)
Lesson previews
The support agent reads customer emails, retrieves policies, and can recommend refunds. A malicious instruction appears inside a ticket body.
5 minPrompt Injection Defense BattlecardsPrompt-only objection The system prompt already says to ignore malicious instructions. A review is about to approve retrieval plus write tools. Your line Good start, but the prompt is not an authorization boundary. We still need tool gating, argument validation, and a test where untrusted text asks for the action. Letting model obedience stand in for application permission. It acknowledges the control while showing the missing layers. Sanitize-late objection We can just sanitize the final answer. The model can call tools before writing final text. Final-output sanitizing helps the user message, but tool risk happens earlier. We need pre-action validation…
5 minRelated skills
Techniques to reduce discriminatory outputs in training. (Ref: https://en.wikipedia.org/wiki/Algorithmic_bias)
Constitutional AITraining models to follow a set of safety principles (Anthropic). (Ref: https://www.anthropic.com/index/constitutional-ai)
Copyright & Fair UseUnderstanding the legal landscape of training data. (Ref: https://en.wikipedia.org/wiki/Authors_Guild,_Inc._v._Google,_Inc.)
Data Privacy (PII)Scrubbing sensitive personal data from LLM inputs. (Ref: https://en.wikipedia.org/wiki/Personal_data)
Deepfake AttributionStandards for labeling AI-generated content (C2PA). (Ref: https://c2pa.org)
EU AI Act ComplianceUnderstanding regulatory requirements for "High Risk" AI. (Ref: https://artificialintelligenceact.eu)