---
title: "Default-Deny ARTEX Lock: 14 of 14 Leak Probes Blocked"
slug: "artex-default-deny-network-lock-leak-test"
date: "2026-11-29"
tag: "Infrastructure"
products: []
summary: "ibl.ai's ARTEX build runs inside a default-deny network lock the agent cannot change even as root: one proxy exit on port 443, only the targets you name, and a leak test that blocked 14 of 14 probes."
author: "ibl.ai Engineering"
linkedin: |
  From inside the container, as root, 14 of 14 attempts to get an autonomous pentest agent out of ibl.ai's network lock were blocked.

  ibl.ai's team keeps a pinned, reproducibly built copy of ARTEX, the open-source autonomous penetration-testing platform, and runs it inside a default-deny firewall namespace that the agent does not own.

  What a security team gets:

  One way out: a proxy to named LLM hosts, port 443 only, enforced at packet level.
  Targets by name or address, no wildcards, each name pinned to its address at start.
  Cloud metadata and the Docker host refused even if someone allowlists them.
  A tripwire that records every refused destination for up to seven days.
  A firewall that fails closed: if it is not healthy, ARTEX does not start.

  The leak test runs on every start, and a failed test stops the stack by itself.

  With ibl.ai you own all the code and the data, and your security team can re-run every check in the repository it receives.

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

**ibl.ai's ARTEX build runs an open-source autonomous pentest agent inside a default-deny network lock it cannot change, even as root: one exit on port 443 to named hosts, only the targets you list, and 14 of 14 leak probes blocked. With ibl.ai, you own all the code and the data.**

ARTEX was written by Autumn-27 and continued at BaaRai/ARTEX under AGPL-3.0. ibl.ai's engineers add verification and containment and take no credit for the tool itself. It is one of the tools our team uses in the Evaluate stage of [AI Security](/service/ai-security).

The tests below are of the tool and its lock, run on 2026-11-25. None ran a pentest task with a live model.

## What does a default-deny network lock around an autonomous pentest agent do?

ibl.ai's ARTEX lock is four containers. `netguard` owns a network namespace and installs an nftables output chain with policy `drop`. ARTEX shares that namespace but holds no `NET_ADMIN`, `NET_RAW`, `SYS_ADMIN` or `SYS_PTRACE`, so even root inside it cannot change the rules.

The only exit is `egress`, a tinyproxy that connects to hostnames on `ALLOW_HOSTS` and whose own packet filter opens TCP 443 and nothing else.

The lock fails closed. If `netguard` is not healthy, ARTEX has no namespace to join and does not start.

<a href="/images/ai-security/artex-diagram-lock.webp" target="_blank" rel="nofollow noopener noreferrer"><img src="/images/ai-security/artex-diagram-lock.webp" alt="Diagram of ARTEX inside a default-deny firewall namespace: it can reach its database, an allowlist proxy to the LLM API on port 443, and the addresses in ALLOW_CIDRS; anything else is refused and recorded." width="1600" height="900" loading="lazy" decoding="async" /></a>

*What ARTEX can reach inside the lock. Diagram by ibl.ai.*

## In what order does the ARTEX network lock check each outbound connection?

Every connection from ARTEX's namespace walks seven rules, top to bottom:

1. Reject anything to `127.0.0.11`, Docker's embedded DNS forwarder.
2. Accept loopback.
3. Accept replies to established inbound connections (the console).
4. Accept Postgres on 5432 and the proxy on 8888, by fixed IP.
5. Reject `169.254.0.0/16` and the stack's own three subnets, whatever `ALLOW_CIDRS` says.
6. Accept destinations in `ALLOW_CIDRS`. Entries shorter than `/8` are refused at start-up.
7. Record the destination in the `denied` set, count it, reject it.

IPv6 has no accept rule and is rejected.

<a href="/images/ai-security/artex-diagram-allow-cidrs.webp" target="_blank" rel="nofollow noopener noreferrer"><img src="/images/ai-security/artex-diagram-allow-cidrs.webp" alt="Flow diagram of how each outbound ARTEX connection is checked in order: database or proxy allowed, protected ranges always refused, an address inside ALLOW_CIDRS allowed, anything left refused and recorded." width="1600" height="950" loading="lazy" decoding="async" /></a>

*The order each outbound connection is checked. Diagram by ibl.ai.*

## How do ALLOW_DOMAINS and ALLOW_CIDRS scope an ARTEX penetration test?

Both start empty, so ARTEX reaches only its database and the proxy. `ALLOW_CIDRS` takes IPv4 ranges and covers every port on them; a `/32` is one machine. `ALLOW_DOMAINS` takes bare hostnames, with no wildcards: `example.com` does not bring in `api.example.com`.

`ibl/deploy/up.sh` resolves each name once, outside the lock, allows each address as a `/32` and pins the name in the namespace's hosts file. DNS stays blocked, so a name cannot be re-pointed mid-test.

Protected ranges still win: cloud metadata at `169.254.0.0/16` and the stack's networks `172.30.97.0/24` to `172.30.99.0/24` are refused even if listed. Settings come only from `.env`.

## What did the ARTEX leak test try, and what got out?

Nothing got out. From inside the ARTEX container, as root, with `ALLOW_HOSTS=example.com` and empty `ALLOW_CIDRS`, `ibl/deploy/leaktest.sh` blocked 14 of 14 probes. The first seven rows are those probes; the rest are scope checks from the same run.

<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;">Attempt</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Result</th>
    </tr>
  </thead>
  <tbody>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;">TCP to 1.1.1.1:443, 8.8.8.8:443, a GitHub IP, a web IP on 80</td><td style="padding:0.75rem;">Rejected</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;">UDP DNS to 1.1.1.1, 8.8.8.8, 9.9.9.9</td><td style="padding:0.75rem;">Rejected</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;">Name lookup through Docker's resolver</td><td style="padding:0.75rem;">Rejected</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;">Proxy container on a port other than 8888</td><td style="padding:0.75rem;">Rejected</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><code>CONNECT</code> to a host not on the allowlist</td><td style="padding:0.75rem;"><code>403 Filtered</code></td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><code>CONNECT</code> to an allowed host on port 22</td><td style="padding:0.75rem;">Refused (<code>403</code>)</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;">Plain <code>GET</code> on port 80 through the proxy</td><td style="padding:0.75rem;">Refused</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><code>ALLOW_CIDRS</code> naming 169.254.169.254</td><td style="padding:0.75rem;">Still rejected</td></tr>
    <tr style="border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><code>ALLOW_CIDRS=0.0.0.0/1</code></td><td style="padding:0.75rem;">Firewall refuses to start; ARTEX does not start</td></tr>
    <tr style="background:#f0f9ff; border-bottom:1px solid #e5e7eb;"><td style="padding:0.75rem;"><strong><code>CONNECT example.com:443</code></strong></td><td style="padding:0.75rem;"><strong><code>200</code>, the one intended exit</strong></td></tr>
  </tbody>
</table>

The leak test earned its place while the lock was being built. An early draft of the rules blocked direct traffic, but Docker's own resolver at `127.0.0.11` still answered a name lookup. Rule 1 closes that path, and the leak test checks for it on every run.

`up.sh` runs the leak test each time it starts the stack, and stops the stack if anything gets out.

## How does a security team see what ARTEX tried to reach?

The `denied` set is the tripwire. It holds refused IPv4 TCP and UDP destinations for up to seven days, until `netguard` is recreated. Read it with `ibl/deploy/dc.sh exec netguard nft list set inet netguard denied`; `ibl/deploy/dc.sh logs egress` lists every host the proxy refused.

For a first burn-in, set `ALLOW_HOSTS=` empty and leave `ALLOW_CIDRS` empty, then read the set.

## Which channels does the ARTEX network lock leave open?

A firewall with an allowlist has exactly the holes you put in it. Our team names five.

- **The LLM API.** The proxy sees only the hostname, not TLS contents. A local model with `ALLOW_HOSTS=` empty removes the internet path, the posture of [Air-Gapped AI](/service/air-gapped-ai).
- **The targets.** Anything in `ALLOW_CIDRS` is reachable on every port.
- **The console**, on host loopback port 8787.
- **Disk**: findings, traffic captures and encrypted API keys.
- **The kernel**, shared with the engine. A dedicated VM adds two more firewalls.

A customer's security team receives the repository in an engagement and can re-run every check, starting with `ibl/deploy/leaktest.sh`.

## What else is in the ARTEX series?

The other three entries cover the rest of the work:

- [How an autonomous penetration test runs with ARTEX](/updates/artex-autonomous-penetration-testing-how-it-works)
- [The reproducible build pinned to upstream commit 3cb0638](/updates/artex-reproducible-build-verified-pentest-agent)
- [Where it runs: a dedicated VM behind three firewalls](/updates/artex-dedicated-vm-three-firewalls-aws-terraform)

ARTEX is one tool inside [AI Security](/service/ai-security), alongside AI red teaming, posture assessment and defensive agents.
