Back to Updates

ARTEX on a Dedicated VM: Three Firewalls and AWS Terraform

ibl.ai Engineering

ibl.ai's ARTEX build runs on a dedicated Ubuntu VM behind three independent firewalls, with Terraform for AWS, so the operator's own machine holds only an SSH client and a browser tab.

ibl.ai's ARTEX build now runs the autonomous pentest platform on a dedicated Ubuntu VM behind three firewalls, with AWS Terraform and only SSH and a browser on the operator's machine, and you own all the code and the data, including the VM, the findings and the LLM key.

ARTEX is open source (AGPL-3.0), written by Autumn-27 and continued at BaaRai/ARTEX. ibl.ai adds verification and containment and takes no credit for the tool itself.

It is one of the tools our team uses in the Evaluate stage of the AI Security service. A customer's security team receives the repository in an engagement and can re-run every check.

Where should an autonomous penetration-testing tool like ARTEX run: a Mac or a dedicated VM?

ibl.ai's ARTEX build supports both. The steps are the same; what differs is how much sits between ARTEX and everything else you own.

On a Mac On a dedicated Ubuntu VM
Good forTrying it, the practice target, short runsReal engagements, anything long-running
Firewalls1: the container lock3: edge, VM kernel, container lock
Installed on your machineDocker, the clone, ARTEX, its dataAn SSH client and a browser tab

A Mac cannot get a second firewall: the Docker engine's Linux VM is not yours to add rules to.

The suggested VM size is 4 vCPUs, 8 to 16 GB of memory and 50 GB of disk (a t3.xlarge on AWS), with no instance role and no shared folders.

How does ARTEX run on a separate VM with nothing on the operator's machine?

ARTEX, Docker, the clone, the database and the LLM key all live on the VM. The operator's machine stores one SSH key made for that VM and listens on nothing.

Diagram: the operator's machine holds only a browser and an SSH client. The ARTEX VM, behind a network edge firewall and its own kernel firewall, holds the clone, the database, the LLM key and the locked ARTEX stack, and the console travels inside the SSH session.

The console listens on the VM's own 127.0.0.1:8787, which the network cannot reach. The operator opens it with ssh -N -L 8787:127.0.0.1:8787 artex-vm; Ctrl-C closes the tunnel and the console is unreachable again.

The SSH config sets ForwardAgent no, because agent forwarding would let software on the VM use the operator's other keys. Where the VM sits behind a jump host, ProxyJump passes the session through it and the console is never exposed on the jump host.

What are the three firewalls around ARTEX on a dedicated VM?

Three layers that fail independently, so a bypass of one still meets the next, and a target must be allowed in all three.

Diagram of three nested firewalls around ARTEX on a dedicated VM: the network edge, the VM kernel and the container namespace, each labelled with what it allows.

Layer What it allows
Network edgeInbound TCP 22 from your address only. Outbound TCP 443, DNS to your resolver and your target addresses.
VM kernelibl/deploy/vm/host-firewall.sh, about sixty lines: the proxy's network forwards only TCP 443 and DNS, ARTEX's only to ALLOW_CIDRS; the rest is dropped and logged.
Container lockDefault deny. ARTEX reaches its database, one proxy on port 443 and the targets you list.

The inner lock blocked 14 of 14 leak probes in the 2026-11-25 test. To prove the outer two work alone, the guide removes it for one leak-test run on the VM: direct TCP and UDP must still be blocked.

Docker daemon name lookups bypass the outer two layers, so the edge restricts DNS.

How does the AWS Terraform for ARTEX lock down the VM?

On AWS, ibl/deploy/aws builds the first two steps: a VPC of its own, the VM, and AWS Network Firewall between the VM and the internet, passing TLS connections by server name.

Diagram: the operator connects to the ARTEX VM over SSH. Everything the VM sends out passes through AWS Network Firewall and then a NAT gateway; only the allowed LLM hosts on port 443 and the systems under test are reachable, and everything else is dropped and logged.

  • Hostname allowlist outside the VM. Only your ALLOW_HOSTS pass on 443; other ports, UDP and ICMP are dropped.

  • No permissions in your account. No IAM role, and IMDSv2 with hop limit 1.

  • A log ARTEX cannot erase. Every dropped connection goes to CloudWatch.

It starts in setup mode, with ports 80 and 443 open while the build downloads. After the first successful ibl/deploy/up.sh, setup_mode = false narrows it to the LLM hosts and targets. The configuration passes terraform validate.

Running it taught our engineers to use aws:drop_established_app_layer, because a post-quantum TLS ClientHello spans several packets, and to route SSH replies straight back.

How is an ARTEX VM torn down when the engagement ends?

In five steps, after saving the findings: stop the stack with ibl/deploy/dc.sh down, revoke the LLM key, delete the VM and its disk, remove its firewall rules, and delete the local SSH key and config entry.

On AWS, terraform destroy removes the VM, its disk and the firewall.

The same containment idea runs through agent sandboxes locked to hosts you allow, and air-gapped deployment.

What else is in the ARTEX series?