DML School of Technology
Menu

Open to everyone Reading, lesson 57 of 100, 2 min read

Secure development

Security built in, not bolted on

A secure development lifecycle (SDLC) adds security activities to each stage of building software, so problems are found when they are cheap to fix.

StageSecurity activity
RequirementsWrite down security needs: who may do what, what data is sensitive, which laws apply
DesignThreat modelling: draw how data flows and ask what could go wrong at each step
BuildSecure coding standards, code review, safe libraries, no secrets in code
TestAutomated security tests, dependency scanning, manual testing of risky features
ReleaseHardened configuration, secrets in a vault, signed releases
OperatePatching, monitoring, an easy way for outsiders to report vulnerabilities

Threat modelling with STRIDE

A popular way to brainstorm threats:

LetterThreatBreaks
SSpoofing (pretending to be someone)Authenticity
TTampering (changing data)Integrity
RRepudiation (denying an action)Non-repudiation
IInformation disclosureConfidentiality
DDenial of serviceAvailability
EElevation of privilege (gaining more rights)Authorisation

Testing tools

  • SAST (static analysis): reads source code looking for risky patterns.
  • DAST (dynamic analysis): tests the running application from outside.
  • Dependency scanning (SCA): lists the libraries you use and warns about known vulnerabilities in them.
  • Secret scanning: finds passwords and keys accidentally committed to code.

Supply chain

Modern applications use hundreds of open-source packages. An attacker who poisons one popular package reaches every application that uses it. Pin versions, review updates, use trusted registries and keep a software bill of materials (SBOM): a list of every component you ship.

Note

Notice how many of these practices appear in the platform you are using: tests, static analysis, dependency checks and signed, checksummed releases.