PEB
application/octet-stream
Magic Bytes
Offset: 0
78 56 34
The PEB file format is a binary data structure associated with the Corel WordPerfect Program Editor, originally developed by WordPerfect Corporation. It primarily serves as a compiled storage format for macros and editor configurations within legacy versions of the word processing suite. While the format is largely obsolete and superseded by modern standards, it is considered safe for archival purposes as it lacks the complexity required to execute malicious instructions on contemporary systems.
Validation Code
How to validate .peb files in Python
Python
def is_peb(file_path: str) -> bool:
"""Check if file is a valid PEB by magic bytes."""
signature = bytes([0x78, 0x56, 0x34])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .peb files in Node.js
Node.js
function isPEB(buffer: Buffer): boolean {
const signature = Buffer.from([0x78, 0x56, 0x34]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsPEB(data []byte) bool {
signature := []byte{0x78, 0x56, 0x34}
if len(data) < 3 {
return false
}
return bytes.Equal(data[:3], signature)
}
API Endpoint
GET
/api/v1/peb
curl https://filesignature.org/api/v1/peb