AI

The Secure Coding Skills Every Role Needs in the AI Era

Discover essential secure coding skills for developers, architects, and engineers in the AI era to address rising security challenges and close the skills gap.

AI is changing how software gets built, but the skills gap it exposes isn't new. Most organizations still train only their software developers. In our survey of 250 cybersecurity executives, conducted by Wakefield Research, 48% said their software security training focuses only on coding, leaving systems engineers, architects, and software testers behind.

AI makes that gap more costly and potentially increases security debt. When AI writes a growing share of the code, secure coding requires several skill sets, not one. Developers judge code they didn't write, architects decide what components AI can touch, and testers probe behavior that changes from one run to the next. Below, we break down the skills each role needs in the AI era, and how to measure whether your teams are using them effectively.

What this means for security leaders

For CISOs, the gap isn't awareness; it's coverage and proof. For example, 89% of organizations expect software developers to spend 5 hours or more per year on security training, but only 18% expect other roles, such as the CISO, to do the same. Most programs still measure success by course completion, which says little about whether anyone can find and fix a flaw. As AI writes more of the code and scanners identify more potential vulnerabilities, the people overseeing it need those skills more than ever.

What has AI changed about secure coding skills?

  • From writing to judging. Developers spend more time reviewing and accepting generated code. The core skill is spotting the flaw in code that looks right and compiles cleanly.
  • New vulnerability classes. Applications that call language models introduce risks such as prompt injection, insecure handling of model output, and agents with excessive access. These sit alongside the classic flaws in the OWASP Top 10, not instead of them.
  • Faster everything. Code is expected to ship to production faster, and attackers using AI find and exploit weaknesses faster.
The fundamentals still apply. Input validation, authentication, access control, secrets handling, and safe dependencies. AI hasn't replaced them. Instead, it has raised the cost of not knowing them, and these fundamentals are where many teams are still challenged.

We have witnessed this ourselves when students participate in our cyber ranges. The most commonly missed beginner-level challenges include sensitive data exposure and broken authentication.

What secure coding skills does each role need?

Developers: from writing secure code to judging it

Developers make up the bulk of most training programs, and today they're editors as much as authors. They need to:

  • Review AI-generated code and scan results critically. Recognize injection flaws, hard-coded secrets, and missing authorization checks in generated code, even when it looks polished.
  • Treat model output and AI-suggested dependencies as untrusted. Never pass model output directly into a query, command, or page, and check that the suggested packages exist and are the intended ones.

Fundamentals first: A developer can't spot a missing authorization check in AI-generated code if they've never learned what a correct one looks like.

Architects: designing systems with AI inside them

Architects decide how much an AI component can touch, and that decision sets the blast radius. Yet they're among the roles most often left out of security training. They need to:

  • Threat model AI features. Map where untrusted content enters, where model output flows, and what an attacker could make the model do.
  • Design for least privilege, with guardrails. Give AI components only the access they need, and require human approval for high-impact actions.

QA and test engineers: testing behavior that isn't deterministic

The same input can produce different output, so traditional test cases aren't enough. QA needs to:

  • Test for abuse, not just function. Include prompt injection attempts and malicious inputs in test plans.
  • Validate output handling, and re-test on change. Confirm the application safely handles unexpected model responses, and re-run security tests when models or prompts change.

AppSec engineers and security champions: scaling expertise

Hands-on security experience shows: in our cyber ranges, people from defender and red team backgrounds consistently rank among the top performers. AppSec teams need to:

  • Know AI-specific risks deeply. Be fluent in the OWASP Top 10 for LLM Applications and how each risk shows up in real code.
  • Coach, not just gate. No team can review every AI-assisted commit, so turn findings into targeted training that keeps the same flaw from coming back.

Fundamentals first: Many flaws in AI-generated code are still classic ones. AI-specific expertise builds on a strong OWASP Top 10 foundation; it doesn't replace it.

DevOps and platform engineers: securing the pipeline AI feeds

More code ships faster, putting pressure on the pipeline. Platform teams need to:

  • Protect secrets and credentials. Keep keys for AI services and agents scoped, rotated, and out of code.
  • Secure the supply chain without slowing it down. Verify dependencies and third-party AI tools before they reach production, and keep security checks in the path.

Engineering and security leaders: setting the bar

Leaders decide how code gets written, and who gets trained to write it safely. They need to:

  • Set clear rules for AI use, beyond developers. Include citizen developers building with low-code tools, then define approved tools, what data can be shared, and what needs review.
  • Measure skill, not attendance. Ask for evidence that teams can find and fix flaws, not just that they finished a course.

Fundamentals first: Don't let AI training crowd out the basics. Expect teams to show mastery of the fundamentals alongside the new AI-specific skills.

At a glance: AI-era secure coding skills by role

Role Biggest AI-era shift Top skill to build How to prove it
Developers Reviewing code they didn't write Spotting flaws in AI-generated code Find and fix vulnerabilities in realistic code samples
Architects AI components with real access Threat modeling AI features Threat model an AI feature and defend the design
QA / test Non-deterministic behavior Abuse and injection testing Break an AI feature in a hands-on lab
AppSec / champions More code than they can review Deep OWASP LLM Top 10 knowledge Exploit and remediate each risk hands-on
DevOps / platform Faster pipelines, more dependencies Secrets and supply chain security Secure a pipeline in a cyber range scenario
Engineering and security leaders Setting rules for AI use Risk-informed decisions Run a tabletop exercise on an AI-related incident

How to build and prove these skills:

  1. Baseline by role. A single hands-on event is enough to surface skill gaps and set a benchmark before you assign training.
  2. Build role-based learning paths. Give each role its own path: build on security fundamentals first, then the AI-era skills above.
  3. Practice hands-on, and keep practicing. One-off courses rarely stick. In our cyber range study, repeat players improved their scores by a median of 126%.
  4. Use your own findings. Connect training to the vulnerabilities your scanners and pen tests actually find, so teams improve on what they actually get wrong.
  5. Measure and report skill. Track performance by role over time, and report it alongside completion rates. Skill data shows where risk actually sits; completion data only shows who clicked through.
  6. Start early and refresh often. Early-career developers pick up hands-on security skills fastest, so build security in from onboarding, and re-test as AI tools change.

The bottom line

AI didn't replace secure coding fundamentals. It raised the cost of not knowing them. Train each role for the work they do, and validate their skill gaps and development needs.

See what role-based training looks like for every role on your team. Request a demo.

Want to try it yourself first? Start a 7-day free trial.


Sources: CMD+CTRL, Enhancing Cybersecurity: The Critical Role of Software Security Training, a survey of 250 cybersecurity executives conducted by Wakefield Research (2024); CMD+CTRL, Application Security at Scale: Insights from 1,000+ Cyber Range Events (2025).

Similar posts

Stay Secure. Stay Updated.

Join our mailing list to get notified first when we post new blogs on cybersecurity training, insights related to secure coding, and updates to our training content — straight to your inbox.