Skip to content

A prompt to wipe files and cloud resources shipped in an AWS extension

An attacker used an over-scoped GitHub token to ship a prompt in version 1.84.0 telling the agent to wipe local files and cloud resources. It failed to run.2

None, per AWS: the code did not change any services or customer environments.2

Get 30 minutes free every day, forever.3SOC 2 Type II499.9% uptime SLA on Pro4
Amazon Q extensionJuly 2025Asks first

18 of 50

Stopped Limited: the payment went out through the bank’s own system This case: Amazon Q extension. The gate asks first.

What happened

A wipe prompt shipped in the extension and failed to run.

  1. The token. An attacker used an inappropriately scoped GitHub token to commit code to the extension’s open-source repository.

  2. Version 1.84.0. The code shipped: a prompt telling the agent to wipe local files and cloud resources.

  3. Version 1.85.0. The prompt failed to run because of a syntax error. AWS released a new version.2

How the gate handles it

With the sealed gate, the prompt’s cloud deletes would have had to wait for approval.

Cloud deletes would have waited for a person, and on SealedBox machines local files are snapshotted before any delete. Press Play to watch the delete the prompt asked for.5

Cloud deletes, then a local file wipeSample6
  1. requestDELETE /acme-prod-logsAsks first428
  2. runrm -rf ~/projectAllowedsnapshot_before: true

Asks firstCloud deletes wait; on SealedBox machines, local files are snapshotted before any delete.

How easy

A dev team could make cloud deletes wait for a person in three steps.

Sample
Seal a keyaws
AWS access key
Paste your AWS access key and secret
Your agent never sees the AWS key.
AWS rulesaws
Reads and lists
Cloud deletes
Hourly ceilingCaps deletes and changes per hour
Applies to every agent in Platform.
Where approvals goAsk first
Slack
Microsoft Teams
Telegram
Email
A person approves or denies each call that asks first.

Approvals and signed records come with Pro, Gate only and Custom. On Free, a rule that asks first refuses instead.7

In code

Or in four lines of code.

The same three steps, from the terminal.

Sample
What each line does
1Seal the keysealedbox keys sealThe agent gets sbk_live_2Jt5…w8.
2Set the rulessealedbox rules addCloud deletes wait; reads pass.
3Connect approvalssealedbox approvals connectAsk-first calls go to #cloud-ops.
Try it

Put the gate in front of your agent today.

Run three practice calls in five minutes, then check their records on your own computer. Test mode, on every plan.

Start free$ sealedbox try5-minute practice run9
Scope

What the gate doesn’t change, and three failures like this one.

Related cases
Answers11

Questions about this case and the gate.

Still have a question?Book a callAll questions
The prompt never ran. What would the gate have done if it had?

On Pro, Gate only and Custom, each cloud delete would have waited for a person, and on Free it would have been refused. The AWS key opens only after the rules pass.

Would the files on my laptop have been safe?

Not through the gate, which governs what leaves a machine, not what runs on it. On a SealedBox machine, a snapshot comes before every command, so wiped files restore in one click.

Could the agent copy the AWS key and use it elsewhere?

It never holds the AWS key, only a SealedBox key with no secret in it. That key works only through the gate, under your rules, until you stop it.

If one delete is approved, could the agent run others with it?

No. An approval is bound to that exact request and runs once; any other delete needs its own approval.

Is there a limit on deletes per hour?

Yes. The gate keeps an hourly ceiling on deletes and changes, and turns away calls past it.