{"id":13841373,"url":"https://github.com/lab52io/StealAllTokens","last_synced_at":"2025-07-11T12:31:30.539Z","repository":{"id":132811513,"uuid":"424638800","full_name":"lab52io/StealAllTokens","owner":"lab52io","description":"This PoC uses two diferent technics for stealing  the primary token from all running processes, showing that is possible to impersonate and use whatever token present at any process","archived":false,"fork":false,"pushed_at":"2021-11-04T17:11:50.000Z","size":93,"stargazers_count":55,"open_issues_count":0,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-21T11:38:35.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/lab52io.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}},"created_at":"2021-11-04T15:08:18.000Z","updated_at":"2024-06-21T00:09:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"42de21b2-46c3-4ce0-bab4-a3252f3fdba2","html_url":"https://github.com/lab52io/StealAllTokens","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lab52io/StealAllTokens","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab52io%2FStealAllTokens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab52io%2FStealAllTokens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab52io%2FStealAllTokens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab52io%2FStealAllTokens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lab52io","download_url":"https://codeload.github.com/lab52io/StealAllTokens/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab52io%2FStealAllTokens/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264806661,"owners_count":23666673,"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":[],"created_at":"2024-08-04T17:01:09.561Z","updated_at":"2025-07-11T12:31:30.167Z","avatar_url":"https://github.com/lab52io.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# StealAllTokens\nThis PoC uses two diferent technics for stealing the primary token from all running processes, showing that is possible to impersonate and use whatever token present at any process\n\n![](Img/TI.png)\n\n\n# Blogpost\n\n\n# Credits\n* https://posts.specterops.io/understanding-and-defending-against-access-token-theft-finding-alternatives-to-winlogon-exe-80696c8a73b\n* https://github.com/lab52io/StopDefender\n* https://www.mcafee.com/enterprise/en-us/assets/reports/rp-access-token-theft-manipulation-attacks.pdf\n* http://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%20Functions%2FNT%20Objects%2FThread%2FNtImpersonateThread.html\n* https://googleprojectzero.blogspot.com/2016/03/exploiting-leaked-thread-handle.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab52io%2FStealAllTokens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flab52io%2FStealAllTokens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab52io%2FStealAllTokens/lists"}