Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write about mitigations for branch predictor-based side channels #203

Open
kbeyls opened this issue Jun 14, 2023 · 3 comments
Open

Write about mitigations for branch predictor-based side channels #203

kbeyls opened this issue Jun 14, 2023 · 3 comments
Labels
content New content for the book

Comments

@kbeyls
Copy link
Member

kbeyls commented Jun 14, 2023

After a bit of investigation, it seems the following are mitigations that could be worthwhile to briefly discuss in the book:

  • (SW/HW) Flushing branch state when switching between sandboxes/distrusting contexts.
  • (HW) partitioning branch predictor "real estate", so it doesn't get shared.
  • (SW): remove branches, e.g. if-conversion - especially the branches that are dependent
    on secret data. algorithmically or through if-conversion.
  • (HW): randomize branch predictor indexing, i.e. how branches alias.
  • (HW/SW): Prevent predicting sensitive branches.
  • (SW): obfuscating a set of conditional branches by converting them into a single indirect branch.
    Zigzagger, see [@lee2017].
@kbeyls kbeyls added the content New content for the book label Jun 14, 2023
@MattPD
Copy link

MattPD commented Jun 27, 2023

@kbeyls
Copy link
Member Author

kbeyls commented Jun 28, 2023

Thank you for those pointers, that is very useful!
I think/hope I've already read most of the publications pointed to in there, but will check.

@all-contributors please add @MattPD for bug, review

@allcontributors
Copy link
Contributor

@kbeyls

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

I've put up a pull request to add @MattPD! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content New content for the book
Projects
None yet
Development

No branches or pull requests

2 participants