Free & open source

Your AI coding agent ships fast.
It also ships vulnerabilities.

CodeMoat scans every pull request for the security issues AI coding assistants actually introduce — before they merge.

Free and open source. No signup required to try the Action.

CWE-798 found
0 secrets leaked

This isn't a hypothetical problem

0%

of tests across 100+ LLMs produced AI-generated code with an OWASP Top 10 flaw.

Veracode, 2025 GenAI Code Security Report
~0%

of 1,692 Copilot-generated programs across 89 scenarios contained an exploitable bug or design flaw.

NYU Tandon, “Asleep at the Keyboard?”
0.0%

of real-world Copilot-generated Python snippets in GitHub projects had a security weakness.

“Security Weaknesses of Copilot-Generated Code,” 2025

How it works

Open a PR

CodeMoat runs automatically on pull_request and scopes every scan to just the changed lines — not the whole repo.

Three engines, one pass

Semgrep for pattern-based SAST, Gitleaks for secrets, and CodeMoat's own 12-rule pack for AI-agent-specific footguns.

One clean PR comment

Severity, file, line, CWE reference, and a suggested fix — in a single comment that updates in place. No spam.

What generic scanners miss

CodeMoat's AI ruleset targets the specific ways coding agents fail — not textbook injection flaws, but the shortcuts an agent takes to get a feature working.

Wildcard CORS + credentialsan agent “fixes” a blocked frontend request by opening CORS to everyone.
CWE-942
Auth middleware commented outdisabled “temporarily” while debugging a route, never restored.
CWE-306
Debug routes left reachablea scaffolded /debug endpoint with no environment guard.
CWE-489
Framework debug mode in prodFlask/Django debug flags left on.
CWE-489
Weak seed credentials“admin123” hardcoded in scaffolded setup code.
CWE-259
JWT verification bypassalgorithms: ["none"] accepts unsigned tokens.
CWE-347

Install

Add a workflow file to your repo:

# .github/workflows/codemoat.yml
name: CodeMoat

on:
  pull_request:

permissions:
  contents: read
  pull-requests: write

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
        with:
          fetch-depth: 0
      - uses: SYCO7/codemoat@v1

Or run it locally before you push, no CI required:

npx codemoat scan

Free & open source

Unlimited scans on public and private repos. No plans, no payment, no limits — the whole thing is MIT-licensed on GitHub.