Trail of Bits

File formats

Polyfile

Maps the semantic structure of files, including polyglots and other intentionally confusing inputs.

View on GitHub trailofbits/polyfile

Best for

Investigating weird files before trusting a parser chain.

Surface

File formats

Catalog group

Model strange files, parsers, and data flow

Repository

trailofbits/polyfile

From the README

A utility to identify and map the semantic and syntactic structure of files, including polyglots, chimeras, and schizophrenic files. It has a pure-Python implementation of libmagic and can act as a drop-in replacement for the file command. However, unlike file, PolyFile can recursively identify embedded files, like binwalk.
Read the full README on GitHub ↗

Related tools · Model strange files, parsers, and data flow