Skip to content

konjoai/squash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

82 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Squash β€” Automated EU AI Act Compliance

Squash automates EU AI Act compliance so ML teams spend engineering time building, not documenting.

CI PyPI License Python

⏰ EU AI Act high-risk enforcement: August 2, 2026


What Squash Does

Squash generates your Annex IV technical documentation, runs policy checks against 10+ regulatory frameworks, and produces cryptographically signed audit records β€” all inside your CI/CD pipeline.

pip install squash-ai
squash attest ./my-model --policy eu-ai-act
βœ“ CycloneDX 1.7 ML-BOM generated    β†’ ./my-model/cyclonedx-mlbom.json
βœ“ SPDX 2.3 SBOM generated           β†’ ./my-model/sbom.spdx.json
βœ“ EU AI Act policy: PASS (18/18)    β†’ ./my-model/attestation.json
βœ“ OWASP LLM Top 10: PASS (10/10)
βœ“ NIST AI RMF: PASS (42/42 controls)
βœ“ SLSA Level 2 provenance           β†’ ./my-model/provenance.json
βœ“ ModelScan security: PASS (0 findings)
βœ“ Signed via Sigstore Rekor

Why Squash

Problem Cost
Annex IV documentation (manual) 3–6 months engineering time
Non-compliance fine up to €35M or 7% of global turnover
Compliance consultant (typical) €150K–€400K/year per AI system
Squash (automated) < 5 seconds in CI/CD

Features

Capability Detail
EU AI Act Annex IV Auto-generates all 12 required documentation sections
CycloneDX 1.7 ML-BOM Machine-readable model bill of materials
SPDX 2.3 SBOM Full dependency and lineage graph
10+ Policy Frameworks EU AI Act Β· NIST AI RMF Β· ISO 42001 Β· OWASP LLM Top 10 Β· FedRAMP Β· CMMC Β· NTIA
ModelScan Security Detects pickle exploits, serialization attacks, unsafe ops
Sigstore Signing Keyless signing via Rekor transparency log
SLSA Provenance Level 1–3 provenance attestation
VEX Feed Live vulnerability tracking for AI model components
Drift Detection Alerts when model behavior diverges from attested baseline
10 MLOps Integrations MLflow Β· W&B Β· HuggingFace Β· LangChain Β· SageMaker Β· Vertex AI Β· Ray Β· Kubernetes Β· Azure DevOps Β· CircleCI
Open-core Community tier free and self-hostable under Apache 2.0

Installation

# Community (free, Apache 2.0)
pip install squash-ai

# With REST API server
pip install "squash-ai[api]"

# With cryptographic signing
pip install "squash-ai[signing,sbom]"

# All features
pip install "squash-ai[all]"

Quick Start

CLI attestation

squash attest ./my-model \
  --policy eu-ai-act \
  --policy nist-ai-rmf \
  --sign \
  --fail-on-violation

GitHub Actions

- name: Squash compliance gate
  uses: konjoai/squash-action@v1
  with:
    model-path: ./my-model
    policy: eu-ai-act
    fail-on-violation: true

Python API

from squash import AttestPipeline, AttestConfig

config = AttestConfig(
    model_path="./my-model",
    policies=["eu-ai-act", "owasp-llm"],
    sign=True,
)
result = AttestPipeline(config).run()
print(f"Policy: {'PASS' if result.passed else 'FAIL'}")
print(f"Attestation ID: {result.attestation_id}")

REST microservice

uvicorn squash.api:app --host 0.0.0.0 --port 4444
curl -X POST http://localhost:4444/v1/attest \
  -H "Authorization: Bearer $SQUASH_API_KEY" \
  -d '{"model_path": "/models/my-model", "policies": ["eu-ai-act"]}'

Policy Frameworks

Framework Status Key Checks
EU AI Act (Annex IV) βœ… Full Technical documentation, risk classification, human oversight
NIST AI RMF 1.0 βœ… Full 42 controls across GOVERN Β· MAP Β· MEASURE Β· MANAGE
OWASP LLM Top 10 βœ… Full LLM01–LLM10 vulnerability categories
ISO 42001 βœ… Core Clause 6 (Planning), Clause 8 (Operation), Clause 9 (Evaluation)
NTIA Minimum Elements βœ… Full 7 required SBOM fields
FedRAMP AI πŸ”„ Sprint 2 Federal AI procurement requirements
CMMC Level 2 πŸ”„ Sprint 2 DoD contractor AI requirements

Tiers & Pricing

Tier Price Attestations/mo Features
Community Free 10 Full CLI, SBOM, policy checks, signing, self-hosted
Professional $299/mo 200 Cloud API, Annex IV auto-generation, drift alerts, audit export
Team $899/mo 1,000 Multi-tenant dashboard, VEX feed, SAML SSO, HITL workflows
Enterprise Custom Unlimited On-premise, air-gapped, dedicated support, EU data residency

See full pricing β†’


Architecture

squash attest ./my-model
    β”‚
    β”œβ”€β”€ ModelScanner      β†’ Security scan (pickle, unsafe ops, CVEs)
    β”œβ”€β”€ CycloneDXBuilder  β†’ ML-BOM (CycloneDX 1.7)
    β”œβ”€β”€ SpdxBuilder       β†’ SBOM (SPDX 2.3)
    β”œβ”€β”€ PolicyEngine      β†’ EU AI Act Β· NIST Β· OWASP Β· ISO checks
    β”œβ”€β”€ SlsaBuilder       β†’ SLSA Level 1–3 provenance
    β”œβ”€β”€ VexEvaluator      β†’ Live vulnerability feed
    β”œβ”€β”€ OmsSigner         β†’ Sigstore keyless signing
    └── AttestPipeline    β†’ Signed audit record (JSON)

Integration with Squish

Squash and Squish form the complete AI deployment stack for regulated environments:

# Build and compress with Squish
squish compress ./my-model --quant int4

# Gate on compliance with Squash
squash attest ./my-model --policy eu-ai-act --sign

# Deploy with confidence

Squish handles Apple Silicon inference optimization. Squash handles compliance. Different buyers, different toolchains, one ecosystem.


Development

git clone https://github.com/konjoai/squash
cd squash
pip install -e ".[api,signing,sbom,dev]"

# Run tests
python -m pytest tests/ -v --timeout=120

# Run a specific wave's tests
python -m pytest tests/test_squash_wave83.py -v

License

Community edition: Apache 2.0

Enterprise features (cloud API, multi-tenant dashboard, VEX feed subscription, on-premise deployment) are available under a commercial license. Contact us β†’


Built by Konjo AI Β· Make it konjo β€” build, ship, rest, repeat.

About

πŸ›‘οΈ Automated EU AI Act compliance for AI/ML teams β€” Annex IV docs, SBOMs, policy checks, and signed audit records inside your CI/CD pipeline. August 2, 2026 enforcement deadline. ⏰

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages