Skip to content
provablPublic

About

Compliance compiler for AWS Secure Research Environments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

attest

Open-source compliance compiler for AWS Secure Research Environments.

Boundary: attest is the suite's decision-and-proof layer — it compiles policy, decides access (the Cedar PDP), and generates audit documents. It consumes the facts the other tools produce (training, supply-chain, runtime attestation) but never gathers them itself, and ground — not attest — builds the AWS foundation.

Universities, health systems, and national labs running research on AWS face a compliance problem that consultants charge $300/hour to solve: translating framework requirements (NIST 800-171, HIPAA, FERPA, CMMC) into deployed AWS controls — and then proving they're working.

Attest automates the full lifecycle: read your org, compile your policies, deploy them, enforce them continuously, and generate the documents your auditor actually needs.

attest is the suite's policy decision point — it consumes the lowered attributes every other tool produces and turns them into PERMIT/FORBID decisions plus the compliance documents:

flowchart LR
    qualify["qualify"] -->|"attest:* tags → principal.*"| attest
    vet["vet"] -->|".vet/gate-result.json → context.workload.*"| attest
    runtime["nitro / tpm"] -->|".../attestation.json → context.platform.*"| attest
    ground["ground"] -->|"deployed org (standard APIs)"| attest
    attest["<b>attest</b><br/>compile · Cedar PDP · enforce"] --> dec["PERMIT / FORBID"]
    attest --> docs["SSP · POA&amp;M · OSCAL · SPRS"]
Loading

Core concepts

The handful of ideas to hold (terms link to the suite glossary):

  • Cedar / PDP — attest is the policy decision point: a Cedar policy returns permit/forbid for each sensitive action. attest evaluates facts; it does not gather them.
  • Lowered attributes — the durable artifacts attest consumes: qualify's attest:* tags (→ principal.*), vet's context.workload.*, nitro/tpm's context.platform.*. attest reads them; it never re-runs the producers.
  • Compiler + crosswalk — attest compiles framework requirements (NIST 800-171, CMMC, HIPAA…) into deployed SCPs/Cedar policies, and emits a crosswalk mapping every control to the artifact that enforces it.
  • Documents from the same facts — the decision and the audit evidence (SSP/POA&M/OSCAL/SPRS) come from one source, not a decision here and a hand-written assertion there.

The problem attest solves

A compliance program has two layers that most tools treat independently. Attest connects them.

Technical controls — what AWS enforces:

  • SCPs that prevent non-compliant actions at the organization level
  • Cedar policies that evaluate every sensitive operation against data classification, principal attributes, and temporal constraints
  • Config rules that detect configuration drift

Administrative controls — what humans operate:

  • Training programs (and the records proving they happened)
  • Risk assessments, incident response plans, contingency tests
  • Personnel screening, policy reviews, waiver approvals

The connection matters. Control 3.2.2 (CUI handling training) isn't just a paperwork requirement — it feeds principal.cui_training_current in the Cedar policy that gates every CUI data movement operation. When training expires, the technical enforcement degrades. When the training records exist but aren't in the system, attest thinks the control is a gap when it isn't.

Attest tracks both layers and tells you when they drift apart.


Two starting points

Starting from scratch

$ attest ai onboard --mode greenfield

Attest AI: You have 26 technical controls enforced. You need to build
           34 administrative processes. Here's where to start:

           CRITICAL (blocks Cedar attributes):
           · 3.2.2 — CUI handling training
             Blocks: principal.cui_training_current in 3 Cedar policies.
             Without this: CUI data movement denies everyone.

           Start here? [y]

$ attest ai generate-policy --control 3.2.2
  → Generates: .attest/drafts/policy-3.2.2-cui-training.md
    (tailored to your org, your data classes, your environments)

$ attest attest create --control 3.2.2 \
    --evidence "training-records.csv" --expires 2027-04-15
  → Control 3.2.2 now shows Implemented. Cedar attributes resolve correctly.

You have existing documentation

$ attest ai ingest ./policies/information-security-policy.pdf

  3.11.1[a]  ✓ Covered   "Section 4.2: Annual risk assessment required"
  3.11.1[b]  ✓ Covered   "Section 4.3: Risk management measures defined"
  3.6.1[a]   ✓ Covered   "Appendix C: Incident Response Procedures"
  3.6.3[a]   ✗ Missing   No IR testing schedule found
  3.11.2[a]  ✗ Missing   No vulnerability scanning schedule found

  Create attestation records for covered controls? [y]

The technical pipeline

AWS Artifact API ──► Framework definitions (YAML)
AWS Org API      ──► Org topology, existing SCPs
                              │
                    Control gap analysis
                              │
              ┌───────────────┼───────────────┐
              ▼               ▼               ▼
         SCP compiler    Cedar compiler   Config compiler
         (structural)    (operational)    (monitoring)
              │               │               │
              └───────────────┼───────────────┘
                              ▼
                    Crosswalk manifest
                  (control → artifact, auditable)
                              │
              ┌───────────────┼───────────────┐
              ▼               ▼               ▼
           Deploy          Evaluate       Generate docs
         (attest apply)  (Cedar PDP)   (SSP/POA&M/OSCAL)

The crosswalk is the core artifact. It maps every framework control to the deployed artifacts that enforce it — SCPs, Cedar policies, Config rules, attestation records, Artifact report references. An auditor can walk the crosswalk from control to evidence end-to-end.


Install

go install github.com/provabl/attest/cmd/attest@latest   # requires Go 1.26.4+
# or build from a clone: go build ./cmd/attest

Prerequisites. Go 1.26.4+, and AWS credentials with read access to your Organization (attest init discovers the org via standard Organizations APIs; attest apply additionally needs SCP/policy write permissions). Run attest preflight to verify the calling principal holds what it needs. The DUA-approval path (attest approval) additionally writes iam:TagRole/iam:UntagRole. No external tools are required for the core compile/scan/generate flow.


Quick start

# Initialize from your existing AWS Organization
AWS_PROFILE=your-profile attest init --region us-west-2

# Activate NIST 800-171 (CMMC 2.0 Level 2)
attest frameworks add nist-800-171-r2

# Compile policy artifacts
attest compile
# → 26 SCPs, 7 Cedar policies, crosswalk.yaml

# Generate your System Security Plan
attest generate ssp
# → .attest/documents/ssp-nist-800-171-r2.md
#   Score: 508/550 (92.4%) — Assessment Ready

# Full assessment package
attest generate assess   # CMMC self-assessment score
attest generate poam     # Plan of Action & Milestones
attest generate oscal    # OSCAL 1.1.2 for GRC tools

→ Full step-by-step walkthrough: docs/quickstart.md


What you get from attest generate ssp

A real System Security Plan — not a template someone filled in, but a document computed from your live compliance state:

### 3.1.3 — Control the flow of CUI in accordance with approved authorizations

| Status | Implemented | Score | 5/5 |
|--------|-------------|-------|-----|
| AWS Coverage | VPC flow control, S3 bucket policies, KMS encryption |
| Enforcement | SCP scp-cui-region-restrict (restricts to approved regions),
|             | SCP scp-cui-s3-encryption (requires KMS),
|             | Cedar policy cedar-cui-data-movement (evaluates classification,
|             | destination encryption, principal training at operation time) |
| Evidence | Training attestation: ATT-2026-003, affirmed 2026-04-01,
|          | expires 2027-04-01 |

Every sentence traces to a deployed artifact, an attestation record, or an Artifact report reference. Nothing is hand-written.


Full CLI surface

# Initialization and scanning
attest init [--region]             Initialize SRE from existing org
attest scan [--region]             Compute posture against active frameworks
attest diff                        Compare posture between assessment periods

# Framework management
attest frameworks list             Available and active frameworks
attest frameworks add <id>         Activate a framework

# Policy lifecycle
attest compile [--output tf|cdk]   Generate SCPs, Cedar policies, crosswalk
attest apply [--dry-run]           Deploy compiled policies to the org
attest test                        Unit test policies against cedar-go (no AWS)
attest check --terraform plan.json CI/CD compliance gate (SARIF output)

# Document generation
attest generate ssp                System Security Plan (markdown + OSCAL)
attest generate poam               Plan of Action & Milestones
attest generate assess             CMMC 2.0 Level 2 self-assessment
attest generate oscal              Full OSCAL 1.1.2 export bundle

# Governance
attest waiver create|list|expire   Manage compliance exceptions
attest attest create|list|expire   Record administrative control attestations
attest calendar [--window 90d]     Upcoming review and renewal obligations

# Continuous monitoring
attest evaluate                    One-shot Cedar PDP evaluation
attest watch                       Continuous Cedar PDP (EventBridge-driven)
attest serve                       Launch compliance dashboard

# AI capabilities (Bedrock + Claude)
attest ai onboard                  Guided onboarding for greenfield/legacy orgs
attest ai ingest <file>            Map existing documents to framework controls
attest ai generate-policy <ctrl>   Draft administrative policies and procedures
attest ai ask <question>           Query compliance state in plain language
attest ai audit-sim                Simulate an assessor evaluation
attest ai remediate <control>      Generate remediation artifacts for gaps
attest ai translate <description>  Natural language → Cedar policy
attest ai analyze [--window 30d]   Detect anomalies in Cedar decision log

Frameworks

Community-maintained YAML definitions in frameworks/. Each control carries the full vertical: shared responsibility split, SCP specs, Cedar policy specs, Config rules, assessment objectives, and administrative review schedules.

Framework Controls Notes
nist-800-171-r2 110 CMMC Level 2 basis
hipaa 23 Activated via AWS Artifact BAA
fedramp-moderate 36 FedRAMP Moderate baseline
fedramp-high 15 Delta — activate with fedramp-moderate
nist-800-53-r5 32 FedRAMP/High base controls
ferpa 13 —
iso27001-2022 36 —
uk-cyber-essentials 11 —
asd-essential-eight 8 —

Framework contributions welcome — see frameworks/CONTRIBUTING.md.


Open core

Open source (always free) Commercial (attest Cloud)
Framework definitions + schema Cedar PDP continuous enforcement
SCP / Cedar / Config compilers Live compliance dashboard
Crosswalk manifest generator AI compliance navigator (Bedrock + Claude)
CLI: init, scan, compile, generate Multi-SRE management
Policy testing + simulation GRC integrations (OSCAL continuous)
IaC output (Terraform, CDK) Operational monitoring + alerting
Waiver + attestation management Managed regulatory watch
qualify tag schema contract (versioned) Framework customization service

See COMMERCIAL.md for the complete boundary and rationale.


License

Apache 2.0. Copyright 2026 Playground Logic LLC.

About

Compliance compiler for AWS Secure Research Environments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages