https://github.com/ztgx/sgx_attacker
Try to attack SGX
https://github.com/ztgx/sgx_attacker
Last synced: 5 months ago
JSON representation
Try to attack SGX
- Host: GitHub
- URL: https://github.com/ztgx/sgx_attacker
- Owner: zTgx
- Created: 2024-10-17T02:01:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T02:01:59.000Z (almost 2 years ago)
- Last Synced: 2025-08-11T06:55:14.317Z (12 months ago)
- Language: Makefile
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sgx attacker
* Open Terminal A Build & Run
```shell
SGX_MODE=SW make
./app
```
STAY THERE AND DON'T PRESS ENTER.
---
* Open a new Terminal B
```shell
ps aux | grep app
ztgx 97650 1.5 0.0 26432 6068 pts/3 S+ 21:55 0:00 ./app
```
* run scanmem
```shell
sudo scanmem -p 97650
enter untrusted value 987654321
```
* result
```
.ok
info: we currently have 1 matches.
info: match identified, use "set" to modify value.
info: enter "help" for other commands.
```
* set untrusted value to 1
```
set 1
```
* Back to terminal A, press enter
```shell
trusted value : 123456789
untrusted value : 1
```