---
title: "ARTEX on a Dedicated VM: Three Firewalls and AWS Terraform"
slug: "artex-dedicated-vm-three-firewalls-aws-terraform"
date: "2026-11-29"
tag: "Infrastructure"
products: []
summary: "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."
author: "ibl.ai Engineering"
linkedin: |
  An autonomous penetration-testing agent can now run on a VM that exists only for it, behind three independent firewalls, while your laptop holds nothing but an SSH client and a browser tab.

  That is the deployment ibl.ai's team ships around ARTEX, the open-source autonomous pentest platform, as part of our AI Security service.

  What a security team gets:

  The network edge admits SSH on TCP 22 and nothing else. The console listens only on the VM's own loopback and travels inside the SSH tunnel.

  The VM's kernel firewall drops and logs anything the stack's three networks try to send outside the list.

  The container lock is default-deny and the agent cannot change it, even as root.

  On AWS, Terraform builds the VPC, the VM and AWS Network Firewall in front of it, which passes TLS only to the hostnames you allow. No IAM role, IMDSv2 with hop limit 1, every dropped connection logged to CloudWatch, and one terraform destroy to remove it all.

  With ibl.ai you own all the code and the data, and the machine that runs the agent is yours to delete.

  #iblai #AgenticAI #EnterpriseAI #AISecurity #PenetrationTesting #ZeroTrust #Terraform
---

**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](/service/ai-security). 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.

<table style="width:100%; border-collapse:collapse; margin:1.5rem 0; font-size:0.95rem;">
  <thead>
    <tr style="background:#f5f5f0; border-bottom:2px solid #2175C5;">
      <th style="text-align:left; padding:0.75rem; color:#5f6368;"></th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">On a Mac</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">On a dedicated Ubuntu VM</th>
    </tr>
  </thead>
  <tbody>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><strong>Good for</strong></td><td style="padding:0.75rem;">Trying it, the practice target, short runs</td><td style="padding:0.75rem; background:#f0f9ff;">Real engagements, anything long-running</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><strong>Firewalls</strong></td><td style="padding:0.75rem;">1: the container lock</td><td style="padding:0.75rem; background:#f0f9ff;">3: edge, VM kernel, container lock</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><strong>Installed on your machine</strong></td><td style="padding:0.75rem;">Docker, the clone, ARTEX, its data</td><td style="padding:0.75rem; background:#f0f9ff;">An SSH client and a browser tab</td></tr>
  </tbody>
</table>

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.

<a href="/images/ai-security/artex-diagram-remote.webp" target="_blank" rel="nofollow noopener noreferrer"><img src="/images/ai-security/artex-diagram-remote.webp" alt="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." width="1600" height="800" loading="lazy" decoding="async" /></a>

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.

<a href="/images/ai-security/artex-diagram-layers.webp" target="_blank" rel="nofollow noopener noreferrer"><img src="/images/ai-security/artex-diagram-layers.webp" alt="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." width="1600" height="775" loading="lazy" decoding="async" /></a>

<table style="width:100%; border-collapse:collapse; margin:1.5rem 0; font-size:0.95rem;">
  <thead>
    <tr style="background:#f5f5f0; border-bottom:2px solid #2175C5;">
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Layer</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">What it allows</th>
    </tr>
  </thead>
  <tbody>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><strong>Network edge</strong></td><td style="padding:0.75rem;">Inbound TCP 22 from your address only. Outbound TCP 443, DNS to your resolver and your target addresses.</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><strong>VM kernel</strong></td><td style="padding:0.75rem;"><code>ibl/deploy/vm/host-firewall.sh</code>, about sixty lines: the proxy's network forwards only TCP 443 and DNS, ARTEX's only to <code>ALLOW_CIDRS</code>; the rest is dropped and logged.</td></tr>
    <tr style="background:#f0f9ff; border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><strong>Container lock</strong></td><td style="padding:0.75rem;">Default deny. ARTEX reaches its database, one proxy on port 443 and the targets you list.</td></tr>
  </tbody>
</table>

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.

<a href="/images/ai-security/artex-diagram-aws.webp" target="_blank" rel="nofollow noopener noreferrer"><img src="/images/ai-security/artex-diagram-aws.webp" alt="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." width="1600" height="700" loading="lazy" decoding="async" /></a>

- **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](/updates/agent-sandbox-virtual-machines-network-policies), and [air-gapped deployment](/service/air-gapped-ai).

## What else is in the ARTEX series?

- [How an autonomous penetration test runs with ARTEX](/updates/artex-autonomous-penetration-testing-how-it-works)
- [A reproducible, verified build of the pentest agent](/updates/artex-reproducible-build-verified-pentest-agent)
- [The default-deny network lock and its 14-probe leak test](/updates/artex-default-deny-network-lock-leak-test)
