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

Open
#767 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Coff0xc is already working on this.

Since Dec 1, 2026.

  • #773 by @Coff0xc — open
  • #777 by @sresarehumantoo — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, git, go, python

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Go
Stars
18.7k
Forks
7k
Avg merge
10h 57m
Merged PRs (30d)
494

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BaaRai/ARTEX

All issues in BaaRai/ARTEX

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.