Here is an excellent reference of “file signatures”, data bytes at the beginning of files to use for identification. Under Unix these are called “magic numbers”.
http://www.garykessler.net/library/file_sigs.html
Some firewall on-the-fly antivirus systems can use these to decide which files to scan.