r/computerviruses • • 8d ago

Discussion Shouldn't there be more safeguards for programs like Renpy which can be abused to run Python scripts that can steal all your sensitive information?

Post image

Windows warns you when you are running a suspicious .exe but what about when the .exe is legitimate but the underlying function of the program is not?

102 Upvotes

44 comments sorted by

25

u/szekelydiegis 8d ago edited 8d ago • Bravo Heartwarming

Firefox + uBlock Origin + common sense + don't pirate stuff + always check how big the downloaded file should be (i.e. Total Commander's installer is 7,13 MB, if the installer's way bigger than that then it's a HUGE red flag).

There are no safe places for piracy anymore.

Note: Ren'Py games don't have a setup screen, or a setup.exe file.

These fake Ren'Py installers are overinflated to evade AV engines + sandboxes. They can range between ~700MB to ~890MB depending on payload. This is also the reason why these "installers" download very quickly in browsers.

The common url scheme for these fake installers is <file(dot)random letters and numbers>(dot)<8-10letters and numbers>(dot)<funky termination (i.e. icu,cyou,sbs,mom...) or <cloud/file[4letters&numbers]>(dot)<8-10letters and numbers>(dot)<funky termination (i.e. icu,cyou,sbs,mom...). They will always impersonate a legitimate hosting service such as WeTransfer,MEGA,GDrive,OneDrive... and call their "cloud provider" something similar like DriveFiles, or ZipCloud. Also, they look like a generic Claude Code webpage template.

If you're ever suspicious about an executable file (it doesn't necessarily have to be an .exe, it can be anything, a .lnk, .iso, .pif, .scr, .bat, .cmd, .img...) instead of solely relying on VT, create a free Joe Sandbox account or a free Anyrun account and drop that suspicious file there and observe its behavior.

3

u/Schwwish 8d ago

Great summary, pretty much sums up how most people got infected.

18

u/StargazerVR 8d ago

Usually pirating isn’t the issue, it’s the people being really stupid while pirating, and not using Firefox and ublock origin and common sense like you mentioned. As long as you are using trusted sources you usually won’t get malware, it’s just that too many tech illiterate people pirate stuff.

5

u/Nikolasha510 7d ago

You can't tell me should I pirate or not

1

u/OhioRizzMaster24 7d ago

Quick question since I seem to know quite a bit about this. I accidentally ran one of these while pirating something like a month or so ago. I fully hardware reset my pc with a cloud download of windows downloaded onto my pc to reset it like that. It is now reset and completely fresh. Am I clean of the virus or can it still roam?

1

u/CrasheonTotallyReal 7d ago

why specifically firefox and ublock origin?

1

u/[deleted] 8d ago

[removed] — view removed comment

1

u/computerviruses-ModTeam 7d ago

Your post was removed because it promotes illegal software, or aids in using illegal software like cracks, keygens, warez, pirated games, hack tools.

Please make sure to read and follow https://www.reddit.com/r/computerviruses/about/rules

19

u/HobbyQuestionThrow 8d ago

Windows tried this, consumers threw a shitfit about UAC back in Windows Vista.

Strict folder level access control is also something Windows has (or had in Windows 7?) I bet no one uses it because the typical user does not have the patience for dealing with the 400 "Can program X access folder Y?" prompts.

On linux you can use things like firejail or apparmor to do similar things.

4

u/Schwwish 8d ago

I think at least the folders like AppData or ProgramData need to safeguards against malicious read and write, but then again i am not a programmer, so i wouldn't know the consequences of doing that.

1

u/CurrentAcanthaceae78 8d ago

the consequence is breaking thousands of legacy apps that people rely on to keep things running, for example. guitar center still uses an ms-dos program to do inventory, just running in windows 11 powershell

1

u/Wakkysakky 8d ago

some planes still run windows 95 for some of the onboard stuff. it's kinda scary when you go down how many things rely onld really old programs and os's

1

u/Unlaid-American 8d ago

Put apps into their own sandbox environment, with only read access to shared drivers.

23

u/Antique_Door_Knob 8d ago

What are you talking about, man? There's nothing special about renpy, it's just a game engine like any other, you can do the same thing with every game engine, same as you can create a normal exe with no game engine behind it.

10

u/LifeReignite 8d ago

If you get it, its your fault almost 100% of the time.

9

u/-SMG69- 8d ago

Pretty much this. If an account of yours ends up getting compromised, if you get a virus, it's going to be because you mor​e​​​ ​t​han likely did something on your end.

10

u/ALaggingPotato 8d ago

Recently there's exceptions to this. Games being abused left and right every year, most recent example is nikke. No fault of the user at all there unfortunately

3

u/-SMG69- 8d ago

Obviously there are going to be exeptions​, but most of the time it is going to be user error.

5

u/HobbyQuestionThrow 8d ago

This is true for all malware. Your fault you have a web browser, your fault your PC was unpatched, your fault you're attached to a network, etc.

0

u/LifeReignite 8d ago

That is horrible logic. Let me guess, you got it ? lol

4

u/Vadioxy 8d ago

In my case, I experienced what I believe was a zero-day Chrome exploit. My browser was fully updated, and it started with what appeared to be an innocent click. Neither AdGuard nor my other protections blocked the initial attack.

The exploit eventually allowed a malicious setup.exe to execute a Lumma Stealer infection. I didn't notice anything until Discord started issuing community bans.

Luckily, I noticed the attack approximately 2–3 minutes after the attacker started running their scripts. I immediately began securing my accounts, revoking sessions and resetting credentials. However, by then, several of my Discord communities had already been affected.

The aftermath has honestly been worse than the infection itself.

Discord has terrible post-compromise account management. There is no convenient centralized way to review which servers banned you, identify all affected communities, or clean up malicious messages left behind in DMs and channels. Even after securing your account, the damage can remain.

Interestingly, Microsoft Defender actually detected and quarantined the Trojan/Stealer.

The problem was timing.

My timeline was approximately:

  • 11:43 — Infection started.
  • 11:44 — Defender detected and quarantined the malware.
  • By that point, Lumma had apparently already exfiltrated my browser cookies.
  • 14:42 — I finally noticed the incident.
  • 14:55 — I had completed my initial cleanup.

This raises an important question: how do we protect users when malware detection happens too late?

There are several technologies that I think deserve much more attention:

1. Application-Bound Encryption (ABE)

Chrome already uses this protection on Windows to make extracting sensitive browser data, particularly cookies, significantly harder.

Instead of relying exclusively on Windows user-level encryption, Chrome binds encryption to the identity of the application. This raises the difficulty for infostealers attempting to extract and decrypt browser credentials from disk.

It is not foolproof, especially against malware capable of operating inside the browser's security context, but it adds another layer of protection.

2. Device Bound Session Credentials (DBSC)

This addresses another part of the problem: what happens after session cookies have been stolen?

Traditional session cookies can potentially be copied and replayed from another machine. DBSC introduces cryptographic device binding, making the attacker prove possession of a device-bound private key when continuing a protected session.

In other words, stealing the cookie alone should no longer be sufficient to hijack the session.

Google has already worked on and deployed this technology, including support for Google Workspace.

3. Demonstrating Proof of Possession (DPoP)

This is particularly interesting for services such as Discord.

DPoP binds authentication tokens to a cryptographic key pair. Instead of accepting a bearer token alone, the server requires a cryptographic proof of possession of the corresponding private key for each request.

This means that simply stealing an authentication token should not be enough to impersonate the user from another device.

For example, Discord could use this approach as part of a more secure authentication architecture, potentially alongside its transition from Electron to Rust.

However, changing the desktop application framework alone does not solve the authentication problem. The client, API and backend authentication system would all need to support this architecture.

Reference: https://datatracker.ietf.org/doc/html/rfc9449

These technologies address different stages of the attack:

  • ABE makes extracting stored browser credentials harder.
  • DBSC makes replaying stolen browser sessions harder.
  • DPoP makes reusing stolen API authentication tokens harder.
  • Microsoft Defender attempts to detect and contain the malware itself.

None of these is a silver bullet. A sufficiently capable attacker can still compromise an active browser session, execute code in the legitimate application context, or compromise the device itself.

But security should be layered. We shouldn't rely exclusively on antivirus detection when an infostealer can exfiltrate credentials before the security software even finishes responding.

I've contacted several major online services to recommend adopting these protections.

I genuinely think device-bound authentication and proof-of-possession mechanisms should become much more common security standards.

Some interesting reading:

1

u/Friendly_Recover286 8d ago

but what about when the .exe is legitimate but the underlying function of the program is not?

Please ask yourself a serious question. If this was possible and easy as you make it sound why do viruses in general exist?

1

u/Octoomy 8d ago

The main issue is… renpy works because of python, and those games use functions that could be used for malicious reasons. Don’t blame the engine. People use unity in the past for malware, and people made tons of malware with millions of different programming languages. But you can’t exactly blame the language or engine.

1

u/NoRespectingAnyone 8d ago

u/Schwwish
Renphy engine itself does not cause any harm.
I mean I used it for about since it's introduction. Also used multiple games which was build on this engine.

When you run any game, from whatever third party website, don't be suprised if it have malicious payload added as additional "feature".

1

u/clockeat 8d ago

I think you're getting confused here, there's 2 possibilities:

  • A module is malicious, but not the base executable, in which case the module should be detected as malware, but not the base executable. This is often the case with things like malicious plugins.
  • The entire application is just a fake version using the name and icon of another application. It's just malware as is the case with the common renpy malware.

1

u/mildly_perturbed31 8d ago

did a vm or what szekelydiegis said fail you?

1

u/kaytin911 7d ago

That girl will haunt a generation.

1

u/tagbthw 7d ago

You can put malware into anything that let's you code lol, any game from any game engine can have malware

-6

u/AnArmoredPony 8d ago

I mean that's what you get for 'playing' in these 'games'

10

u/Schwwish 8d ago

Doki Doki Literature Club was made in Renpy, the engine isn't the issue but bad actors have found an exploit to steal data. This can be done by any program that uses python. Consequently, we need stronger "info stealer" protection.

3

u/Accomplished-Bus7571 8d ago

So renpy isn’t the issue then, it’s python itself

0

u/LifeReignite 8d ago

That isn't what is happening at all.

3

u/Schwwish 8d ago

This is all i could gather from surfing this sub and seeing how everyday someone is affected by the Renpy infostealer.

1

u/LifeReignite 8d ago

No it isn't, the renpy virus doesn't actually use renpy at all.

2

u/ALaggingPotato 8d ago

Explain 

→ More replies (1)

9

u/kellotyokissa 8d ago

What? Your comment makes no sense whatsoever.

-3

u/Natural-Inspector-25 8d ago

Nope because generally people get them from downloading illegal/pirated content……

That’s like saying we should have safe houses for drug dealers who get into fights with other drug dealers

If you are stupid enough to download renpy, you shouldn’t be pirating shit.

1

u/Schwwish 8d ago

Back then, people got malware from downloading MSIAfterburner from a copycat website made to look geniune, so the answers not always about blaming the victim for piracy.

1

u/Natural-Inspector-25 8d ago

Yes but I also got tricked by that
When trying to install, windows would block it
Which saved me
If you chose to bypass that, that’s on you

1

u/Relevant-Line-1690 8d ago

There was also some sort of redirect download from a legit site like cpuid where hackers comprised there server and some users who downloaded from there got malware installed .

Meccha chameleon also had remote access Trojans on there workshop although it’s more so the developers fault for allowing executing code on the operating system from workshop .

I mean look at all the breaches going on now ai being used in malicious ways to bypass or exploit any vulnerabilities.

4

u/ALaggingPotato 8d ago

Most malware comes from ads, often encountered on piracy sites with no moderation for advertising (duh) but also encountered on legitimate services like anything using Google's ad network. Less common than on piracy related media, but a very effective source of malware, much more so than piracy sites since pirates either have the sense to use an ad blocker or know the difference between an ad and their software.

Pirates encountering malicious code injected into their software is extremely rare. I have only seen it twice, total, and I've been a pirate for over a decade.