mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2024-12-25 15:29:40 -05:00
Merge pull request #201 from pterocles/types-of-cpu-attacks
Micro-architectural bugs in Intel and AMD CPUs
This commit is contained in:
commit
10be1bf92e
35
guide.md
35
guide.md
@ -383,6 +383,8 @@ Finally note that this guide does mention and even recommends various commercial
|
|||||||
- [Appendix B1: Checklist of things to verify before sharing information:]
|
- [Appendix B1: Checklist of things to verify before sharing information:]
|
||||||
- [Appendix B2: Monero Disclaimer]
|
- [Appendix B2: Monero Disclaimer]
|
||||||
- [Appendix B3: Threat modeling resources]
|
- [Appendix B3: Threat modeling resources]
|
||||||
|
- [Appendix B4: Important notes about evil-maid and tampering]
|
||||||
|
- [Appendix B5: Types of CPU attacks:]
|
||||||
- [References:]
|
- [References:]
|
||||||
|
|
||||||
# Pre-requisites and limitations:
|
# Pre-requisites and limitations:
|
||||||
@ -861,21 +863,23 @@ These have already been affected by several security vulnerabilities in the past
|
|||||||
|
|
||||||
There are some not so straightforward ways[^107] to disable the Intel IME on some CPUs and you should do so if you can. For some AMD laptops, you can disable it within the BIOS settings by disabling PSP.
|
There are some not so straightforward ways[^107] to disable the Intel IME on some CPUs and you should do so if you can. For some AMD laptops, you can disable it within the BIOS settings by disabling PSP.
|
||||||
|
|
||||||
Note that to AMD's defense, so far and AFAIK, there were no security vulnerabilities found for ASP and no backdoors either: See <https://www.youtube.com/watch?v=bKH5nGLgi08&t=2834s> <sup>[[Invidious]][77]</sup>. In addition, AMD PSP does not provide any remote management capabilities contrary to Intel IME.
|
Note that, to AMD's defense, there were no security vulnerabilities found for ASP and no backdoors either. See <https://www.youtube.com/watch?v=bKH5nGLgi08&t=2834s> <sup>[[Invidious]][77]</sup>. In addition, AMD PSP does not provide any remote management capabilities contrary to Intel IME.
|
||||||
|
|
||||||
If you are feeling a bit more adventurous, you could install your own BIOS using Libreboot or Coreboot [^108] if your laptop supports it (be aware that Coreboot does contain some propriety code unlike its fork Libreboot).
|
If you are feeling a bit more adventurous, you could install your own BIOS using Libreboot or Coreboot [^108] if your laptop supports it (be aware that Coreboot does contain some propriety code unlike its fork Libreboot).
|
||||||
|
|
||||||
In addition, some CPUs have unfixable flaws (especially Intel CPUs) that could be exploited by various malware. Here is a good current list of such vulnerabilities affecting recent widespread CPUs: <https://en.wikipedia.org/wiki/Transient_execution_CPU_vulnerability> <sup>[[Wikiless]][78]</sup> <sup>[[Archive.org]][79]</sup>
|
|
||||||
|
|
||||||
Check yourself:
|
Check yourself:
|
||||||
|
|
||||||
- If you are using Linux you can check the vulnerability status of your CPU to Spectre/Meltdown attacks by using <https://github.com/speed47/spectre-meltdown-checker> <sup>[[Archive.org]][80]</sup> which is available as a package for most Linux distros including Whonix.
|
- If you are using Linux you can check the vulnerability status of your CPU to Spectre/Meltdown attacks by using <https://github.com/speed47/spectre-meltdown-checker> <sup>[[Archive.org]][80]</sup> which is available as a package for most Linux distros including Whonix. Spectre is a transient execution attack. There is also PoC code for Spectre v1 and v2 on iPhone devices here: <https://github.com/cispa/BranchDifferent> <sup>[[Archive.org]](https://web.archive.org/web/20220814122148/https://github.com/cispa/BranchDifferent)</sup> and here <https://misc0110.net/files/applespectre_dimva22.pdf> <sup>[[Archive.org]](https://web.archive.org/web/20220814122652/https://misc0110.net/files/applespectre_dimva22.pdf)</sup>
|
||||||
|
|
||||||
- If you are using Windows, you can check the vulnerability status of your CPU using inSpectre <https://www.grc.com/inspectre.htm> <sup>[[Archive.org]][81]</sup>
|
- If you are using Windows, you can check the vulnerability status of your CPU using inSpectre <https://www.grc.com/inspectre.htm> <sup>[[Archive.org]][81]</sup>
|
||||||
|
|
||||||
|
Some CPUs have unfixable flaws (especially Intel CPUs) that could be exploited by various malware. Here is a good current list of such vulnerabilities affecting recent widespread CPUs: <https://en.wikipedia.org/wiki/Transient_execution_CPU_vulnerability> <sup>[[Wikiless]](https://wikiless.org/wiki/Transient_execution_CPU_vulnerability)</sup> <sup>[[Archive.org]](https://web.archive.org/web/https://en.wikipedia.org/wiki/Transient_execution_CPU_vulnerability)</sup>
|
||||||
|
|
||||||
Some of these can be avoided using Virtualization Software settings that can mitigate such exploits. See this guide for more information <https://www.whonix.org/wiki/Spectre_Meltdown> <sup>[[Archive.org]][82]</sup> (warning: these can severely impact the performance of your VMs).
|
Some of these can be avoided using Virtualization Software settings that can mitigate such exploits. See this guide for more information <https://www.whonix.org/wiki/Spectre_Meltdown> <sup>[[Archive.org]][82]</sup> (warning: these can severely impact the performance of your VMs).
|
||||||
|
|
||||||
We will therefore mitigate some of these issues in this guide by recommending the use of virtual machines on a dedicated anonymous laptop for your sensitive activities that will only be used from an anonymous public network.
|
This guide won't go too deep into side-channel and microarchitecture attacks but we will highlight some issues with both Intel and AMD CPU architectures that will be mitigated throughout. It's important to recognize hardware is just as susceptible to bugs, and therefore exploitation, regardless of manufacturer.
|
||||||
|
|
||||||
|
We will mitigate some of these issues in this guide by recommending the use of virtual machines on a dedicated anonymous laptop for your sensitive activities that will only be used from an anonymous public network.
|
||||||
|
|
||||||
**In addition, we recommend the use of AMD CPUs instead of Intel CPUs.**
|
**In addition, we recommend the use of AMD CPUs instead of Intel CPUs.**
|
||||||
|
|
||||||
@ -12355,6 +12359,24 @@ On the other hand, allowing the attack but detecting it will not let your advers
|
|||||||
|
|
||||||
See the [Some last OPSEC thoughts][Some last OPSEC thoughts:] section for some tips.
|
See the [Some last OPSEC thoughts][Some last OPSEC thoughts:] section for some tips.
|
||||||
|
|
||||||
|
# Appendix B5: Types of CPU attacks:
|
||||||
|
|
||||||
|
Select security issues plague many Intel CPUs, such as transient execution attacks (formerly called speculative execution side channel methods). Here you can check your CPU against affected micro-processors with known bugs <https://www.intel.com/content/www/us/en/developer/topic-technology/software-security-guidance/processors-affected-consolidated-product-cpu-model.html> <sup>[[Archive.org]](https://web.archive.org/web/20220814123250/https://www.intel.com/content/www/us/en/developer/topic-technology/software-security-guidance/processors-affected-consolidated-product-cpu-model.html)</sup>.
|
||||||
|
|
||||||
|
The Advanced Programmable Interrupt Controller (APIC) is an integrated CPU component responsible for accepting, prioritizing, and dispatching interrupts to logical processors (LPs). The APIC can operate in xAPIC mode, also known as legacy mode, in which APIC configuration registers are exposed through a memory-mapped I/O (MMIO) page.
|
||||||
|
|
||||||
|
Enter AEPIC (stylized ÆPIC), the first architectural CPU bug that leaks stale data from the microarchitecture without using a side channel. It architecturally leaks stale data incorrectly returned by reading undefined APIC-register ranges. This novel method was revealed in the paper *ÆPIC Leak: Architecturally Leaking Uninitialized Data from the
|
||||||
|
Microarchitecture* which you can read here: [Borrello2022AEPIC](https://aepicleak.com/aepicleak.pdf) <sup>[[Archive.org]](https://web.archive.org/web/20220812101719/https://aepicleak.com/aepicleak.pdf)</sup>
|
||||||
|
|
||||||
|
Model-specific registers (MSRs) and their configuration bits can also be detected automatically on Intel and AMD CPUs: [Kogler2022](https://github.com/IAIK/msrevelio) <sup>[[Archive.org]](https://web.archive.org/web/20220814125349/https://andreaskogler.com/papers/msrtemplating.pdf)</sup>. This allows an attacker (with heavy knowledge of CPU functionality) to view information about the MSRs, which are essentially special CPU registers allowing interaction with low-level CPU features and advanced configuration of the CPU's behavior. Modern x86 CPUs have hundreds of these, which are usually documented very little and in increasingly less verbosity over the past few years.
|
||||||
|
|
||||||
|
#### Some other microarchitecture bugs:
|
||||||
|
|
||||||
|
- [PLATYPUS](https://platypusattack.com/) <sup>[[Archive.org]](https://web.archive.org/web/20220814132343/https://platypusattack.com/)</sup> - Software-based Power Side-Channel Attacks on x86, which shows how an unprivileged attacker can leak AES-NI keys from Intel SGX and the Linux kernel and break kernel address-space layout randomization (KASLR).
|
||||||
|
- [SQUIP](https://www.nextplatform.com/2022/08/11/squip-side-channel-attack-rattles-amds-zen-cores/) <sup>[[Archive.org]](https://web.archive.org/web/20220812082548/https://www.nextplatform.com/2022/08/11/squip-side-channel-attack-rattles-amds-zen-cores/)</sup> - Scheduler Queue Usage via Interface Probing. All of AMD's Zen CPUs are vulnerable to a medium-severity flaw which can allow threat actors to run side-channel attacks.
|
||||||
|
- [Hertzbleed](https://www.schneier.com/blog/archives/2022/06/hertzbleed-a-new-side-channel-attack.html) <sup>[[Archive.org]](https://web.archive.org/web/20220712000058/https://www.schneier.com/blog/archives/2022/06/hertzbleed-a-new-side-channel-attack.html)</sup> - Deducing cryptographic keys by analyzing power consumption has long been an attack, but it’s not generally viable because measuring power consumption is often hard. This new attack measures power consumption by measuring time, making it easier to exploit.
|
||||||
|
- [Retbleed](https://www.bleepingcomputer.com/news/security/new-retbleed-speculative-execution-cpu-attack-bypasses-retpoline-fixes/) <sup>[[Archive.org]](https://web.archive.org/web/20220804151557/https://www.bleepingcomputer.com/news/security/new-retbleed-speculative-execution-cpu-attack-bypasses-retpoline-fixes/)</sup> - Retbleed focuses on return instructions, which are part of the retpoline software mitigation against the speculative execution class of attacks that became known starting early 2018, with Spectre.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# References:
|
# References:
|
||||||
@ -13722,6 +13744,7 @@ See the [Some last OPSEC thoughts][Some last OPSEC thoughts:] section for some t
|
|||||||
[Appendix B2: Monero Disclaimer]: #appendix-b2-monero-disclaimer
|
[Appendix B2: Monero Disclaimer]: #appendix-b2-monero-disclaimer
|
||||||
[Appendix B3: Threat modeling resources]: #appendix-b3-threat-modeling-resources
|
[Appendix B3: Threat modeling resources]: #appendix-b3-threat-modeling-resources
|
||||||
[Appendix B4: Important notes about evil-maid and tampering]: #appendix-b4-important-notes-about-evil-maid-and-tampering
|
[Appendix B4: Important notes about evil-maid and tampering]: #appendix-b4-important-notes-about-evil-maid-and-tampering
|
||||||
|
[Appendix B5: Types of CPU attacks:]: #appendix-b5-types-of-cpu-attacks
|
||||||
[References:]: #references
|
[References:]: #references
|
||||||
[cc-by-nc-4.0]: https://creativecommons.org/licenses/by-nc/4.0/
|
[cc-by-nc-4.0]: https://creativecommons.org/licenses/by-nc/4.0/
|
||||||
[27]: https://web.archive.org/web/https://creativecommons.org/licenses/by-nc/4.0/
|
[27]: https://web.archive.org/web/https://creativecommons.org/licenses/by-nc/4.0/
|
||||||
@ -13776,8 +13799,6 @@ See the [Some last OPSEC thoughts][Some last OPSEC thoughts:] section for some t
|
|||||||
[75]: https://yewtu.be/watch?v=siCk4pGGcqA
|
[75]: https://yewtu.be/watch?v=siCk4pGGcqA
|
||||||
[76]: https://yewtu.be/watch?v=mYsTBPqbya8
|
[76]: https://yewtu.be/watch?v=mYsTBPqbya8
|
||||||
[77]: https://yewtu.be/watch?v=bKH5nGLgi08&t=2834s
|
[77]: https://yewtu.be/watch?v=bKH5nGLgi08&t=2834s
|
||||||
[78]: https://wikiless.org/wiki/Transient_execution_CPU_vulnerability
|
|
||||||
[79]: https://web.archive.org/web/https://en.wikipedia.org/wiki/Transient_execution_CPU_vulnerability
|
|
||||||
[80]: https://web.archive.org/web/https://github.com/speed47/spectre-meltdown-checker
|
[80]: https://web.archive.org/web/https://github.com/speed47/spectre-meltdown-checker
|
||||||
[81]: https://web.archive.org/web/https://www.grc.com/inspectre.htm
|
[81]: https://web.archive.org/web/https://www.grc.com/inspectre.htm
|
||||||
[82]: https://web.archive.org/web/https://www.whonix.org/wiki/Spectre_Meltdown
|
[82]: https://web.archive.org/web/https://www.whonix.org/wiki/Spectre_Meltdown
|
||||||
|
Loading…
Reference in New Issue
Block a user