docs(security): record strict TCP refusal at 70d916d

This commit is contained in:
cflmy committed 2026-11-20 23:22:32 +08:00
1 parent 70d916d698
commit 0946220f76
3 files changed
+13 -11

No files matched your search

+3 -3
View File
@@ -45,7 +45,7 @@ cargo test --workspace --locked PASS
### G-C security lane (disposable Ubuntu 26.04 VM, ordinary user `dev`)
Source: `git archive b241d1d` extracted in the VM (not the dev container).
Source: `git archive 70d916d` extracted in the VM (not the dev container).
Host: QEMU/TCG, kernel `7.0.0-43-generic`, `systemd-detect-virt --container`
= `none`, bubblewrap 0.11.1 with `bwrap-userns-restrict`, uid 1000.
@@ -77,7 +77,7 @@ This is still a **local VM lane**, not a self-hosted GitHub Actions security URL
| 7 | Independent Tool consumers | **Done locally** | `sample-view`/`sample-knowledge`/`sample-proof` E2E test |
| 8 | lock v3 reproducibility | **Implemented; tamper test added** | `package_env` PASS |
| 9 | Analysis/Trace/Tool/ABI/Foreign | **Implemented; supported-matrix bounded** | protocol tests, plugin/worker/foreign tests |
| 10 | Linux strict L1 | **VM PASS at b241d1d; no CI URL** | 7/7 + positive CLI + strict resource refusal |
| 10 | Linux strict L1 | **VM PASS at 70d916d; no CI URL** | 7/7 + positive CLI + strict resource refusal |
| 11 | Linux strict L2 | **NOT IMPLEMENTED / UNSUPPORTED** | strict rejects Worker/Foreign/native ABI |
| 12 | Windows Native/Worker ABI | **UNSUPPORTED** | no Windows ABI artifact/claim |
| 13 | RC artifact | **Linux candidate only; no release** | clean-install + checksums; macOS not built here |
@@ -184,7 +184,7 @@ This is still a **local VM lane**, not a self-hosted GitHub Actions security URL
the Linux EAGAIN contract are UNVERIFIED on GitHub. G1/G2/G3 remain FAIL
until a real run exists.
2. **G-C is VM-verified but not CI-signed.** No self-hosted security-lane URL
for b241d1d exists.
for 70d916d exists.
3. Windows Native/Worker ABI is explicitly UNSUPPORTED (no Windows `cc`
fixture lane, Unix-gated worker tests).
4. `fs.write`, `net.request`, `process`, `clock`, `random` are not executed
@@ -1,6 +1,6 @@
== adversarial helper matrix ==
Compiling marqdo-sandbox v0.1.0 (/home/dev/marqdo-current/crates/marqdo-sandbox)
Finished `test` profile [unoptimized + debuginfo] target(s) in 4.97s
Finished `test` profile [unoptimized + debuginfo] target(s) in 3.17s
Running tests/security_linux.rs (target/debug/build/marqdo-sandbox/73fdd38fdea71ea2/out/security_linux-73fdd38fdea71ea2)
running 7 tests
@@ -12,7 +12,7 @@ test strict_child_identity_is_unprivileged_and_namespaced ... ok
test strict_supervisor_enforces_fd_and_process_limits ... ok
test strict_supervisor_enforces_memory_cpu_and_output_limits ... ok
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.52s
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.66s
== build CLI ==
Compiling marqdo-span v0.1.0 (/home/dev/marqdo-current/crates/marqdo-span)
@@ -29,7 +29,7 @@ test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; fini
Compiling marqdo-frontend v0.1.0 (/home/dev/marqdo-current/crates/marqdo-frontend)
Compiling marqdo-runtime v0.1.0 (/home/dev/marqdo-current/crates/marqdo-runtime)
Compiling marqdo-cli v0.1.0 (/home/dev/marqdo-current/crates/cli)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.14s
Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.80s
strict mechanism: bubblewrap 0.11.1 (user/mount/PID/net/UTS/IPC namespaces + no-new-privs + rlimits)
== positive CLI contract ==
== strict language resources are console-only ==
@@ -2,7 +2,7 @@
Date: 2026-11-20 (Asia/Shanghai)
Repository: `marqdo-cli`
Source under test: `git archive b241d1d` (current HEAD)
Source under test: `git archive 70d916d` (current HEAD)
Related: [ADR-0021](../adr/0021-linux-strict-isolation.md),
[ADR-0030](../adr/0030-print-compat-b-routing.md),
[ADR-0034](../adr/0034-tcp-resource-endpoint.md),
@@ -35,9 +35,11 @@ capability escalation, fd/process limits, and memory/CPU/output limits.
The positive CLI contract runs `hello` (Compat-C `打印` through the bundled
stdlib), `factorial --mode strict`, multi-module, and `--json`.
The new strict-resource check runs a `.mq.md` program that calls
`resource.open("file", "README.md", ["read"])` under `--mode strict`; the run
must be non-zero and the diagnostic must contain `permission.denied`. The
The strict-resource checks run `.mq.md` programs that call
`resource.open("file", "README.md", ["read"])` and
`resource.open("tcp", "127.0.0.1:9", ["read","write"])` under `--mode strict`;
each run must be non-zero and the diagnostic must contain `permission.denied`.
The `--allow-net` flag is also rejected at the strict boundary. The
bundled stdlib is bind-mounted read-only at `/run/marqdo-stdlib` and its digest
is still verified in the child; this grants no new OS capability.
@@ -62,7 +64,7 @@ Actions security URL and not Windows/macOS evidence.
## Limits
* No remote CI URL for `b241d1d`; G-C remains VM-verified, not CI-signed.
* No remote CI URL for `70d916d`; G-C remains VM-verified, not CI-signed.
* Windows/macOS strict behavior is not exercised here.
* Strict L2 (Worker/Foreign/native plugin under real isolation) is still not
implemented; L1 refuses those surfaces.