15 ms·
After CIA leak, Intel Security releases detection tool for EFI rootkits
- mempko 10y agoAnd what if intel is compromised? Mass rootkit installation!
- hellbanner 10y agoMy thoughts exactly! What a great way to get rootkits on people who want to protect themselves. The code is here: https://github.com/chipsec/chipsec https://github.com/chipsec/chipsec
- tptacek 10y agoYou can reverse engineer the EFI modules, build a whitelist based on known safe code, and then detect subversion at Intel, so this is not a good strategy for serious adversaries.
- etiam 10y agoIn theory, sure. Is it sufficiently simple that people will do it in practice? (I don't know, I expect you would know) Wouldn't the malicious alterations introduced in a scenario like that most likely be exploitable defects that could be explained away as mistakes? If they accumulate too much around certain people that's suspicious of course, but it seems like it would often be difficult to downright prove that someone intentionally broke the security of a rather complex system.
- tptacek 10y agoThe point is that it doesn't matter what the typical person will do. All that matters is that somebody, somewhere reverse engineers the EFI binaries, and that it's easy enough for normal people to run a program to check their current EFI against a whitelist of known good EFI binaries. This is a banal point, except: if the threat is that Intel (or some other huge vendor) backdoors their EFI binaries, it will get out that they did so. It's not "the perfect crime"; it's practically the opposite of that: one guaranteed to be detected, and that will exact maximal damage on the perpetrators when it gets out.
- grandalf 10y agoOf all the attacks a nation state could do, surely finding a few talented people to get PhDs in the appropriate fields and go to work at Intel and collect a paycheck along with a nice stipend from the nation state is likely among the easiest.
- kbenson 10y agoI'm not sure it's all that easy, since a) you can't know exactly how good someone is going to turn out to be (you can probably get close through), and b) you can't tell what Intel will be hiring for later, and c) to increase your odds you probably want more than a few people in this program to achieve at least a few people being hired in positions that are useful. That said, the main hurdles seem to be managing people and funds, which government agencies seem pretty good at figuring out. So maybe not all that easy, but maybe not particularly hard either. The biggest problem might be keeping it secret, given the number of people that might need to be involved that are clandestinely working for a TLA but not as their main job and not steeped in the culture of secrecy.
- mcbits 10y agoProbably easier to find an existing employee with financial problems and offer a duffel bag of cash to plug in a USB stick for 30 seconds.
- digler999 10y agoThis is like the opposite or corollary of the "$5 rubber hose" cryptography cracking device.
- mrkgnao 10y agoDid you mean the xkcd "crypto nerd" wrench, or is this a reference to something else? E: ah, TIL. https://en.m.wikipedia.org/wiki/Rubber-hose_cryptanalysis https://en.m.wikipedia.org/wiki/Rubber-hose_cryptanalysis
- baq 10y agoBetter still, infect his USB stick without him knowing.
- api 10y agoYou should go post about this on Reddit /r/nosleep
- sounds 10y agoThis is a better link (it is Intel's original blog post): https://securingtomorrow.mcafee.com/business/chipsec-support-vault-7-disclosure-scanning/ https://securingtomorrow.mcafee.com/business/chipsec-support... It includes a few more details about what was released: It extracts EFI firmware from flash ROM memory automatically if the firmware file is not specified. We recommend generating an EFI whitelist after purchasing a system or when you are sure it has not been infected: # chipsec_main -m tools.uefi.whitelist -a generate Then check the EFI firmware on your system periodically or whenever you are concerned, such as when a laptop was left unattended: ... An analysis of the approach they are taking would lead to some pretty easy improvements.
- trendia 10y agoNo amount of EFI rootkit detection will ever remove the possibility that malicious code is running inside the Intel Management Engine (ME), because code inside the ME would run side-by-side with the bootloader and with unlimited permissions. Unless Intel provides source code for the ME, it is impossible to 100% know whether unauthorized code is running.
- Kwastie 10y agoSomeone at https://puri.sm https://puri.sm almost completely removed the ME. https://puri.sm/posts/neutralizing-intel-management-engine-on-librem-laptops/ https://puri.sm/posts/neutralizing-intel-management-engine-o...
- bobcallme 10y agoWhat's with the free advertising? They were not the ones to do the original work with coreboot or removing the non important parts of the ME. If anything, Purism has lied, taken credit for other peoples work and given people a false sense of "privacy" and "security". "Almost completely removed the ME" is not good enough and there is way too much room to do malicious things.
- deleted 10y ago[deleted]
- Relys 10y ago.
- jjawssd 10y agoWhat's your point? Is it that exploit developers are not compensated financially for their work? Exploit developers should find a better business model than their current one. This guy was able to take freely available exploit knowledge and monetize it. If the parties responsible for creating the exploit feel they have some sort of IP claim against them, they should sue. If exploit developers wish to release exploit details for free then the best they can wish for is charity.
- throwaway2048 10y agodoes this code rely on UEFI interfaces to fetch this data? If so, cant the rootkit code just lie to it?
- danhdungads 10y agowanna some secure VPN to protect your privacy? https://bestleap.com/top-5-best-fast-and-secure-vpn-service/ https://bestleap.com/top-5-best-fast-and-secure-vpn-service/
- etiam 10y agoFinally some tools for this. Very good. Would this be the first reasonably doable method for extracting all the blobs? Seem like it must be a well-needed foundation to build on for security companies. But... We recommend generating an EFI whitelist after purchasing a system or when you are sure it has not been infected Not that I have a better suggestion, but with interdicted shipments and other vulnerable points along the supply chain before a system is in the care of its owner, it doesn't exactly seem like a sure bet that it's clean on arrival. How would one otherwise be "sure it has not been infected"? Any feasible ways? Next step would be to provide lists of known good signatures from some controlled environment, or at least a consensus system to know whether the version one finds matches the version others have?
- Canada 10y agoIf you have access to more than one identical system they can be compared. Or there could be a public list of known good hashes as you suggest. In any case having a tool to even perform the check is great.
- throwaway91111 10y agoThis doesn't preclude the infect-at-the-factory issue: you'd end up verifying you HAVE the rootkit (and reverting to that if it changes).
- Canada 10y agoI'm assuming not all of the machines from the factory will be infected. Because if that were so, then the chances of being found out is high and consequences would be dire for the manufacturer. If my assumption is correct then buying a retail machine and comparing its firmware to the one you order with your credit card should be fine.
- gpm 10y ago> How would one otherwise be "sure it has not been infected"? Any feasible ways? If you are willing to assume they aren't infecting every computer. Walk into a random brick and mortar store and buy it there. If you're paranoid to the point where you don't trust the people at a random brick and mortar store, point at a display model (or if they have non-display models visible one of those) and insist on that one in particular, without it leaving your sight at any point in time.
- multinglets 10y agoBecause Intel is totally on our side.
- bitmapbrother 10y agoNice try CIA and Intel, but I'm not falling for this.
- rrggrr 10y agoand.... what alternative could you possibly have? There's a reason the Russians reportedly moved to typewriters. https://www.theguardian.com/world/2013/jul/11/russia-reverts-paper-nsa-leaks https://www.theguardian.com/world/2013/jul/11/russia-reverts... The entire computing ecosystem appears to be P0wned by various intelligence services. And, its not unique to the CIA or NSA. The Chinese are assumed to have backdoors into most of what ships from their country.
- PhantomGremlin 10y agoThere's a reason the Russians reportedly moved to typewriters. Hopefully the Russians still remember how they bugged US typewriters in the US Embassy in Moscow. Then they'll be able to check that their own typewriters aren't bugged in a similar fashion: http://www.cryptomuseum.com/covert/bugs/selectric/ http://www.cryptomuseum.com/covert/bugs/selectric/
- canada_dry 10y agoLOL! It's pretty bloody sad state that we're in that your comment cannot be dismissed as some tin-foil-hat-lunatic, but very reasonable skepticism nowadays.
- baq 10y agoSo who do you trust?
- CodeWriter23 10y agoWhat's a little self-installation of malware between a spy agency and a citizen who has nothing to hide?
- bogomipz 10y agoDoes anyone know the attack vector for this root kit?
- cmurf 10y agoMacs lack Secure Boot. This tools seems to be for non-Secure Boot computers. IF it's a Secure Boot system, rootkits aren't supposed to happen, and if they do then there's a hole somewhere that needs fixing.
- ams6110 10y agoI thought secure boot was about verifying the OS at boot time. Does it also self-verify the EFI code?
- cmurf 10y agoI'd like to think the existing firmware verifies the signature of a replacement firmware before permitting the replacement. Otherwise we have problems. But at runtime, I'm not aware if there's any such thing as firmware doing a self verification. EFI binaries though are expected to be signed or they won't execute, that's the point of Secure Boot, and it includes bootloaders and the kernel all being signed. Most Linux distros I'm aware of also sign their modules because permitting unsigned modules could allow you to inject malware right into the kernel just by loading a compromised kernel module.
- partycoder 10y agoI hope they also release System Management Mode (aka ring -2) rootkit detection tools. https://en.wikipedia.org/wiki/System_Management_Mode#Problems https://en.wikipedia.org/wiki/System_Management_Mode#Problem... That in combination with the Management Engine are ways in which people have been disowned of their own machines.
- ardaozkal 10y agoWhat does it mean to get this? https://s.ave.zone/066.png https://s.ave.zone/066.png [CHIPSEC] Modules failed 1: [-] FAILED: chipsec.modules.common.uefi.s3bootscript
- vorpalhex 10y ago:( -- clarification Technically all it means, if the error is as advertised, is that the uefi bootscript failed to match. Now, it could be as simple as that UEFI was customized by a vendor. Or it could be something less innocent.
- ardaozkal 10y agoI just reflashed my bios and then rechecked stuff, same thing... I did more research and s3bootscript seems to be associated with secure boot. Which I have disabled.
- xvilka 10y agoThis can be done manually using flashrom [1] tool to read (and write) the SPI (and not only SPI) flash and UEFITool [2] to unpack the corresponding image. I've even done some patching for better support of Intel platforms here [3]. Now doesn't have much time to rebase/cleanup/improve it, but hopefully someone will start from where I've finished. Both tools clearly need more love, and I hope current revelations will help to do that. [1] http://flashrom.org/ http://flashrom.org/ [2] https://github.com/LongSoft/UEFITool/tree/new_engine https://github.com/LongSoft/UEFITool/tree/new_engine (use 'new_engine' branch) [3] https://github.com/XVilka/flashrom/tree/layout_descriptor https://github.com/XVilka/flashrom/tree/layout_descriptor (use 'layout_descriptor' branch)
- tomxor 10y agoI also used flashrom instead because it's very simple to install and use... My problem is trying to verify this against the original (I'm running linux on an old macbookpro), i've got the raw flash dump and extracted the .scap from Apple... but after much searching cannot find a way to extract the raw EFI volume to compare. Any ideas?
- psyburr 10y agoWhy has Intel not released this tool before? EFI rootkits have always been a threat...