Skip to main content

DevSecOps shift-left

Security defects cost least when they are found during design and most when they are found in production. Shift-left means moving the security work to where the cost is lowest — and giving the customer the understanding to keep it there.

The standard. Customers understand the security model of their environment, and security activities are embedded in every phase of delivery rather than reviewed at the end.

What the customer needs to understand​

Shared responsibility​

The boundary between what AWS secures and what the customer secures moves with the service. A customer who does not understand it will assume a control exists that does not.

ServiceAWS securesCustomer secures
EC2Hypervisor, hardware, networkOS patching, application, IAM, network config
RDSDatabase engine patching, backups infrastructureData, access control, encryption choice, network
LambdaRuntime, scaling, OSFunction code, IAM role, dependencies, configuration
S3Durability, storage infrastructureBucket policy, encryption, access, object content

AWS security fundamentals​

An onboarding session covers:

  1. The shared responsibility model, with the customer's actual services.
  2. Identity and access: IAM roles, policies, Identity Center, MFA, least privilege.
  3. Network security: VPC, subnets, security groups, NACLs, endpoints, flow logs.
  4. Data protection: encryption at rest and in transit, KMS, Secrets Manager.
  5. Detection: CloudTrail, Config, GuardDuty, Security Hub.
  6. Logging and evidence: what is recorded, where it is kept, how it is used.

Qbits security practices​

The customer receives the standards in this library — particularly Security best practices and Security use cases — so they can see the controls applied to their environment and reproduce them.

IAM best practices​

PracticeReason
Least privilegeLimits the blast radius of a compromised identity
Roles over access keysRemoves long-lived credentials
MFA for console accessBlocks credential-only compromise
Rotate credentialsLimits the value of a leaked credential
Monitor with CloudTrail and Access AnalyzerDetects misuse and over-permission
Groups for permission managementMakes access review tractable
Strong password policyRemoves the easiest attack
No root for daily workRoot is the highest-value target
Organisations for policyApplies controls consistently across accounts
No * in custom policiesForces explicit thinking about permission

Security in each phase​

Plan → threat model, security requirements, data classification
Design → architecture review, least-privilege design, encryption plan
Code → secure coding standards, peer review, pre-commit secret scan
Build → SAST, dependency scan, image scan, SBOM
Test → DAST, penetration testing, misconfiguration scan
Release → policy gate, signed artefact, approval
Deploy → immutable infrastructure, least-privilege deployment role
Operate → detection, patching, access review, incident response
PhaseActivityTool
PlanThreat model; define security acceptance criteriaWorkshop; STRIDE or attack-tree
DesignArchitecture review for least privilege, segmentation and encryptionReview record
CodeSecure coding standards; secret scanning; peer reviewPre-commit hooks, gitleaks
BuildSAST; dependency scan; container image scan; SBOMSonarQube, Snyk/Trivy, syft
TestDAST against a running environmentOWASP ZAP
ReleasePolicy evaluation; approvalConfig, CloudFormation Guard
DeployOIDC roles; immutable artefact; change approvalGitHub Actions environments
OperatePatch compliance, access review, detection tuningSystems Manager, GuardDuty, Security Hub

Secure CI/CD pipeline​

A pipeline is secure when:

  1. Every stage has a security gate, not just one at the end.
  2. The gates block. A scan that reports but does not fail is a report.
  3. The pipeline's own credentials are short-lived. OIDC, scoped to repository and branch.
  4. The artefact is traceable. SBOM and provenance attached.
  5. The deployment role is least-privilege. It can deploy, not administer.
  6. Production requires approval. Recorded, with a named approver.

Gate sequence​

commit
├─ secret scan → block on any finding
├─ SAST → block on new critical/high
├─ dependency scan → block on critical with a fix
├─ build
├─ image scan → block on critical
├─ SBOM + provenance
└─ policy check → block on violation

What "shift-left" does not mean​

  • It does not mean removing pre-release testing. DAST and penetration testing still happen; they just stop being the only security activity.
  • It does not mean blocking every commit on every scanner. Gates are tuned to findings that matter; an unusable pipeline gets bypassed.
  • It does not mean developers own security alone. It means security expertise is available during design, not only at review.

Education programme​

FormatAudienceContent
Onboarding sessionCustomer engineering and operationsShared responsibility, IAM, network, data protection, detection
Secure coding workshopDevelopersInput validation, secrets, dependency management, error handling
Pipeline walkthroughDevelopers and DevOpsGates, how to read a failure, how to fix rather than suppress
Incident exerciseOperations and securityDetection through to recovery, using the customer's runbooks
Quarterly security reviewLeadership and securityPosture trend, open risks, decisions

Education is recorded and the materials are handed over, so the customer can run the sessions for new joiners.

Evidence​

  • Onboarding deck and materials.
  • Secure SDLC process description with the gates per phase.
  • Pipeline configuration showing the security stages.
  • Sample scan reports and their resolution.
  • Training attendance records.
  • The customer's own security runbook set.