{"success":true,"data":{"ext":"trd","name":"TRD","description":"TRD is a RIFF-based file format associated with the TrID toolset and its original software ecosystem. It is used for structured data files handled by compatible applications, typically in workflow, analysis, or media-related contexts. The format is generally considered safe; however, as with many container formats, malformed or specially crafted files can cause parsing issues in outdated software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"52 59 46 46 54 52 49 44","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_trd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TRD by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x59, 0x46, 0x46, 0x54, 0x52, 0x49, 0x44])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isTRD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x59, 0x46, 0x46, 0x54, 0x52, 0x49, 0x44]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsTRD(data []byte) bool {\n    signature := []byte{0x52, 0x59, 0x46, 0x46, 0x54, 0x52, 0x49, 0x44}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}