r/programming • u/mepcotterell • Aug 17 '14
NSA's BiOS Backdoor a.k.a. God Mode Malware
http://resources.infosecinstitute.com/nsa-bios-backdoor-god-mode-malware-deitybounce/?Print=Yes
1.3k
Upvotes
48
u/aZeex2ai Aug 17 '14
The author of this article, Darmawan Salihun, maintains an excellent blog and also wrote this very informative book.
I encourage you to check out his other work.
http://www.amazon.com/BIOS-Disassembly-Ninjutsu-Uncovered/dp/1931769605
http://bioshacking.blogspot.com/
62
u/nocnocnode Aug 18 '14
Certain motherboards have USB 'knock' sequences that can be used to overwrite the boot process in BIOS.
A means to detect a sophisticated BIOS infection in running memory (third/fourth stage payload drop) is to use the technique of cryogenically freezing the volatile memory to capture its contents. It sounds complex, but can be performed with a $7 bottle of compressed air.
http://www.zdnet.com/blog/security/cryogenically-frozen-ram-bypasses-all-disk-encryption-methods/900
edit: Of course this wouldn't help with a SoC firmware injection, chip doping, etc... which would likely be ubiquitous in the near future if it is not already.
239
u/xampl9 Aug 18 '14
It gets worse.
The Intel CPU instruction set is actually a microcode architecture. Calling MOV, IMUL, etc. means that a series of microcode instructions get executed to perform the desired opcode. This lets Intel treat the x86/x64 instruction set as an API, so they can change the microcode underneath with each new CPU or CPU stepping.
Intel can ship new versions of the microcode to fix problems identified after a CPU is released and is in the field. These updates are digitally signed, traceable back to Intel's root key, so that not just anyone can ship an update. These get distributed through trusted partners, like Dell and Microsoft.
But ... there are rumors that the NSA has a copy of Intel's private key. And this means they can overwrite the microcode in your CPU with their own instructions.
http://steveblank.com/2013/07/15/your-computer-may-already-be-hacked-nsa-inside/
86
u/x86_64Ubuntu Aug 17 '14
Jesus Christ, that's so insidious. It's amazing how such layman understandings about what happens with computer hardware on startup has virtually no relevance to what actually happens.
509
u/zjm555 Aug 17 '14
Oh God Apple has ruined us.
36
u/ben_uk Aug 18 '14
BIOS = Basic Input Output System. BIOS is an acronym. Acronyms are capitalized.
13
u/kiddico Aug 18 '14
Oh cool... I have one of those servers... yaaaayyyyy.
13
u/ase1590 Aug 18 '14
Welp, time to use the GPLv2 coreboot as a bios.....
7
u/daf121 Aug 18 '14
Seems Richard Stallman was right after all !
17
u/SlobberGoat Aug 18 '14
Govt depts snooping on traffic thats moving along govt infrastructure? Yeah, ok, I can see that.
But diving into peoples personal equipment and watching what they do and when even though they may never (in theory) move any traffic across the said public 'snooped' infrastructure? That kinda crosses over the line of 'government' in my book.
31
u/AliasUndercover Aug 18 '14
And now no one in another country will buy American products again. NSA, this kills the economy. Thank you.
19
u/nocnocnode Aug 18 '14
This has been around as long as someone figured out how to rewrite the BIOS from the OS. The only thing new is 'NSA' is now very much considered a threat to the general US citizen and layman. No wait... that's not new either.
11
u/fuzzynyanko Aug 17 '14
I'm going to wonder next time I get another laptop, and Dell is one in the running
9
u/cryo Aug 18 '14
Since this has nothing to do with iOS, why would you capitalize it like that? :p Basic Input/Ouput System.
3
u/munkyadrian Aug 18 '14
Does this affect UEFI? From the article it said it affected different BIOS versions but would it apply to UEFI
4
u/spinur1848 Aug 18 '14
Disappointing. I can see how technically gifted individuals with unlimited funds and internal guidance that amounts to "collect it all and we'll sort it out later" could/would do this. Very disappointed in the lack of adult supervision.
Also raises major concerns about secure boot. If your BIOS (or other firmware that gets executed by the BIOS before it loads your OS) is already infected, then secure boot makes it impossible to check and impossible to fix.
Glad I run FreeBSD on consumer-level hardware, but still not entirely convinced that keeps me secure.
3
u/Webonics Aug 18 '14
As if I needed another reason to hate PERCs.....
Another absolute technical failure? LET ME SHOW YOU MY SURPRISED FACE
1
u/hectavex Aug 18 '14
Interesting...I've deployed Dell PowerEdge 1900's with PERC 5/i controllers. This backdoor is a PERC 5/i firmware exploit, not a BIOS (motherboard) exploit. Either way, the issue does relate back to Dell.
1
u/[deleted] Aug 18 '14
Would the EFI on Macs be vulnerable to this too?
1
u/drive0 Aug 18 '14
I'm getting less and less convinced that it is the job of the NSA to root all electronics. It may be their job to defend against foreign powers doing this.