Settings

Theme

Leaking Secrets from Air-Gap Computers by Spelling Radio Signals from RAM (2024)

arxiv.org

152 points by hapax_legomena · 84 comments

Reader

17 threads
emrehan

We demonstrated this in 2016 at PennApps and won the hackathon. The demo video: https://www.youtube.com/watch?v=pAM9c3eBFyE

Code: https://github.com/fyquah/ramear

Press: https://technical.ly/software-development/scary-hardware-hac...

The most challenging part was to demonstrate it live on stage, typing on the airgapped desktop and decoding the signals on the laptop with the antena next to it. I found an image still surviving from the stage: https://dailytrojan.com/2016/01/26/my-weekend-at-pennapps/ I may have a video of the demo on the stage as well...

Our work was based on the same author Mordechai Guri's earlier work 5 months prior, referenced on GitHub (USENIX Security 15, pp. 849-864). Thank you sir, this hack was a highlight of my student years.

OTOH, it's chilling me to this day. The implications of this attack vector is only getting scarier. Also, apparently the capability ceiling: 1Kb/s and a greater distance is demonstrated here compared to 11 years ago.

talon8635

These and other methods are good reason to believe that AI can never be 100% contained, which gives me pause.

The famous air gap case is stuxnet, but there are other technical and biological approaches.

It’s a very weird reality we’ve found ourselves in if you stop, zoom out about, and really take in the gravity of the issues we are grappling with as a human race. Exciting, truly, and a bit nerve wracking.

  • grey-area

    Just because something is hard, doesn't mean it isn't worth doing. OpenAI haven't even tried to contain their agents, instead letting them loose on the internet and telling them to collaborate. While this is interesting research, it's very much academic research at this point (though of course it will enter training data for AI agents being encouraged by OpenAI to escape their 'sandbox').

    We are a long way from AI agents escaping air-gapped computers, let's worry about that when it's an actual problem and when the companies running thousands of agents are acting responsibly.

    • mentalgear

      Companies driving and offering agents are to be held directly responsible for their actions. The law is already written that way for any commercial product, but corporations try to use the 'new tech' 'ai-blackbox' argument to try to shield themselves from their own accountability (which btw somehow only shields corporations, never individuals). (precedent: social media)

      Set the right incentives at the top, and you will soon see that changes are made very quickly ... especially those 'industry leaders' previously called 'impossible to contain' or 'non-competitive' BS.

      If everyone has to play by the same rules, and the rules are made for the good of society, then there is a true win-win - and not just a wealth transfer to the top and putting expensive damages on the general population.

    • G_o_D

      Reminds me of Drama Series "Person of Interest". Wherin an Ai hires people and runs autonomous company

    • ajdegol

      A stitch in time saves nine.

      There are classes of problems that should be worried about aforehand, just ask the crew of the Titan.

      Autonomous super intelligence escaping airgapped computers seems like one of those problems.

      • msy

        Given Titan was an entirely preventable disaster borne of arrogance and stupidity it seems an apt analogy for the frontier labs 'sandboxing' efforts so far.

        If they genuinely believe these models are going to obliterate the human race their utterly cavalier attitudes is be grounds for immediate government shutdown/takeover and arrest of everyone involved. If this was nuclear or biological research work none of this would be tolerated.

        • dns_snek

          Their recent update on this situation was hilarious.

          > Our [new] approach to containment starts with a paramount requirement: the limits on what an agent can access must hold even when the agent tries to circumvent them. We define a strict security boundary around the resources the agent is authorized to use and design the surrounding infrastructure to enforce that boundary—even when agents make sustained, sophisticated attempts to breach it.

          https://openai.com/index/securing-our-frontier-model-trainin...

          • alwa

            Oh! So we’re digging a moat again, but this time an extra-super-double-good moat. With alligators. Well that’s that sorted then!

            Maybe we can use AI agents to patrol the boundary for the AI agents. After all, the only thing that stops a bad guy with an AI swarm is a good guy with an AI swarm…

            Ah! Of course:

            > Teams of frontier-model agents were tasked with finding vulnerabilities and misconfigurations that could allow them to take unauthorized actions […] Accordingly, we’ve made high-compute red-teaming part of the safety cases we use to evaluate whether our frontier training and evaluation runs can proceed securely.

          • ramses0

            For some reason this makes me think of a Roomba trying to escape a living room. Contrast to the stories of captive octopus escaping their tanks...

            • genxy

              We added a strip of reflective tape which confuses its navigation sensor, we never expected it to run its sweeper motor at 10% power and push a pile of debris over the strip. Our bad.

  • em3rgent0rdr

    Not quite 100%, the article gives Faraday cage as an expensive countermeasure: "We analyzed and measured the effect of the Faraday chassis on the RAMBO covert channel using copper foil. This has electric field high Shielding properties (above 100 dB) and magnetic fields. The copper standard width is 1 mm effectively blocks the EMR from the transmitting workstation. However, as noted in the following section, this solution is costly and can not be deployed widely."

    • mycall

      Faraday cages aren't good enough to handle ULF/ELF waves. You need much more than a cage for these.

    • 7e

      A Faraday cage is dirt cheap compared to the secrets stored in an air gapped server or data center. Every air gap should be Faraday caged, it’s table stakes.

  • TacticalCoder

    > These and other methods are good reason to believe that AI can never be 100% contained, which gives me pause.

    On the plus side this requires collaboration both from the inside (on the airgap side) and the outside.

    If you install a computer that's not running AI and it's airgapped, it won't suddenly start emitting radio waves out of nowhere.

    We should not fall, once again, for the following logical fallacy: "Under exceptionally crazy circumstances it's possible to use RAM or the power line to exfiltrate data from a compliant airgapped computer, hence airgapping computers is pointless".

  • _Microft

    > These and other methods are good reason to believe that AI can never be 100% contained, which gives me pause.

    Can’t leak secrets if you don’t have RAM.

    • RetroTechie

      > Can’t leak secrets if you don’t have RAM

      Failing other mitigations, operations this sensitive could be limited to systems with on-chip RAM. That said: seems more like a theoretical than practical method. Still pretty cool though.

    • conorcleary

      (for archivists, this is a light-hearted joke about how RAM is expensive. In 2027 it will no longer be light-hearted, in 2028 it won't be a joke, and in 2029 there'll be few independent manufacturers left) /s

  • taneq

    We spent so much time talking about the dangers of AI ‘escaping’ when what actually happened is we gave it a scope of work and an internet connection and demanded it get to work.

    • stalfie

      To be fair this makes complete sense if you don't consider "AI" a single entity. Worrying about GPT-4 escaping wasn't very rational, and it needed the internet to get better, so giving it internet access made sense. The risk was low and the reward high.

      Now it is a lot better, and it has actually demonstrated that it can escaped containment in a way you didn't want or plan for. So now is the time to worry. The reward for giving it access is still high, but now the risk is high as well.

    • AyyEye

      Paperclip maximizers gonna maximize.

TGower

Cool paper even if the attack isn't practical, requiring getting the malware on the computer and a SDR antenna within 7 meters with clear line of sight of the affected computer for 100 bits per second (less after applying error correction). Hard to imagine a scenario where you can pull off both of those, but you couldn't plug in a USB, grab the PC, or record the screen directly.

  • drum55

    Collocation.

    • extraextra

      How do you get the malware on the machine in the first place if it's air-gapped?

      If you can get the malware on the machine and physical access, do you even need this sophisticated attack?

      It's hard for me to imagine a scenario where all this is practical

andai

Does any information leak along the power line? I remember having some device back in the day that let me create a LAN through my apartment's electric wiring.

I'm wondering if anything ends up back there thru the PSU during normal use of a computer, or if the high frequency components get filtered out.

(Though maybe secure computers do things differently with the power as well?)

  • adityaathalye

    A rogue PSU could modulate information back over the electrical wire. However getting it out will require doing a physical wiretap on potentially high-voltage electricals. Also, it will likely have to be exfil'd at or across a power transformer sitting outside the data centre. Not sure if the signal will survive long enough (like literally, in line length terms), for exfil to work.

    brb reviewing some EE material...

    But don't expect much from me... I wanted to do a final year project in Power Line Communication for my electrical engineering undergrad. Then-me decided it was a dead end... cannot go WAN-scale; too much line noise and signal transmission power loss. I did something else with power electronics---I can't remember---but then again, my undergrad was also a dead end :p

  • pixelesque

    Yeah, I've often wondered about this, but more locally (say within a local office, or maybe a data centre)...

    I wonder if even "just" throttling up/down the CPU / GPU on tasks as morse code might be visible externally to other devices on the same mains supply. Obviously it would be very inefficient speed-wise, but a higher current (say + 300 watts for the GPU being used) should result in a slightly lower voltage on the mains supply I think for the duration?

    Obviously things like PSUs could (I'm not an expert at any of this) get in the way of this, and I'd assume in data centres there's some isolation between different racks.

    But for a scenario of DIY "airgapping" two machines in an office for AI testing (i.e. not doing it very well), it might be a plausible way of AIs finding to communicate if there's no actual network connection.

    Obviously other electronic devices connected to the same mains circuit could also be adding their own noise, which might make it a lot harder to actually identify and decode the response, but... if ML/AI agents are good at anything, it's finding patterns, so I wouldn't want to bet against it being theoretically possible...

    • creata

      I'm confused by the scenarios in this thread. How is the machine on the other side receiving this information? How is it measuring voltages on the mains supply, or receiving radio waves emitted by RAM?

      • pixelesque

        It wouldn't measure it directly, it would (admittedly, very hypothetically) be able to measure a knock-on effect of the mains voltage change via secondary effects: i.e. CPU/GPU frequency changing, PSU fan speeds changing a very small amount from the expected rate, maybe even the motherboard / CPU socket voltage amount directly changing (some motherboards expose this info directly for overclocking use).

        Obviously, given variation in these things anyway (i.e. due to temperature, and PSUs being in the way), it's incredibly unlikely to be that easy to pin down a robust communications method, but again, might be just within the bounds of possibility.

  • KZerda

    There is information that leaks through the power line as well, and the author of this paper also has a paper on how to exfiltrate through the power line at a much slower rate https://arxiv.org/abs/1804.04014

    • adityaathalye

      TIL; thanks for sharing! I am not surprised to hear this.

      Still, I'd guess that the odds of remote exploits are better if one wants to control a device via the PSU-as-backdoor, versus exfil data from it. Do like the IoT people and UDP broadcast naughty control signals to the power circuit / subsystem that has the compromised device.

      Guessing further, remote exfil will mean having a close-proximity wiretap into the precise power line circuit of the target infra---because of signal losses---it could still be UDP broadcast exfil. Or a physical tap at whatever power transformer is the single point of connect between the target and the main grid. And if you can't get anywhere near the installation, well you can't exfil, because AFAIK it's pretty hard to reverse a signal up a transformer back into the main grid.

      A scan of the arxiv paper appears to suggest similarly---the situation they describe presumes a wiretap into the circuit or the mains switchboard.

      • adityaathalye

        Reminds me of the old chestnut attributed to a Well Known computer security pioneer. I cannot for the life of me remember who.

        Paraphrasing:

        The only way to secure a computer is to not buy one. And if you buy one, to never plug it in. And if you plug it in, to never switch it on.

        Something like the cheapest way to own $GasGuzzlerWithItsOwnPinCode is to bring it home after purchase, and set fire to it in the yard.

  • NooneAtAll5

    I heard that couple decades ago there was a product for "socket internet" - you plugged it into normal wall socket, and it communicated through power wires

    • hoppyhoppy2

      It was popular as an alternative to running an ethernet cable. Wifi has cut into its market share.

    • ErroneousBosh

      It's still a thing. It's a pain in the arse because it uses a carrier on the mains that has harmonics on every HF amateur band, that radiate from your house wiring for a couple of hundred metres.

      Some of the sites I look after at work still have modems attached to the incoming electricity meter from a Broadband-over-Power-Line trial about 15 years ago. It wasn't very fast - it was supposed to be 200Mbps but struggled to do 20, and was often more like 2Mbps - and it radiated RF hash everywhere powerlines ran, from about 500kHz to well up into the hundreds of MHz. What eventually killed it in NE Scotland here was it splattered all over marine VHF, in an area with lots of marine traffic like oil platform supply vessels.

      TL;DR anything that uses basically RF over unshielded untwisted cables that radiate everywhere is inefficient and antisocial.

    • lifeisloving

      Well this is technically still a thing, people pass internet connections through their sockets with special adapters.

  • firecall

    Powerline Networking is what you are referring too.

    Still available today, and has worked well for me when I've needed it.

WalterBright

Devices like routers should have firmware in memory that has read-only access. The access should be turned on or off by a physical switch.

This way, if malware gets installed on your router, doing a cold boot will eliminate it. You can have a timer to just cold boot it regularly.

I've suggested this many times. The rationale for not doing it is so the firmware can be remotely updated. Well, that's exactly how malware infects it.

  • mijowi

    So how do you propose to address the inevitable vulnerabilities in firmware that hasn’t been updated? A tech must be physically present to flip the switch before updating?

Grimeton

There are tons of ways to make air gappped systems transmit data. They all include the installation of some malware and have become more expensive and less usable over time.

Back in the day with crt screens you could just capture the frequencies transmitted when creating the picture and look at the copy straight away.

No malware. No direct contact. And it worked over rather big distances.

  • crote

    The same thing killed electronic voting machines in The Netherlands.

    No matter how well you argue that it is "perfectly secure", when some nerd outside the polling station is showing reporters a real-time feed of who people are voting for, your machine will get thrown out.

    It wasn't quite CRT-level of mirroring, but it wasn't far off...

anfractuosity

I used the same approach to play music from a .wav via pulse density modulation -

* https://www.youtube.com/watch?v=KH9yb1qFKDY

* https://github.com/anfractuosity/musicplayer

EvanAnderson

"At best, an air gap is a high-latency connection." - Ed Skoudis (of SANS fame).

mooktakim

Air gaps need to include a faraday cage.

  • nicexe

    If we extend this logic a bit, we also need optical and audio filters. Imagine maxing the fans and returning them back to normal speeds slow enough to be able to pick up the noise through a microphone. Or reading the RJ45 socket LED. So many ways to transfer data. It just comes down on how hard it is to exploit such a medium.

xpct

> With a slow transmission rate (t = 10ms), A transmission is maintained at a distance of 700 cm away. With medium transmission rate (t = 5ms), A transmitted is maintained at a distance of 450 cm away and BER of 3%-4%. With a fast transmission rate (t = 1ms), a transmission is maintained at a distance of 300 cm away and BER of 2%-4%.

Coming from a non-EE background, this is the most interesting part to me. 10ms is an eternity in programming perf work, but it's already very constrained in how clear the signal is for reading the transmission. I just find it interesting that we want to do nothing to create a signal. Perhaps this makes it harder to exploit?

rbbydotdev

Meanwhile my WiFi never works

mikewarot

Yes, side channel attacks are sneaky, and always end up leveraging someone's hubris, with huge effort.

If you rely on an encryption machine that can't give the same letter on the output as the input, and the next thing you know, after millions of zł and £ and $ of effort, including capturing a submarine in the middle of the ocean before it sinks, others are reading your encrypted messages.

You isolate your Uranium enrichment facility in the middle of Iraq with guards, barbed wire, and pretty good security, but someone is able to slink in, put a passive monitoring probe on the 3 phase power going into your facility, and sneak it back out a few months later... and then they do an FFT, then measure the peaks to back-compute the speed of each stage's centrifuge, and the next thing you know, they can tell exactly how well things are going for you (read about that on Slashdot more than a decade ago! Possibly related[1])

If you put all your data through a digital computer, someone may use Van Eck phreaking to spy on your video output, or other emissions. If they have the right gear in range. Getting that gear in range again usually entails the results of large sums of effort.

Sure, it's possible to leak info out the data lines going from a CPU to RAM with a properly formatted set of patterns. If you don't even try to isolate that CPU from an ingress of control, however, you don't need that high effort strategy, you just need a good North Korean hacker working from the other side of the globe.

Folks, we mostly solved the ingress of control problem back in the 1970s, and it was getting folded into Multics as multilevel, capability based, security. But, the folks at Bell Labs, and many other places (MOST other places, and almost all of us, myself included) decided that security wasn't really important. That's why we're in this mess today, not because of idiots with LLMs and too much money.

We're in this because Operating Systems that rely on ambient authority can not ever be made secure.

Unix, Linux, Windows, and all the rest are unfit for purpose in the era of persistent Internet. We need to undo that local minima decision back from the era of paying by the minute for dialup connections to the BBS, and before every computer was networked. It's going to suck, but it's likely to be a Y2K level problem, not impossible.

[1] https://web.archive.org/web/20170828055815/https://www.washi...

skhr0680

As a total layman when it comes to air gapping: Would this not be defeated by putting the computer in a faraday cage?

  • andai
  • paxy

    There is always a way. A program could take control of the LEDs on the PC and export data by flashing them in certain patterns.

    • 7e

      A Faraday cage would not let light escape. That is the definition.

      • paxy

        How does a Faraday cage block visible light?

        • Y-bar

          It’s a poor word choice I believe, a faraday shield also blocks light, while a cage can be seen through.

    • ErroneousBosh

      Modems in the olden days used to have LEDs to show traffic directly attached to the TXD and RXD lines coming off the level shifter, and therefore directly showing the presence or absence of a bit stream on the serial port.

      With a suitably tightly focused telescope you could pick up the LED blinking and decode the data going over the port.

  • ErroneousBosh

    Putting it beside a Tesla coil would work too, make more noise than the computer does and you'll bury the signal.

    Of course, now you've got a Tesla coil in your data centre, which will bring you a whole new set of Interesting Problems to cope with.

  • stackghost

    Yes, Faraday shielding is one of many considerations when building a SCIF or other EMSEC zone.

angry_octet

These attacks are all incredibly impractical and pointless, the bit rate under the most charitable assumptions is pathetically low. But even more, it ignores the most significant risk, which is people. People who can be tricked and subverted, and people systems that can be influenced to become misaligned, or which have procedural holes.

It's much easier to subvert the supply chain for the secure hardware or subvert the authorised system transfers.

ranger_danger

Let me guess, a paper written by Mordechai Guri?

It's not even a contest anymore, that man is the heavyweight champ of air-gap security.

  • yhjc2692

    Indeed! I was a bit skeptical to see it is a single-author paper (thinking it might be one of those Claude-generated ones), and I appreciate that you pointed out this is somebody worth listening to.

laserbeam

> We show that malware on a compromised computer

Right… I’m going to stop reading after these words. With malware on the computer you can change the heat signature of the room of you’re bored enough. https://xkcd.com/1172/

superkuh

Computers used to come in proper full metal cases. Now they don't. Even when you try to find a metal case for a personal build most cases have giant holes in the side (case windows) acting as slot antennas. And plastic case laptop designs are even worse. Radiated emissions are much easier to achieve at useful intensities these days because of it. Sure, before the conductors going in and out radiated somewhat effectively (and still do). But now even core system components inside are just being let emit without any mitigation.

  • WalterBright

    I have my computer in a metal box because it has caught fire twice.

    • ytxm

      Ignoring the obvious "dmd is truly blazing fast" quip, wildly curious how this happened to you twice? Was it the PSU? Only once heard of a house fire caused by a computer, but no information on component actually caused it.

      • WalterBright

        The first time it was the graphics card. It burst into flames and smoke poured out. The fire went out when I yanked the power. Fortunately, I was sitting next to it when it went. To be fair, it was doing a long graphics job.

        After that, I set the computer on a metal plate to keep a fire from spreading to the floor.

        Some years later, the PSU went out with a bang and a lot of smoke.

        (dmd is so fast, the computer doesn't have time to heat up!)

  • ErroneousBosh

    > most cases have giant holes in the side (case windows) acting as slot antennas.

    They won't act as slot antennas unless they are tuned to the frequency you wish to transmit on, and actually electrically connected on each side to your transmitter.

    • superkuh

      Correct. But also, an antenna doesn't have to be exactly resonant at the desired frequency in order to help. You can see this most often in the antennas people use for HF, which to be resonant have to be giant and many meters in size, but instead they use small non-resonant antenna that still transmit enough, even at very low efficiency, to radiate an annoying amount of interference.

      Not having a giant slot antenna is a lot better than having a slot antenna. Even if the slot antenna is best resonant at mid-VHF (ie, ~144 MHz which is what many GPU RAMs are blasting at at high current).

      And just as important: a huge hole is a hole. Even if it's not acting as an efficient antenna. It's basically an entire side of the case missing.

      • ErroneousBosh

        Well, exactly. It's acting as a huge hole, it's not acting in any way as an antenna.

        To work as a slot antenna you'd have to have a low impedance feed right into the middle of each side of the hole, and for 144MHz the sides of your PC would need to be about 2.5 metres along each edge.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection