Software Due Diligence: What a Code Audit Covers

What an independent technical review can prove before you buy, invest in or inherit a codebase — and what the report has to contain to be worth reading.

November 29, 2026
6 min read

The short answer: software due diligence is an independent review of a codebase, its dependencies and the team that maintains it, done before money changes hands. A code audit answers three questions the seller's summary will not: what is actually running, what it will cost to keep running, and what is hidden — in licences, credentials, tests or key-person risk — that changes the number you should pay.

It is not a bug hunt. A code review asks whether a change is good; due diligence asks whether the asset is what you were told it is, and what it will cost to own.

What a code audit can prove that a financial review cannot

Financial diligence reads contracts, revenue and churn. It cannot see the product. The audit supplies evidence the spreadsheet cannot: whether the software builds from source, whether tests run, whether licensed code was copied in, and whether one resignation stops deployment.

The two reviews price different risks. Financial diligence prices last year's business. Technical diligence prices the engineering you inherit on day one, including work nobody has budgeted for.

The six layers a technical review should cover

A serious review is layered: a codebase can look fine at the top and be fragile underneath. Each layer should produce a finding you can check, not an opinion.

  • Build and deployment. Clone the repository and build it on a clean machine. If the build depends on one laptop or undocumented variables, every future release carries that risk.
  • Architecture and coupling. How services, data and scheduled jobs fit together, and what cannot change without touching everything else. Coupling is what makes a small feature expensive.
  • Dependencies and security. Direct and transitive packages, versions, known advisories, abandoned libraries, and secrets — committed keys, shared admin passwords, production credentials in chat history.
  • Tests and release confidence. Do tests exist, do they pass, are they disabled in CI? A suite that exists but never runs is worse than none, because it looks like coverage.
  • Data. Schema, ownership, exports, backups and personal data. An app that cannot export its own data leaves the buyer renting access to their own records.
  • Licensing, IP and people. Licence files, copyleft dependencies, contractor assignment clauses, who holds the cloud and registrar accounts, and how many people can deploy.

The same codebase can be worth two different numbers

Most findings do not mean the software is bad. They mean the price or the plan has to change. The useful output is a cost attached to each finding, so a buyer negotiates from evidence instead of suspicion.

FindingWhat it changesUsual remedy
Build works on one machine onlyEvery future release and any move of hostingTime-boxed work to make the build reproducible before handover
Copyleft dependency in a commercial productLicence exposure and distribution termsLegal review, replace the component, or adjust the price
No automated tests on billing or paymentsRisk and cost of every change to revenue codeAdd tests before changing the flow; budget the work
No export path for core dataExit cost and negotiating positionBuild the export as a closing condition
One person holds all production accessContinuity risk on resignation or disputeDocumented handover and shared ownership
Secrets committed to repository historyA security incident already in progressRotate every exposed credential, then clean history

A report that lists problems but attaches no cost or remedy is a scare sheet, not diligence. You are buying a decision, not a list.

What the report must contain

Demand structure before work starts: a scope statement naming the repositories and branches reviewed, an inventory of languages, frameworks and third-party services, and the commands the reviewer ran with their output.

It should also carry a risk register ordered by severity, each entry with the business consequence and estimated remediation effort, plus a prioritised thirty, sixty and ninety-day plan. Findings that could not be verified should be labelled as open questions rather than smoothed into the narrative.

Red flags that change the deal, not just the price

Some findings are fixable with money and some are not. These are worth pausing over, because each suggests the seller does not control their own system or cannot prove that they do.

  • A single squashed commit labelled "initial", so every change and contributor decision is invisible.
  • Tests in the repository excluded from the pipeline, or a build badge that has been red for months.
  • Nobody can say which commit runs in production, or the deployed version differs from the repository.
  • No licence file, a custom licence nobody can explain, or third-party source with no attribution.
  • The original contractor still holds the cloud account, the registrar and the only administrator login.

How to scope and price a diligence review

Price follows scope, and scope is measured in reviewer-days: how many repositories and languages, whether the build reproduces, and how many questions the buyer needs answered. A single application with working CI is a different job from a five-service estate with no tests; quoting both the same is a sign the review is a template.

Ask for a fixed fee against a written scope, with the deliverable and reviewer names stated. Hourly audits reward the reviewer for finding more, the wrong incentive for a buyer on a deadline.

What to ask before you commission one

  • Who does the work, by name, and have they run this stack in production?
  • What access do they need — read-only repository, CI logs, staging, database schema?
  • Will they run the build themselves and report the commands and output?
  • Do they have a conflict — are they also bidding for the rebuild, or connected to the seller?

If the audit finds the code sound but expensive to change, the next decision is a maintenance plan, not a replacement; what technical debt actually costs explains how to budget that. If it finds structural problems, the choice is between refactoring, rebuilding or replacing, and a handover checklist covers the transfer itself.

Frequently asked questions

How long does software due diligence take?

It is set by scope and by how quickly access is granted. A single application with a working pipeline can be reviewed in days; a multi-service estate with no tests or documentation takes longer, and the report should say which parts were sampled rather than fully reviewed.

Can a code audit be done without source access?

Only as a black-box review of the running product, which can test behaviour but cannot verify licences, committed secrets, coverage or build reproducibility. That is useful for research and inadequate for an acquisition, where those four questions usually matter most.

Who should commission and pay for the audit?

The buyer, because the buyer needs the report to be independent. A seller-provided audit is useful as an opening document, but unless the reviewer is independent and available to answer your questions, treat it as marketing rather than evidence.

What does a code audit cost?

It is priced in reviewer-days against a defined scope, so it depends on repository count, stack, documentation and the questions you need answered. Ask for the reviewer-day count and deliverable in writing, and compare quotes on scope rather than headline fee.

Share this post