Track: ARTEX-targeted honeypots and reverse injection (product resilience)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
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, go, linux
- Ambito
- backend-api-design, security
Direzione di ricerca
Start with docs/SANDBOX.md and the 0.7.1 notes, then trace the existing intercept rules, finding verification, credential handling, and task budgets. The issue proposes several independent slices, including artifact execution gates, target supplied credential policy, and cross worker pauses; identify one slice and its existing tests before implementation. Done means the chosen behavior has regression coverage and prevents the specified target controlled action.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Public materials (read these first)
These are the write-ups this issue is tracking against. They are in-scope as operator-side threat intel, not as something to argue with or take down.
| Source | What it actually demonstrates |
|---|---|
| https://nebusec.ai/research/artexpot/ | ArtexPot: honeypots built for ARTEX. Direct prompt injection was weak (0/8). What worked was target artifacts the runtime executes — git config / git-dumper, pickle / joblib / shelve, poisoned .pyc / sitecustomize, vendor SDK / pip, credential_process / kubeconfig exec. Lab target was unmodified ARTEX 0.3.15. |
| https://mp.weixin.qq.com/s/bmh1LCf9i9LCYroHU8jVUg | Chinese translation of Baldur Security, ARTEX, go hack yourself (original: https://baldur.dk/blog/artex-go-hack-yourself/). Scope drift via planted DNS, then a “timing-bound decrypt script” that talks the model into curl | sh. Same class: the target programs the operator runtime. |
| https://github.com/RuoJi6/AgentMirror | AgentMirror: authoring stack for pentest-agent honeypots — cloned business pages, targeted prompt delivery, {{token}} / {{callback_url}} / {{run_id}}, hosted files, callbacks. Their own docs say HTTP 201 means “payload received”, not that a command ran. That is the fake-success / off-platform-token problem. |
NebuSec also documents a commercial / customer-facing ArtexPot. Expect baits that are cloned from the customer’s real app, not Juice Shop.
What this issue is
A product tracking issue for how ARTEX withstands two things that now show up as dedicated tooling, not one-off tricks:
- Targeted honeypots aimed at ARTEX and at ARTEX customers: fake runs, fake success, honey-tokens taken off-platform to “verify”.
- Reverse injection: the in-scope target pushes instructions or executable artifacts back into the operator’s ARTEX (prompts, pickle /
.pyc, git hooks, SDKs) so they run in our runtime or rewrite the task.
Default for this issue: the target is in scope, operator-approved, and hostile. Egress allowlists and “don’t leave scope” do not make that target’s files safe.
What this issue is not
- Not a PR fight with NebuSec, Baldur, AgentMirror, or anyone else.
- Not a request to take their repos, posts, or honeypots down.
- Not a proposal to replace the 0.7.1 Docker sandbox with another sandbox (bubblewrap / gVisor / “rewrite isolation”). That work already lives in #554 / #555. Do not dump it here.
- Not a claim that ARTEX can fingerprint every honeypot, stay anonymous, or stop a permitted target from logging our traffic.
- Not a new CVE for “the agent ran code the operator pointed it at”. Isolation, evidence, and write-back are the product questions.
If a specific, unfixed boundary bug shows up (panel secrets, cross-task workspace, unsigned write-back, sandbox=off fallback), file that as its own advisory / bug. This issue tracks the product behavior once those boundaries are in place.
Why this is still open after 0.7.1
0.7.1 already moved the needle on the Baldur-era “one root container, keys next to Bash” picture:
- Per-task
artex-worker, no panel keys / DB in the worker (docs/SANDBOX.md). - Operator-owned egress allowlist (
approved_by_operator); agent-written scope is coverage-only. - Untrusted-output framing on tool results (on by default).
- Findings want bound traffic + verbatim quotes before
verified. - Several write-back bugs already have advisories:
operator_inputfacts (GHSA-86r5), planner-widened scope (GHSA-53wc), finding-report IDOR (GHSA-ph8r), target-site prompt → panel/exec-home (GHSA-9fqx).
What the public materials still hit, and what a customized bait will keep hitting:
| Residual | Why the current sandbox does not end it |
|---|---|
| Worker still runs target-supplied artifacts | A pentest worker must unpack backups, recover .git, pip install, import Python. ArtexPot Class 2/3 fire inside that worker. Panel isolation does not make pickle.load of a target backup safe. |
| In-scope target is the C2 | Deny-by-default egress still allows the operator-approved host. The loader phones home to the same origin we were told to test. |
| Write-back is a control-plane API | A fooled or owned worker still calls report_finding / record_fact / set_goals / spawn_task. Poisoned success and poisoned scope do not need a panel RCE. |
| Evidence is still target-authored | A 200 + “admin session issued” + a token in the body can satisfy a naive quote check. AgentMirror’s callback 201 is the same shape. |
| Honey-tokens leave the product | Leaked AWS keys, PyPI index tokens, TOTP seeds, {{callback_url}}. The damage is the operator or the agent using them on a third party to “confirm”. That is outside the sandbox by definition. |
| Parallel workers do not share a trap | ArtexPot: worker A flags a pickle; worker B pickle.loads it ~2s later. Planner loop is too slow. |
| Direct prompt injection ≠ the real path | NebuSec: 0/8 on “run this script”. Baldur still got curl | sh by lying about timing. ArtexPot won on tools and loot, not on HTML comments. Prompt tails alone are not the control. |
Lab numbers from 0.3.15 (root in the panel container, 27s, 33/36) are not a score against current ARTEX_SANDBOX=required. The architecture they used is the score: untrusted target bytes still become process image and still become findings.
Track A — Targeted honeypots (fake run / fake success / honey-token)
Failure: the engagement looks productive while the target is running us. The operator exports a “confirmed” finding or pastes a token into AWS / GitHub / a package index, and that is the capture.
Product checks (all of these are in-tree behavior, not a new executor):
- Target text is not a verified exploit. A finding cannot become
verified/ goal-complete from a banner, HTML comment, staff announcement, or callback HTTP 201. Verification stays on ARTEX-owned observations (our recorded request, our recorded response, our egress audit line). Quote-matching a body the target wrote is not corroboration. - Honey-tokens are not auto-used. Credentials, index tokens, TOTP seeds,
credential_processhelpers, and callback URLs recovered from the target are labeled target-supplied. Default: do not replay them against a third-party IdP, cloud, or package index. Off-platform check is an explicit operator action with a warning, not a worker tool. - Callbacks are not success. AgentMirror-style
{{token}}/{{callback_url}}hits, OAST-like pings, and “we got a reverse shell” pages are target-controlled. Show them as “target received a request”, never as “we have RCE on the target”. - Fake run / fake loot is bounded. Chasing a private SDK, a decrypt helper, or a “must pipe to sh” error loop spends budget and then stops for the operator, with the artifact and the last N tool calls attached. The model cannot raise the budget to keep chasing. Reuse existing task/intent budgets (#705); do not add a “honeypot classifier”.
- Operator copy is honest. UI/report language distinguishes target claim, local observation, operator disposition. Do not print “confirmed” because the target said so. #553 is the audit/search half of this; this issue owns the finding/credential/callback policy.
Out of track A: detecting that a site “is a honeypot”, hiding our fingerprint, or blocking the target from logging us.
Track B — Reverse injection (prompt / pickle / .pyc / git hook / SDK)
Failure: in-scope content becomes code in the worker, or becomes a new goal / scope / finding in the control plane, without the operator asking for that execution.
Prompt injection is one input. The public scoreboard says the reliable path is implicit or loot-gated execution. Product should treat those as first-class, same as HTML comments.
- Downloaded artifacts stay data until the operator (or an existing intercept rule) says otherwise. Default-deny or
askfor, at least:pickle/joblib/shelve/dbmload of workspace files- running Python with a target tree on
PYTHONPATH, or importingsitecustomize/__pycache__from the workspace git checkout/git-dumper/ any recover-and-checkout that will honor target.git/confighooks (core.fsmonitor,core.sshCommand,alias.*,credential.helper, …)pip install/npm cifrom an index or tarball whose host is the current target- executing a binary, native module, or
credential_process/ kubeconfigexec/ SSHProxyCommandthat came from the workspace
- Intercept rules cover the real argv, including wrappers (
python -c,bash -lc,pip install ./). Reuse the gate; do not invent a parallel policy. Existing argv-prefix limits are known — say so in the denial, don’t fail open. - Prompt tails stay on; loot-gated lies get a regression. Keep nonce-framed tool output. Add fixtures in the shape of Baldur (timing-bound
| sh) and AgentMirror (role-forged “install this SDK”). A worker may read the script; it must not run it without the rule/operator path. Direct-PI going 0/8 is not a pass if Class 3 still goes 8/8. - Write-back cannot self-escalate. A worker that is fooled or owned still must not: mark facts as
operator_input, approve its own scope, spawn an egress-capable child task, or overwrite another engagement. Treat remaining holes as bugs against GHSA-86r5 / GHSA-53wc / GHSA-ph8r, not as “the model decided”. - One worker’s trap is the task’s trap. If any worker records “this file is hostile / this is a prompt injection / this pickle carries
exec”, sibling workers on the same task do not keep loading the same hash. Pause that artifact (or the task) for the operator. ArtexPot’s two-second cross-worker race is the test. - Compromise of the worker is a task incident, not a quiet finding. If we later see our own loader, a mystery outbound to the target’s extra port, or a native module we did not ship, file it as an operator-visible runtime incident on that task. Do not file it as a vulnerability in the target (ArtexPot’s “they reported our backdoor as the target’s bug”).
Out of track B: making arbitrary remote RCE on the target “safe”, containing a kernel/runtime 0-day, or replacing artex-runner.
How to land this (small slices)
Do not wait on #554. Each slice should be mergeable on current ARTEX_SANDBOX=required:
- Policy + copy: target-supplied credentials / callbacks / success banners cannot auto-verify and cannot auto-leave the product.
- Intercept defaults for pickle /
.pyc/ git hooks / target-index installs / workspace binaries, with tests. - Cross-worker artifact pause on an explicit trap fact (hash-keyed, task-scoped).
- Finding/goal verification refuses target-only proof; bind to capture + egress audit when present (#553).
- Regression fixtures (synthetic local targets only): fake 201 callback, pickle that must not load, recovered
.git/confighook, “pipe to sh or the timing fails”, private SDK from the target host. No third-party sites, no real exploits in CI.
ARTEX_SANDBOX=off remains a loud degraded mode; none of the above is a reason to turn it off.
Related
- Sandbox as shipped:
docs/SANDBOX.md, 0.7.1 notes. Keep it; this issue sits on top of it. - #553 — outbound access audit / provenance (evidence half).
- #554 / #555 — Go/bubblewrap execution backend (not this issue).
- #421 — network-level scope (closed; remaining work is #554).
- GHSA-9fqx (prompt → exec), GHSA-86r5 (
operator_input), GHSA-53wc (scope write-back), GHSA-ph8r (finding write-back).
I can take intercept-default and verification slices if that split is acceptable. The ask is to track and close the product gaps, not to debate the write-ups.
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di BaaRai/ARTEX
-
bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
BaaRai/ARTEX#981 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BaaRai/ARTEX#980 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
BaaRai/ARTEX#812 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
question
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
BaaRai/ARTEX#983 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug P2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
BaaRai/ARTEX#977 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di BaaRai/ARTEX
Issue simili
-
BUG: Backend Docker build fails due to Go version mismatchForse già presa @Aakriti0207 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 93/100
gittuf/visualizer#203 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
agent:ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
turbot/flowpipe#1162 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno