Skip to content

RepoBeagle v1.187.0

Choose a tag to compare

@javierbits javierbits released this 26 Nov 10:07
· 2 commits to main since this release
v1.187.0

Optional syscall trace: capabilities observed, not just inferred.

Highlights

  • repobeagle scan <target> --trace runs only the install phase in the same hardened container under strace (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 marked verified: true, source: trace. meta.trace records the commands, syscall counts, duration, exit code and network mode; an info finding reports how many values were confirmed.
  • Install-time code only: npm preinstall/install/postinstall lifecycle 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_TIMEOUT bound it (default 300 s). Missing Docker/image or --no-docker turns --trace into 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 strace and node (for JS lifecycle scripts); no other distribution changes.

Verification

  • PR #101: offline 1 m 45 s (498 assertions incl. tests/test_trace.py), compare 4 m 53 s, packaging-macos 20 s, image-toolchain 1 m 14 s, gate / gate 9 s, upload×2 — green.
  • Acceptance with the released image (digest sha256:2d8b930fb26573ff2221d3cfebc75c3354e0cf048a0bd22d5594d1a049e76faa, cosign verify VALID, stable identical), 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 stay static (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.