Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

A breach report shows the attacker used an over-privileged database account from a compromised service to read data from unrelated systems. How would you change database access governance at company level?

I would treat this as a company risk, not a ticket: an executive owner and a funded programme that makes least privilege the default. Each service gets its own data and account, isolated at the network, database and account level, so one compromised service cannot reach another's data. Grants live in code with automatic review and removal of unused privileges, static passwords give way to short-lived identity-based credentials, and we report shared accounts, unused grants and time to revoke to leadership.

Why this question is asked

After a breach, the natural reaction is to fix the one account the attacker used and close the finding. That fixes the symptom. The real problem is that the company allowed a design where one compromised service could read unrelated systems, and that design exists in many other places too. Interviewers ask senior leaders this question to see whether they can move from incident response to changing how the whole organisation grants and governs access. In this answer, we will look at why one-off fixes fail, then at isolation, grants as code, short-lived credentials and measurement, and finally at how a leader runs this as a programme people actually adopt.

1What the Breach Really Tells Us

An over-privileged account is an account with more access than its job needs. The attacker did not break the database; they used access that was already granted. That tells us three things about the organisation: services were allowed to share databases or accounts across system boundaries, nobody reviewed what each account could reach, and the credential was usable from wherever the attacker happened to be.

The blast radius is how far an attacker can reach from one foothold. The goal of the whole programme is to make that radius small by design, so the next compromised service, and there will be one, can only read its own data.

2Why a One-Off Audit Fix Fails

A one-off audit fix means a team spends a month removing excess grants, and the finding is closed. A year later the grants are back, because the next urgent feature needed a quick GRANT and nobody owned the rule. Least privilege decays unless something actively maintains it.

So the first leadership decision is ownership and funding. An executive, typically the CTO or CISO, owns the outcome; a platform team gets headcount to build the tooling; and every product team gets the work in its roadmap with a deadline, rather than as an unfunded extra. Without that, every team will rationally prioritise features over a migration that does not show up in their goals.

Step throughFrom incident to lasting governance
  1. Contain the incidentrotate credentials, revoke the account
  2. Name an executive ownerfund a platform team, set deadlines
  3. Inventory accounts and grantsevery cluster, every service
  4. Isolate per servicenetwork, database, account
  5. Grants as code and reviewsremove unused grants automatically
  6. Short-lived identity credentialsno static passwords
  7. Report metrics monthlyshared accounts, unused grants, time to revoke

7 steps in order. Play them, or step through them one at a time.

Containment is a week; governance is a programme measured in quarters.

3Isolating Data Per Service

Isolation works in three layers, and we want all three because each catches what the others miss. At the network level, a service can only open connections to its own database endpoints, enforced with security groups or network policies, so a compromised pod cannot even reach another team's cluster. At the database level, each service owns its schema or database, and cross-service data needs go through APIs or explicit read-only views approved by the owning team. At the account level, each service has its own role with grants on its own objects only.

Notice that this is also an architecture decision, not only a security one. Shared databases between services are often the reason one service could read unrelated data in the first place, and untangling them takes time. A realistic plan picks the most sensitive data first, such as payments and personal data, and isolates it within a quarter, then works through the rest.

4Grants as Code and Continuous Review

Grants as code means every role and privilege is declared in a repository and applied by a pipeline, never typed into a production console. That gives us review by the data owner, history of who asked for what and why, and a declared state to compare with reality. On top of it we run an automatic review: a job compares actual grants with the declared ones and reverts drift, and usage data finds grants that no statement has used for 90 days, which are proposed for removal to the owning team and removed by default if nobody objects.

The reason for removal by default is human nature. If keeping an unused grant costs nothing and removing it might break something, people keep it. If the unused grant disappears unless someone justifies it, the access shrinks over time instead of growing.

5Short-Lived, Identity-Based Credentials

The attacker in the breach used a static password, one that worked from anywhere, for as long as it existed, and probably sat in an environment variable or config file. Identity-based credentials replace it. The service proves who it is with its workload identity (for example its Kubernetes service account or cloud role), and a secret manager or cloud IAM database authentication gives it a database credential that lives for hours, not years.

So stealing the credential gives an attacker a short window, and the credential is tied to one service's identity, which makes misuse visible in logs. Revocation also becomes fast: disabling the workload identity stops new credentials immediately.

6Measuring and Reporting Progress

Leadership attention follows what is measured, so we pick a few numbers that show real risk and report them monthly. The number of shared accounts across services should fall to zero. The number of unused grants older than 90 days shows whether review works. The percentage of database connections using short-lived credentials shows adoption. The time to revoke access, from the request to the moment the account cannot log in, tests our response speed and should be minutes, not days. Each number is broken down by organisation, so a VP sees their own teams compared with others, and a red number has a named owner and a date.

Programme metrics reported to leadership
MetricStarting pointTarget in 12 months
Shared accounts across servicese.g. 1400
Grants unused for 90 dayse.g. 38 percentunder 5 percent
Connections with short-lived credentialse.g. 10 percentover 90 percent
Time to revoke a credentialdaysunder 15 minutes
Illustrative values; the starting point comes from the first inventory.

7Follow-up questions

How do you get product teams to do the migration work?

Make it cheap and make it visible. The platform team provides libraries and pipeline templates so moving a service to its own short-lived account is a small change, ideally a pull request the platform team opens for them. The deadlines come from the executive owner, progress is reported per organisation, and the most sensitive systems go first so the effort clearly maps to risk.

What would you do in the first two weeks after the breach?

Contain and learn. Rotate and narrow the compromised credential, look for the same pattern of over-privileged accounts around other sensitive systems and fix the worst few at once, and run a blameless review of how the design came to exist. Then present the programme with its owner, budget and metrics, so the momentum from the incident turns into lasting change.

Is a web application firewall or network monitoring not enough?

They help detect and slow an attack, but they do not reduce what a valid credential can reach. Once the attacker has an over-privileged account inside the network, only isolation and least privilege limit the damage, so detection is a layer on top, not a replacement.

8Conclusion

In this answer, we saw that a breach through an over-privileged account is a governance failure, so the fix is a funded programme with an executive owner rather than a one-off cleanup. We isolate each service's data at the network, database and account level, keep grants in code with automatic drift and unused-grant removal, replace static passwords with short-lived identity-based credentials, and report shared accounts, unused grants and time to revoke to leadership until the numbers reach their targets.

What to say in the interviewAbout 90 seconds aloud

Open with

I would first contain the incident, but the real change is to stop treating least privilege as an audit item and run it as a funded programme with an executive owner, a platform team and deadlines in every product roadmap, because one-off cleanups always decay.

Then, if they want more

The main technical goal is a small blast radius: each service can reach only its own data.

That means isolation at three levels: network rules so a service can only connect to its own database, separate schemas or databases per service with cross-service data going through APIs or approved views, and one account per service with grants only on its own objects.

All grants live in code, reviewed by the data owner and applied by a pipeline, and a job reverts drift and removes grants unused for 90 days unless the owner justifies them. Static passwords go away in favour of short-lived credentials issued against the service's workload identity, so a stolen credential expires in hours and revocation takes minutes.

I would make the most sensitive data, payments and personal data, go first. And I would report a few metrics monthly to leadership, broken down by organisation: shared accounts, unused grants, share of connections using short-lived credentials and time to revoke, each red number with an owner and a date.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "A breach report shows the attacker used an over-privileged database account from a...": https://scrivio-interview-library.netlify.app/databases/database-security/b4fa32c58d/