A security audit found problems: how to fix them in order

How to turn a long audit report into a plan: triage by exploitability and impact, fix classes of bugs, retest, and decide what to accept.

The short answer

Do not work down the report in the order it was written. Rank each finding by how easy it is to exploit and how much it exposes, fix the ones that expose customer data or allow takeover first, fix classes of bugs at one shared place rather than one instance at a time, add a test for each fix, and have the fixes retested. Record any risk you accept, with an owner and a date.

On this page
  1. What should you do first?
  2. How do you rank the findings?
  3. Fix classes of bugs, not instances
  4. How do you make each fix stick?
  5. When should you retest?
  6. What if you decide not to fix something?
  7. Does a breach need to be reported?
  8. How do you stop the next report from looking the same?
  9. How do you explain it to customers?
  10. Working with us

The report arrived. It has dozens of findings, severity labels, and a PDF that makes your team uncomfortable. Panic and paralysis are both common reactions. A calm, ordered approach works better.

What should you do first?

  1. Read the summary with the auditor. Ask for a call. Confirm what was in scope and what was not, so you do not assume more was checked than was.
  2. Check for active harm. If any finding suggests that data may already have been exposed, treat it as an incident now, not as a backlog item. If personal data was involved, the legal clock may be running; see the note on breaches below.
  3. Freeze risky releases only if findings are severe. Otherwise keep shipping, with the fixes mixed in.

How do you rank the findings?

The auditor’s severity is a starting point. Rank each finding yourself on two questions:

  • How easy is it to exploit? Can anyone on the internet do it, or does it need a signed-in user, special access or a rare condition?
  • What does it expose? Customer data across accounts, administrative control, money, only the user’s own data, or nothing sensitive?
Easy to exploit Hard to exploit
Exposes many customers or gives control Fix first, this week Fix next, schedule it
Exposes limited data Fix soon Backlog, with a date

Typical first-tier items: broken access control (one user can read another’s data), authentication flaws, injection, exposed secrets, and unprotected admin endpoints. Typical later-tier items: missing headers, verbose error messages, outdated libraries with no known path to exploit.

Fix classes of bugs, not instances

If the report lists ten endpoints where a user can read another account’s record, the problem is one missing rule, not ten bugs. Find the common cause and fix it in one shared place:

  • a missing ownership check, handled in a shared guard or enforced in the database with row-level security;
  • input that is not validated, handled once at the edge;
  • secrets in the code, handled by a secrets practice and rotation.

When a fuzzer found server errors in one of our APIs, they came from two classes of bug, and each was fixed once, for the whole API; see API fuzzing found server errors. After you fix one class, search the rest of the code for the same pattern, since the auditor only sampled.

How do you make each fix stick?

For every fix:

  1. Write a test that fails before the fix and passes after. Security and permission tests are never deleted to save time.
  2. Fix it in the layer that cannot be forgotten. Database rules beat code that must remember.
  3. Keep the change small and reviewed. Security fixes with unrelated changes are hard to verify.
  4. Rotate anything that may have leaked. A removed secret is still a leaked secret.

For tenant separation, an automated test that discovers every table and tries to cross the boundary keeps the whole class fixed; see proving tenant isolation in CI.

When should you retest?

Ask the auditor, or someone independent, to retest the fixed items. A fix verified only by the person who wrote it is a claim. Keep a simple tracking sheet: finding, ranking, owner, fix, test, retest result, date.

What if you decide not to fix something?

Some findings are not worth fixing: the cost is high, the risk is low, or a compensating control exists. That is a legitimate decision if you write it down:

  • the finding and your reasoning;
  • who accepted the risk, and when;
  • when it will be reviewed.

“Never” is not a date. Unrecorded decisions become surprises in the next audit or in a customer’s questionnaire.

Does a breach need to be reported?

If an incident involves personal data, data protection law may require notification. Under the GDPR, a controller must notify the supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware of a personal data breach that is likely to result in a risk to people (Article 33). Contracts with customers may set their own deadlines. Ask a lawyer early; this is not legal advice.

How do you stop the next report from looking the same?

Make the checks part of every change, so problems are caught when they are cheap:

  • type-aware linting and unused-dependency checks on every pull request;
  • tests for permissions and isolation that run in CI;
  • dependency updates on a schedule;
  • a short security review of changes that touch sign-in, permissions, money or deletion.

Then repeat the audit on a schedule, and use its findings to extend the automated checks.

How do you explain it to customers?

If customers or prospects ask about the audit, say that you had an independent review, how you ranked the findings and that the serious ones are fixed and retested. Do not share the report itself without the auditor’s agreement, and do not describe open weaknesses. Give the facts that are true now: what you fixed, what checks run on every change, and when the next review is planned. Customers care more about a clear process than a clean first report.

Working with us

If you have a report and need someone to turn it into a plan and do the fixes, send us the findings you are allowed to share and tell us how your app is built. We fix by class, add the tests and leave the checks running. Reach us through contact, or see our SaaS platform work.

Keep reading

Tell us what you want to build.

A product, a website, a search problem or a system that should work better. We reply with a plain answer and the first step.

A few sentences are enough (at least 20 characters).

We use your details only to answer your inquiry. See our privacy policy.