I am looking for a way to make sure that a particular archive file does not contain any sort of malicious code. From time to time new vulnerabilities pop up (e.g. gzip, 7zip) so I though a good idea would be to convert archive from one format to another before opening it on the secure system.
I assume this operation would make exploiting nearly impossible. I am not concerned about files compressed inside the archive (lets say they are ascii plain text), only about the archive format itself. This trick works well with image formats, where converting a suspicious file ( e.g. jpeg to bmp) bypasses file execution and returns sanitized image. For example, to mitigate MS14-013.
Is there similar way of converting archive without decompressing it/compressing again? Perhaps someone knows a better method?