06 · SBD · Advisory
Security by Design
We work with your product and engineering teams to set security requirements from the first design decision, check them at each design gate and finish with release evidence that serves EU Cyber Resilience Act conformity.
Illustrative engagement · ACME-CORP product with an AI agent · EU Cyber Resilience Act
7 stages
Stage 01 / 07
Scoping & engagement
We fix the product and release in scope, the engagement mode (a one-off design workshop, an embedded retainer or milestone reviews), the stakeholders and the success criteria, and the obligations the product must meet: customer contracts, sector rules and, for a product with digital elements sold in the EU, the Cyber Resilience Act. The design documentation that already exists is gathered.
- 01The product, its users and its release plan are reviewed
- 02CRA scope checked: is it a product with digital elements
CRA Art. 2 - 03Obligations recorded: customer contracts, sector rules, CRA
SSDF PO.1 - 04You set the engagement mode, scope and success criteria
- 05Statement of work, RACI, documentation and access requestSoW · RACI · access request
ISO A.5.8
- You receive
- Statement of work, a RACI, a documentation and access request, and a register of the obligations the product must meet.
- You decide
- The engagement mode, the product in scope and what success looks like.
Identifiers
ISO A.5.8SSDF PO.1CRA Art. 2Stage 02 / 07
Architecture discovery
With your product and engineering teams we build one shared model of the product: components and data flows, who and what can act on it (people, services and the AI agent), the third-party services it relies on, and the chain from source code to a shipped release, with every asset and data class labeled.
- 01Data flows mapped, from the app through the API to the data
CSF ID.AM-03 - 02AI agent mapped: what it reads and who can instruct it
- 03Identities mapped: people, services and the AI agent
- 04Release chain mapped: source code, packages, build, release
- 05Inventory, data-flow diagram and data classificationInventory · DFD · data classes
- 06You confirm the system model and its data classification
- You receive
- Architecture inventory, a data-flow diagram, a map of human and agent identities, and an asset and data classification list.
- You decide
- Confirm the system model and data classification the design work will rest on.
Identifiers
CSF ID.AM-03SSDF PW.1Stage 03 / 07
Threat modeling
Against that model we work out what could plausibly go wrong, informed by how attacks run today: instructions hidden in content the AI agent reads, an agent token used beyond its task, a tampered open-source package entering the build, and an administrator's session stolen and replayed. Each threat is a modeled possibility, not an observed attack, recorded with its assumptions and the countermeasure the design needs.
- 01Possible: hidden instructions in a document steer the AI agent
T1698 - 02Possible: an agent token used far beyond its task
ASI03 - 03Possible: a tampered package enters the build
T1195.001 - 04Possible: an admin session stolen and replayed
T1539 - 05Threat model with assumptions, countermeasures, open questionsDocumented threat model
SSDF PW.1.1 - 06You set the threats the design must answer
- You receive
- Documented threat model: modeled threats, assumptions, countermeasures and open questions.
- You decide
- Which threats the design must answer, and which assumptions the team accepts.
Identifiers
SSDF PW.1.1T1698ASI03T1195.001T1539Stage 04 / 07
Security requirements & decisions
The modeled threats become product security requirements, written into the backlog before build: phishing-resistant MFA and least-privilege roles for people; for the AI agent, its own identity, narrow scope and short-lived tokens; supply-chain and provenance requirements for every release; and the security logs the product must keep. Each requirement is mapped to an ASVS 5.0.0 level and to the CRA essential requirements, and each architecture choice is recorded as an Architecture Decision Record.
- 01Each modeled threat becomes a security requirement
SSDF PO.1.2 - 02People: phishing-resistant MFA and least-privilege roles
ASVS V6 - 03AI agent: its own identity, narrow scope, short-lived tokens
ASI03 - 04Releases: pinned packages, SBOM and signed build provenance
CRA Annex I - 05Logs: sign-ins, admin and agent actions kept to investigate
A09:2025 - 06You approve the requirements, the ASVS level and the ADRs
SSDF PW.1.2
- You receive
- Product security requirements mapped to ASVS 5.0.0 and the CRA essential requirements, Architecture Decision Records and a target architecture.
- You decide
- Each requirement and architecture decision, and the ASVS level the product targets.
Identifiers
SSDF PO.1.2SSDF PW.1.2ASVS V6ASI03CRA Annex IA09:2025Stage 05 / 07
Secure defaults & patterns
Requirements become secure-by-default settings and reusable patterns, in line with CISA's Secure by Design principles: no default passwords, MFA and logging on out of the box at no extra cost, an approval step before the AI agent changes anything for a customer, packages pinned and checked in the pipeline, and every build signed with its provenance. Each requirement gets a testable acceptance criterion in the backlog.
- 01Secure defaults: no default passwords, MFA and logs switched on
SSDF PW.9 - 02AI agent asks for approval before changing customer data
ASI02 - 03Pipeline pins and checks packages and signs every build
SSDF PS.2 - 04Each requirement gets a testable acceptance criterion
ISO A.8.26 - 05Patterns, a secure-default baseline and acceptance criteriaPattern and guardrail library
- 06You pick the standard patterns and the target ASVS level
- You receive
- Pattern and guardrail library, a secure-default configuration baseline, and acceptance criteria mapped to an ASVS 5.0.0 level.
- You decide
- Which patterns become your team's standard, and the ASVS level the acceptance criteria target.
Identifiers
SSDF PW.9ASI02SSDF PS.2ISO A.8.26CRA Annex IStage 06 / 07
Design review gate
Before build and before each major release, the design is reviewed independently against its requirements and threat model. Deviations are logged with an owner, each residual design risk is accepted or rejected by its owner, and the gate records the evidence it relied on.
- 01Design checked at the gate against each requirement
SSDF PW.2.1 - 02Confirmed: the agent's permissions match the approved scope
ASI03 - 03Deviation logged with its owner: one admin route lacks MFA
- 04Risk owners accept or reject each residual design risk
ISO/IEC 27005 8.6.3 - 05Review record, deviations list and residual-risk registerReview record and risk register
- 06You decide whether the design proceeds to build
- You receive
- Design review record, a deviations list and a residual design-risk register.
- You decide
- Which residual risks are accepted, by whom, and whether the design proceeds to build.
Identifiers
SSDF PW.2.1ASI03ISO/IEC 27005 8.6.3Stage 07 / 07
Release evidence & handover
At release the evidence is assembled once and reused: the threat model and requirements with their test results, the SBOM and signed build provenance, the gate records, and the process for handling and disclosing vulnerabilities. The same file answers customers' security questionnaires and feeds the technical documentation required for CRA conformity; since 11 September 2026 manufacturers must also report actively exploited vulnerabilities and severe incidents, with an early warning within 24 hours. On a retainer, the threat model and decisions are kept current as the product changes.
- 01Each release ships with its SBOM and signed provenance
SSDF PS.3 - 02Release evidence checked at the final gate
- 03The evidence file feeds the CRA technical documentation
CRA Annex VII - 04Reporting path set for exploited flaws: CRA 24-hour warning
CRA Art. 14 - 05Release evidence, threat model and ADRs handed to your teamRelease evidence pack
- 06You set the review cadence kept as the product changes
- You receive
- Release evidence pack (SBOM, build provenance, threat model, requirements and test results, gate records), a vulnerability-handling and reporting procedure and, at closure, a handover report with a recommended review cadence.
- You decide
- The review cadence your team keeps after handover.
Identifiers
SSDF PS.3CRA Annex VIICRA Art. 14CRA Annex ISSDF PW.1.2
Deliverables
- Documented threat model, AI agent abuse cases included
- Product security requirements mapped to ASVS 5.0.0 and the CRA
- Architecture Decision Records (ADRs)
- Secure-default baseline and pattern library
- Security acceptance criteria
- Design review records and residual-risk register
- Release evidence pack: SBOM, provenance and CRA technical documentation
- Handover report with a recommended review cadence
Frameworks
- NIST SP 800-218 SSDF v1.1
- NIST SP 800-218A (generative AI profile)
- CISA Secure by Design
- Regulation (EU) 2024/2847 (Cyber Resilience Act)
- OWASP ASVS 5.0.0
- OWASP Top 10 for Agentic Applications 2026
- OWASP Top 10:2025
- NIST SP 800-160 Vol. 1 Rev. 1
- NIST SP 800-207 Zero Trust Architecture
- ISO/IEC 27001:2022 Annex A
- MITRE ATT&CK v20.0
The illustrative environment
ACME-CORP product with an AI agent: architecture, identity and release chain (illustrative)
REQUIREMENTS & GATES threats → requirements → sign-off
- Threat model MODELED THREATS
SSDF PW.1.1 - Security requirements BACKLOG · ASVS 5.0.0
SSDF PO.1.2 - Design gate REVIEW · SIGN-OFF
SSDF PW.2.1
PRODUCT ARCHITECTURE app → API → data · AI agent
- Customer app MOBILE · WEB
- Product API CLOUD SERVICE
- AI agent LLM · TOOLS · ACTIONS
T1698 - Customer data CLASSIFIED · ENCRYPTED
- Security logs AUDIT TRAIL · ALERTS
A09:2025
IDENTITY · LEAST PRIVILEGE people · AI agents
- Login and MFA IdP · SSO · PASSKEYS
ASVS V6 - Agent identity SCOPED · SHORT-LIVED
ASI03
BUILD & RELEASE code · packages · signed releases
- Source code PROTECTED BRANCHES
- Open-source packages PINNED · CHECKED
A03:2025 - Build pipeline CI/CD · SIGNED BUILDS
SSDF PS.2 - Release evidence SBOM · PROVENANCE
CRA Annex VII
Tell us about your project
For: Security by DesignTell us what you are building, where it stands and which design decisions are still open. A senior operator replies within one business day with next steps.
- Confidential by default. We sign NDAs before scoping.
- A fixed quote before any work begins, no surprises.
Prefer email? contact@dlglabs.io