def is_elf(bytes):
    """Return True if the first 4 bytes match '.ELF'.

    This is the file signature for an executable file.
    https://en.wikipedia.org/wiki/Executable_and_Linkable_Format
    """
    return bytes[:4] == b'\x7F\x45\x4C\x46'