DEV Community

Karan Yadav
Karan Yadav

Posted on Originally published at nandai.org

OASIS SARIF v2.1.0 CI Interoperability & OWASP API Security Top-10 Verification in Pure Python

Static security analyzers and public API gateways share the same architectural failure mode when verification stays fragmented: proprietary scanner JSON cannot plug into CI dashboards, and undocumented OpenAPI specs drift out of sync with live HTTP rate limits and SSRF sandboxes. Pairing OASIS SARIF v2.1.0 CI reporting with OWASP API Security Top 10 (2023) verification in pure Python eliminates external PyPI dependencies while ensuring 0 B of source or OpenAPI telemetry leaves your build environment.

Across sarif-v2-1-0-static-analysis-ci-reporting-spec.json, sarif-v2-1-0-mcp-http-query-format-spec.json, owasp-api-security-top-10-2023-defense-matrix.json, and mcp-zero-auth-rate-limit-fair-use-sla.json, Destiny 2.0.0 exposes 120 live MIT MCP analyzers on api/mcp across 16 HTTP ?format= endpoints alongside standalone offline stdio execution.


1. Unified SARIF v2.1.0 CI + OWASP API Top 10 (2023) Matrix

Security Pillar Machine-Readable Spec Verified Runtime / CI Guarantee
OASIS SARIF v2.1.0 Mapping sarif-v2-1-0-static-analysis-ci-reporting-spec.json destiny-verify maps 118+ rule families & 24+ hooks to error/warning/note (0 B uploaded)
Standalone Scanner (guard_scan.py) sarif-v2-1-0-mcp-http-query-format-spec.json 22 specialized modes + all (--json --strict --min-score) + 16 /api/mcp?format= views
OWASP API1–API10:2023 owasp-api-security-top-10-2023-defense-matrix.json Static OpenAPI/JWT/GraphQL verifiers (#110, #117, #118) + 4-ring SSRF sandbox
Stateless Edge Rate Limits mcp-zero-auth-rate-limit-fair-use-sla.json 30r/s burst 60 (429), 128 conn/IP, 128 KB body cap, :18094/:18095 HA failover

2. Combined Pure-Python Verifier (SARIF v2.1.0 + OWASP API Top 10)

#!/usr/bin/env python3
"""Verify OASIS SARIF v2.1.0 CI mapping & OWASP API Top 10 (2023) specs."""

import json
import urllib.request

HEADERS = {"User-Agent": "DestinySarifOwaspAuditor/2.0"}

def fetch(url: str) -> dict:
    with urllib.request.urlopen(urllib.request.Request(url, headers=HEADERS), timeout=15) as r:
        assert r.status == 200
        return json.loads(r.read().decode("utf-8"))

sarif = fetch("https://nandai.org/.well-known/sarif-v2-1-0-mcp-http-query-format-spec.json")
owasp = fetch("https://nandai.org/.well-known/owasp-api-security-top-10-2023-defense-matrix.json")
sla = fetch("https://nandai.org/.well-known/mcp-zero-auth-rate-limit-fair-use-sla.json")

assert len(sarif["guardScanCliMapping"]["supportedModes"]) == 23
assert len(sarif["liveMcpHttpQueryFormats"]["supportedGetFormatSelectors"]) == 16
assert [r["id"] for r in owasp["owaspApi2023DefenseMatrix"]] == [f"API{i}:2023" for i in range(1, 11)]
assert sla["publicEndpointSlaAndLimits"]["maxRequestBodyBytes"] == 131072
print("SARIF v2.1.0 CI mapping & OWASP API1..API10:2023 controls verified.")
Enter fullscreen mode Exit fullscreen mode

Additional sovereign engineering references: https://nandai.org/academy/software-supply-chain-cyclonedx-sbom-openmls-course, https://nandai.org/.well-known/owasp-openapi-security-spec.json, https://nandai.org/.well-known/mcp-sandbox-4ring-isolation-spec.json, https://nandai.org/api/mcp?format=openapi, and https://nandai.org/src/destiny/.

Top comments (0)