News for hackers. Stuff that matters.
Re:Did this Tor developer become a victim of NSA's laptop in... by mschuster91 on Sunday January 26, 2014 @04:17PM (#7126965)
Worse: laptop keyboards are usually connected to a special embedded firmware (IIRC on my Clevo laptop it's called EC, short for embedded controller), which handles the FN+x key combos like LCD brightness, volume control, keyboard backlight (Lenovo!), WiFi/BT/cellphone-data connectivity, webcam enabling (!) and other detailed functions.

Now, if this EC chip is vulnerable, a malicious keyboard can have direct DMA access (just like FireWire controllers, EC is usually connected to the main PCI bus)... no need for drivers here.

Re:Did this Tor developer become a victim of NSA's laptop in... by csmithuk on Sunday January 26, 2014 @05:43PM (#7127392)
As per my other post, the keyboard is most likely a PS2 keyboard interface (physical or emulated) connected to a simple PS2/LPC(ISA) bus interface inside the EC. It will literally deliver an IRQ to that bus (IRQ 1) at which point the EC has to suck down a character from the keyboard buffer and do something with it.

It's not clever, can't use DMA and generally is the dumbest thing in the entire machine.

If they somehow manage to work around it I'd eat a box of lightbulbs. It's hard enough to coerce it to work to start with.

Source: I used to design embedded PC kit from the board level.

Re:Did this Tor developer become a victim of NSA's laptop in... by mschuster91 on Sunday January 26, 2014 @05:49PM (#7127419)
Thanks for the clarification!

But one question remains: how does the EC control stuff like the bluetooth radio and webcams? They're USB devices to the OS, so in theory there should be a USB hub inside the EC?

Re:Did this Tor developer become a victim of NSA's laptop in... by csmithuk on Sunday January 26, 2014 @06:04PM (#7127479)
Not necessarily. It may only have power control function. If you pull a USB device out it's the same as turning it off in theory and vice versa. It's probably just turning the device off or setting it into standby mode.

edit to add: some Intel south bridges have integrated EC which makes things a little uncertain.

Re:Did this Tor developer become a victim of NSA's laptop in... by dfox on Sunday January 26, 2014 @05:43PM (#7127390)
Laptop keyboards are directly connected to embedded controller primarily because they are completely passive switch matrices (and EC includes - often directly in hardware - logic for scanning keyboard matrix), so there is nothing meaningful to exploit on the EC side.

Also connecting EC directly to some PCI bus does not make much sense from both system design and cost perspectives. Usual place to connect EC to is LPC, which is explicitly designed for such devices (things on motherboard like serial/parallel/game ports, TPM, FDC, keyboard controller/EC, BIOS flash and various ). Random review of datasheets found by google seems to indicate that chips that are only embedded controllers and do not contain additional ISA based peripherals (like ISA DMA controller itself) tend to not even implement the pin required for LPC DMA/bus master transactions (as it is not required for anything in normal operation).

Re:Did this Tor developer become a victim of NSA's laptop in... by mschuster91 on Sunday January 26, 2014 @06:07PM (#7127495)
Hold a second, BIOS flash? /me smells #badBIOS
Re:Did this Tor developer become a victim of NSA's laptop in... by maxjus on Sunday January 26, 2014 @05:26PM (#7127304)
>direct DMA access

Direct direct memory access access?

Re:Did this Tor developer become a victim of NSA's laptop in... by jrockway on Sunday January 26, 2014 @05:47PM (#7127411)
Financed with a withdrawal from the ATM machine, of course.