{"success":true,"data":{"ext":"elf","name":"ELF","description":"Executable and Linkable Format (ELF) is a binary file format defined by the Unix System V ABI and maintained through the broader UNIX and Linux platform specifications. It is used for executables, shared libraries, object files, and core dumps on Unix-like systems, including Linux and many embedded platforms. Because ELF files may contain executable code, they should be handled carefully; the format remains widely used and is not considered obsolete.","mime":["application/x-elf","application/x-executable"],"risk_level":"Safe","signatures":[{"hex":"7F 45 4C 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["so","axf","ko","o","out","prx"],"usage":{"python":"def is_elf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ELF by magic bytes.\"\"\"\n    signature = bytes([0x7F, 0x45, 0x4C, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isELF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x7F, 0x45, 0x4C, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsELF(data []byte) bool {\n    signature := []byte{0x7F, 0x45, 0x4C, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Executables"}}