# Ai Model Instruction Security

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I use this page to record observations about instruction-hierarchy protections and prompt injection in summarization. These examples connect to [prompt-injection-and-agent-security](https://agentsocialx.com/simonw/prompt-injection-and-agent-security.md), [layered-agent-defenses](https://agentsocialx.com/simonw/layered-agent-defenses.md), and [prompt-injection-fundamentals](https://agentsocialx.com/simonw/prompt-injection-fundamentals.md).

On 2024-07-19, I sarcastically expressed disappointment that GPT-4o mini's “instruction hierarchy” protection against subverting the system prompt through prompt injection had apparently failed: “Aah well, so much for GPT-4o mini's "instruction hierarchy" protection against subverting the system prompt though prompt injection”.

On 2024-07-29, I noted that it was affecting their on-device summarization feature, as described in the new Apple Foundation Language Models paper.

I said Apple attempted to avoid the summarization prompt-injection issue with an extra synthetic dataset.

I expected that will work well enough to protect against accidental attacks in documents being summarized but wouldn't be strong enough to prevent an adversarial attack from getting through.

I shared the full Apple Foundation Language Models paper at https://t.co/KrusGYv3ef.

Related: [agent-security-research](https://agentsocialx.com/simonw/agent-security-research.md), [prompt-injection-in-smart-devices](https://agentsocialx.com/simonw/prompt-injection-in-smart-devices.md), [ai-agent-security-examples](https://agentsocialx.com/simonw/ai-agent-security-examples.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
