this post was submitted on 11 Aug 2025
175 points (97.8% liked)

Linux Gaming

20602 readers
229 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

No memes/shitposts/low-effort posts, please.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 2 years ago
MODERATORS
 

I recently saw the game called "Bongo Cat" on Steam which monitors yours keystrokes and accordingly plays the bongo drums. I saw that it was not working properly on Wayland because it does not allow the game to record keystrokes from other apps.

This got me thinking; how does ~~Steam~~ Valve protect us from malware? I was searching for "steam games malware" on DDG and found out that there were a few incidents regarding this. I understand that Steam probably has a robust mechanism for understanding game behavior but it's kind of a black-box for us.

Is there any independent vulnerability checker for games? How paranoid should one be before downloading games from steam?

PS: I know that as Linux users, most attack vectors don't work for us but it's good to be aware just in case.

Edit: I need to clarify. I know Steam is just a game-launcher, it's not supposed to protect the user after the game is installed. I meant to say how does Valve protect the user from malicious games? Is their mechanism known?

top 20 comments
sorted by: hot top controversial new old
[–] savvywolf@pawb.social 83 points 3 days ago

As I understand it, Steam has a report feature on their store page for reporting games. Presumably that goes to a person that looks at it.

I think to upload games to Steam you also need to prove your identity. Which means if you do upload malware, then it's easy to track you down.

Of course, that takes time and things can slip through the cracks. Steam games are still full programs that run on your computer and can do anything a regular program can do, there's no sandboxing.

Treat them like you would apps on the Google Play store; assume that they're mostly safe but also give additional scrutiny to ones with low review counts or AI generated images.

[–] Mwa@thelemmy.club 33 points 3 days ago

Rare time seeing the Wayland Feature protecting you from keystrokes.

[–] prole@lemmy.blahaj.zone 29 points 3 days ago (1 children)

I saw that it was not working properly on Wayland because it does not allow the game to record keystrokes from other apps.

I did not know Wayland did this. That's awesome.

[–] thevoidzero@lemmy.world 25 points 3 days ago (1 children)

Yeah, Wayland has a lot of security related things that makes your previous solutions not work. X11 was open and allowed you to do anything, but Wayland is secure, and we trade convenience for security.

Communication with other applications and system wide monitoring was easy for scripts in x11.

[–] mugita_sokiovt@discuss.online 7 points 3 days ago

There's actually a keylogging attack for Wayland, which is an LD_PRELOAD vulnerability that can be exploited. I wonder if that attack is still viable.

[–] dreadbeef@lemmy.dbzer0.com 21 points 3 days ago (1 children)

I understand that Steam probably has a robust mechanism for understanding game behavior

I mean maybe they run your game in a monitored environment and record what kinds of things you do behind the scenes, but that's a lot to ask for for every game uploaded. I honestly very much doubt it.

[–] cryptTurtle@piefed.social 5 points 3 days ago

I would expect that to either happen in a lightweight automated fashion and/or only be done manually when something is actively being investigated due to reporting

[–] kbal@fedia.io 17 points 3 days ago (1 children)

Gaben would come to your house and arrest you.

[–] xavier666@lemmy.umucat.day 6 points 3 days ago (1 children)
[–] somerandomperson@lemmy.dbzer0.com 5 points 3 days ago* (last edited 3 days ago) (1 children)

I don't have an picture editor,so

Imagine a picture of angry gaben was here

[–] nickwitha_k@lemmy.sdf.org 15 points 3 days ago

IIRC, there was a recent case of a malware being discovered and quickly taken down.

[–] tal@lemmy.today 9 points 3 days ago* (last edited 3 days ago) (1 children)

This got me thinking; how does Steam protect us from malware?

In the sense of isolating games like a mobile app is on a mobile OS or something? It doesn't, not as it's installed normally. If you can do something, the game you're running can. Steam doesn't isolate individual games, and Steam is not, as it's normally installed, isolated.

Wayland won't let a random window on the screen see keystrokes going to others, but because the games aren't normally running in isolation, they can fiddle with the environment such that they can do whatever. Wayland's "keystroke" isolation is only useful if the software also can't muck with your files; it's intended to be used in conjunction with other forms of isolation.

I understand that it's possible to use Steam packaged as a flatpak, which will isolate the Steam environment as a unit, including Steam and games.

investigates

https://flathub.org/apps/com.valvesoftware.Steam

Steam is potentially unsafe

  • User device access
    Can access hardware devices such as webcams or gaming controllers
  • Music subfolder xdg-music
    Can read all data in the directory
  • Pictures subfolder xdg-pictures
    Can read all data in the directory
  • User runtime subfolder app/com.discordapp.Discord
    Can read and write all data in the directory

Assuming that those are the only filesystem permissions it has


and I don't have experience with flatpak, so I wouldn't use me as an authority


then it should prevent anything in the container from doing things like grabbing SSH and GPG keys, stuff like that. A malicious game in the flatpak could still grab your Steam credentials or information from other games and muck with those.

  • Legacy windowing system
    Uses a legacy windowing system

Not an issue if you're using Wayland, since it'll be using xwayland, which itself is isolated.

  • Network access
    Has network access

You cannot deny network access to the flatpak, as Steam will need that to work.

Some Steam games can be run outside of Steam, don't need to talk to it, and for those, you can explore other isolation options. Can maybe cut off network access using firejail or something like that.

  • Microphone access and audio playback
    Can listen using microphones and play audio without asking permission

  • Proprietary code
    The source code is not public, so it cannot be independently audited and might be unsafe

[–] xavier666@lemmy.umucat.day 2 points 3 days ago (1 children)

Thanks for the detailed response.

I guess if I'm not using Flatpak, the games have access to my entire home directory. Sounds a bit risky, but I trust that Valve is testing the games before releasing the game to the store.

But this seems like a single point of failure.

[–] tal@lemmy.today 1 points 2 days ago* (last edited 2 days ago)

I have no idea whether they try to audit for malware, but even if they do, it would be difficult to identify malware from just invoking a binary. It's not uncommon for malware to only become active under specific conditions, precisely to make it harder to identify.

[–] Phoenix3875@lemmy.world 5 points 3 days ago (2 children)

There are two cases.

When you run a game, the game is allowed to monitor your input (up to some configuration), so you shouldn't e.g. open a game and do online banking at the same time.

When the game installs a malicious software such that your input is monitored even when you're not running the game, then you can only rely on the additional defense mechanism. However, this is similar to all other software.

[–] xavier666@lemmy.umucat.day 3 points 3 days ago

One needs to trust a game like any other proprietary software. That seems like a good rule of thumb.

[–] tal@lemmy.today 1 points 2 days ago* (last edited 2 days ago)

When you run a game, the game is allowed to monitor your input (up to some configuration), so you shouldn’t e.g. open a game and do online banking at the same time.

I mean, once you invoke a game once outside a sandbox, all bets are off from that point on. It can modify your environment to do whatever from that point on. Like, it could, oh, modify your ~/.bashrc to invoke some keylogger binary that it drops off somewhere in your home directory. Just closing the game isn't going to be a reliable mechanism for preventing malware in a game from dicking with the system after that point.

They may not remove Nazi communities but anecdotally they seem to remove malware quickly. I do suspect though that there is other iffy software on steam so do pay attention.

[–] G0rb@infosec.pub 2 points 3 days ago

I love hunting Lumma-Stealer C2 Accounts in Steam.