Skip to content

Fix Windows driver and userspace target harness#21

Merged
Wenzel merged 40 commits intoIntelLabs:masterfrom
Wenzel:fix_windows
Jul 18, 2023
Merged

Fix Windows driver and userspace target harness#21
Wenzel merged 40 commits intoIntelLabs:masterfrom
Wenzel:fix_windows

Conversation

@Wenzel
Copy link
Copy Markdown
Contributor

@Wenzel Wenzel commented Jun 28, 2023

This PR fixes the windows-x86_64 and windows-x86_64-userspace example harnesses.

VM template

It first provides a Windows VM template via Packer, based on the latest Windows x64 22h2 Entreprise ISO, with the necessary tools to compile a driver and testsign it.
The latest Visualstudio, SDK and WDK are installed inside the VM (via Ansible).

see templates/windows: make build

From there, the VM is exported as a vagrant box through the vagrant-post-processor, and can be imported into Vagrant:
see templates/windows: make import

Provision the target harnesses

At this point, the windows template is availabel in Vagrant.

  • Go to windows-x86_64/
  • run make init to import and define VM into qemu:///session
  • run make provision_userspace or provision_driver whether you want to setup the usrspace or driver target

Once that's done, just fuzz the target with
kafl fuzz

The image path is already set in kafl.yml

@Wenzel Wenzel requested a review from il-steffen July 3, 2023 13:28
@Wenzel Wenzel marked this pull request as draft July 7, 2023 17:08
@Wenzel Wenzel marked this pull request as ready for review July 18, 2023 15:53
@Wenzel Wenzel force-pushed the fix_windows branch 2 times, most recently from 62276db to 9bcbb55 Compare July 18, 2023 17:26
@Wenzel Wenzel merged commit a34f08c into IntelLabs:master Jul 18, 2023
@Wenzel Wenzel deleted the fix_windows branch July 18, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants