Re:OpenZL: An Open Source Format-Aware Compression Framework
by snapplebobapple on Tuesday October 07, 2025 @12:12AM
(#45499317)
Isnt that a huge vector for viruses if exevutable code is included in the compressed archive?
[ Parent
| on HN ]
Re:OpenZL: An Open Source Format-Aware Compression Framework
by themerone on Tuesday October 07, 2025 @12:15AM
(#45499333)
Wasm can be sandboxed. Its a safe as visiting a website with javascript.
Re:OpenZL: An Open Source Format-Aware Compression Framework
by orangeboats on Tuesday October 07, 2025 @02:08AM
(#45499861)
Can't the decompressor still produce a malicious uncompressed file?
Re:OpenZL: An Open Source Format-Aware Compression Framework
by tlb on Tuesday October 07, 2025 @02:20AM
(#45499905)
Any decompressor can produce a malicious file. Just feed a malicious file to the compressor.
Re:OpenZL: An Open Source Format-Aware Compression Framework
by orangeboats on Tuesday October 07, 2025 @02:30AM
(#45499972)
Yes, but currently the decompressors we use (so things like zstd, zlib, 7z) come from a mostly-verifiable source -- either you downloaded it straight from the official site, or you got it from your distro repo.
However, we are talking about an arbitrary decompressor here. The decompressor WASM is sandboxed from the outside world and it can't wreak havoc on your system, true, but nothing stops it from producing a malicious uncompressed file from a known good compressed file.
Re:OpenZL: An Open Source Format-Aware Compression Framework
by mort96 on Tuesday October 07, 2025 @03:13AM
(#45500232)
The format-specific decompressor is part of the compressed file. Nothing here crosses a security boundary. Either the compressed file is trustworthy and therefore decompresses into a trustworthy file, or the compressed file is not trustworthy and therefor decompresses into a non-trustworthy file.
If the compressed file is malicious, it doesn't matter whether it's malicious because it originated from a malicious uncompressed file, or is malicious because it originated from a benign uncompressed file and the transformation into a compressed file introduces the malicious parts due to the bundled custom decompressor.
Re:OpenZL: An Open Source Format-Aware Compression Framework
by yorwba on Tuesday October 07, 2025 @02:39AM
(#45500022)
If the decompressor is included in the compressed file and it's malicious, the file can hardly be called known good.
Re:OpenZL: An Open Source Format-Aware Compression Framework
by tecleandor on Tuesday October 07, 2025 @03:17AM
(#45500252)
But also I guess the logic of the decompressor could output different files in different occasions, for example, if it detects a victim, making it difficult to verify.
Re:OpenZL: An Open Source Format-Aware Compression Framework
by viraptor on Tuesday October 07, 2025 @03:52AM
(#45500489)
If it can "detect a victim", then the sandbox is faulty. The decompressor shouldn't see any system details. Only the input and output streams.
Re:OpenZL: An Open Source Format-Aware Compression Framework
by jo-m on Tuesday October 07, 2025 @03:56AM
(#45500504)
So, not very safe.
Re:OpenZL: An Open Source Format-Aware Compression Framework
by snapplebobapple on Tuesday October 07, 2025 @11:16AM
(#45504190)
I think this is the first time a genuine technical question of mine rather than a social view has been downvoted here. Thats sad.