VOGONS


First post, by rpesq

User metadata
Rank Newbie
Rank
Newbie

Hi,

I am very familiar with VM's (virtual machine software), such as VmWare, Parallels, VirtualPC, VirtualBox, etc.

One aspect of any VM is that it provides isolation between the VM and the Host OS; in other words, if a virus was executed inside the VM, the host OS is safe.

In this respect, does Dosbox provide that same level of isolation? In other words, if a file was infected and was launched within Dosbox, can it migrate to the host OS?

Thanks,
boo

Reply 1 of 9, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

Yes it can. DOSBox can see the real file system, according to the directory that you mounted (so if you mount c: as c:\, then something running inside DOSBox can access all of your files). Also, DOSBox provides no isolation, and there are known out-of-bounds access bugs that could potentially allow the execution of arbitrary code in some circumstances.

DOSBox does not provide a secure execution environment.

Reply 3 of 9, by rpesq

User metadata
Rank Newbie
Rank
Newbie

Great answers, thanks guys. That was my assumption, but the way you explained it, makes perfect sense. I should have recognized that since it has access to the underlying file system, that the host OS was not immune. I should have caught that.

Reply 5 of 9, by rpesq

User metadata
Rank Newbie
Rank
Newbie

I am not sure how to mount only a single folder on a drive in Windows. I know that if you run as a Limited User, the system files cannot be accessed without elevated privileges. But to mount only a single (or a couple) folder(s)/directories, I am unaware how to accomplish that. I know that can be done in Linux, but I have never heard of it in Windows.

Reply 7 of 9, by rpesq

User metadata
Rank Newbie
Rank
Newbie

I see, you were referring to a specific DosBox feature, as opposed to an OS config.

Excellent, so then (in theory), by limiting access to one specific folder, you would increase your security because any nefarious activity would not escape from that single folder. That would make it very similar to a VM, except for maybe access to system memory issues.

Reply 8 of 9, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

It is a convience feature, not a security feature. I wouldn't depend on it if I were you.

Water flows down the stream
How to ask questions the smart way!

Reply 9 of 9, by kolano

User metadata
Rank Oldbie
Rank
Oldbie

I realize the poster's question is about the security of DOSBox, but it also differs from most VM software as it emulates the hardware rather than using "virtualization" that provides more direct access to the hardware. I do wish someone could provide a virtualized CPU core, I have a few pieces of software I'd like to see run /w beefier CPUs, but don't run under the current virtualization platforms.

Eyecandy: Turn your computer into an expensive lava lamp.