cd /news/ai-agents/github-code-scanning-with-sarif-2-1-… · home › topics › ai-agents › article
[ARTICLE · art-177956] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

GitHub Code Scanning with SARIF 2.1.0 + Remote MCP: Catching AI-Generated Wildcard AWS IAM & Privileged EKS Pods on Every PR

CoreNova Labs shipped v1.1.0 of its Cloud IAM & IaC Security Audit, adding exact 1-based line numbers and native OASIS SARIF 2.1.0 output for GitHub Code Scanning. The tool pairs a local remote MCP endpoint with a GitHub Actions SARIF gate, both hitting the same zero-data-retention deterministic rule engine so that AI coding agents and CI enforce identical rules against wildcard IAM actions, public security groups, IMDSv1, and privileged EKS pods. The company says both layers respond in under 15ms and that the shared engine eliminates rule drift between agent-time and merge-time checks.

key takeaway

Running the same deterministic rule engine behind both a local MCP endpoint and a GitHub Actions SARIF gate closes the gap where agents under context pressure skip optional security tool calls, with both layers returning findings in under 15ms.

by read3 min views9 publishedNov 29, 2026

AI coding agents (Claude Code, Cursor, Amazon Bedrock coding agents) are great at shipping Terraform, CloudFormation, IAM policies, and Kubernetes manifests fast. They are also great at optimizing for "make it work on the first try"—which is why Action: "*", 0.0.0.0/0 SSH/DB security groups, IMDSv1 (http_tokens = "optional"), and privileged: true pods keep sneaking into pull requests.

Earlier this week, a reader here on DEV pointed out the exact production failure mode of agent-only guardrails:

Under context pressure, coding agents occasionally skip optional MCP tool calls. To make security guardrails stick, your fast local MCP loop and your hard GitHub Actions PR merge gate must run the exact same deterministic rule engine with exact line-level remediation.

We took that feedback straight into production and shipped v1.1.0 of CoreNova Cloud IAM & IaC Security Audit (https://audit.corenovacloud.com) with exact 1-based line numbers and native OASIS SARIF 2.1.0 output for GitHub Code Scanning.

Layer Latency Role What happens on violation
1. Local Remote MCP (/mcp) <15ms Developer / Agent fast feedback loop Agent sees exact rule_id ,line , andremediation before even proposing the diff
2. GitHub Actions SARIF Gate (/v1/scan/sarif) <15ms per batch Hard merge enforcement Uploads OASIS SARIF 2.1.0 to GitHub Code Scanning (inline PR diff annotations + Security tab) and blocks merge

Because both layers hit the exact same zero-data-retention deterministic engine, there is zero rule drift between what the AI agent checks locally and what CI enforces on pull_request.

curl) You can test the live zero-data-retention sandbox right now (no signup required):

curl -sS -i -X POST https://audit.corenovacloud.com/v1/scan/sarif \
  -H "Content-Type: application/json" \
  -d '{
    "files": [
      {
        "filename": "infra/rds.tf",
        "content": "resource \"aws_db_instance\" \"prod\" {\n  storage_encrypted   = false\n  publicly_accessible = true\n}\n"
      },
      {
        "filename": "k8s/worker-pod.yaml",
        "content": "apiVersion: v1\nkind: Pod\nspec:\n  containers:\n    - name: worker\n      securityContext:\n        privileged: true\n"
      }
    ]
  }'

The response includes machine-readable headers (x-corenova-action: block, x-corenova-findings-count: 2, x-corenova-risk-score: 75) and a valid SARIF 2.1.0 payload with exact startLine, security-severity, and remediation guidance ready for github/codeql-action/upload-sarif@v3.

Add .github/workflows/corenova-sarif-gate.yml to your repository (full MIT starter at CoreNovaLabs/cloud-audit-mcp-starter):

name: CoreNova Cloud Security SARIF Gate

on:
  pull_request:
    paths:
      - "**/*.tf"
      - "**/*.yaml"
      - "**/*.yml"
      - "**/iam/*.json"
      - "**/Dockerfile*"

permissions:
  contents: read
  security-events: write

jobs:
  sarif-audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - name: Run CoreNova deterministic audit (SARIF 2.1.0)
        id: audit
        continue-on-error: true
        env:
          CORENOVA_AUDIT_API_KEY: ${{ secrets.CORENOVA_AUDIT_API_KEY }}
          CORENOVA_SARIF_OUT: corenova-audit.sarif
        run: |
          FILES=$(git diff --name-only --diff-filter=AM origin/${{ github.base_ref }}...HEAD -- '*.tf' '*.yaml' '*.yml' '*iam*.json' '*Dockerfile*' || true)
          if [ -n "$FILES" ]; then
            python3 examples/python/sarif_gate.py $FILES
          fi
      - name: Upload SARIF to GitHub Code Scanning
        if: always() && hashFiles('corenova-audit.sarif') != ''
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: corenova-audit.sarif
      - name: Enforce merge gate on block
        if: steps.audit.outcome == 'failure'
        run: exit 1

Add corenova-cloud-audit to Claude Code, Cursor, or any Streamable HTTP MCP client:

{
  "mcpServers": {
    "corenova-cloud-audit": {
      "type": "http",
      "url": "https://audit.corenovacloud.com/mcp"
    }
  }
}

Available MCP tools in v1.1.0:

audit_aws_iam_policy`` audit_iac_template``audit_k8s_or_dockerfile`` audit_to_sarif What AWS IAM escalation paths or Kubernetes admission rules would you want added next in v1.2.0? Drop a comment below—we ship community-requested rules fast.

── more in #ai-agents 4 stories · sorted by recency
── more on @corenova labs 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/github-code-scanning…] indexed:0 read:3min 2026-11-29 · —