Skip to content

test(windows): deny AppContainer parent traversal reads - #56

Merged
senamakel merged 3 commits into
epic/7328-security-busfrom
tinybox-27-path-traversal
Oct 24, 2026
Merged

senamakel merged 3 commits into
epic/7328-security-busfrom
tinybox-27-path-traversal

Conversation

@senamakel

Copy link
Copy Markdown
Owner

Adds a Windows-only live AppContainer probe that tries to read a sibling secret through .. from the granted working directory. The test first confirms the host can resolve the same relative path, then launches a child inside AppContainer and asserts the secret remains unreadable. The child process is bounded by a 10-second timeout.

Public API or behavior changes: none. The test covers the existing AppContainer confinement contract. Windows CPU limits remain explicitly unsupported and are deferred.

Validation:

  • cargo fmt --all -- --check — passed.
  • cargo check --locked --offline --target x86_64-pc-windows-gnu -p tinybox-jail --tests — passed, including the Windows-only probe.
  • cargo clippy --locked --offline --target x86_64-pc-windows-gnu -p tinybox-jail --all-targets -- -D warnings — blocked by existing warnings in windows_tests.rs (too_many_lines in appcontainer_owned_termination_stops_descendants_after_parent_exit and used_underscore_binding in the descendant probe).
  • The AppContainer probe requires a Windows runner and will run in hosted CI.

Part of tinyhumansai#27 and tinyhumansai/openhuman#7328.

senamakel and others added 3 commits October 24, 2026 06:01
Update the vendored tinybus submodule to a newer revision.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Add a Windows AppContainer test that grants a root and then attempts to read a
secret outside it through a `..` traversal path, asserting the child is denied
and the secret never appears in its output. A companion child probe reports
whether the read succeeded so the parent test can distinguish denial from a
crash.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Update the vendored tinybus submodule to the latest upstream commit.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant