Overview Open-Source Security and Anti-Cheat Modules - Unity GameShield


Introduction

Hey, everybody. Unity Game Shield - as you might have already guessed, it is a library that allows you to organize Protection and Anti-Cheat for your games. In this article we'll hit on the current composition of the modules in the system, as well as briefly discuss how it works.


So here we go!

About Modules

Memory Protector

Memory Protector for Unity

The Memory Protection module allows you to protect your application from external access to RAM. In this way you can organize a simple and fast protection against software like CheatEngine.

Memory Protector for Unity

This module includes SecuredTypes, which serve as a protected island for basic types in your game or application.

Secured Types

Secured Types for Unity
Secured Types allow you to hide the real value of variables from users in memory by embedding symmetric encryption in basic types. In turn, Memory Detector reports on attempts to swap values, because each assignment checks the real and fake value of the variable.

Usage Example:

SecuredInt myInt = 32; // Yeah, it's that simple. Now you can use it in your game objects / serialization 

Note! Turn-On Memory Protector to get events of cheating detection for any secured type!

Secured (Encrypted) Game Saves

Encrypted Game Saves for Unity
The Secured Saves module allows you to store your data on the user's device in encrypted form. It is also recommended to use it together with Memory Protector - which simplifies working with objects in memory.

Encrypted Game Saves for Unity

Module serialize your objects using JSON and Encryption Providers such as AES, DES, and other popular encryption methods available to you. The module uses the Unity Crypto Library, which is already included in GameShield. Standard .Net methods are used for serialization/deserialization to files.

Injection Scanner (Assembly Protector)

Injection Scanner for Unity (Assembly Protection)
The injection scanning module allows you to protect your application from external access when malware attempts to tamper with or inject its own libraries.

Injection Scanner for Unity (Assembly Protection)

During the application development process, you specify a list of valid libraries that will be used after the product is built. Thus, during the application build process, GameShield captures the internal hashes of the libraries and their build versions to scan for spoofing at runtime or at startup.

SpeedHack Detector

Speed Hack Protection in Unity
This module allows you to track the tick rate in the game and compare it to the actual CPU tick time that has passed on the device to detect game speed spoofing - aka SpeedHack Cheat. When detected, it sends an event.

Speed Hack Protection in Unity

At each interval, the module checks how many game ticks and real device ticks have passed, requesting a specific number of ticks per interval from the processor. This allows you to synchronize Update in Unity and lets you know where the speed has changed.

Wallhack Detector

Wallhack Detector for Unity
This module allows you to use physics simulation to check the presence of Wallhack in the game. It simulates the behavior of both Rigidbody and Character Controller for both types of player controllers

When passing the next physics tick - check modules are created on the basis of Rigidbody and Character Controller, if these components were detected a change in Velocity on the Z-axis more than the maximum allowable value, then most likely WallHack was used.

Teleport Detector

Teleport Detector for Unity
Teleport Detector is a small module that allows you to compare the speed and position of targets to the maximum allowed values to check for possible player teleportation. Works well in conjunction with SpeedHack Detector.

Teleport Detector for Unity

The detector checks the distance of positions between ticks of a game cycle to make sure that it is not greater than the maximum allowed distance for that tick. The check is based on the formula of the distance between two vectors and the maximum speed variable. It also supports tracking multiple targets in the game.

Time Skip Detector

Time Skip Detector for Unity

This module checks the system time by comparing it with the network time to see if the time in the game has been rewound. It also checks local time rewind from the previous value. The server of choice is used for operation. You can also run your own time check server.

Secured Web Request

Secured (Encrypted) Web Requests for Unity
This module is a wrapper over Unity Web Request - it handles encrypted data both sending and receiving. It uses one of the crypto providers of your choice, which will perform encryption/decryption. It uses Unity Crypto Library already embedded in GameShield for its operation.

Secured (Encrypted) Web Requests for Unity

Rewarded Captcha

Rewarded Captcha for Unity

This module provides functionality to implement a simple client-side captcha. The method of operation is quite simple - the user needs to click on the icons in the sequence indicated at the top of the screen.

After successful completion, you can give him a reward:
Rewarded Captcha for Unity

Cheating Reporting

Cheating Reporting for Unity

This module allows you to send cheating / custom reports to your server where you can track and manage them. You can easily use it for normal user feedback as well.

Note that for this module to work, you need to implement your own message reception on your server side.

In conclusion

To summarize - Unity Game Shield is a large library that includes many modules already, with a number more in development.

I'm preparing a server-side solution for GameShield soon, including reporting, secure authorization, and more. You can follow the progress here.

I also suggest you visit the Wiki for full documentation.

Thanks for reading! If you still have any questions, feel free to contact me:

My Discord | My Blog | My GitHub | Buy me a Beer

Get GameShield for Unity - Free Anti-Cheat and Security Toolkit

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.