{"slug": "github-code-scanning-with-sarif-2-1-0-remote-mcp-catching-ai-generated-wildcard", "title": "GitHub Code Scanning with SARIF 2.1.0 + Remote MCP: Catching AI-Generated Wildcard AWS IAM & Privileged EKS Pods on Every PR", "summary": "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.", "body_md": "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.\n\nEarlier this week, a reader here on DEV pointed out the exact production failure mode of agent-only guardrails:\n\nUnder 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.\n\nWe 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.\n\n| Layer | Latency | Role | What happens on violation | \n|---|---|---|---|\n| **1. Local Remote MCP (`/mcp`)** | `<15ms` | Developer / Agent fast feedback loop | Agent sees exact `rule_id` ,`line` , and`remediation` before even proposing the diff | \n| **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 | \n\nBecause 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`.\n\n`curl`)\nYou can test the live zero-data-retention sandbox right now (no signup required):\n\n```\ncurl -sS -i -X POST https://audit.corenovacloud.com/v1/scan/sarif \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"files\": [\n      {\n        \"filename\": \"infra/rds.tf\",\n        \"content\": \"resource \\\"aws_db_instance\\\" \\\"prod\\\" {\\n  storage_encrypted   = false\\n  publicly_accessible = true\\n}\\n\"\n      },\n      {\n        \"filename\": \"k8s/worker-pod.yaml\",\n        \"content\": \"apiVersion: v1\\nkind: Pod\\nspec:\\n  containers:\\n    - name: worker\\n      securityContext:\\n        privileged: true\\n\"\n      }\n    ]\n  }'\n```\n\nThe 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`.\n\nAdd `.github/workflows/corenova-sarif-gate.yml` to your repository (full MIT starter at [CoreNovaLabs/cloud-audit-mcp-starter](https://github.com/CoreNovaLabs/cloud-audit-mcp-starter)):\n\n```\nname: CoreNova Cloud Security SARIF Gate\n\non:\n  pull_request:\n    paths:\n      - \"**/*.tf\"\n      - \"**/*.yaml\"\n      - \"**/*.yml\"\n      - \"**/iam/*.json\"\n      - \"**/Dockerfile*\"\n\npermissions:\n  contents: read\n  security-events: write\n\njobs:\n  sarif-audit:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          fetch-depth: 0\n      - uses: actions/setup-python@v5\n        with:\n          python-version: \"3.12\"\n      - name: Run CoreNova deterministic audit (SARIF 2.1.0)\n        id: audit\n        continue-on-error: true\n        env:\n          CORENOVA_AUDIT_API_KEY: ${{ secrets.CORENOVA_AUDIT_API_KEY }}\n          CORENOVA_SARIF_OUT: corenova-audit.sarif\n        run: |\n          FILES=$(git diff --name-only --diff-filter=AM origin/${{ github.base_ref }}...HEAD -- '*.tf' '*.yaml' '*.yml' '*iam*.json' '*Dockerfile*' || true)\n          if [ -n \"$FILES\" ]; then\n            python3 examples/python/sarif_gate.py $FILES\n          fi\n      - name: Upload SARIF to GitHub Code Scanning\n        if: always() && hashFiles('corenova-audit.sarif') != ''\n        uses: github/codeql-action/upload-sarif@v3\n        with:\n          sarif_file: corenova-audit.sarif\n      - name: Enforce merge gate on block\n        if: steps.audit.outcome == 'failure'\n        run: exit 1\n```\n\nAdd `corenova-cloud-audit` to Claude Code, Cursor, or any Streamable HTTP MCP client:\n\n```\n{\n  \"mcpServers\": {\n    \"corenova-cloud-audit\": {\n      \"type\": \"http\",\n      \"url\": \"https://audit.corenovacloud.com/mcp\"\n    }\n  }\n}\n```\n\nAvailable MCP tools in `v1.1.0`:\n\n`audit_aws_iam_policy`` audit_iac_template``audit_k8s_or_dockerfile`` audit_to_sarif`\nWhat 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.", "url": "https://wpnews.pro/news/github-code-scanning-with-sarif-2-1-0-remote-mcp-catching-ai-generated-wildcard", "canonical_source": "https://dev.to/corenovalabs/github-code-scanning-with-sarif-210-remote-mcp-catching-ai-generated-wildcard-aws-iam--3506", "published_at": "2026-11-29 02:35:31+00:00", "updated_at": "2026-11-29 02:44:31.280791+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools", "ai-safety"], "entities": ["CoreNova Labs", "GitHub", "GitHub Actions", "GitHub Code Scanning", "Claude Code", "Cursor", "Amazon Bedrock", "OASIS SARIF"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/github-code-scanning-with-sarif-2-1-0-remote-mcp-catching-ai-generated-wildcard", "markdown": "https://wpnews.pro/news/github-code-scanning-with-sarif-2-1-0-remote-mcp-catching-ai-generated-wildcard.md", "text": "https://wpnews.pro/news/github-code-scanning-with-sarif-2-1-0-remote-mcp-catching-ai-generated-wildcard.txt", "jsonld": "https://wpnews.pro/news/github-code-scanning-with-sarif-2-1-0-remote-mcp-catching-ai-generated-wildcard.jsonld"}}