Abstract
As AI tooling becomes embedded in cloud-native development, AppSec must evolve across three dimensions: using AI to strengthen security, securing AI applications, and safely consuming vendor AI.
This session presents a practitioner's framework covering all three. We explore how agentic AI transforms AppSec: from AI-driven threat modeling and SAST/SCA/DAST scanning skills to automated WAF rule generation, while addressing risks like false confidence and adversarial attacks. We then tackle securing AI systems teams are building: RAG pipeline threats, agentic AI architecture attack surfaces, and MCP server security across hosts, clients, and servers with defense-in-depth strategies including OAuth 2.1, RBAC, sandboxing, and audit logging. Finally, we cover vendor AI governance and trusted agentic coding with OWASP secure coding rules.
Attendees leave with open-source tools they can apply immediately: an MLOps Security Policy framework, AI/LLM security assessment questionnaires, product security AI skills, and secure coding rule sets for agentic environments.
AppSec Must Evolve in Three Dimensions
The talk is built around one practitioner framework — use AI, secure AI, consume AI — and every tool shown is open source.
Use AI to Strengthen AppSec
Agentic workflows across the SDLC
- AI-assisted threat modeling (STRIDE, PASTA, LINDDUN, MAESTRO)
- SAST, secrets, SCA, and DAST skills for coding agents
- AI remediation with re-scan, test, and human-review gates
- AI-generated WAF rules for new features
You leave with: Product Security AI Skills
Secure the AI You Build
Defend what you ship
- MLSecOps security policy across data, model, platform, compliance, human
- RAG pipeline threats and a control at every hop
- Agentic AI attack surface: models, tools, orchestration, memory
- MCP security across hosts, clients, and servers
You leave with: MLOps Security Policy
Consume Vendor AI Safely
Govern what you adopt
- Model provider assessment and model selection scoring
- Securing desktop coding agents: inventory, score, scan
- OWASP secure coding rules for agentic coding
- A 30 / 60 / 90-day rollout plan
You leave with: LLM Assessment + Secure Coding Rules
01 — Use AI to Strengthen AppSec
Agentic Workflows Across the SDLC
Agentic workflows and reusable skills make traditional AppSec tooling faster, more consistent, and more contextual. The pattern covers every SDLC phase: a threat modeling assistant at design time, SAST and secrets skills while coding, SCA skills at build, DAST and fuzzing at test, WAF rule generation at deploy, and alert and vulnerability triage in operations.
The non-negotiable is the human gate: AI proposes, tools verify, engineers decide. Every AI output is re-checked by a deterministic scanner or a person. Skills turn ad-hoc prompting into repeatable security automation — same tool, same rules, same output, in every repo and every team.
From Finding to Fix
Traditional SAST stops at discovery and drowns teams in false positives. An agentic workflow triages every finding, explains its verdict, drafts a context-aware fix, and opens a PR. The scanner still finds the bug; the agent supplies the context, triage, and fix. Runtime blindness is only partially solved — pair it with IAST or runtime data.
Anatomy of a Security Skill
A good skill has four parts: a trigger (the description tells the agent when to load it), a pinned tool and ruleset, a deterministic command the agent runs instead of guessing, and an output contract (SARIF plus a fixed table) so triage is comparable across teams.
AI Remediation: Trust, but Verify
Every AI patch flows through re-scan (same skill, same rules), unit and security tests, and review by a named code owner before merge. Any failed gate sends the patch back with the failure as context. Each gate exists to catch a specific risk:
False confidence
Patch looks right but adds a new bug
→ Re-scan + tests
Missing context
Fix breaks business logic
→ Human review
Accountability gap
Who owns a failed AI fix?
→ Named code owner
Adversarial patching
Attackers game how AI fixes CWEs on critical paths
→ No auto-merge
AI-Generated WAF Rules
When a feature adds new API response fields, AI drafts ModSecurity / Coraza SecRules, which run in detection-only mode first, get replayed and tuned to remove false positives, and only then enforce. The open-source rule set (~40 rules across 7 sections) stops financial data, PII, credentials and secrets, application internals, health data, and environment and config details from leaking in responses.
02 — Secure the AI You Build
Defense in Depth for ML, RAG, Agents, and MCP
The second dimension starts with an open-source MLSecOps security policy covering five pillars — data, model, platform, compliance, and human security — and then walks the attack surface of the AI systems teams are shipping.
RAG: A Control at Every Hop
A RAG pipeline exposes nine threats (T1–T9): prompt injection, data poisoning, sensitive data leakage, jailbreaking, insecure output, denial of service, model theft, hallucination, and vector manipulation. Each hop gets a matching control:
| Stage | Control | Threats |
|---|---|---|
| Input | Input rail: injection classifier, length and rate limits | T1, T6 |
| Ingestion | Source allowlist, document sanitization, hashed corpus | T2 |
| Retrieval | Permission-aware retrieval: document ACLs and tenant filters at query time | T3, T9 |
| Context | Spotlight retrieved text: delimit it as data, never instructions | T1 |
| Model call | Model gateway: virtual keys, quotas, central logs | T4, T6, T7 |
| Output | Output rail: PII masking, grounding and citation checks, encode before render | T5, T8 |
Architecture moves trust boundaries too: Agentic RAG, Self-RAG, and CRAG add tool calls and web fallback — threat model each one.
Agentic AI: Six Threats, Six Controls
An agentic system has four parts, each with its own attack surface: models (goal hijack via prompt injection), tools (excessive privilege, tool poisoning), orchestration (runaway loops, unsafe code execution), and memory (memory poisoning as persistent injection). The talk maps six threats to six open-source controls, each deployed as a choke point:
Shadow AI: unmanaged model access, key sprawl
Managed model gateway — LiteLLM virtual keys, spend limits, central logs
Prompt injection, direct and via tool data
Input / output guardrails — NeMo Guardrails judge, Presidio PII masking
Any agent can call any tool with full privilege
Least-privilege MCP gateway — Bifrost authn, per-agent tool allowlists
Agent-written code becomes RCE in your network
Sandbox + egress control — gVisor (runsc), Squid deny-by-default
Tampered dependencies, skills, and prompts (rug-pull)
Supply-chain provenance — content hashes, cosign, CycloneDX AIBOM
No visibility, silent regressions, no kill switch
Runtime governance — policy-as-code, canary replays, kill switch
MCP Security: Every Layer Verifies Trust
The key principle: no layer assumes the layer above or below is secure.
MCP Host
IDE, desktop app
- Enforce user consent before tools run
- Isolate clients from each other
- Connect only to signed, pinned servers
- Monitor and flag tool calls
MCP Client
Protocol bridge
- Validate JSON-RPC in and out
- OAuth 2.1 tokens, not static keys
- Re-approve on any server change
- Expose only the tools the task needs
MCP Server
Executes tools
- Run in a sandbox
- Secrets in a vault, never in config
- RBAC per user / role per tool
- Audit who, what, when, and why
For authorization, MCP uses OAuth 2.1: an unauthenticated tool call returns a 401 pointing to protected-resource metadata (RFC 9728), the client runs an authorization-code flow with PKCE (S256) and a resource indicator binding the token to one server (RFC 8707), and the server validates audience, expiry, and scope, then applies RBAC per tool and writes an audit log. No token passthrough downstream, and no static API keys in config files.
03 — Consume Vendor AI Safely
Assess, Score, Decide
Vendor AI adoption runs through a structured flow: intake (provider, model, deployment, use case), provider and model questionnaires, a combined safety score, a decision against compliance thresholds, and approval by a named risk owner with a 6–24 month validity before re-review.
80–100
Approved
Production use
60–79
Conditional
Mitigate + re-assess
40–59
Review
Security board escalation
0–39
Rejected
Must not be used
Securing Desktop Agents
A developer laptop today can host Claude Code, Claude Desktop, Cursor, VS Code with Copilot, Windsurf, Gemini CLI, Codex, and Kiro — plus MCP configs, SKILL.md skills, IDE extensions, and API keys on disk. The workflow: inventory every agent, MCP server, skill, and key; score risk with OWASP AIVSS (CVSS v4 plus agentic amplification factors); scan MCP servers and skills with snyk-agent-scan; enforce with MDM allowlists, managed settings, sandboxing, and egress allowlists; and re-scan on a schedule with results flowing to the SIEM.
Trusted agentic coding then comes from loading OWASP secure coding rules directly into coding agents, so generated code follows secure-by-default patterns from the start.
Where to Start: 30 / 60 / 90 Days
Days 0–30
See It
- Inventory AI: agents, MCP servers, skills, vendor models
- Route every model call through a gateway
- Central logs, audit trail, spend caps
- Assess your top vendor models
Days 31–60
Contain It
- Scan skills and apply OWASP rules in coding agents
- I/O rails on your riskiest AI app
- MCP gateway with per-agent allowlists
- Sandbox agent code with deny-by-default egress
Days 61–90
Prove It
- Hash and sign dependencies, skills, prompts
- Canary attack replays and policy-as-code
- Rehearse the kill switch
- Track fix acceptance, false-positive rate, MTTR
Visibility first — you can't contain what you can't see.
Take It Home: Open-Source Toolkit
Fork them, adapt them to your stack, and send pull requests.
MLOps Security Policy
Goals and techniques for data, model, platform, compliance, and human security.
AI / LLM Security Assessment
Provider and model questionnaires, auto-scored against compliance thresholds.
Product Security AI Skills
SAST, secrets, SCA, and DAST skills for coding agents.
OWASP Secure Coding Rules
22 markdown rule sets for agentic coding environments.
WAF Rules
AI-generated ModSecurity / Coraza rules that stop sensitive data leaking in responses.
ThreatModelingGPT
Free threat modeling assistant using STRIDE, PASTA, LINDDUN, and MAESTRO.
Related Content
Introducing Product Security AI Skills
36 ready-to-use security skills for AI coding agents
15 RAG Strategies Every AI Engineer Should Know
Implementations and security considerations for major RAG patterns
Agentic AI Design Patterns
Hands-on exploration of single- and multi-agent patterns with security notes
Resource Library
All three pillars: AI for AppSec, Securing AI, and Securely Using Vendor AI
The views and opinions in this presentation are solely my own and do not represent the official positions of my employer or any affiliated organizations. This material is for informational and educational purposes only.