The 72-Hour Breach Report: What Your Audit Logs Need to Contain Before the Clock Starts
A DPDP breach report demands facts most teams cannot produce. Work backwards from the required fields to the database logging you need in place beforehand.
Team Qarbix · · 7 min read
Security & Compliance

A personal data breach under the DPDP framework triggers two obligations that run on a clock. You must inform each affected data principal, and you must report to the Data Protection Board of India. The Board report is expected within a short window, commonly cited as seventy-two hours, with an initial intimation without undue delay.
The interesting part is not the deadline. It is that the report demands specific facts, and most engineering teams discover during the incident that their systems cannot produce them. You cannot log retroactively. Whatever your database was recording at the moment of the breach is the entirety of what you will ever know about it.
This article works backwards: from the fields a breach report requires, to the logging that has to be in place beforehand.
What the report asks for
Consolidating the notification requirements to the Board and to affected individuals, you need to be able to state:
The nature, extent and timing of the breach, and where it occurred.
The categories of personal data affected.
The data principals affected, and how many.
The likely consequences for those individuals.
The measures taken to mitigate risk and prevent recurrence.
The findings on who caused it, to the extent known.
A contact point able to answer questions.
Read that list as an engineer and it decomposes into three questions your logs must answer: who, what exactly, and how many.
Question one: who
Not which credential. Which person.
This is where most database logging fails immediately. Production access commonly runs through a shared application user, a pooled connection, a bastion host with a shared read-only role, or a service account whose credentials sit in a team password manager. Your logs will faithfully record that user app_readonly executed a query from an internal IP. That is not an answer. It is the beginning of a two-week Slack archaeology exercise conducted while a regulatory clock runs.
Connection poolers make this worse by design. PgBouncer in transaction pooling mode multiplexes many client sessions onto few server connections; from the database's perspective the identity of the original human is gone. If you run a pooler, identity has to be captured above it.
What you need: every session attributable to a named individual, and that attribution recorded in the log line itself rather than inferable from a separate system that may have rotated its own logs.
Question two: what exactly
Connection logs prove someone connected. Error logs prove something failed. Neither tells you what data left the database.
The distinction matters enormously for the report. There is a large difference between disclosing that an unauthorised party accessed a table containing personal data, and disclosing that they read 412 rows from it. The first forces you to assume the whole table and notify every principal in it. The second lets you notify 412 people. That difference is the difference between a contained incident and a public one.
What you need: statement-level audit capture. In PostgreSQL that means pgAudit, configured to log the statement class you care about rather than everything, because logging every statement on a busy system is a performance and storage problem. In MySQL, Community Edition has no adequate native audit; use the Percona or MariaDB audit plugin. Capture the statement text, the objects touched, and where available the row count returned.
Row counts are the field teams most often omit and most urgently need. Add it now.
Question three: how many, and which ones
The obligation is to inform each affected data principal. That is a list of people, not an estimate.
Converting a query log into a list of affected individuals requires knowing which rows the query returned. A statement like SELECT * FROM customers WHERE city = 'Pune' is reproducible only if the data has not changed since. On a live table it has. If you can replay against a point-in-time snapshot you can reconstruct the result set; if your retention does not reach back to the incident window, you cannot.
The practical implication is a link between your audit log retention and your backup retention. If logs go back a year and point-in-time recovery goes back a week, then for any incident older than a week you know that something was read and not which rows. Align the two deliberately.
The tamper problem
An audit log stored on the same database host, writable by the same administrator whose access you are investigating, has limited evidential value. If an insider incident is in scope, and the insider-risk data suggests it frequently is, the log must be outside their reach.
Ship audit records off-host to append-only storage in near real time. Object storage with object lock, or a log platform with immutability, both work. Verify the pipeline by testing it, because a silently broken log shipper is discovered at exactly the wrong moment.
Rehearse the report
The single most useful exercise available to you before May 2027 costs an afternoon. Pick a plausible scenario: a support engineer's laptop is compromised and their database session is used for six hours. Then, using only what your systems record today, try to fill in every field of the breach report.
Teams that run this discover the same three gaps: they cannot name the human, they cannot bound the data, and they cannot list the principals. All three are fixable in advance and none are fixable during the incident.
How Qarbix DataGuard helps
DataGuard sits between users and production databases, which places it at the one point where all three questions can be answered together.
Every session is bound to a named individual before it reaches the database, so the who is recorded at source rather than reconstructed. This holds even where a connection pooler would otherwise collapse identity.
Query-level audit logging captures the statement, the tables and columns touched, and the scope of what was returned, which is what converts a log into breach evidence.
Audit records are retained independently of the database host, addressing the tamper problem for insider scenarios.
Because access flows through a governance layer, the blast radius of a compromised session is bounded in advance: if masking policy meant that session could only ever see masked values, your breach report says so, and the notification obligation changes accordingly.
That last point is the one worth dwelling on. The cheapest breach report is the one where you can demonstrate that the exposed session never had visibility of the sensitive fields in the first place.
Frequently asked questions
What is the breach reporting timeline under the DPDP Rules?
Affected data principals must be informed without undue delay, and the Data Protection Board must be notified promptly, with a detailed report following within a short specified window commonly cited as seventy-two hours. Confirm the exact wording and timing against the notified Rules before writing it into your incident runbook.
Do we have to notify every user or only those affected?
The obligation runs to affected data principals. This is precisely why bounding the incident matters: without evidence of scope, you may have to treat the entire dataset as affected.
Are database connection logs enough for a breach report?
No. Connection logs establish that a session existed. They do not establish what data was read, which is the core factual content of the report.
How long should database audit logs be retained?
The Rules specify a retention requirement for logs; verify the current figure against the gazette text. Practically, align audit log retention with your point-in-time recovery window, because reconstructing which rows a query returned requires both.
Tags
#database security, #database governance
Written by Team Qarbix, the engineers who build CloudLens and DataGuard.