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

  1. 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.

    1. 01The product, its users and its release plan are reviewed
    2. 02CRA scope checked: is it a product with digital elementsCRA Art. 2
    3. 03Obligations recorded: customer contracts, sector rules, CRASSDF PO.1
    4. 04You set the engagement mode, scope and success criteria
    5. 05Statement of work, RACI, documentation and access requestSoW · RACI · access requestISO 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.8 SSDF PO.1 CRA Art. 2

  2. Stage 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.

    1. 01Data flows mapped, from the app through the API to the dataCSF ID.AM-03
    2. 02AI agent mapped: what it reads and who can instruct it
    3. 03Identities mapped: people, services and the AI agent
    4. 04Release chain mapped: source code, packages, build, release
    5. 05Inventory, data-flow diagram and data classificationInventory · DFD · data classes
    6. 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-03 SSDF PW.1

  3. Stage 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.

    1. 01Possible: hidden instructions in a document steer the AI agentT1698
    2. 02Possible: an agent token used far beyond its taskASI03
    3. 03Possible: a tampered package enters the buildT1195.001
    4. 04Possible: an admin session stolen and replayedT1539
    5. 05Threat model with assumptions, countermeasures, open questionsDocumented threat modelSSDF PW.1.1
    6. 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.1 T1698 ASI03 T1195.001 T1539

  4. Stage 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.

    1. 01Each modeled threat becomes a security requirementSSDF PO.1.2
    2. 02People: phishing-resistant MFA and least-privilege rolesASVS V6
    3. 03AI agent: its own identity, narrow scope, short-lived tokensASI03
    4. 04Releases: pinned packages, SBOM and signed build provenanceCRA Annex I
    5. 05Logs: sign-ins, admin and agent actions kept to investigateA09:2025
    6. 06You approve the requirements, the ASVS level and the ADRsSSDF 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.2 SSDF PW.1.2 ASVS V6 ASI03 CRA Annex I A09:2025

  5. Stage 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.

    1. 01Secure defaults: no default passwords, MFA and logs switched onSSDF PW.9
    2. 02AI agent asks for approval before changing customer dataASI02
    3. 03Pipeline pins and checks packages and signs every buildSSDF PS.2
    4. 04Each requirement gets a testable acceptance criterionISO A.8.26
    5. 05Patterns, a secure-default baseline and acceptance criteriaPattern and guardrail library
    6. 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.9 ASI02 SSDF PS.2 ISO A.8.26 CRA Annex I

  6. Stage 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.

    1. 01Design checked at the gate against each requirementSSDF PW.2.1
    2. 02Confirmed: the agent's permissions match the approved scopeASI03
    3. 03Deviation logged with its owner: one admin route lacks MFA
    4. 04Risk owners accept or reject each residual design riskISO/IEC 27005 8.6.3
    5. 05Review record, deviations list and residual-risk registerReview record and risk register
    6. 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.1 ASI03 ISO/IEC 27005 8.6.3

  7. Stage 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.

    1. 01Each release ships with its SBOM and signed provenanceSSDF PS.3
    2. 02Release evidence checked at the final gate
    3. 03The evidence file feeds the CRA technical documentationCRA Annex VII
    4. 04Reporting path set for exploited flaws: CRA 24-hour warningCRA Art. 14
    5. 05Release evidence, threat model and ADRs handed to your teamRelease evidence pack
    6. 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.3 CRA Annex VII CRA Art. 14 CRA Annex I SSDF 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

All services

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
// Contact

Tell us about your project

For: Security by Design

Tell 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

* Required fields

Your data is handled as described in our Privacy Policy.