Talk this topic through with an AI

You get an answer from the documentation and the page it comes from.

Installation & operation

Storage and retention

The poison0 agent stores all data locally and limits its size itself. A daily maintenance run deletes expired data and rotates the logs. This page shows what is stored, for how long, and how to configure cleanup.

~6 min read · Installation & operation

What is stored

All data is kept in the agent's local data directory. Every store is limited automatically.

StoreContentRetention
BaselinesTrusted snapshots of the protected filesDeleted once the file is removed
VerdictsDetection result per changeDeleted together with the baseline
QuarantineRestorable content of reverted changesRetention period (default 30 days), then deleted
Audit logRecord of every decisionRotated to one backup at the size limit (default 50 MiB)
TimelineDevice event streamRotated to one backup by size
LogsAgent log, stderr output and notification spoolRotated or truncated by size
Model assetsFiles of the local detection modelReplaced on update
Orphaned baselines and verdicts are removed by the 5-minute sweep (not the maintenance run) once the file is gone. A directory's adoption marker is never removed: A file without a baseline there is re-evaluated, never trusted unchecked.

Daily maintenance run

The maintenance run starts shortly after the agent and then every 24 hours. If one step fails, the others still run and the agent keeps running.

StepWhat it does
Quarantine cleanupDeletes entries past the retention period. Before deleting, it writes a quarantine_expired audit entry and sets the case to expired
Audit rotationRotates audit.log to one backup at the limit. In Cloud mode only after all entries have reached the console
Log rotationRotates the notification spool and truncates the stderr output at their limits
Storage usageMeasures each store (read-only) and writes the result as a janitor_footprint audit entry
Storage usage is measured after cleanup and recorded in the audit log (janitor_footprint), so its history is traceable like any decision.

Setting retention

Two values are configurable. If unset, the default applies; set values are clamped to the allowed range.

ValueDefaultRangeCloudPrivate
Quarantine retention period (days)301 to 3650ConsoleSigned client-config.json
Audit log limit (MiB)501 to 1024ConsoleSigned client-config.json
Values of 0 or less are rejected: Quarantine cleanup is then skipped, so a stray 0 cannot delete the active quarantine. A missing field keeps its default.

In Cloud mode a Pro or Enterprise owner sets both values per device in the console. Private devices receive all settings from the signed client-config.json: Exported from the profile via “Export for private devices”, distributed via MDM or at install time with --config or PZ_CONFIG.

bashInstall with configuration file
curl -fsSL https://poisonzero.com/install.sh | sudo sh -s -- \
  --config /path/to/client-config.json

# or as an environment variable:
#   PZ_CONFIG=/path/to/client-config.json
powershellInstall with configuration file
$env:PZ_CONFIG='C:\path\client-config.json'
irm https://poisonzero.com/install.ps1 | iex
jsonthresholds.json (older versions)
{
  "quarantine_retention_days": 60,
  "audit_max_mb": 100
}
Existing installations: The agent imports values from an existing thresholds.json or the previous install flags once on update; after that only client-config.json applies.

Manual cleanup

A manual cleanup runs the same maintenance run immediately.

WhereHow
Cloud (console)Clean up now button on the device page (Pro and Enterprise). The run starts at the device's next check-in; the result appears in the audit history. The device status is unchanged. Available only on active, enrolled devices and blocked while a pause or uninstall command is pending.
Private (device)poison0 cleanup command, with the same rights as quarantine restore.
bashStart a cleanup on a private device
sudo poison0 cleanup
The command runs one maintenance run and prints the storage usage. If a maintenance run is already in progress, it exits with cleanup already running, skipped.

What each decision records and where expired fits the lifecycle: Incidents and audit in the console. All install flags: Installing the poison0 agent. Quarantine cases still open when the agent is uninstalled: Uninstall on macOS, Linux or Windows.

Private devices receive only the licence from the server; all settings come from client-config.json. On cloud devices the console alone decides, and a local thresholds.json is ignored.