Training / OIX Method

Adversarial World Modeling

Model the target before you touch the tools.

Most IoT training teaches a sequence of tools. Students learn to dump flash, sniff BLE, and probe UART, and then they freeze on an unfamiliar, hardened device, because nothing tells them which of those to do, in what order, or when to stop. OIX starts from the other end. Before you touch a tool, you build a working representation of the target, and that representation decides where you attack.

7 of 20

CVEs in RT-Labs' two 2026 advisories for P-Net, its PROFINET IO-device stack, credit Aditya Gupta of Attify.

2

can only be partly fixed in code. The PROFINET specification is the limit, so the rest of the fix has to live in the network.

CVE-2026-124759 · CVE-2026-124762 · why

5 invariants

cover all seven bugs. Each one is mapped to the channel and state it breaks, with a real experiment-log entry from the reproduction.

Jump to the worked example ↓

What it is

Adversarial World Modeling (AWM) is the practice of building a working, attacker's-eye representation of an IoT target and keeping it up to date before and during exploitation. You build it against the real device, and every test you run, including the ones that fail, updates it.

Not a threat model

A threat model lists what could go wrong, usually once, at design time. The adversarial world model is built against the real target and keeps changing as you test it.

Not an architecture diagram

A diagram shows boxes and arrows. The model records which messages change which state, what the device uses to decide who sent them, and what must hold when they arrive.

Not an AI world model

No neural network is involved. It is a written, structured representation of one target that a person, a red team, or an AI assistant can reason over.

Worked example

A PROFINET device stack

P-Net is RT-Labs' open-source PROFINET IO-device stack, the software that lets an industrial device talk to a PLC. Seven of the twenty vulnerabilities in RT-Labs' advisories RRTL-261019-01 (29 Oct 2026) and RRTL-261109-01 (9 Nov 2026) credit Aditya Gupta of Attify. Below, a slice of the model sits next to the invariants it produces, so you can see where each published bug falls.

The model, as one picture

P-Net IO-device channels and the CVEs that break themThe IO-controller and any other host sit on the same layer-2 segment, which reaches the device's DCP, DCE RPC, RTA alarm and cyclic IO channels. Seven CVEs are pinned to the channel they break. CVE-2026-124762 and CVE-2026-124759 are only partly fixed because the device identifies the sender only by values sent in clear.L2 SEGMENTIO-controllerusually a PLC; owns the ARAny host on the segmentreads what crosses in clearIO-device running P-NetDCPDiscovery and IP configurationaccepts frames from any hostCVE-2026-115795fixed 1.0.3CVE-2026-124761fixed 1.0.4DCE RPCConnect, records, sessionssender = activity UUID, in clearCVE-2026-115793fixed 1.0.3CVE-2026-124762partly fixedRTA alarmsAcyclic alarms in an ARsender = 16-bit ref, in clearCVE-2026-115794fixed 1.0.3CVE-2026-124759partly fixedCVE-2026-124760fixed 1.0.4Cyclic IOProcess data while the AR is activeno CVE in this setfixed in the version shownpartly fixed in 1.0.4: the specification is the limit

Invariant, hypothesis, published outcome

Must hold

A request the device refuses leaves nothing behind in its configuration.

Where it could break

The state check runs after the new value has already been written.

What the advisory confirms

A refused DCP Set of the IP suite was still stored in the current and non-volatile configuration. After a restart the device used the refused address.

Must hold

Only the IO-controller of an AR can end that AR.

Where it could break

The stack identifies the sender by values that are sent in clear, not by where the frame came from.

What the advisory confirms

An alarm ERROR frame from any host, or an RPC reject, fault, or cancel PDU matched only by activity UUID, aborted the AR.

Must hold

Every session the device allocates is released or times out.

Where it could break

An error path allocates a session and never frees it.

What the advisory confirms

RPC requests naming an unknown interface each held a session with no timeout. Once the sessions ran out, the device stopped answering RPC until it was restarted.

Must hold

A message that fails to parse leaves the receiver where it was.

Where it could break

The state changes before the parse succeeds.

What the advisory confirms

The alarm receiver moved to waiting for confirmation before parsing. After one malformed notification, it discarded later alarms of the same priority.

Must hold

Length fields are checked against the bytes actually received.

Where it could break

A length field is trusted, or underflows.

What the advisory confirms

The alarm data length was not checked against the frame length. A short DCP Set block made the block length underflow to 65534.

Outcomes are summarized from the RT-Labs advisories, which give the full descriptions, CVSS v4 vectors, and fixed versions.

What a model entry looks like

Here is CVE-2026-115793 written as one entry in the experiment log. Every value comes from Aditya Gupta's write-up of the first advisory, Three Bugs, One Stack.

entry       CVE-2026-115793 · RPC session lifecycle
target      p-net core @ ca4f37c5 (public/v1.0.2-2), unmodified
            Linux port, AddressSanitizer, isolated veth pair
            PNET_MAX_AR = 4  ->  9 RPC session slots

invariant   every RPC session the device allocates is
            released, or times out

hypothesis  a request naming an unknown interface takes the
            error path: session allocated, never released,
            no timer started

baseline    EPM Lookup, 156 B
            -> 296 B response, packet type 2, activity UUID matches

variant     9 x 80 B requests, distinct activity UUIDs,
            unknown interface
            -> nine 80 B responses

probe       EPM Lookup, 156 B
            -> no response within 1 s; process still running

recovery    restart, same Lookup
            -> 296 B type-2 response in 4 ms

verdict     invariant violated: unauthenticated, network-reachable
            denial of service until restart

vendor fix  P-Net 1.0.3 kills the session after the response
            is sent (RRTL-261019-01)

The baseline matters as much as the attack. Without the first Lookup and the recovery after restart, “the device stopped answering” is an anecdote. With them, it is evidence that another engineer can rerun.

When the spec is the limit

Two of the seven are only partly fixed, and the reason is the most useful lesson in the set. The PROFINET specification defines the alarm channel only by the addressing of the frame, and DCE RPC identifies a client by its activity UUID rather than its address. The values that identify the controller cross the network in clear.

In model terms, the invariant “only the IO-controller can end the AR” has no place inside the stack where it can be fully enforced. The patch narrows the attack, and RT-Labs' remaining-risk guidance is to isolate the device network. So the model tells you where the real fix belongs: in the network architecture, not the code.

That line, between a defect the vendor can patch and a risk the protocol itself carries, is the line a client deliverable has to draw. It decides what a VEX statement says for a product that ships the stack, which IEC 62443-3-3 zone and conduit controls have to carry the residual risk, and what test evidence a manufacturer records for the EU Cyber Resilience Act.

Running more tools would not have shown you that. Reading the model does.

Why model first

A single meaningful action on a connected device, such as unlocking a door, accepting a firmware update, or aborting a control connection, rarely belongs to one layer. It passes through hardware, firmware, protocol, and the process being controlled. A red team that tests those layers one at a time misses the paths that cross them.

With a model, you can reason in chains. Without one, you are left running tools on intuition.

If the device decides who sent a frame from values that cross the wire in clear, and any host on the segment can read those values, then any host on the segment can act as the controller for that decision.

What goes in the model

The model includes only what decides authority, state, and impact. Anything that doesn't change what you would test next stays out.

Actors

Who can send what: controllers, devices, operators, cloud services, and any host that can reach the device.

Channels and entry points

Every way a message reaches the target: protocols, debug interfaces, radios, update paths, and companion apps.

State

Modes, sessions, connections, and stored configuration, along with the messages that move the device between them.

Identity

What the target actually checks to decide who sent a message, and whether an attacker can see or guess it.

Trust boundaries

Where a message moves from one level of trust to another, such as network to firmware, firmware to stored config, or device to cloud.

Invariants

What must hold at each boundary. These are the claims the rest of the engagement tests.

The loop

AWM borrows its shape from John Boyd's OODA loop. Each pass refines the model, and the refined model makes the next attack more precise.

01

Observe

Collect what the target shows you: traffic, firmware, interfaces, documentation, and the specification it implements.

02

Model

Write down actors, channels, state, and identity. Mark what you know and what you are assuming.

03

State the invariants

For each boundary, write what must hold. Keep each one short enough to test.

04

Hypothesize

For each invariant, ask where the implementation could fail to enforce it. Rank the candidates by reachability and impact.

05

Experiment and update

Run a baseline, then the attack variant, and record the difference. Every result, including a failed attempt, goes back into the model.

What the team keeps

The label matters less than the artifacts. Each one outlasts the engagement.

Target model

Actors, channels, state, identity, and trust boundaries for one target, kept in a plain structured format your team can version and extend.

Invariant list

The properties that must hold, each tied to the boundary and the state it applies to.

Hypothesis backlog

Ranked candidates for where each invariant might fail, including the ones you have not tested yet.

Experiment log

Baseline, variant, observed difference, and what changed in the model as a result, in entries like the one above.

Client-ready evidence

For private team deliveries, findings are written the way a client report needs them: a fix-verification record, the residual-risk rationale when a fix can only be partial, and a finding template mapped to the standards your clients work under.

How it differs

Tool-first testing

Run the usual techniques against each surface and see what falls out. This works well on soft targets and stalls on hardened ones.

Threat modeling

Enumerates possible risks, usually before the system exists and from the defender's side.

Adversarial World Modeling

Builds a model of the real target from the attacker's side, derives the invariants, and uses them to decide what to test next and when to stop.

Two ways in

AWM is the first module of Offensive IoT Exploitation, and every later module builds on it. How you take it depends on whether you are building your own skill or your team's.

For individual practitioners

OIX program + ACIP certification

The guided OIX program, at your own pace, with AWM in Module 1 across firmware (including industrial targets), bare-metal/embedded, and Edge AI labs — with the Industrial & OT track rolling out next. Experienced pentesters can skip foundations and move straight into firmware and protocol-stack modeling.

Certify with ACIP: a 2-hour practical exam in a live, browser-based IoT environment, followed by a 24-hour professional report window — graded on both demonstrated exploitation and client-ready writeup quality.

For teams

Private team delivery

A 3-day or 5-day intensive — remote or on-site, consecutive or split across weeks for distributed teams — scoped around the device classes your team actually assesses (industrial protocol stacks, gateways, embedded controllers, and firmware).

Delivered on a custom Emulated Device Bench with pinned vulnerable and fixed stack versions, accessible in the browser so managed corporate laptops work without local admin or shipping hardware. The team leaves with reusable target models, invariant lists, fix-verification records, and standard-mapped evidence templates.

FAQ

The vocabulary overlaps, but the purpose is different. A threat model is a design-time list of risks. The adversarial world model is built against the target you are attacking, it gets updated by every experiment, and it decides what you test next. The worked example above shows what that looks like in practice.
Look at what the seven P-Net bugs are. Two are length and bounds errors, the class fuzzers are built to find. The other five are about state order, session lifecycle, and who is allowed to send a message, and two of those can only be partly fixed in code. A fuzzer has no way to know that a refused request should leave nothing behind, or that only the controller should be able to end a connection. Those are invariants, and someone has to write them down. AWM is where they get written, and it gives an AI assistant something structured to reason over instead of spraying inputs.
No. OIX uses a lightweight structure that is easy to read and precise enough to reason over. The point is to cut down on random testing, not to make red teaming academic.
No. It speeds up the work and makes it sharper, but it never blocks it. You can work through any lab with traditional tooling, and the model gives you a better way to decide what to try.
CFSE is Attify's formal methodology for world-model security work. Adversarial World Modeling is its hands-on offensive application, taught for IoT, embedded, and industrial targets.

Bring the device classes your team works on. We will send the detailed curriculum and scope which targets to model and how deep each module should go.