Repository navigation
RepoBeagle v1.187.0
Optional syscall trace: capabilities observed, not just inferred.
Highlights
repobeagle scan <target> --traceruns only the install phase in the same hardened container understrace(execve,connect,openat) and folds the evidence into the capability map: hosts from executed command lines/non-loopback connects, executed programs, and opened secret paths are markedverified: true, source: trace.meta.tracerecords the commands, syscall counts, duration, exit code and network mode; aninfofinding reports how many values were confirmed.- Install-time code only: npm
preinstall/install/postinstalllifecycle scripts and Python install (pip install --no-deps --no-build-isolation --no-index, no dependency downloads). Tests/builds are never run. - Isolation is unchanged (
--read-only, non-root,--cap-drop ALL, pids/memory caps,HOME=/tmp) plus a writable mount of the disposable tree and network for downloads;--trace-timeout/BEAGLE_TRACE_TIMEOUTbound it (default 300 s). Missing Docker/image or--no-dockerturns--traceinto a note. - This is the one opt-in path that executes repo code. Host secrets stay structurally unreachable (
HOME=/tmp, nothing mounted), so the trace proves in-container network/process/filesystem behaviour, not host credential reads. Default scans remain static. - The image now ships
straceandnode(for JS lifecycle scripts); no other distribution changes.
Verification
- PR #101:
offline1 m 45 s (498 assertions incl.tests/test_trace.py),compare4 m 53 s,packaging-macos20 s,image-toolchain1 m 14 s,gate / gate9 s,upload×2 — green. - Acceptance with the released image (digest
sha256:2d8b930fb26573ff2221d3cfebc75c3354e0cf048a0bd22d5594d1a049e76faa,cosign verifyVALID,stableidentical), host orchestrator running the pinned image:
trap-npm --trace: npm postinstall; syscalls connect 7 / execve 4 / openat 115
trace network ['192.168.1.1', 'evil.example.invalid']
trace processes ['curl', 'node', 'sh']; trace filesystem ['.ssh']
finding 'trace-verified: 6 capability value(s) confirmed'; verdict RED
control-clean --trace: syscalls connect 0 / execve 15 / openat 981; trace network []; verdict GREEN
tests/test_trace.py: PASS (install-phase detection, parsing/verification, Docker-gated integration)
Upgrade
./install.sh, or repobeagle update. --trace needs Docker on the host (it orchestrates the pinned image).
Notes
- Syscalls can confirm hostname/program/path claims; API-level static tokens (
subprocess.run,child_process) cannot be matched by syscalls and staystatic(documented in the README). - The trace container has network by design; the report states the mode.
- Running the scanner inside the image (
--entrypoint python3 … scan --trace) skips the trace because the container has no Docker client; use the installed CLI.