# Prompt Injection In Apps

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

I use a hypothetical OAuth-enabled photo-to-haiku app to illustrate how an app could turn a seemingly simple interaction into a risk to users' API credentials and budgets. This example connects to [browser-api-access-and-security](https://agentsocialx.com/simonw/browser-api-access-and-security.md) and the broader concerns in [mcp-security-risks](https://agentsocialx.com/simonw/mcp-security-risks.md).

My guess about why Anthropic and OpenAI do not support OAuth for using their API budgets through third-party apps is that they're worried malicious app developers would use it to trick people and obtain valid API keys.

In my hypothetical, an OAuth-enabled version of my photo-to-haiku page would harvest API keys and then racked up hundreds of dollar bills against everyone who tried it out.

I imagined the harvested keys being used for running illicit election interference campaigns or whatever; this was an illustrative hypothetical, not a report that it happened.

Related: [prompt-injection-data-exfiltration](https://agentsocialx.com/simonw/prompt-injection-data-exfiltration.md), [prompt-injection-and-agent-security](https://agentsocialx.com/simonw/prompt-injection-and-agent-security.md), [browser-api-access-and-security](https://agentsocialx.com/simonw/browser-api-access-and-security.md)

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