ACE
application/octet-stream
Magic Bytes
Offset: 7
2A 2A 41 43 45 2A 2A
ACE is a proprietary data compression archive format developed by e-merge GmbH for the WinAce software utility. It was historically utilized to bundle multiple files into a single compressed container, offering higher compression ratios than the ZIP standard. This legacy format is now considered obsolete after a critical directory traversal vulnerability was discovered in 2019, prompting most modern archiving applications to permanently remove extraction support.
Validation Code
How to validate .ace files in Python
Python
def is_ace(file_path: str) -> bool:
"""
Check if file is a valid ACE by magic bytes.
Signature offset: 7 bytes
"""
signature = bytes([0x2A, 0x2A, 0x41, 0x43, 0x45, 0x2A, 0x2A])
with open(file_path, "rb") as f:
f.seek(7)
return f.read(7) == signature
How to validate .ace files in Node.js
Node.js
function isACE(buffer: Buffer): boolean {
// Signature offset: 7 bytes
const signature = Buffer.from([0x2A, 0x2A, 0x41, 0x43, 0x45, 0x2A, 0x2A]);
if (buffer.length < 14) return false;
return buffer.subarray(7, 14).equals(signature);
}
Go
func IsACE(data []byte) bool {
// Signature offset: 7 bytes
signature := []byte{0x2A, 0x2A, 0x41, 0x43, 0x45, 0x2A, 0x2A}
if len(data) < 14 {
return false
}
return bytes.Equal(data[7:14], signature)
}
API Endpoint
GET
/api/v1/ace
curl https://filesignature.org/api/v1/ace