Free open-source security scanner for AI-generated code. Detect vulnerabilities, backdoors, hallucinated APIs, and logic errors before shipping to production.
Detect SQL injection, hardcoded secrets, command injection, XSS, and other security vulnerabilities in AI-generated code.
Catch fake imports, invented functions, imaginary APIs, and hallucinated packages before they break production.
Find unreachable code, infinite loops, dead branches, and other logic errors that AI commonly introduces.
LLM-powered code fixes using OpenAI, Anthropic, or Ollama. One-command fix with confidence scores.
VS Code extension, JetBrains plugin, and LSP server for real-time validation in your editor.
JSON, HTML dashboard, SARIF for GitHub Security tab, and PDF reports with detailed findings.
Install from PyPI
pip install ai-trust-validator
Also available as Docker image, GitHub Action, and pre-commit hook
| Feature | AI Trust Validator | Semgrep | SonarQube | CodeQL |
|---|---|---|---|---|
| AI Hallucination Detection | Built-in | No | No | No |
| AI Auto-Fix | Built-in | Limited | No | No |
| Trust Score | 0-100 | No | Quality Gate | No |
| Multi-LLM Support | 4 providers | No | No | No |
| IDE Plugins | VS Code + JetBrains | VS Code | All IDEs | VS Code |
| Open Source | MIT | LGPL | Community only | Limited |
| Self-Hosted | Yes | Yes | Yes | Limited |
AI Code Trust Validator is a free open-source security tool that analyzes AI-generated code for vulnerabilities, backdoors, hallucinated imports, and logic errors. It supports Python, JavaScript, and TypeScript.
Install with pip install ai-trust-validator, then run aitrust validate your_file.py to get a trust score and detailed vulnerability report.
Yes. AI Code Trust Validator is free and open-source under the MIT license. No usage limits, no API keys required for basic scanning.
AI Code Trust Validator currently supports security scanning for Python, JavaScript, and TypeScript code analysis.
Yes. AI Code Trust Validator scans any AI-generated code regardless of which AI tool produced it, including ChatGPT, GitHub Copilot, Claude, Gemini, and others.
Yes. Use the GitHub Action, Docker image, or pre-commit hook to integrate security scanning into your CI/CD workflow.
Help others discover AI Code Trust Validator. Every star helps the project grow.
Star the RepoBeginner-friendly issues available. Check the "good first issue" label to get started.
View IssuesAsk questions, share ideas, and connect with other users in GitHub Discussions.
Join Discussions