Google Drive Drawing link
application/octet-stream
Magic Bytes
Offset: 0
7B 44 52 4D 50 44 4B 7D
The Google Drive Drawing link is a proprietary shortcut file format created by Google to bridge local desktop environments with cloud-based content. These files function primarily as pointers, allowing users to launch and edit cloud-hosted vector graphics directly from local file explorers via the default web browser. As these files contain only metadata and resource locators rather than executable code or binary image data, they present minimal security risks to the end user.
Validation Code
How to validate .gdraw files in Python
Python
def is_gdraw(file_path: str) -> bool:
"""Check if file is a valid GDRAW by magic bytes."""
signature = bytes([0x7B, 0x44, 0x52, 0x4D, 0x50, 0x44, 0x4B, 0x7D])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .gdraw files in Node.js
Node.js
function isGDRAW(buffer: Buffer): boolean {
const signature = Buffer.from([0x7B, 0x44, 0x52, 0x4D, 0x50, 0x44, 0x4B, 0x7D]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsGDRAW(data []byte) bool {
signature := []byte{0x7B, 0x44, 0x52, 0x4D, 0x50, 0x44, 0x4B, 0x7D}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/gdraw
curl https://filesignature.org/api/v1/gdraw