Skip to content

Harness key guard: anchor carriers by full path and interpreter #5554

Backlog

Description

@yannickmonney

Follow-up to #5551 (T14 phase 1) and #5549.

Problem. carries_keys in services/sandbox-runtime/daemon/harness-guard/tale-harness-guard.c trusts a carrier by the last name of its path alone (base_name(realpath(argv[at])) against keysGuard.via). It anchors neither the full path nor the interpreter. Any program whose first argument resolves to a file named tale-pi-run, from any directory and with or without -I, keeps the key descriptor and is treated as a carrier (e.g. perl -I /usr/local/bin/tale-pi-run -e …).

Why it matters. Today PATH is fixed and its directories are root-owned image paths, so there is no known way in. But the guard's promise should not rest on that.

Acceptance criteria.

  • keysGuard.via names absolute paths (e.g. /usr/local/bin/tale-pi-run), and the guard compares the full realpath, not the base name.
  • For a script carrier, the guard also requires the executable (/proc/self/exe) to be the image's interpreter (/usr/local/bin/python3) and argv[1] to be exactly -I.
  • Tests: a same-named file elsewhere is refused; another interpreter (perl -I …, python3 -E …) is refused; the image's real carrier still works; the image test pins the absolute paths.

Activity

  1. added
    agent-ready
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions