VMware 4 Virtual Disk description file
application/octet-stream
Magic Bytes
Offset: 0
4B 44 4D
The VMware 4 Virtual Disk description file (VMDK) is a technical specification developed by VMware for defining the structure and properties of virtual machine hard disks. It acts as a metadata header that references physical or virtual data extents within VMware Workstation, Player, and ESXi virtualization environments. Although this specific version is considered a legacy format, it remains widely compatible with modern hypervisors and is inherently safe because it contains plain-text configuration metadata rather than executable code or scripts.
Validation Code
How to validate .vmdk files in Python
Python
def is_vmdk(file_path: str) -> bool:
"""Check if file is a valid VMDK by magic bytes."""
signature = bytes([0x4B, 0x44, 0x4D])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .vmdk files in Node.js
Node.js
function isVMDK(buffer: Buffer): boolean {
const signature = Buffer.from([0x4B, 0x44, 0x4D]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsVMDK(data []byte) bool {
signature := []byte{0x4B, 0x44, 0x4D}
if len(data) < 3 {
return false
}
return bytes.Equal(data[:3], signature)
}
API Endpoint
GET
/api/v1/vmdk
curl https://filesignature.org/api/v1/vmdk