Bot TutorialsGrok BotChatGPTClaudeGeminiCopilotPerplexityMore botsGuidesArticlesPapersIndustrialSearch

Sneakernet updates for air-gapped AI: hash, sign, scan, log

An air gap is only as good as the process for crossing it. Every model, patch and script that goes in, and every report that comes out, follows the same steps.

1. Dedicated, labeled media

Use media that only ever moves between the staging machine and the sneakernet station. Prefer write-protect switches for inbound media. Never plug personal USB sticks into control-network machines.

2. Hash and sign on the connected side

Hashes catch corruption; signatures catch tampering. Sign with a key that lives on the staging side.

sha256sum * > SHA256SUMS
gpg --armor --detach-sign SHA256SUMS      # creates SHA256SUMS.asc

3. Scan at the station

The sneakernet station is a separate Linux machine that mounts media read-only, scans it, and copies only the approved files.

sudo mount -o ro,noexec,nosuid,nodev /dev/sdX1 /mnt/in
clamscan -r --infected /mnt/in      # use signatures updated via this same process
gpg --verify /mnt/in/SHA256SUMS.asc /mnt/in/SHA256SUMS
cd /mnt/in && sha256sum -c SHA256SUMS

Import the staging public key once, in person, and record its fingerprint. Some sites also require a second, different scanning engine.

4. Log the crossing

Append one line per transfer: date, person, media ID, file names, hashes, purpose, approver. This feeds your audit log.

printf '%s\t%s\t%s\t%s\n' "$(date -Is)" "$USER" "MEDIA-07" "$(sha256sum SHA256SUMS)" \
 | sudo tee -a /var/log/sneakernet.log

5. Outbound is reviewed too

Bot-written reports leaving the zone are reviewed by a person for process secrets before export. Prefer plain text or PDF; never carry out raw historian exports unless approved.

6. Consider a data diode

If data must leave the control network continuously (historian replication), a hardware one-way gateway enforces direction physically. The bot sits on the receiving side.

Questions

Is a hash enough?

A hash proves the file did not change in transit, not who made it. Pair it with a signature you verify against a key fingerprint recorded in person.

Should the bot box mount USB directly?

No. Only the sneakernet station handles removable media; the bot box receives files from it.

Where these facts come from

Checked Oct 29, 2026. Tutorials are educational. Follow your site's safety procedures, management-of-change process and the equipment maker's manual. Never test against live production equipment without authorization.

Industrial control with bots: all lessons → Next: 4. Read Modbus TCP data with a bot (read-only) →

Related: 1. Ground rules: what a bot may and may not do in OT2. Run a local LLM on an air-gapped Linux box3. Sneakernet: move models and updates across the gap safely4. Read Modbus TCP data with a bot (read-only)5. Read OPC UA tags securely with a bot6. Bot-written shift reports and alarm summaries7. Audit logs that a bot cannot rewrite8. Human-in-the-loop: approval gates before anything movesCan AI control a PLC?Run AI offline on LinuxGuidesScripts & templates