29 November 2026

Security Audit Example: A Worked Walkthrough

Reza Khosravi

Table of Contents

Security Audit Example: A Worked Walkthrough

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.

A three-step flowchart illustrating a ten-day security audit process for a fintech company's payments API.

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 testedEvidence pulledSystem of recordWhat passing looks like
Administrative MFA on the production APIArchitecture or policy document, identity-provider configuration, sign-in logsDesign repository, identity provider, SIEMRequirement documented, authentication policy enforces MFA, sampled admin sign-ins show no bypass
Vulnerability remediation SLAAsset inventory, scanner or pentest findings, deployment record, post-fix verificationService catalog, scanner, CI/CD, ticketsInternet-facing assets have owners; known-exploited items meet policy deadlines, with deployment and rescan evidence
Pull request review and policy enforcementSampled PRs, approvals, policy check runs, merge timestampsSource control, CI policy engineIndependent approval and passing required policy checks precede each sampled merge
Preventive controls on cloud accountsCloud inventory, account ownership, IAM exports, billing or service metadataCloud console, IAM, CMDBAccounts have owners and applicable preventive policies; exclusions have written reasons
Security design review for major changesDesign document, threat model, review thread, linked PRPlanning tool, documentation, source controlHigh-risk changes have recorded reviews traceable to shipped code
AI and third-party tool usageApproved-tool inventory, privilege records, governance policy, exception logVendor register, IAM, policy libraryTools 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

FindingAudit test and evidenceSeverityRemediation actionClosure evidence
Admin MFA exceptions not reviewedCompare privileged membership and exception exports with approvals; active blanket exclusion lacks current approvalHighIAM owner removes blanket exception and institutes quarterly exception reapprovalUpdated policy export, change record, and sampled sign-ins showing no bypass
Internet-facing assets without an ownerJoin external exposure inventory to service catalog; unmatched assets and overdue known-exploited findings remainHighPlatform owner assigns service owners, applies remediation deadlines, and adds an exposure dashboardReconciled inventory, deployment records, rescan results, and remediation-time metrics
PR policy check not blockingCompare merged PR check results with branch protection; required security check is advisoryMediumRepository owner makes the policy check a blocking statusProtection configuration, configuration-change record, and sampled compliant merges
Stale threat model after webhook integrationDesign review records show the threat model predates the integrationMediumAPI owner reviews the webhook trust boundary and links decisions to its implementationUpdated model, review log, linked PR, tests, and deployment record
Unsanctioned AI coding assistantsDeveloper survey and IDE inventory reveal tools absent from the approved registerMediumEngineering owner reviews usage, privileges, approval, and governance ownershipVendor inventory, IAM records, governance policy, and approval record
Backup restore untestedBackup records exist, but no restore drill covers the audit periodLowService owner schedules quarterly restore drills and performs the initial testRestore 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

MetricHow it is computedRed flag
Median time-to-remediationMedian elapsed days from opening to verified closure, grouped by severityHigh findings exceed their policy deadlines
Percent closed within policyFindings verified closed by deadline divided by all findings whose deadlines fall in the measured cohortBelow the approved policy target
Reopened findingsFindings previously closed and subsequently re-observedAny high finding reopened
Exceptions by criticalityRisk acceptances and temporary mitigations grouped by business-critical serviceRepeat exceptions affecting the same control
Coverage of in-scope assetsAssets with applicable evidence divided by assets in scopeShadow 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 activityPoint-in-time preparationContinuous readiness
Scope reconciliationRebuild inventory before fieldworkReconcile account, repository, and service changes
Design decisionsSearch documents and review threadsCapture approvals with the implementation context
ExceptionsChase owners for explanationsMaintain ownership, expiry, and review status
VerificationRe-test selected correctionsAttach deployment checks and drift results

A comparison chart showing the transition from manual, point-in-time preparation to modern, automated continuous audit readiness.

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.

A seven-step checklist for building a security audit file for admin MFA on payment APIs.

  1. Reconcile assets before reviewing policies. Match cloud accounts and repositories to the service inventory. Assign an owner to every unresolved production dependency.
  2. 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.
  3. Make policy checks blocking. Configure branch protection, then inspect merged PRs to confirm that approvals and required checks preceded the merge.
  4. Exercise recovery and exception review. Schedule quarterly restore drills and access-exception reviews. Retain results, owners, dates, and unresolved limitations.
  5. 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