{"success":true,"data":{"ext":"efi","name":"EFI","description":"The Extensible Firmware Interface (EFI) file format is an executable image format defined by Intel and later standardized by the UEFI Forum. It is used to load firmware applications, bootloaders, and operating system components in UEFI-based systems. Because EFI files are executable code, they should be obtained from trusted sources; the format is now part of the broader UEFI standard, while the older Intel EFI name is largely historical.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4D 5A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_efi(file_path: str) -> bool:\n    \"\"\"Check if file is a valid EFI by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x5A])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isEFI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x5A]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsEFI(data []byte) bool {\n    signature := []byte{0x4D, 0x5A}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}