Bitcoin Forum
April 28, 2024, 12:43:50 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Linux: is wine a potential threat for our BTCs?  (Read 339 times)
paid2 (OP)
Hero Member
*****
Offline Offline

Activity: 672
Merit: 2031


Crypto Swap Exchange


View Profile WWW
November 05, 2023, 12:17:27 PM
Merited by LoyceV (4), vapourminer (1), seoincorporation (1), ABCbits (1), DdmrDdmr (1), vjudeu (1)
 #1

I've tried to do some research on the internet, but I can't find anything recent/precise (I found some Reddit topics but no answer had a sourced answer)
 
I don't use wine myself, but someone around me told me he's using it (on Linux Mint). This person has a full BTC node on the said computer, as well as Electrum installed.
Do you think wine represents a potential risk for his funds?
Would a malware running on Windows be able to do anything wrong via wine on a Debian-based system (ubuntu, mint etc..)?

I guess that in any case, with the Linux privilege system, you still need to be root or superuser to have the necessary rights for doing most things (so I guess it is supposed be as safe as usual on a linux system?) - but wine doesn't seem sane to me. Bringing "microsoft risks" on a Linux distro seems crazy to me. (Am I being too paranoid?)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
1714308230
Hero Member
*
Offline Offline

Posts: 1714308230

View Profile Personal Message (Offline)

Ignore
1714308230
Reply with quote  #2

1714308230
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714308230
Hero Member
*
Offline Offline

Posts: 1714308230

View Profile Personal Message (Offline)

Ignore
1714308230
Reply with quote  #2

1714308230
Report to moderator
1714308230
Hero Member
*
Offline Offline

Posts: 1714308230

View Profile Personal Message (Offline)

Ignore
1714308230
Reply with quote  #2

1714308230
Report to moderator
vjudeu
Hero Member
*****
Offline Offline

Activity: 664
Merit: 1527



View Profile
November 05, 2023, 12:52:09 PM
 #2

A better question would be: why use Wine, if for example Bitcoin Core can be directly used on Linux? Even MinGW version of Bitcoin Core is created on Linux (which is quite surprising, if you remember the first version was Windows-only).

Also, if some wallet is Open Source, and is Windows-only, then guess what: it could be built for Linux. So, why use Wine at all, if you can run your wallet natively? (Bitcoin Core works even on Mac)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
mindrust
Legendary
*
Offline Offline

Activity: 3234
Merit: 2417



View Profile
November 05, 2023, 01:17:45 PM
 #3

Just don’t keep your funds on your personal computer. I use wine/linux too and never had any problems but I also don’t keep my funds on the same pc which I keep my other data. It is pretty damn hard to run a virus on linux even when you are using wine. If you are worried about wine then just get another cheap computer and use it as a node and don’t install wine there, problem solved. Actually you don’t even want to connect to the internet if you are saving big amounts. The risk is very little but it is not zero. Linux distributions are known for being virus-proof so unless you do something incredibly stupid like installing a virus yourself knowingly, nothing bad will happen.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
seek3r
Legendary
*
Offline Offline

Activity: 1260
Merit: 1954



View Profile
November 05, 2023, 01:34:15 PM
 #4

I've tried to do some research on the internet, but I can't find anything recent/precise (I found some Reddit topics but no answer had a sourced answer)
 
I don't use wine myself, but someone around me told me he's using it (on Linux Mint). This person has a full BTC node on the said computer, as well as Electrum installed.
Do you think wine represents a potential risk for his funds?
Would a malware running on Windows be able to do anything wrong via wine on a Debian-based system (ubuntu, mint etc..)?

I guess that in any case, with the Linux privilege system, you still need to be root or superuser to have the necessary rights for doing most things (so I guess it is supposed be as safe as usual on a linux system?) - but wine doesn't seem sane to me. Bringing "microsoft risks" on a Linux distro seems crazy to me. (Am I being too paranoid?)

No, you are not paranoid.

It would make sense if the user needs to run specific Windows-only software that is crucial for their operations - if there are no viable Linux-native alternatives using Wine might be a rational choice.
But it is difficult to judge without precise information. Electrum and Bitcoin Core are definitely applications that do not rely on Windows.

"Classic" malware  in Wine generally remain within the virtual 'C drive' created by Wine, but they can potentially affect the system through modifications to startup entries and other methods. Especially when they are crafted for that.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
DaveF
Legendary
*
Offline Offline

Activity: 3458
Merit: 6241


Crypto Swap Exchange


View Profile WWW
November 05, 2023, 01:40:19 PM
Merited by seoincorporation (1)
 #5

Wine is no more or less an attack vector then having your funds on an online HOT wallet.
The windows subsystem is more or less isolated from the linux OS so for an attack to happen
1) Something would have to breach from windows to linux
2) That vulnerability would have to be targeted to get crypto / other data

I would be more worried about other security issues and having funds on a PC without a hardware wallet then something breaching wine.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
tech30338
Full Member
***
Offline Offline

Activity: 532
Merit: 125


Defend Bitcoin and its PoW: bitcoincleanup.com


View Profile WWW
November 05, 2023, 02:01:06 PM
 #6

I've tried to do some research on the internet, but I can't find anything recent/precise (I found some Reddit topics but no answer had a sourced answer)
 
I don't use wine myself, but someone around me told me he's using it (on Linux Mint). This person has a full BTC node on the said computer, as well as Electrum installed.
Do you think wine represents a potential risk for his funds?
Would a malware running on Windows be able to do anything wrong via wine on a Debian-based system (ubuntu, mint etc..)?

I guess that in any case, with the Linux privilege system, you still need to be root or superuser to have the necessary rights for doing most things (so I guess it is supposed be as safe as usual on a linux system?) - but wine doesn't seem sane to me. Bringing "Microsoft risks" on a Linux distro seems crazy to me. (Am I being too paranoid?)
Malware or viruses in Windows will not run on Linux, but adding a wine application is a different case why would you use wine? there are many alternative applications, so why put your files at risk?
I have tried wine before and sometimes it will not run smoothly, use opensource alternative software instead, and also always enable your firewall,

BlackHatCoiner
Legendary
*
Online Online

Activity: 1498
Merit: 7294


Farewell, Leo


View Profile
November 05, 2023, 02:09:07 PM
Merited by LoyceV (4), pooya87 (2), ABCbits (1), vjudeu (1)
 #7

It's not about Wine, it's about the programs you want to install. Are they open-source, reputable etc.? Wine is just a compatibility layer that allows you to run Windows applications. In general, no. It can't do great harm if you haven't given the respective privileges as it provides a degree of isolation. But, again, it depends; it absolutely isn't foolproof defense.

A better question would be: why use Wine, if for example Bitcoin Core can be directly used on Linux?
Maybe they want to install a Windows application separately, that could be completely irrelevant with Bitcoin (i.e., a game).

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Marvelman
Full Member
***
Offline Offline

Activity: 994
Merit: 137


★Bitvest.io★ Play Plinko or Invest!


View Profile
November 05, 2023, 02:31:25 PM
Merited by vjudeu (1)
 #8

Malware targeting Windows doesn't usually work on Wine.  So using Wine to run Windows programs on Linux is less likely to cause issues than using Windows itself.  Still, its not risk-free.   

Why use Wine at all instead of just running Windows virtually? VirtualBox lets you isolate Windows in its own little virtual machine, separated from the rest of your system.  That keeps any Windows malware from affecting your main Debian install.   

vjudeu
Hero Member
*****
Offline Offline

Activity: 664
Merit: 1527



View Profile
November 05, 2023, 04:39:02 PM
Last edit: November 05, 2023, 04:59:17 PM by vjudeu
Merited by LoyceV (4), vapourminer (1), F2b (1), paid2 (1)
 #9

Quote
Maybe they want to install a Windows application separately, that could be completely irrelevant with Bitcoin (i.e., a game).
Then still, that game could use Wine, and the Core client could run natively in Linux. Wine Is Not Emulator. It is in the name! But even if it would be, then still, port forwarding from a VM to a native system would solve it. But in Wine, you don't need even that, because Wine is just WinAPI implementation for Linux, so if you open some TCP port, then using Wine-wrapped WinSock is the same as using raw Unix sockets.

Another reason could be that Wine has a nice UI, similar to Windows 98 or systems like that. And some people like that more than Linux GUI. But then, changing UI in native Linux installation is a better option than running everything from Wine.

And if the reason is something else, then I have no idea, what it could be, because those two are probably the most obvious ones. It is definitely not something like "I want to run x86 applications on M1 processor", because Wine is not about that. Which means, x86 is used in both systems, if Wine can run it.

Quote
Why use Wine at all instead of just running Windows virtually?
Because virtualization is slow. And if the architecture is the same, then there is no reason to use VM, if it works in Wine. I would understand it in cases, like "I want to run x86 Windows applications on Mac M1 processor", but this is a different story. And even then, if some transcompiler would be available, I would use it instead, to translate x86 instructions into M1 ones, and then execute them natively. Why? Because of performance. And if you talk about games, then this is a place, where performance is important.

Edit: I can add one more thing. Emulators are slow. And I hope, that in the future, they will be much faster than today. How they could do that? For example, by translating binaries, and storing them in native architecture before using. Emulators are great at dynamic analysis: you start from some processor state, execute things instruction by instruction, and then... then, emulators often do a huge mistake: they drop that native instructions, and they are never stored anywhere.

If emulators would perform opcode translation during first execution, and then use native executables in the physical architecture, they would be much faster than today. Then, only the startup would take a lot of time. But if some huge loop would be translated once, for example from x86 into M1, then it could stay in M1, and be executed natively in M1. And that would bring a lot of speedup to the whole emulation.

Also, after initial translation, there should be more phases to do some opcode cleanup, but well, saving executed opcodes is a good start, and I hope emulators will go in that direction. Some of them, like QEMU, can already dump input and output assembly, the only missing piece is capturing all of that, and producing well-structured executables, instead of for example loops expanded into all iterations (which means, emulators could get brilliant performance, but native approach just consumes too much space, because then there are no loops).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
paid2 (OP)
Hero Member
*****
Offline Offline

Activity: 672
Merit: 2031


Crypto Swap Exchange


View Profile WWW
November 06, 2023, 03:32:44 AM
Merited by vjudeu (1)
 #10

Thank you for all your answers  Smiley



A better question would be: why use Wine, if for example Bitcoin Core can be directly used on Linux? Even MinGW version of Bitcoin Core is created on Linux (which is quite surprising, if you remember the first version was Windows-only).

Also, if some wallet is Open Source, and is Windows-only, then guess what: it could be built for Linux. So, why use Wine at all, if you can run your wallet natively? (Bitcoin Core works even on Mac)
Yeah I agree, but he is using Wine for software not related to Bitcoin, as BlackHatCoiner guessed.

"Classic" malware  in Wine generally remain within the virtual 'C drive' created by Wine, but they can potentially affect the system through modifications to startup entries and other methods. Especially when they are crafted for that.
That's what I feared, but wasn't too sure it was possible.

It's not about Wine, it's about the programs you want to install. Are they open-source, reputable etc.? Wine is just a compatibility layer that allows you to run Windows applications. In general, no. It can't do great harm if you haven't given the respective privileges as it provides a degree of isolation. But, again, it depends; it absolutely isn't foolproof defense.
That makes perfect sense, thank you.
He downloads and installs all sorts of crap on his computer... Genealogy software, games... That's why I've come to wonder whether malware could spread or not.

No matter how hard I try to explain to him that it's not logical, that he could have a Windows partition, a dual boot solution, boot on an external SSD etc..., he keeps telling me that it is safe and that since he checks his computer with clamav. he's not worried. For my part, I'm still just as skeptical after reading everyone's answers here.

Why use Wine at all instead of just running Windows virtually? VirtualBox lets you isolate Windows in its own little virtual machine, separated from the rest of your system.  That keeps any Windows malware from affecting your main Debian install.   
That's an excellent idea, thank you. I suggested him to make a dual boot windows/linux but I completely forgot about Virtualbox. However I don't know if his programs would run well with Virtualbox, because I don't know if he'll be able to allocate enough ram / CPU, I'll suggest it to him anyway.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
vjudeu
Hero Member
*****
Offline Offline

Activity: 664
Merit: 1527



View Profile
November 06, 2023, 05:48:35 AM
Last edit: November 06, 2023, 09:53:31 AM by vjudeu
Merited by LoyceV (4), vapourminer (1), F2b (1), paid2 (1)
 #11

Quote
that he could have a Windows partition, a dual boot solution, boot on an external SSD etc...,
No matter what you use, if you have more than one main operating system, then guess what: you will need a way to move files between them. Having Windows partition is good, as long as Windows cannot see the Linux one. External SSD is good, as long as it is attached properly, and if the system will not remove it in the middle of your work, if it was inactive for 5 minutes.

Quote
because I don't know if he'll be able to allocate enough ram / CPU
This is one of the reasons, why virtualization is still not good enough. And when it comes to games, it is probably also some GPU, and some additional drivers, probably with closed sources, designed specifically for games, and other closed source software. Guess what: people made emulators first, that's why Wine is called "Wine Is Not Emulator", and not the other way around. VirtualBox is not called "VM Is Not Simulator". The name can tell you, what happened first, and what was created later, as well as explain some reasons, why it is what it is.

So, the whole thing is not only about security. It is also about habits. If someone is used to Wine, where Linux is the main system, and where everything is built around it, and it works, then switching to multi-OS-based environment is hard. Because then, you want to synchronize between different OSes. Switching things then requires rebooting the whole system (which is hard for people who run their machines 24/7 for some reasons, like full node owners). Also note that if something works in Wine, then moving that program into Open Source land, or writing a replacement, is much easier, than if you use VM or dual boot. Also because then you have to make things tick on Linux, even indirectly, for example by configuring PulseAudio properly.

Edit: One more thing: if you have some old software, for example designed for Windows XP or Windows 98, then guess what: using Wine is much easier and safer, than running some VM, or some dual-boot installation. I wonder if you ever tried using dual boot with Windows 98 in 2023. You may be surprised, how hard it is. You would see a lot of strange messages, like "not enough RAM", if you use more than 128 MB RAM, and other very strange things, for example related to MBR vs GPT partitions, not to mention drivers for old systems, and going through the whole installation, without accidentally wiping out your whole disk (and you have to support "large volume" feature, where "large" is greater than "512 MB"). Don't even try to attach it to any network, if you don't know, what is Wireshark.

Edit: I guess in the future, you could even run some apps from a browser, instead of using Wine. Which means, we are more and more away from bare metal installation, and dual boot solutions, or even Virtual Machines. Here is why: https://www.youtube.com/watch?v=urF9SRtrImg

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
SamReomo
Hero Member
*****
Online Online

Activity: 784
Merit: 672


Top Crypto Casino


View Profile
November 06, 2023, 09:44:41 PM
 #12

Wine is a safe and open-source virtualization solution that allows to run Windows based applications on Linux and the applications on Wine run in a virtualized environment which won't affect the applications that run on the real Linux host system. I believe windows based malware won't impact the host of the Linux system as Windows malware are built in a way that they can affect Windows based users only.

The files and the whole Kernel module of Windows operating system is changed from Linux and that's another proof that Windows viruses and malware won't be able to penetrate Linux operating system. However, it's always recommended to avoid installing any application on the systems where someone saves his/her Bitcoin. Just don't be paranoid by such thoughts the Linux is a safe operating system and Windows malware can't harm it at all.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
NotATether
Legendary
*
Offline Offline

Activity: 1582
Merit: 6697


bitcoincleanup.com / bitmixlist.org


View Profile WWW
November 07, 2023, 07:40:52 AM
Merited by vjudeu (1)
 #13

Yes.

Don't use WINE, unless you are a Wine expert who knows how to sandbox anything you run in there (and come to think of it, only use it sparingly for a limited number of applications too). It can run almost any malware that is created for Windows, by emulation.

You don't want that anywhere near your Bitcoin devices.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
vjudeu
Hero Member
*****
Offline Offline

Activity: 664
Merit: 1527



View Profile
November 07, 2023, 08:18:19 AM
Merited by LoyceV (4), ABCbits (2), paid2 (1)
 #14

Quote
It can run almost any malware that is created for Windows, by emulation.
1. By emulation? Wine Is Not Emulator. It is in the name.
2. Not "almost any malware", but only those parts, which are implemented. It is a common thing to encounter "FooBar function is not implemented".
3. Guess what: you can enable and disable things on DLL-level in Wine. Not to mention debugging, which is quite advanced, and even running some executable in console can give you a lot of details.
4. If you install Windows, then you have a lot of black boxes. Windows by itself is a huge black box. If you use Wine, then only your EXE is a black box, everything else is Open Source. Which means, if you want to use MinGW to write a replacement, it is easier to do that, because then you have bare-metal Linux, and simulated Windows, which means, if you port things from Windows to Linux, using Wine is easier than running any VM.
5. If you have fully Open Source machine, including Open Source BIOS, like Libreboot, then installing Windows on bare metal can be hard, because then you have GRUB page after starting your system. Then, there is no longer a classical BIOS boot menu, or anything like that. Booting any closed-source ISO is then much harder, and typical Windows ISO won't even start on such system, unless you specifically enable it (which is quite complicated, because by default, your BIOS can load kernel images, and you cannot get Windows kernel image directly that easily).
6. Installing Windows on bare metal means, that you have to also provide all drivers for Windows. Which means, you will have even more black boxes than in Wine.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
NotATether
Legendary
*
Offline Offline

Activity: 1582
Merit: 6697


bitcoincleanup.com / bitmixlist.org


View Profile WWW
November 07, 2023, 08:47:53 AM
Merited by vapourminer (1), paid2 (1), vjudeu (1)
 #15

Quote
It can run almost any malware that is created for Windows, by emulation.
1. By emulation? Wine Is Not Emulator. It is in the name.

Quite embarrassing for me to forget that but I'll take it.

2. Not "almost any malware", but only those parts, which are implemented. It is a common thing to encounter "FooBar function is not implemented".
3. Guess what: you can enable and disable things on DLL-level in Wine. Not to mention debugging, which is quite advanced, and even running some executable in console can give you a lot of details.
4. If you install Windows, then you have a lot of black boxes. Windows by itself is a huge black box. If you use Wine, then only your EXE is a black box, everything else is Open Source. Which means, if you want to use MinGW to write a replacement, it is easier to do that, because then you have bare-metal Linux, and simulated Windows, which means, if you port things from Windows to Linux, using Wine is easier than running any VM.
5. If you have fully Open Source machine, including Open Source BIOS, like Libreboot, then installing Windows on bare metal can be hard, because then you have GRUB page after starting your system. Then, there is no longer a classical BIOS boot menu, or anything like that. Booting any closed-source ISO is then much harder, and typical Windows ISO won't even start on such system, unless you specifically enable it (which is quite complicated, because by default, your BIOS can load kernel images, and you cannot get Windows kernel image directly that easily).
6. Installing Windows on bare metal means, that you have to also provide all drivers for Windows. Which means, you will have even more black boxes than in Wine.

That is why I wrote, you have to be an expert in Wine to use it in a way that is not a security risk. The average Linux user, though fairly more advanced in knowledge than the average Windows user, is going to experience a lot of trial and error in the process of following these instructions perfectly.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7409


Crypto Swap Exchange


View Profile
November 07, 2023, 10:10:52 AM
Merited by seoincorporation (1), paid2 (1), vjudeu (1)
 #16

Wine is a safe and open-source virtualization solution that allows to run Windows based applications on Linux and the applications on Wine run in a virtualized environment which won't affect the applications that run on the real Linux host system. I believe windows based malware won't impact the host of the Linux system as Windows malware are built in a way that they can affect Windows based users only.

The files and the whole Kernel module of Windows operating system is changed from Linux and that's another proof that Windows viruses and malware won't be able to penetrate Linux operating system. However, it's always recommended to avoid installing any application on the systems where someone saves his/her Bitcoin. Just don't be paranoid by such thoughts the Linux is a safe operating system and Windows malware can't harm it at all.

Please do research before posting.



Virtualization? Wine website clearly state it's compatibility later,

Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop.

Wine does not perform sandbox at all,

7.5 How good is Wine at sandboxing Windows apps?

Wine does not sandbox in any way at all. When run under Wine, a Windows app can do anything your user can. Wine does not (and cannot) stop a Windows app directly making native syscalls, messing with your files, altering your startup scripts, or doing other nasty things.

You need to use AppArmor, SELinux or some type of virtual machine if you want to properly sandbox Windows apps.

Wine doesn't protect you from malware either,

7.4 Is Wine malware-compatible?

Yes. Just because Wine runs on a non-Windows OS doesn't mean you're protected from viruses, trojans, and other forms of malware.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
vjudeu
Hero Member
*****
Offline Offline

Activity: 664
Merit: 1527



View Profile
November 07, 2023, 01:04:43 PM
Merited by vapourminer (1), ABCbits (1), paid2 (1)
 #17

Quote
Wine does not perform sandbox at all,
Of course. But you can configure a lot of things. You can replace any DLL with your own version. You don't want a filesystem access? Just use your own DLL, where all of those WinAPI functions are empty. For example, if you see, that some EXE is using DeleteFileA, and you want to deny access to it, then your own Kernel32.dll with an empty filesystem implementation will do the trick. Because DLLs used in Wine are Open Source, you can just use their code, and disable what you want (or even mark it as "not implemented", as they do for many functions, before implementing them).

Quote
(e.g. reading file on /home)
You can clearly decide, which user can run Wine. And if you run it as a separate user, created only for that, then user from "/home/wine" cannot access files from "/home/vjudeu".

Quote
That is why I wrote, you have to be an expert in Wine to use it in a way that is not a security risk.
Maybe you are right. Because when I use Wine, I usually do that to replace Windows applications with some Linux versions. And then, debugging and exploring EXE and DLL files is much easier with Wine, than with virtual machines, or dual boot environments. Why it is easier? Because then you have less black boxes. Then, only your EXE is a black box, everything else is Open Source, so you can build all of that in Debug mode, and know exactly, what is going on.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
seoincorporation
Legendary
*
Offline Offline

Activity: 3136
Merit: 2913


Top Crypto Casino


View Profile
November 07, 2023, 03:23:23 PM
 #18

I guess that in any case, with the Linux privilege system, you still need to be root or superuser to have the necessary rights for doing most things (so I guess it is supposed be as safe as usual on a linux system?) - but wine doesn't seem sane to me. Bringing "microsoft risks" on a Linux distro seems crazy to me. (Am I being too paranoid?)

You are right about the linux privilege system, but you break that system when you install wine because with wine you can run a .exe without being root and install a malware with it, but here comes the deal that DaveF mentioned.

1) Something would have to breach from windows to linux

And sadly some kind of attacks would be success, for example. The CryptoWallet Clipper malware could affect the copy/paste on your system making you send the cryptos to the wrong address.
https://www.pcrisk.com/removal-guides/24043-cryptowallet-address-replacing-virus

In 2007 there was a Malware report on the Wine Mailing List:
https://www.winehq.org/pipermail/wine-devel/2007-January/053719.html

Quote

Hi!
  This weekend my son downloaded a trojan masking as keygen for a Symbian
mobile application. After running a trojan, a tooltip in the systray appeared
saying something like "Your computer is infected". After that, I inspected his
.wine directory.
  There were many files added in various directories (system32, windows, even
root of c:, they were partly .exe, partly .dll, ane one even .htm :-). I looked
it in the web browser and it displayed a page saying that my comp is full of
malware, spyware and various other *ware and that the only cure is to download
a specialized application from them :-). They tried to make me shocked by
displaying something that "THEY know that your computer has IP address <my real
IP ADDRESS>, you are using Windows XP (hahaha) and your browser is MSIE 6
(hahahaha). However, this page was not displayed by the trojan, so I think that
something has failed in it and it was unable to fire the formerly mentioned
MSIE6 :-). Two unknown processes were permanently running by wine. After
cleaning all this mess, normal wine operation has been fully restored.
     With regards, Pavel Troller


And after that the wine wiki update their FAQ with the question: Is Wine malware-compatible?

Quote
7.4 Is Wine malware-compatible?

Yes. Just because Wine runs on a non-Windows OS doesn't mean you're protected from viruses, trojans, and other forms of malware.

There are several things you can do to protect yourself:

    →Never run executables from sites you don't trust. Infections have already happened.
    →In web browsers and mail clients, be suspicious of links to URLs you don't understand and trust.
    →Never run any application (including Wine applications) as root (see above).
    →Use a virus scanner, e.g. ClamAV is a free virus scanner you might consider using if you are worried about an infection; see also Ubuntu's notes on how to use ClamAV. No virus scanner is 100% effective, though.
    →Removing the default Wine Z: drive, which maps to the unix root directory, is a weak defense. It will not prevent Windows applications from reading your entire filesystem, and will prevent you from running Windows applications that aren't reachable from a Wine drive (like C: or D:). A workaround is to copy/move/symlink downloaded installers to ~/.wine/drive_c before you can run them.
    →If you're running applications that you suspect to be infected, run them as their own Linux user or in a virtual machine (the ZeroWine malware analyzer works this way).

So, if the wiki suggests using a Virus Scanner, then it's vulnerable.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7409


Crypto Swap Exchange


View Profile
November 08, 2023, 10:46:41 AM
Merited by vjudeu (1)
 #19

Quote
Wine does not perform sandbox at all,
Of course. But you can configure a lot of things. You can replace any DLL with your own version. You don't want a filesystem access? Just use your own DLL, where all of those WinAPI functions are empty. For example, if you see, that some EXE is using DeleteFileA, and you want to deny access to it, then your own Kernel32.dll with an empty filesystem implementation will do the trick. Because DLLs used in Wine are Open Source, you can just use their code, and disable what you want (or even mark it as "not implemented", as they do for many functions, before implementing them).

Quote
(e.g. reading file on /home)
You can clearly decide, which user can run Wine. And if you run it as a separate user, created only for that, then user from "/home/wine" cannot access files from "/home/vjudeu".

What you said is correct. But people who're not familiar with Wine wouldn't know how to secure Wine or even know how insecure is Wine by default. And many people who have some security concern is more likely to choose convenient option such as using VM or running Wine inside Docker.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
vjudeu
Hero Member
*****
Offline Offline

Activity: 664
Merit: 1527



View Profile
November 08, 2023, 04:56:53 PM
 #20

Quote
But people who're not familiar with Wine wouldn't know how to secure Wine or even know how insecure is Wine by default.
True. Maybe I spent too much time on exploring unknown EXE files to notice that. Because in general, if you have some unknown executable, then it is normal to start with "deny by default" approach, and provide all DLLs with empty implementation (or even skip loading them entirely, and replace all calls with NOPs), and then enable features one-by-one, to ensure that we know, how does that unknown program work, and try to write a replacement, without even trying to decompile its code.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!