Technical code audit: how to check an inherited or old project before further work
A code audit is checking what state a program is in before you develop it further, take it over from another team or invest money in it. The auditor builds the project from scratch and looks at the architecture, dependencies, how secrets are stored, security, data, tests and how the product is released. The result is not a verdict to rewrite everything, but a working list of risks with priorities and a plan for the first steps. An audit answers the question 'what do we have', while modernization answers 'what do we do with it next'.
Open the software development page
What a code audit is and why you need one
A client rarely sees the code behind their product. They see screens, reports and customer complaints. While everything works, that is enough. But as soon as you need to add a feature, change teams or understand why every change breaks something else, it matters to know what is inside.
A technical audit gives you that picture. It is not about programmers' tastes or 'how we would have written it'. It is about risks: what can break, where data can leak, what blocks the product's development and how much effort the next step will take.
- understand whether the product can be developed further or must be put in order first;
- estimate the next piece of work honestly rather than blindly;
- find out which access rights and documents are missing to own the product;
- find vulnerabilities and weak spots before someone else exploits them;
- get a basis for the decision: keep developing, modernize in parts or replace the system.
When an audit is ordered
- The project came from another team or a freelancer who no longer responds.
- An old system needs work and none of the current staff wrote it.
- Every release brings new bugs and task estimates keep growing for no visible reason.
- There was an outage, a leak or a breach, and you need to know what else is vulnerable.
- The company is buying the product, investing in it or taking it on for support.
- Before a major piece of work: a new module, an integration, a move to other platforms.
Most often an audit is ordered when changing contractors. In that case it combines well with acceptance: first gather everything that should be handed over, then check that what was handed over actually works. What exactly should pass to the client is covered in the software project acceptance guide.
Audit vs modernization: the difference
The two words are often confused. An audit is diagnosis: it changes nothing in the code and ends with a document. Modernization is treatment: refactoring, platform upgrades, replacing parts of the system, data migration. Modernization without an audit is like renovating without an inspection: you can spend effort on the facade while the roof leaks.
| Code audit | Modernization | |
|---|---|---|
| Goal | Understand the state and the risks | Change the system |
| What changes in the code | Nothing | Code, dependencies, platforms, data |
| Result | A list of risks and a plan | An updated working system |
| When | Before any decision | After the audit, according to plan |
If the audit makes it clear the system is due for an update, the options, from targeted refactoring to step-by-step replacement without downtime, are described in the guide to legacy software modernization.
What a code audit checks
Build and launch
The first and most telling step is building the project from scratch on a clean machine using the existing instructions. If that cannot be done without calling the previous developer, it is already an important finding: the product depends on one person's knowledge.
Repository and history
Is there a repository with the full change history, whose account is it registered to, and does the code in it match what is running on the server and in the app stores.
Architecture
How the product is divided into parts, where the boundaries between them lie, whether there are files that know about everything at once, and how easy it is to add a new feature without touching old ones.
Dependencies
Which libraries and services are used, how outdated they are, whether they have known vulnerabilities and whether their authors have abandoned them.
Security and secrets
Where passwords, keys and tokens are kept, whether they sit in the code or the repository history, how user permissions are checked, whether every incoming parameter is validated and whether money is calculated on the server. Typical web app vulnerabilities are covered in the web app security guide.
Data
The database structure, migrations, backups and whether restoring from them has ever been tested.
Tests and releases
Are there automated tests, do they run before release, how does the product reach the server and the stores, and can a failed update be rolled back.
Monitoring
Does the team learn about an outage before customers do, and are there logs and alerts.
What the client receives after an audit
A good audit does not end with a thick report nobody reads, but with a working document. Every finding in it is explained in terms of consequences: not 'a principle is violated' but 'with this design any user can open someone else's order'.
- a list of risks explaining what each one means for the business;
- priorities: what to fix right away, what can wait and what is best left as it is;
- a list of missing access rights, documents and accounts;
- an assessment of how realistic it is to develop the product in its current form;
- a plan for the first work that can be picked up immediately.
| Priority | What goes here | What to do |
|---|---|---|
| Urgent | Data leaks, secrets in plain sight, no backups | Fix before any new features |
| Important | Outdated dependencies, no automated tests, manual releases | Plan into the next work |
| Can wait | Awkward structure, duplicated code | Fix along the way |
| Leave alone | Old but stable and isolated | Do not touch without a reason |
How to prepare for an audit
An audit goes faster and is more accurate if the client gathers what they have in advance. Even if something is missing, that is fine: the gap becomes a finding too.
- Access to the repository with history, not an archive of the latest version.
- Read access to servers, hosting, the database and cloud services.
- A list of external services: payments, email, analytics, maps, AI.
- Access to the app store accounts and the domain.
- Any documents: the task description, release instructions, correspondence about disputed decisions.
- A list of known problems and user complaints.
Access for an audit is best given through separate accounts with limited rights and revoked afterwards. There is no need to share a personal administrator password.
Typical audit findings
- The project does not build without the previous developer's unwritten knowledge.
- Passwords and keys sit in the code or were once in the repository history.
- The repository and accounts are registered to the contractor's personal email.
- The code on the server differs from the code in the repository.
- Backups exist, but nobody has tested restoring from them.
- User permissions are checked only in the interface, not on the server.
- Key libraries have not been updated for a long time and contain known vulnerabilities.
- There are no automated tests, so every change is a gamble.
None of these findings on its own means the product has to be thrown away. Most are fixed step by step, without stopping operations.
How we run code audits at JEEKSSHIRE 24
We start the same way we start any project of our own: we build the product from scratch and walk through the release path. Then we look at the architecture, dependencies, secrets, permissions, data, backups and pre-release checks. We look for root causes, not symptoms: if bugs keep coming back, understanding why matters more than closing the next one.
The result is a prioritised list of risks, a list of missing access rights and a plan for the first work. The client then decides: bring the product to us for software support and improvement, run a modernization or hand the plan to their own team. Describe your task on the custom software development page, and we will start with a conversation about what you have and what needs to be done.
Frequently asked questions
What is a code audit in plain words?
It is checking the state of a program before further work or a handover: does it build, how is it structured, what risks does it carry and what blocks its development.
How is a code audit different from a code review?
A code review checks a single change before accepting it. An audit looks at the whole product: architecture, dependencies, security, data and releases.
Does an audit change anything in the code?
No. An audit is diagnosis and ends with a document of risks and a plan. Fixes are done separately, after the client decides.
Do I need an audit if the product works?
Yes, if you plan to develop it further, hand it to another team, or if it handles payments and personal data. A product that works on the outside can be vulnerable inside.
Can an audit be done without the previous developer?
Yes. Missing instructions and unwritten knowledge become a finding in themselves, and the product can be reconstructed from the code, the server and the data.
What access is needed for an audit?
The repository with history, read access to servers and the database, a list of external services, and the app store and domain accounts. Separate accounts that are revoked afterwards are best.
What happens after the audit?
Fix the urgent risks, plan the important ones into the next work and decide whether to keep developing the product as it is or modernize it in parts.
Does a bad audit mean the system must be rewritten?
No. More often the system is improved step by step: security and backups first, then tests and releases, then architecture along the way.