Expand description
Untamperable host-side runtime monitoring, audit event streaming, interactive approval gates (network + 9P filesystem + sensitive credential reads), and whole-VM time-stop pause/resume.
Structs§
- Approval
Request - Details of an intercepted operation paused awaiting an external Allow/Deny decision.
- Monitor
- Shared host monitor coordinating audit logging, remembered rules, pending approval gates, and optional whole-VM freeze-on-ask.
- Monitor
Config - Monitoring, interactive approval, and freeze-on-ask configuration for
crate::VmConfig. - Pause
Controller - Whole-VM time-stop controller backed by Wasmtime
epoch_interruptionand paused guest clock accounting.
Enums§
- Approval
Decision - Policy decision recorded in audit logs or returned by an interactive approval handler.
- Approval
Kind - Kind of sandbox operation intercepted for interactive judgment.
- Audit
Event - Structured host-side audit event emitted outside the guest VM (untamperable by guest root).
Functions§
- extract_
http_ request - Extract HTTP/1.x
(method, path, Host)from the beginning of a cleartext outbound TCP stream. - extract_
tls_ sni - Extract the TLS Server Name Indication (SNI) hostname from an outbound TLS
ClientHellorecord (RFC 5246 / RFC 8446). ReturnsNoneifdatais not a TLS ClientHello with SNI. - format_
net_ target - is_
sensitive_ path - Heuristic detector for credential/secret paths commonly targeted by supply-chain malware
(e.g. Shai-Hulud scanning for
.env,.npmrc, AWS/GitHub/SSH keys, kubeconfigs). - now_
unix_ ms - open_
audit_ file - Open/create a JSONL audit log file (call BEFORE Landlock so writes continue working inside sandbox).
- terminal_
approval_ callback - Interactive terminal prompt callback for CLI
--ask-*usage (reads from/dev/ttypre-opened before Landlock on Unix, orCONIN$/CONOUT$on Windows, falling back to deny if non-interactive).
Type Aliases§
- Approval
Callback - Synchronous approval callback (used for interactive CLI prompts or custom Rust policies).
- Audit
Callback - Sink callback receiving real-time structured
AuditEvents from the VM host.