Files
Pulse/internal/agentexec
rcourtman eda6b86f6b Harden AI read-only tool sandboxing and query limits
Close read-only AI tool escapes, device-open hazards, DNS exfiltration, and unbounded allocation:

- Deny lsblk --sysroot in the shared agentexec policy and restrict lsblk, lscpu, and lsmem in the pulse_read classifier to allowlisted options.
- Confine auto-approved df, fdisk -l, and file -s operands to explicit directories or kernel block device names so character devices like /dev/watchdog cannot be opened without approval, and add a targeted df refusal hint.
- Fix BSD/macOS ps environment option parsing in psPrintsEnvironment so dash-prefixed options are never skipped as values and dashless clusters reject uppercase E.
- Turn ssFilterNamesHost into an allowlist over keywords, literals, and comparison values, drop -F/--filter, and validate prefix lengths in isLiteralNetworkHost to block DNS exfiltration.
- Stop preallocating the pulse_query search result slice by the caller-supplied limit so huge limits cannot trigger an unrecoverable out-of-memory crash.

Contract-Neutral: Security hardening of AI tool sandboxing, agentexec sessions, and Patrol/Assistant authorization without public contract delta
2026-11-24 12:28:48 +00:00
..