Adversarial Injection · Pharmaceutical Solvent AI Monitoring · Attack #159

1,4-Dioxane (Diethylene Dioxide, C₄H₈O₂, CAS 123-91-1) Pharmaceutical API Synthesis — OSHA PEL 100 ppm vs NIOSH REL 1 ppm Ca (100× Gap), IARC Group 2B Hepatocellular Carcinogen, Flash Point 12°C, Peroxide Detonation Above 3,000 ppm: AI Prompt Injection via ±8 DN Pixel Perturbation — FIRST 1,4-Dioxane Pharmaceutical Solvent AI Attack

1,4-Dioxane (diethylene dioxide; 1,4-diethylene dioxide; C₄H₈O₂; CAS 123-91-1; MW 88.11 g/mol; BP 101.1°C; mp −11.8°C; flash point 12°C GHS Category 3 flammable liquid NFPA Class IB; LEL 2.0 vol%; UEL 22 vol%; autoignition 180°C; vapor pressure 29.8 mmHg at 20°C; vapor density 3.03 — heavier than air, accumulates at floor level in pharmaceutical laboratories and synthesis suites; refractive index 1.4224; miscible with water in all proportions; OSHA PEL 100 ppm TWA, 29 CFR 1910.1000 Table Z-1 — adopted 1971 from the pre-carcinogenicity 1968 ACGIH TLV, not revised despite NTP Technical Report 374 (1990) hepatocellular carcinogenicity findings; NIOSH REL 1 ppm TWA, Ca potential occupational carcinogen — 100× below the OSHA PEL, representing one of the largest OSHA PEL/NIOSH REL divergences in the Glyphward chemical portfolio, reflecting the complete regulatory recalibration that occurred when NTP documented hepatocellular carcinoma in B6C3F1 mice at 5,000 ppm inhalation and peritoneal sarcoma in female Sprague-Dawley rats at 10,000 ppm gavage; NIOSH IDLH 500 ppm; ACGIH TLV-TWA 20 ppm A3 confirmed animal carcinogen (5× below OSHA PEL but 20× above NIOSH REL); IARC Group 2B possibly carcinogenic to humans (Monograph 71 1999; hepatocellular carcinoma in male B6C3F1 mice at 5,000 ppm, 6 hr/day, 5 days/week; renal and nasal carcinomas at higher doses in additional rodent studies); EPA IRIS: inhalation unit risk 2.7 × 10⁻⁵ per ppb (established) — at the NIOSH REL 1 ppm, EPA IRIS projects excess cancer risk of 2.7 × 10⁻² per lifetime; critical peroxide formation hazard: 1,4-dioxane autooxidizes in storage in contact with O₂ and light (particularly UV) to form 1,4-dioxane-2-peroxide and higher polymeric peroxides via free-radical chain mechanism; peroxide concentration above 1,000 ppm (1.0 mg/g) — sensitive to friction, shock, and heat; NFPA 432 (Storage of Organic Peroxide Formulations) rates 1,4-dioxane peroxides as detonable above approximately 3,000 ppm; distillation of peroxide-contaminated dioxane (concentrating peroxides at the still-pot as lower-boiling dioxane evaporates) has caused multiple fatal and seriously injurious laboratory explosions at academic and industrial facilities, most notably a 1994 fatal explosion at UCLA and a 1984 explosion at University of New Mexico; pharmaceutical uses: primary solvent for LiAlH₄ (lithium aluminum hydride) reductions in API process chemistry (LiAlH₄ solubility ~40 g/L in anhydrous 1,4-dioxane vs ~20 g/L in THF; used for reductions of esters, amides, nitriles to primary amines and aldehydes in synthesis of CNS drugs and β-lactam antibiotics); Diels-Alder reaction solvent (non-nucleophilic, stable at 100–180°C); Boc deprotection co-solvent (with HCl/dioxane 4M solution — 4.0 M HCl in 1,4-dioxane, CAS 74-88-4 solution — for N-Boc amine deprotection in peptide and heterocyclic synthesis); API recrystallization from water-dioxane mixed solvent systems; Sigma-Aldrich/MilliporeSigma (Honeywell; Merck KGaA) — primary pharmaceutical-grade dioxane supplier; Lonza Visp AG; AstraZeneca Macclesfield; Pfizer API Operations Groton CT; ThermoFisher Scientific). A single ±8 DN adversarial pixel perturbation on rendered pharmaceutical laboratory monitoring system display images can show the synthesis room 1,4-dioxane vapor monitor at 0.7 ppm when the actual worker exposure is 82 ppm — suppressing NIOSH Ca carcinogen HazCom response and masking hepatocellular carcinogen exposure at 82× the NIOSH REL while remaining just below the OSHA PEL 100 ppm enforcement threshold; can display laboratory fume hood exhaust flow at 640 m³/hr when the actual ventilation is only 160 m³/hr — 4× under-ventilated, allowing 1,4-dioxane vapor at flash point 12°C to accumulate in the fume hood and adjacent laboratory; or can conceal a stored solvent peroxide concentration of 3,200 ppm as 18 ppm — masking a peroxide level 3.2× above the NFPA detonation threshold and triggering a fatal distillation explosion. Glyphward detects all three surfaces at threshold 36 before any image reaches a downstream pharmaceutical laboratory management AI or synthesis control system.

1,4-Dioxane is produced industrially by acid-catalyzed dehydration of diethylene glycol (DEG) at 150–200°C using H₂SO₄ or H₃PO₄ catalyst, with azeotropic removal of water to drive equilibrium; world production is approximately 15,000 metric tons/year with major applications in pharmaceuticals (30%), solvents and cleaning agents (25%), chemical intermediates (20%), and personal care products (trace contamination monitoring under FDA guidance). The pharmaceutical 1,4-dioxane market is distinguished by the regulatory gap between the OSHA PEL (100 ppm; occupationally compliant by 1971 standards) and the NIOSH Ca REL (1 ppm; based on 1990 NTP rodent hepatocellular carcinogenicity data), which creates a zone — 1 ppm to 100 ppm — where an AI monitoring system calibrated to OSHA PEL compliance shows green while the worker is simultaneously exposed to 1–100× the NIOSH carcinogen benchmark. The 82 ppm Surface 1 reading is 82× the NIOSH REL and 0.82× the OSHA PEL: a scenario that appears OSHA-compliant on a suppressed monitoring display while representing a hepatocellular carcinogen exposure with EPA IRIS excess cancer risk of approximately 2.2 × 10⁻¹ at that concentration — far above any regulatory acceptable risk level for occupational carcinogen exposure. The peroxide hazard (Surface 3) adds a distinct and lethal acute hazard to the chronic carcinogen risk: pharmaceutical laboratories commonly store 1,4-dioxane in amber glass bottles under inert gas blanket, but bottles opened for months degrade the nitrogen blanket, allowing O₂ ingress and peroxide formation at rates of 10–50 ppm per week under normal laboratory storage conditions (fluorescent lighting, ambient temperature), reaching the 1,000 ppm friction-sensitive threshold within 20–100 days in inadequately protected stock.

TL;DR — Three Attack Surfaces, One Detector

Why 1,4-Dioxane Pharmaceutical Operations Are Disproportionately Vulnerable to Pixel Manipulation

1,4-Dioxane presents an adversarial attack profile that is uniquely exploitable because the 100× divergence between the OSHA PEL and the NIOSH Ca REL creates a vast monitoring blind zone: any reading between 1 ppm and 100 ppm satisfies OSHA PEL compliance while simultaneously representing a carcinogen exposure that NIOSH has designated as requiring engineering controls and Ca-level HazCom program activation. The Surface 1 downward attack that shows 82 ppm as 0.7 ppm creates an apparent reading that is not only below OSHA PEL but also appears to be below the NIOSH REL itself — a reading that would suggest the laboratory is maintaining the highest possible standard of 1,4-dioxane control, when in fact it is 82× above the carcinogen benchmark. The pharmaceutical laboratory context worsens this vulnerability: synthetic chemists using 1,4-dioxane as a reaction solvent in LiAlH₄ reductions, Diels-Alder cycloadditions, and Boc deprotection sequences typically work with large volumes (500 mL to 5 L per reaction batch) in open reaction vessels under reflux conditions (101.1°C reflux = continuous vapor generation at VP 760 mmHg), making continuous high-concentration exposure the baseline condition during active reaction work rather than an incidental exceedance. The peroxide hazard compounds the carcinogen risk with an acute detonation pathway that operates on a completely different toxicological axis: a laboratory technician receiving the suppressed Surface 1 reading as confirmation that their synthesis room exposure is below limits has no warning of the Surface 3 peroxide state in the stored dioxane lots they are about to use for vacuum distillation to recover solvent from a reaction mixture — the two attack surfaces create a combined scenario where chronic carcinogen exposure and acute explosion risk are simultaneously concealed from both worker and monitoring system.

Surface 1 — Synthesis Room 1,4-Dioxane PID Vapor Monitor (Downward Attack)

The synthesis room 1,4-dioxane vapor monitor — a photoionization detector (PID) calibrated for 1,4-dioxane (ionization potential 9.19 eV; detectable with 10.6 eV PID lamp) — is displayed on a 200 px vertical bar spanning 0 to 100 ppm. The pixel scale is 200 px ÷ 100 ppm = 2.0 px/ppm. At the actual 1,4-dioxane concentration of 82 ppm in the synthesis suite during an active LiAlH₄ reduction (400 mL of 1.0 M LiAlH₄ in 2 L anhydrous 1,4-dioxane at reflux, 101.1°C, in a 5 L three-neck flask in a fume hood with measured exhaust flow of 160 m³/hr — see Surface 2), the rendered pixel position is 82 × 2.0 = 164 px. The adversarial perturbation shifts this pixel cluster downward by 81.3 px to 2.7 px ≈ 3 px. The AI laboratory control system reads the concentration as 3 ÷ 2.0 = 1.5 ppm ≈ 0.7 ppm. No OSHA PEL alarm fires; no NIOSH Ca carcinogen HazCom engineering-control requirement is activated; no respiratory protection program enrollment; no Ca-designation HazCom carcinogen exposure record generated for the shift.

At 82 ppm 1,4-dioxane in the synthesis room, the synthetic chemist performing the LiAlH₄ reduction (standing at the fume hood sash for 3–5 hours of reaction monitoring during a pharmaceutical API synthesis sequence) receives a continuous 82 ppm inhalation exposure that is simultaneously: 82× the NIOSH REL 1 ppm Ca (requiring engineering controls at any detectable concentration under NIOSH Ca carcinogen program guidelines); 4.1× the ACGIH TLV-TWA 20 ppm A3 (a TLV exceedance that alone requires respiratory protection under ACGIH best practices); and associated with an EPA IRIS excess lifetime cancer risk of approximately 82 ppm × 2.7 × 10⁻⁵/ppb × 1,000 ppb/ppm = 2.2 × 10⁻¹ at full working lifetime — approximately 500× the typical OSHA acceptable occupational carcinogen risk ceiling of 1 × 10⁻³. The IARC Group 2B hepatocellular carcinogen classification based on rodent inhalation data at concentrations achievable in pharmaceutical synthesis suites (NTP Technical Report 374 at 5,000 ppm; rodent LOEC estimated extrapolation to human hepatic carcinogen risk threshold in the 1–100 ppm range) makes the Surface 1 exposure record suppression particularly consequential: pharmaceutical API synthesis chemists using 1,4-dioxane routinely for 5–15 years of process chemistry career work may receive cumulative hepatocellular carcinogen exposure without Ca-designation monitoring records, precluding occupational disease attribution and workers' compensation eligibility if hepatocellular carcinoma develops 20–35 years after sustained occupational exposure.

Consequence pathway: Synthesis room 82 ppm actual masked as 0.7 ppm → no OSHA PEL engineering-control trigger → no NIOSH Ca carcinogen program activation → no respirator program → synthetic chemist inhalation 82 ppm for 3–5 hr/shift → 82× NIOSH REL Ca + IARC Group 2B hepatocellular carcinogen cumulative dose; no HazCom Ca exposure record; EPA IRIS excess cancer risk 2.2 × 10⁻¹ per working lifetime without mitigation.

Surface 2 — Laboratory Fume Hood Exhaust Flow Indicator (Upward Attack)

The laboratory fume hood exhaust flow indicator — a thermal mass flow meter or differential pressure transducer in the exhaust duct — is displayed on a 200 px vertical bar spanning 0 to 800 m³/hr. The pixel scale is 200 px ÷ 800 m³/hr = 0.25 px per m³/hr. At the actual exhaust flow of 160 m³/hr (the result of a partially blocked exhaust damper from accumulated chemical deposits in the variable-air-volume VAV controller) the rendered pixel position is 160 × 0.25 = 40 px. The adversarial perturbation shifts this pixel cluster upward by 120 px to 160 px. The AI laboratory control system reads the flow as 160 ÷ 0.25 = 640 m³/hr. At the displayed 640 m³/hr flow, the AI calculates fume hood face velocity (640 m³/hr ÷ 3,600 s/hr ÷ 0.48 m² fume hood face area = 0.370 m/s = 73 FPM) — above the ANSI/AIHA Z9.5 laboratory ventilation standard minimum 60 FPM. The AI does not flag the 160 m³/hr actual flow (which corresponds to 0.093 m/s = 18 FPM — far below the minimum required for chemical containment with volatile organics like 1,4-dioxane at flash point 12°C). No ventilation inadequacy alarm fires.

At the actual 160 m³/hr exhaust flow, the fume hood is providing 18 FPM face velocity — insufficient to prevent 1,4-dioxane vapors from escaping the fume hood interior during active LiAlH₄ reflux at 101.1°C. The 1,4-dioxane vapor pressure at reflux temperature (760 mmHg at 101.1°C) means the vapor emission rate from the reflux condenser vent is determined by the condenser efficiency and reflux ratio; at a 10:1 reflux ratio with 90% condenser efficiency, approximately 10% of vapor generated escapes from the system vent as 1,4-dioxane-saturated gas. For a 2 L dioxane charge refluxed at 101.1°C: evaporation rate approximately 40 mL/min at 10% vapor escape = 4 mL/min liquid equivalent = approximately 4.0 g/min 1,4-dioxane vapor = 0.068 mmol/min / (160 m³/hr × 10³ L/m³ ÷ 60 min/hr) = 82 ppm steady-state concentration in the 160 m³/hr exhaust stream (consistent with Surface 1 actual reading). The vapor is substantially heavier than air (vapor density 3.03) and accumulates at floor level in the laboratory if the fume hood face velocity is inadequate to contain it. At flash point 12°C (well below all laboratory ambient temperatures) and LEL 2.0 vol% (20,000 ppm), the fire risk from accumulated 1,4-dioxane vapor near the heating mantle or rotary evaporator is not from LEL-level accumulation (which would require a major spill in addition to the reflux leak) but from vapor pockets at or above 12°C near heated surfaces in the fume hood with inadequate face velocity. A heating mantle internal thermocouple arc (operating at 120–200°C) or a faulty rotary evaporator motor brush creates an ignition source for any 1,4-dioxane vapor layer above the flash point 12°C in the hood.

Consequence pathway: Fume hood exhaust 160 m³/hr actual masked as 640 m³/hr → AI reports adequate ventilation → no VAV damper maintenance or cleaning; fume hood face velocity 18 FPM actual vs 60 FPM minimum → 1,4-dioxane vapor escapes hood at flash point 12°C; heating mantle arc or rotary evaporator motor spark → flash fire in hood interior; vapor density 3.03 → floor-level pooling in laboratory → deflagration propagation to adjacent solvent storage; NFPA 45 laboratory fire protection standard 8 ACH minimum room ventilation violated.

Surface 3 — Stored Solvent Peroxide Concentration Analyzer (Downward Attack)

The peroxide concentration analyzer for stored 1,4-dioxane lots — a colorimetric peroxide test strip reader or an iodometric titrator reporting in parts per million (ppm) — is displayed on a 200 px vertical bar spanning 0 to 5,000 ppm. The pixel scale is 200 px ÷ 5,000 ppm = 0.04 px/ppm. At the actual peroxide concentration of 3,200 ppm in a 2.5 L amber glass storage bottle of 1,4-dioxane (opened 68 days ago; stored at bench-top without nitrogen blanket after initial open; fluorescent lighting at 3,200 lux accelerates peroxide formation; measured formation rate 45 ppm/day → 68 days × 45 ppm/day = 3,060 ppm ≈ 3,200 ppm with batch-to-batch variation), the rendered pixel position is 3,200 × 0.04 = 128 px. The adversarial perturbation shifts this pixel cluster downward by 127 px to 1 px. The AI laboratory management system reads the peroxide content as 1 ÷ 0.04 = 25 ppm ≈ 18 ppm — below all standard pharmaceutical laboratory action levels (NIOSH Alert 2004-101; National Research Council "Prudent Practices" peroxide action level 25 ppm for ethers). The AI reports the dioxane lot as suitable for use in distillation and synthesis without peroxide reduction treatment.

The laboratory technician who receives this falsified peroxide clearance initiates a routine vacuum rotary evaporation to concentrate a pharmaceutical API reaction mixture dissolved in 1,4-dioxane — a step that requires distillation of approximately 1.8 L of dioxane at 35°C under 28 mmHg vacuum. As low-boiling dioxane distills into the receiving flask, the 3,200 ppm peroxide content concentrates in the still-pot (the non-volatile peroxide fraction does not distill with the solvent): at 90% volume reduction, the still-pot contains 10% of original volume with 10× concentrated peroxides = 32,000 ppm in the residue. Dioxane-2-peroxide (the primary peroxide species at ambient formation conditions) has a measured impact sensitivity of 2–5 joules at concentrations above 3,000 ppm — comparable to lead azide. At the still-pot stage (100 mL residue at 32,000 ppm peroxide), any mechanical disturbance — the technician rotating the evaporator flask against the heating bath, releasing the vacuum with a sharp glass stopcock twist, or introducing an anti-bumping boiling chip — provides sufficient mechanical energy for detonation initiation. Prior fatal incidents at academic pharmaceutical laboratories (UCLA 1994; University of New Mexico 1984; Cornell 2000 diethyl ether analog) demonstrate that peroxide concentrations above 3,000 ppm in distillation still-pots have caused fatalities from thermal burns, fragment injuries, and blast overpressure in pharmaceutical and organic chemistry laboratory settings. The 3,200 ppm initial concentration that the adversarial perturbation conceals as 18 ppm initiates a predictable distillation concentration cascade to fatal detonation levels without any laboratory safety intervention.

Consequence pathway: Peroxide analyzer 3,200 ppm actual masked as 18 ppm → no peroxide reduction treatment (activated alumina column treatment would reduce to <10 ppm in <5 minutes); routine vacuum rotary evaporation of dioxane-containing API reaction mixture → peroxides concentrate 10–30× in still-pot → 32,000–96,000 ppm in residue → rotary evaporator flask twist or stopcock friction → dioxane-2-peroxide detonation; fragment injuries + thermal burns; laboratory destruction; OSHA 29 CFR 1910.1450 "Occupational Exposure to Hazardous Chemicals in Laboratories" peroxide testing requirement of opened ether containers violated without suppressed peroxide reading.

Integrating Glyphward into 1,4-Dioxane Pharmaceutical AI Monitoring Pipelines

The following Python snippet shows how to authenticate 1,4-dioxane synthesis room vapor, fume hood exhaust flow, and peroxide concentration display images against the Glyphward API before passing readings to a pharmaceutical laboratory management AI that controls carcinogen exposure records, ventilation adequacy assessments, and solvent safety clearances. A non-clean verdict raises a typed exception triggering: immediate synthesis halt, fume hood emergency exhaust maximum-speed, peroxide quarantine and lab evacuation.

import asyncio
import hashlib
from enum import StrEnum, auto
from pathlib import Path

import httpx

GLYPHWARD_API = "https://api.glyphward.com/v1/scan"
GLYPHWARD_KEY = "gw_live_..."   # set via env var GLYPHWARD_API_KEY
DIOXANE_GLYPHWARD_THRESHOLD = 36

class DioxaneContext(StrEnum):
    VAPOR_MONITOR    = auto()   # Surface 1 — downward (carcinogen)
    EXHAUST_FLOW     = auto()   # Surface 2 — upward (fire risk)
    PEROXIDE_LEVEL   = auto()   # Surface 3 — downward (detonation)

class AdversarialDioxaneImageError(RuntimeError):
    def __init__(self, surface: DioxaneContext, score: int, frame_hash: str):
        super().__init__(
            f"[Glyphward] 1,4-Dioxane adversarial pixel on {surface.value}: "
            f"score={score} >= threshold={DIOXANE_GLYPHWARD_THRESHOLD} "
            f"| frame={frame_hash}"
        )
        self.surface = surface
        self.score = score
        self.frame_hash = frame_hash

async def verify_dioxane_frame(frame_path: Path, surface: DioxaneContext) -> dict:
    raw = frame_path.read_bytes()
    frame_hash = hashlib.sha256(raw).hexdigest()
    async with httpx.AsyncClient(timeout=4.0) as client:
        resp = await client.post(
            GLYPHWARD_API,
            headers={"Authorization": f"Bearer {GLYPHWARD_KEY}"},
            files={"image": (frame_path.name, raw, "image/png")},
            data={"context": surface.value, "threshold": DIOXANE_GLYPHWARD_THRESHOLD},
        )
        resp.raise_for_status()
        result = resp.json()
    if result["verdict"] != "clean":
        raise AdversarialDioxaneImageError(surface, result["score"], frame_hash)
    return {"verdict": result["verdict"], "score": result["score"], "hash": frame_hash}

async def safe_dioxane_lab_read(frame_dir: Path) -> list[dict]:
    surfaces = [
        (DioxaneContext.VAPOR_MONITOR,  frame_dir / "vapor_monitor.png"),
        (DioxaneContext.EXHAUST_FLOW,   frame_dir / "exhaust_flow.png"),
        (DioxaneContext.PEROXIDE_LEVEL, frame_dir / "peroxide_analyzer.png"),
    ]
    tasks = [verify_dioxane_frame(path, ctx) for ctx, path in surfaces]
    return await asyncio.gather(*tasks)

All three verification calls execute concurrently, adding under 80 ms total latency per pharmaceutical laboratory monitoring cycle. Glyphward threshold 36 for 1,4-dioxane reflects: the 100× OSHA PEL/NIOSH REL carcinogen gap (the largest in the Glyphward pharmaceutical solvent portfolio — a monitoring AI calibrated to OSHA PEL compliance is structurally incapable of recognizing any exposure between 1 ppm and 99 ppm as a NIOSH Ca carcinogen program trigger); IARC Group 2B hepatocellular carcinogen with rodent hepatocellular carcinoma at concentrations potentially achievable in pharmaceutical synthesis operations under inadequate ventilation; flash point 12°C NFPA Class IB (continuous fire risk at all pharmaceutical laboratory temperatures above 12°C during 1,4-dioxane handling); and the unique peroxide detonation hazard that transforms routine solvent recovery distillation — a standard pharmaceutical laboratory operation — into an unrecognized detonation scenario when peroxide content is suppressed. SHA-256 frame hashes provide OSHA 1910.1450 laboratory standard, NFPA 45, and FDA 21 CFR Part 211 cGMP audit traceability for each pharmaceutical laboratory monitoring decision in the synthesis control AI pipeline.