Every quarter a bank sends managers a spreadsheet of who holds which database privilege and asks them to confirm each line. Managers confirm almost everything, because they cannot remember whether an analyst still needs SELECT on the accounts table, and saying no feels riskier than saying yes. The result is a signed review that changes nothing. InsightAIShield asks a better question: not “does this person need this grant?” but “did this person use it in the last 90 days?”. This post works through the answer on Northmere Bank, a fictional bank, where 61 of 79 grants on sensitive data were never used in the window.

In short

  • Grants come from the source, use comes from the activity. The read-only harvest collects every grant; the proxies, gateway and monitor sources record every query. The review compares the two.
  • Three recommendations. Revoke: no use in the window. Reduce: a write or ALL privilege only ever used to read. Keep: used as granted. Unused grants on sensitive data come first.
  • A reviewer answers each line. Keep or revoke; keeping a grant the recommendation said to revoke needs a reason, written on the record.
  • Four eyes on every revocation. One person proposes, a different lead approves, and the REVOKE statement for the source’s own dialect is kept on the item for the DBA to run.

Two lists that never meet

Every database already knows who may do what. PostgreSQL exposes its grants through the system catalogue, MySQL keeps them per user and host, Snowflake per role, S3 in IAM policies. Every access tool knows what people actually ran. The trouble is that the first list lives with the DBAs and the second with the security team, and an access review needs both side by side.

InsightAIShield already holds both. When a source is harvested, read-only through a secret reference, the connector collects the grants along with the tables and columns: for Northmere’s core banking PostgreSQL that is a live read of the privileges on each table. And because every query that passes a proxy, the query gateway or a monitor source is recorded with its principal, database user, objects and command, the product knows which grant each query relied on.

Harvest
grants per source

Findings
each grant vs its use

Activity
last 90 days

Classifier
sensitive columns

Revoke
never used

Reduce
write held, only read

Keep
used as granted

Review campaign
a person answers

Grants, observed use and the sensitive-data map meet in one finding per grant.

What “used” means

For each live grant the review looks at the activity of everyone the grant covers, the database user or role named in the grant mapped back to people and agents through the directory, over the window. It counts the queries that touched the granted object with the granted kind of command. Then it recommends:

RecommendationWhenExample from the demo
Revokeno use in the window; an unused grant on sensitive data scores firstnm_dprice holds SELECT on accounts, which holds bank account numbers and SSNs, and never used it
Reducea write or ALL privilege only ever used to read: SELECT is enoughnone in this campaign: Northmere’s write grants were simply unused
Keepused as granted in the window18 of the 79 grants on sensitive data

The order matters. A grant scores higher when it would be revoked, higher again when the object holds sensitive data, and the reason says which classes: “not used in the last 90 days; the object holds bank_account, ssn; a privileged account”. A reviewer working down the list sees the riskiest unused access first.

The access reviews page on the excess-privilege tab: 79 grants reviewed, 61 recommended to revoke, 0 to reduce, 79 on sensitive data, 1 open campaign, and a table of grantees (a warehouse finance role, AWS IAM roles on the data lake, core-banking database users) with object, privilege, last used never, zero uses and the reason for each revoke recommendation.
Demo data Excess privilege across all four sources: grants, uses in the window, the sensitive classes they reach, and why.

What Northmere found

The excess-privilege view covers all four sources: the core banking PostgreSQL, the cards MySQL, the Snowflake warehouse and the S3 lake. Of 79 grants on sensitive data, 61 were never used in the 90 days. A few patterns stand out, and they are the patterns most estates share:

  • Write privileges nobody writes with. nm_rmehta holds DELETE, INSERT, TRUNCATE and UPDATE on the accounts and customers tables. None were used. Raj Mehta’s recorded activity is mostly reading table statistics and counts.
  • Wildcards. nm_rmehta@% holds ALL PRIVILEGES on cards.* in the cards database, which includes the card security code.
  • Service roles that outlived their job. An IAM role for analytics readers can GetObject on the whole lake, including the raw KYC files with passport numbers; it read nothing.
  • An AI agent with more than it uses. The loan officer copilot’s database user holds SELECT on the customers table. The agent reaches data through the query gateway, under its own policy, and never used the direct grant.
  • A dormant administrator. Tom Becker’s account, the one that woke up at 03:41 and read SSNs from abroad, holds write privileges across core banking and the cards database.

A campaign a person can answer

Findings are a view; a review is a commitment. The access reviewer agent compares every grant with its observed use and prepares a campaign, which a person opens. Northmere’s Q4 least-privilege review (core banking and cards) covers 55 grants, is due on 6 December 2026, and is scoped to the two sources where the bank’s most sensitive data lives.

The Q4 least-privilege review campaign, open and due Dec 6, 2026, covering 55 grants, with a four-eyes note that the reviewer proposes a revocation and a different lead approves it, and a list of grants each with last used never, zero uses, the sensitive classes, a revoke recommendation with its reason, a pending status and a Decide button.
Demo data The campaign: each grant with its evidence, a recommendation and a Decide button.

Each line gets one of two answers:

  • Keep. The grant stays. If the recommendation was to revoke, the reviewer must say why: “month-end reconciliation, used quarterly” is a reason the next review can check. Without one, the keep is refused.
  • Revoke. The reviewer proposes the revocation. InsightAIShield writes the REVOKE statement in the source’s own dialect and puts it on the item: a schema-qualified table for PostgreSQL, `schema`.`table` and the user’s host for MySQL, TABLE for Snowflake, a schema-wide form for a wildcard grant.

Four eyes on the revocation

Revoking access is a change with consequences: a nightly job that runs once a quarter fails, a branch report stops. So a proposed revocation waits for a second person, a lead who did not propose it. The product refuses the approval if the approver is the proposer, and refuses it outright from an agent. When the second lead approves, the grant is marked revoked in InsightAIShield and the statement stays on the item, with who proposed it and who approved it.

Three review items with their REVOKE statements: nm_svc_reporting SELECT on branch_staff, revoke proposed by jordan.ellis and waiting with an Approve revocation button, and two of nm_tbecker's grants on accounts (INSERT and DELETE) revoked, proposed by avery.brooks and approved by jordan.ellis.
Demo data One revocation proposed and waiting for a second lead; two of Tom Becker’s grants revoked with four eyes.

In the demo, two of Tom’s grants, INSERT and DELETE on the accounts table, are revoked: Avery Brooks proposed them and Jordan Ellis approved. A third, SELECT on branch_staff for the reporting service, was proposed by Jordan and waits for another lead. Jordan sees the Approve button as a lead, and the product refuses the click because he proposed it.

InsightAIShield never runs DCL on a source. The REVOKE statement is the hand-off: the DBA runs it in the bank’s own change process, and the next harvest shows the grant gone. That keeps the security product out of the database’s privilege system, which is where most DBAs want it.

DBASecond leadReviewerAccess reviewer agentDBASecond leadReviewerAccess reviewer agentThe next harvest shows the grant removedCampaign prepared, 55 grants with evidence1Keep (with a reason) or propose revoke2Revocation proposed, REVOKE statement on the item3Approve (refused if L proposed it)4Statement on the record5Runs it in the change process6

Who does what in a revocation. The agent recommends; two people decide; the DBA changes the database.

Why this beats the spreadsheet

THE QUARTERLY SPREADSHEET A list of grants, a manager’s memory

Every line looks the same. The manager confirms what they cannot judge. Nobody records why a grant stayed, and next quarter starts from zero.

GRANTS AGAINST OBSERVED USE A list of grants, each with 90 days of evidence

The unused, sensitive and privileged grants come first. A keep carries its reason. A revocation carries its statement, its proposer and its approver.

It also feeds the evidence. PCI DSS requirement 7.2.1 asks that access be assigned by least privilege; SOC 2 CC6.1 and CC6.3 ask that access be restricted and removed when no longer needed; HIPAA 164.312(a)(1) asks for access control. InsightAIShield’s compliance view reads the campaigns and shows, per control, how many campaigns ran, how many grants were reviewed and how many revocations were approved with four eyes. While Northmere’s campaign is open, with 2 of 55 grants decided, the product marks those controls partial, which is accurate.

Practical notes for a first campaign

Running your first least-privilege reviewWhat works on a real estate
1
Harvest the sources firstdata team

Grants come from the harvest. A source monitored from its audit log only still contributes activity.

2
Let the window fill

90 days is the default. A quarterly job needs a window longer than a quarter, or a keep with that reason.

3
Scope the campaignsecurity lead

Start with the sources holding card numbers and SSNs; the findings view covers the rest.

4
Work worst firstreviewers

Privileged, unused and sensitive. Keep with a reason or propose revoke.

5
Approve with a second leada different lead

The proposer can’t approve. The statement is on the item.

6
Hand the statements to the DBADBA

Run them in your change process; the next harvest confirms.

Least privilege is not a policy you write once. It is a comparison you repeat.

Grants drift up; use drifts down. Comparing the two every quarter, with the evidence on every line and a second person on every revocation, is how access stays close to what people actually need.

Where people stay in charge

  • The access reviewer agent recommends; a reviewer answers keep or revoke for each grant, and keeping a grant the agent said to revoke needs a written reason.
  • Every agent action is capped at L2, “ask first”: an agent prepares, and a person confirms, activates, revokes, sends or decides.
  • A policy version goes live only when a second lead, not the person who proposed it, approves it.
  • A revocation is proposed by one reviewer and approved by another; the REVOKE statement is kept on the record for your DBA to run.
  • Detokenizing needs a stated purpose, is recorded, and is capped per person per period.
  • SIEM batches and attestation requests are held until a person releases them.

Keep reading