wine and security - lockdown suggestions

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
mrmedia
Level 2
Level 2
Posts: 19
Joined: Tue Nov 22, 2011 12:48 am

wine and security - lockdown suggestions

Post by mrmedia »

I only run one piece of software under wine but this app is still a great risk.
The intentions and opportunity of software developers not using open source should not be underestimated.

when i run
env WINEPREFIX="/ubuntu/PC1/.wine" wine C:\\windows\\system32\\taskmgr.exe

I am reminded again of all the security problems with windows.
I was thinking that it ought to be easier to secure wine since it is a cut down version.

Areas I can would guess that COULD be addressed are :

1) Have a custom pluginplay - ie pluginplay with a wrapper so that everytime it is called a msgbox pops up ( I worry that these pluginplay packets get through the router and expose the OS to remote devices).

2) A way to lock down "services" - so that there are no new ones past a certain point. And/or new services are on 'alert'.

3) Have a windows registry lock - or organise a bat to always restore a trusted registry file every startup.

4) Have greater control over svchost.exe. Same wrapper idea, or alerts or ?????? maybe byte size checking to prevent replacements.

5) Allow a way to have wine block port80 - in a scenario where the software you do run can get by with port 443 only.
i.e. small open source firewall that is rootkit proof.
Or a firewall that filters both the app and port.

6) rootkit detector - linux built but wine targeted

7) virus detection - again linux built but wine targeted

8) a surefire way and FAQ's on running vulnerability scans - BackTrack, Knoppix STD,
etc .http://wirelessdefence.org/Contents/WirelessDistros.htm
http://www.darknet.org.uk/2006/03/10-be ... -recovery/
http://www.serverwatch.com/server-trend ... about.html

9) windows registry improvements
e.g. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\StorageDevicePolicies\WriteProtect

Granted it is likely that Microsoft ensured that these security risks could not be completely erased. And engineered in vulnerabilities to suit their interests.
So the idea of wrapper dll's may not be feasible, but I'm hoping that vulnerabilities can be identified so that some albeit slow progress can be made.
mrmedia
Level 2
Level 2
Posts: 19
Joined: Tue Nov 22, 2011 12:48 am

maybe??

Post by mrmedia »

10) have a lockdown script - where unnecessary .exe's are removed that your software can get by without
ie. if possible, and you intend to install no new software -
remove hostname.exe
remove pluginplay.exe
remove rundll32.exe
remove winepath.exe
remove svchost.exe
or
replace svchost.exe with hardcoded path to compensate

But this may mean that you cannot accept wine upgrades......
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: wine and security - lockdown suggestions

Post by vitamin »

If you need security - use system tools such as SELinux. Wine by definition can not put any restrictions on running software.
http://wiki.winehq.org/FAQ#head-f566a12 ... 13a773c571
Arcosanti
Level 2
Level 2
Posts: 10
Joined: Mon Apr 16, 2012 3:35 pm

Re: wine and security - lockdown suggestions

Post by Arcosanti »

If you don't want to mess with SeLinux or similar software, you can try the old chroot jail method that was once used for things like FTP servers. The jail should be able to contain the Windows security risk problem. The chroot jail method was eventually discovered to be not entirely secure, but I doubt that any Windows malware would know how to bypass the jail.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: wine and security - lockdown suggestions

Post by vitamin »

Arcosanti wrote:If you don't want to mess with SeLinux or similar software, you can try the old chroot jail method that was once used for things like FTP servers.
Do you actually understand what you suggesting? Have you ever seen an instance of Wine running in chroot jail? Don't suggest stuff that you have no clue about!
Locked