Rohan LopesRohan LopesSenior Integration & AI Architect
HomeWorkBlogAboutContact

Rohan Lopes

Senior Integration & AI Architect. Building integrations and AI agents that do real work.

HomeWorkBlogAboutContactBlog archive

© 2026 Rohan Lopes · Built with Next.js and Claude Code · Privacy

    All posts
    AI Agents
    OT Security
    Meta Muse
    SAM 3.1
    LangGraph
    Hackathon
    Python
    Next.js

    ConduitAI: Planning Hardware Data Diode Cutovers with Meta Models and a Deterministic Verifier

    My Meta Global AI Developer Hackathon build: a seven-stage LangGraph workbench that turns plant packet captures, switch dumps and cabinet photos into a verified IEC 62443 data diode cutover plan.

    November 10, 2026 · 7 min read

    TL;DR. For the Meta Global AI Developer Hackathon (Push the Frontier, Indie Developer track), I built ConduitAI: an engineering workbench that turns the read-only files a plant can safely share—packet captures, firewall logs, switch CLI dumps, asset inventories, cabinet photos, network drawings and field voice notes—into a hardware data diode cutover plan (IEC 62443 SL-4). Six Meta models handle perception and design inside a seven-stage LangGraph pipeline, while a deterministic rule checker written in plain code tests every draft and rejects unsafe or physically infeasible plans. You can try the live demo with no sign-in, watch the 3-minute demo video, or read the source on GitHub.

    At a glance

    EventMeta Global AI Developer Hackathon (26 Oct–4 Nov 2026)
    TrackIndie Developer · Problem statement: Push the Frontier
    LinksLive demo · GitHub · Hackathon showcase · 3-min video
    Meta modelsMuse Wonder (muse-wonder-1.0), Muse Spark Open (muse-spark-open-1026), SAM 3.1, Muse Spark 1.3, Muse Voice Transcribe, Muse Image
    StackPython, FastAPI, LangGraph, Scapy, DuckDB, Next.js 15, React 19, @xyflow/react, ReportLab
    Attack replay106 of 106 replayed ICS commands reach plant equipment today across 3 sites → 0 of 106 with the accepted cutover plan

    Why dropping a diode into a plant breaks it

    Water utilities, power substations and factories still connect their operational technology (OT) networks to corporate IT through software firewalls. Firewalls get misconfigured, exploited, or bypassed completely by dual-homed hosts and forgotten cellular modems—so one compromised laptop on the office network can reach a breaker relay or a chlorine dosing pump.

    A hardware data diode fixes the physics: light or an FPGA link carries telemetry out of the plant, and nothing can travel back in. The catch is that live plants talk in both directions. Historians poll PLCs, SCADA masters interrogate RTUs, and legacy OPC-DA or SMB shares open dynamic return ports. Put a one-way link straight across that boundary and the plant stops working. Planning which flows can pass unchanged, which pull-polls must be reversed into local TX proxies, which bypass paths must be severed, and which diode hardware actually fits inside the cabinet normally takes a senior OT network architect weeks.

    How the pipeline splits the work

    ConduitAI separates the job into three parts: plain code where exactness is non-negotiable, multimodal and reasoning models where evidence lives in photos, drawings and multi-constraint trade-offs, and a deterministic verifier that has the final word before any plan reaches an engineer.

    1. Packet, firewall and switch evidence in plain code

    • Scapy Layer-7 inspection decodes industrial function codes directly from .pcap captures—distinguishing a benign Modbus read (FC 03/04) or IEC-104 interrogation from a Modbus register write, DNP3 operate or IEC-104 breaker command, alongside S7comm, EtherNet/IP CIP, OPC-UA, C37.118 and BACnet.
    • DuckDB aggregates 24 hours of FortiGate or PAN-OS firewall logs for sustained and peak bandwidth sizing, while switch ARP/MAC dumps establish Purdue zones (so IT→OT vs. OT→IT direction is computed rather than guessed) and uncover undocumented shadow devices via OUI enrichment.

    2. Physical space and undocumented paths with SAM 3.1 and Muse Spark

    Firewall logs cannot show a connection that skips the firewall, and packet parsers cannot look inside an enclosure.

    • Cabinet geometry without per-site magic numbers. SAM 3.1 segments patch panels, servers, DIN rails, enclosures and cellular modems/antennas. Because a standard 19-inch rack panel is 482.6 mm wide (44.45 mm per U) and standard DIN rail is 35 mm tall, ConduitAI scales pixel gaps directly into rack units and millimetres of free DIN rail. A rack gap only counts as free once Muse Spark 1.3, shown that specific crop, confirms nothing is mounted there—which stopped cable managers on a real rack photo from being counted as 16 U of empty space.
    • Drawing vs. reality. SAM 3.1 finds every box on the customer's network diagram and Muse Spark reads the hostnames and IP addresses inside each crop. Reconciling those against actual switch and packet traffic highlights drawn devices that never speak and live hosts missing from the plant's own drawings—including the water plant's hidden 5G modem.
    • Voice notes that ask instead of guessing. Muse Voice Transcribe turns browser-recorded or uploaded field notes into structured observations. When sources disagree—for instance, on the water plant the voice note reports 250 mm of free DIN rail on port Gi1/24, while SAM 3.1 measured 316 mm and the switch learned the modem on Fa1/24—ConduitAI surfaces an explicit Questions for the site list rather than silently picking one.

    3. Muse Wonder proposes, plain code verifies

    Muse Wonder (muse-wonder-1.0) receives the assembled evidence pack and proposes a Green / Amber / Red / Critical cutover action for every flow plus a vendor-neutral hardware bill of materials:

    • Green (drop-in): outbound OT→IT pushes (Syslog, MQTT, SFTP, HTTPS push).
    • Amber (pull-to-push reversal): IT→OT read polls (Modbus FC 03/04, DNP3 class polls, IEC-104 interrogation), where the diode's plant-side TX unit polls locally and pushes snapshots out to an IT-side RX replica.
    • Red / Arch D: legacy dynamic-port protocols needing an OPC-UA or SFTP wrapper, or signed setpoint dispatch through an OT-locked gateway.
    • Critical (sever at Layer 1/2): inbound remote admin (RDP, VNC, Telnet, inbound SSH), unsigned writes, lateral scanning and rogue cellular bypasses.

    Every draft is checked by a deterministic verifier against hard rules: no inbound session graded Green, no remote admin or lateral movement left connected, protocol proxy support on the chosen diode SKU, bandwidth headroom, VLAN capacity and physical rack/DIN fit. Violations go back to the model for up to three attempts:

    • Where the model beats fixed rules: on the AquaPure water plant, PLC polling shares the boundary with camera streams. The deterministic rule engine alone picks a single video diode—which the verifier flags because a video diode cannot proxy Modbus TCP. Both Muse Wonder and Muse Spark Open select a field protocol diode for the PLCs plus a video diode for the cameras, matching the benchmark ground truth.
    • Where the verifier catches the model: across six unseen public ICS captures run from packets alone, 4 of 12 model drafts were rejected and fixed on the second attempt. In the sharpest example, Muse Spark Open relabelled a synchrophasor stream (opened from the data concentrator into the PMU) as plant-initiated so it could pass unchanged; the verifier rejected it because only recognised push services may be treated as outbound.
    • Air-gapped open weights: utilities rarely send plant captures to a cloud API. Flipping the workbench's Air-Gapped switch runs the architect, diagram reader and rack-gap checks on open-weights Muse Spark Open (muse-spark-open-1026), checked by the exact same verifier.

    Proving the plan by replaying real ICS attacks

    Rather than asking a plant manager to trust a table of firewall rules, ConduitAI replays real industrial control commands from public CISA and UIUC captures down the exact network paths observed at the site:

    Demo siteProfileAttack commands reaching plant gear todayWith the accepted cutover plan
    1. GridCore 220 kV SubstationIEC-104, DNP3, Modbus, inbound SSH39 / 390 / 39
    2. AquaPure Water PlantEtherNet/IP CIP, Modbus, VNC + rogue 5G modem11 / 11 (8 real packet payloads)0 / 11
    3. UOWM IEC-104 Testbed26,197 real packets from public intrusion dataset (Zenodo 7108614)56 / 560 / 56

    The check is wired to fail when a plan is wrong: leave the water plant's 5G modem connected and its Modbus write commands sail straight past the diode. On the real UOWM IEC-104 testbed, ConduitAI discovers all five hosts missing from the asset list (including the three attack machines), severs their command traffic, and keeps the documented control centre's telemetry alive by converting its bidirectional session into local RTU polling on the plant side of the diode.

    In the workbench, an engineer can also click Test the rule checker—or try to override a blocked flow in the Engineer review panel—to watch the verifier refuse an unsafe change in real time. Sign-off is bound to the plan's SHA-256 fingerprint, and the exported handoff bundle includes switch cutover CLI (Cisco IOS or Hirschmann HiOS), a .drawio diagram, and an IEC 62443 / NIST 800-82 PDF report listing every input file by hash.

    Honest limits and what's synthetic

    A tool aimed at critical infrastructure shouldn't over-claim:

    • Synthetic vs. real plants. Plants 1 and 2 (Substation and Water Plant) use synthetic captures, logs, AI-generated cabinet images and drawings prepared for repeatable testing. Plant 3 uses unmodified real IEC-104 traffic from the public UOWM intrusion dataset, and six additional capture-only sites run directly on public CISA (cisagov ICSNPP) and UIUC ITI captures.
    • SAM 3.1 on real photographs. Tested on 17 real Wikimedia Commons enclosure photos—angled, cluttered, or with doors partially blocking rails—SAM 3.1 measured 2 of 11 enclosures and returned "not measured" on the rest, with 0 false free-space claims and 0 false modem alarms. Failing safe matters more than guessing a measurement.
    • Zero-key public demo. The hosted Vercel workbench holds no API keys: it replays content-hashed Meta model outputs recorded from live runs, while Scapy packet inspection, DuckDB queries, the rule verifier, topology maps and attack replay all execute live.

    The full code, benchmark script (run_eval_benchmark.py) and scorecard are open-source under MIT at lopesrohan1988/conduit-ai.

    Project

    ConduitAI: OT Network Isolation Workbench

    All posts