PushWarden docs

Response and recovery

PushWarden acts on confirmed malware and lets you undo everything.

What it does

Finding Response
A running malware process, or a connection to an attacker’s server Pro: stopped at once. Free: reported at once, with how to stop it
A config or entry file with malware added Pro: only the malware is cut out and your code stays. Free: reported, with the lines to remove by hand
A fake font, hidden payload, bad editor task or spreading script Pro: quarantined. Free: reported, with how to remove it
.gitignore lines that hide the malware Pro: those lines are removed. Free: reported, with the lines to remove by hand
A remote-access tool’s service or start-up entry Pro: disabled and quarantined. Free: reported, with how to remove it
Anything less sure reported only

What you are asked

A dialog shows the threat, the file and the reason. You choose:

  • Remove: the saved copy is deleted for good.
  • Restore and allow: the file is put back and not flagged again for 30 days.
  • No answer in 3 minutes: it stays in quarantine.

Choose how it behaves

pushwarden config --set action=ask
action What happens
quarantine (default) file moved away, then you are asked
ask you are asked first
delete removed without asking
report you are told, nothing is touched

Undo

pushwarden history                       # what was done
pushwarden history --restore PATH        # put the file back (it is still malicious)
pushwarden history --allow PATH          # put it back and stop flagging it
pushwarden history --remove PATH         # delete the saved copy for good

Quarantine lives in ~/.pushwarden/quarantine. Copies are kept 90 days, up to 500 MB. After that they cannot be restored.

See alerts

pushwarden alerts

If you were infected

PushWarden removes the malware. It cannot undo stolen secrets. Treat every secret on the machine as leaked.

  1. Do not git pull until the remote is clean. Clean it with pushwarden github-clean.
  2. Check pushwarden status and pushwarden history.
  3. Change everything: GitHub password and tokens, SSH keys, npm token, cloud tokens, every .env value, browser sessions.
  4. Look for odd commits and for apps or deploy keys you did not add in your GitHub settings.
  5. Reinstall Node and npm if npm/lib/cli.js was touched.
  6. Tell your team to scan before they pull.

The full list: remediation checklist.

Remember

  • Every change is copied to quarantine first.
  • A running malware process cannot wait for a dialog, so it is stopped at once.
  • If a file was flagged by mistake: pushwarden history --allow PATH --note "why".