Drumlin Fully Secure PDF file
application/octet-stream
Magic Bytes
Offset: 0
7B 5C 70 77 69
Drumlin Fully Secure PDF (DRMX) is a proprietary document format developed by Drumlin Security to implement digital rights management (DRM) for Portable Document Format content. It is utilized by publishers and corporate entities to distribute sensitive manuals, ebooks, and technical documents while restricting unauthorized printing, copying, or sharing. These files utilize proprietary encryption and require the Javelin PDF Reader alongside specific authorization codes to manage document access and enforce license expirations.
Validation Code
How to validate .drmx files in Python
Python
def is_drmx(file_path: str) -> bool:
"""Check if file is a valid DRMX by magic bytes."""
signature = bytes([0x7B, 0x5C, 0x70, 0x77, 0x69])
with open(file_path, "rb") as f:
return f.read(5) == signature
How to validate .drmx files in Node.js
Node.js
function isDRMX(buffer: Buffer): boolean {
const signature = Buffer.from([0x7B, 0x5C, 0x70, 0x77, 0x69]);
return buffer.subarray(0, 5).equals(signature);
}
Go
func IsDRMX(data []byte) bool {
signature := []byte{0x7B, 0x5C, 0x70, 0x77, 0x69}
if len(data) < 5 {
return false
}
return bytes.Equal(data[:5], signature)
}
API Endpoint
GET
/api/v1/drmx
curl https://filesignature.org/api/v1/drmx