{"id":23080322,"url":"https://github.com/0xhericles/sconericles","last_synced_at":"2026-04-25T08:34:47.695Z","repository":{"id":67107812,"uuid":"205067466","full_name":"0xHericles/sconericles","owner":"0xHericles","description":"SCONE SGX Experiment","archived":false,"fork":false,"pushed_at":"2020-01-02T13:19:43.000Z","size":5355,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-07-03T03:03:37.313Z","etag":null,"topics":["attestation","container","containers","docker","intel-sgx","scone","security","sgx","sgx-enclave"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xHericles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-29T02:53:04.000Z","updated_at":"2020-09-30T03:29:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"7bea0201-ddf3-4430-a5a1-6589e76ad41f","html_url":"https://github.com/0xHericles/sconericles","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.4,"last_synced_commit":"400a8f8922d1ea224383ded598871f8369ed86a8"},"previous_names":["0xhericles/sconericles"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xHericles/sconericles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xHericles%2Fsconericles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xHericles%2Fsconericles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xHericles%2Fsconericles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xHericles%2Fsconericles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xHericles","download_url":"https://codeload.github.com/0xHericles/sconericles/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xHericles%2Fsconericles/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263250595,"owners_count":23437288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attestation","container","containers","docker","intel-sgx","scone","security","sgx","sgx-enclave"],"created_at":"2024-12-16T13:09:36.310Z","updated_at":"2026-04-25T08:34:47.648Z","avatar_url":"https://github.com/0xHericles.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SCONERICLES\n\n\n### Prepare the environment\n\n```\nsudo docker build -t sconericles:latest .\n```\n\n##### Run the image\n```\nsudo docker run -it --rm --device /dev/isgx --privileged --network=host sconericles:latest /bin/bash\n```\n\n\n### Try to get a memory dump\nFirst select a process to do the memory dump. Let's use `fib.c` as an example.\n```\n gcc fib.c -o fib\n```\n\n##### Run on sim mode\n\n```\nSCONE_ALPINE=1 SCONE_VERSION=1 SCONE_MODE=sim ./fib.c [a large number] \u003e /dev/null \u0026 \n```\n\n##### Run on hw mode\n```\nSCONE_ALPINE=1 SCONE_VERSION=1 SCONE_MODE=hw ./fib.c [a large number] \u003e /dev/null \u0026 \n```\n\n\n##### Get the PID and dump\n\n```\nSPID=$(ps -a | grep -v grep | grep [process name] | awk  '{print $1}')\n```\n\n\nUsing the `dumpstack.py` script and the `PID` of the process, run:\n```\npython dumpstack.py $SPID | strings -n [min-size] | grep [secret]\n```\n\nUsing the `memdump.py` script and the `PID` of the process, run:\n```\npython3 memdump.py $SPID \u003e fib.dump\n```\n\n\n#### Extra: Flask-API\n```\npython3 flask-api.py\n```\n\n```\ncurl -X POST -H \"Content-Type: application/json\" \\\n -d '{\"test\":\"ThisIsASecret\"}' \\\n http://localhost:5000\n```\n\n### Using cast-sh to stream the environment\nIn the cast-sh directory, run:\n```\npython3 -m cast\n```\n\u003e See more about cast-sh [here](https://github.com/hericlesme/cast-sh)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xhericles%2Fsconericles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xhericles%2Fsconericles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xhericles%2Fsconericles/lists"}