Skip to content

About

Official GitHub Action for SawOne-Agentic: DevSecOps scanner for Agentic AI, MCP, LLMs and ML

Resources

Stars

2 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

SawOne-Agentic: DevSecOps for Agentic AI, MCP, LLMs and ML

GitHub Release Marketplace License: MIT

SawOne-Agentic is an enterprise DevSecOps security scanner purpose-built for the AI era:

  • Agentic AI & Multi-Agent Systems: LangGraph, CrewAI, AutoGen, PydanticAI, OpenAI Agents SDK, Semantic Kernel.
  • Model Context Protocol (MCP): Tool privilege analysis, arbitrary shell/filesystem command injection, unpinned servers, plaintext secrets.
  • LLM Applications & RAG: Prompt injection, hidden HTML comment / zero-width indirect injection, PII & Saudi national identifiers (PDPL), sensitive data leakage.
  • ML Models & Supply Chain: Safe model format validation (blocking unsafe pickle / torch load execution), CycloneDX ML-BOM generation.
  • AI Cloud IaC: Hardening AWS Bedrock, SageMaker, Azure OpenAI, and Google Vertex AI.
  • Opt-in Live LLM Red Teaming: Autonomous probe execution driven by NVIDIA garak and promptfoo across OWASP LLM01-LLM07.
  • Bilingual Executive Reports: Automated English (security-report.pdf) and Arabic (security-report-ar.pdf) PDF & HTML reports with full compliance mappings (OWASP LLM Top 10, MITRE ATLAS, SDAIA AI Ethics, NIST AI RMF).

Quick Start

Add this step to your GitHub Actions workflow:

name: Security Scan

on:
  push:
    branches: [main]
  pull_request:

jobs:
  ai-security:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v4

      - name: Run SawOne-Agentic
        uses: hackin2minutes-oss/sawone-agentic-action@v1
        with:
          severity: 'HIGH,CRITICAL'
          enforce: true
          languages: 'en,ar'

      - name: Upload Security Reports
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: sawone-agentic-reports
          path: sawone-agentic-reports/

Reproducible Execution (Immutable Digest Pinning)

For SLSA Level 3 compliance or pinned production environments, you can pin the scanner container by its immutable digest:

- uses: hackin2minutes-oss/sawone-agentic-action@v1
  with:
    scanner-image: ghcr.io/hackin2minutes-oss/sawone-si-scanner@sha256:<digest>

🔒 Hardened Execution Boundary

SawOne-Agentic implements strict runner isolation principles:

  • Read-Only Source Mounting: Your repository source files are mounted strictly read-only (:ro). The scanner cannot alter or tamper with codebase files.
  • Isolated Report Directory: All reports, SARIF files, and evidence artifacts are written into a segregated, dedicated output path (sawone-agentic-reports/).
  • Least-Privilege Docker Access: The Docker socket (/var/run/docker.sock) is not attached during static scans (plan, code, build). It is conditionally mounted only when live container scanning or live red-teaming against an owned endpoint is explicitly configured.
  • Fail-Closed Gate Logic: Missing or malformed summary reports never default to a pass condition. Scanner crashes or unhandled exceptions exit with code 2+, cleanly separated from gate policy breaches (exit 1) and clean scans (exit 0).

Action Inputs

Input Description Default
path Path to scan in repository .
config Path to .sawone.yml configuration .sawone.yml
phases DevSecOps phases to execute (all, or subset e.g. plan,code,build,test,release) all
severity Minimum severity level that breaks the build HIGH,CRITICAL
enforce If true, gate violations fail CI. If false, report-only mode true
languages Report languages to generate (en, ar, or en,ar) en,ar
redteam-endpoint Optional live LLM endpoint to attack (NVIDIA garak + promptfoo) ""
redteam-profile Red-teaming probe intensity (quick or full) quick
scanner-image Scanner image tag or immutable @sha256: digest ghcr.io/hackin2minutes-oss/sawone-si-scanner:1

Outputs

Output Description
passed true if all security gates passed, false otherwise
failed Total count of blocking security gate failures
reports-dir Directory path containing generated PDF, HTML, and SARIF artifacts

🔍 Open Source Engine, Source Code & Test Fixtures

This repository distributes the lightweight GitHub Action wrapper. The complete open-source engine, analysers, rule packs, and verification benchmarks are maintained in the main core repository:

👉 https://github.com/hackin2minutes-oss/sawone-si

Reviewers and security teams can independently inspect and test:

  • Scanner Core: Full Python engine and Semgrep AI rule packs in scanner/.
  • Live Red-Team Module: Standalone companion runner for Garak and Promptfoo in redteam/.
  • Vulnerable Benchmark Fixture: Deliberately vulnerable reference app in tests/fixtures/vulnai demonstrating every planted flaw across MCP, agents, prompt injection, unsafe model weights, and PII.
  • Automated Validation CI: Test pipelines asserting that every AI stage flags its planted vulnerability.
  • Signatures & Provenance: Container images are signed with Sigstore/Cosign.

Audit & Compliance Mappings

Reports automatically map identified vulnerabilities to:

  • OWASP Top 10 for LLMs & Generative AI (2025)
  • MITRE ATLAS (Adversarial Threat Landscape for AI Systems)
  • SDAIA AI Ethics Principles (Kingdom of Saudi Arabia)
  • NIST AI Risk Management Framework (AI RMF 1.0)
  • Saudi Personal Data Protection Law (PDPL)

License

SawOne-Agentic is distributed under the MIT License by hackin2minutes-oss.

About

Official GitHub Action for SawOne-Agentic: DevSecOps scanner for Agentic AI, MCP, LLMs and ML

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors