{"id":13593748,"url":"https://github.com/SinaKarvandi/Hypervisor-From-Scratch","last_synced_at":"2025-04-09T05:32:11.877Z","repository":{"id":38862202,"uuid":"147253230","full_name":"SinaKarvandi/Hypervisor-From-Scratch","owner":"SinaKarvandi","description":"Source code of a multiple series of tutorials about the hypervisor. Available at: https://rayanfam.com/tutorials","archived":false,"fork":false,"pushed_at":"2024-09-05T13:56:49.000Z","size":31143,"stargazers_count":2317,"open_issues_count":4,"forks_count":318,"subscribers_count":54,"default_branch":"master","last_synced_at":"2025-04-07T03:01:47.857Z","etag":null,"topics":["ept","hidden-hook","hypervisor","tutorial","vmx","vt-x"],"latest_commit_sha":null,"homepage":"https://rayanfam.com/tutorials","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SinaKarvandi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-09-03T21:01:34.000Z","updated_at":"2025-04-07T02:51:59.000Z","dependencies_parsed_at":"2024-11-06T15:40:09.975Z","dependency_job_id":"39d4d1ac-e390-4f5f-a0e1-987251505bf3","html_url":"https://github.com/SinaKarvandi/Hypervisor-From-Scratch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinaKarvandi%2FHypervisor-From-Scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinaKarvandi%2FHypervisor-From-Scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinaKarvandi%2FHypervisor-From-Scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinaKarvandi%2FHypervisor-From-Scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SinaKarvandi","download_url":"https://codeload.github.com/SinaKarvandi/Hypervisor-From-Scratch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247986865,"owners_count":21028890,"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":["ept","hidden-hook","hypervisor","tutorial","vmx","vt-x"],"created_at":"2024-08-01T16:01:24.069Z","updated_at":"2025-04-09T05:32:11.853Z","avatar_url":"https://github.com/SinaKarvandi.png","language":"C","readme":"\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://rayanfam.com\"\u003e\n    \u003cimg src=\"images/logo.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eHypervisor From Scratch\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    A tutorial on creating a hypervisor from scratch\n    \u003cbr /\u003e\n    \u003ca href=\"https://rayanfam.com/tutorials/\"\u003e\u003cstrong\u003eAll the parts »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://rayanfam.com/topics/hypervisor-from-scratch-part-1/\"\u003ePart 1\u003c/a\u003e\n    ·\n    \u003ca href=\"https://rayanfam.com/topics/hypervisor-from-scratch-part-2/\"\u003ePart 2\u003c/a\u003e\n    ·\n  \u003ca href=\"https://rayanfam.com/topics/hypervisor-from-scratch-part-3/\"\u003ePart 3\u003c/a\u003e\n    ·\n  \u003ca href=\"https://rayanfam.com/topics/hypervisor-from-scratch-part-4/\"\u003ePart 4\u003c/a\u003e\n    ·\n  \u003ca href=\"https://rayanfam.com/topics/hypervisor-from-scratch-part-5/\"\u003ePart 5\u003c/a\u003e\n    ·\n  \u003ca href=\"https://rayanfam.com/topics/hypervisor-from-scratch-part-6/\"\u003ePart 6\u003c/a\u003e\n    ·\n  \u003ca href=\"https://rayanfam.com/topics/hypervisor-from-scratch-part-7/\"\u003ePart 7\u003c/a\u003e\n    ·\n  \u003ca href=\"https://rayanfam.com/topics/hypervisor-from-scratch-part-8/\"\u003ePart 8\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n**If you're looking to use a hypervisor for analysis and reverse engineering tasks, check out [HyperDbg](https://github.com/HyperDbg/HyperDbg) Debugger. It's a hypervisor-based debugger designed specifically for analyzing, fuzzing, and reversing applications. A free and comprehensive tutorial on hypervisor-based reverse engineering is available at [OpenSecurityTraining2's website](https://ost2.fyi/dbg3301) (_preferred_) and [YouTube](https://www.youtube.com/playlist?list=PLUFkSN0XLZ-kF1f143wlw8ujlH2A45nZY), which demonstrates numerous practical examples on how to utilize hypervisors for reverse engineering.**\n\n**Notice**: The _**Hypervisor From Scratch**_ tutorial is completely revised in **August 2022**. Codes from all parts are updated, unnecessary details are removed, and new explanations and materials are added to the tutorial.\n\n# Hypervisor From Scratch\n\nSource code of a multiple series of tutorials about the hypervisor. \n\nAvailable at: https://rayanfam.com/tutorials\n\n\n**Part 1 - Basic Concepts \u0026 Configure Testing Environment**\n(https://rayanfam.com/topics/hypervisor-from-scratch-part-1)\n\n\n**Part 2 - Entering VMX Operation** \n(https://rayanfam.com/topics/hypervisor-from-scratch-part-2)\n\n\n**Part 3 - Setting up Our First Virtual Machine** \n(https://rayanfam.com/topics/hypervisor-from-scratch-part-3)\n\n\n**Part 4 - Address Translation Using Extended Page Table (EPT)** \n(https://rayanfam.com/topics/hypervisor-from-scratch-part-4)\n\n\n**Part 5 - Setting up VMCS \u0026amp; Running Guest Code** \n(https://rayanfam.com/topics/hypervisor-from-scratch-part-5)\n\n\n**Part 6 - Virtualizing An Already Running System** \n(https://rayanfam.com/topics/hypervisor-from-scratch-part-6)\n\n\n**Part 7 - Using EPT \u0026 Page-Level Monitoring Features** \n(https://rayanfam.com/topics/hypervisor-from-scratch-part-7)\n\n\n**Part 8 - How To Do Magic With Hypervisor!**\n(https://rayanfam.com/topics/hypervisor-from-scratch-part-8)\n\n## Note\n\n**Note**: please keep in mind that hypervisors change over time because new features are added to the operating systems or using new technologies. For example, updates to Meltdown \u0026 Spectre have made a lot of changes to the hypervisors, so if you want to use Hypervisor From Scratch in your projects, research, or whatever, you have to use the driver from the latest parts of these tutorial series as this tutorial is actively updated and changes are applied to the newer parts (earlier parts keep untouched) so you might encounter errors and instability problems in the earlier parts thus make sure to use the latest parts in real-world projects.\n\n\n\n## Compile \u0026 Install\n\nIn order to compile this project, you have to use Windows Driver Kit (WDK), first install Visual Studio, then install WDK. After that, you can compile it.\n\n## Environment\n\nAll the drivers are tested on both physical-machine, and VMWare Workstations's nested-virtualization, from part 8 support to Hyper-V is added, which means that you can test part 8 and newer parts on physical-machine, VMWare Workstation's nested-virtualization, and Hyper-V's nested-virtualization.\n\n\n## Other Articles \u0026 Projects\n\nIf you want to know more about hypervisors, you can visit the [awesome virtualization](https://github.com/Wenzel/awesome-virtualization) repo.\n\n## Credits\n This series is written by:\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/Intel80x86\"\u003eSina Karvandi\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/PetrBenes\"\u003ePetr Beneš\u003c/a\u003e\u003cbr /\u003e\n\n Special Thanks to these guys for their help and contributions:\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/aionescu\"\u003eAlex Ionescu\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/standa_t\"\u003eSatoshi Tanda\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/Liran_Alon\"\u003eLiran Alon\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/gerhart_x\"\u003egerhart\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/@daaximus\"\u003eDaax\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/LordNoteworthy\"\u003eNoteworthy\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/ivansprundel\"\u003eivs\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/honorary_bot\"\u003eArtem Shishkin\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/shahriar_ee\"\u003eShahriar\u003c/a\u003e\u003cbr /\u003e\n- \u003ca href=\"https://twitter.com/ahmadgzi\"\u003eAhmad\u003c/a\u003e\u003cbr /\u003e\n- ...and many other people who helped to solve the problems\u003c/a\u003e\u003cbr /\u003e\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\n**Hypervisor From Scratch** is licensed under an **MIT** license.\n\n[contributors-shield]: https://img.shields.io/github/contributors/othneildrew/Best-README-Template.svg?style=flat-square\n[contributors-url]: https://github.com/SinaKarvandi/Hypervisor-From-Scratch/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/othneildrew/Best-README-Template.svg?style=flat-square\n[forks-url]: https://github.com/SinaKarvandi/Hypervisor-From-Scratch/network/members\n[stars-shield]: https://img.shields.io/github/stars/othneildrew/Best-README-Template.svg?style=flat-square\n[stars-url]: https://github.com/SinaKarvandi/Hypervisor-From-Scratch/stargazers\n[issues-shield]: https://img.shields.io/github/issues/othneildrew/Best-README-Template.svg?style=flat-square\n[issues-url]: https://github.com/SinaKarvandi/Hypervisor-From-Scratch/issues\n","funding_links":[],"categories":["Optics and Extra Info","C"],"sub_categories":["Extra Info"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSinaKarvandi%2FHypervisor-From-Scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSinaKarvandi%2FHypervisor-From-Scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSinaKarvandi%2FHypervisor-From-Scratch/lists"}