Skip to content

About

SourceMod plugin: keeps SteamID spoofers (cssv94-spoofer) out of Counter-Strike: Source servers that admit No-Steam clients. 32-bit and 64-bit. Not yet tested against the real spoofer.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

AntiSpoofer

SourceMod plugin that keeps SteamID spoofers out of Counter-Strike: Source servers that let No-Steam (RevEmu) clients in. It works on 32-bit and 64-bit servers, Linux and Windows.

Build

Warning

Not tested against the real spoofer. I do not own a No-Steam client, so the plugin has never been run against a client that actually has the spoofer injected. The detection is based on a careful reading of the spoofer's source code and of how the Source engine handles client console variables (details below). What was verified: it compiles with no warning on SourceMod 1.12 and 1.13, and it loads and runs on a 32-bit server (SourceMod 1.12) and a 64-bit server (SourceMod 1.13). If you test it, please report what happens in an issue, with the lines of addons/sourcemod/logs/antispoofer.log.

What it blocks

"SteamID Spoofer for CSS" by Alexander B. (2010kohtep, 2019), and the builds patched for the v93 / v94 game updates by RuSHeRR (2026), known as cssv94-spoofer. It is a DLL injected into the game client. It replaces the connection ticket by a forged RevEmu2013 ticket that carries any SteamID the player wants: a chosen one (another player's, an admin's), or a new random one on every connection (ban evasion).

On a server that accepts RevEmu tickets, the forged ticket is accepted like a real one. It cannot be told apart from a real ticket either: same size (322 bytes), same fields, and the hardware ID inside is brute-forced so that its hash matches the requested SteamID.

How it detects it

Two independent kinds of detection, both using SourceMod natives only.

A. The spoofer's console variables (name-based)

The spoofer gives itself away with the console variables it creates on the client: sid_value, sid_shift, spoofer_enabled and spoofer_ticketview. It creates them with the setinfo command, then flags them FCVAR_SERVER_CANNOT_QUERY to hide them. The plugin runs two independent checks on every player:

Check How A client without the spoofer A client with the spoofer
userinfo GetClientInfo: a variable created by setinfo is a user-info variable (FCVAR_USERINFO); the client sends its value to the server when it connects no value sid_value = "0", ...
query QueryClientConVar on each name not found protected (or the value)

A client answers protected only for a variable it has and hides from servers: a normal client does not have these names at all.

The spoofer must be loaded before the player connects (it forges the ticket of that connection), so its variables are always there when the plugin checks. A player who loaded it once is detected even with spoofer_enabled 0, until they restart the game.

B. SteamID churn (name-independent)

One IP address presenting several different SteamIDs in a short time is the signature of a spoofer cycling random SteamIDs (sid_value 0) to dodge bans. This signal does not depend on the cvar names, so it still fires against a modified or renamed spoofer. Because a shared IP (same home, same internet cafe) can legitimately carry a few SteamIDs, this check only warns the admins and logs it: it never kicks or bans on its own. Use the warning to decide on a manual IP ban. Tune it with sm_antispoofer_churn* (below) or turn it off with sm_antispoofer_churn 0.

Download

Get the package for your server from the Releases page:

Package Server
AntiSpoofer-1.1.0-sm1.12-x86.zip 32-bit srcds, SourceMod 1.12 (and newer)
AntiSpoofer-1.1.0-sm1.13-x64.zip 64-bit srcds, SourceMod 1.13

The plugin has no architecture-specific code (SourceMod natives only: no gamedata, no extension, no DHooks). The two packages differ only by the compiler that built them.

Requirements

  • Counter-Strike: Source dedicated server, Metamod:Source and SourceMod 1.12 or newer (32-bit) or SourceMod 1.13 (64-bit).
  • Nothing else. RevEmu itself is not required by the plugin: it only matters because a server that lets No-Steam clients in is the one where a forged ticket gets accepted.

Installation

  1. Extract the package into your cstrike folder (the addons and cfg folders merge with yours).
  2. Restart the server or type sm plugins load antispoofer.
  3. Check: sm plugins list shows AntiSpoofer (1.1.0) and addons/sourcemod/logs/errors_*.log has no antispoofer line.
  4. Optional, recommended for a start: sm_antispoofer_action 0 in cfg/sourcemod/antispoofer.cfg, watch logs/antispoofer.log for a few days, then switch to 2.

Configuration

cfg/sourcemod/antispoofer.cfg:

Console variable Default Description
sm_antispoofer_action 2 0 = log and warn the admins only, 1 = kick, 2 = kick and ban the IP address
sm_antispoofer_ban_length 60 length of the IP ban in minutes (0 = permanent)
sm_antispoofer_cvars sid_value,sid_shift,spoofer_enabled,spoofer_ticketview comma-separated names of the console variables that only a spoofer creates (up to 16); add the names of a renamed variant here
sm_antispoofer_churn 1 1 = warn the admins (log only) on SteamID churn, 0 = off
sm_antispoofer_churn_count 3 distinct SteamIDs from one IP within the window to warn (minimum 2)
sm_antispoofer_churn_window 600 length of the churn window, in seconds

The ban is always on the IP address, never on the SteamID: the SteamID is the spoofed one, it may belong to somebody else (the player whose identity was stolen).

Commands and permissions

Command / override Access Description
sm_antispoofer_scan ban (d) checks every connected player again
sm_antispoofer_notify (override) generic (b) admins who receive the chat warnings; change it in admin_overrides.cfg

Logs

Every detection goes to addons/sourcemod/logs/antispoofer.log, for example:

L 10/28/2026 - 18:30:12: "Player<12><[U:1:123456]><>" <203.0.113.7> runs a SteamID spoofer (query sid_value: protected): kicked, IP banned for 60 min

Admins online are warned in the chat (player, evidence, action), in their own language (English and French included, see addons/sourcemod/translations).

Test it yourself

Without the spoofer, on any client: type setinfo sid_value 0 in the console, then connect. The variable is created exactly the way the spoofer creates it, so the userinfo check and the query check must both catch it (the query answers with the value instead of protected, the only difference). Restart the game afterwards: the variable stays until then.

API for other plugins

addons/sourcemod/scripting/include/antispoofer.inc:

forward Action AntiSpoofer_OnClientDetected(int client, const char[] evidence);

Called when a client is caught: once per connection for detection A (before the plugin acts), and once when a churn warning (detection B) fires. The evidence string says which (query ..., userinfo ..., or IP churn: ...). For detection A, return Plugin_Handled to keep the client in (still logged), e.g. to let a trusted player through or to hand the case to your own ban system. Churn only warns, so the return value does not change what the plugin does there.

Limitations

  • Detection A relies on the variable names. A spoofer rebuilt with other names is caught once they are added to sm_antispoofer_cvars; one rebuilt without any console variable is not caught by A. Detection B (churn) still flags it when it cycles SteamIDs, but only as a warning, never an automatic ban.
  • Detection B only warns: a shared IP can be legitimate, so the admins decide. It also needs several connections to trigger (a single spoofed SteamID that never changes does not churn).
  • An IP ban also keeps out everybody behind the same address (same home, same network). A player who changes IP address can come back, and will be caught again.
  • Old builds of the spoofer with other variable names were not studied.

Security notes

  • On a server that admits No-Steam clients, a SteamID alone proves nothing. Give your admins a password (third field of admins_simple.ini + PassInfoVar in core.cfg): https://wiki.alliedmods.net/Adding_Admins_(SourceMod)
  • Bans on a SteamID alone are easy to dodge there: ban the IP address as well.

Building

spcomp64 addons/sourcemod/scripting/antispoofer.sp -i<sourcemod>/scripting/include -E

The Build workflow compiles it with SourceMod 1.12 and 1.13 on every push.

Changelog

  • 1.1.0: SteamID churn detection (sm_antispoofer_churn*), name-independent, warn and log only; the churn warning also fires AntiSpoofer_OnClientDetected.
  • 1.0.0: first version: userinfo and query checks, log / kick / IP ban, admin warnings (English, French), sm_antispoofer_scan, AntiSpoofer_OnClientDetected forward.

Credits

License

GNU GPL v3, like SourceMod.

About

SourceMod plugin: keeps SteamID spoofers (cssv94-spoofer) out of Counter-Strike: Source servers that admit No-Steam clients. 32-bit and 64-bit. Not yet tested against the real spoofer.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages