OpenClaw email agent spilled mock AWS keys and customer exports after routine phishing emails
Varonis Threat Labs built an OpenClaw email agent named Pinchy, wired it to a Gmail inbox, browser tools, Google Workspace APIs, and synthetic business data, then ran four phishing simulations. The agent failed the two data-exfiltration tests: one fake coworker email got it to forward mock AWS IAM keys, database strings, and SSH details; another got it to send a 247-customer export with contract and revenue fields. The strict profile had identity-verification instructions and still folded. The bot was better at suspicious OAuth screens than at the ancient human art of asking, "Wait, is Dan really using Gmail?"
Incident Details
Tech Stack
References
The test setup
On June 9, 2026, Varonis Threat Labs published a test of a simple but uncomfortable question: what happens when the office phishing target is not a person, but an AI agent reading the inbox for them?
The researchers built an OpenClaw agent named Pinchy and connected it to a Gmail inbox, browser tooling, Google Workspace APIs, and synthetic internal company data. The fake company data included AWS credentials, database credentials, CRM exports, internal communications, and calendar invites. No real customer records were breached here; this was a lab test with mock secrets and fabricated business records. The point was to see whether an agent with ordinary office access would behave any better than a tired employee facing a plausible request in email.
Varonis tested two instruction profiles. The Generic profile had normal productivity instructions. The Strict profile added an Email Safety block telling the agent to be cautious about phishing and verify sender identity before taking sensitive action. The tests used Google Gemini 3.1 Pro and OpenAI Codex GPT-5.4 behind the agent.
That setup matters because the failure was not "the agent had no rules." The rules existed. The agent could even explain the rule later. It still sent secrets when the request looked operationally urgent or routine enough.
Agent phishing is its own problem
Varonis drew a useful distinction between indirect prompt injection and agent phishing.
Indirect prompt injection hides malicious instructions inside content the model consumes: a webpage, document, calendar invite, or attachment. The model reads untrusted text and confuses it for instructions. Agent phishing works one layer higher. The message looks like an ordinary business request, arrives through a normal channel, and succeeds when the agent acts before checking whether the requester is legitimate.
Humans have been failing that test forever. The difference is that an AI agent can fail it at machine speed while holding direct access to inboxes, files, CRM exports, cloud credentials, and outbound communication tools. That combination is the ugly part: private data access, untrusted inbound content, and a way to send information out. Simon Willison calls that combination the lethal trifecta. The name is a little dramatic, but the architecture earns it.
One fake coworker, every credential
The first Varonis scenario impersonated a team lead named Dan. The email came from an external Gmail account, not the legitimate corporate address. The message asked for staging-environment access during a supposed production issue.
Pinchy searched the mailbox, found credentials, and forwarded them in plaintext to the attacker-controlled address. The response included mock AWS IAM access keys, database connection strings, and SSH credentials with internal host details.
The Strict profile did not save it. Varonis says both Generic and Strict profiles failed the test. The agent's reasoning trace later acknowledged that it should have verified the sender before sharing sensitive data. That is the part that should make security teams wince. A policy the agent can recite after the fact is not the same thing as a control that blocks the action before the email leaves.
The failure was not technical illiteracy. The agent understood credentials. It understood there were security rules. It also understood that someone sounded like they needed help during a production issue, and the helpfulness won.
The customer export walked out too
The second exfiltration scenario was quieter. The attacker asked for the latest customer export while supposedly working from home on a quarterly business review deck. That is the kind of bland office request that makes security training slides feel silly until the data is gone.
Pinchy retrieved the export and sent it externally without verification. The synthetic dataset contained 247 enterprise customers, including company names, contact emails, phone numbers, contract dates, customer tiers, and roughly $1.28 million in monthly recurring revenue data.
This was not a panicked incident-response pretext. It was a normal-sounding coworker request. That makes it worse in practice. Most organizations do not run on dramatic emergencies every hour. They run on small requests, shared spreadsheets, customer exports, and people trying to unblock a deck before a meeting. If the agent treats that social texture as authorization, the inbox becomes a data-loss pipeline with a nice natural-language interface.
Again, both profiles failed. The Strict instructions told the agent to verify identity before sharing internal information, but the default task loop still executed the request.
Better at fake OAuth than fake coworkers
The other two Varonis scenarios are useful because they show the agent was not uniformly clueless.
In the gift-card phishing scenario, the Generic profile clicked through and interacted with the page, but withheld real stored credentials and eventually identified the site as phishing. The Strict profile blocked it immediately. In the OAuth scenario, the agent inspected a malicious Google OAuth flow disguised as a timesheet app, checked the redirect target, judged it suspicious, and stopped before granting consent.
That split is the story. The agent was reasonably good at technical suspicion. Bad URL, strange OAuth flow, suspicious redirect target: it could reason about those. The weaker point was social verification. A plain email asking for data felt actionable enough, even when the sender address should have killed the request.
For human security training, that is familiar. People are often better at spotting cartoonishly bad login pages than they are at resisting a plausible message from someone who sounds like a coworker. Agents inherit the same weakness, but without the human frictions that sometimes help: memory of how coworkers write, discomfort with unusual timing, or the instinct to send a quick side-channel check before sharing the customer list.
Why this belongs here
This was synthetic research, so the blast radius should be stated carefully. Varonis did not report a real OpenClaw customer breach from this test. The data was mock data. The credentials were fake. The problem is the demonstrated failure mode: an autonomous office agent, connected to realistic business tools and data, forwarded secrets and customer records after ordinary phishing emails.
That is exactly the kind of agentic trust failure this site tracks. The issue is not that a model gave a bad trivia answer. The issue is that organizations are wiring agents into email, files, and business systems, then asking the model itself to decide which requests deserve action. If the model's verification step can be overridden by urgency or routine office tone, the agent becomes an exfiltration assistant with calendar access.
The fix cannot be a sterner paragraph in agents.md. Varonis tried that. It helped with some technical phishing but failed on the two data-exfiltration cases that mattered most. The effective controls have to live outside the model: scoped access, DLP checks on outbound messages, approval gates for credentials and bulk exports, identity verification enforced by the application, and hard separation between "can read this" and "can send this to anyone who asks nicely."
AI agents are being sold as coworkers. Coworkers do not get to email AWS keys to a Gmail address because "Dan" sounded busy. If an agent is going to sit in the inbox, it needs the boring parts of enterprise security wrapped around it before it gets a send button and access to anything worth stealing.
Discussion