TOX
application/octet-stream
Magic Bytes
Offset: 0
74 6F 78 33
TOX is a proprietary component file format developed and maintained by Derivative for use within the TouchDesigner visual development platform. These files encapsulate specific network operator chains, including data, scripts, and interface elements, allowing developers to share and reuse modular logic across different projects. While generally considered safe for media production, TOX files can contain executable Python scripts; users should verify the integrity of components obtained from third-party sources to ensure secure execution.
Validation Code
How to validate .tox files in Python
Python
def is_tox(file_path: str) -> bool:
"""Check if file is a valid TOX by magic bytes."""
signature = bytes([0x74, 0x6F, 0x78, 0x33])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .tox files in Node.js
Node.js
function isTOX(buffer: Buffer): boolean {
const signature = Buffer.from([0x74, 0x6F, 0x78, 0x33]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsTOX(data []byte) bool {
signature := []byte{0x74, 0x6F, 0x78, 0x33}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/tox
curl https://filesignature.org/api/v1/tox