Configuration
Settings live in config.json in the data folder (~/.pushwarden). Read and change them with pushwarden config.
pushwarden config # show all settings
pushwarden config --set action=ask # change one
pushwarden config --set scan_roots=~/code,~/work
Restart the guard after a change. On Linux: systemctl --user restart pushwarden-guard.service.
Yes/no settings take true or false. Lists are separated by commas.
Settings you may want
| Setting | Default | What it does |
|---|---|---|
scan_roots |
automatic | folders the guard watches |
exclude |
none | folders never scanned |
deep |
false |
also scan node_modules and vendor |
action |
quarantine |
what happens to a bad file: quarantine, ask, delete or report |
auto_kill |
true |
stop malware processes |
prompt |
true |
show dialogs |
prompt_timeout |
180 |
seconds a dialog waits |
notify_desktop |
true |
desktop notifications |
webhook_url |
empty | send alerts to Slack, Discord or Teams |
block_c2 |
true |
keep the firewall block, and remind you if it is missing (the block itself is Pro) |
auto_update |
true |
update the program automatically |
update_channel |
stable |
beta also takes pre-releases |
ioc_update |
true |
refresh the malware list daily |
More settings
| Setting | Default | What it does |
|---|---|---|
realtime |
true |
watch files as they are written |
quick_interval |
5 |
seconds between program and connection checks |
full_interval |
21600 |
seconds between full scans |
auto_clean |
true |
with action=ask, quarantine when nobody answers |
notify_min_severity |
HIGH |
lowest level that notifies |
notify_sweeps |
true |
notify when a full scan starts and ends |
webhook_min_severity |
HIGH |
lowest level sent to the webhook |
journal |
true |
record history |
journal_keep_mb, journal_keep_days |
100, 365 |
history limits (0 = none) |
quarantine_keep_days, quarantine_keep_mb |
90, 500 |
quarantine limits (0 = none) |
clone_keep_days, clone_keep_mb |
3, 2048 |
repository copies kept by github-clean |
report_keep |
60 |
reports kept |
Where files are
The data folder is ~/.pushwarden. Set PUSHWARDEN_HOME to use another.
| File | What it is |
|---|---|
config.json |
your settings |
licence.json |
your Pro key |
iocs.json |
the malware list |
journal.jsonl |
history |
guard.log, alerts.log |
logs |
reports/ |
scan reports |
quarantine/ |
saved copies of changed or removed files |
decisions.json |
files you allowed |
github-clean-state.json |
what github-clean already checked |
The program itself is in your user folder (~/.local/share/pushwarden on Linux).
Environment variables
| Variable | What it does |
|---|---|
PUSHWARDEN_HOME |
use another data folder |
GITHUB_TOKEN, GH_TOKEN |
token for github-clean |
NO_COLOR |
no colours |
PUSHWARDEN_NO_BLOCK |
never ask for administrator rights |
PUSHWARDEN_ROOTS, PUSHWARDEN_WEBHOOK, PUSHWARDEN_VERSION, PUSHWARDEN_NO_INSTALL |
install script options, see Installation |
Remember
- A missing setting uses its default.
- The guard reads settings only when it starts.