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

Refactor: page-fault abstraction in libsgxstep #52

Open
jovanbulck opened this issue Jun 28, 2022 · 2 comments
Open

Refactor: page-fault abstraction in libsgxstep #52

jovanbulck opened this issue Jun 28, 2022 · 2 comments
Labels

Comments

@jovanbulck
Copy link
Owner

Currently, page-fault attack code is rather unclean and has a lot of code duplication to setup fault handlers and revoke enclave page permissions through either mprotect calls and/or PTE remapping + editing..

Goal: Offer a simple and intuitive abstraction in libsgxstep/pf.c to mount page-fault controlled-channel attacks on enclaves so applications need only to focus on the actual attack logic (state machines) to interpret page-fault sequences.

@w-woloszyn
Copy link
Contributor

w-woloszyn commented May 28, 2024

Looks like a file pf.c does not exist and has never existed in the repository. (The output of git log --all --name-only --pretty=format: | grep 'pf.c' is empty.) Did you mean to write libsgxstep/pt.c?

EDIT: Oh, or do you mean to create such a file?

@jovanbulck
Copy link
Owner Author

yes, the idea indeed would be to create a new pf.c file but it's not here yet. This issue is open already way too long -- ideally I should make some time to cleanup the code and extract the common logic in a proper abstraction 😅

FWIW: you may want to have a look at an (unmaintained) tutorial I made long time ago with some support for page faults:

https://github.com/jovanbulck/sgx-tutorial-space18/blob/master/common/pf.c

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

No branches or pull requests

2 participants