r/ExploitDev • • May 21 '26

99 malformed PE fixtures: exploring loader edge‑cases and parser breakpoints

I’ve been working on a set of 99 malformed PE fixtures that target structural edge‑cases in the Windows loader and common PE parsers. These aren’t exploit payloads — they’re structural anomalies designed to expose how different tools behave when the PE format gets weird.

Examples of anomalies in the set

  • sections with impossible flag combinations  

  • RVA ranges that overlap or point nowhere  

  • entrypoints in headers or overlays  

  • broken import descriptors  

  • malformed resource directories  

  • zero‑length sections with RWX flags  

  • entropy‑based obfuscation hints  

  • directory entries that contradict the optional header  

Why this matters for exploit dev

A surprising number of tools:

  • mis‑map sections  

  • mis‑calculate image size  

  • trust invalid directory entries  

  • or crash outright  

Understanding these behaviours is useful when you’re:

  • crafting weird binaries  

  • exploring loader inconsistencies  

  • building polyglots  

  • or fuzzing PE‑aware components  

If people want it

I can post:

  • the full anomaly list  

  • the behaviour matrix across tools  

  • the fixtures themselves  

  • or a breakdown of which anomalies cause which failures  

Let me know if this is the kind of thing you want to see more of.

11 Upvotes

1 comment sorted by