Hmm, the user is asking for a comprehensive blueprint for a secure software factory with specific technical requirements. They want SLSA Level 3 controls, Sigstore attestations, and automated evidence collection integrated. This is a professional-grade request, likely from someone in DevOps or security engineering.
I need to structure this as a practical blueprint, not just theory. SLSA Level 3 means I must cover provenance generation, hermetic builds, and non-falsifiable attestations. Sigstore integration requires explaining keyless signing and attestation workflows. Automated evidence collection ties into compliance and audit trails.
I should break it down into core principles first, then architecture layers, then a step-by-step implementation flow. Need to emphasize toolchains (like Tekton, Kyverno, Cosign) and CI/CD integration. The user probably wants actionable steps, so I'll include a phased rollout plan and compliance mappings.
Avoid fluff—focus on technical specifics but keep it readable. Mention real-world tools (SLSA tooling, Sigstore components, policy engines) so it feels concrete. Also, highlight the "why" behind each control to show security depth. The tone should be authoritative but not academic; this is for implementation.
Secure Software Factory Blueprint
Integrating SLSA Level 3, Sigstore Attestations & Automated Evidence
1. Core Principles & Goals
- Supply Chain Security: Prevent tampering, improve reproducibility, verify artifact provenance.
- Automation-First: All security controls integrated into CI/CD; no manual steps for developers.
- Audit-Ready: Every build produces cryptographically signed, non-falsifiable evidence.
- Developer Experience: frictionless adoption via keyless signing, standardized tooling.
2. SLSA Level 3 Compliance Mapping
| SLSA Requirement | Implementation Mechanism |
|---|
| Provenance | SLSA v1.0 JSON attestation (build type, dependencies, parameters) embedded in artifact. |
| Hermetic Builds | Builds run in isolated environments (ephemeral VMs/containers) with no external network access unless explicitly declared. |
| Non-Falsifiable Provenance | Attestations signed using Sigstore (Fulcio + Rekor) with transient key material. |
| Audit Trails | All build steps, source commits, and policy decisions logged to immutable storage (WORM). |
| Dependency Control | SBOM generation (SPDX or CycloneDX) as part of build; dependency pinning via lockfiles. |
3. Architecture Overview
┌─────────────────────────────────────────────────────────────┐
│ DEVELOPER WORKFLOW │
│ ┌─────────┐ ┌──────────┐ ┌────────────┐ ┌──────────┐ │
│ │ Commit │→│ CI │→│ Attest & │→│ Deploy │ │
│ │ to Git │ │ Pipeline │ │ Sign │ │ / Release│ │
│ └─────────┘ └──────────┘ └────────────┘ └──────────┘ │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ SECURE SOFTWARE FACTORY CORE │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ 1. Source Control (Git) │ │
│ │ - Branch protection, signed commits (GPG/SSH) │ │
│ │ - Commit provenance via `git commit --gpg-sign` │ │
│ └──────────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ 2. Build System (CI/CD) │ │
│ │ - Ephemeral, isolated runners (K8s pods, Tekton)│ │
│ │ - Hermetic build scripts │ │
│ │ - Automatic dependency resolution │ │
│ └──────────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ 3. Attestation & Signing Engine │ │
│ │ - SLSA v1.0 builder attestation │ │
│ │ - SBOM generation (Syft/Trivy) │ │
│ │ - Sigstore signing (Cosign) for artifacts & att.│ │
│ └──────────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ 4. Evidence Store & Transparency Log │ │
│ │ - Rekor transparency log for all signatures │ │
│ │ - Immutable artifact storage (S3 with WORM) │ │
│ │ - Audit logs streamed to SIEM (Splunk/ELK) │ │
│ └──────────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ 5. Policy Enforcement ( admission/CI gate) │ │
│ │ - Kyverno/OPA policies for attestation presence │ │
│ │ - SLSA conformance checks (slsa-framework/slsa-github-generator) │
│ └──────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ VERIFICATION & COMPLIANCE │
│ - Attestation verification (`cosign verify-attestation`)│
│ - SBOM diffing for vulnerability impact analysis │
│ - Rekor query for transparency log integrity │
└─────────────────────────────────────────────────────────────┘
4. Toolchain Recommendations
| Function | Tool (Open Source Preferred) | SLSA Role |
|---|
| CI/CD | Tekton or GitHub Actions with self-hosted runners | Hermetic execution |
| Provenance Generation | slsa-framework/slsa-github-generator or custom with slsa-provenance library | SLSA v1.0 builder attestation |
| SBOM | Syft (SBOM), Trivy (vuln scan), merged into attestation | Dependency metadata |
| Signing & Attestation | Cosign (Sigstore), Rekor (transparency log), Fulcio (CA) | Cryptographic signatures |
| Policy Engine | Kyverno (K8s) or OPA Gatekeeper | Enforce attestation presence |
| Artifact Storage | Artifactory or AWS S3 (with Object Lock) | Immutable storage |
| Logging & Auditing | Elastic Stack or Splunk; log all CI steps | Forensic trail |
| Dependency Management | Dependabot + lockfile validation | Known-good dependencies |
5. Automated Evidence Collection Pipeline
# Example: GitHub Actions + Tekton-style step
- name: Generate SLSA Provenance
run: |
slsa-framework/slsa-github-generator \
--source-path=${{ github.event.repository.clone_url }} \
--commit=${{ github.sha }} \
--builder-id=tekton/tekton@sha256:... \
--output=provenance.json
- name: Generate SBOM
run: |
syft packages -o json > sbom.spdx.json
- name: Create Composite Attestation
run: |
attest -f \
--predicate=provenance.json \
--predicate=sbom.spdx.json \
--type=slsa-provenance \
--type=spdx-sbom
- name: Sign Attestation & Artifact
run: |
cosign sign --yes \
--key=${{ env.COSIGN_PRIVATE_KEY }} \
--attestation=provenance.json \
--attestation=sbom.spdx.json \
${{ env.ARTIFACT_URL }}
- name: Publish Evidence
run: |
aws s3 cp provenance.json s3://evidence-bucket/${{ github.sha }}/ \
--storage-class=REDUCED_REDUNDANCY
aws s3 cp sbom.spdx.json s3://evidence-bucket/${{ github.sha }}/
# Log to SIEM
curl -XPOST $SIEM_ENDPOINT -d @attestation_summary.json
6. Verification & Compliance Checks
CI/CD Gate (Pre-Deploy)
# Verify all required attestations exist and signatures valid
- name: Verify Artifact
run: |
cosign verify-attestation \
--certificate-identity-regexp='https://github.com/your-org' \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
$ARTIFACT_URL \
--type=slsa-provenance
cosign verify-attestation ... --type=spdx-sbom
Admission Control (K8s)
# Kyverno policy: require valid attestation for all images
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: require-attestation
spec:
validationFailureAction: Enforce
background: false
rules:
- name: check-slsa
match:
resources:
kinds:
- Pod
verifyAttestations:
- attestations:
- predicateType: https://slsa.dev/provenance/v1
subject:
- name: "{{request.object.spec.containers[*].image}}"
digest: "{{request.object.spec.containers[*].image | parseImageDigest}}"
7. Phased Rollout Plan
| Phase | Focus | Deliverable |
|---|
| 1 | Infrastructure & Tooling Setup | Sigstore instance (Rekor/Fulcio), SIEM pipeline, artifact storage with WORM |
| 2 | CI/CD Integration | Automated SLSA attestation generation for 1 critical service |
| 3 | Policy Enforcement | Enforce attestation presence for new deployments; audit existing images |
| 4 | Scale & Harden | All services SLSA 3 compliant; integrate with vendor SBOM feeds; run tabletop exercises |
| 5 | Continuous Monitoring | Anomaly detection on Rekor logs; automated revocation of compromised keys |
8. Key Management & Identity
- Keyless Signing: Primary method via Sigstore OIDC (GitHub Actions, GitLab CI, etc.).
- Fallback Keys: Encrypted key material in HashiCorp Vault/AWS KMS for emergency signing; stored offline.
- Certificate Transparency: All certificates logged via Rekor; monitor for unexpected issuers.
- Rotation: Automated key rotation via Fulcio’s short-lived certs (cert TTL ~10min).
9. Compliance & Audit Artifacts
| Evidence | Storage | Retention |
|---|
| SLSA Attestations | WORM S3 / Air-gapped backup | 7+ years |
| Full CI logs | Immutable log store (e.g., CloudWatch Logs with retention lock) | 3+ years |
| Rekor Transparency Log | Rekor server + periodic mirroring | Perpetual |
| SBOMs | Same as attestations | 7+ years |
| Policy Evaluation Reports | SIEM / compliance dashboard | 5+ years |
10. Advanced Considerations
- Reproducibility Verification: Periodic rebuilds of critical artifacts to verify hermeticity.
- Dependency Graph Mapping: Combine SBOMs with provenance to create full DAG of software supply chain.
- Vulnerability Response: Automated SBOM→CVE lookup (via OSV/Grype) at deploy time; block deployment if critical CVE in dependency chain.
- Backdoor Detection: Compare in-house built base images against known-clean signatures; alert on drift.
11. Success Metrics
- % of builds with SLSA 3+ attestations (target: 100%)
- Mean time to detect attestation absence (target: <1 build)
- False positive rate of policy blocks (<5%)
- Rekor entry consistency (all signed artifacts indexed)
- Audit query time for “show all artifacts built from commit X” (<10s)
12. References & Standards
Implementation Note: Start with a single critical service, validate end-to-end flow, then expand. Integrate with existing identity (GitHub/GitLab OIDC) to minimize friction. Regularly review SLSA conformance using slsa-framework/slsa-github-generator validation tools.
This blueprint provides a defensible, auditable, and automated software supply chain compliant with modern standards.