What a good remediation actually looks like
On this page
In short
A good remediation closes the root cause across every affected path, adds a test that would have caught the failure, documents any residual risk, and is verified against a specific fix commit. A changed line is not evidence that a finding is resolved; the original exploit conditions and important variants must no longer hold.
A findings list is not a fix
Every finding carries an implicit second half: the change that resolves it. That change is where new bugs are born.
- A fix that guards one path but not its symmetric twin.
- A patch that resolves the reported case and introduces a regression elsewhere.
- A "won't fix" that quietly accepts a risk the team never fully understood.
These problems are why the remediation record matters as much as the original finding. The report establishes the failure; the fix needs its own technical argument and evidence.
Start from the violated property
Suppose a privileged withdrawal function checks that the caller has an operator role but does not restrict which user balance it can debit. Adding a check in the frontend does not repair the authorization invariant because callers can invoke the contract directly. Adding a check to one wrapper is also incomplete if a second entry point reaches the same internal debit path.
A root-cause remediation states the intended property—an operator may only debit balances explicitly delegated to it—and enforces it at the authoritative boundary for every entry point. The accompanying test should attempt the original path and the symmetric alternatives.
A practical remediation loop
We treat remediation as part of the review, not a separate favor afterward:
- Clear findings. Every finding names the affected code at a pinned commit and explains why it is wrong, so the team is fixing the actual problem — not their guess at it.
- Fix review. We review the patch with the same adversarial lens we used on the original code, because a fix is just more code that can be wrong.
- Re-verification. We confirm the finding is closed at the remediation commit, and check the surrounding surface for anything the change disturbed.
- Versioning. The re-review identifies the exact remediation commit and any relevant deployment or configuration changes.
- Status. Each issue receives a clear result: resolved, partially resolved, acknowledged, or not addressed, with residual risk explained.
NIST’s Secure Software Development Framework places vulnerability response and prevention of recurrence inside the software development lifecycle. That is the useful model: remediation is engineering work with ownership, verification, and feedback into future development.
What reviewers check in a fix
- Original path: Does the same proof of concept, test, or reasoned trace now fail for the right reason?
- Variants: Do paired functions, inherited implementations, alternate roles, integrations, and existing state still expose the weakness?
- Regression risk: Does the new validation block legitimate behavior, create a denial of service, reorder external calls, change accounting, or weaken another invariant?
- Migration: Can the fix safely handle already-deployed state, approvals, queued messages, open positions, or storage layout?
- Operational follow-through: Do deployment parameters, key permissions, monitoring rules, and incident procedures need to change with the code?
When a narrow re-review is not enough
A localized patch can be checked against the original finding. A redesign—new accounting, a different oracle, a proxy migration, a new bridge, or a rewritten authorization model—creates a new attack surface. Treating that as a simple "resolved" status would overstate what was evaluated. The new behavior should be scoped as additional review work.
Limitations
Re-review is bounded by the submitted changes and the original context. It does not prove that the whole system is vulnerability-free, validate later releases, or replace production monitoring and incident response. A team may also intentionally accept a risk; the honest outcome is then "acknowledged" with the remaining exposure recorded, not "resolved."
Primary references
- NIST Secure Software Development Framework, SP 800-218
- OWASP Smart Contract Security Verification Standard