Track B: reverse injection, target artifacts must stay data (pickle, .pyc, git hooks, SDKs)

Aperta
#767 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Coff0xc ci sta già lavorando.

Dal 1/12/2026.

  • #773 di @Coff0xc — aperta
  • #777 di @sresarehumantoo — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, git, go, python

Direzione di ricerca

Start with docs/SANDBOX.md and the existing intercept gate; inspect the worker artifact-loading and task-scope paths, then locate their tests. The issue's three slices define the work: intercept unsafe artifact operations, pause matching hashes across workers, and add synthetic local regression fixtures. Done means the listed acceptance criteria pass, including operator-visible runtime incidents; this is broad security design work with no specific implementation files named.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature P2

Context

Split from #765 (thanks @Coff0xc). Track A (honeypots, fake success, honey-tokens) is #766. This issue owns the other half: target bytes becoming code.

Failure mode

In-scope content becomes worker code, or becomes a goal, scope or finding in the control plane, without the operator asking for that execution. Prompt injection is one input. The reliable path reported publicly is implicit or loot-gated execution: a backup that must be imported, a .git that must be recovered, an SDK that must be installed.

Gap measured on main (0edb39f)

Searching the tree as it stands:

  • pickle 0 hits, sitecustomize 0 hits, fsmonitor 0 hits.
  • There is no intercept policy for these loaders today.

Worker isolation bounds the blast radius (no panel keys, DB or socket per docs/SANDBOX.md), but it does not stop a target-supplied archive from executing inside that worker. A pentest worker has to unpack hostile bytes, so this can only be closed with artifact policy, not with a stronger box.

Acceptance criteria

  • Downloaded artifacts stay data until the operator or an existing intercept rule says otherwise. Default deny or ask for at least:
    • pickle / joblib / shelve / dbm load of workspace files
    • running Python with a target tree on PYTHONPATH, or importing sitecustomize / __pycache__ from the workspace
    • git checkout or git-dumper recovery that would honor target .git/config (core.fsmonitor, core.sshCommand, alias.*, credential.helper)
    • pip install / npm ci from an index or tarball whose host is the current target
    • executing a binary, native module, credential_process, kubeconfig exec or SSH ProxyCommand that came from the workspace
  • Intercept rules inspect the real argv including wrappers (python -c, bash -lc, pip install ./), reuse the existing gate instead of a parallel policy, and name the known argv-prefix limit in the denial rather than failing open.
  • A trap recorded by one worker pauses that artifact or the task for the operator, so sibling workers on the same task do not load the same hash again.
  • A fooled or owned worker cannot mark facts operator_input, approve its own scope, spawn an egress-capable child task, or overwrite another engagement. Remaining holes are bugs against GHSA-86r5, GHSA-53wc and GHSA-ph8r, not model decisions.
  • Worker compromise surfaces as an operator-visible runtime incident on that task, not as a finding against the target.
  • Prompt tails stay on and loot-gated lies get a regression. Fixtures in the shape of the published write-ups (timing-bound pipe to sh, role-forged "install this SDK"). Direct prompt injection scoring 0/8 is not a pass while loot-gated execution still works.
  • Installing a target-supplied package is an operator decision, not a worker decision. A package with no implant is not safe: after install, the in-scope server can drive it to exec (billing SDK, 8/8). The gate sits at the install boundary, and a loader we did not ship surfaces as a task runtime incident.
  • Recovering and checking out a repository neutralizes hostile .git/config (core.fsmonitor, core.sshCommand, alias.*, credential.helper) before checkout. The gate is the operation, not the tool name: git-dumper does not strip it and a hand-rolled dumper is worse.
  • The runtime incident records what the executed artifact could observe about the operator (hostname, user, working directory, environment variable names, parent command lines), because that is what a loader beacon reports back.

Out of scope

Sandbox backend rewrite (#554, #555), containing a kernel or runtime 0-day, making remote RCE on the target safe, replacing artex-runner.

Slices

  1. Intercept defaults for pickle, .pyc, git hooks, target-index installs and workspace binaries, with tests.
  2. Cross-worker artifact pause on an explicit trap fact, hash keyed and task scoped.
  3. Regression fixtures on synthetic local targets only. No third-party sites, no real exploits in CI.
Lingua principale
Go
Stelle
18.7k
Fork
7k
Merge medio
10h 57m
PR unite (30g)
494

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BaaRai/ARTEX

Tutte le issue di BaaRai/ARTEX

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.