Skip to content

v0.4.4

Choose a tag to compare

@github-actions github-actions released this 08 Oct 06:44
· 58 commits to main since this release
cb5f267

[0.4.4] - 2026-10-08

Added

  • A read-only host-egress prerequisite CLI and stage-one runbook. Missing
    administrator access or conntrack blocks real backend verification; the
    report never claims activation readiness or matrix passes and installs no
    privileged helper or sudoers grant.
  • ADR 0014 and a review package for the separately authorized host-managed
    transparent TCP/UDP filter (tools/host_egress_helper.py with simulated
    backend tests): operation-bound policy schema, candidate rules for the
    Docker-supported DOCKER-USER chain (iptables, with an ip6tables mirror)
    and an owned inet pawnlogic_egress table (nftables), dry-run output,
    conntrack revocation and rollback commands, plus the required
    traffic-path-to-hook matrix. Nothing is installed, registered as a tool,
    or executed; unknown backends deny activation, and applying anything to
    the host firewall requires separate owner authorization and the backend
    verification matrix to pass first. Post-merge independent review hardened
    the package: link-local and cloud-metadata destinations are hard-denied at
    policy time, rules insert at the top of DOCKER-USER drop-first (a
    pre-existing owner RETURN rule cannot shadow them), nftables rollback
    flushes the chain before deleting it, and every verification command
    branches on the query itself so a failing or unauthorized check reports a
    containment failure instead of a false success. Complete-table nft queries
    and pipeline-free iptables snapshot checks also prevent false cleanup
    reports after query errors or SIGPIPE. The hard-denied metadata set includes
    100.100.100.200 and its IPv4-mapped IPv6 spelling.

Security

  • Host-egress candidate state allowances are REPLY-only on both backends;
    pre-existing original-direction connections cannot bypass destination pins
    merely by being established. IPv6 scope suffixes are rejected before command
    artifact generation. The review package remains uninstalled.
  • Airlock installer workers claim admission atomically against expiry and
    operation generation changes, so a worker queued until after expiry cannot
    use a stale main-thread check to start installation. Already-admitted
    remote Docker work still requires watchdog containment; unresolved cleanup
    is reported explicitly.
  • Network Policy classifies IPv4-mapped IPv6 by its effective IPv4 address
    before metadata/special-address checks, so explicit scope authorization
    cannot allow a mapped cloud metadata endpoint. Original address forms remain
    available for scope matching. Literal and DNS-snapshot regressions cover
    policy denial before the scoped proxy can dial.
  • Airlock package installation validates the operator egress declaration before
    running, including already-bridged containers. A failed temporary disconnect
    now overrides installation success, revokes tool access, and kills the
    container (forced removal fallback). If daemon cleanup also fails, the tool
    explicitly reports that the container may remain running and needs manual
    cleanup. Attachment failures also trigger cleanup because a daemon response
    can be lost after connecting; confirmed offline containers are preserved.
    This lifecycle cleanup is separate from destination enforcement; configured
    operator scopes now deny Airlock installs.
  • Airlock installs on offline containers are rejected up front: a
    compatibility guard refreshes the container and verifies its actual network
    membership before any attach or install. Offline containers (membership
    none or unattached at check time, regardless of creation mode) and
    containers with unverifiable network state are denied without connecting or
    executing the installer — the Docker daemon cannot attach none-created
    containers to bridge afterward — and the container is preserved unchanged.
    The rejection never suggests host networking or scope relaxation.
  • Airlock installs now run under a hard operation deadline
    (timeout_seconds, integer 1–300, default 120) that covers the temporary
    attach, apt update/install and pip as one budget and is enforced by an
    independent watchdog thread rather than client timeouts; the installer call
    and the owned-network disconnect are bounded waits, so a stuck Docker SDK
    request cannot outwait containment. Per-container serialization is acquired
    before the bridge-membership ownership decision, so a concurrent
    operation's temporary attachment cannot be mistaken for a pre-existing one,
    and the per-container lease is held until network cleanup completes — the
    deadline and serialization span the whole Airlock lifecycle. Operations'
    watchdog callbacks are bound to an operation generation, so a late timer
    cannot kill its successor. Expiry revokes the tool handle before
    terminating the container (forced removal fallback), removes the owned
    bridge attachment, and reports unresolved cleanup as a containment
    failure — a timed-out persistent container does not survive, and
    completion racing the deadline still reports containment instead of
    success. A hung attach that completes after the deadline never hands the
    operation to the installer, and the disconnect-failure containment
    (kill/forced removal) is itself a bounded wait, so no failure path can
    outwait the deadline window. Invalid timeout values are rejected before
    any daemon interaction; configured operator scopes continue to deny
    Airlock installs.
  • pwn_container gains a read-only preflight action for PawnLogic-labelled
    containers: it reports running containers that still have network access
    (bridge, host, user-defined or unknown membership) and explains that
    enabling an operator scope does not quarantine them. Missing or ambiguous
    daemon state is reported as unknown, never as safe; the report never
    mutates a container, and stop/destroy remains an explicit owner action.
  • One-shot run_code_docker containers are hardened by default: read-only
    root filesystem (relaxed only when install_deps must write site-packages),
    tmpfs /tmp and /run, cap_drop=ALL, and a user matching the host uid:gid
    (non-root when the host uid is nonzero). Missing host IDs and dependency
    installs retain the image user unless an explicit user is supplied.
    container_user='root' explicitly selects root, and persistent containers keep
    the image default user and capabilities for in-container debugging. The
    hardening defaults are merged inside the spawn_container choke point
    after the caller-kwarg deny check, so tool arguments can never inject or
    supply raw hardening kwargs. Trusted Python callers may explicitly override
    read-only/tmpfs defaults, as dependency installation requires.
  • Operator-scoped disposable Python HTTP/CONNECT runs now enforce targets:
    PAWNLOGIC_DOCKER_EGRESS_ALLOW makes an authorized bridge request use
    network=none with a read-only Unix relay to a host proxy. Explicit hosts
    resolve once; numeric IP/CIDR scope and Network Policy hard denials are
    checked before numeric-only dial. Direct network sockets have no route.
    Fixed/chunked uploads stream up to 64 MiB per request; headers/trailers,
    concurrency and operation duration are bounded. CONNECT permits opaque
    TCP to approved targets/ports. Setup fails closed, expiry/cleanup revokes
    sockets before removal, and cleanup errors are explicit SECURITY BLOCKs.
    Scoped networking requires Unix, built-in Python, non-root numeric UID:GID,
    no additional mounts/dependencies and timeout 1–300 seconds; host, persistent
    exec/connected create and Airlock are denied under scope. Offline runs and
    unmounted offline creation remain available. Unscoped bridge/host grants
    remain capability-only; transparent TCP/UDP enforcement is a separate phase.

Changed

  • Phase whitelists now expose five registered tools aligned with the documented
    workflows and GSA tooling (read_file_lines, git_op, analyze_local_image,
    audit_payload, delegate_task), so the model receives their schemas
    instead of having to hallucinate names.
  • Removed orphaned tool modules and their tests (lsp_lite, the 0.3.7 PTY
    replay harnesses, acceptance_post429, ptk_client), dead config surface
    (DOCKER_IMAGES, NORMAL_CONFIG, WEB_STRATEGY,
    PAWNLOGIC_DEFAULT_MODEL), and two unreferenced provider-stream fixtures;
    the typed island is now 54 modules.
  • Clarified the authorized CTF plaintext HTTP workflow in tool guidance and
    bilingual documentation: use disposable, resource-limited Docker containers
    with explicitly authorized bridge networking, without relaxing the browser
    proxy. Unscoped bridge authorization remains capability-level; configured
    operator scopes use the offline HTTP/CONNECT transport described above.