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.
What is stored
All data is kept in the agent's local data directory. Every store is limited automatically.
| Store | Content | Retention |
|---|---|---|
| Baselines | Trusted snapshots of the protected files | Deleted once the file is removed |
| Verdicts | Detection result per change | Deleted together with the baseline |
| Quarantine | Restorable content of reverted changes | Retention period (default 30 days), then deleted |
| Audit log | Record of every decision | Rotated to one backup at the size limit (default 50 MiB) |
| Timeline | Device event stream | Rotated to one backup by size |
| Logs | Agent log, stderr output and notification spool | Rotated or truncated by size |
| Model assets | Files of the local detection model | Replaced on update |
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.
| Step | What it does |
|---|---|
| Quarantine cleanup | Deletes entries past the retention period. Before deleting, it writes a quarantine_expired audit entry and sets the case to expired |
| Audit rotation | Rotates audit.log to one backup at the limit. In Cloud mode only after all entries have reached the console |
| Log rotation | Rotates the notification spool and truncates the stderr output at their limits |
| Storage usage | Measures each store (read-only) and writes the result as a janitor_footprint audit entry |
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.
| Value | Default | Range | Cloud | Private |
|---|---|---|---|---|
| Quarantine retention period (days) | 30 | 1 to 3650 | Console | Signed client-config.json |
| Audit log limit (MiB) | 50 | 1 to 1024 | Console | Signed client-config.json |
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.
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
$env:PZ_CONFIG='C:\path\client-config.json' irm https://poisonzero.com/install.ps1 | iex
{
"quarantine_retention_days": 60,
"audit_max_mb": 100
}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.
| Where | How |
|---|---|
| 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. |
sudo poison0 cleanup
cleanup already running, skipped.Read next
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.
client-config.json. On cloud devices the console alone decides, and a local thresholds.json is ignored.