Closing the loop: how retests work
A finding is not closed when the ticket is. It is closed when the exploit that proved it stops working. Here is what happens when you press Retest.
Most vulnerability tracking ends on a status change. Someone merges a patch, moves the ticket to done, and the finding is marked fixed. Whether the exploit still works is a question nobody asks again until the next test, often months later.
SamSec treats “fixed” as a claim that needs the same kind of evidence as the finding itself. If proof was required to open a finding, proof should be required to close it.
The loop
- Push the fix: ship it to the environment the finding was found on, or to a staging copy of it.
- Trigger a retest: press Retest this finding on the finding page, or call the API from your pipeline after a deploy.
- Replay the proof: the agent loads the finding’s captured exchanges and sends the proof request again, as the same test identity.
- Try the variants: a fix that blocks one request often leaves its neighbours open, so the agent also replays variations of the attack.
- Return a verdict: reproduced, fixed or inconclusive, recorded on the finding.
Starting a retest from the API is a single call. It creates a short retest scan tied to the finding:
POST /api/findings/{id}/retest
201 Created { "scan": { ... } } a retest scan has started
409 Conflict { "error": ..., "scanId" } one is already queued or runningOnly one retest per finding can be queued or running at a time. Asking again while one is in flight returns the running scan instead of starting a second, so a busy pipeline cannot pile up duplicate work.
Replaying the variants
Take the illustrative IDOR from our note on verified findings: Alice could read Bob’s order at /api/orders/1042. A fix that adds an ownership check to that route might not cover the same object reached another way.
Variants are the same attack with the surface changed: for example a different HTTP method, the identifier moved from the path into a query string or body, an older API version that resolves to the same handler, or a different encoding of the identifier. Which variants make sense depends on the finding. The point is that “the exact original request now fails” is necessary, but it is not sufficient.
Three verdicts, three outcomes
- Reproduced: the proof, or one of its variants, still produces the evidence. The finding stays open; if it had been marked fixed or accepted risk, it is reopened as confirmed.
- Fixed: the replayed proof and its variants no longer produce the evidence. The finding moves to fixed.
- Inconclusive: the agent could not decide, because the target was unreachable, a test session had expired or a deploy was halfway through. The status does not change.
A retest that fails, is cancelled, or finishes without a verdict is recorded as inconclusive too. Every retest is appended to the finding’s history with its verdict, its time and an optional note, so the finding page tells the whole story: found, fixed, reopened, fixed again.
Note
Inconclusive is not a soft “fixed”. It means the question is still open. An application that is down is not secure; it is just not answering.
Why fixed must be proven
Patches fail in ordinary ways. The fix lands in one service but not in the replica behind a different load balancer. It sits behind a feature flag that is off in production. A deploy is rolled back for an unrelated reason. The check is added to one controller while a second route reaches the same data without it. None of this is exotic, and all of it ends with a ticket marked done and a vulnerability that still works.
Assuming a fix works costs nothing until the assumption is wrong. Proving it costs one short retest. Because the agent already holds the exact evidence of the original exploit, the replay is cheap, specific and repeatable: the test that opened the finding is the same test that closes it.
It also makes the word mean something in reports. When a finding shows fixed after a retest, it means the exploit was replayed against the target and stopped producing its proof, not that someone believed it would.
Fitting it into a release
A retest replays one finding rather than re-running a whole engagement, which makes it practical to trigger right after a deploy to staging, before the change goes any further. If the verdict comes back reproduced, you find out while the fix is still fresh in someone’s head, not in next quarter’s report.