Skip to content

fix: post-scan guidance led with the wrong step - #31

Merged
AviOfLagos merged 1 commit into
mainfrom
fix/post-scan-guidance
Aug 29, 2026
Merged

fix: post-scan guidance led with the wrong step#31
AviOfLagos merged 1 commit into
mainfrom
fix/post-scan-guidance

Conversation

@AviOfLagos

Copy link
Copy Markdown
Owner

A user scanned 100 repos and found ~15 infected in the first 20. snare told them:

Next:  snare fix <owner/repo>       (dry run)
       snare notify <owner/repo>    (tell collaborators)

Wrong order, and it omits the urgent part.

  • Credentials are the objective. Removing a payload doesn't un-steal a token, and an npm token with write access is how one machine becomes a supply-chain event. Rotation comes first.
  • Cleaning repos first is wasted work if the machine that pushed to them is still infected — this family injects on the way out, so it re-injects into whatever you just cleaned.
  • At 3+ flagged repos the output now says the common factor is the machine, not N separate accidents.

New order: rotate → check this machine → fix → notify.

snare still doesn't fix anything on its own, and shouldn't: fix can force-push and rewrite history, so it stays explicit.

A user scanned 100 repositories and found roughly fifteen infected in the
first twenty. What snare told them next was:

    Next:  snare fix <owner/repo>       (dry run)
           snare notify <owner/repo>    (tell collaborators)

That is the wrong order and it omits the urgent part.

Credentials are this family's objective, not a side effect, so rotation comes
first — removing a payload does not un-steal a token, and an npm token with
write access is how one machine becomes a supply-chain event.

Cleaning repositories first is also wasted work when the machine that pushed
to them is still infected: this family injects into commits on the way out, so
it re-injects into whatever you just cleaned. When three or more repositories
are flagged the output now says so directly, because at that point the common
factor is the machine, not fifteen separate accidents.

New order: rotate, check this machine, then fix, then notify.

snare still does not fix anything on its own, and should not — fix can
force-push and rewrite history, so it stays explicit.
@AviOfLagos
AviOfLagos merged commit c4713a2 into main Aug 29, 2026
2 checks passed
@AviOfLagos
AviOfLagos deleted the fix/post-scan-guidance branch August 29, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants