{"success":true,"data":{"ext":"hazelrules","name":"HAZELRULES","description":"HAZELRULES is a proprietary rules file format associated with the Hazel application and maintained by its developers. It stores automation rules and decision logic used to organize files, trigger actions, and control workflow behavior in supported software environments. The format is generally safe and is used for configuration rather than executable content, although files from untrusted sources should still be reviewed before import.","mime":[],"risk_level":"Safe","signatures":[{"hex":"48 5A 4C 52 00 00 00 18","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_hazelrules(file_path: str) -> bool:\n    \"\"\"Check if file is a valid HAZELRULES by magic bytes.\"\"\"\n    signature = bytes([0x48, 0x5A, 0x4C, 0x52, 0x00, 0x00, 0x00, 0x18])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isHAZELRULES(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x48, 0x5A, 0x4C, 0x52, 0x00, 0x00, 0x00, 0x18]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsHAZELRULES(data []byte) bool {\n    signature := []byte{0x48, 0x5A, 0x4C, 0x52, 0x00, 0x00, 0x00, 0x18}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}