{"success":true,"data":{"ext":"glb","name":"GLB","description":"GLB is the binary version of the glTF 2.0 3D asset format, standardized and maintained by the Khronos Group. It is used to package 3D models, scenes, materials, textures, and animations for web graphics, game engines, augmented reality, and virtual reality workflows. GLB files are generally safe, but as with other media assets, malformed files can expose vulnerabilities in importers or rendering libraries.","mime":[],"risk_level":"Safe","signatures":[{"hex":"67 6C 54 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["3ds","blend","obj","stl"],"usage":{"python":"def is_glb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GLB by magic bytes.\"\"\"\n    signature = bytes([0x67, 0x6C, 0x54, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isGLB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x67, 0x6C, 0x54, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsGLB(data []byte) bool {\n    signature := []byte{0x67, 0x6C, 0x54, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"CAD & 3D"}}