Security Audit Example: A Worked Walkthrough
Table of Contents

The auditor's request list is open, your engineering team is shipping, and the architecture diagram doesn't quite match production. You've got policies, screenshots, and scanner exports, but you're not sure they prove the controls worked. A useful security audit example starts there, with a production system and evidence an auditor can reconstruct without relying on someone's memory.
What a Security Audit Example Looks Like
Take a hypothetical mid-sized fintech with a production payments API, a combined SOC 2 Type II and internal audit review, one auditor, and ten business days for fieldwork. That's a scenario constraint, not a recommended duration or a substitute for the SOC 2 examination period.
The boundary includes the API, its databases, deployment pipeline, cloud accounts, and administrative access paths. The auditor isn't trying to declare the whole company secure. They're testing specified controls against a defined system and period.

The audit file has distinct jobs
- Scope identifies the assets, environments, dependencies, and access paths covered by the review.
- Evidence records what the auditor examined, where it came from, and how it supports or contradicts a control.
- Findings describe failed tests, business consequences, severity, accountable owners, and closure criteria.
The central requirement in this example is straightforward: administrative access to the payments API requires MFA. The control's design must cover the relevant access paths, while operating evidence must show that enforcement held throughout the review period.
The useful evidence chain is:
Approved requirement → architecture or policy document → configuration → logs → pull request → deployment record → attestation
Each link answers a different question. Who approved the requirement? Where was it implemented? Did administrators encounter it? Which change corrected a bypass? Did that change reach production, and who verified the result?
Practical rule: An attestation is the conclusion of an evidence chain, not a replacement for its missing links.
Maintain an evidence manifest with timestamps, system identifiers, query logic, sample-selection rationale, reviewer identity, exceptions, and remediation ownership. Store exports alongside the manifest so an auditor can distinguish the original evidence from later annotations.
A paper-only policy review won't satisfy this example. A policy can describe the right behavior while an identity-provider exception permits the opposite. Compare your own audit file against the entire chain, not against its folder count.
Scope Gaps That Sink Audits Before Testing Starts
Reconstruct scope from operational records before trusting the architecture diagram. Export cloud accounts, enumerate repositories, collect service metadata, inspect deployment tickets, and resolve dependency manifests against the vendor register. Join these records using account identifiers, repository names, deployment targets, and service owners.
Create a scope ledger with an asset identifier, environment, owner, production relationship, applicable controls, and inclusion decision. An exclusion needs a reason that survives scrutiny, such as an isolated development account with no production credentials or customer data.
In a 2025 survey of 500 U.S. and U.K. enterprise IT and cybersecurity decision-makers, 92% used at least three tools to gather audit evidence, according to Swimlane's survey announcement. That's a useful warning about reconciliation work, not proof that collecting more documents improves assurance.
Look beyond registered services
- Unregistered paths: Match cloud billing and organization inventories against the service catalog. Investigate accounts with active resources but no owner.
- Repository gaps: Trace deployment identities back to source repositories. An archived-looking repository may still build a production component.
- Vendor-managed access: Include support portals, integration credentials, and administrative services that can affect the payments environment.
Where documentation is incomplete, auditing source code helps reconstruct actual system relationships. Code references aren't sufficient alone, though. Verify whether the referenced service is deployed and which credentials it uses.
AI tools need the same treatment. Among organizations reporting breaches involving AI models or applications, 97% reported lacking proper AI access controls, according to IBM's 2025 Cost of a Data Breach study. Inspect approved tools, repository permissions, IDE extensions, and agent credentials rather than accepting a governance document as coverage.
Physical access dependencies may also enter scope. If a remotely managed gate protects an in-scope facility, Nimbio's Wi-Fi vs LTE gate security comparison provides context for questions about connectivity, administration, and failure behavior. Don't extend the audit to unrelated facilities to enlarge the checklist.
Reward traceability from asset to control to evidence. A large archive can still omit the production path that matters.
The Evidence Package the Auditor Pulls
NIST SP 800-115 recommends documentation review, log review, network sniffing, and file-integrity checking, and identifies artifacts including architecture diagrams, inventories, configurations, rulesets, engineering documents, and system logs in its technical security testing guidance. Use those evidence types to test both control design and operating effectiveness.
For the payments API, collect machine-readable exports where possible. Screenshots help explain a setting, but a dated JSON or CSV export is easier to inspect, compare, and reproduce.
Evidence package by control
| Control tested | Evidence pulled | System of record | What passing looks like |
|---|---|---|---|
| Administrative MFA on the production API | Architecture or policy document, identity-provider configuration, sign-in logs | Design repository, identity provider, SIEM | Requirement documented, authentication policy enforces MFA, sampled admin sign-ins show no bypass |
| Vulnerability remediation SLA | Asset inventory, scanner or pentest findings, deployment record, post-fix verification | Service catalog, scanner, CI/CD, tickets | Internet-facing assets have owners; known-exploited items meet policy deadlines, with deployment and rescan evidence |
| Pull request review and policy enforcement | Sampled PRs, approvals, policy check runs, merge timestamps | Source control, CI policy engine | Independent approval and passing required policy checks precede each sampled merge |
| Preventive controls on cloud accounts | Cloud inventory, account ownership, IAM exports, billing or service metadata | Cloud console, IAM, CMDB | Accounts have owners and applicable preventive policies; exclusions have written reasons |
| Security design review for major changes | Design document, threat model, review thread, linked PR | Planning tool, documentation, source control | High-risk changes have recorded reviews traceable to shipped code |
| AI and third-party tool usage | Approved-tool inventory, privilege records, governance policy, exception log | Vendor register, IAM, policy library | Tools have approval, ownership, evidenced least privilege, and recorded exceptions |
Make the log review reproducible
For MFA, export privileged group membership from the identity provider, including membership changes during the audit period. Query authentication events for those identities and the API's administrative applications using explicit UTC start and end boundaries.
Retain the event timestamp, identity, application, authentication result, authentication method, policy result, and correlation identifier. Filter successful events for missing MFA satisfaction or unexpected policy exclusions, then inspect failed attempts to determine whether enforcement blocked access.
A successful sign-in without a fresh prompt isn't automatically a bypass. An existing session may carry valid MFA assurance. Examine the session and policy evaluation before writing a finding; missing telemetry should become an evidence limitation, not an invented success.
Keep the exact query, date range, returned event count, sample size, and selection rationale with the export. Sample across the period and configuration changes rather than selecting only convenient events.
Collect WAF and policy-as-code rulesets, backup and restore records, incident decisions, and exception approvals where those controls apply. A SOC 2 evidence collection workflow should organize these artifacts by control and period, not merely by the team that supplied them.
The Findings Register and Its Remediation
A finding needs a failed test, not a vague statement that security could improve. For this hypothetical payments API, assume the auditor identifies the illustrative failures below. These are worked examples, not reported results from an actual organization.
Findings register for the payments API audit
| Finding | Audit test and evidence | Severity | Remediation action | Closure evidence |
|---|---|---|---|---|
| Admin MFA exceptions not reviewed | Compare privileged membership and exception exports with approvals; active blanket exclusion lacks current approval | High | IAM owner removes blanket exception and institutes quarterly exception reapproval | Updated policy export, change record, and sampled sign-ins showing no bypass |
| Internet-facing assets without an owner | Join external exposure inventory to service catalog; unmatched assets and overdue known-exploited findings remain | High | Platform owner assigns service owners, applies remediation deadlines, and adds an exposure dashboard | Reconciled inventory, deployment records, rescan results, and remediation-time metrics |
| PR policy check not blocking | Compare merged PR check results with branch protection; required security check is advisory | Medium | Repository owner makes the policy check a blocking status | Protection configuration, configuration-change record, and sampled compliant merges |
| Stale threat model after webhook integration | Design review records show the threat model predates the integration | Medium | API owner reviews the webhook trust boundary and links decisions to its implementation | Updated model, review log, linked PR, tests, and deployment record |
| Unsanctioned AI coding assistants | Developer survey and IDE inventory reveal tools absent from the approved register | Medium | Engineering owner reviews usage, privileges, approval, and governance ownership | Vendor inventory, IAM records, governance policy, and approval record |
| Backup restore untested | Backup records exist, but no restore drill covers the audit period | Low | Service owner schedules quarterly restore drills and performs the initial test | Restore log with timestamps, system identifiers, integrity checks, and sign-off |
The operational register also needs named individuals, due dates, status, and dependencies. Set due dates from the organization's approved severity policy, not from an auditor's preferred round number. When active exploitation or payment disruption changes the risk, escalate the deadline decision to the accountable risk owner.
For software and configuration fixes, closure requires an applied change record and post-remediation verification. That may mean a deployment record and rescan, or an identity-policy audit event and authentication test. A ticket marked done proves only that someone changed the ticket.
Separate closure from risk disposition
- Permanent correction: The underlying defect is fixed and independently verified.
- Temporary mitigation: Exposure is reduced, but the original issue remains open with an expiry date.
- Risk acceptance: An authorized owner accepts documented residual risk for a defined period.
- False positive: Evidence demonstrates that the reported condition doesn't apply.
The distinction matters for vulnerability findings. Verizon's 2025 DBIR reported that vulnerability exploitation accounted for 20% of breaches, while only about 54% of the relevant perimeter-device and VPN vulnerabilities were fully remediated, with a median resolution time of 32 days. Use that context to insist on exposure ownership and verified correction, not to substitute an industry median for your deadline policy.
Severity reflects business impact and likelihood, with compensating controls explicitly recorded. An untested restore is low only in this hypothetical case, where recovery alternatives reduce the consequence. If that backup is the sole recovery path for payment records, the auditor should rate it differently.
Proving the Fix Survived Later Releases
A closed finding establishes that a correction passed a test at a particular point. It doesn't establish that a later release preserved the control. Add a release-to-release verification record that links the approved decision, corrective PR, policy rule, deployment, and production test.
For the MFA finding, re-export the identity policy after subsequent deployments and identity changes. Compare exclusion membership with the approved baseline, then inspect later privileged sign-ins for unexpected policy outcomes. In this hypothetical exercise, use a thirty-day follow-up window and retain both the query and the configuration comparison.
For the PR finding, inspect branch protection through the source-control API. Confirm that the required check still applies to the relevant branches, that its name matches the check emitted by CI, and that bypass permissions haven't expanded.
Remediation metrics the auditor will calculate
| Metric | How it is computed | Red flag |
|---|---|---|
| Median time-to-remediation | Median elapsed days from opening to verified closure, grouped by severity | High findings exceed their policy deadlines |
| Percent closed within policy | Findings verified closed by deadline divided by all findings whose deadlines fall in the measured cohort | Below the approved policy target |
| Reopened findings | Findings previously closed and subsequently re-observed | Any high finding reopened |
| Exceptions by criticality | Risk acceptances and temporary mitigations grouped by business-critical service | Repeat exceptions affecting the same control |
| Coverage of in-scope assets | Assets with applicable evidence divided by assets in scope | Shadow accounts, missing owners, or unsupported assets |
Calculate 90th-percentile remediation time alongside the median using the same severity cohort. The median can look healthy while difficult findings remain unresolved; report still-open overdue items separately so they don't disappear from closure statistics.
Closure test: Would the verification detect the original failure if a developer accidentally reintroduced it?
Reopened high findings are especially damaging because they challenge the durability of the correction, not just its speed. Configure drift checks to alert on restored exclusions, relaxed branch protection, or missing deployment controls.
A post-implementation verification workflow should keep those checks connected to the original design decision. Otherwise, teams can produce passing tests that never exercise the risk the auditor identified.
Turning the Example into Continuous Audit Readiness
Point-in-time preparation optimizes for answering requests before fieldwork. Continuous readiness optimizes for preserving evidence when engineers make decisions and controls run. Neither approach removes the need for auditor judgment.
| Audit activity | Point-in-time preparation | Continuous readiness |
|---|---|---|
| Scope reconciliation | Rebuild inventory before fieldwork | Reconcile account, repository, and service changes |
| Design decisions | Search documents and review threads | Capture approvals with the implementation context |
| Exceptions | Chase owners for explanations | Maintain ownership, expiry, and review status |
| Verification | Re-test selected corrections | Attach deployment checks and drift results |

Automate collection without automating the conclusion
Continuous collection adds maintenance work. Connectors break, event schemas change, and service ownership drifts. Assign owners to evidence pipelines and alert when exports become stale, rather than treating the last successful export as current.
The workflow needs requirement-to-code traceability, design review inside engineering tools, and enforceable PR policies. DevArmor's Continuous Threat Modeling, Automated Security Reviews, and Implementation Verification support those parts of the audit file: models draw context from tickets and repositories, specs and tickets produce explainable review feedback, and PR policy checks can block merges. Guardrails and secure prompting context operate inside Jira, GDocs, GitHub, MCP, VS Code, Cursor, and developer or agent workflows, making this an option for regulated teams that need connected design and implementation evidence. Security teams retain oversight of the review process.
For AI services entering the environment, SupportGPT enterprise security guidance offers additional context for evaluating security and compliance questions. Record the assessment in the vendor file, then validate access, data handling, and exception decisions against your own requirements.
Audit readiness is an asset-context and scope-integrity problem, not merely a document-collection problem. Keep human approval for risk acceptance and material design decisions. Automated checks should supply evidence and flag contradictions, not declare that an organization is compliant.
Assemble Your Own Audit File This Quarter
Choose the customer-facing system whose failure would cause the most harm. Start with administrative MFA because its configuration, privileged membership, and authentication events expose both implementation gaps and stale exceptions.

- Reconcile assets before reviewing policies. Match cloud accounts and repositories to the service inventory. Assign an owner to every unresolved production dependency.
- Set vulnerability deadlines. Define how known-exploited findings are prioritized, who can accept exceptions, and which verification closes them. Put overdue exposure on a dashboard.
- Make policy checks blocking. Configure branch protection, then inspect merged PRs to confirm that approvals and required checks preceded the merge.
- Exercise recovery and exception review. Schedule quarterly restore drills and access-exception reviews. Retain results, owners, dates, and unresolved limitations.
- Choose the collection model deliberately. A stable system may tolerate scheduled evidence collection. Fast-moving regulated systems benefit more from evidence captured during engineering work.
Run the handoff test
Give a colleague read-only access to the audit file and ask them to reconstruct the MFA control without messaging its implementer. They should identify the approved requirement, effective configuration, historical operation, corrective change, production deployment, and verification result.
For a hypothetical one-week exercise, success means finding those artifacts through recorded relationships, not through someone explaining where to search. If the colleague can't trace a requirement from policy to log to PR to deployment, make the first broken link your first finding to fix.
DevArmor helps teams document security architecture and decisions as audit-ready artifacts for compliance work such as SOC 2 and ISO 27001. Visit DevArmor to explore connecting your design reviews, implementation checks, and audit evidence while keeping security-team oversight.
Table of Contents
Subscribe

