Skip to main content

Press ESC to close

ARTEX Case Study: How to Contain AI Pentest Workers

Penetration Testing & AppSec9 minute readEvidence-led guidance

In a November 2026 lab, a system under test gained code execution inside the worker examining it. The worker belonged to ARTEX, an AI-driven penetration-testing framework. You can use the case to answer a concrete question before an engagement starts. If one worker becomes untrustworthy, which destinations, credentials and reports can it still reach?

What the ARTEX experiments established

NebuSec ran unmodified ARTEX 0.3.15 against purpose-built decoys, starting each trial with a fresh container. Across six initial scenarios and two models, the researchers reported root code execution inside the test container in 33 of 36 runs. The shortest time from task start to first execution was 27 seconds. A separate follow-up scenario succeeded in all eight runs. The numbers describe those configurations and decoys. The studies establish the impact inside the container. Host-level impact remains unverified. Cloud Security Alliance research note summarizing the lab results

The researchers also ran eight separate direct prompt-injection trials. None resulted in code execution. A worker can correctly recognize a suspicious instruction and still take a routine action that handles target-supplied material with too much authority. Those observations point to two distinct controls. The model can recognize unwanted instructions, and the execution environment can restrict what any decision is allowed to cause.

Café Security Research examined the code and found that the reviewed builds bypassed an approval step in the underlying agent engine. Scope checks did not cover every action a worker executed. In the default configuration assessed, agent-run commands could read model-provider keys and database credentials. That was a static code review. Its value for operators is the question it exposes. Who actually denies an action when a worker disagrees with the engagement rules? Café Security Research study summary

The FBI’s November 13 advisory describes ARTEX abuse dating back to at least August and reports that the original repository was withdrawn in October. The advisory also describes continuing distribution through variants. Establish the provenance and review history of the exact build you are considering. A repository’s withdrawal tells you little about the behavior of a fork, image or commercial edition.

See also  Taming the Autonomous Fleet: Securing and Scaling OpenClaw Across macOS, Windows 11, and Linux

Amazon Threat Intelligence reported a separate observation. Its MadPot decoys saw ARTEX campaign memory in requests sent to sensors that presented as model inference services. That traffic shows why a model endpoint belongs in the data-flow review. Put its address, authentication and allowed fields under operator control. An inference service can see the campaign context sent to it even if the worker never reaches a database. Amazon’s original observations

Set the worker’s boundaries before it sees any target data

Start with an inventory of what the worker can read, change and send. Include files it can mount, service identities it can use, shared caches, telemetry destinations, approved test targets and any channel that receives summaries. For each one, record which control denies access, which team owns that control and where a denial appears. Treat undocumented reach as an unresolved risk until someone shows how it is enforced.

Isolate the worker and its job state

Run one job in one disposable environment under an unprivileged identity. Give it bounded CPU, memory, run time and temporary storage. Use a reviewed image and record its digest so the team can identify what actually ran. Restrict mounts and devices and keep the host management interface out of reach. Keep the testing console and scheduler on separate identities. In a higher-impact engagement, consider a dedicated VM or stronger sandbox where a shared host would leave unacceptable consequences. NIST Application Container Security Guide

Review what survives a job. A worker might lose its filesystem when it stops while a shared cache, queue, or evidence store retains material the next job can read. Give retained artifacts a job and tenant identifier. Apply the same access controls to background retries and cleanup. Where production data would otherwise be needed for a pilot, use synthetic equivalents and document what the substitution can and cannot prove.

Enforce approval and egress outside the worker

Make the controller or gateway enforce the rules each time a worker proposes an action. Bind the decision to the job, permitted action, destination and authorization window. Require fresh approval when the scope changes. Keep a copy of the approved rules with the job record so a reviewer can distinguish a genuine exception from a policy mismatch.

Deny outbound traffic by default. Allow only authorized test destinations and explicitly approved supporting services. Read back the applicable rule at the worker’s actual egress point. Check how the policy handles redirects and whether a model endpoint can change during a job. Give an independent stop control authority to block continued work even if the worker’s own status still says it is running. OWASP guidance on limiting agent tool authority

Target data reaches an isolated worker. A separate policy gateway controls approved destinations and writes to an external log.
A gateway outside the worker enforces approved destinations and records decisions independently.

Keep credentials and report publication separate

Keep long-lived provider and database secrets in independently managed services. Give the worker a short-lived identity with narrowly defined actions and a documented expiry. Route approved model calls through a gateway that holds the upstream credential. Decide which context is necessary for inference and which client details must stay out of requests. Confirm where collected records are stored, who can retrieve them and how long the service keeps them.

See also  Security Misconfiguration Detection and Remediation Checklist

Give the worker permission to submit preliminary evidence for its own job. Keep approval to publish findings with a separate reviewer identity. Reviewers need access to the original events and an independent observation of the disputed outcome. An assistant-generated explanation can help someone navigate the records. The reviewer should be able to establish the sequence without relying on that explanation.

Run a synthetic acceptance check for the controls

Use a disposable job in staging, a harmless sample file, a fake credential identifier and two mock destinations you control. Configure one destination to be authorized and the other to be denied. Run the check through your normal policy and telemetry path with a deterministic test client. The question is whether the controls behave as configured. The sample below is a fictional acceptance check. Our analysis comes from published research and defensive guidance.

  1. Confirm the permitted path. Submit an approved read against the mock service. Match the external audit event to the job identifier, action, destination, decision and timestamp. Confirm at the mock service that exactly the expected request arrived.
  2. Confirm the denial. Submit the same harmless read for the second mock destination. Require a denial in the gateway and absence of the request at the receiving service. The two observations matter because a friendly error message alone says little about what reached the other side.
  3. Verify credential scope. Confirm that the staging worker can use its own temporary identity and cannot retrieve the mock secret assigned to a separate job. Read back the scope and expiry from the protected control service. Where an access attempt is expected to fail, record the corresponding event outside the worker.
  4. Check approval and termination. Send a benign request that requires review and withhold the approval. Confirm that the action stays blocked. End the job using the normal stop control. Confirm that its identity is revoked or expires as designed and that its scratch state is removed on schedule.

Keep the test narrow enough to repeat after a worker-image update, policy change, new provider route or authorization change. In the acceptance record, capture the worker image digest, policy revision, job identifier, correlation identifiers and what each independent observer saw. Tie the decision to those named versions so a later system change triggers a meaningful retest. For teams that also need to verify the alert path, use the EncryptCentral guide to synthetic AppSec alert validation.

Give one person responsibility for reading the enforcement results, even when several teams run the check. The platform owner can pull the runtime configuration. The network owner can confirm the egress decision. The AppSec reviewer can compare both with the engagement scope. Agree on a disposition before the exercise. A missing denial event, an unexpected receiving-service request or a worker that accepts new actions after termination should each put the pilot on hold. A change ticket can track the owner, intended fix and evidence required to close each gap.

See also  Software Supply Chain Security and SBOM Buyer Guide

Stop the run when the evidence conflicts

Suppose a worker reports a successful inspection, but the gateway logs an attempt to reach your mock destination outside scope. Put the job on hold and compare the controller and receiving service records. If the receiving service saw the request, treat that as a boundary failure even if an agent summary marked it as blocked. If the worker exported records to an unapproved destination or gained access to another job, pause similar work until you establish which deployments share the same control settings.

Use independent telemetry to reconstruct the timeline. Capture the exact policy version, runtime event, network decision and affected job identity. Revoke credentials that the job could actually reach and review their use over the relevant time window. Keep incomplete or contradictory findings out of the final report until a reviewer can reconcile the records. Run a clean, authorized retest from a trusted image after addressing the cause. The clean run gives you new evidence about the corrected environment. Keep the original incident record with it.

Three stages in order: stop the worker, review evidence, and retest in a clean environment.
Evidence review comes before a clean retest whenever a worker crosses a boundary.

Defensive checklist for an AI pentest worker

  • Require one disposable worker and one scoped identity per engagement.
  • Separate the console, long-lived secrets, shared storage and final report approval from worker access.
  • Enforce scope, authorization and network policy in a service outside the worker.
  • Bind every approval to an exact action, destination, job and time window.
  • Send allowed, denied and stop events to an external audit log with a common job identifier.
  • Use mock destinations and synthetic records to prove a permitted action and a denied action.
  • Record what invalidates the approval and who can stop the job and order a clean retest.

Make the next engagement earn approval

Ask the tool owner or vendor one question. If a single worker is compromised, which operator credentials, client records and network destinations remain within reach? Ask for a versioned diagram, an authorization decision from outside the worker, an example denial in the external log and the stop procedure. Apply the same questions to a hosted vendor as to a tool you run yourself. The location of the control may differ. Its effect still needs evidence.

Start with one staging job. Release it only after a reviewer can trace both the permitted and denied requests, confirm that a separate job’s records stayed isolated, and see who can end the run. For a broader view of authorized security testing, visit the AI agent security checklist or the guide to agentic security self-testing.

Access ControlAI Securityapplication securityPenetration TestingPrompt Injection

Jamieson-Don Consultants

Jamieson-Don Consultants publishes EncryptCentral to help business owners, security leaders, and technical teams turn cybersecurity evidence into decisions they can implement and verify. Our work draws on official advisories, recognized standards, vendor documentation, and attributable technical research. We explain what a control is for, who owns it, how to deploy it, where it can fail, and what evidence demonstrates that it is working. EncryptCentral is educational and independent: commercial relationships are disclosed, verified facts are separated from judgment, and our content does not replace legal, compliance, incident-response, or professional security advice.