ISMS Copilot Docs

Hoe bouw je een DevSecOps-pipeline met behulp van AI

DevSecOps integreert beveiliging in elke fase van de softwareleveringscyclus in plaats van het te behandelen als een laatste controle voor release. Voor…

Overzicht

DevSecOps integreert beveiliging in elke fase van de softwareleveringscyclus in plaats van het te behandelen als een laatste controle voor release. Voor organisaties die onderworpen zijn aan ISO 27001, SOC 2, NIST CSF of andere compliance-frameworks, transformeert een goed ontworpen DevSecOps-pipeline compliance van een periodieke audit-oefening naar een continu, bewijsmateriaal genererend proces. Shift-left security vangt kwetsbaarheden op voordat ze in productie komen. Geautomatiseerde compliance-gates leveren audit-ready bewijsmateriaal bij elke implementatie. Continue monitoring handhaaft je beveiligingspostuur tussen assessments.

Deze handleiding laat zien hoe je ISMS Copilot kunt gebruiken om een DevSecOps-pipeline te ontwerpen, bouwen en versterken die voldoet aan compliance-eisen terwijl je engineeringteams productief blijven.

Voor wie is dit bedoeld

  • DevOps- en platformengineers die beveiligingscontroles in CI/CD-pipelines integreren
  • Beveiligingsengineers die verantwoordelijk zijn voor applicatiebeveiliging en compliance-automatisering
  • CISO's en beveiligingsarchitecten die veilige ontwikkelstandaarden definiëren
  • GRC-professionals die moeten verifiëren dat technische pipelines voldoen aan controle-eisen

Het ontwerpen van je DevSecOps-pipeline

Een DevSecOps-pipeline koppelt beveiligings- en compliance-activiteiten aan elke fase van de softwareleveringscyclus. In plaats van beveiliging aan het einde toe te voegen, verspreid je controles over zes fasen: plannen, coderen, bouwen, testen, implementeren en monitoren.

Compliance-eisen koppelen aan pipeline-fasen

Gebruik ISMS Copilot om een fase-voor-fase mapping te genereren die je compliance-verplichtingen verbindt met concrete pipeline-activiteiten:

Pipeline-fase

Beveiligingsactiviteiten

ISO 27001-controles

SOC 2-criteria

Plan

Threat modeling, beveiligingseisen, risicobeoordeling

A.8.25 (Veilige ontwikkelingslevenscyclus)

CC3.2, CC8.1

Code

Veilige coderingsstandaarden, pre-commit hooks, peer review

A.8.26 (Applicatiebeveiligingseisen)

CC8.1

Build

SAST, SCA, afhankelijkheidscontroles, SBOM-generatie

A.8.28 (Veilig coderen)

CC7.1, CC8.1

Test

DAST, container scanning, integratiebeveiligingstests

A.8.27 (Veilige systeemarchitectuur)

CC7.1, CC7.2

Deploy

Compliance-gates, artefactondertekening, goedkeuringsworkflows

A.8.25, A.8.32 (Wijzigingsbeheer)

CC8.1

Monitor

Runtime-bescherming, logaggregatie, drift-detectie

A.8.15 (Loggen), A.8.16 (Monitoring)

CC7.2, CC7.3

Vraag ISMS Copilot om deze mapping aan te passen aan je specifieke tech stack en compliance-eisen:

Map our compliance requirements to a DevSecOps pipeline for [application type] using [CI/CD platform]. We need to satisfy [ISO 27001 / SOC 2 / NIST CSF]. For each pipeline stage (plan, code, build, test, deploy, monitor), identify:
- Specific security activities to implement
- Applicable compliance controls and how they're satisfied
- Recommended tools and integrations
- Evidence artifacts generated for audit

Our stack: [languages, frameworks, cloud provider, container orchestration].

Een goed in kaart gebrachte pipeline heeft een dubbele functie: het voorkomt dat beveiligingsfouten in productie komen en genereert tegelijkertijd het bewijsmateriaal dat je auditors nodig hebben. Elk scanresultaat, goedkeuringsrecord en monitoring-alert wordt een auditartefact.

Architectuuroverwegingen

Houd bij het ontwerpen van je pipeline-architectuur rekening met deze compliance-relevante beslissingen:

  • Pipeline-as-code: Bewaar alle pipeline-definities in versiebeheer (voldoet aan A.8.32 wijzigingsbeheer en biedt een audit trail)
  • Immutable build-omgevingen: Gebruik efemere runners en containers om manipulatie te voorkomen (adresseert supply chain-integriteit)
  • Scheiding van taken: Zorg ervoor dat ontwikkelaars hun eigen implementaties naar productie niet kunnen goedkeuren (voldoet aan SOC 2 CC6.1 en A.5.3 scheiding van taken)
  • Bewijsmateriaalretentie: Archiveer scanresultaten, goedkeuringslogboeken en implementatierecords voor de vereiste retentieperiode

Beveiligingsscans integreren

Beveiligingsscan-tools vormen de ruggengraat van je DevSecOps-pipeline. De uitdaging is het selecteren en configureren van de juiste combinatie van tools zonder je ontwikkelaars te overweldigen met valse positieven of de levering te vertragen.

De juiste scan-tools selecteren

Gebruik ISMS Copilot om te evalueren welke scancategorieën aansluiten bij je compliance-behoeften en technische omgeving:

Recommend security scanning tools for our DevSecOps pipeline. Our environment:
- Languages: [e.g., Python, TypeScript, Go]
- Cloud: [e.g., AWS with EKS]
- CI/CD: [e.g., GitHub Actions]
- Compliance: [e.g., ISO 27001, SOC 2]

For each scanning category (SAST, DAST, SCA, container scanning, IaC scanning, secrets detection), recommend:
- Best-fit open source and commercial options
- Which compliance controls each addresses
- Integration approach with our CI/CD platform
- Expected false positive rates and tuning strategies

Scancategorieën en compliance-mapping

  • SAST (Static Application Security Testing): Analyseert broncode op kwetsbaarheden voor runtime. Adresseert ISO 27001 A.8.28 (veilig coderen) en OWASP Top 10-preventie. Tools: Semgrep, SonarQube, CodeQL, Checkmarx.
  • DAST (Dynamic Application Security Testing): Test draaiende applicaties op exploiteerbare kwetsbaarheden. Voldoet aan A.8.27 (veilige systeemarchitectuur en engineeringprincipes) door runtime-gedrag te valideren. Tools: OWASP ZAP, Burp Suite, Nuclei.
  • SCA (Software Composition Analysis): Identificeert kwetsbaarheden en licentierisico's in externe afhankelijkheden. Cruciaal voor A.5.21 (beheer van ICT-toeleveringsketenbeveiliging) en het genereren van Software Bills of Materials (SBOM's). Tools: Snyk, Dependabot, Grype, OWASP Dependency-Check.
  • Container scanning: Detecteert kwetsbaarheden in containerimages en valideert configuratie. Ondersteunt A.8.9 (configuratiebeheer) en runtime-beveiliging. Tools: Trivy, Grype, Anchore, Clair.
  • IaC scanning: Controleert infrastructuur-as-code sjablonen op misconfiguraties voor provisioning. Voorkomt cloudmisconfiguraties die A.8.9 en CIS Benchmarks schenden. Tools: Checkov, tfsec, KICS.
  • Secrets detection: Voorkomt dat inloggegevens, API-sleutels en tokens in versiebeheer terechtkomen. Adresseert direct A.5.33 (bescherming van records) en A.8.28. Tools: GitLeaks, TruffleHog, detect-secrets.

Scan-drempels configureren

Scans zijn alleen effectief als hun output beslissingen stuurt. Definieer ernst-drempels die aansluiten bij je risicotolerantie:

Create security scanning threshold policies for our CI/CD pipeline that align with [ISO 27001 / SOC 2] risk appetite. Define:
- Hard-fail thresholds by severity (critical, high, medium, low) for each scan type
- Grace periods for newly discovered vulnerabilities in existing dependencies
- Exception/waiver process with approval requirements and expiry dates
- Escalation paths when thresholds are breached
- Metrics to track threshold effectiveness over time

Output as both human-readable policy and CI/CD configuration snippets for [platform].

Begin met strikte drempels (nul kritiek, nul hoog) en pas aan op basis van resultaten uit de praktijk. Het is beter om strikt te beginnen en later te versoepelen met gedocumenteerde rechtvaardiging dan om permissief te starten en later te proberen te verscherpen. Elke uitzondering moet worden bijgehouden met een vervaldatum en een risico-eigenaar.

Veilige coderingsstandaarden

Compliance-frameworks vereisen gedocumenteerde veilige coderingspraktijken, maar generieke richtlijnen passen zelden bij de specifieke technologie-stack en risicoprofiel van je organisatie. Gebruik ISMS Copilot om coderingsstandaarden te genereren die zowel compliance-gericht als praktisch bruikbaar zijn voor je ontwikkelaars.

Organisatiespecifieke richtlijnen genereren

ISO 27001-controles A.8.25 tot en met A.8.28 vereisen gezamenlijk een veilige ontwikkelingslevenscyclus met gedefinieerde coderingspraktijken. Vraag ISMS Copilot om standaarden op maat te maken voor je omgeving:

Generate secure coding standards for our engineering team. Context:
- Primary languages: [e.g., Python, TypeScript]
- Frameworks: [e.g., Django, React, FastAPI]
- Architecture: [e.g., microservices on Kubernetes]
- Compliance requirements: ISO 27001 A.8.25-A.8.28, OWASP Top 10

For each language/framework, provide:
- Input validation and output encoding rules
- Authentication and session management requirements
- Cryptographic standards (algorithms, key lengths, key management)
- Error handling and logging (what to log, what never to log)
- Dependency management policies (approved sources, update cadence, vulnerability SLAs)
- Code review security checklist

Format as a developer-facing reference document with code examples.

Framework-specifieke controlemapping

Koppel je coderingsstandaarden aan specifieke compliance-controles zodat auditors kunnen traceren van framework-eis naar geïmplementeerde praktijk:

Coderingsstandaardgebied

ISO 27001-controle

OWASP-referentie

Inputvalidatie

A.8.26 (Applicatiebeveiligingseisen)

A03:2021 Injection

Authenticatie-implementatie

A.8.5 (Veilige authenticatie)

A07:2021 Identification and Authentication Failures

Cryptografisch gebruik

A.8.24 (Gebruik van cryptografie)

A02:2021 Cryptographic Failures

Foutafhandeling en loggen

A.8.15 (Loggen), A.8.28 (Veilig coderen)

A09:2021 Security Logging and Monitoring Failures

Afhankelijkheidsbeheer

A.5.21 (Beheer van ICT-toeleveringsketenbeveiliging)

A06:2021 Vulnerable and Outdated Components

Toegangscontrolelogica

A.8.3 (Informatietoegangsbeperking)

A01:2021 Broken Access Control

Standaarden afdwingen via automatisering

Gedocumenteerde standaarden werken alleen als ze worden afgedwongen. Integreer handhaving in je pipeline:

  • Pre-commit hooks: Voer linters, formatters en secrets-detectie uit voordat code in de repository komt
  • Pull request-controles: Geautomatiseerde SAST-scans en beveiligingsgerichte code review-checklists die blokkeren totdat ze zijn opgelost
  • Aangepaste SAST-regels: Codeer je organisatiespecifieke standaarden als aangepaste Semgrep- of CodeQL-regels
  • Integratie met ontwikkelaarstraining: Koppel scanbevindingen aan interne coderingsrichtlijnen zodat ontwikkelaars leren van overtredingen

Geautomatiseerde compliance-gates

Compliance-gates zijn pipeline-checkpoints die verifiëren dat aan specifieke eisen wordt voldaan voordat code doorgaat naar de volgende fase. In tegenstelling tot handmatige goedkeuringsworkflows bieden geautomatiseerde gates consistente handhaving en genereren ze bewijsmateriaal zonder menselijke knelpunten.

Gate-criteria ontwerpen

Gebruik ISMS Copilot om compliance-gates te ontwerpen die direct aansluiten bij je controle-eisen:

Design automated compliance gates for our CI/CD pipeline deploying to production. Requirements:
- Framework: [ISO 27001 / SOC 2 / both]
- Pipeline: [GitHub Actions / GitLab CI / Jenkins / Azure DevOps]
- Environments: dev → staging → production

For each gate, define:
- Gate name and pipeline stage where it runs
- Pass/fail criteria with specific thresholds
- Compliance controls it satisfies (with control numbers)
- Evidence artifacts it generates
- Bypass/exception process with required approvals
- Notification and escalation on failure

Include gates for: security scanning results, code review completion, change approval, environment promotion criteria, and deployment verification.

Gate-architectuurpatronen

Structureer je gates over drie niveaus:

Niveau 1 -- Build-time gates (snel, elke commit):

  • Secrets-detectie: harde fail bij elke gedetecteerde secret
  • SAST: fail bij kritieke en hoge ernstbevindingen
  • SCA: fail bij kritieke CVE's of licentieovertredingen
  • Unittests-dekking: minimale drempel (bijv. 80%)

Niveau 2 -- Pre-deployment gates (grondig, voor staging/productie):

  • DAST-scan voltooid zonder kritieke bevindingen
  • Containerimage-scan die de drempelwaarde haalt
  • IaC-beveiligingsscan zonder hoog-ernstige misconfiguraties
  • Vereiste code reviewers hebben goedgekeurd (scheiding van taken)
  • Wijzigingsverzoek gekoppeld en goedgekeurd in wijzigingsbeheersysteem

Niveau 3 -- Post-deployment gates (validatie, na deployment):

  • Smoke tests en health checks geslaagd
  • Beveiligingsheaders en TLS-configuratie geverifieerd
  • Monitoring en alerting bevestigd actief
  • Rollback getest of rollback-plan gedocumenteerd

Elke compliance-gate moet een gedocumenteerd uitzonderingsproces hebben. Wanneer een gate moet worden omzeild (bijv. noodhotfix), vereis dan een schriftelijke rechtvaardiging van een security lead of CISO, stel een vervaldatum in voor de uitzondering en maak een vervolgticket aan. Auditors controleren specifiek of omzeilingen worden bijgehouden en opgelost. Dit voldoet aan de eisen van ISO 27001 A.8.32 (wijzigingsbeheer) voor noodwijzigingen.

CI/CD-beveiligingsverharding

De pipeline zelf is een doelwit met hoge waarde. Een gecompromitteerd CI/CD-systeem kan kwaadaardige code in elke deployment injecteren. Het verharden van je pipeline-infrastructuur is net zo belangrijk als de beveiligingscontroles die erin worden uitgevoerd.

Secrets-beheer

Inloggegevens, API-sleutels en certificaten die door je pipeline worden gebruikt, moeten met dezelfde zorgvuldigheid worden beheerd als productiegeheimen:

  • Gebruik een speciale secrets-manager: HashiCorp Vault, AWS Secrets Manager, Azure Key Vault of GCP Secret Manager -- sla nooit secrets op in pipeline-configuratiebestanden of omgevingsvariabelen die in logboeken verschijnen
  • Injecteer tijdens runtime: Secrets moeten tijdens uitvoering in de build-omgeving worden geïnjecteerd en nooit naar schijf of buildartefacten worden geschreven
  • Roteer regelmatig: Automatiseer credentialrotatie met gedefinieerde schema's (maximaal 90 dagen voor serviceaccounts, volgens A.5.17)
  • Masker in logboeken: Configureer je CI/CD-platform om geheimwaarden te redigeren uit alle buildlogboeken en outputs
  • Controleer toegang: Log elke secrettoegang met wie, wat, wanneer en vanuit welke pipelinerun

Pipeline-toegangscontroles

Pas least privilege en scheiding van taken toe op je pipeline-infrastructuur:

  • RBAC voor pipeline-configuratie: Alleen geautoriseerd personeel kan pipeline-definities, deploymentdoelen en beveiligingsgate-drempels wijzigen
  • Branch protection-regels: Vereis pull request-reviews, statuscontroles en ondertekende commits op beschermde branches
  • Environment protection-regels: Productiedeployments vereisen goedkeuring van aangewezen reviewers die niet de code-auteur zijn
  • Serviceaccount least privilege: Pipeline-serviceaccounts moeten alleen de rechten hebben die nodig zijn voor hun specifieke fase
  • Auditlogging: Registreer alle wijzigingen in pipeline-configuratie, handmatige goedkeuringen en gate-overschrijdingen

Artefactondertekening en supply chain-beveiliging

Bescherm de integriteit van je buildartefacten van bron tot deployment:

  • Ondertekende commits: Vereis GPG- of SSH-commitondertekening om de identiteit van de auteur te verifiëren (A.8.25, A.5.14)
  • Build provenance: Genereer SLSA-provenance-attestaties om te documenteren hoe elk artefact is gebouwd
  • Containerimage-ondertekening: Onderteken images met Cosign of Docker Content Trust voordat ze naar de registry worden gepusht
  • SBOM-generatie: Produceer Software Bills of Materials voor elke release om te voldoen aan supply chain-transparantie-eisen (A.5.21)
  • Geverifieerde deployments: Admission controllers (OPA Gatekeeper, Kyverno) moeten niet-ondertekende of niet-geverifieerde artefacten afwijzen
Design a supply chain security strategy for our CI/CD pipeline. We use [CI/CD platform] deploying [container images / serverless functions / VM images] to [cloud provider]. Include:
- Commit signing enforcement and verification
- Build provenance generation (SLSA framework level)
- Artifact signing workflow (tools, key management, verification points)
- SBOM generation and storage strategy
- Admission control policies for deployment targets
- Supply chain attack scenarios and mitigations
- Mapping to ISO 27001 A.5.21 (ICT supply chain), A.8.25 (secure development lifecycle), and NIST SSDF practices

Output as implementation guide with configuration examples.

Voorbeeldprompts

Gebruik deze prompts in ISMS Copilot om de implementatie van je DevSecOps-pipeline te versnellen. Vervang placeholders door je specifieke details.

Pipeline-architectuurontwerp

Design a DevSecOps pipeline architecture for a [microservices / monolithic] application built with [languages/frameworks], deployed to [AWS EKS / Azure AKS / GCP GKE] using [GitHub Actions / GitLab CI]. We need to satisfy ISO 27001:2022 Annex A controls A.8.25-A.8.28 and SOC 2 CC7-CC8.

Include: pipeline stages with security gates, tool recommendations for each scanning category (SAST, DAST, SCA, container, IaC, secrets), evidence collection points for audit, and estimated implementation timeline. Output as an architecture document with a pipeline diagram description.

Compliance-gatebeleid

Create a comprehensive compliance gate policy for our CI/CD pipeline. We deploy [application type] to production [frequency]. Define gate criteria for each pipeline stage with specific pass/fail thresholds, map each gate to ISO 27001 and SOC 2 controls, document the exception/bypass process for emergency deployments (who can approve, what must be documented, maximum exception duration), and specify evidence artifacts generated at each gate. Format as both a policy document and pipeline configuration for [CI/CD platform].

Beveiligingsscanintegratie

Create a security scanning integration plan for our [CI/CD platform] pipeline. Our codebase uses [languages] with [number] microservices deployed as containers to [Kubernetes / ECS / other].

For each scanning type (SAST, DAST, SCA, container scanning, IaC scanning, secrets detection): recommend specific tools, provide pipeline configuration snippets, define severity thresholds and failure criteria, estimate scan duration impact, and explain tuning strategies to reduce false positives below 10%. Map each scanning type to specific ISO 27001 Annex A controls.

Secrets-beheerarchitectuur

Design a secrets management architecture for our DevSecOps pipeline on [cloud provider] using [CI/CD platform]. Current state: [describe current secrets handling]. Requirements: zero secrets in source code or pipeline logs, automated rotation for all service credentials, audit trail for every secret access, emergency revocation procedure, and compliance with ISO 27001 A.5.17 (authentication information) and A.8.24 (use of cryptography).

Include migration plan from current state, implementation steps, and monitoring/alerting for secret misuse.

Auditbewijsmateriaalautomatisering

Design an automated audit evidence collection system integrated into our DevSecOps pipeline. We need continuous evidence for [ISO 27001 / SOC 2 / both] covering secure development lifecycle controls.

For each pipeline stage, define: what evidence is generated (scan reports, approval records, deployment logs), storage location and retention period, integrity protection (immutability, checksums), how evidence maps to specific control requirements, and automated completeness checks that alert when evidence gaps are detected. Output as an evidence matrix with automation scripts for [CI/CD platform].

Pipeline-verhardingschecklist

Generate a CI/CD pipeline security hardening checklist for [GitHub Actions / GitLab CI / Jenkins / Azure DevOps]. Cover: runner/agent security (ephemeral vs persistent, isolation), pipeline configuration access controls and RBAC, secrets injection and masking, build environment integrity, artifact signing and verification, audit logging configuration, network segmentation for build environments, and third-party action/plugin security review process.

For each item, indicate: priority (critical/high/medium), applicable ISO 27001 control, implementation effort, and verification method. Format as an actionable checklist our DevOps team can work through.

Gerelateerde bronnen

On this page