Code Monkey home page Code Monkey logo

ultimateanticheat's Introduction

image

UltimateAntiCheat: An Educational Anti-Cheat built in C++ (x64)

Research project: make an anti-cheat system to detect and/or prevent things like memory editing, debugging, unsigned code/certs, injected modules, etc.

This project is meant to serve as a basic anti-cheat program for educational purposes and is not intended to be commercial software or overly complex to crack. This example includes basic but fundamental protections, and in production scenario we would aim to have many more detection methods along with a sophisticated server-side design. We aim to cover all attack surfaces such that the attacker is not able to gain a foothold into our process without being detected. Any modification to a single aspect will lead to being detected: for example, if someone tries to debug our code from usermode, they will likely re-map and perform memory edits to try and disable debugger detection which leads to their memory edit or remapping being detected. UltimateAntiCheat runs in usermode and has no driver associated with it. It's recommended that you run VMProtect or a similar program on the compiled binary for added security through obscurity.

If there is anything not working for you (throws exceptions, can't build, etc) please raise an issue and I will answer it ASAP. If you have code suggestions or techniques you'd like to see added, or want assistance with adding anti-cheat to your game, please send me an email. More techniques and better design will be added to the project time permitting. The file changelog.md contains dated feature update lists.

Current Detections and protective features:

  • Detects unsigned Modules
  • Debugger detection (hardware, PEB, exceptions, kernelmode)
  • Integrity checks on program memory (.text section checks, WINAPI hook checks, IAT hook checks)
  • Remapping sections & re-re-mapping checks (anti-tamper)
  • TLS Callback (anti-DLL injection)
  • Parent process check
  • Blacklisted Processes checks & whitelisted loaded modules check
  • Loaded module name random renaming (process manipulation)
  • Exported function names random renaming (process manipulation, anti-injection)
  • Data obfuscation via templated type class
  • Blocks DLL & symbol enumeration within certain tools such as Cheat Engine
  • Encrypted Shellcode payload execution (requires a server to send data to this project)
  • Check for if Windows is in 'Test Signing mode'

Requirements

  • For remapping to work in this project, /O2 must be enabled for optimization. Choosing other options might cause the program to throw exceptions.

ultimateanticheat's People

Contributors

alsch092 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ultimateanticheat's Issues

Unresolved external CheckForDebugger

Can you give the function for static void CheckForDebugger(LPVOID AD); ?

Error LNK2019 unresolved external symbol "public: static void __cdecl Debugger::AntiDebug::CheckForDebugger(void *)" (?CheckForDebugger@AntiDebug@Debugger@@SAXPEAX@Z) referenced in function "public: void __cdecl Debugger::AntiDebug::StartAntiDebugThread(void)" (?StartAntiDebugThread@AntiDebug@Debugger@@QEAAXXZ)

"AntiCheat" has no member "GetProcessObject" nor "RemapAndCheckPages"

Severity Code Description Project File Line Suppression State Details
Error (active) E0135 class "AntiCheat" has no member "GetProcessObject" UltimateAnticheat C:\Users\soloc\Downloads\UltimateAntiCheat-main\API\API.cpp 18

Severity Code Description Project File Line Suppression State Details
Error (active) E0135 class "AntiCheat" has no member "RemapAndCheckPages" UltimateAnticheat C:\Users\soloc\Downloads\UltimateAntiCheat-main\API\API.cpp 97

hey!

could you possibly release you PEB.hpp?

Access violation error

Hello, thanks for updating first!

Platform: x64
C++ 14
Unicode chars set
Debug definitions: _CRT_SECURE_NO_WARNINGS and _WINSOCK_DEPRECATED_NO_WARNINGS

While trying to see if everything works, i got access violation at AntiCheat::IsVTableHijacked((void*)g_AC) or AntiCheat::RemapAndCheckPages();. I can't figure it out i'm too bad in C++. I built an exe like the release you made and i get this error for the function IsVTableHijacked:

Exception thrown at 0x00007FFF9E06D0B5 (ucrtbased.dll) in UltimateAnticheat.exe: 0xC0000005: Access violation writing location 0x00000182984A4430.
image

And the second error i get is on the function AntiCheat::RemapAndCheckPages()
Exception thrown at 0x00000235BDEF4A64 in UltimateAnticheat.exe: 0xC0000005: Access violation reading location 0x00007FF727D84D10
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.