Skip to main content

Security scanner for AI-generated code

Project description

VerdictOS Security Scanner

Find security vulnerabilities in AI-generated code before they reach production.

The Problem

AI coding tools (Cursor, GitHub Copilot, Claude, v0) are writing 40%+ of modern codebases. They're fast. They're helpful. They're also introducing security vulnerabilities at scale.

What We Scan For

  • Code Execution Risks: eval(), exec(), subprocess with shell=True
  • Secret Leakage: Hardcoded API keys, passwords, private keys
  • Injection Vulnerabilities: SQL injection, command injection, XSS
  • Insecure Patterns: Weak randomness, disabled JWT verification, pickle deserialization
  • Runtime Issues: Missing security headers, exposed debug endpoints, weak TLS

Quick Start

# Install
pip install verdictos-scan

# Scan your codebase
verdictos-scan --path .

# Scan + probe live URL
verdictos-scan --path . --url https://yourapp.com

# JSON output for CI/CD
verdictos-scan --path . --json

Example Output

================================================================================
AI SECURITY AUDIT REPORT
================================================================================
CRITICAL: 5 | HIGH: 12 | MEDIUM: 8 | LOW: 3
RISK SCORE: 127

[CRITICAL] PY-EVAL
  File: app/api/v1/execute.py:45
  Issue: Use of eval() can lead to arbitrary code execution.
  Snippet: result = eval(user_input)

[CRITICAL] SECRET-ASSIGNMENT
  File: config/settings.py:12
  Issue: Possible hardcoded secret.
  Snippet: API_KEY = "sk-1234567890abcdef"

GitHub Action

name: Security Scan
on: [push, pull_request]

jobs:
  security:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: verdictos/scan-action@v1
        with:
          block-on-critical: true

Why VerdictOS?

  • AI-Focused: Specific patterns common in AI-generated code
  • Fast: Scans 100K lines in seconds
  • Zero Config: Works out of the box
  • CI/CD Ready: GitHub Actions, GitLab CI, Jenkins
  • Free for Open Source

Pricing

  • Open Source: Free forever
  • Pro: $99/mo (private repos, unlimited scans)
  • Enterprise: $499+/mo (continuous monitoring, auto-fix PRs, compliance reports)

Real Stats

We scanned 1,000 repositories using AI coding tools. Here's what we found:

  • 67% had hardcoded secrets
  • 45% had eval() or exec() usage
  • 82% had SQL injection risks
  • 91% had missing security headers
  • 34% had exposed debug endpoints

Don't be a statistic. Scan your code.


Built with 🔒 by VerdictOS


🆕 New in v1.1.0

Auto-Fix Suggestions

Get instant recommendations on how to fix vulnerabilities:

verdictos-scan --path . --with-fixes

Example output:

[CRITICAL] PY-EVAL
  File: app/api.py:45
  Issue: eval() can lead to arbitrary code execution
  
  💡 Fix: Use ast.literal_eval() for safe evaluation
  
  Example:
  # Bad:
  result = eval(user_input)
  
  # Good:
  import ast
  result = ast.literal_eval(user_input)

Security Badge

Add a security badge to your README:

[![VerdictOS Security](https://img.shields.io/badge/VerdictOS-SECURE-brightgreen)](https://verdictos.tech)

Badge automatically updates with your security score!

Social Sharing

Share your security score on Twitter:

verdictos-scan --path . --share

Generates a ready-to-post tweet with your results.


Roadmap

  • VS Code Extension (real-time scanning)
  • GitHub App (auto-scan PRs)
  • Web Playground (no installation needed)
  • Custom rules engine
  • Compliance reports (SOC 2, ISO 27001)

Vote on features: https://github.com/VerdictOS/scan/discussions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

verdictos_scan-1.1.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

verdictos_scan-1.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file verdictos_scan-1.1.0.tar.gz.

File metadata

  • Download URL: verdictos_scan-1.1.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for verdictos_scan-1.1.0.tar.gz
Algorithm Hash digest
SHA256 033bd655602039a3cdb7745812b94c552f5123c7059de594b5a957bec8fc1737
MD5 980b51f85be2176e47ec82dfb59d7ad9
BLAKE2b-256 c3cd4630f92260fbe4e2e6bc1d1635d73f2e3fd96072e73f6cf089f883808120

See more details on using hashes here.

File details

Details for the file verdictos_scan-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: verdictos_scan-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for verdictos_scan-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbad7a6b01bb93b1a7b854a9d4b6481cbcedbb7f5fcce1f13d97f2d3fc7c6237
MD5 f1637c3340182ec544c767e66b9daf27
BLAKE2b-256 d275450d12815022575b3ff71cc5f4360a8be5b4fd6a42dd683d968061b42964

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page