Module polyfile

Module polyfile 

Source
Expand description

PolyFile attribution, polyglot container detection, and nested format parsing subsystem.

Implements:

  • Polyglot container identification (detecting files that simultaneously satisfy multiple independent, valid formats across different byte ranges, such as Image + ZIP polyglots, PDF + ZIP polyglots, and SFX executables).
  • Byte-range attribution mapping parsed format structures to [start, end) spans.
  • Bounded nested archive member inspection for container files.

Structs§

ByteRangeAttribution
Explicit attribution of a byte span to a recognized structural element.

Functions§

detect_polyglots
Detects whether a file is a composite polyglot container satisfying two or more distinct primary format specifications simultaneously.
inspect_nested_archive_entries
Inspects nested member file entries in an archive container to provide candidate information on encapsulated content.