Reliability
Database Audit Readiness: Stop Rebuilding the Evidence Every Time
Audits take engineering time because the evidence is gathered by hand each time. What auditors ask of a database, why home-made auditing with triggers slows it down, and what an audit-readiness review covers.
Need a hand with this? Talk to a senior database DBA ↓By RadixTrie26 November 20264 min read
Database audit readiness means the evidence an auditor asks for already exists when they ask. In most organisations it does not. Each audit, internal or external, sends a list of questions to the database team, and senior engineers stop their work to run queries, take screenshots and explain the results. A few months later the next audit asks nearly the same questions and the work is done again. This article sets out what auditors ask of a database, why home-made auditing causes problems, and how to keep the evidence continuously so that an audit becomes a report, not a project.
What auditors ask of a database
The wording changes between audit firms and frameworks. The questions underneath are stable.
- Access. Who can log in, what each account can do, and who approved it. Are leavers removed, and are shared or generic accounts in use?
- Privileged activity. What did administrators and other powerful accounts do, and can they change or remove the record of it?
- Change evidence. For each change to structure, code or configuration: who made it, when, and which approved change request it belongs to.
- Backups and restore tests. Not only that backups ran, but proof that a restore was tested, how long it took and whether the result was checked.
- Patching and versions. Which versions are running, whether they are still supported by the vendor, and how far behind on security updates they are.
- Configuration. Encryption in transit and at rest, password and lockout settings, and whether auditing is switched on at all.
- Segregation of duties. Whether the people who develop changes can also deploy them to production unobserved.
Why audits use so much engineering time
- Evidence is gathered by hand, per request, by the most senior people, because they are the ones with access and context.
- Each auditor wants a slightly different format, so last time's work is not reused.
- The systems do not keep history. A question about who had access in March can only be answered if someone recorded it in March.
- Findings come back as lists of accounts and settings, and every line needs a person to explain or fix it.
- Nothing is fixed at the root, so the same finding returns in the next audit.
If an audit question can only be answered by a senior DBA running a query on the day, the evidence does not really exist yet. It is being created under pressure, and that is where mistakes and repeat findings come from.
Why home-made auditing with triggers adds overhead
Many teams built their own audit trail years ago with triggers that copy every change into a history table. It works, and it has real costs.
- A trigger runs inside the same transaction as the change it records. Every insert, update and delete does extra work, and the user waits for it.
- The audit tables grow faster than the business tables and become a storage and maintenance problem of their own.
- Triggers record changes to data. They do not record who read sensitive data, and they do not record changes to permissions or structure.
- A privileged user can disable a trigger or edit the audit table, which is exactly the activity an auditor cares about most.
- The audit code has to be maintained with every schema change, and it is easy to miss a new table.
All three platforms have auditing designed for this job. SQL Server has SQL Server Audit, Oracle has unified auditing, and PostgreSQL has its logging settings and the open-source pgAudit extension. These record at the engine level, can cover logins, permission changes and privileged activity, and can write to a location that database administrators do not control. Moving from triggers to the platform's own auditing usually reduces load on the database and improves the evidence at the same time. Triggers still have a place where the business needs a history of values for its own use, but that is a business feature, not an audit control.
Continuous evidence: collect it once, keep it always
The alternative to the scramble is to treat audit evidence as something the estate produces every day. Access lists are captured on a schedule, so the question about March has an answer. Privileged activity is logged somewhere the administrators cannot edit. Changes are matched to change requests as they happen. Restore tests are run and recorded on a calendar. Versions and patch levels are tracked against the vendor's support dates. When the auditor arrives, the answer to most questions is a report for the period they name. Where the collection is automated, a senior engineer reviews what it shows and approves what goes to you.
What an audit-readiness review covers
An audit-readiness review takes the questions from your last audits and tests how each one would be answered today. Our engineers do it in your environment, and it covers the following.
- The last audit findings and request lists, to see which questions repeat and how long each took to answer.
- Access and privilege on the databases in scope, compared with what the business believes it has approved.
- How auditing is done now, including any triggers, and what it costs the database in load and storage.
- Backup, restore-test and patching evidence: what exists, what would have to be created on the day.
- A plan to move each repeating question to evidence that is kept continuously, with the changes ranked by effort and risk.
You receive a written report that your audit and risk teams can read, and a list of fixes that close findings for good. A database health check covers the wider technical state of the estate and fits well alongside it.
Database audit readiness: common questions
Does database auditing slow the database down?
It can, if everything is audited or if it is done with triggers. Engine-level auditing that is scoped to the accounts, objects and actions that matter has a much smaller effect. The scope is the main design decision.
Can administrators be audited too?
Yes, and they should be. The platform audit features can record privileged activity and send the records to a place the administrators cannot change. A good DBA team wants this in place, because it protects them as well.
Is this only for listed or regulated companies?
No. Any organisation with an internal audit function, a parent company, cyber insurance or large customers gets these questions. Regulated firms simply get them more often.
How RadixTrie helps
RadixTrie works on databases and nothing else: SQL Server, Oracle and PostgreSQL. You speak to a senior engineer directly, with no service desk in between. The team shares the context of your environment, so you never depend on one person. We give straight advice, including when the answer is to leave something alone. And we come to you first: when we see a trend that will hurt, you hear it from us before your users do. Audit readiness is part of our database consulting services and our support and managed DBA services. A review of the databases in scope for your next audit is the usual first step. To start, talk to a senior DBA.
Need a hand with this?
Tell us what you run today and when it has to move. A senior database DBA will reply directly, usually within one working day. Prefer email or phone? Write to expert@radixtrie.com or call +27 10 143 0304, or use the contact page to book a 30-minute call. We provide DBA services in the United Kingdom, United States, Canada and Australia, as well as South Africa.
TAGSDatabase AuditAudit ReadinessComplianceSQL ServerOraclePostgreSQL
