5

When we use wine on Linux PC windows Virus can affect folders of wine?
I think may be not;
But I still Confuse about that. What is accurate answer?
Wine is emulator of windows then some question occurred.
1) why windows virus are not affect or affect Linux machine?
2) Is it possible some special viruses are can be able to affect wine?
[i.e.Virus can be affect into Wine area. Because Virus also a program.
May be possibility it may affect.
Some Key points:-
1)When we install Windows Antivirus in to Wine many (Almost all) antivirus not work properly. Why?
2)Many Programs like Key-logger, worm also not work generally.
3)If we create any program with desire output Delete all .deb .run files. If it work perfectly on wine. Then it can delete hole Linux or partial or not do anything out of wine. Some programs can access Linux Directory out side of Wine.
ex. Google book Down-loader can access Ubuntu desktop.
I read link :
Can a Windows virus transfer to Ubuntu?

Can Ubuntu/Linux machines be infected by the Shylock trojan?
But still Confuse here many answers with many views.

Madhav Nikam
  • 2,907

1 Answers1

12

If you're using PlayOnLinux with WINE, each program usually has its own virtual folder, meaning that only the program that the virus comes from will be affected. - With PlayOnLinux, you're pretty safe.

If you're using WINE without PlayOnLinux, a virus could affect all programs that are running inside WINE. - WINE without PlayOnLinux could be vulnerable, but only to other WINE programs.

In both cases, if the configuration for a WINE virtual drive allows access to your real system, then your files could be modified, but it's unlikely that your system will be affected, because the virus is designed for Windows. - With access to your real system, files could be affected but the system itself is unlikely to be affected.


If you want to be safest, use separate drives for each program (you can do this with PlayOnLinux) and disable access to your real system or home folder, through the WINE configuration program.

However, despite it being unlikely getting an infection through WINE, you should backup your system if you want to be able to roll back if something goes wrong.

  • 2
    Nice answer. Btw PlayOnLinux ads much more goodies and it's easier to manage, even if you can create prefixes manually. One thing that usually nobody notices is the virus afecting other windows program at same wine via config files, etc. – m3nda May 23 '17 at 23:41
  • 1
    This is unfortunately utterly and completely wrong. WINE quite literally "is not an emulator" - it runs the machine code contained in the EXE file directly on your CPU. This means that a malicious EXE file could absolutely make syscalls to the Linux kernel, just as every normal Linux program can. Do not rely on Wine to magically protect you from malware. – Martin von Wittich Jun 14 '22 at 23:29