~/talk

Prompt Hardening - Secure Code Generation Using AI

Talkat NDC Security 2026 · 2026-03-02..03-05· [security, ai-assisted-development]
links:none on file
slides:none on file

A reproducible evaluation harness uses PromptFoo and OpenRouter-connected models (Gemini 1.5 Pro, Claude Opus, GPT‑3.5 Codex, GPT‑4o mini, GPT‑5.1/5 mini) and an LLM-as-a-judge prompt to scan 3,000 generated code samples from 300 unique prompts; prefixing prompts with using best practices raises pass rates from ~68% to ~83% (≈15.3% absolute improvement). Tests uncover concrete failures: hardcoded credentials, missing rate limiting, and no least‑privilege, and the evaluation artifacts and samples are stored for automated CI checks.

AI-written summary · about

  1. 0:00Prompt hardening introduction
  2. 3:17AI secure code research journey
  3. 7:09How LLMs learn and security limits
  4. 9:17Context drift and prompt limits
  5. 11:25Shorter prompts for better security
  6. 16:28Prompt prefix method
  7. 19:34Evaluations with Promptfoo setup
  8. 25:58First experiment results
  9. 27:44Second experiment with realistic prompts
  10. 30:19Demo of evaluation results
  11. 33:22Model security testing surprises
  12. 35:28Failed security evaluations analysis
  13. 41:11Future of secure AI code
  14. 43:19Practical prompt tips
  15. 45:05Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.