Skip to content

Policy ​

The rules for what may be installed live in /etc/woodlark/policy.toml. Changes apply to the next install; there is nothing to restart. woodlark policy shows what is in force.

Each of the three gates can be block, warn or off:

toml
[gates]
vulnerabilities = "block"
support = "block"
origin = "block"

warn shows the finding and installs anyway. off skips the check.

Vulnerabilities ​

toml
[vulnerabilities]
# Block a package whose installed version would still carry these, when Debian
# already ships the fix (the fix just is not the version being installed).
block_severity = ["critical", "high"]
# Block anything on CISA's Known Exploited Vulnerabilities list, fixed or not.
block_kev = true
# Warn about open issues of these severities that have no fix yet.
warn_open_severity = ["critical", "high"]
# Also block open issues whose EPSS (chance of exploitation in 30 days) is at
# least this much; 0 turns it off. Example: 0.5
block_open_epss = 0.0

Severities are CVSS's: critical, high, medium, low. Adding "medium" to block_severity is a stricter setting.

Security support ​

toml
[support]
ended = "block"
limited = "warn"

Debian lists packages it no longer patches (ended) and packages it supports only for trusted input (limited), such as binutils or the Go and Rust toolchains.

Origin ​

toml
[origin]
allow = ["Debian", "Debian-Security", "Debian Backports", "Woodlark"]
allow_local_files = false

Names are apt origins, as apt-cache policy shows them. allow_local_files controls installing .deb files directly, such as woodlark install ./something.deb.

Security data ​

toml
[data]
url = "https://aureon.nyc3.cdn.digitaloceanspaces.com/security/db.json.gz"
warn_age_days = 7
max_age_days = 14

When the local data is older than max_age_days, new installs are blocked until sudo woodlark update fetches fresh data. Upgrades still go through. See Security data.

Overrides and extras ​

toml
[overrides]
# Gates an admin may override with --accept
allowed = ["vulnerabilities", "support", "origin"]

[extras]
# Remove a name to forbid it
allow = ["vscodium", "anythingllm"]

See When something is blocked for how overrides work.

Keeping your changes

policy.toml is a Debian configuration file. If a Woodlark update changes the default and you have edited yours, apt asks which to keep instead of overwriting it.

Security mode configuration ​

The top-level mode key accepts casual (the default), advanced, or vigil. Explicit settings always take precedence over the mode defaults. Settings saves preserve these explicit choices; remove a key from policy.toml to restore its mode default. Existing policies keep all their written settings.

Advanced enables local malicious-package advisory checks, Blocky DNS filtering, nftables destination blocking and file quarantine. Vigil adds filesystem-wide write watching, ClamAV and Suricata watch mode. Each component can be changed independently. Apt gates continue to work, and upgrades are never blocked.

Choose a mode in Security Center > Mode, or pass --mode casual|advanced|vigil to woodlark-install. Unattended installs with --mode vigil require --yes; interactive installs and Security Center ask for Vigil confirmation. Live images offer Advanced and Vigil entries in GRUB. Vigil asks again at first login and uses Advanced defaults until confirmed. Services reconcile mode and component settings automatically.

Local DNS zones ​

Blocky follows the DNS servers supplied by NetworkManager/DHCP by default. NetworkManager's DHCP domains, configured search suffixes, and routing-only (~zone) domains become conditional forwarding rules. Routing-only domains are not added to hostname search suffixes; higher-priority connection routes (including VPN routes) take precedence.

For a local zone not advertised by DHCP, open Security Center > Components and enter davis.local in Local DNS zones. Separate multiple zones with commas and click Save. Alternatively, edit /etc/woodlark/policy.toml:

toml
[dns]
upstream = "dhcp"
local_zones = ["davis.local"]

These zones follow the selected upstream when the network's DNS servers change. An existing connection-specific mapping for the same zone or an enclosing parent zone takes precedence, so a local child zone cannot divert VPN DNS. They are forwarding zones, not hostname search suffixes or blocklist exceptions. Use domain names without ~, wildcards, or a catch-all .. Other special-use names retain Blocky's default protection. Do not edit the generated /run/woodlark-protection/blocky.yml, or use /etc/resolv.conf as an upstream: the latter points back to Blocky and can cause a forwarding loop.

.local is reserved for multicast DNS. Explicit forwarding supports existing unicast .local networks, but home.arpa is preferable for new home networks. Applications using their own mDNS resolver may still treat .local differently.

Security Center and activity ​

Open Security Center from the launcher, click the bar shield, or run woodlark-security. Settings > Security links to the same app. Overview shows feed age and unacknowledged critical events; Activity supports search and filters; Trends displays hourly event and block counts over 24 hours, 7 days or 30 days. Overrides, Policy, Mode and Components provide the policy controls.

woodlark-securityd.service collects apt and policy events into /var/lib/woodlark/events.db. The database is private to root. Viewing private activity and acknowledging critical alerts requires administrator authorization. The bar shows aggregate counts only and emits no notifications. Amber indicates stale data or unavailable/disabled required protection; red indicates a critical event awaiting acknowledgement. Acknowledgement records that an administrator has reviewed an event; it does not release files or create an override.

woodlark-protection.service runs the policy reconciler. Blocky, Suricata and the file-parser worker run as separate unprivileged users. Components shows actual startup, running, disabled and failed status. Quarantine provides an authorized release action; release creates a reasoned SHA-256 exception, and revoking it reapplies protection. Dpkg-owned files are retained on a match.

Threat feeds come through the signed Woodlark data pipeline; new images include a package-trusted bootstrap copy. Checks work locally without sending dependency lists or file contents to a threat vendor. The package managers still resolve and download from their configured registries. Package wrappers can be bypassed by direct executable paths, virtual environments, python -m pip and sudo PATH resets. Block mode refuses workflows without a frozen plan; warn mode permits them with a recorded warning. DNS-over-HTTPS chosen by applications can bypass local DNS filtering. File checks run after writes, rather than blocking execution. Execution-time gates, clipboard inspection and memory-execution detection are future proposals and are not included.

Inspect services with systemctl status woodlark-protection woodlark-securityd and aggregate status with woodlark-protection status. Use Security Center for private activity, exceptions and quarantine. Existing events are forwarded from audit calls; old audit logs are not backfilled. The audit log remains available when the event collector is down.