Skip to main content

Module monitor

Module monitor 

Source
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§

ApprovalRequest
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.
MonitorConfig
Monitoring, interactive approval, and freeze-on-ask configuration for crate::VmConfig.
PauseController
Whole-VM time-stop controller backed by Wasmtime epoch_interruption and paused guest clock accounting.

Enums§

ApprovalDecision
Policy decision recorded in audit logs or returned by an interactive approval handler.
ApprovalKind
Kind of sandbox operation intercepted for interactive judgment.
AuditEvent
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 ClientHello record (RFC 5246 / RFC 8446). Returns None if data is 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/tty pre-opened before Landlock on Unix, or CONIN$/CONOUT$ on Windows, falling back to deny if non-interactive).

Type Aliases§

ApprovalCallback
Synchronous approval callback (used for interactive CLI prompts or custom Rust policies).
AuditCallback
Sink callback receiving real-time structured AuditEvents from the VM host.