10

I feel that it's going to be very difficult for a virus to infect an ISO file. What's your experience? Have you seen it happening ever? Is it not nearly unlikely?

I ask because I've just found that my computer is infected and I wish to salvage as much stuff as possible. So I was wondering if I could keep my ISO files.

1
  • 1
    A virus can do virtually anything; the question is whether anyone would go through the trouble to write a virus that does that. I don't think infecting ISO files would get the virus anywhere. Commented Jul 19, 2010 at 1:49

6 Answers 6

10

I doubt that a typical virus would inject itself into an ISO. Note that if your ISO contains a virus already (e.g. the file was infected then put into the ISO) then you'll have issues.

1
  • 1
    These ISO files have been on my computer way before the occurrance of this infection. So I'm certain they didn't have malicious code themselves. I was just wondering if a virus could inject new code into it and succeed. But that, to me, should be kinda impossible because the virus doesn't know which part of the ISO contains an EXE. Looks like the answers here confirm my hypothesis.
    – Frederick
    Commented Aug 29, 2009 at 13:49
5

The idea, and neccessary code, of infecting archives (which an .ISO basically is) has been around for a long time. It's actually quite trivial - append your virus to the archive, modify the index to include the virusfile's data, done. No compression or anything needed as most archive formats support storing files without compression. An .ISO additionally has the nice bonus of AUTORUN.INI, which Windows by default executes the minute you insert the the CD. Have it pointing to the virus file and include it along with it into the .ISO, and you have automatically started malware that gets run without the user starting any programs. I don't know if any virus which infects archives has ever been in the wild,but they do exist. And so do viruses which specifically target .ISOs for infection.

2

Not directly, but an ISO is a disc image - it could potentially contain files which could be viruses. Identical to how a ZIP file (or any other archive file format) could contain an infected file.

An ISO is generally less likely to contain malware, as a virus creator could just as easily infect peoples computers with much smaller files (single executables), which they would be more likely to download, but it is possible.

1

Anything is possible, but this would require the virus to contain the software necessary to edit the ISO, which is far from trivial.
So I would say that it's highly unlikely that the ISOs are infected, but, of course, you might scan them with a couple of antiviruses if you wish to be (feel) safer.

2
  • 3
    No software to edit ISOs is necessary - because ISO files store information "as is", in not compressed or encrypted form, you just scan an ISO file for well-known sequences of data, that indicate the start of executable section in an exe file for example, and overwrite it with your data
    – user7963
    Commented Aug 31, 2009 at 20:01
  • @user7963 what about mountable encrypted ISO-like files, such as .daa, .isz or .uif?
    – Unknown123
    Commented Feb 24, 2020 at 10:40
0

I depends on how the iso image is mounted. A lot of software for mounting iso files merely exposes them as part of the file system, and handles updates to the file transparently. In fact, that's what makes the software useful. In that case, you might certainly find an iso on your system becomes infected at the same time as the rest of the system.

0

Whether it can be infected or not doesn't really matter when you can use something like Malwarebytes or AVG to scan it and attempt to heal it if it's infected (be warned if you have any cracked programs or tools for doing such, AVG loves to give false positives on those, but malwarebytes can't scan inside rar files so you almost need both). Just remember to scan it unmounted to check the ISO itself, then mounted to check the files on it.

I personally haven't ever seen an infected ISO, but ANY file could possibly get infected by a virus.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .