News for hackers. Stuff that matters.
Re:US passes emergency waiver over fuel pipeline cyber-attack by mbreese on Sunday May 09, 2021 @10:03PM (#27101923)
I’m curious — how would something like a data-diode work in real life? It makes sense, but what about something like TCP where the sending side needs the ability to receive ACK messages? Is a firewall (dedicated, if need be) enough?

Or would this be some other kind of physical interface that took some kind of read-only data (serial?) and sent it up the layers using TCP/IP, where only this box would be at risk?

Edit: looks like you answered part of this below — you suggest switching to UDP protocols.

Re:US passes emergency waiver over fuel pipeline cyber-attack by rckoepke on Sunday May 09, 2021 @10:12PM (#27101978)
TCP would not be possible if your physical layer doesn't support two-way communication. I think UDP would.

Firewalls are currently used, and probably generally configured well. Petrochemical companies have a many-layered onion security strategy with minimal communication paths through the firewalls. Generally you might have 4-8 layers of firewalls from public facing internet to the PLC/DCS/SCADA. Administrative people might VPN 1-2 layers deep and engineers would at worst get remote access to the historian, 1-2 firewall layers above the PLC/DCS/SCADA.

It's my professional opinion that firewalls are not good enough for critical infrastructure. Even a completely air-gapped system was hacked thoroughly over a decade ago in Iran (See Stuxnet).

Your suggestion would suffice, if that box ("gateway", in the IoT parlance) was connected with a one way physical connection to the SCADA system over serial or what-have-you. Then it could communicate with TCP using existing application stacks.

I am designing a system like this at my current job, where luckily we are a small enough team so people have genuinely listened to my suggestions about this.

However, good engineers often disagree with me. I may be overly zealous on this particular issue and I take a lot of criticism about how dogmatic I am at times. I'm not a senior engineer by any stretch.

Re:US passes emergency waiver over fuel pipeline cyber-attack by KirillPanov on Monday May 10, 2021 @05:41AM (#27104285)
> I’m curious — how would something like a data-diode work in real life?

Low, fixed-bitrate transfer over unidirectional fiber optics. Unidirectional transcievers are the norm for long-haul fiber.

My local electrical utility is still running 11.52kbps RS-232 over fiber for exactly this reason. At those bitrates you don't need backpressure -- your disk will never fill up and if the CPU can't handle that bitrate you already have much larger problems.

It's kind of funny that they have sheaths where one strand is running this piddly dozen-kilobit protocol and other strands in the same sheath are doing 10gbit/sec * 16-channel CWDM.

Most electrical utilities are into fiber optics in a very big way; they already (usually) own the poles and unlike copper it's nonconductive. Many of them have vastly more strands of fiber between substations than they need.

Re:US passes emergency waiver over fuel pipeline cyber-attack by mike_d on Monday May 10, 2021 @01:37AM (#27103052)
> how would something like a data-diode work in real life?

The ones I have worked with convert a TCP stream to UDP, send it across the diode, and then convert it back to TCP. Each UDP packet has a sequence number and there is a single reverse-diode that is fired when a packet is missed or arrives out of order that triggers a retransmission of the last N packets.

Re:US passes emergency waiver over fuel pipeline cyber-attack by lathiat on Sunday May 09, 2021 @10:17PM (#27102008)
I have heard some plane infotainment systems use a 1-way optical link to solve this problem to get the speed/altitude/etc to the displays. It just receives the data as a downlink (no 2-way communications) and being optical its electrically isolated as well as impossible to transmit or even interfere the other way.
Re:US passes emergency waiver over fuel pipeline cyber-attack by DyslexicAtheist on Monday May 10, 2021 @03:47AM (#27103665)
That was FUD[1] spread by Chris Roberts who has been called out for it. He claimed he was able to issue climb commands from the IFE to the CAN bus.

Apart from this being technologically impossible, if he would have really done it he would have been charged for endangering an aircraft and prosecuted. (So the only explanation why he isn't in prison is that it didn't happen). The technical reason is Data diodes are common in aviation to separate IFE and CAN bus or position data. (e.g in the ARINC)

[1] https://www.pentestpartners.com/security-blog/a-pen-testers-...

Re:US passes emergency waiver over fuel pipeline cyber-attack by TedDoesntTalk on Sunday May 09, 2021 @11:03PM (#27102270)
If you don’t allow 2-way comms to SCADA devices, how can you set values on those devices. For example, open valve 9881 to 10% … how would that be done?

SCADA devices are not read-only.

Re:US passes emergency waiver over fuel pipeline cyber-attack by rckoepke on Sunday May 09, 2021 @11:27PM (#27102404)
That functionality would be local, before the one-way isolator. A human at a terminal located near the valve could still press a button to make that happen. That system could even be running windows (most are!).

But a hacker wouldn't be able to use their access to the Timeseries database for supply chain and logistics, to pivot to the SCADA system because their attempts would be blocked by a lack of a physical layer connection in that direction.

It would significantly reduce the attack surface of the OT systems.

Re:US passes emergency waiver over fuel pipeline cyber-attack by mbreese on Sunday May 09, 2021 @11:21PM (#27102370)
I think the original use-case was delivering data for use in dashboards or other business systems, not the SCADA network in general (where you’d want write access). So, places where you might want to get read-only data from a secured system, but not allow write access. These business/reporting systems might be internet connected, hence the desire for better isolation.
Re:US passes emergency waiver over fuel pipeline cyber-attack by watersb on Sunday May 09, 2021 @11:21PM (#27102369)
You don't let remote systems open valve 9881.

That would be like deploying the landing gear of the airliner, because someone triggered a bug while changing the channel on the in-flight entertainment system.

Re:US passes emergency waiver over fuel pipeline cyber-attack by PeterisP on Monday May 10, 2021 @06:22AM (#27104454)
The whole point of SCADA systems is that you can open and close valves remotely, without requiring to drive hundreds of miles along the pipeline to wherever the particular valve is located.
Re:US passes emergency waiver over fuel pipeline cyber-attack by aginter on Monday May 17, 2021 @06:06PM (#27189003)
Industrial applications use unidirectional gateways (See NIST 800-82r2). The gateways have diode-like hardware at their core, but add software. The software acquires snapshots of industrial state, converts those snapshots to proprietary unidirectional protocols & formats, and on the external enterprise network makes the data available to enterprise users.

A common example is a SQLServer database of all industrial data that is authorized to share with the enterprise. Grab new and changed data as it arrives on the industrial side. Push unidirectionally to the enterprise side. Insert/update the data in an identical SQLServer. Enterprise users & applications interact normally and bi-directionally with the replica database.

The technology is used routinely to provide access to industrial data that enables business efficiencies, without providing access to the industrial systems that produce the data.

For more info see: https://waterfall-security.com

Re:US passes emergency waiver over fuel pipeline cyber-attack by brians on Sunday May 09, 2021 @11:03PM (#27102264)
That can work. Or you can have A use TCP to B, C use TCP to D, and B and C are connected by a very short one-way cable, maybe something optical.

The US government term of art for this pattern is a “guard”, often with a regex or manual filter.

Re:US passes emergency waiver over fuel pipeline cyber-attack by mikewarot on Tuesday May 11, 2021 @11:40AM (#27119448)
A data diode doesn't have to be just a one way ethernet port, it can include a pair of dedicated servers.

The inside (isolated) server would poll everything, store it into a buffer, and send that buffer (plus error correction) out through an optoisolator to other server.

The outside (internet facing) server would then keep up with the ring buffer, and serve requests, and do any outbound push of data via any protocol required.

A system to do this could be made with a pair of raspberry pi computers and a little bit of discrete components for less than $150 in hardware costs.

Re:US passes emergency waiver over fuel pipeline cyber-attack by ShroudedNight on Monday May 10, 2021 @01:15AM (#27102949)
> how would something like a data-diode work in real life?

A webcam? Second hand, but that's what I was told a dam operator was using as a "grass-roots" solution a while back

Re:US passes emergency waiver over fuel pipeline cyber-attack by enchiridion on Tuesday May 11, 2021 @11:35AM (#27119380)
Not sure, but seems like literal diodes on the data line would work? Probably packaged to make it plug and play.