Digital forensics investigators use exactly this magic-bytes-then-fields-then-offsets methodology to recover proprietary game save formats and legacy documents with no public spec, and tools like Kaitai Struct exist to turn a hypothesis built this way into a reusable declarative parser. The same skill is what let researchers reverse-engineer early ransomware's custom container formats to build decryption tools.