Please download the latest built release to use Unity Guard
Unity Guard is a powerful security scanner for Unity games and .NET assemblies that uses machine learning to identify security vulnerabilities with increasing accuracy over time. The tool automatically analyzes code, generates detailed security reports, and provides actionable recommendations to help developers secure their applications.
- ML-Powered Security Analysis: Leverages machine learning models that improve over time as they process more games and assemblies
- ONNX Export Support: Export trained models for use in other applications and environments
- Comprehensive Vulnerability Detection:
- API key and credential exposure
- Insecure serialization
- Unsafe code usage
- Insecure network calls
- Path traversal vulnerabilities
- Cryptographic weaknesses
- And many more...
- Detailed HTML Reports: Beautiful, comprehensive reports with severity ratings, CVSS scores, and actionable recommendations
- Intuitive Console Interface: Easy-to-use command-line interface with real-time analysis feedback
- Continuous Learning: The more games you scan, the smarter it gets at detecting security issues
- Windows, macOS, or Linux
- .NET 6.0 or higher
- At least 4GB of available RAM
- 2GB of available storage
- Download the latest release for your platform
- Extract the archive to your preferred location
- Run
UnityGuard.exe(Windows) orUnityGuard(macOS/Linux)
- Launch Unity Guard
- Drop your Unity game folder into the watch folder (shown in the console interface)
- Press
Sto start scanning - View the results in the generated HTML report in the Reports folder
- Launch Mizuki.UnityGuard
- Drop your DLL files into the watch folder
- Press
Sto start scanning - View the results in the generated HTML report
S- Start scanning all pending itemsL- List current pending itemsC- Clear screen and show instructionsQ- Quit the application
Unity Guard uses machine learning to continuously improve its detection capabilities. The more you use it, the better it gets at finding security vulnerabilities.
- Automatic Training: The model learns from each scan to improve future detection
- False Positive Reduction: Smart identification of potential false positives
- ONNX Export: Export your trained model for use in other applications or environments
- Training Metrics: View detailed metrics about your model's learning progress
Unity Guard can detect a wide range of security vulnerabilities, including:
| Category | Examples |
|---|---|
| Credential Exposure | API keys, passwords, connection strings |
| Unsafe Code | Unsafe code blocks, memory operations, P/Invoke |
| Insecure Networking | HTTP instead of HTTPS, certificate validation disabled |
| Serialization | BinaryFormatter usage, unsafe JSON deserialization |
| Cryptography | Weak hashing (MD5/SHA1), insecure random numbers |
| File Operations | Path traversal, unsafe file access |
| Input Validation | SQL injection, command injection risks |
| Unity-Specific | Insecure PlayerPrefs, unsafe SendMessage usage |
Each generated report includes:
- Executive Summary: Overall risk assessment
- Severity Breakdown: Issues categorized by severity
- Detailed Issue Reports: For each vulnerability:
- Issue type and location
- Severity and CVSS score
- Detailed description
- Code context and line number
- Specific recommendations for remediation
The ML system in Unity Guard uses a multi-layered approach:
- Feature Extraction: Analyzes code for security patterns
- Classification: Determines severity and risk level
- False Positive Reduction: Uses contextual analysis to reduce false positives
- Continuous Learning: Updates model weights based on scan results
Unity Guard supports the following command line arguments:
UnityGuard.exe [watchFolder] [outputFolder]
watchFolder: Custom directory to watch for games/DLLs (default: ScannerInput)outputFolder: Custom directory for reports (default: Reports)
This project is licensed under the Apache License - see the LICENSE file for details.
- ICSharpCode.Decompiler for decompilation capabilities
- ML.NET for machine learning framework
- Microsoft ONNX Runtime for ONNX integration
For questions, feedback, or issues, please:
- Open an Issue
- Follow me on GitHub @0xRetroDev
Unity Guard is provided "as is" without warranty of any kind, express or implied. The developers and contributors are not responsible for any damage, data loss, or other liability resulting from the use or inability to use this software. This tool is intended for security research and educational purposes only.
Always ensure you have appropriate permissions before scanning any games or applications you do not own. The developers are not responsible for any misuse of this software or for any illegal activities conducted with it.
By using Unity Guard, you agree to use it responsibly and in accordance with all applicable laws and regulations.
Developed with ❤️ by 0xRetroDev




