Files
Pulse/pkg/securityutil
rcourtman 357f43f32e Harden AI tool sandboxing, agentexec sessions, and Patrol/Assistant isolation (#5077)
Hardens Pulse agentexec command transport, AI provider/tool sandboxing,
and Assistant/Patrol authorization boundaries:

- Bind agentexec sessions to organization and live connected agent token
ownership, reject NUL bytes in agent IDs, add write deadlines so stalled
agents cannot freeze dispatch, and enforce symlink-safe `/var/log` reads
with target-aware command policy.
- Sandbox AI read-only tools and providers: reject `lsblk --sysroot`,
bare hostnames in `ss` filters, sensitive path escapes, unbounded
`pulse_query` preallocation, unescaped `@path` attachments in Claude
subscription prompts, SSRF to broadcast/non-global-unicast targets in
`fetch_url`, Gemini key exposure, and command output leaks in failed
Codex turns.
- Enforce Assistant session ownership and handoff authority, bound
unknown-session abort tracking, prevent cross-org inventory leakage
after monitor reload, lock Patrol dismiss/resolve note steering behind
host-command authority, redact tool outputs from Patrol run history for
non-admins, protect saved AI provider keys on base URL changes, and
serialize AI settings updates.
2026-11-24 14:09:08 +00:00
..