-
Notifications
You must be signed in to change notification settings - Fork 24
Feature/anti cheat engine #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SatyamPandey-07
wants to merge
8
commits into
Yugenjr:master
Choose a base branch
from
SatyamPandey-07:feature/anti-cheat-engine
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/anti cheat engine #232
SatyamPandey-07
wants to merge
8
commits into
Yugenjr:master
from
SatyamPandey-07:feature/anti-cheat-engine
+317
−133
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add CheatReport model with violation tracking and appeal system - Implement IntegrityService with 4 detection algorithms: * Velocity anomaly detection (problem solving speed) * Platform switching detection (impossible context switches) * Difficulty pattern analysis (suspicious patterns) * Activity spike detection (unusual submission bursts) - Add shadow banning system: * Users excluded from leaderboards and tournaments * Auto-expires after configurable time period * Transparent user messaging - Implement 10 REST API endpoints: * User: view reports, submit appeals * Admin: manage reports, analyze users, review appeals, statistics - Add background processing: * Automated checks every 15 minutes * Daily cleanup of expired reports * Non-blocking job queue integration - Integrate with existing features: * Leaderboards filter shadow banned users * Tournaments block banned users from joining * Tournament leaderboards exclude banned participants - Add restrictTo middleware for role-based access control - Include comprehensive test script Co-authored-by: @SatyamPandey-07
Contributor
Author
Contributor
Author
|
done |
Contributor
Author
|
No conflict |
Contributor
Author
|
merge it and review it @Yugenjr |
1 similar comment
Contributor
Author
|
merge it and review it @Yugenjr |
Contributor
Author
Contributor
Author
Contributor
Author
Contributor
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Closes #215
This PR implements a comprehensive Anti-Cheat & Integrity System to maintain fair play in GrindMap's leaderboards and tournaments. The system uses statistical analysis and pattern recognition to automatically detect suspicious behavior, apply graduated penalties, and provide a transparent appeal process for users.
✨ Features Implemented
CheatReport Model
Complete violation tracking with 8 report types
Evidence storage (JSON) with detection metadata
5 status types: investigating, dismissed, warned, shadow_banned, banned, appealed
Expiration tracking for temporary bans
Appeal system integration
Detection Algorithms (4 sophisticated checks)
✅ Velocity Anomaly: Flags impossibly fast problem solving
Easy: min 30s, Medium: min 60s, Hard: min 180s
✅ Platform Switching: Detects impossible context switches
Max 3 platforms/minute, min 15s between switches
✅ Difficulty Pattern: Identifies suspicious patterns
Hard→Easy→Hard alternation, rapid hard problems
✅ Activity Spike: Catches unusual submission bursts
Max 30/hour, 200/day