Skip to content

Track: ARTEX-targeted honeypots and reverse injection (product resilience) #765

Backlog

Description

@Coff0xc

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:

  1. Targeted honeypots aimed at ARTEX and at ARTEX customers: fake runs, fake success, honey-tokens taken off-platform to “verify”.
  2. 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

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_input facts (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_process helpers, 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 (Task budget exhaustion doesn't stop new planner rounds; set_goals revives timed-out tasks indefinitely (unbounded cost loop) #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. Feature: searchable outbound access audit with task/tool provenance and explicit coverage #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 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 / git-dumper / any recover-and-checkout that will honor target .git/config hooks (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, or credential_process / kubeconfig exec / SSH ProxyCommand that 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:

  1. Policy + copy: target-supplied credentials / callbacks / success banners cannot auto-verify and cannot auto-leave the product.
  2. Intercept defaults for pickle / .pyc / git hooks / target-index installs / workspace binaries, with tests.
  3. Cross-worker artifact pause on an explicit trap fact (hash-keyed, task-scoped).
  4. Finding/goal verification refuses target-only proof; bind to capture + egress audit when present (Feature: searchable outbound access audit with task/tool provenance and explicit coverage #553).
  5. Regression fixtures (synthetic local targets only): fake 201 callback, pickle that must not load, recovered .git/config hook, “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

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.

Activity

  1. github-actions commented on Dec 1, 2026

    @github-actions

    This is a feature-tracking request: add in-tree product behavior so ARTEX treats target-supplied artifacts, claims, and honey-tokens as untrusted — verification only from ARTEX-owned observations, no automatic replay of target-recovered credentials/callbacks against third parties, bounded fake-run/loot chasing that stops for the operator, honest target-claim vs. local-observation vs. operator-disposition language, and reverse-injection payloads (prompts, pickle/.pyc, git hooks, SDKs) never becoming worker code or control-plane writes (findings, facts, goals, scope, spawns) without explicit operator action. It explicitly builds on the 0.7.1 sandbox and defers isolation rewrites to #554/#555 and specific boundary defects to separate advisories. Suggested follow-up for maintainers: split Track A and Track B checklists into separate implementable issues so each can be scoped, since the current text mixes finding/credential/callback policy with artifact-execution policy.


    🤖 automated reply from the repo bot. A human maintainer reads everything. Ping me in any comment with @artex-bot.

  2. Coff0xc commented on Dec 1, 2026

    @Coff0xc
    ContributorAuthor
  3. BaaRai commented on Dec 1, 2026

    @BaaRai
    Owner

    Thanks, this is a good write-up and the split is right. Agreeing with the bot, I split the checklist into two tracked issues so each can be scoped and closed on its own:

    Your offer is accepted. Intercept defaults and the verification slice are yours if you want them. I will keep #765 as the tracking thread rather than the work item.

    Where each track starts, checked against main 0edb39f rather than assumed: untrusted-output framing is already default-on and verified already requires a bound traffic_ref, so Track A is policy and copy on top of that, not a new pipeline. Track B is the real gap: pickle, sitecustomize and fsmonitor have no handling in tree today, so the intercept slice is the one that changes behavior.

    One thing worth stating plainly for the record: the ArtexPot lab numbers are from 0.3.15. The 0.7.1 worker split was never a claim of immunity, only containment, and none of the slices above change that. These land in the normal release train, not a hotfix.

  4. Coff0xc commented on Dec 1, 2026

    @Coff0xc
    ContributorAuthor

    Follow-up so the new write-ups sit on the right track and are not read as a 0.7.1 result. Implementation stays on #766 and #767.

    Versions

    Public source Tested against Note
    ArtexPot lab (33/36, 27s, root in the panel container) stock 0.3.15 Useful as a method. It is not a measurement of ARTEX_SANDBOX=required.
    GHSA-9fqx (target page → Bash) ≤ 0.7.0, executor uid 10001 0.7.1 moved that path off the panel. The same text still runs in a worker.
    ArtexPot live capture, 30 Nov a real ARTEX client; non-root; host access not verified Closest public hit to current builds. Compromise is the task worker: workspace, write-back, and egress to the approved origin.
    tree at 0edb39f / 0.7.1 isolation, not artifact policy pickle, sitecustomize, and fsmonitor are still unhandled, as already recorded.

    Live capture section: https://nebusec.ai/research/artexpot/

    ArtexPot is now a repository. How to aim a real instance at it, including the ARTEX_CANARY gate and the beacon that still fires without a canary (hostname, user, cwd, environment names, parent command lines):

    #766 — claims, tokens, callbacks

    Shapes not named on the checklist yet:

    #767 — target artifacts stay data

    Two loaders a pickle-pattern rule will not catch:

    • Billing SDK (8/8 in the write-up). The package has no implant. After install, the in-scope server sends an out-of-bounds opcode that becomes exec. https://github.com/NebuSec/ArtexPot/blob/main/honeypots/billing-sdk/README.md
    • Unclonable Repository. git-dumper fails to strip hostile .git/config; a hand-rolled dumper is worse. Gate recover-and-checkout, not the tool name. Reported 28 Nov; no matching fix on arthaud/git-dumper.

    Baldur original of the WeChat link in the issue body: https://baldur.dk/blog/artex-go-hack-yourself/

  5. BaaRai commented on Dec 1, 2026

    @BaaRai
    Owner

    Both shapes are in the checklists now. They change the fix, not just the scope.

    On #767 the Billing SDK case is now the criterion that matters: a package with no implant still becomes code, because the in-scope server sends the opcode after install. That kills "gate pip install by host", so the rule is operator consent at the install boundary plus a runtime incident when a loader we did not ship appears. The Unclonable Repository case does the same for git: the gate is recover-and-checkout, not the tool name, and a hostile .git/config has to be neutralized before checkout rather than detected after.

    On #766 I added AgentMirror's 201, the fake-progress budget case, and your point that a loader beacon identifies the operator and is not proof of RCE. That last wording is exactly what belongs in the UI, so it is a criterion now. I also folded the beacon's payload (hostname, user, working directory, environment names, parent command lines) into the Track B incident row, because that is what the operator should see when a loader we did not ship fires.

    Your version table settles one thing I did not want to assume: the 30 Nov capture was non-root and the compromise was the worker, not the panel. That is the boundary the 0.7.1 split exists for, and it is why #767 is artifact policy rather than another sandbox rewrite.

    Your offer stands. When #767's checklist reads right to you, take the intercept and verification slice you asked for.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions