Corel Binary metafile
application/octet-stream
Magic Bytes
Offset: 0
43 4F 4D 2B
Corel Binary Metafile is a proprietary vector graphics format developed by Corel Corporation for use within its creative software suite. This format functions as a streamlined version of the Corel Metafile Exchange (CMX) standard, specifically optimized for Object Linking and Embedding (OLE) operations between applications. Now considered a legacy format, it is rarely encountered in modern workflows and poses minimal security risks, as it was designed for internal data transfers rather than executable content.
Validation Code
How to validate .clb files in Python
Python
def is_clb(file_path: str) -> bool:
"""Check if file is a valid CLB by magic bytes."""
signature = bytes([0x43, 0x4F, 0x4D, 0x2B])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .clb files in Node.js
Node.js
function isCLB(buffer: Buffer): boolean {
const signature = Buffer.from([0x43, 0x4F, 0x4D, 0x2B]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsCLB(data []byte) bool {
signature := []byte{0x43, 0x4F, 0x4D, 0x2B}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/clb
curl https://filesignature.org/api/v1/clb