PushWarden docs

Scanning

The guard scans for you all the time. Use pushwarden scan when you want a result right now.

pushwarden scan                  # this folder
pushwarden scan ~/code ~/work    # these folders
pushwarden scan --home           # all your projects, plus the computer

What is checked

  • Projects: every script, config, font, image and editor task file.
  • The computer: running programs, network connections, start-up entries, remote-access tools, editor settings and exposed credentials.

Useful options

Option What it does
--fix clean up without asking (reversible)
--no-prompt only report, change nothing
--dry-run show what --fix would do
--deep also look inside node_modules (slow)
--history also read old git commits
--json FILE save the report as a file
--ci for pipelines: exit code 1 on threats (Pro)

All options are in the reference.

What happens when something is found

How you ran it Result
In a terminal it asks, one file at a time
--fix it fixes without asking
--no-prompt or --ci it only reports

Fixing quarantines the file. With Pro it removes only the malicious part and keeps your code. Every change is saved first, so you can undo it (Response and recovery).

Before you commit

pushwarden harden --pre-commit .   # refuse commits that carry malware (Pro)

Skip a folder

pushwarden config --set exclude=~/code/malware-samples

Remember

  • Exit code: 0 clean, 1 threats found, 2 error.
  • Each scan saves a report. pushwarden status shows the latest.
  • See CI and automation to run it in a pipeline.