internal/

directory
v0.0.0-...-230ac96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: Apache-2.0

Directories

Path Synopsis
approval
Package audit provides tamper-proof audit logging with HMAC-based integrity chains.
Package audit provides tamper-proof audit logging with HMAC-based integrity chains.
kms
Package kms provides key management system integrations for audit integrity keys.
Package kms provides key management system integrations for audit integrity keys.
Package capabilities provides runtime checks for kernel and system capabilities required by agentmon sandbox features.
Package capabilities provides runtime checks for kernel and system capabilities required by agentmon sandbox features.
internal/cli/mcp_cmd.go
internal/cli/mcp_cmd.go
internal/config/ptrace.go
internal/config/ptrace.go
db
classify/postgres
Package postgres — ast_copy.go owns the §7.3 COPY family.
Package postgres — ast_copy.go owns the §7.3 COPY family.
classify/postgres/corpus
Package corpus declares the on-disk shape of classifier golden fixtures.
Package corpus declares the on-disk shape of classifier golden fixtures.
effects
internal/db/effects/alias.go
internal/db/effects/alias.go
events
internal/db/events/event.go
internal/db/events/event.go
policy
Package policy implements the AgentMon database-access policy evaluator per docs/agentmon-db-access-spec.md §9–§10.
Package policy implements the AgentMon database-access policy evaluator per docs/agentmon-db-access-spec.md §9–§10.
proxy/postgres
Package postgres implements the AgentMon PostgreSQL proxy per docs/agentmon-db-access-spec.md §11–§14 and the macro design at docs/superpowers/specs/2026-05-10-db-plan-04-pg-proxy-skeleton-design.md.
Package postgres implements the AgentMon PostgreSQL proxy per docs/agentmon-db-access-spec.md §11–§14 and the macro design at docs/superpowers/specs/2026-05-10-db-plan-04-pg-proxy-skeleton-design.md.
proxy/postgres/preparedcache
Package preparedcache is a per-connection LRU prepared-statement cache used by the PostgreSQL proxy.
Package preparedcache is a per-connection LRU prepared-statement cache used by the PostgreSQL proxy.
proxy/postgres/statemachine
Package statemachine implements the PostgreSQL proxy's Extended Query and transaction state machine per docs/agentmon-db-access-spec.md §14 and the design doc 2026-05-11-db-plan-05-pg-extended-tx-design.md §4.
Package statemachine implements the PostgreSQL proxy's Extended Query and transaction state machine per docs/agentmon-db-access-spec.md §14 and the design doc 2026-05-11-db-plan-05-pg-extended-tx-design.md §4.
tlsleaf
Package tlsleaf provides a lazily-generated self-signed CA and per-hostname leaf issuer for the AgentMon DB proxy's TLS termination path.
Package tlsleaf provides a lazily-generated self-signed CA and per-hostname leaf issuer for the AgentMon DB proxy's TLS termination path.
Package decisionctx resolves a process-level "decision context" (identity + environment signals) that AgentMon reports to Watchtower so the server can resolve the bound policy.
Package decisionctx resolves a process-level "decision context" (identity + environment signals) that AgentMon reports to Watchtower so the server can resolve the bound policy.
Package envinject applies operator-configured environment variable injection (sandbox.env_inject) to a process environment.
Package envinject applies operator-configured environment variable injection (sandbox.env_inject) to a process environment.
Package httpretry provides a bounded-retry HTTP client and a circuit breaker for calling external providers.
Package httpretry provides a bounded-retry HTTP client and a circuit breaker for calling external providers.
Package inspect runs content through inspection providers and resolves the policy engine's `inspect` decision against what they find.
Package inspect runs content through inspection providers and resolves the policy engine's `inspect` decision against what they find.
provider
Package provider holds inspection provider implementations.
Package provider holds inspection provider implementations.
provider/onnxrt
Package onnxrt calls ONNX Runtime from Go without cgo.
Package onnxrt calls ONNX Runtime from Go without cgo.
provider/onnxrt/gen command
Command gen-ort-api extracts the OrtApi struct member order from onnxruntime_c_api.h and writes it as Go constants.
Command gen-ort-api extracts the OrtApi struct member order from onnxruntime_c_api.h and writes it as Go constants.
provider/privacyfilter
Package privacyfilter decodes OpenAI Privacy Filter output into spans.
Package privacyfilter decodes OpenAI Privacy Filter output into spans.
provider/privacyfilter/modelcache
Package modelcache downloads and verifies model files.
Package modelcache downloads and verifies model files.
provider/privacyfilter/tokenizer
Package tokenizer implements the byte-level BPE tokenizer that openai/privacy-filter was trained with.
Package tokenizer implements the byte-level BPE tokenizer that openai/privacy-filter was trained with.
integration
db07cclient command
fargate
Package fargate contains end-to-end tests that run on AWS Fargate.
Package fargate contains end-to-end tests that run on AWS Fargate.
Package ipset provides membership testing for sets of individual IP addresses and CIDR ranges.
Package ipset provides membership testing for sets of individual IP addresses and CIDR ranges.
Package mcpclient provides helpers for connecting to HTTP/SSE MCP servers.
Package mcpclient provides helpers for connecting to HTTP/SSE MCP servers.
Package mcpinspect provides MCP (Model Context Protocol) message inspection for security monitoring.
Package mcpinspect provides MCP (Model Context Protocol) message inspection for security monitoring.
Package mcpregistry provides an in-memory registry that maps MCP tool names to their server metadata.
Package mcpregistry provides an in-memory registry that maps MCP tool names to their server metadata.
pnacl
Package pnacl provides Process Network ACL (PNACL) functionality for per-process network access control policies.
Package pnacl provides Process Network ACL (PNACL) functionality for per-process network access control policies.
unix
internal/netmonitor/unix/depth_tracker.go
internal/netmonitor/unix/depth_tracker.go
Package ocsf maps agentmon events to OCSF v1.8.0 class payloads consumed by the WTP CompactEvent wire shape.
Package ocsf maps agentmon events to OCSF v1.8.0 class payloads consumed by the WTP CompactEvent wire shape.
Package pathutil provides path boundary checking helpers shared across packages that need to determine whether a filesystem path is under a root.
Package pathutil provides path boundary checking helpers shared across packages that need to determine whether a filesystem path is under a root.
Package platform provides cross-platform abstractions for filesystem, network, sandbox, and resource management.
Package platform provides cross-platform abstractions for filesystem, network, sandbox, and resource management.
darwin
Package darwin provides stubs for non-macOS platforms.
Package darwin provides stubs for non-macOS platforms.
darwin/sbpl
Package sbpl constructs valid SBPL (Sandbox Profile Language) strings via a typed Go API.
Package sbpl constructs valid SBPL (Sandbox Profile Language) strings via a typed Go API.
fuse
Package fuse provides cross-platform FUSE filesystem mounting using cgofuse.
Package fuse provides cross-platform FUSE filesystem mounting using cgofuse.
helperbin
Package helperbin resolves the auxiliary binaries agentmon execs at runtime (agentmon-macwrap, agentmon-stub, agentmon-shell-shim).
Package helperbin resolves the auxiliary binaries agentmon execs at runtime (agentmon-macwrap, agentmon-stub, agentmon-shell-shim).
lima
Package lima provides the macOS Lima VM platform implementation for agentmon.
Package lima provides the macOS Lima VM platform implementation for agentmon.
linux
Package linux provides the Linux platform implementation for agentmon.
Package linux provides the Linux platform implementation for agentmon.
ancestry
Package ancestry provides process ancestry tracking and taint propagation for parent-conditional policy enforcement.
Package ancestry provides process ancestry tracking and taint propagation for parent-conditional policy enforcement.
identity
Package identity provides cross-platform process identification.
Package identity provides cross-platform process identification.
pattern
Package pattern provides pattern matching for process identification.
Package pattern provides pattern matching for process identification.
internal/policygen/generator.go
internal/policygen/generator.go
Package policyserve serves signed policy bundles to agents over HTTP.
Package policyserve serves signed policy bundles to agents over HTTP.
Package proxy provides an embedded HTTP proxy for intercepting outbound requests from the sandboxed agent.
Package proxy provides an embedded HTTP proxy for intercepting outbound requests from the sandboxed agent.
credsub
Package credsub implements the per-session credential substitution table that maps fake credentials (the bytes an agent sees in its environment) to real credentials (the bytes sent upstream).
Package credsub implements the per-session credential substitution table that maps fake credentials (the bytes an agent sees in its environment) to real credentials (the bytes sent upstream).
secrets
Package secrets defines the SecretProvider interface that agentmon uses to fetch real credentials from external secret stores at session start, plus the URI grammar, sentinel errors, and the provider Registry shared by all provider implementations.
Package secrets defines the SecretProvider interface that agentmon uses to fetch real credentials from external secret stores at session start, plus the URI grammar, sentinel errors, and the provider Registry shared by all provider implementations.
secrets/awssm
Package awssm implements secrets.SecretProvider using AWS Secrets Manager.
Package awssm implements secrets.SecretProvider using AWS Secrets Manager.
secrets/azurekv
Package azurekv implements secrets.SecretProvider using Azure Key Vault.
Package azurekv implements secrets.SecretProvider using Azure Key Vault.
secrets/gcpsm
Package gcpsm implements secrets.SecretProvider using GCP Secret Manager.
Package gcpsm implements secrets.SecretProvider using GCP Secret Manager.
secrets/keyring
Package keyring implements secrets.SecretProvider using the OS keyring: macOS Keychain (via /usr/bin/security), Linux Secret Service (via D-Bus), or Windows Credential Manager.
Package keyring implements secrets.SecretProvider using the OS keyring: macOS Keychain (via /usr/bin/security), Linux Secret Service (via D-Bus), or Windows Credential Manager.
secrets/onepassword
Package onepassword implements secrets.SecretProvider using the 1Password Connect API.
Package onepassword implements secrets.SecretProvider using the 1Password Connect API.
secrets/secretstest
Package secretstest provides test doubles for the secrets.SecretProvider interface.
Package secretstest provides test doubles for the secrets.SecretProvider interface.
secrets/vault
Package vault implements secrets.SecretProvider using HashiCorp Vault's KV v2 secrets engine.
Package vault implements secrets.SecretProvider using HashiCorp Vault's KV v2 secrets engine.
Package ptrace implements a ptrace-based syscall tracer backend for agentmon.
Package ptrace implements a ptrace-based syscall tracer backend for agentmon.
Package safepath opens files and directories that live where an untrusted process can also write, without adopting whatever it finds there.
Package safepath opens files and directories that live where an untrusted process can also write, without adopting whatever it finds there.
Package shellparse extracts the policy-relevant binary from a shell-wrapped invocation like `sh -c "shutdown now"`.
Package shellparse extracts the policy-relevant binary from a shell-wrapped invocation like `sh -c "shutdown now"`.
Package shim provides the shell shim infrastructure for agentmon.
Package shim provides the shell shim infrastructure for agentmon.
kernelinstall
Package kernelinstall lets the shim install seccomp + Landlock on its own process before execve, so the user's command inherits the filter even when the shim is not a child of the agentmon server (sandbox-SDK pattern).
Package kernelinstall lets the shim install seccomp + Landlock on its own process before execve, so the user's command inherits the filter even when the shim is not a child of the agentmon server (sandbox-SDK pattern).
internal/signal/engine.go
internal/signal/engine.go
Package skillcheck scans AI agent skill installations (Claude Code skill directories) for prompt injection, exfiltration, hidden Unicode, scope violations, and other supply-chain risks before they become loadable by the agent.
Package skillcheck scans AI agent skill installations (Claude Code skill directories) for prompt injection, exfiltration, hidden Unicode, scope violations, and other supply-chain risks before they become loadable by the agent.
eventfilter
Package eventfilter provides shared event-filter semantics used by chained audit sinks (OTEL, Watchtower).
Package eventfilter provides shared event-filter semantics used by chained audit sinks (OTEL, Watchtower).
otel
Package otel implements a store.EventStore that exports events via OpenTelemetry (OTLP).
Package otel implements a store.EventStore that exports events via OpenTelemetry (OTLP).
watchtower
Package watchtower implements a store.EventStore that ships events to a Watchtower endpoint via the WTP protocol.
Package watchtower implements a store.EventStore that ships events to a Watchtower endpoint via the WTP protocol.
watchtower/chain
Package chain provides WTP-specific helpers around audit.SinkChain.
Package chain provides WTP-specific helpers around audit.SinkChain.
watchtower/cmd/gen-wire-goldens command
Command gen-wire-goldens regenerates wire-format goldens for WTP messages.
Command gen-wire-goldens regenerates wire-format goldens for WTP messages.
watchtower/cmd/gen-wire-goldens/fixtures
Package fixtures owns the canonical construction of the WTP wire-format goldens.
Package fixtures owns the canonical construction of the WTP wire-format goldens.
watchtower/compact
Package compact projects agentmon events into the WTP CompactEvent wire shape.
Package compact projects agentmon events into the WTP CompactEvent wire shape.
watchtower/testserver
Package testserver is a hermetic, in-process WTP (Watchtower Transport Protocol) server built on top of google.golang.org/grpc/test/bufconn.
Package testserver is a hermetic, in-process WTP (Watchtower Transport Protocol) server built on top of google.golang.org/grpc/test/bufconn.
watchtower/transport/compress
Package compress provides per-batch compression encoders for the WTP transport.
Package compress provides per-batch compression encoders for the WTP transport.
watchtower/wal
Package wal implements the WTP write-ahead log: framed records inside generation-tagged segment files, with CRC32C-Castagnoli per record and an atomic .INPROGRESS → .seg seal.
Package wal implements the WTP write-ahead log: framed records inside generation-tagged segment files, with CRC32C-Castagnoli per record and an atomic .INPROGRESS → .seg seal.
Package wrapenv applies env_policy filtering to the inherited environment on the client-spawned wrap path (shell shim / kernel-install / agentmon wrap), the counterpart to server-side buildPolicyEnv.
Package wrapenv applies env_policy filtering to the inherited environment on the client-spawned wrap path (shell shim / kernel-install / agentmon wrap), the counterpart to server-side buildPolicyEnv.
Package wrapperlog defines the env contract and fallback file destination for routing agentmon-unixwrap diagnostics off the wrapped command's stderr (issue #415).
Package wrapperlog defines the env contract and fallback file destination for routing agentmon-unixwrap diagnostics off the wrapped command's stderr (issue #415).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL