A Matroska file begins with
0x1a 0x45 0xdf 0xa3, as do all EBML files.
It contains an EMBL "DocType" element whose value is the string "matroska". This means that the byte sequence
0x42 0x82 0x88 'm 'a 't' 'r' 'o' 's' 'k' 'a' will appear in the file, normally near the beginning.