this post was submitted on 06 Aug 2023
1133 points (92.8% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54746 readers
222 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] arc@lemm.ee 56 points 1 year ago (5 children)

I wouldn't trust anything from a P2P site that purports to be:

  1. A cracked game / application for desktop and mobile platforms. Maybe it's legit but assume it is malware.
  2. A serial number generator. If you absolutely must run one of these do it from a throwaway VM, or via WINE emulation to mitigate what it might do.
  3. An encrypted archive with a README. It's a scam designed to make people sign up to other scams to release a non-existent password.
  4. A movie / audio with an extension such as .scr, .wma, .com, .exe etc. It's malware.

Movies, audio & books are generally safe providing they use a recognized extension - mp3, mp4, pdf, mkv, aac, flac, epub etc. Stuff that runs under emulation like console games is generally safe. I say "generally" because an exploit could still be crafted to escape a popular media player or emulator and cause actual harm to your computer.

All the ads and 3rd party scripts should be considered malicious too and should be erased with an adblocker, or even better use Tor.

So basically use some common sense and if you really want some game or app, just buy the damned thing or wait for it to go on sale.

[–] kuberoot@discuss.tchncs.de 23 points 1 year ago (1 children)

WINE is not safe to run malware in, it's not a secure sandbox. AFAIK, anything expecting it can do anything a Linux binary can. (Also, not an emulator, it's in the original name - WINE Is Not an Emulator)

[–] arc@lemm.ee 1 points 1 year ago* (last edited 1 year ago) (1 children)

I know what WINE is and the gist of "Wine is not an emulator". I have used it extensively and for a while it even contained some of my code (not sure if it still does). But it is still emulating but not in the way people think. WINE is not emulating the operating system but it is emulating the interface that an executable interacts with Windows, aka the Win32 APIs and other DLLs.

They even touch on this in their FAQ - *That said, Wine can be thought of as a Windows emulator in much the same way that Windows Vista can be thought of as a Windows XP emulator: both allow you to run the same applications by translating system calls in much the same way. Setting Wine to mimic Windows XP is not much different from setting Vista to launch an application in XP compatibility mode. *

As far as a potentially malicious executable is concerned, you can create a throwaway wine folder to run the thing and delete it as soon as it is done, e.g.

e.g.

export WINEPREFIX=~/tmpwin
winecfg
# disable wininet from libraries tab, remove Z:, unlink all desktop integration folders
wine keygen.exe
# when done...
rm -rf tmpwin

It doesn't matter if keygen.exe is evil because it can write anything it likes to the fake C: and the fake registry and it's blown away. As a precaution disable networking so it can't reach out either. In the extremely unlikely event that keygen.exe had code to detect it was running under WINE, it would still be subject to the permissions of the uid you had run it as, so you could take even more precautions if you felt so inclined. You could even use a dockerized WINE if you felt like it.

[–] kuberoot@discuss.tchncs.de 4 points 1 year ago (1 children)

On the topic of whether or not it's an emulator, sounds like semantics in the end - fair enough, I disagree but you make a fair point.

That said, in terms of security I think it's very important to point it out that it isn't any more secure than running a random Linux executable. In my view, the original comment is advocating for running unknown executables under wine as a security measure, and the further argument is that it's more secure because most attacks don't target that.

Sounds like if people rely on that for security, malware will just start targeting that after people get used to assuming it's safe.

[–] arc@lemm.ee 0 points 1 year ago

I doubt many people are ever going to do what I suggested so the effort / payoff for malware writers makes it very unlikely they'd bother. They'll just assume 99.999% of people running the binary are doing so on Windows and code accordingly. Of course anything is theoretically possible.

[–] halva@lemmy.blahaj.zone 16 points 1 year ago (1 children)

wine is a windows api implementation, it's specifically NOT an emulator

[–] arc@lemm.ee 3 points 1 year ago (1 children)

Read their own FAQ. It's not an emulator in the classic sense of emulating the OS. It is however emulating the API of Windows. I quoted the pertinent line of the FAQ elsewhere and made my point clearer

[–] arc@lemm.ee 0 points 1 year ago* (last edited 1 year ago) (1 children)

Not sure what the thumbs down is about. It's right there in their own FAQ.

In fact it ends by saying - "Wine is not just an emulator" is more accurate.

[–] nevalem@programming.dev 4 points 1 year ago

There is a storied history in computing to use tongue in cheek self referential acronyms to denote some humor and finality in distinguishing things that purposely fill a niche in the world of competing, often pricey, commercial software and other hackable reasons.

So I bet you're rubbing wrong those of us who remember that gnu is not unix, and more specifically wine is not an emulator. Because they really aren't.

[–] EbonyEarl@lemmy.fmhy.net 11 points 1 year ago

This is a piracy community.

[–] Fylkir@lemmy.sdf.org 2 points 1 year ago
  1. You could trivially verify an emulated game with a checksum

  2. If a game is released on GOG, there are Checksums that are hidden from the user. GOG games are DRM-free, so there's no reason anyone would modify the installer.

[–] Anticorp@lemmy.ml 1 points 1 year ago

Are cracked games no good anymore? You used to be able to get just about any cracked game back in the day. Sure, some of them might be malware, but it was easy to find one that wasn't.