trailofbits / sienna-locomotive

A user-friendly fuzzing and crash triage tool for Windows
https://blog.trailofbits.com/user-friendly-fuzzing-with-sienna-locomotive
GNU Affero General Public License v3.0
131 stars 24 forks source link

`fuzzer#mutate` should take a resource string instead of a HANDLE #341

Closed woodruffw closed 5 years ago

woodruffw commented 5 years ago

Right now, the mutate function in the fuzzer takes a HANDLE that corresponds to the buffer being mutated. It then uses that HANDLE in the ReadFile case to determine the abstract resource (filename, network resource, registry key) behind the buffer and sends a string for that resource to the server, to be recorded in the FKT.

Since calls like MapViewOfFile don't have a direct handle, we should really be detecting this resource string earlier and passing it into mutate directly. This will make analyzing the FKTs slightly easier.