{"success":true,"data":{"ext":"webm","name":"WebM video file","description":"WebM is an open media container format developed by Google and maintained through the WebM Project. It is used for storing video and audio for web playback, streaming, and HTML5 media delivery in browsers and media players. The format is generally considered safe, though as a container it may carry encoded streams and metadata; security concerns usually depend on the player or codec implementation rather than the file format itself.","mime":["video/webm"],"risk_level":"Safe","signatures":[{"hex":"1A 45 DF A3","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["mkv","mka","3g2","3gp","asf","avi"],"usage":{"python":"def is_webm(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WEBM by magic bytes.\"\"\"\n    signature = bytes([0x1A, 0x45, 0xDF, 0xA3])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isWEBM(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x1A, 0x45, 0xDF, 0xA3]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsWEBM(data []byte) bool {\n    signature := []byte{0x1A, 0x45, 0xDF, 0xA3}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Video"}}