Book a free call

What Is a Software Audit, and What Does It Cover?

A software audit is an independent review of code, security, licences and processes, done to find risk before it becomes an incident. Here is what it covers.

Hertiv engineering teamReviewed by a senior engineer
7 min read
What Is a Software Audit, and What Does It Cover?
On this page

Short answer

A software audit is an independent review of a software system that checks whether the code, the security, the licences and the working practices match what the organisation claims and what the rules require. It is not a test of one feature: it is a structured check of the whole system, carried out by people who did not build it, ending with findings ranked by risk.

What is a software audit?

A software audit is a structured, independent review of a software system. An auditor, or a team of auditors, examines the source code, the configuration, the documentation, the licences and the way the team works, then reports what is risky, what is undocumented and what breaks the rules the organisation has agreed to follow.

The word independent matters. A review by the team that built the system is a code review; an audit is done by someone outside the team, so the findings are not shaped by the team's assumptions. The audit can be internal, done by a separate team in the same company, or external, done by a firm the company hires.

Audit type What it checks Who asks for it
Code audit Quality, structure, dead code, tests Engineering lead, buyer of the software
Security audit Vulnerabilities, access control, secrets Security team, regulator, customer
Licence audit Open-source licences and obligations Legal team, acquirer, investor
Compliance audit Rules such as data protection and payment rules Regulator, enterprise customer
Process audit How the team builds, tests and releases Management, quality team
Performance audit Speed, scaling limits, cost of running Product team, operations team

Most audits cover more than one row of that table, because the risks overlap: a licence problem is also a legal problem, and a security hole is also a compliance problem. The audit starts by agreeing which types are in scope, so nobody is surprised by the findings.

What does a code audit check?

A code audit checks whether the code is understandable, maintainable and tested. The auditor reads the code, runs the tests, and looks for the patterns that predict trouble: functions that are too long to follow, duplicated logic that drifts apart, dead code that nobody owns, and tests that exist but never run.

The auditor also checks the structure: whether the system is split into parts that can change independently, whether the boundaries between them are clear, and whether a new developer can set the system up and make a small change without a week of help. A codebase that only one person understands is a risk, even if it works today.

The output is a list of findings with examples, ranked by how much each one costs the team. A missing test for a payment calculation ranks higher than a style inconsistency, and a module that three teams change at once ranks higher than a long function nobody touches. For the testing side, what is system testing covers the test types an audit expects to find.

What does a security audit check?

A security audit checks whether the system protects its data and its users. The auditor looks for the common weaknesses: passwords and keys stored in code, access checks that are missing or inconsistent, data that is not encrypted, and dependencies with known vulnerabilities that were never updated.

The audit usually combines a code review with live testing, where the auditor tries to break in the way an attacker would: logging in as another user, calling an API without permission, or sending input the system was not designed to handle. The findings are ranked by how far an attacker could get and how much data they could reach.

A security audit is not a penetration test, though the two are often confused. A penetration test tries to break in within a set time; a security audit reads the code and the configuration to find the weaknesses, whether or not they were exploited in the test. Many teams do both, and the audit usually comes first. For the methodology side, software testing methodologies shows how the checks fit together.

What does a licence and compliance audit check?

A licence audit checks every third-party library and component the software uses, and whether its licence allows the way the company uses it. Some open-source licences require the company to publish its own source code if it distributes the software; others only ask for a notice. Using a component under the wrong licence can force a rewrite or a legal dispute.

The auditor builds a list of every dependency, including the ones pulled in indirectly, and checks each licence against how the product is sold and distributed. The common finding is not a deliberately wrong licence, but a dependency nobody knew about, added by a library the team did not choose directly.

A compliance audit checks the same system against the rules that apply to it, such as data protection rules, payment rules or industry standards. The auditor looks for the evidence: records of consent, access logs, encryption settings, and the process for deleting data when a user asks. A rule that is followed but not recorded is treated as not followed.

How does a software audit run?

A software audit runs in a fixed sequence, and the scoping step decides whether the result is useful.

  1. Agree the scope. Decide which systems, which audit types and which rules are in scope, and what is out of scope. Put it in writing.
  2. Gather the material. The team hands over the code, the documentation, the dependency list, the access records and the test results.
  3. Review and test. The auditors read the code, run the tests, check the configuration and try the attacks a real attacker would try.
  4. Write the findings. Each finding states what is wrong, where it is, why it matters and how serious it is, with evidence, not opinion.
  5. Present the report. The auditors walk the team through the findings, starting with the highest risk, and agree which ones to fix first.
  6. Fix and re-check. The team fixes the findings, and the auditors re-check the highest-risk ones to confirm the fix works.

The re-check is the step most teams skip, and it is the one that matters most. A finding marked as fixed without a re-check is a guess. For the documentation the auditors will ask for, how to write a software requirements document shows the shape good documentation takes.

Example (hypothetical): a startup prepares for its first audit

Example (hypothetical): a 30-person startup is asked by a large customer for a security audit before signing. The startup has 4 services, about 120,000 lines of code, and 180 third-party dependencies, and it has never been audited.

The auditors spend 2 weeks on the review and report 24 findings: 3 high, 9 medium and 12 low. The high findings are a database password stored in the code, an API endpoint that any logged-in user can call to read another customer's data, and a dependency with a known vulnerability that was 2 years out of date.

The team fixes the 3 high findings in the first week: the password moves to a secrets store, the endpoint gets an ownership check, and the dependency is updated and its tests re-run. The 9 medium findings take 3 more weeks. The auditors re-check the 3 high findings and confirm they are fixed, and the customer signs. The 12 low findings go into the team's backlog with owners and dates.

What are the common mistakes?

The most common mistakes in software audits are scoping too widely, treating the report as the end, and hiding the bad parts from the auditors.

  • Scoping too widely. An audit that tries to cover everything in two weeks covers nothing well. Pick the systems and the risks that matter.
  • Treating the report as the end. A report that nobody acts on is a waste of money. Fix the high findings, re-check them, and track the rest.
  • Hiding the bad parts. Auditors find the hidden parts anyway, and the hiding itself becomes a finding. Hand over everything, including the messy code.
  • No evidence. A claim that the team follows a process means nothing without records. Keep the logs, the test results and the access reviews.
  • Skipping the re-check. A fix that is never verified is a guess, and the next audit will find the same problem again.

Key takeaways

  • A software audit is an independent review of code, security, licences and processes
  • Code audits check maintainability and tests; security audits check access, secrets and known vulnerabilities
  • Licence audits catch dependencies nobody knew about, including indirect ones
  • An audit ends with findings ranked by risk, and the highest-risk ones must be re-checked after fixing
  • Hiding messy code from auditors backfires: it gets found, and the hiding becomes a finding

Frequently asked questions

How long does a software audit take?

A small system with one or two services usually takes one to three weeks, including the review, the report and the presentation. A large system with many services and several audit types can take six weeks or more, and the scoping step decides the length.

How much does a software audit cost?

It depends on the size of the system, the audit types and the firm doing it. A small external audit is usually priced by the week, and the scoping call is the best way to get a figure. See the vendor site for pricing.

What is the difference between a software audit and a code review?

A code review is done by the team that built the system, usually on one change at a time. An audit is done by people outside the team, covers the whole system, and ends with a formal report ranked by risk.

Do we need an audit if we already test our software?

Yes, because tests check that the software does what the team intended, while an audit checks what the team missed: licences, access rules, secrets in code, and the processes around the build. The two checks find different problems.

Who should do a software audit?

Either a separate team inside the company or an external firm. The key requirement is independence: the auditors must not have built the system they are checking, so their findings are not shaped by the builders' assumptions.

What happens after an audit report?

The team fixes the findings in order of risk, starting with the highest, and the auditors re-check the highest-risk fixes to confirm they work. The remaining findings go into a backlog with owners and dates, and the next audit checks them.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Preparing for a software audit and want the gaps found first? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Custom Software Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call