Secure AIDLC for Startups: A 12-Stage Framework With a 30/60/90-Day Roadmap

Secure AIDLC is a proposed, human-governed lifecycle with 12 stages and three implementation levels, designed for teams without a dedicated security function. This article sets out the stages, the essential controls at each level, a 30/60/90-day roadmap, a maturity check and a CTO checklist.

A startup does not fail a security review because it lacks a framework. It fails because nobody owns the basics, the basics are scattered across five tools, and the person who understood the setup left. I have led readiness for SOC 2, PCI DSS, ISO 27001 and ISO 42001 audits, and the lesson I carry from all of them is that a small number of consistently operated controls beat a large number of documented ones.

AI coding tools raise the rate of change: more code, dependencies and automation reach production, usually with the same two or three people responsible. This article proposes a framework for that situation, which I call Secure AIDLC: a human-governed AI development lifecycle in twelve stages, with three implementation levels so a seed-stage team and a regulated enterprise can use the same model at different depth.

Secure AIDLC is my proposed framework, not a standard, and AIDLC itself is an emerging operating model, not a standardised lifecycle. I do not assume you need paid enterprise products: most essential controls below are processes and free tooling.

Why this matters now

The first reason is evidence. Research on AI coding assistance and security is mixed. Some studies found weaker security or inflated confidence among users of assistants, others found small or no effects, and a randomised trial found experienced developers took longer with AI tools while expecting to be faster 23. I take two things from that: you cannot assume AI makes your team faster or safer, and you should measure outcomes in your own environment.

The second reason is responsibility. CISA's secure-by-design material puts security ownership on the software producer and says products should be secure out of the box, with MFA, logging and SSO available at no extra cost 18. That statement describes what vendors should offer, and it does not say any product enables MFA by default. As a startup you are the producer for your customers, and the customers' questionnaires will reflect that.

Background: the frameworks I am drawing on

Secure AIDLC does not replace existing frameworks. It borrows from them.

My contribution is the arrangement: a twelve-stage lifecycle placing these controls where AI-assisted delivery makes them most likely to be skipped.

Research analysis: the startup gap

I will state the gap as analysis, not as measured prevalence, because I did not find a verified source quantifying it. In early-stage teams, the pattern is often:

The OWASP Top 10 explains why these matter. Broken access control is the top-ranked web application risk in the 2021 list 11, identification and authentication failures are a separate category 12, and without logging and monitoring, breaches cannot be detected 16. Misconfiguration is similarly structural: systems need a repeatable hardening and configuration process or risk rises 25. None of these are exotic, and all of them are easy to introduce when code is generated quickly and reviewed briefly.

AI changes the rate of change; it does not change who is accountable.
Akarsh N

The framework: Secure AIDLC in 12 stages

Each stage names the control that matters most, who holds the decision, what AI may do, and the evidence to keep. "AI may" means permitted assistance; it never means authority to approve. Evidence entries are deliberately small, because a small team will keep evidence only if it is cheap.

#StageObjectiveHuman ownsAI mayCore controlsEvidenceExit criteria
1Human-led requirementsState intent, users, data and abuse casesProduct owner, CTODraft, expand, find gapsSecurity and privacy requirements written per featureRequirement note with data typesRequirements reviewed by a human
2Risk classificationDecide how much assurance a change needsCTO or security ownerSuggest a classLow, medium and high classes tied to review depthClass recorded on ticketClass agreed before build
3AI-assisted architectureChoose design and componentsTech leadPropose options, document trade-offsRecord assumptions and data flows; avoid unrequested dependenciesShort design noteAssumptions reviewed
4Threat modelling and security designIdentify what can go wrongTech lead with security ownerSuggest threatsFour-question model; authN, authZ, secrets, logging decisionsThreat list with decisionsHigh-risk threats have owners
5Controlled AI code generationGenerate within guardrailsDeveloperGenerate, refactor, draft testsApproved tools and data classes; agent permissions scoped 20Tool inventory; AI-use note on PRDeveloper can explain the change
6Automated code and dependency analysisCatch known issue classes cheaplyDeveloper, platform ownerTriage findingsSAST, dependency and secret scanning in CICI results retainedNo blocking findings
7Functional and security testingVerify behaviour and abuse casesDeveloper, testerDraft testsAuthorisation tests, input validation; rate limits 24Test resultsTests independent of generator for high risk
8AI-assisted review with independent validationAdd a second lookReviewerSummarise, flag risksReviewer is a different person from author; AI review is advisoryReview recordReviewer approval
9Human risk review and approvalAccept or reject residual riskSecurity owner or CTOPrepare summaryExceptions with owner and expiryApproval and exception logNamed approver
10Controlled deploymentRelease safelyPlatform ownerAssist with configProtected branches, CI/CD flow control and IAM 17, rollback planDeployment recordRollback tested
11Runtime security monitoringDetect abuse and failureOn-call ownerSummarise alertsLogging of authN, access control failures and admin actions 15Retained logs, alert rulesAlerts reach a person
12Continuous assurance and feedbackLearn and re-verifySecurity ownerAnalyse trendsPeriodic review of dependencies, access, exceptions and incidentsReview notesFindings feed stage 1 and 4

Three design decisions underlie the table.

First, a risk class drives depth. Not every change deserves a threat model or a second reviewer. Stage 2 lets a typo fix move quickly and a payment change slow down, which is the only way a small team can afford the process.

Second, AI never holds the approval. At stages 8 and 9, AI output is advisory. If an AI reviewer and the author's assistant share the same blind spot, a second AI does not give independence. That is my reasoning, not a measured finding, and it is the reason stage 8 says independent validation.

Third, evidence is a by-product. Pull request templates, CI logs and a short exceptions register go a long way, and stage 12 feeds findings back into requirements and threat models.

Three implementation levels

The same stages apply at all levels. What changes is depth, formality and tooling.

DimensionLevel 1: early-stage startupLevel 2: scaling startupLevel 3: enterprise
TeamUnder about ten engineers, no AppSecSeveral teams, first security hireFormal security function and governance
Risk classificationTwo classes (routine, sensitive)Three classes with SLA by classTied to enterprise risk register
Threat modellingOne page for sensitive featuresTemplate per service, reviewed quarterlyRequired by policy, reviewed by security
Code analysisFree SAST, dependency and secret scanningAdd container and IaC scanning, SBOMsCentral policy-as-code, SLSA-aligned builds 22
ReviewSecond human on sensitive changesCODEOWNERS for critical pathsSeparation of duties enforced
AI controlsApproved tools list, no agent with production accessScoped agent identities, audit logsFormal AI governance aligned to AI RMF and ISO 42001
ExceptionsWritten, owner, expiryRegistry with review cadenceRisk acceptance process
MonitoringAuth and access failures loggedCentral logging, alert routingSOC integration, incident exercises
AssessmentSelf-check with this articleSAMM lens 9SAMM and external audit

I use the SLSA framing 22 at Level 3 as a guide for supply-chain requirements, not as a starting point: SLSA is a set of incrementally adoptable guidelines, and a small team should adopt the early steps only.

Essential controls versus maturity improvements

I separate the controls I would not ship without from those that improve maturity. This is my judgement from programme work, informed by the sources cited in each row.

AreaEssential (Level 1)Maturity improvement
IdentityMFA on source control, cloud, email and CI; recommended by OWASP against credential attacks 1213Phishing-resistant authenticators, central SSO
SecretsNone in source code; rotate; short-lived where possible 14Central secrets manager, automatic rotation
AccessLeast privilege on cloud and CI 17Just-in-time access, periodic reviews
Code reviewSecond person on auth, payments, data changesRisk-based reviewer assignment
DependenciesAutomated vulnerability alerts, lockfilesSBOMs, provenance checks 22
LoggingLog auth events, access failures, admin actions; never log secrets 15Central log search, alerting
API securityCheck authorisation on every object access (my recommendation); rate limits 24API inventory and automated testing
Cloud configBlock public storage by default where supported; for example S3 Block Public Access is recommended at account level 19Policy-as-code and drift detection
Backups and responseTested restore, one-page incident plan 67Exercises, retainers

A point on authentication that I see mishandled: OWASP's authentication guidance calls MFA the strongest defence against password attacks, and recommends standards and maintained libraries 13. That is guidance to enable MFA and use established components. It does not mean any platform has MFA switched on for you, so check each service.

Cost-conscious tooling

The categories matter more than the brands. Examples I have used or evaluated include open-source SAST (Semgrep OSS), secret scanning (gitleaks), dependency scanning (OSV-Scanner, platform-native alerts), container and IaC scanning (Trivy), and SBOM generation (Syft). I did not verify current licences, features or limits for this article, so confirm them before adopting. Buy a paid product only when you can name the specific gap it closes.

The 30/60/90-day roadmap

This roadmap targets a Level 1 team moving towards Level 2. It is my proposal and assumes one engineer can give about a day a week to it.

WindowFocusDeliverablesDone when
Days 1 to 30: foundationsOwnership and the basicsName a security owner; inventory AI tools, repos, cloud accounts, third-party services; MFA everywhere 13; secret scanning and rotation of exposed secrets 14; protected main branch; dependency alerts; one-page lifecycle and AI-use policyEvery repo has protections; no known live secrets in code; owner named
Days 31 to 60: process in the pipelineMake controls routineRisk classes on tickets; PR template with risk class and AI-use note; SAST and dependency checks in CI; threat model for the two most sensitive features; authorisation and input tests on them; rate limits on public APIs 24; logging of auth and access failures 15CI blocks on agreed findings; two threat models exist; logs reach a person
Days 61 to 90: assurance and governanceProve and improveExceptions register with expiry; reviewer independence for sensitive changes; agent permissions reviewed against least privilege 2021; restore and incident drill; SAMM or CIS IG1 self-assessment 59; first quarterly reviewSelf-assessment scored; exception register reviewed; drill completed

Ninety days is realistic at Level 1 only if scope is limited to the sensitive parts of the system.

Startup security maturity check

Score each item 0 (no), 1 (partly) or 2 (yes, and evidence exists). This is my proposed assessment, not a validated instrument; use it to prioritise, not to benchmark against other companies.

#QuestionScore
1A named person owns application security
2We can list every AI tool and agent with access to code
3MFA is enforced on source control, cloud, CI and email
4No secrets in repositories; exposed secrets are rotated
5Changes carry a risk class and the review depth matches it
6Sensitive features have a written threat model
7CI runs dependency, secret and code scans
8High-risk tests are independent of the code generator
9Exceptions have an owner and an expiry date
10We log authentication and access control failures and someone sees them
11Agents run with their own scoped identity and no production secrets
12We have tested a restore and an incident call tree

Read it as: 0 to 8, build the Level 1 foundations first; 9 to 16, fix the lowest-scoring areas; 17 to 24, plan Level 2. The bands are my own and have no empirical basis.

CTO checklist

CheckQuestion to ask your teamFrequency
OwnershipWho is accountable for security decisions and exceptions?Monthly
AI inventoryWhich AI tools and agents can read or change code and what can they reach?Quarterly
Agent permissionsIs each agent limited to the tools and scopes it needs, with human approval for shared-state actions? 20Quarterly
Untrusted contentDoes any agent read external text and also hold authority over assets that matter? 21Quarterly
AccessWho has admin on cloud, CI and source control, and why?Quarterly
SecretsAny secrets in code, logs or agent context? Rotated since last incident? 14Monthly
ReviewAre sensitive changes reviewed by someone other than the author?Per release
DependenciesHow many unreviewed or outdated critical dependencies do we have?Monthly
ExceptionsWhich exceptions have expired?Monthly
LoggingCan we detect and trace misuse of the main API? 16Quarterly
RecoveryWhen did we last restore from backup?Twice yearly
EvidenceCould we show a customer our process without a month of preparation?Quarterly

Industry gaps and limits of this framework

Honest limits matter more than polish. First, Secure AIDLC is a proposal I have not validated through a controlled study, and the maturity scoring has no empirical calibration. Second, I did not find a verified source quantifying the startup security gap, so I describe it qualitatively. Fourth, no framework here substitutes for a compliance audit: CSF outcomes are not a checklist 2, and CIS IG1 is a starting point, not full coverage 5. I verified cloud-provider guidance only for one AWS example 19.

Key takeaways

Conclusion

A startup does not need to look like an enterprise to be responsible. It needs an owner, a short list of controls that are actually operated, and a habit of asking what has changed since the last review. AI changes the rate of change; it does not change who is accountable.

The Monday-morning version: name the owner, switch on the basics, classify your changes, and make sure anyone, human or AI, who can change production was deliberately given that authority.

Views are my own; examples are composites and do not describe any specific employer or client.

Key takeaways

References

  1. NIST. "The NIST Cybersecurity Framework (CSF) 2.0 (NIST CSWP 29)." 2024-02-26. https://csrc.nist.gov/pubs/cswp/29/the-nist-cybersecurity-framework-csf-20/final — Supports: CSF 2.0 is a taxonomy of high-level cybersecurity outcomes usable by any organisation.
  2. NIST. "The NIST Cybersecurity Framework (CSF) 2.0 (NIST CSWP 29), PDF text." 2024-02-26. https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf — Supports: CSF outcomes are not a checklist and are not prescriptive; the CSF does not prescribe how outcomes are achieved. Limitations: confirms "not a checklist"; does not state "not a certification".
  3. NIST. "NIST Cybersecurity Framework 2.0: Small Business Quick-Start Guide (NIST SP 1300)." 2024-02. https://csrc.nist.gov/pubs/sp/1300/final — Supports: a starting point for small businesses, a supplement to the CSF and not a replacement. Limitations: abstract only.
  4. Center for Internet Security. "CIS Critical Security Controls Version 8.1." n.d. https://www.cisecurity.org/controls/v8-1 — Supports: v8.1 is an iterative update to v8 and includes Implementation Groups. Limitations: page states no release date.
  5. Center for Internet Security. "CIS Critical Security Controls Implementation Group 1." n.d. https://www.cisecurity.org/controls/implementation-groups/ig1 — Supports: IG1 is a 56-Safeguard foundational set described as essential cyber hygiene for small and medium organisations with limited IT staff; a starting point, not full coverage.
  6. CISA. "Cyber Essentials." n.d. https://www.cisa.gov/cyber-essentials — Supports: a guide for small business and small government leaders built on six elements: Yourself, Staff, Systems, Surroundings, Data, Crisis Response.
  7. UK National Cyber Security Centre. "Small organisations guide to cyber security." n.d. (page lists 2026 dates). https://www.ncsc.gov.uk/collection/small-business-guide — Supports: guidance for small organisations covering backups, protecting devices and accounts, spotting scams. Limitations: dates not fully confirmed; first page of six read.
  8. NIST (CSRC). "Secure Software Development Framework (SSDF) Version 1.1 (NIST SP 800-218)." 2022-02. https://csrc.nist.gov/pubs/sp/800/218/final — Supports: SSDF adds secure practices to any SDLC, in four groups.
  9. OWASP. "OWASP Software Assurance Maturity Model (SAMM) v2 - Model." n.d. https://owaspsamm.org/model/ — Supports: five business functions and fifteen practices for assessing security maturity.
  10. OWASP. "OWASP Application Security Verification Standard (ASVS) 5.0.0." 2025-05-30. https://asvs.owasp.org/ — Supports: ASVS is the OWASP list of application security requirements; current stable release is 5.0.0.
  11. OWASP Top 10 project. "A01 Broken Access Control - OWASP Top 10:2021." n.d. (2021 edition). https://top10.owasp.org/2021/A01_2021-Broken_Access_Control — Supports: broken access control is the top-ranked web application risk in the 2021 list. Limitations: 2021 edition.
  12. OWASP Top 10 project. "A07 Identification and Authentication Failures - OWASP Top 10:2021." n.d. (2021 edition). https://top10.owasp.org/2021/A07_2021-Identification_and_Authentication_Failures — Supports: recommends MFA where possible against credential stuffing, brute force and stolen-credential reuse.
  13. OWASP Cheat Sheet Series. "Authentication Cheat Sheet." n.d. https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html — Supports: MFA is the strongest defence against password attacks; recommends standards (OAuth, OIDC, SAML, FIDO) and maintained libraries. Limitations: read via page summary.
  14. OWASP Cheat Sheet Series. "Secrets Management Cheat Sheet." n.d. https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html — Supports: rotate secrets so stolen credentials work only briefly; avoid secrets in source code; least-privilege access.
  15. OWASP Cheat Sheet Series. "Logging Cheat Sheet." n.d. https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html — Supports: log authentication successes and failures, access-control failures, admin actions, uploads; do not log passwords, secrets, session IDs or connection strings.
  16. OWASP Top 10 project. "A09:2021 - Security Logging and Monitoring Failures." n.d. (2021 edition). https://top10.owasp.org/2021/A09_2021-Security_Logging_and_Monitoring_Failures — Supports: without logging and monitoring, breaches cannot be detected.
  17. OWASP Foundation. "OWASP Top 10 CI/CD Security Risks." n.d. https://owasp.org/www-project-top-10-ci-cd-security-risks/ — Supports: lists CI/CD risks including CICD-SEC-1 Insufficient Flow Control Mechanisms, CICD-SEC-2 Inadequate Identity and Access Management, CICD-SEC-6 Insufficient Credential Hygiene. Limitations: landing page only.
  18. CISA. "Secure by Design." n.d. https://www.cisa.gov/securebydesign — Supports: products should be secure out of the box; MFA, logging and SSO should be available at no extra cost. Limitations: does not state that secure settings or MFA are on by default; addresses vendors.
  19. Amazon Web Services. "Blocking public access to your Amazon S3 storage." n.d. https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html — Supports: S3 Block Public Access has four settings; new buckets are non-public by default; AWS recommends enabling all four at account level. Limitations: one provider only.
  20. OWASP Gen AI Security Project. "LLM06:2025 Excessive Agency." n.d. (2025 edition). https://genai.owasp.org/llmrisk/llm062025-excessive-agency/ — Supports: root causes are excessive functionality, permissions and autonomy; mitigations include minimal tools, scoped permissions and human approval for high-impact actions.
  21. OWASP Gen AI Security Project. "LLM01:2025 Prompt Injection." n.d. (2025 edition). https://genai.owasp.org/llmrisk/llm01-prompt-injection/ — Supports: indirect injection through external content; mitigations include least privilege, human approval and segregating external content; fool-proof prevention is unclear.
  22. SLSA (Linux Foundation / OpenSSF). "SLSA Specification, v1.2." n.d. https://slsa.dev/spec/v1.2/about — Supports: SLSA is a set of incrementally adoptable supply-chain security guidelines.
  23. METR. "Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity." 2025-07-10. https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/ — Supports: in a randomised trial, experienced developers took 19% longer with AI tools while expecting a speedup. Limitations: page flags the result as out of date and points to a later update that was not opened.
  24. OWASP API Security Project. "API4:2023 Unrestricted Resource Consumption - OWASP API Security Top 10." n.d. (2023 edition). https://api-security.owasp.org/editions/2023/en/0xa4-unrestricted-resource-consumption — Supports: APIs need rate limits and resource limits (timeouts, upload size caps) to resist abuse and cost blow-ups. Limitations: object-level authorization guidance (API1:2023) is a separate page not cited here.
  25. OWASP Top 10 project. "A05:2021 - Security Misconfiguration." n.d. (2021 edition). https://top10.owasp.org/2021/A05_2021-Security_Misconfiguration — Supports: systems need a repeatable hardening and configuration process or risk rises.