By Sakshi Shah · 25 November 2026 · 10 min read
Building Software That Holds Up to an Audit: Audit Trails, Access and Change Records
What audit-ready software needs: tamper-proof audit trails, access control with regular reviews, recorded changes, and evidence produced on demand.
Introduction
Audits have a way of exposing what software never recorded. An auditor picks a transaction and asks who created it, who changed the amount, when, and who approved it. They ask for a list of everyone with administrator access and evidence that someone reviewed that list this quarter. They ask how the last change to the system got to production and who signed it off. If the system cannot answer, the team spends days assembling screenshots, emails and spreadsheets — and often still ends up with a finding.
Whether the audit is for ISO 27001, SOC 2, a customer's security review, a financial audit, a regulator's inspection or data protection accountability, the underlying questions are remarkably similar. Audit-ready software is software designed so those questions have clear, trustworthy answers built in: who did what and when, who can access what and why, and how the system itself changed. This guide covers what auditors actually ask, how to design audit trails that hold up, the access controls and reviews that matter, change control for the software itself, and how to retrofit an existing system when a deadline is approaching.
What Auditors Actually Ask
| The auditor's question | What the system must be able to show |
|---|---|
| Who created or changed this record, and when? | An audit trail entry for every create, update and delete on important records, with the user and an accurate timestamp |
| What was the value before? | Old and new values for each change, not just "record updated" |
| Why was it changed, and who approved it? | A recorded reason where required, and a link to the approval |
| Could anyone have altered the log? | Logs that ordinary users and administrators cannot edit or delete |
| Who has access, and should they? | A current list of users and roles, and records of periodic access reviews |
| Did leavers lose access promptly? | Account deactivation dates compared with leaving dates |
| Can one person both request and approve? | Enforced segregation of duties for sensitive actions |
| How did this version of the software get to production? | Version control, review, testing and approval records for each change |
None of these are exotic requirements. They are easy to design in from the start and expensive to reconstruct after the fact.
Designing an Audit Trail That Holds Up
An audit trail is a chronological record of significant actions in a system. It is only useful if it is complete, specific and trustworthy. A good audit event answers six questions: who, what, when, where from, what changed, and why.
{
"eventId": "aud_01HV7K2M9Q",
"occurredAt": "2026-11-25T10:42:17Z",
"actor": { "userId": "u_4821", "name": "R. Mehta", "role": "finance_approver" },
"action": "invoice.amount_changed",
"record": { "type": "invoice", "id": "INV-2026-03317" },
"changes": { "amount": { "from": 48210.00, "to": 42810.00 } },
"reason": "Corrected transposed digits per supplier credit note CN-118",
"approvalId": "apr_7781",
"source": { "ip": "10.4.2.17", "client": "web" }
}
Several design principles make an audit trail stand up to scrutiny:
- Capture at the point of change. Write the audit event in the same operation as the change itself, so a change can never succeed without its record. Logging from the user interface alone misses changes made through APIs, imports and background jobs.
- Record values, not just events. "Invoice updated" is not enough. Old and new values for each field are what let an auditor reconstruct what happened.
- Use accurate, consistent time. Store timestamps in UTC from synchronised clocks, and display them in local time. Records that disagree about when something happened undermine everything else.
- Attribute every action to a real person or system. Shared accounts make audit trails meaningless. Automated processes should have their own named identities.
- Make it append-only. Nobody — including application administrators — should be able to edit or delete audit records through normal means. Store them separately from business data, with permissions that allow writing and reading but not changing, and consider tamper-evident techniques such as chaining each entry to a hash of the previous one.
- Keep it for the right period, and make it searchable. Retention should follow your regulatory and contractual requirements, and authorised reviewers should be able to search and export entries without asking a developer.
Access Control That Survives Review
Most access findings are not about sophisticated attacks. They are about too many people with too much access for too long.
- Least privilege by role. Define roles around real jobs, grant each the minimum access it needs, and avoid giving everyone administrator rights "to save time".
- Segregation of duties. For sensitive actions — approving payments, changing bank details, releasing results, deploying to production — the system should prevent the same person from both requesting and approving.
- Joiners, movers and leavers. New starters get access through a defined request; people changing roles lose access they no longer need; leavers are deactivated promptly, ideally driven by the HR record or single sign-on.
- Periodic access reviews. Every quarter or so, the owner of each system confirms who should still have which access, and that review is recorded. Building a simple review screen into the application turns a spreadsheet exercise into a few minutes' work with built-in evidence.
- Strong authentication and privileged access logging. Multi-factor authentication for administrative access, and every privileged action recorded in the audit trail.
Build the evidence in. Reports for current users and roles, access review history, leaver deactivation dates, audit log extracts and deployment history should all be available on demand. When evidence is a by-product of normal operation, audits stop being a scramble.
Change Control for the Software Itself
Auditors care not only about changes to data, but about changes to the system that processes it. A sound change process is also simply good engineering.
All code and configuration lives in version control. Every change is reviewed by someone other than its author. Automated tests run before anything is deployed. Deployments to production happen through an automated pipeline rather than by hand, and production access for developers is restricted and logged. Each release is linked to the request or ticket that justified it, with approval recorded. Emergency fixes are allowed, but are documented and reviewed afterwards. Much of this is the same groundwork described in From Prototype to Production: Why Software Projects Get Stuck After the MVP — teams that have done it for engineering reasons are most of the way to audit readiness.
Frameworks Ask Similar Questions
Different audits use different frameworks, but their expectations for software overlap heavily. A few common examples:
| Framework or rule | Typical context | What it emphasises for software |
|---|---|---|
| ISO 27001 | Information security management | Access control, logging, change management, supplier security |
| SOC 2 | Service providers, often requested by customers | Evidence that controls operate consistently over a period |
| GxP data integrity (ALCOA+) | Pharmaceutical and life sciences | Records that are attributable, legible, contemporaneous, original and accurate — and complete, consistent, enduring and available |
| 21 CFR Part 11 | Electronic records and signatures for the US FDA | Audit trails, electronic signatures, system validation |
| DPDP Act, UK GDPR | Personal data | Accountability: showing who accessed personal data and why |
Which frameworks apply, and their exact requirements, depend on your sector, customers and jurisdictions — confirm them with your compliance lead or auditor. The design principles in this guide serve all of them. Regulated processes such as pharmacovigilance case intake are a good example of where every one of these controls is expected.
Retrofitting an Existing System
Most organisations are not starting from scratch. When an audit is approaching or a finding needs fixing, prioritise rather than trying to make everything perfect at once.
Find the highest-risk records
Money, personal data, approvals, regulated results — the records an auditor is most likely to sample.
Add audit capture
In the application where possible; at the database level, through triggers or change capture, where the application cannot be changed.
Fix access
Remove shared accounts and excess rights, enforce segregation of duties, and run and record a first access review.
Formalise change and evidence
Pipeline deployments, review records, and reports that produce audit evidence on demand.
Audit-driven work usually comes with a fixed date set by an auditor, regulator or customer contract — exactly the situation our Compliance-Driven Engineering service is designed for. Where controls also need independent testing, a penetration test is often requested alongside.
Conclusion
Audit-ready software answers the auditor's questions from its own records. Capture an audit event with every significant change, including old and new values, accurate time, the real actor and the reason, and store it where it cannot be quietly altered. Grant access by role on least privilege, enforce segregation of duties, handle joiners, movers and leavers promptly, and record periodic reviews. Control changes to the software itself through version control, review, testing and automated deployment. Then let reports produce the evidence, so audits become a routine check rather than a fire drill.
Audit coming up, or a finding to fix by a deadline?
We will identify the gaps auditors are most likely to find and close them in priority order, with the evidence they need. See Compliance-Driven Engineering or start the conversation.
Frequently Asked Questions
What should an audit trail record?
For each significant action: who did it, what they did, which record it affected, when it happened in accurate time, where it came from, the old and new values, and the reason or approval where required.
Can administrators be allowed to edit audit logs?
They should not be. Audit records should be append-only, stored separately from business data, with permissions that allow writing and reading but not editing or deleting — including for administrators.
How often should access reviews happen?
Quarterly is a common baseline, with more frequent reviews for highly privileged access. What matters most is that reviews actually happen, that changes are acted on, and that each review is recorded.
Can we add audit trails to an old system we cannot change much?
Often, yes. Database-level change capture or triggers can record changes to important tables without modifying the application, although attributing changes to individual users may need additional work.
Which compliance framework applies to us?
It depends on your sector, customers and jurisdictions. Confirm with your compliance lead or auditor. The core controls — audit trails, access control and change management — are common to nearly all of them.