News for hackers. Stuff that matters.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by andai on Saturday March 11, 2017 @06:46AM (#13845150)
Does anyone here have an air-gapped computer setup?

I'm thinking of doing something with raspberry pi.

I'm stuck at the part where it communicates (for my purposes, small amounts of ascii) with a non airgapped computer without using USB or networking.

I'm thinking about giving both machines a little speaker and microphone and using high frequency pulses to transfer the text.

Why, you may be wondering?

1. Airgapped system is impervious to penetration

2. Can be used for literally unbreakable communications.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by Kadin on Saturday March 11, 2017 @10:35AM (#13845723)
That doesn't make sense. Once you connect it to the rest of the network, it's no longer "air gapped".

The phrase "air gapped" doesn't signify something special about air, it refers specifically towards breaking the connection (which is typically electrical) between that system and the rest of the network. Perhaps it is not the best term, and "completely isolated" would be better.

If you set up an IR LAN, or use sound, or whatever, then the system is no longer air gapped and you have created a potential vector for information leakage and potential penetration. Sure, probably nobody is going to bother, if the implementation is unique and nothing you have on that system is of particular value, but there have been a number of high-profile compromises of "air gapped" systems and networks (e.g. Iranian nuclear production facilities), that show it can be done even without an intentional connection if the desire is really there.

There are scenarios where partially isolated systems can offer a real benefit, though. I have periodically seen ideas for logging systems that use a 100BT (not Gigabit) Ethernet connection with the Tx pair cut, so that traffic can only ever go INTO the system and never back out again. The system sits on the far side of this one-way hardware gate, listening and logging, and is extremely difficult (although not impossible) to compromise because of the lack of feedback. Note if you want to do this, you need to use old 10 or 100BT network cards that don't have GigE capability, because I believe GigE uses all the pairs in the Ethernet cable in unpredictable ways; you don't have the old Tx pairs / Rx pairs / shield pairs like you used to be able to count on (and selectively cut). I think you'd need to make sure the cards didn't support auto MDIX as well.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by jacquesm on Saturday March 11, 2017 @12:44PM (#13846293)
> I have periodically seen ideas for logging systems that use a 100BT (not Gigabit) Ethernet connection with the Tx pair cut

That would only work with unidirectional protocols. Scratch TCP/IP and probably even UDP since it would need to figure out the MAC address of the other side.

If you're going to do this you essentially have a one-way high speed serial link without the ability to error-correct.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by Neliquat on Saturday March 11, 2017 @01:07PM (#13846393)
Checksums and redundant data would mostly solve that. Look what we do for deep space transmissions for example, where latency makes it basically one-way. I just feel like there are too many variables still uncontrolled to make it worthwhile.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by SCHiM on Saturday March 11, 2017 @12:09PM (#13846141)
You can use something called a data diode. These are used in high security networks to provide secure one way communication (insecure->secure). The idea is that if there _is_ communication it's not possible to exclude compromise completely. However if you do get compromised no information can escape a network with one way traffic, so an attacker might only destroy your information.

Funnily enough, someone else thought to use a raspberry pi for this purpose too: https://www.raspberrypi.org/forums/viewtopic.php?t=58957&p=5...

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by 3r3rni9 on Saturday March 11, 2017 @08:05PM (#13848268)
Check out Google Tone: https://chrome.google.com/webstore/detail/google-tone/nnckeh...

"Broadcast any URL to computers within earshot. Google Tone turns on your computer's microphone (while the extension is on) and uses your computer's speakers to exchange URLs with nearby computers connected to the Internet. You can use Google Tone to send the URL for any web page, including news stories, pictures, documents, blog posts, products, YouTube videos, recipes—even search results. Any computer within earshot (including over a phone or Hangout) that also has the Google Tone extension installed and turned ON can receive a Google Tone notification."

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by imaginenore on Saturday March 11, 2017 @06:48AM (#13845154)
If it's airgapped, how do you use it for communication?
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by andai on Saturday March 11, 2017 @06:53AM (#13845166)
I'm thinking about giving both machines a little speaker and microphone and using high frequency pulses to transfer the text. (modem)

I don't know enough about computer security to understand whether a specially crafted piece of morse code audio (transferred through actual sound waves) could be used as an exploit, but I'm leaning towards "implausible".

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by mmcwilliams on Saturday March 11, 2017 @07:22AM (#13845229)
I think that what imaginenore is suggesting is that if you are communicating between your public network-connected machine and your air gapped machine, there is no longer an air gap (barring some very specific use cases). The technique you're describing is actually an attack used to defeat security of machines not on untrusted networks[0].

[0] https://en.wikipedia.org/wiki/Air_gap_malware

EDIT: This is specifically the method I was thinking of: http://www.jocm.us/index.php?m=content&c=index&a=show&catid=...

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by andai on Saturday March 11, 2017 @07:38AM (#13845257)
Ahh.. remember BadBIOS? :) It did need USB flash drives to spread though. (See BadUSB.. and weep!)
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by mmcwilliams on Saturday March 11, 2017 @12:41PM (#13846277)
I do remember BadBIOS, though looking it up not it seems it might have been a hoax(?) or at least vaporware. Personally when I think of expertly hopping air gaps, stuxnet always comes to mind.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by danbruc on Saturday March 11, 2017 @07:21AM (#13845227)
Have you considered light instead of sound, a simple optical link either through air or fiber?

And it can be exploited in the same way it happens on any computer, somewhere in the path from reading the input through processing the message to sending the response is a bug and a specifically crafted sequence of inputs causes unintended things to happen, possibly allowing an attacker to execute arbitrary code.

However, if you specifically build a very simple interface and application, then you can keep the attack surface small as compared to your average computer. There will be no programmable NIC, no hardware driver, no TCP/IP stack, and probably only a single application processing messages and using the interface.

But this of course also depends heavily on the implementation. Controlling the GPIO pins of a Raspberry Pi with a Python application build on top of a Python library, Python, a GPIO driver and Linux provides quite a bit of attack surface. If you use a microcontroller and a hand full lines of assembly to poll input and drive output pins, then the attack surface becomes really small.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by andai on Saturday March 11, 2017 @07:37AM (#13845255)
Yes indeed! A few years ago I read about a project using infrared "lasers" for a LAN. (Can't find it now since the concept has become quite popular.)

I only wish I was that badass... I can barely do C, let alone asm. I imagine attempting those now would only make the system less secure! haha. I'm just getting started with Arduino. I think I'll keep it simple for now :)

I do plan to learn them (c/asm) some day, then I will be able to make the system even more secure. Thanks for the tips!

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by aurelianito on Saturday March 11, 2017 @08:16AM (#13845321)
Then my notebook is 'airgapped'. It connects to internet via wifi :). More seriously, if it connects through non popular means (such as a protocol over sound) it is just security through obscurity.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by giergirey on Sunday March 12, 2017 @05:04AM (#13849917)
If andai is just connecting a full-function laptop to the internet with some ethernet-over-audio bridge, then you're right.

But don't you think he has a point if he's talking about a simple, single-purpose device like an arduino - say - that can't connect to the internet, but allows keyboard entry of plaintext, then encrypts it, sends ciphertext to a PC via audio?

I which case I think there are some advantages in using audio; if the device used wifi / ethernet / USB then you have to trust a lot of code to be exploit free:

- ethernet driver code - wifi chip firmware - kernel network code - USB drivers etc

Whereas if he's written his own simple bytes-to-audio converter in a few hundred lines of code that can be audited, then I can be be more easily convinced that it's not possible for an adversary to remotely install a keylogger or extract keys from my little encryption device.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by sitkack on Saturday March 11, 2017 @02:41PM (#13846818)
Airgaps are not just the physical separation of systems, but also auditing and filtering of what goes on to the airgapped machine.

One can get many of the properties of an air gapped system by compartmentalizing ones activities. Only playing media in the media-vm, only surfing the web in the web-vm, and only doing banking and high security stuff in the security-vm. Many of these systems wouldn't need persistent storage. And each one has different requirements, for the VM doing banking one could remove the root certs for everything except the sites you care about. Each VM could be on its own VPN, for the security-vm one could choose a network exit that was closest to the desired endpoint.

Copying media files from a guest to the host would compromise the air gapped machine. The host should not do any general purpose computing and nor should there be an account with special administrator privileges.

Look at https://www.qubes-os.org/

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by kevincox on Saturday March 11, 2017 @07:29AM (#13845241)
Airgapped means it has no communication.

But yes, in practice it is often useful to move data to and from. In a "perfect" airgap this would probably be you typing and reading the screen. However this isn't the most convient but the more things automatically accessing it the less security you will have.

If you are going to connect it I won't bother maknig your own system and just use something standard (like ethernet) but now you have a firewalled system then an airgapped one.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by andai on Saturday March 11, 2017 @07:32AM (#13845250)
Yes, I also considered using text input, and then something like converting encrypted bytes into english words for ease of input.

But I've noticed that not all my friends are very good at typing, so an automated solution is more user friendly... and a security solution that actually gets used is more secure than one that doesn't :)

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by JshWright on Saturday March 11, 2017 @08:37AM (#13845374)
There are plenty of (proximity dependent) attacks that could leverage the monitor or keyboard you're using to passively collect information from the system.

The only completely secure airgapped system is the one that's never powered on ;) (and kept physically safe).

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by andyjohnson0 on Saturday March 11, 2017 @07:27AM (#13845236)
Peer-to-peer IrLAN [1] is less prone to interference then sound, and being directional is harder to attack if the air-gap is small. Nowadays its probably obscure enough to make creating an exploit prohibitively expensive, even more so if you write your own drivers. With some electronics knowledge you could probably build your own simple transceivers too.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by JshWright on Saturday March 11, 2017 @08:43AM (#13845387)
How does an obscure transport help you if it's still just a LAN connection?
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by andai on Monday March 13, 2017 @03:14PM (#13861302)
In the scenario I am describing it would only ever be used to transmit ASCII for a cryptosystem. I do not require networking or internet or file transfer, just a low bitrate modem for text input and output.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by andai on Saturday March 11, 2017 @07:40AM (#13845262)
Yes, I am considering precisely these kinds of solutions! There was an IR LAN project a while back (ten years?) but I can't remember the name (and the concept has skyrocketed in popularity making Googling difficult). Excellent suggestion :)
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by roywiggins on Saturday March 11, 2017 @11:25AM (#13845926)
Honestly a floppy drive that you only connect to the raspi to transfer stuff is the only secure-ish way I can think of transferring data to your non-networked computer. Floppies are nice and dumb.

If you want a persistent, networked connection then just use a serial cable, but then... you're not airgapped anymore.