strawberry/fuzz/seeds/fuzz_config/conf
trvon 6628ea9aea
Harden against crashes and I/O faults
Fix for the 2026-10-25 host freeze (an uncaught iostream exception on a
/proc read aborted the daemon; its core dump deadlocked with the exec
guard): non-throwing /proc reads, crash handlers that release fanotify
permission fds, guarded thread entries, from_chars parsing.

Adds the io fault-injection seam with property tests, source invariant
checks (R1-R6) with self-test fixtures, libFuzzer targets and seeds
(including I/O-fault fuzzing), the fold changed-files scan scripts and
the agent workflow docs (CLAUDE.md, prompts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 18:17:17 -06:00

60 lines
2.5 KiB
Text

# Strawberry Security Scanner Configuration
# Database settings (leave empty for XDG default: ~/.local/share/strawberry/database.db)
db_path=
# YARA settings
yara_rules_path=/etc/strawberry/rules
# Refuse to start if no rules compile (a scanner without rules detects nothing)
require_rules=true
# Daemon settings
daemonize=false
# pid_file/log_file are not implemented yet; under systemd, logs go to the journal
pid_file=/run/strawberry.pid
log_file=
# Monitoring settings
# (prefers libbpf exec tracepoints on supported Linux builds and otherwise falls back to procfs polling)
enable_bpf_monitoring=true
# Scan processes that are already running at startup (both backends).
scan_existing_processes_on_start=true
# Control socket used by the desktop app, the CLI (--status, --rescan, ...)
# and strawberry-mcp. Members of control_group may connect.
control_socket_path=/run/strawberry/control.sock
control_group=strawberry
# Largest file an on-demand scan (scan-fd / strawberry_scan_paths) will read.
scan_max_bytes=67108864
# Largest executable image read for a process scan (larger ones are counted
# as images_too_large and skipped).
process_scan_max_bytes=268435456
# Rule feeds + allowlist live next to the database by default
# (/var/lib/strawberry/policy.json and /var/lib/strawberry/feeds/), and are
# managed from the desktop app (Rules / Allowlist tabs) or `strawberry --policy-set`.
policy_path=
feeds_dir=
# Optional root-only file with a GitHub token: raises the GitHub API limit the
# rule updater uses from 60 to 5000 requests/hour (only needed on shared IPs).
github_token_file=
# Resource governor: how hard Strawberry may work on this machine.
# efficient - laptops / busy desktops: 1 scan worker, 16 MB/s background
# reads, exec checks fall back to hash/IOC-only when busy
# balanced - default
# aggressive - servers with spare capacity: no read pacing, never degrades
# Background work (startup inventory, rescans, memory scans, correlation,
# rule reloads) waits while the host is under pressure (PSI) and always runs
# at least once per background_max_deferral_s. Program launches are never
# delayed by the governor.
scan_profile=balanced
# Per-scan YARA timeout in seconds (0 = profile: 5 / 10 / 30).
scan_timeout_seconds=0
# How often the governor samples CPU, memory and pressure (ms).
governor_tick_ms=1000
# Background read budget in MiB/s (0 = profile, -1 = unlimited).
max_scan_rate_mb_s=0
background_max_deferral_s=300
# Daemon memory budget in MiB (0 = profile; capped by the systemd MemoryMax).
memory_budget_mb=0