{"success":true,"data":{"ext":"vhdx","name":"VHDX","description":"Virtual Hard Disk v2 (VHDX) is a virtual disk image format created by Microsoft and used in Windows virtualization environments. It is primarily used by Hyper-V and other compatible tools to store the contents of virtual machine disks, including operating systems, applications, and data. It is not a legacy format; while generally safe, VHDX files can contain malicious content if obtained from untrusted sources and should be mounted with care.","mime":[],"risk_level":"Safe","signatures":[{"hex":"76 68 64 78 66 69 6C 65","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["adf","bin","dmg","g64","img","iso"],"usage":{"python":"def is_vhdx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid VHDX by magic bytes.\"\"\"\n    signature = bytes([0x76, 0x68, 0x64, 0x78, 0x66, 0x69, 0x6C, 0x65])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isVHDX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x76, 0x68, 0x64, 0x78, 0x66, 0x69, 0x6C, 0x65]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsVHDX(data []byte) bool {\n    signature := []byte{0x76, 0x68, 0x64, 0x78, 0x66, 0x69, 0x6C, 0x65}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Disk Images"}}