How-To Security and risk 116HOWTO-116

Security and risk

Security and risk guides for SpecDD projects. These articles show how to constrain agent authority, write security requirements near the code they protect, block unsafe dependencies, specify sensitive boundaries, classify risky work, and review security-sensitive changes against durable local contracts.

← All How-To categories

13 guides Security and risk
  1. Intermediate 6 min read
    How to use SpecDD to limit agent risk

    Use SpecDD to give agents narrow local authority, explicit forbidden behavior, and concrete completion checks before security-sensitive edits happen.

    Read guide
  2. Intermediate 5 min read
    How to write security constraints in specs

    Put security rules near the code they protect so humans and agents know what must hold, what must never happen, and how to prove it.

    Read guide
  3. Intermediate 5 min read
    How to prevent agents from adding forbidden dependencies

    Use Forbids to make blocked libraries, modules, paths, tools, and access patterns explicit before humans or agents implement a shortcut.

    Read guide
  4. Intermediate 4 min read
    How to spec authentication boundaries

    Use SpecDD to make authentication enforcement points explicit so protected code does not trust the wrong caller, token, or UI path.

    Read guide
  5. Intermediate 5 min read
    How to spec data privacy requirements

    Use local SpecDD specs to make privacy-sensitive data handling explicit near the code that reads, stores, exports, logs, or deletes that data.

    Read guide
  6. Advanced 5 min read
    How to review security-sensitive changes with SpecDD

    Use SpecDD as the review contract for security-sensitive changes so reviewers can compare the diff against explicit local constraints.

    Read guide
  7. Intermediate 5 min read
    How to use SpecDD for risk classification

    Classify SpecDD work as low, medium, or high risk before editing so risky changes get the right planning, checks, and review.

    Read guide
  8. Intermediate 5 min read
    How to create a secure coding bootstrap file

    Use .specdd/bootstrap.project.md for shared secure coding defaults while keeping local security behavior in local .sdd specs.

    Read guide
  9. Intermediate 5 min read
    How to spec secrets handling

    Use SpecDD to make secrets handling explicit: where secrets come from, who may access them, how they must not be logged or committed, and what checks prove it.

    Read guide
  10. Intermediate 5 min read
    How to spec audit logging

    Use SpecDD to make audit logging requirements explicit for auth, payments, admin actions, permission changes, and other sensitive operations.

    Read guide
  11. Intermediate 5 min read
    How to spec rate limiting and abuse prevention

    Use SpecDD to make rate limits and abuse-prevention behavior explicit before implementation spreads across routes, UI, workers, and middleware.

    Read guide
  12. Advanced 6 min read
    How to spec payment or billing safety rules

    Use SpecDD to make payment and billing constraints explicit before a change can double-charge, bypass authorization, lose audit evidence, or call providers directly.

    Read guide
  13. Advanced 5 min read
    How to prevent agents from weakening security checks

    Use SpecDD to make security checks hard to remove accidentally: name the protected check, forbid bypasses, require evidence, and review weakenings as governance changes.

    Read guide

More How-To categories