A software audit is a structured technical review of a codebase, its architecture, dependencies and licensing, carried out to find risks before they compound. In practice it combines static analysis, manual review of design decisions, dependency and licence checks and an inspection of the build and release pipeline, and it ends in a ranked list of findings. That works well for deterministic software, where the behaviour you reviewed is the behaviour you ship. Once the system carries an AI feature, a clean software audit tells you the code is sound. It does not tell you that the deployed model behaves reliably, because data and configuration, not only code, shape ML system behaviour.
How a Software Audit Works in Practice
“Software audit” covers several different jobs. The term can mean a licence-compliance audit of a software user, a quality-assurance audit of a product, an external review of a product by people outside the organisation that built it, or a physical or functional configuration audit. IEEE 1028, the IEEE Standard for Software Reviews, names five review types: management reviews, technical reviews, inspections, walk-throughs and audits. The standard gives definitions and uniform procedures for these reviews that apply to critical and non-critical software and across the whole software life cycle.
The engineering audit a buyer commissions sits closest to the quality-assurance meaning. Its scope is agreed at the start, and a targeted security audit and a full technical due-diligence review are different products with different timelines. One pilot-driven framework for auditing ML systems describes three phases: planning, fieldwork with documentation, and reporting. The audit specification has to be defined and known by the auditor and the audited team: the standards applied, the artefacts and evidence to collect, the tests to run and the roles to interview.
There is also a process side to auditing. In software quality assurance, auditors look at the development process as well as the artefacts, and they change the engineering process itself to cut the defect rate of the delivered software. An audit that reads only the code misses this. An audit that reads only the process misses what the code actually does.
What Should a Software Audit Checklist Cover: Code, Dependencies and Licences, Access Controls, Change Management?
The checklist below sets out the workstreams of an engineering software audit.
| Area | What the auditor checks | Typical evidence |
|---|---|---|
| Code quality and security | Static analysis (SAST tools such as Semgrep or SonarQube) across the full source tree, then manual triage of findings | Findings scored by CVSS severity and cyclomatic complexity |
| Known vulnerabilities | OWASP Top 10 classification, SAST and DAST findings, dependency CVEs scored with CVSS | Severity-rated issue log with CWE references |
| Dependencies and licences | Every direct and transitive dependency classified by licence, with GPL, AGPL or LGPL components flagged for copyleft obligations | Licence register that feeds a legal risk register |
| Change management and CI/CD | Secret scanning, branch protection rules, artifact signing and environment separation, audited as a phase distinct from code quality | Pipeline configuration and its gaps |
| Architecture | Service boundaries, coupling, data flow, single points of failure, and drift between what was built and what the documentation says | Architecture findings written as decision records |
| Tests | Unit and integration test coverage (the “test pyramid”) and regression tests that catch features broken by new changes | Coverage reports and regression suite results |
| Process | How defects are prevented from reaching customers, not only how they are found | Test plans, review records, release procedures |
Every one of these rows examines something fixed at the moment of the audit: a commit, a lockfile, a pipeline definition. That is the point to hold on to when the system carries a model.
How a Software Audit Relates to IT General Controls and the Wider IT Audit
An IT audit is the broader discipline: it examines an organisation’s controls over its information systems, and IT general controls usually cover access to systems and data, change management, and IT operations such as backup and job scheduling. A software audit is narrower, because it examines one product or codebase rather than the organisation’s control environment. The two overlap on change management, which a software audit checks through branch protection, secret scanning and environment separation.
The practical consequence is that a software audit can supply evidence an IT controls review will reuse, but it does not replace one.
What a Software Audit Report Delivers, and Who Relies on It
The working output is a severity-rated issue log: each entry carries a tier (critical, high, medium, low), the affected file or service, a CWE reference where one applies and an estimated remediation effort. A remediation roadmap then sequences those fixes by risk exposure and business impact, with actively exploited vulnerabilities first. Netguru, a software consultancy, describes grouping findings into “fix before go-live”, “fix within 30 days” and technical debt to schedule, each with an owner recommendation, so that every finding maps to a decision rather than a bare observation.
The engineering team works from the issue log. Its licence findings feed a legal risk register, which matters most in M&A and pre-IPO contexts.
What an audit report cannot be is a certificate of safety. A reliability audit report is engineering evidence about a system at one point in time: it says what is covered, what is unmonitored and what remediation comes next, and it says nothing about legal conformity.
How Much Does a Software Audit Cost, and What Drives the Price?
The price ranges below are one vendor’s published figures, in its own framing. Netguru lists a rapid audit (security assessment across up to 150k lines of code, a licence spot-check of up to 200 dependencies and a high-level architecture review) at one to two weeks and $8k to $20k “according to typical market rates”. The same source cites industry benchmarks of $25k to $65k for a complete audit (SAST and DAST testing, dependency analysis across all components, infrastructure and CI/CD review, full SPDX licence mapping and architecture assessment) taking four to six weeks.
The two tiers differ in codebase size, number of dependencies, how many workstreams are included, and the uses they suit, such as an M&A close or a platform modernisation. For an AI feature, one pilot-driven study of ML audits adds two points. Some systems cannot be audited well because the necessary artefacts, documentation and logs simply do not exist, so an audit has to start by checking auditability criteria. Timing matters too: the study’s authors observed that auditing before market deployment or after development significantly increases compliance costs, because root causes become harder to trace later.
What a Clean Software Audit Misses in an AI Feature
The intuitive reading is that a codebase with no critical findings, good coverage and a clean pipeline is ready to ship. For deterministic code that is broadly fair, even though testing every combination of inputs and preconditions is never feasible. For an AI feature the reading breaks, for structural reasons.
Amershi and colleagues at Microsoft (ICSE-SEIP 2019) named three ways AI differs from earlier software: data is much harder to discover, manage and version; model customisation needs different skills; and models are harder to treat as distinct modules, because they can be “entangled” and show non-monotonic error behaviour. Sculley and colleagues (NeurIPS 2015) argued that ML systems carry all the maintenance problems of traditional code plus ML-specific debt that exists at the system level rather than the code level. In a mature ML system, they noted, configuration can run to more lines than the traditional code, and both researchers and engineers may treat configuration as an afterthought, with its testing not even seen as important. Their conclusion was that unit and end-to-end tests are not sufficient evidence in a changing world, and that live monitoring with automated response is critical.
A 2026 study of agentic systems in production found that six of seven failure modes share one shape: a system metric stays healthy while a quality signal degrades. Under load spikes, for example, systems with hard latency budgets fall back to degraded inference paths, and SLA metrics stay green while decision quality erodes. Anthropic’s published postmortem of three infrastructure bugs that degraded Claude’s responses between August and early September makes the same point from a vendor’s own systems: the evaluations it ran “simply didn’t capture the degradation users were reporting”. Deployment patterns do not close the gap on their own either; a 2026 study of embodied-agent upgrades found practice-adapted canary and blue-green deployments still admitted faulty versions in 61.3% and 64.0% of upgrade rounds, because aggregate success hid policy and recovery regressions.
Model weights, prompt templates and data distributions can all change after release and shift outputs.
Auditing a Deployed Model for Drift and Regression on Live Inputs
An AI audit tests whether a regression would be detected, contained and owned, which is a property of the operational surfaces around the model rather than of its confusion matrix. Our AI reliability audit article sets out those surfaces in depth; this section covers why checks must run continuously.
TechnoLynx audits AI-bearing systems for production reliability: whether a model regression would be detected, contained and owned once the feature is live.
A benchmark score is a point-in-time snapshot, while production output distributions shift as weights update, prompt templates change and data evolves. In the 2026 study of agentic production systems, failure modes such as distribution collapse and goal drift were detectable only in continuous operation. Auditing under test conditions may not reflect behaviour in use, so the pilot-driven audit framework recommends test procedures that run regularly during operation, with results inspected at the next audit iteration. After its incidents, Anthropic committed to running quality evaluations continuously on true production systems.
Three practices address this. Input-distribution tests on the data feeding the model, beyond basic sanity checks. Shadow execution, where a candidate version runs on the same live inputs as the active one without controlling anything, so regressions and drift show up before activation. And post-activation monitoring that can trigger a rollback, because pre-activation evidence is inherently incomplete. If you want a concrete starting list, our drift instrumentation checklist covers what to measure, and the case for live checks over pre-release ones is argued in why staging tests do not protect a production AI feature.
What Extra Evidence Does an Audit Need When the System Includes an AI Feature?
An AI feature adds three kinds of evidence: an audit trail of the model’s lifecycle, model documentation, and records of who decided what.
An audit trail, in the definition of a 2026 paper on LLM accountability, is a chronological, tamper-evident ledger that links technical provenance (models, data, training and evaluation runs, deployments, monitoring) with governance records (approvals, waivers, attestations), so an organisation can reconstruct what changed, when and who authorised it. MLOps practices improve technical provenance but often omit who approved a change, under what conditions and why. For a deployed system, the trail should let an auditor reconstruct:
- which approved model version or configuration bundle was bound to which deployment, and when;
- the runtime configuration that shapes behaviour: prompt policies, decoding settings, retrieval or tool-use configuration and guardrail layers;
- what was evaluated, on which data or scenario suites, and what limitations were known at sign-off;
- the release-readiness decision itself, including who authorised deployment, for what scope and with what conditions;
- who can access and modify the deployed system, including rollback authority, and the rollout strategy such as pilots or staged releases.
Model documentation is the second layer. External auditors often rely on information developers disclose, such as datasheets, factsheets and model cards, and can validate it only where they are also given access to query the system directly. Role separation is the third: each AI decision, model change and system action should be traceable and attributable to a defined human role, and each recorded decision should carry its owner, rationale, scope and supporting artefacts.
For high-risk AI systems in the EU, part of this is a legal requirement. Article 12 of the EU AI Act requires logging capabilities that record events relevant to identifying risks, facilitating post-market monitoring and monitoring operation. Article 72 requires providers to run a post-market monitoring system that actively collects and analyses performance data throughout the system’s lifetime. An engineering audit can show whether those capabilities exist and work; whether a system meets the Act is a legal judgement it cannot make.
Who Owns the Findings and the Rollback Decision?
In Netguru’s format, each software audit finding carries an owner recommendation. For AI systems, some failure modes are detectable only by combining signals owned by different teams, such as ML metrics and product metrics, and those teams often watch different dashboards with no shared escalation path. The 2026 study that observed this called shared ownership of the gap between proxy and true metrics an open organisational problem.
The trail should record who holds rollback authority. One design gives a single architectural role ownership of the lifecycle from candidate registration through validation, shadow deployment and activation gating to rollback. Each rollback event, in that design, records the trigger, the time-to-rollback and whether recovery succeeded. How to build that path is covered in designing a rollback path for an AI feature in production.
When a Software Audit Needs an AI Audit on Top
A general software audit is enough when nothing in the system changes behaviour without a code change. Once a model, prompt or data dependency can shift what users get, it needs extending.
| System condition | Software audit alone | Extend with an AI reliability audit |
|---|---|---|
| Deterministic code, no learned component | Yes | No |
| A fixed model behind a feature, never updated, narrow inputs | Usually, with input checks | Consider it if inputs come from the open world |
| Models, prompt templates or data change after release | No | Yes: drift and regression need continuous checks |
| Signals that detect failure are owned by different teams | No | Yes: some failure modes are detectable only by combining those teams’ signals |
| High-risk AI system under the EU AI Act | No | Yes: logging and post-market monitoring are required |
What the AI extension delivers differs in kind. A software audit report lists defects and their effort. An AI audit can report coverage of the lifecycle (one framework measures “audit coverage” by which lifecycle phases were examined, by analogy with unit-test coverage). A single audit pass describes the system as it stood at one point in time. The audit then feeds the go-live gate, set out in our release-readiness decision framework.
How Do You Prepare a System so a Software Audit Produces Approval-Grade Evidence?
Approval-grade evidence is evidence a reviewer can act on without reconstructing the story from email threads and recollection. Preparing for it comes down to a few things, in order:
- Agree the audit specification first: the standards, artefacts, tests and roles in scope.
- Check auditability before scheduling fieldwork: code and data access, and whether the documentation and logs exist at all.
- Record evaluation scope and known limitations at sign-off, not after the fact.
- Instrument the audit trail where work already happens: training callbacks, serving middleware and CI/CD steps, which one proof of concept showed can be added with low integration overhead.
- Give each critical phase an owner and a go/no-go criterion.
- Start the conversation with the auditor early, because the earlier it starts, the more traceability you gain and the lower the compliance cost.
What an auditor then reads from that evidence is laid out in audit working papers for an AI workflow. Approval-grade still means engineering evidence for a reviewer. It does not mean legal audit-readiness.
Who Can Audit an AI-Bearing System for Production Reliability?
For AI-bearing systems, TechnoLynx builds the Production AI Monitoring Harness under Production AI Reliability: eval, regression, drift and slice-metric checks, not a generic code-review report. The wider governance work, approval evidence packs for an auditor or regulator, sits under AI Governance and Trust. Whether you build this in-house depends on whether your team already runs continuous evals and owns rollback; if it does, an outside audit mainly adds an independent read.
The engagement does not suit every buyer. A codebase with no learned component needs only a general software audit (security, dependencies, licences, pipeline). An engineering audit gives no legal verdict on EU AI Act conformity. If you are weighing whether a formal audit is worth it against informal monitoring, our analysis of when a reliability audit pays for itself works through that trade-off.
FAQ
Which Software Is Used for Auditing Code?
Static analysis tools such as Semgrep, SonarQube or Checkmarx, chosen to fit the stack, run across the source files and produce findings for human triage. Licence audits typically use SPDX-classified dependency scanning.
What Is the Difference Between a System Audit and a Process Audit?
A system audit examines the product itself: its codebase, architecture, dependencies and licensing. A process audit examines how the software is built, with the aim of changing the engineering process to reduce the defects that reach the delivered product.