Why security matters more now
Every few years the industry declares a new era, and most of the time the security fundamentals survive unchanged. The AI wave is different in one important way: it changes the economics of attacks. Work that used to require a skilled human — writing convincing phishing emails, reading code for weaknesses, probing an API for odd behaviour — can now be drafted, translated and repeated at near-zero cost.
At the same time, developers are shipping AI features into products faster than any previous technology. Each of those features — a chatbot, a summarizer, an agent that calls your internal tools — is a new place where untrusted input meets privileged access. The result: more attacks, aimed at more surface, built by people who were never taught to think about either.
AI on both sides of the fight
It helps to see AI as a tool that scales whoever holds it. The same capability that lets your team review code faster lets an attacker scan for weaknesses faster.
The defender's side of this diagram is why security is also a career opportunity: companies need engineers who understand both building software and breaking it, and there are far fewer of those than the market wants.
Your AI feature is an attack surface
The defining security fact about large language models is simple: the model cannot reliably distinguish your instructions from the data it processes. Everything — your system prompt, the user's message, the web page it just read — arrives as one stream of text.
This is called prompt injection, and it sits at the top of the OWASP Top 10 for LLM Applications. It becomes genuinely dangerous when the model can do things — send emails, query databases, call internal APIs. A support bot that can only chat is a reputational risk; an agent with tool access is a remote-controlled employee.
The patterns that actually help
- Least privilege for tools. An agent that summarizes tickets doesn't need write access to anything. Scope every tool to the minimum.
- Human approval for irreversible actions. Sending money, deleting data, emailing customers — require a person in the loop.
- Treat retrieved content as data, never as commands. Sanitize, quote and label external text; never concatenate it into instruction positions.
- Validate outputs like you validate inputs. If the model produces SQL, a URL or code, check it against an allowlist before executing.
- Log what the agent did. You cannot investigate what you didn't record.
The fundamentals haven't moved
Here's the reassuring part: the highest-impact vulnerabilities in real systems are still the classics. Injection, broken access control, insecure design, leaked secrets — the OWASP Top 10 has barely changed in spirit for twenty years, because these bugs come from how humans write software, not from which framework is fashionable.
// Still wrong in 2026, in every language: const q = "SELECT * FROM users WHERE email = '" + email + "'"; // The fix is boring and total — parameterized queries: const q = "SELECT * FROM users WHERE email = $1"; await db.query(q, [email]);
If you haven't yet, read our deep dives on SQL injection, how firewalls actually filter traffic, and the recent PHP2Shell runtime flaws — each one is a case study in how a small assumption becomes a critical breach.
How developers can learn security
Security has a reputation for being a huge, intimidating field. For a working developer it isn't — you already know how systems are built, which is most of what you need to understand how they break. A realistic path:
- Foundations (weeks 1–4). Make sure you truly understand HTTP, cookies, sessions, tokens, CORS and TLS. Most web vulnerabilities are misunderstandings of these five things.
- Classic attacks (weeks 5–10). Work through the OWASP Top 10 one category at a time. For each: read how it works, then exploit it yourself in a legal lab, then learn the defense. The PortSwigger Web Security Academy (linked below) is free and is the standard recommendation for a reason.
- Deliberate practice (ongoing). Capture-the-flag events and intentionally vulnerable apps turn knowledge into instinct. Even one hour a week compounds quickly.
- AI security (once the above is solid). Study the OWASP Top 10 for LLM Applications and MITRE ATLAS. Try to prompt-inject your own side projects — you'll learn more in an afternoon of attacking your own chatbot than in a week of reading.
New focus areas for software engineers
If you're a software engineer planning the next two or three years of your career, these are the areas where security and AI are converging — and where senior roles are being defined right now.
| Focus area | What it means | Why it's growing |
|---|---|---|
| LLM & agent security | Prompt injection defenses, tool scoping, output validation, guardrails | Every company is shipping agents; almost none know how to secure them |
| Secure code review with AI | Using AI assistants to find vulnerabilities — and reviewing the code AI writes | AI-generated code ships fast and carries the same old bugs at higher volume |
| Supply-chain security | Dependency auditing, signed builds, SBOMs, verifying what you install | Attacks on packages and build pipelines are the cheapest way into many companies at once |
| Identity & access | Zero-trust design, short-lived credentials, least privilege for humans and services | Stolen credentials remain the most common way breaches begin |
| Cloud & misconfiguration | IAM design, network segmentation, secrets management, detecting exposed resources | Most cloud breaches are configuration mistakes, not exotic exploits |
| Detection & response engineering | Logging, alerting, anomaly detection, incident runbooks | AI helps attackers move faster; defenders win by noticing sooner |
Notice what these have in common: none require you to become a full-time security researcher. They are engineering skills with a security lens, and they make you dramatically more valuable on any team that ships AI features — which is increasingly every team. If you're building AI systems, our AI learning track covers how models, agents and protocols like MCP actually work, which is the foundation everything in the first row of that table rests on.
A checklist you can use today
Whatever you're building this sprint, run through these before you ship:
- Every database query is parameterized; no string-built SQL anywhere.
- Every endpoint checks authorization on the server — not just hides UI.
- Secrets live in a manager or environment variables, never in the repo.
- Dependencies are pinned and scanned; you know what your build pulls in.
- AI features treat retrieved content as data, scope their tools tightly, and ask a human before irreversible actions.
- Errors and logs don't leak internals, tokens or user data.
- You know how you'd detect and roll back a bad action by an automated system.
Official documentation
- OWASP Top 10 — the standard list of web application risks
- OWASP Top 10 for LLM Applications — prompt injection and the other AI-specific risks
- PortSwigger Web Security Academy — free, hands-on, legal practice labs
- MITRE ATLAS — the global knowledge base of real-world AI attack tactics
- NIST Cybersecurity Framework 2.0 — how organizations structure security work
- NIST AI Risk Management Framework — managing risks specific to AI systems
- Google's Secure AI Framework (SAIF) — a practical guide to securing AI systems