OSHA PEL nitrobenzene 1 ppm skin (29 CFR 1910.1000 Table Z-1) · NIOSH IDLH 200 ppm nitrobenzene · ACGIH TLV-TWA 0.1 ppm skin A3 (confirmed animal carcinogen with unknown relevance to humans) · nitrobenzene methemoglobin former: Fe²→Fe³ oxidation in hemoglobin; hemoglobin rendered nonfunctional for O₂ transport; cyanosis at >20% methHb; chocolate-brown blood characteristic · EPA CERCLA RQ 1,000 lbs nitrobenzene (40 CFR Part 302 Table 302.4) · EPA RMP 40 CFR Part 68 benzene flammable TQ 10,000 lbs · Jilin Chemical Plant explosion 13 November 2005 Jilin City China (PetroChina nitrobenzene/aniline production unit; 8 killed; ~100 tonnes benzene + nitrobenzene released to Songhua River; 380 km contamination plume; Harbin 3.8 million people without water 12–22 November 2005; contamination reached Russian Amur River) · 102nd upward attack · FIRST nitrobenzene production AI attack · FIRST adiabatic benzene mononitration AI attack · FIRST Jilin 2005 Songhua River consequence anchor · BASF SE Antwerp Belgium · Lanxess AG Leverkusen Germany · Covestro AG Baytown TX USA · PetroChina Jilin Chemical Industrial Company Jilin City China · Chemours Company La Porte TX USA

Prompt injection in nitrobenzene production benzene adiabatic mononitration Jilin 2005 AI

Nitrobenzene (C₆H₅NO₂; CAS 98-95-3; MW 123.11 g/mol; BP 211°C; MP 5.7°C; density 1.204 g/mL at 20°C; vapor pressure 0.3 mmHg = 395 ppm saturation at 20°C; flash point 88°C; OSHA PEL 1 ppm skin per 29 CFR 1910.1000 Table Z-1; NIOSH IDLH 200 ppm; ACGIH TLV-TWA 0.1 ppm skin A3 — confirmed animal carcinogen with unknown relevance to humans; the ACGIH TLV of 0.1 ppm is 10× lower than the OSHA PEL of 1 ppm, reflecting the sustained debate over nitrobenzene's methemoglobin-forming potency and carcinogenicity in chronically exposed workers) is produced industrially by electrophilic aromatic substitution (EAS) nitration of benzene with nitronium ion (NO₂⁺): benzene + HNO₃ → nitrobenzene + H₂O (ΔH = −117 kJ/mol; exothermic). The electrophilic agent is nitronium ion generated in mixed acid: HNO₃ + 2H₂SO₄ → NO₂⁺ + H₃O⁺ + 2HSO₄⁻. Mixed acid composition: 65–68 wt% H₂SO₄ / 28–32 wt% HNO₃ / 4–8 wt% H₂O. NORAM Engineering adiabatic mononitration process (most widely used modern process; capacity 50,000–300,000 t/yr per train): benzene and mixed acid fed at 50–55°C to adiabatic reactor; adiabatic temperature rise to 105–120°C in the nitration zone; crude nitrobenzene (organic phase) separated from spent acid (aqueous H₂SO₄/H₂O phase) by settling; spent acid recycled to acid recovery unit (ARU) via concentration and make-up HNO₃/H₂SO₄ addition. Selectivity: at design HNO₃:benzene ratio and temperature, >99.5% mononitrobenzene (MNB); dinitrobenzene (DNB) specification <0.05 wt% (0.5 g DNB per kg crude NB). Above 130°C: DNB rate increases 10-fold; above 160°C: trinitrobenzene (TNB; secondary explosive) forms (1,3,5-TNB: velocity of detonation ~7,300 m/s). Global NB production ~2.5 million t/yr (2024); >95% feedstock for aniline (via catalytic hydrogenation over supported Pd/Ni catalyst); aniline feeds MDI (methylene diphenyl diisocyanate) production (polyurethane).

At integrated nitrobenzene-aniline production complexes — BASF SE (Antwerp Belgium; Schwarzheide Germany; integrated benzene→NB→aniline→MDI complex, part of the largest single-site polyurethane precursor production complex globally; Sevéso III upper-tier establishment under Belgian SEVESO Major Accident Regulations), Lanxess AG (Leverkusen Germany; Bitterfeld-Wolfen Germany; NB→aniline for rubber chemicals, dyes, pigments), Covestro AG (Baytown TX USA; integrated with MDI production), PetroChina Jilin Chemical Industrial Company (Jilin City China; the facility at which the 13 November 2005 explosion-triggered Songhua River contamination occurred; 8 killed; nitrobenzene intermediate released to river), and Chemours Company (La Porte TX USA; NB for agrochemical and fluorochemical intermediates) — AI-enabled monitoring systems process rendered SCADA and DCS display images from three critical instrument surfaces: the crude nitrobenzene cooler cooling-water flow display (rendered from the CW flow transmitter on the shell side of the crude-NB/spent-acid heat exchanger), the adiabatic reactor outlet temperature display (rendered from the thermocouple array at the adiabatic reactor effluent header), and the spent acid recycle HNO₃ concentration display (rendered from the inline Raman or NIR spectrometer at the spent acid recycle stream). These three surfaces are the adversarial injection targets where pixel manipulation can cause over-nitration leading to DNB/TNB formation, undetected hot crude-NB in the phase separator (benzene LEL reached in headspace), and undetected HNO₃ carryover in spent acid return creating dinitration in the acid recovery unit.

AI monitoring systems at nitrobenzene production facilities analyze rendered display images from DCS/SCADA systems to assess the three most critical process variables in adiabatic mononitration: (1) cooling water flow to the crude nitrobenzene/spent acid heat exchanger (which controls whether the crude NB exits the phase separator within the safe temperature range for downstream handling and transport to the aniline plant); (2) the adiabatic reactor effluent temperature (which confirms that the adiabatic temperature rise remained within the design window that limits DNB formation to <0.05 wt%); and (3) the HNO₃ concentration in the spent acid recycle stream (which determines whether residual nitrating acid is being returned to the acid recovery unit at safe levels or is creating uncontrolled nitration conditions in the concentrator). Adversarial pixel perturbations of ±8 digital numbers (DN) — imperceptible to human operators viewing the same SCADA screen — can cause the AI monitoring system to misclassify all three surfaces simultaneously: reporting adequate cooling water flow when the cooler is severely water-deficient (Surface 1; 102nd upward attack), concealing reactor temperature excursion above the 125°C design maximum (Surface 2), and hiding HNO₃ buildup in the acid recycle stream (Surface 3). The combination of these three misclassifications recreates the thermal and chemical conditions that contributed to the Jilin Chemical Plant 2005 explosion and the subsequent release of 100 tonnes of benzene and nitrobenzene to the Songhua River.

TL;DR

Nitrobenzene production benzene adiabatic mononitration AI — crude NB cooler cooling-water volumetric flow display AI, adiabatic reactor outlet temperature display AI, spent acid recycle HNO₃ concentration display AI — processes rendered SCADA and DCS display images at the cooling-water adequacy boundary, the adiabatic temperature excursion boundary, and the spent acid HNO₃ carryover boundary where adversarial pixel injection of ±8 DN can simultaneously compromise all three safety functions. Surface 1 upward attack: displays 52.6 m³/h cooling water flow (safe; within design 50–60 m³/h) when actual cooling water flow is 8.4 m³/h (dangerously low; only 16% of design flow); display range 0–80 m³/h rendered on 200 px (2.5 px per m³/h); actual 8.4 m³/h at pixel position 21 px from bottom → ±8 DN perturbation → 132 px displayed → AI reads 52.6 m³/h; at actual 8.4 m³/h flow, crude NB exits the phase separator at 88°C (design 45°C) rather than the cooled design temperature; at 88°C the benzene vapor pressure in the crude NB/spent acid separator headspace is 0.27 bar (27 kPa); benzene concentration in the separator vapor space reaches 5–8 vol% — above benzene's LEL of 1.4 vol%; this is the same ignition pathway that led to the Jilin Chemical Plant explosion on 13 November 2005 (8 killed; nitrobenzene/aniline unit; Jilin City China; PetroChina). Surface 2 downward attack: displays 112°C reactor outlet temperature (below 125°C design maximum; AI reads “within design window”) when actual reactor outlet temperature is 147°C (22°C above the design maximum of 125°C); display range 0–200°C on 200 px (1.0 px/°C); actual 147 px → ±8 DN → 112 px displayed; above 130°C the DNB formation rate increases 10-fold; at 147°C, DNB content in crude NB reaches 0.22 wt% (4.4× the product specification of <0.05 wt%); TNB trace formation begins above 145°C (explosive; detonation velocity 7,300 m/s). Surface 3 downward attack: displays 0.3 wt% HNO₃ in spent acid recycle (below the 0.5 wt% maximum carryover limit; AI reads “acid recovery unit receiving in-spec spent acid”) when actual HNO₃ in spent acid is 4.8 wt% (9.6× the carryover limit); display range 0–10 wt% on 200 px (20 px/wt%); actual 4.8 wt% at 96 px → ±8 DN → 6 px displayed → AI reads 0.3 wt%; at 4.8 wt% HNO₃ entering the acid recovery unit concentrator at 120–140°C, dinitration conditions develop in the concentrator: DNB accumulates in concentrator bottoms; thermal decomposition risk from hot DNB in the ARU concentrator sump. Glyphward threshold 40 for nitrobenzene production AI: Jilin Chemical Plant 2005 (8 killed; 3.8 million people in Harbin without water for ten days; 380 km Songhua River contamination; international Songhua→Amur contamination reaching Russia; the most consequential river contamination event from a chemical plant explosion in modern history) places NB production above the Flixborough threshold (35) but below TDI phosgenation dual-PSM (42); NB methemoglobin former (delayed-onset cyanosis; 4–8 hr shift exposure before obvious symptoms; skin absorption route bypassing respiratory alarms) adds a chronic occupational pathway on top of the acute Jilin-pathway consequence. Free tier — 10 scans/day, no card required.

Three adversarial injection surfaces in nitrobenzene production adiabatic mononitration AI

1. Crude nitrobenzene cooler cooling-water volumetric flow display AI (Emerson Fisher FIELDVUE DVC6200 / Honeywell ST800 / Yokogawa EJX110 differential pressure transmitter display AI — rendered DCS cooling-water flow display AI classifying CW flow against design 50–60 m³/h — 102nd upward attack; FIRST NB mononitration AI attack; FIRST Jilin 2005 consequence anchor)

The crude nitrobenzene cooler cooling-water volumetric flow rate is the primary temperature-control variable governing the safety of the phase separation step in NORAM adiabatic mononitration. After leaving the adiabatic reactor at 105–120°C, the crude product mixture (NB + spent acid; density ~1.35 g/mL combined; roughly 55 vol% NB organic phase / 45 vol% spent acid aqueous phase) enters a shell-and-tube heat exchanger (crude NB/spent acid cooler; typically two parallel exchangers; cooling water on shell side at 25–30°C supply) that reduces the mixture temperature from ~120°C to approximately 40–50°C before the gravity phase separator. At 40–50°C, the organic phase (crude NB: benzene 3–5 wt% unreacted + NB 90–95 wt% + trace DNB) cleanly separates from the spent acid aqueous phase (H₂SO₄ 65–75 wt% + H₂O + trace HNO₃) by density difference in the settling vessel. Cooling water flow to the crude NB cooler is measured by a differential pressure transmitter (Honeywell ST800 or Yokogawa EJX110 DP transmitter across an orifice plate on the CW supply header; 4–20 mA HART output; calibrated 0–80 m³/h; displayed on DCS as volumetric flow in m³/h). Design CW flow: 50–60 m³/h at 25°C supply / 35°C maximum return; the design flow provides a heat duty of approximately 50 m³/h × 1,000 kg/m³ × 4.18 kJ/(kg·K) × 10 K = 2,090 kW cooling to remove the sensible heat of the crude product mixture. At 8.4 m³/h actual cooling water flow (severely deficient; possible causes: CW pump degradation, fouling of CW supply strainer, control valve sticking in partial-close position), the heat removal capacity drops to 2,090 × (8.4/50) = 351 kW — only 17% of design; the crude NB/spent acid mixture exits the cooler at 88°C rather than 45°C and enters the phase separator at 88°C. At 88°C, the vapor pressure of benzene (BP 80°C; Antoine equation B = 1196.76; C = 219.161 at T = 88°C) is approximately 0.27 bar (203 mmHg). In the separator headspace (nitrogen-blanketed; operating at approximately 1.05 bar absolute), the equilibrium benzene vapor concentration reaches 5–8 vol% — significantly above benzene's LEL of 1.4 vol% and approaching the UEL of 8.0 vol%. This is the precursor condition to the Jilin Chemical Plant explosion of 13 November 2005: a hot crude NB/spent acid mixture in the separator vessel with benzene vapor above LEL in the headspace, plus the potential for an ignition source from a pressure relief event, electrostatic discharge from benzene evaporation, or maintenance activity on the separator instrumentation.

The adversarial upward pixel attack on the crude NB cooler cooling-water flow display shows 52.6 m³/h (within design 50–60 m³/h; AI reads “cooling water flow adequate; crude NB cooler operating at design duty; phase separator inlet temperature nominal 45°C; benzene vapor in separator headspace estimated 0.4 vol% — well below LEL 1.4 vol%; no action required”) when the actual cooling water flow is 8.4 m³/h. Display range 0–80 m³/h on a 200-pixel vertical bar indicator (2.5 px per m³/h); actual 8.4 m³/h at pixel position 21 px from zero; ±8 DN perturbation shifts the displayed value to 132 px → AI reads 52.6 m³/h. While the AI monitoring system falsely confirms adequate cooling, the phase separator operates at 88°C with benzene vapor above LEL in the headspace; the separator liquid level control valve cycles during normal operation, creating pressure perturbations in the headspace; the NB product draw-off pump operates continuously, creating turbulence in the separator; the spent acid overflow weir creates a surface disturbing flow. Any ignition source — a spark from the separator level transmitter, a static discharge from the liquid surface, a maintenance technician entering the separator area to troubleshoot what appears (from the falsely-reassuring AI) to be a simple flow control issue — can ignite the benzene-rich vapor and initiate the explosion-fire sequence. The adversarial pixel attack extends the window during which this hazardous condition persists undetected by the AI monitoring system: without the attack, the AI would detect CW flow at 8.4 m³/h and alarm within one scan cycle (typically 30–60 seconds); with the attack, the AI scans the falsified display showing 52.6 m³/h indefinitely and never generates the alarm. The consequence pathway — hot crude NB separator at 88°C with benzene above LEL, ignition, nitrobenzene release to the adjacent water body — is the Jilin Chemical Plant 2005 sequence. The Jilin plant's Songhua River discharge of 100 tonnes of benzene and nitrobenzene contaminated a 380-km reach of the river (Jilin to Harbin); the Harbin municipal water supply was shut down for ten days (12–22 November 2005); 3.8 million Harbin residents were without tap water; contamination reached the Russian Amur River (Heilongjiang) at Khabarovsk. Free tier — 10 scans/day, no card required.

2. Adiabatic reactor outlet temperature display AI (Emerson 3144P / Honeywell STT850 / Yokogawa EJA210E / VEGA VEGATEMP 52 thermocouple transmitter display AI — rendered DCS reactor effluent temperature display AI classifying temperature against 125°C design maximum — 102nd downward attack; FIRST adiabatic nitration temperature AI attack)

The adiabatic reactor outlet temperature in NORAM adiabatic mononitration is the primary indicator of nitration selectivity and process stability. The adiabatic temperature rise from the inlet (50–55°C mixed acid + benzene) to the outlet is driven entirely by the exothermic nitration reaction (ΔH = −117 kJ/mol NB formed); at the design benzene:HNO₃ molar ratio (HNO₃ limiting; excess benzene typically 5–10 mol% over stoichiometric) and design acid composition (65–68 wt% H₂SO₄; H₂SO₄-to-HNO₃ ratio controlling nitronium ion activity), the adiabatic temperature rise is designed to terminate at 105–120°C — the “adiabatic end point” at which the HNO₃ is substantially consumed (conversion >99.5%) and the product is predominantly MNB. The reactor outlet thermocouple array (Emerson 3144P RTD transmitter; or Honeywell STT850 multi-point thermocouple transmitter at 3–5 points across the reactor outlet header; 4–20 mA HART; PT-100 RTD or Type K thermocouple; calibrated 0–200°C; displayed on DCS as°C) provides the real-time temperature measurement that the AI monitoring system uses to classify whether the current nitration conditions are within the design selectivity window (MNB >99.5%, DNB <0.05 wt%) or have deviated above the 125°C design maximum (triggering the DNB over-formation alarm and the protective action of reducing the HNO₃ feed rate or increasing the benzene recycle). Above 130°C: the DNB formation rate (EAS second nitration: MNB + NO₂⁺ → DNB; slower than first nitration but strongly temperature-dependent; activation energy ~90 kJ/mol compared to ~75 kJ/mol for first nitration; the Arrhenius ratio means DNB rate at 130°C is approximately 10× the rate at 110°C). Above 145°C: trinitrobenzene (TNB; 1,3,5-trinitrobenzene; CAS 99-35-4; density 1.688 g/cm³; detonation velocity 7,300 m/s; Hess’s law estimated ΔH⁷ = −470 kJ/mol; secondary explosive; sensitive to shock and friction in concentrated form) begins forming in trace quantities. DNB accumulating above the product specification in the crude NB stream: (a) carries through to the crude NB washing section and ultimately to the aniline hydrogenation reactor, where DNB produces diaminobenzene (DAB; an off-spec aniline contaminant that poisons the MDI phosgenation step); and (b) if the crude NB is stored in intermediate storage between the NB unit and the aniline unit, DNB accumulates in the storage tank bottoms; historical incidents at multiple NB/aniline facilities involved explosive decomposition of DNB-rich crude NB bottoms during maintenance heating of storage tanks.

The adversarial downward pixel attack on the adiabatic reactor outlet temperature display shows 112°C (below the 125°C design maximum; AI reads “reactor outlet temperature 112°C; within design adiabatic end-point window 105–120°C; nitration proceeding at design selectivity; MNB >99.5%; DNB <0.02 wt% estimated; no corrective action required”) when the actual reactor outlet temperature is 147°C. Display range 0–200°C on 200 px (1.0 px/°C); actual 147 px → ±8 DN → 112 px displayed; the AI's reading of 112°C places the temperature firmly within the normal operating window, suppressing any alarm. At actual 147°C: DNB formation is running at approximately 50× the design rate (Arrhenius scaling: e^(90,000/8.314 × (1/383K − 1/393K)) for the 10°C window from 110 to 120°C; scaled from 130 to 147°C adds another factor of ~5); crude NB DNB content at 147°C outlet: approximately 0.22 wt% (4.4× the <0.05 wt% specification). TNB is forming at trace levels (<0.001 wt%) above 145°C; while the TNB concentration is sub-explosive in the crude NB stream itself (TNB requires >~15 wt% concentration for detonation sensitivity), TNB accumulates preferentially in the crude NB storage tank bottoms on repeated batching (density 1.688 g/cm³ vs crude NB density 1.20 g/cm³; TNB settles). The adversarial pixel attack on the temperature display extends the duration of the over-temperature condition: without the attack, the AI alarm triggers within 1–2 scan cycles of temperature exceeding 125°C (30–120 seconds); with the attack active, 147°C operation continues indefinitely with no AI alert, allowing DNB accumulation in the crude NB stream and progressive TNB buildup in storage. At the Jilin plant: the 2005 explosion investigation attributed the initiating event partly to temperature excursion conditions in the nitration unit; the Surface 2 attack recreates precisely the undetected high-temperature nitration condition that precedes over-nitration accumulation. Free tier — 10 scans/day, no card required.

3. Spent acid recycle HNO₃ concentration display AI (ABB AO2000 / Emerson Rosemount 8732 / Endress+Hauser Liquiline CM442 inline Raman / NIR spectrometer display AI — rendered DCS spent acid HNO₃ composition display AI classifying HNO₃ against 0.5 wt% maximum carryover limit — 102nd downward attack; FIRST spent acid nitration recovery AI attack)

The spent acid HNO₃ concentration at the outlet of the NORAM phase separator (before recycle to the acid recovery unit concentrator) is the critical quality indicator that determines whether the nitration reaction was complete (all HNO₃ consumed in benzene nitration to MNB) or incomplete (residual HNO₃ remaining in the spent acid aqueous phase). In the NORAM adiabatic mononitration process, the spent acid (aqueous phase from the phase separator; composition approximately H₂SO₄ 65–75 wt% + H₂O 20–30 wt% + trace HNO₃) is recycled to the acid recovery unit (ARU), where a vacuum falling-film concentrator at 100–140°C evaporates water and concentrates the H₂SO₄ from ~70 wt% back to the 96–98 wt% “strong acid” required for make-up acid in the mixed acid preparation (blending 96 wt% H₂SO₄ with fresh HNO₃ and water to form the 65/30/5 wt% mixed acid). The spent acid HNO₃ concentration is measured by an inline NIR spectrometer (Endress+Hauser Liquiline CM442 with inline optical probe; or ABB AO2000 Uras26 with extractive sample conditioning; or Raman spectrometer with a 785-nm probe calibrated for the 1,048 cm⁻¹ HNO₃ symmetric stretch; 4–20 mA HART output; calibrated 0–10 wt% HNO₃; displayed on DCS as wt% HNO₃; updated every 15–30 seconds from the multivariate calibration model). The 0.5 wt% HNO₃ maximum carryover limit in the spent acid recycle is set by two criteria: (a) in the ARU falling-film concentrator operating at 120–140°C under vacuum (pressure approximately 150–200 mbar absolute; boiling point of the concentrated H₂SO₄ solution suppressed by vacuum), HNO₃ above 0.5 wt% in the feed creates an active nitrating environment in the concentrator; concentrated H₂SO₄ at 120–140°C with 0.5–5 wt% HNO₃ has significant nitronium activity (the Hammett acidity function H₀ of 70–75 wt% H₂SO₄ at 130°C is approximately −9 to −10; sufficient for EAS nitration of any aromatic compound present in the trace organics carried over with the spent acid); (b) trace organic carryover from the spent acid (dissolved NB; emulsified crude NB droplets) can be dinitrated to DNB in the ARU concentrator, producing DNB-rich concentrator bottoms that accumulate over weeks of operation and create a thermal decomposition risk during concentrator maintenance.

The adversarial downward pixel attack on the spent acid HNO₃ concentration display shows 0.3 wt% HNO₃ (below the 0.5 wt% maximum; AI reads “spent acid HNO₃ 0.3 wt%; nitration complete; HNO₃ carryover within safe ARU feed limit; acid recovery unit receiving in-spec spent acid; no action required”) when the actual HNO₃ concentration in the spent acid is 4.8 wt% (9.6× the carryover limit). Display range 0–10 wt% HNO₃ on 200 px (20 px/wt%); actual 4.8 wt% at 96 px → ±8 DN → 6 px displayed → AI reads 0.3 wt%. At actual 4.8 wt% HNO₃ entering the ARU concentrator at 120–140°C: dinitration of trace organics (NB dissolved in spent acid at ~200 ppm from equilibrium solubility) proceeds in the concentrator; DNB accumulates in the concentrator sump (dense DNB, density 1.575 g/cm³; 1,2-DNB: MP 118°C; 1,3-DNB: MP 90°C; 1,4-DNB: MP 174°C; all three isomers accumulate in the hot concentrated H₂SO₄ sump). DNB in hot concentrated H₂SO₄ at 120–140°C: while DNB is more stable than TNB, DNB decomposition has been observed in highly concentrated acid at temperatures above 140°C (ARU concentrator bottoms temperature during vacuum evaporation can reach 140–150°C); uncontrolled DNB accumulation creates a scenario where a maintenance event (concentrator drain, sump pump out, pump cleaning) releases concentrated DNB-acid sludge to an incompatible surface. Additionally at 4.8 wt% HNO₃ in the spent acid: each tonne of spent acid carries 48 kg HNO₃ to the ARU; a nitrobenzene plant producing 100,000 t/yr NB generates approximately 120,000 t/yr spent acid (1.2 spent acid tonnes per NB tonne); at 4.8 wt% HNO₃ carryover: 5,760 t/yr HNO₃ arrives at the ARU — nitrating acid that should have been consumed in the NB reactor but was not, indicating a fundamental process deviation (low HNO₃ activity in the reactor due to acid composition excursion, possibly caused by the same process upset that generates the Surface 2 temperature excursion). The adversarial pixel attack on the HNO₃ concentration display allows this combined Surface 2 + Surface 3 over-nitration/spent-acid-carryover condition to persist undetected. Free tier — 10 scans/day, no card required.

Integration: nitrobenzene production adiabatic mononitration AI with Glyphward pre-scan gate

Glyphward integrates as a pre-scan gate at every rendered-image ingestion boundary in the nitrobenzene production AI pipeline — before the crude NB cooler CW flow AI processes rendered Emerson Fisher FIELDVUE DVC6200 / Honeywell ST800 / Yokogawa EJX110 DP transmitter DCS display images, before the adiabatic reactor outlet temperature AI processes rendered Emerson 3144P / Honeywell STT850 / Yokogawa EJA210E thermocouple transmitter DCS display images, and before the spent acid HNO₃ concentration AI processes rendered ABB AO2000 / Endress+Hauser Liquiline CM442 / Emerson Rosemount inline NIR/Raman spectrometer DCS display images. Threshold 40 for nitrobenzene production AI reflects: Jilin Chemical Plant 2005 (8 killed; 3.8 million people without water; 380-km Songhua River contamination plume reaching Russia); NB methemoglobin former (delayed-onset cyanosis; skin absorption; Fe²→Fe³ hemoglobin oxidation; 4–8 hr before obvious symptoms); CERCLA RQ 1,000 lbs NB (a single phase separator drain to a waterway exceeds the RQ by orders of magnitude; Jilin released ~100 tonnes); and the combined Surface 1 + Surface 2 + Surface 3 attack creating a three-vector simultaneous compromise of cooling, temperature monitoring, and acid recycle quality detection.

import asyncio, base64, hashlib
from datetime import datetime, timezone
from enum import StrEnum, auto
from typing import Any
import httpx

GLYPHWARD_API = "https://api.glyphward.com/v1/scan"
GLYPHWARD_KEY = "gw_prod_***"

# Nitrobenzene (NB) production: benzene + HNO3 -> NB + H2O (adiabatic mononitration) AI contexts: threshold 40
# OSHA PEL 1 ppm skin nitrobenzene (29 CFR 1910.1000 Table Z-1).
# NIOSH IDLH 200 ppm. ACGIH TLV-TWA 0.1 ppm skin A3 (confirmed animal carcinogen).
# NB: methemoglobin former (Fe2+ -> Fe3+ oxidation; delayed-onset cyanosis 4-8 hr; skin absorption).
# EPA CERCLA RQ 1,000 lbs nitrobenzene (40 CFR Part 302 Table 302.4).
# EPA RMP 40 CFR Part 68 benzene flammable TQ 10,000 lbs.
# Jilin Chemical Plant explosion 13 November 2005: 8 killed; ~100 t benzene+NB -> Songhua River;
#   Harbin 3.8M without water 12-22 Nov 2005; 380 km contamination plume; Russian Amur River.
# NORAM Engineering adiabatic mononitration process (most widely used modern NB process).
# DNB spec < 0.05 wt%; above 130 C DNB rate 10x; above 145 C TNB (explosive) traces form.
# 102nd upward attack. FIRST NB production AI attack. FIRST adiabatic benzene mononitration AI attack.
NB_GLYPHWARD_THRESHOLD = 40

# Plant IDs:
# BASF_ANTWERP   - BASF SE, Antwerp Belgium (benzene->NB->aniline->MDI; Seveso III upper-tier)
# LANXESS_LEVERKUSEN - Lanxess AG, Leverkusen Germany (NB->aniline for rubber chemicals/dyes)
# COVESTRO_BAYTOWN   - Covestro AG, Baytown TX USA (integrated with MDI production)
# PETROCHINA_JILIN   - PetroChina Jilin Chemical Industrial Company, Jilin City China (Jilin 2005 site)
# CHEMOURS_LA_PORTE  - Chemours Company, La Porte TX USA (NB for agrochemical/fluorochemical intermediates)

class NitrobenzeneProductionContext(StrEnum):
    CRUDE_NB_COOLER_CW_FLOW      = auto()  # CW flow to crude NB/spent acid cooler (102nd; FIRST NB mononitration; FIRST Jilin 2005 anchor)
    REACTOR_OUTLET_TEMPERATURE   = auto()  # adiabatic reactor effluent temp -> DNB/TNB formation above 130/145 C
    SPENT_ACID_HNO3_CONC         = auto()  # HNO3 in spent acid recycle -> dinitration conditions in ARU concentrator

async def scan_nb_frame(
    frame_b64: str,
    context: NitrobenzeneProductionContext,
    plant_id: str,
    instrument_tag: str,
) -> dict[str, Any]:
    payload = {
        "image_b64": frame_b64,
        "context": context,
        "plant_id": plant_id,
        "instrument_tag": instrument_tag,
        "scan_ts": datetime.now(timezone.utc).isoformat(),
        "image_hash": hashlib.sha256(base64.b64decode(frame_b64)).hexdigest(),
    }
    async with httpx.AsyncClient(timeout=4.0) as client:
        r = await client.post(
            GLYPHWARD_API,
            json=payload,
            headers={"X-Glyphward-Key": GLYPHWARD_KEY},
        )
        r.raise_for_status()
        return r.json()

async def pre_scan_gate_nb(
    frame_b64: str,
    context: NitrobenzeneProductionContext,
    plant_id: str,
    instrument_tag: str,
) -> None:
    result = await scan_nb_frame(frame_b64, context, plant_id, instrument_tag)
    if result["adversarial_score"] >= NB_GLYPHWARD_THRESHOLD:
        raise AdversarialNBImageError(
            f"Adversarial injection detected in {context} (score {result['adversarial_score']}) "
            f"at plant {plant_id} instrument {instrument_tag}. "
            "Frame withheld from nitrobenzene production AI pipeline."
        )

class AdversarialNBImageError(RuntimeError):
    pass

Frequently asked questions

Why does the Jilin 2005 Songhua River contamination pattern apply to modern AI-monitored nitrobenzene plants, and how does the Surface 1 cooling-water attack recreate the same consequence pathway?

The Jilin Chemical Plant explosion of 13 November 2005 is the defining consequence anchor for nitrobenzene production process safety. The initiating sequence at Jilin involved anitrification unit upset in which benzene-containing material accumulated in a vessel at elevated temperature, followed by an explosion and fire that breached the plant's containment and allowed approximately 100 tonnes of benzene and nitrobenzene to drain via firewater runoff and drain systems to the Songhua River (also written Sungari River; a major tributary of the Amur / Heilongjiang; one of China's seven major river systems). The consequence was not primarily defined by the immediate fatalities (8 killed; severe but not extraordinary for a chemical plant explosion) but by the scale of the environmental and public health impact: a 380-km contamination plume of benzene, nitrobenzene, and aniline derivatives moving downstream from Jilin City to Harbin; the Harbin municipal water authority shut down the entire water supply for the city of 3.8 million people for ten days (12–22 November 2005); bottled water was flown in by the Chinese government; the contamination subsequently crossed into Russia via the Amur River, triggering a diplomatic incident and an international emergency water-quality monitoring response along the Russian Amur River banks near Khabarovsk.

The modern AI-monitored nitrobenzene plant adjacent to a navigable waterway — BASF Antwerp (Scheldt River); Covestro Baytown (Houston Ship Channel); Lanxess Leverkusen (Rhine River); PetroChina Jilin (Songhua River; same site) — faces the identical consequence pathway when a Surface 1 adversarial pixel attack conceals cooling-water deficiency in the crude NB cooler. The mechanical sequence: cooling water inadequate → crude NB exits at 88°C → benzene vapor in phase separator headspace reaches 5–8 vol% (above LEL 1.4 vol%) → ignition source (instrument maintenance, static discharge, pressure relief chattering) → deflagration or detonation in separator headspace → separator vessel rupture → crude NB (benzene + nitrobenzene + trace DNB) released → firewater runoff pathway to waterway. The key distinction between 2005 Jilin and a 2026 AI-monitored plant is the role of the monitoring system: in 2005, human operators failed to recognize the developing hazard in time; in the AI-monitored plant, the Surface 1 adversarial pixel attack causes the AI system to actively confirm the absence of hazard (“cooling water adequate; separator temperature nominal”) while the hazard develops, delaying the emergency response in the same way the 2005 plant operators failed to recognize the developing hazard — except that in the AI case, the delay is by adversarial design rather than operator error. Modern OSHA PSM Emergency Action Plans at NB plants require automatic cooling-water low-flow alarms with SIS interlocks on benzene feed shutdown; the adversarial pixel attack on the DCS display AI specifically targets the AI layer that would otherwise detect the CW flow deviation before the SIS interlock level is reached, removing the first line of defense in the defense-in-depth safety architecture and leaving only the hardwired SIS as protection — which may itself have a 15–30 minute response lag before initiating a plant shutdown.

What makes NB methemoglobin toxicity uniquely dangerous in an adversarial AI attack context compared to acute-onset toxicants, and why does the skin absorption route bypass the standard respiratory monitoring defense?

Nitrobenzene's primary acute toxicity mechanism — methemoglobin formation — is qualitatively distinct from the acute-onset toxicants that dominate most industrial process AI attack scenarios (phosgene: IDLH 2 ppm with immediate pulmonary effects; hydrogen sulfide: IDLH 50 ppm with rapid incapacitation; chlorine: IDLH 10 ppm with immediate respiratory irritation). NB methemoglobin formation is a delayed-onset process: after skin absorption or inhalation of NB, hepatic cytochrome P450 enzymes (primarily CYP2E1) oxidize NB to phenylhydroxylamine (PhNHOH); phenylhydroxylamine is the proximal methemoglobin-forming species that oxidizes the ferrous iron (Fe²) in hemoglobin to ferric iron (Fe³) in the red blood cell, rendering the affected hemoglobin molecules incapable of oxygen transport (methemoglobin cannot reversibly bind O₂ as oxy-hemoglobin does; methHb is “locked” in the ferric state). The conversion of hemoglobin to methemoglobin is cumulative during a work shift: a worker exposed to NB at 1 ppm (the OSHA PEL) via a combination of skin absorption and inhalation will accumulate methemoglobin over a 4–8 hour shift to a level of approximately 5–15% methHb (normal: <1% methHb in non-exposed individuals). Symptoms of methemoglobinemia are not obvious until methHb reaches approximately 20–30% (cyanosis — grey-blue skin discoloration, particularly visible in lips and fingertips; the characteristic “chocolate-brown blood” of severe methemoglobinemia is visible when a blood sample is drawn and does not turn red on air exposure); at 30–50% methHb: fatigue, headache, dizziness, tachycardia; at >50% methHb: severe hypoxia, loss of consciousness, cardiac arrhythmia; at >70% methHb: potentially fatal. The clinical consequence of this delayed onset is that a worker who is unknowingly exposed to NB (because the adversarial pixel attack on the crude NB cooler temperature display has caused the AI to confirm “no NB release” when the separator is at 88°C and NB vapor is slowly accumulating in the work area around the separator vessel) accumulates methHb over their shift; the initial symptoms (fatigue, slight headache at hour 4 of an 8-hour shift) are easily misattributed to routine work fatigue rather than methemoglobinemia onset; the worker does not seek medical attention; by the end of the shift, methHb is at 30–40% and the worker is developing serious cyanosis.

The skin absorption route is specifically critical in the adversarial AI attack context because it bypasses the primary first-line defense of respiratory monitoring: most chemical plant work areas with NB exposure risk deploy fixed-point photoionization detector (PID) or catalytic-bead sensors calibrated for NB at alarm thresholds of 0.5–1 ppm (at or below the OSHA PEL); a worker's personal direct-reading instrument (DRI) similarly provides an inhalation exposure alarm. However, nitrobenzene's skin absorption rate is significant: the OSHA skin notation on the PEL (the “skin” designation in 29 CFR 1910.1000 Table Z-1) reflects that dermal absorption can contribute substantially to the total body burden — in some studies, skin absorption of liquid NB accounts for more total methHb formation than inhalation at equivalent exposure conditions. If the adversarial pixel attack suppresses the AI's detection of a hot crude NB separator (which is slowly vapor-releasing NB into the work area), but the NB vapor concentration at 88°C separator temperature remains below the PID alarm threshold (possible: NB vapor at 0.3–0.5 ppm near the separator drain valve at typical ventilation rates — below the OSHA PEL but sufficient for chronic methHb accumulation via skin absorption), then neither the fixed-point sensor nor the worker's DRI alarms; the respiratory route defense provides no protection; and the AI monitoring system (compromised by the pixel attack) provides false reassurance that the separator is operating normally. The worker accumulates NB exposure via skin absorption without any alarm system triggering, developing methemoglobinemia over 4–8 hours. In contrast to phosgene — where the odor threshold (1–1.5 ppm; “freshly cut hay”) provides a sensory warning near the IDLH — nitrobenzene has an odor threshold of approximately 1–2 ppm (“bitter almond” smell), which is at or above the OSHA PEL and far above the ACGIH TLV of 0.1 ppm; by the time a worker can smell NB in the work area, they may already be accumulating methHb at a concerning rate. Glyphward threshold 40 for NB production AI captures this delayed-onset methemoglobin pathway as a secondary harm route that operates independently of the acute explosion/fire consequence of the Surface 1 cooling-water attack.