{"id":18275830,"url":"https://github.com/davideuler/ioctlfuzzer","last_synced_at":"2026-06-24T23:31:14.771Z","repository":{"id":30219688,"uuid":"33770726","full_name":"davideuler/ioctlfuzzer","owner":"davideuler","description":"Automatically exported from code.google.com/p/ioctlfuzzer","archived":false,"fork":false,"pushed_at":"2015-04-11T09:52:28.000Z","size":5888,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-24T04:38:31.588Z","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/davideuler.png","metadata":{"files":{"readme":"README.TXT","changelog":"CHANGELOG.TXT","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-11T09:49:56.000Z","updated_at":"2015-04-11T09:50:42.000Z","dependencies_parsed_at":"2022-09-19T17:50:14.867Z","dependency_job_id":null,"html_url":"https://github.com/davideuler/ioctlfuzzer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davideuler/ioctlfuzzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davideuler%2Fioctlfuzzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davideuler%2Fioctlfuzzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davideuler%2Fioctlfuzzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davideuler%2Fioctlfuzzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davideuler","download_url":"https://codeload.github.com/davideuler/ioctlfuzzer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davideuler%2Fioctlfuzzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34753781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-05T12:14:11.742Z","updated_at":"2026-06-24T23:31:14.764Z","avatar_url":"https://github.com/davideuler.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n  IOCTL Fuzzer ver. 1.3\r\n  http://code.google.com/p/ioctlfuzzer/\r\n  \r\n  (c) 2009-2011 eSage lab\r\n  http://www.esagelab.com/\r\n  dmitry@esagelab.com\r\n \r\n \r\n==============================================\r\n  Overview\r\n==============================================\r\n\r\n IOCTL Fuzzer is a tool designed to automate the task of searching vulnerabilities in Windows kernel drivers by performing fuzz tests on them.\r\n\r\nCurrent OS support (x32 and x64): Windows XP, Vista, 2003 Server, 2008 Server, 7.\r\n\r\n The fuzzer�s own driver hooks nt!NtDeviceIoControlFile() in order to take control of all IOCTL requests throughout the system. \r\n\r\n While processing IOCTLs, the fuzzer will spoof those IOCTLs conforming to conditions specified in the configuration file. A spoofed IOCTL is identical to the original IRP in all respects except the input data, which is changed to randomly generated fuzz.\r\n\r\n Besides the fuzzing functionality, monitoring mode is also available with the tool. The monitoring mode allows logging of IRPs, optionally including their HEX dumps, into a file and/or a console. \r\n \r\n Also, since 1.2 version exceptions monitoring feature is available, that can be usefull while fuzzing not only a kernel drivers. Exception monitoring is working through unexported function nt!KiDispatchException() pathing, which address obtained from Windows kernel debug symbols (they are automatically downloading from Microsoft's PDB server, during fuzzer initialization).\r\n\r\n Specific IOCTLs which are to be logged or fuzzed by the tool are defined in the XML configuration file. IOCTLs may be filtered by the following parameters:\r\n\r\n * Path to executable file corresponding to a process from which an IOCTL request is sent.\r\n * IOCTL destination device name.\r\n * IOCTL destination driver name.\r\n * IOCTL Control Code.\r\n\r\n Since 1.3 version IOCTL Fuzzer dumps _all_ catched IOCTLs information in text file %SystemDrive%\\ioctls.log\r\n Information from this file can be used for calculating requests count for each device/driver during the attack surface analysis (see below).\r\n\r\n\r\n==============================================\r\n  Command line options\r\n==============================================\r\n\r\n--config \u003cpath\u003e - Specify path to the fuzzer XML configuration file. For more information about configuration file format see example in bin/ioctlfuzzer.xml. If '--config' option is not specified - application will start in IOCTLs monitoring mode.\r\n\r\n--boot - Boot time fuzzing/monitoring. This option will run fuzzer with the next system reboot.\r\n\r\n--exceptions - Enable exceptions monitoring. Notice: files dbgeng.dll, dbghelp.dll and symsrv.dll are required for exceptions monitoring and must be placed into the same directory, as IOCTL Fuzzer executable.\r\n\r\n--noioctls - Disable IOCTLs monitoring, show exceptions only (this option valid if '--exceptions' has been specified).\r\n\r\n--uninstall - Uninstall IOCTL Fuzzer kernel driver and exit.\r\n\r\n--analyze - Attack surface analysis feature: prints list of all drivers, devices and their properties (security settings, number of catched IOCTL requests, driver file product/vendor information, opened handles for devices, etc.), see log file example in attack-surface-analysis_NT6.1_x86.log. \r\n\r\n--loadlog \u003cpath\u003e - Load catched IOCTLs information for attack surface analysis from external log file. This option can be used only with '--analyze', as '\u003cpath\u003e' parameter you can specify path to the catched IOCTLs log file (%SystemDrive%\\ioctls.log), which is created automatically when IOCTL Fuzzer runs in IOCTLs fuzzing or monitoring mode.\r\n\r\n\r\nTypical usage example (run IOCTL Fuzzer with XML config and enable exceptions monitoring):\r\n\r\n \u003e ioctlfuzzer.exe --config ioctlfuzzer.xml --exceptions\r\n\r\n\r\n==============================================\r\n  Using the fuzzer\r\n==============================================\r\n\r\nGeneral algorithm for fuzz-testing an application is as follows.\r\n\r\n1. Install target application onto a virtual machine.\r\n\r\n2. Attach a remote debugger to the virtual machine. Notice: how to configure WinDbg remote connection to VMware: http://silverstr.ufies.org/lotr0/windbg-vmware.html.\r\n\r\n3. Run IOCTL Fuzzer in fuzzing mode on the guest OS.\r\n\r\n4. Play around with target application unless an unhandled exception is displayed in the remotely attached debugger. Notice: normally, i.e. with no debugger attached, an unhandled exception will provoke a BSOD.  \r\n\r\n5. Release code execution on the virtual machine (F5 in WinDbg) to allow guest OS generate a crash dump.\r\n\r\n6. Analyze the crash dump. IOCTL which provoked the unhandled exception should be found at this step. \r\n\r\n7. If necessary, manual analysis of the application binary code may be performed.\r\n\r\n\r\n==============================================\r\n  Using the attack surface analysis feature\r\n==============================================\r\n\r\nTypical attack surface analysis usage scenario:\r\n  \r\n1. Enable boot time monitoring to collect information about the most frequently-used IOCTL requests: \r\n\r\n   \u003e ioctlfuzzer.exe --config ioctlfuzzer.xml --boot\r\n  \r\n2. Reboot the box.\r\n  \r\n3. After reboot run attack surface analysis and pass to the IOCTL Fuzzer path of the log file, with all of the collected IOCTLs information: \r\n\r\n   \u003e ioctlfuzzer.exe --analyze --loadlog %SystemDrive%\\ioctls.log.\r\n\r\n\r\n==============================================\r\n  Using the fuzzer with \r\n  Kernel Debugger Communication Engine\r\n==============================================\r\n \r\nIntegration with Kernel Debugger Communicatioin Engine allows the IOCTL Fuzzer to execute any commands in remote kernel debugger for IOCTL requests parameters, which were specified in the XML configuration file.\r\n \r\n\r\n1. Before running fuzzer you need to load Kernel Debugger Communicatioin Engine extension in your remote kernel debugger by executing command \".load \\path\\to\\ioctlfuzzer\\binaries\\dbgcb.dll\".\r\n\r\n\r\n2. Edit \"dbgcb\" nodes list in XML configuration file. For example, if you want to run \"kb 40\" command for each IOCTL request, that executed from the net.exe process context:\r\n\r\n\u003cdbgcb\u003e\r\n  \u003cprocess val=\"net.exe\"\u003e\u003c![CDATA[kb 40]]\u003e\u003c/process\u003e\r\n\u003c/dbgcb\u003e\r\n\r\nAlso, you can use \"device\" or \"driver\" nodes, for specifying device/driver name, and \"ioctl\" for I/O Control Code value:\r\n\r\n\u003cdbgcb\u003e\r\n  \u003cdevice val=\"\\Device\\Ndis\"\u003e\u003c![CDATA[kb 40]]\u003e\u003c/device\u003e\r\n  \u003cdriver val=\"\\Driver\\NDIS\"\u003e\u003c![CDATA[kb 40]]\u003e\u003c/driver\u003e\r\n  \u003cioctl val=\"0x00170014\"\u003e\u003c![CDATA[kb 40]]\u003e\u003c/ioctl\u003e\r\n\u003c/dbgcb\u003e\r\n\r\nIf command value is not specified -- fuzzer just breaks into debugger when catching request with the appropriate parameters:\r\n\r\n\u003cdbgcb\u003e\r\n  \u003cprocess val=\"net.exe\" /\u003e\r\n\u003c/dbgcb\u003e\r\n\r\n\r\n3. Run fuzzer with XML configuration file:\r\n\r\n   \u003e ioctlfuzzer.exe --config ioctlfuzzer.xml\r\n   \r\n\r\nNote: Kernel Debugger Communication engine uses breakpoints for interaction between debugger extension and target system (https://github.com/Cr4sh/DbgCb/blob/master/dbgcb_scheme.png), so, you can use VirtualKD (http://virtualkd.sysprogs.org/) for better performance.\r\n\r\n \r\n==============================================\r\n  Building from sources\r\n==============================================\r\n\r\n1. Download and install Windows Driver Kit Version 7.1.0\r\nhttp://www.microsoft.com/downloads/en/details.aspx?displaylang=en\u0026FamilyID=36a2630f-5d56-43b5-b996-7633f2ec14ff   \r\n \r\n2. Run Windows Server 2003 x86 (or x64, to build 64-bit version) Free Build Environment (Start -\u003e �Windows Driver Kits� -\u003e �WDK 7600.16385.1� -\u003e \r\n�Build Environments� -\u003e �Windows Server 2003� -\u003e �x86 Free Build Environment�).\r\n\r\n3. Go to the directory ./src/ and execute .\\build.bat (or .\\build64.bat, to build 64-bit version) from the Build Environment.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavideuler%2Fioctlfuzzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavideuler%2Fioctlfuzzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavideuler%2Fioctlfuzzer/lists"}