Live data from Hacker News

Creating a bespoke data diode for air‑gapped networks

nelop.com

41–50 of 86 posts

Re: Creating a bespoke data diode for air‑gapped networks

#41

Those wires are certainly long enough to be antennas.

This is a real vector - I had this happen in undergrad EE where my serial line to my microcontroller had a bunch of legible garbage on it. Turns out my MacBook charger was also using serial to talk to the laptop, with enough power to radiate to the otherwise isolated microcontroller serial line.

Re: Creating a bespoke data diode for air‑gapped networks

#42

A "diode" is not an air gap. If there is any flow in either direction, you don't have an air gap. This isn't hard to understand.

yes, but if your adversary is capable of exploiting a one-way diode to RCE, you might as well just give up.

Prepare to give up I'd say[1][2].

[1]: https://arxiv.org/abs/1503.07919

[2]: https://arxiv.org/abs/2012.06884

Re: Creating a bespoke data diode for air‑gapped networks

#43
> An opto coupler, also known as an opto isolator, allows an electrical signal to pass from one device to another using light, preventing direct electrical connection. *This ensures data flows in a single direction, maintaining the integrity of the air gap.*

I would like to know how they come to such a conclusion as this is either a misunderstanding or an AI solution. The opto isolator does not maintain the air gap. It only provides galvanic isolation which is likely unnecessary in this situation.

Galvanic isolation is useful in situations where you want to isolate circuits from electrical potential issues (ground loops and so on) or isolation from noise and faults.

Re: Creating a bespoke data diode for air‑gapped networks

#44

> An opto coupler, also known as an opto isolator, allows an electrical signal to pass from one device to another using light, preventing direct electrical connection. *This ensures data flows in a single direction, maintaining the integrity of the air gap.* I would like to know how they come to such a conclusion as this is either a misunderstanding or an AI solution. The opto isolator does not maintain the air gap.…

I think they only care about preventing data flow in one direction while still allowing it in the other. This isn't strictly an air gap, but it fits their use of the term "data diode". The fact that the unidirectional flow of information is achieved through galvanic isolation is probably just a side effect. In the ideal case, no information can flow from the photosensitive element to the LED. A determined attacker could probably exploit lots of side channels here, though.

Re: Creating a bespoke data diode for air‑gapped networks

#45

A "diode" is not an air gap. If there is any flow in either direction, you don't have an air gap. This isn't hard to understand.

I don’t see what diving into pointless semantics adds to the discussion here.

Good thing it's only important semantics that are being dived into then

Re: Creating a bespoke data diode for air‑gapped networks

#46
I feel like it's easier to just have Ethernet and a strict HW firewall with the admin interfaces totally disabled (have to full reset to get back in).

You can either just block packets in one direction, or you can add a small amount of risk and allow UDP and TCP with zero payload in one direction. That would allow you to reliably stream in one direction and request from either direction, albeit with a slightly exploitable channel (timing, reliability or the space of values allowed in the protocol).

You already have to trust the RPI hardware to not enable WiFi on either side, so why not trust a router?

Re: Creating a bespoke data diode for air‑gapped networks

#47

Why not use optical ethernet as ‘real’ cross domain solutions do? Probably cheaper if you don’t mind eBay, and gives you an easy upgrade path to 10Gbps or more in future. Two port NIC on the low side. Port 2 has its TX side connected to Port 1’s RX, just so the port will see a carrier and show link up. Port 1 TX goes to the high side machine’s RX, with TX left open. From here, you have a whole ton of protocol options…

That's kind of brilliant. I had no idea that kind of thing would actually work. I always assumed that bidirectional connections were needed to allow ETH frames to function, electrically. I further assumed this applied to optical networking too.

Re: Creating a bespoke data diode for air‑gapped networks

#48

Could've used a speaker and microphone with an appropriate noise-resistant digital encoding.

That has to be abysmal bandwidth, right? How much data can you practically transfer that way?

Shannon-Hartley says the theoretical maximum data rate for a channel with AWGN is proportional to bandwidth and the log of signal-to-noise ratio. For an off-the-shelf microphone/speaker pair, I think 16 kHz and 80 dB are probably decent guesses. That would give a theoretical maximum data rate of about 425 kb/s. The practical limit is probably much lower.

It may be possible to increase the bandwidth by increasing the sample rate on both ends, but this quickly leaves the realm of consumer audio equipment (and consumer pricing). At some point you'd exceed the reasonable frequency responses for each device, as well as the medium. I imagine that air attenuates ultrasonic frequencies more than lower ones, but that's just a guess.

Re: Creating a bespoke data diode for air‑gapped networks

#49
post #32

Earlier quoted context omitted.

All speakers can act as microphones. But due to physics you'd have a much harder time turning a photodiode into a light emitting one (the physics means you only can get IR out and the LED can't receive anything that way).

> the physics means you only can get IR out and the LED can't receive anything that way Gut feeling tells me there is a way, if you use way more power than normal for this :). Much like with making speakers receive sound (you need to amplify the received signal afterwards) and making microphones produce it. But it doesn't really matter whether or not you can reverse the analog signal flow, if the digital side treats…

If the digital side could be trusted we'd just set it to send only mode and be sure it'll behave - in reality we don't trust it.

The threat model where you use a data diode presumes an adversary might totally compromise the sending side - the guarantee you're trying to add is that whatever malware they push down the line has no ability to exfiltrate data regardless of how compromised it is.

Re: Creating a bespoke data diode for air‑gapped networks

#50

> An opto coupler, also known as an opto isolator, allows an electrical signal to pass from one device to another using light, preventing direct electrical connection. *This ensures data flows in a single direction, maintaining the integrity of the air gap.* I would like to know how they come to such a conclusion as this is either a misunderstanding or an AI solution. The opto isolator does not maintain the air gap.…

A single optoisolator will certainly enforce one-way airgap. Two optoisolators are required for tx and rx.
Post reply on HN