What the buyer is trying to find out
Technical due diligence answers three questions for a buyer: what are we actually getting, what will it cost to keep running, and what has to be fixed before it is safe to own.
Every finding ends up in one of three places: a lower price, money held back after closing, or a promise written into the contract. A problem you already know about and can explain rarely moves the price much. A problem the buyer discovers for you does, because it raises the question of what else you have missed.
Preparing does not mean hiding problems. It means finding them first, fixing the cheap ones, and having a dated plan for the rest. The five areas below are where reviewers look, in the order worth tackling them.
1. Know what you ship, and under what licence
Open-source licensing is where buyers are least flexible, because it is a question of who owns the product. Produce a complete list of every third-party component in what you ship, including the dependencies of your dependencies, with the licence of each.
Look for three things:
- Strong copyleft licences (GPL, AGPL) inside a product you distribute or offer as a service.
- Components with no licence at all. No licence means no permission to use the code.
- Code copied in from elsewhere, including snippets from forums or from AI coding tools, where nobody recorded where it came from.
The options for each problem are the same: replace the component, isolate it so its terms do not reach your own code, or buy a commercial licence. Each takes weeks and often depends on someone outside your company, which is why this comes first. See what GPL and AGPL code does to an acquisition.
2. Clean up secrets and known vulnerabilities
Reviewers scan the whole history of a repository, not only the current files. A password or API key committed three years ago and deleted the next day is still in that history, and it will be found.
- Rotate every credential that was ever committed. Rotation matters more than removal: a key that no longer works is harmless wherever it appears.
- Move secrets out of the code into a secrets manager or environment configuration, and be able to show that you have.
- Update dependencies with serious known vulnerabilities, or write down why a specific one does not affect you.
- Have a recent security review to hand over, with a note of what was fixed since.
3. Make it deployable by someone who is not you
A buyer is paying for the ability to run the product without its current team. The test is simple: could a competent engineer who has never seen the system deploy it from the repository and the documentation?
- Infrastructure defined in code, not set up by hand in a cloud console.
- Nothing open that should be closed: no databases or storage reachable from the internet, no firewall rules that allow everything.
- Backups that have been restored at least once, with the date you did it.
- A list of every paid service the product depends on, who owns each account, and what it costs per month.
Account ownership catches people out. A service registered to a founder's personal email address is a common late-stage problem, and an easy one to fix early.
4. Be honest about technical debt
Every codebase has debt. Buyers do not expect none. They expect you to know where it is and what it would cost to clear.
What gets priced:
- Parts of the system only one person can safely change.
- Very large files or modules that everything else depends on.
- Critical paths with no automated tests.
- Frameworks or language versions that are no longer supported.
- Work that must happen before the product can grow, such as a database that will not scale past its current size.
Write a short register: the item, why it exists, what it would cost to fix in engineer-weeks, and whether it blocks anything. A register turns an open-ended worry into a number the buyer can plan around.
5. Reduce dependence on individuals
Reviewers look at who wrote what. If most changes to a critical component come from one person, that person is a risk to the deal, and the buyer will want them tied in or their knowledge spread.
- Check the contribution history for components with a single author.
- Confirm every contributor assigned their work to the company, including past contractors. A missing assignment is an ownership problem, not a paperwork problem.
- Write down how the system fits together: one architecture overview, one runbook for when things break, and one guide that gets a new engineer productive.
A 90-day plan
Three months is enough if the work starts with finding rather than fixing.
| When | What to do | What you have at the end |
|---|---|---|
| Days 1 to 30: find | Inventory all third-party code and licences. Scan the whole history for secrets. List infrastructure, accounts and paid services. Run an independent audit so you see what a buyer will see. | A complete, ranked list of findings |
| Days 31 to 60: fix | Replace or isolate licence problems. Rotate exposed credentials. Close open infrastructure. Update vulnerable dependencies. Collect missing contributor agreements. | The findings that would stop or reprice a deal are gone |
| Days 61 to 90: document | Write the debt register, the architecture overview and the runbook. Restore a backup and record the date. Run the audit again. | A clean second audit and a folder you can hand to a buyer |
Start licences and contributor agreements on day one. Both depend on other people and cannot be rushed at the end.
Checklist
- Every third-party component listed with its licence, including indirect dependencies
- No strong copyleft code in what you distribute or host, or a written decision on each case
- Every credential that was ever committed has been rotated
- No serious known vulnerabilities in dependencies, or a written reason for each exception
- Infrastructure defined in code; nothing open to the internet that should not be
- A backup restored, with the date recorded
- Every service account owned by the company, not an individual
- A technical-debt register with a cost against each item
- Signed assignments from every contributor, past and present
- An architecture overview, a runbook and an onboarding guide
Where Veridence fits
Veridence audits a repository automatically, the same way every time. One report covers the licences the code declares and its dependencies carry, known vulnerabilities in those dependencies, secrets and insecure code, infrastructure settings, maintainability, and how concentrated the work is in one person. Run it at the start to see what a buyer would see in your current code, and again at the end to show what changed.
See a sample report, or read how the engine works. A free preview of one repository shows its risk and cost to fix.