Blast radius

Last checked · 2 min read

An agent's blast radius is everything it can change with the access it has: which tables, accounts or files it can write, how many rows one call can touch, and which of those changes can't be undone. It's measured from permissions, not from what the agent intends.

What makes up an agent’s blast radius

  • Reach. Every system the agent’s credentials can write: databases, payment accounts, file systems, email. The credential decides this, not the prompt and not the tool’s description.
  • Size of one call. How many rows a single statement can change. An UPDATE without a WHERE, a trigger that ships 300 other orders, a foreign key with ON DELETE CASCADE: each makes one call bigger than it looks.
  • Reversibility. A changed row can often be put back. A dropped table, a truncated one, a sent email or a refund can’t, or only from a backup.
  • Attribution. When several agents share one role, a bad change can’t be traced to one of them, which makes the cleanup bigger too.

Blast radius is about consequences, not likelihood. A prompt injection or a confused model decides whether something goes wrong; the blast radius decides how much.

Measure it from permissions

The security principle behind it is least privilege, which NIST’s glossary defines as restricting “the access privileges of users (or processes acting on behalf of users) to the minimum necessary to accomplish assigned tasks”.1 For an agent, that means reading what its credential can actually do:

-- What the agent's role can do to each table
SELECT table_schema, table_name, privilege_type
FROM information_schema.table_privileges
WHERE grantee = 'agent_role'
ORDER BY 1, 2, 3;

-- Attributes that make every grant irrelevant
SELECT rolname, rolsuper, rolbypassrls, rolcreaterole, rolreplication
FROM pg_roles WHERE rolname = 'agent_role';

A superuser can change anything in the cluster, and a role with BYPASSRLS ignores every row-level security policy.4 Then list the triggers and cascades on the tables it can write, because those are where one row becomes many.

How to shrink it

  • Give each agent its own role with only the grants its job needs. Start read-only; see read-only database access.
  • Cap the size of a call: statement_timeout aborts any statement that runs longer than its limit.3
  • Refuse destructive verbs with a rule outside the model, and send the few writes that matter to a person.
  • Know how you’d recover: backups, point-in-time recovery, or undo built from the database’s change log.

An example

deedglass scan (our demo setup, src/data/scan-transcript.txt)text
Blast radius: C · 4 write paths with no check · fix this first: Archived Postgres MCP server · database not checked
  A means a small blast radius, not a safe agent.
    −8  medium finding          Archived Postgres MCP server
    −4  unchecked write path    @modelcontextprotocol/server-postgres.query · write · package.json
    −4  unchecked write path    stripe.refunds.create · money · package.json

How Deedglass uses it

The free scan grades the blast radius of your own setup from A to F: it starts at 100 and subtracts for a superuser or BYPASSRLS role, high and medium findings, and each write path not routed through a policy.2 It runs read-only, on your machine and any database you name.2 A good grade means a small blast radius, not a safe agent.

Related on this site

Sources & Reference Citations (4)

Citations
  1. 1NIST CSRC glossary: least privilege · csrc.nist.gov · checked 18 October 2026
  2. 2Deedglass docs: Scan in 60 seconds · docs.deedglass.com · checked 14 October 2026
  3. 3PostgreSQL 18 documentation: Client connection defaults · postgresql.org · checked 13 October 2026
  4. 4PostgreSQL 18 documentation: pg_roles · postgresql.org · checked 18 October 2026

Last checked 18 October 2026. We re-check the glossary every month. If something here is wrong, write to hello@deedglass.com.