Hypeless AI #3: Build. Break. Defend. Repeat: Automating AppSec for .NET with AI

Past Episode

#3: Build. Break. Defend. Repeat: Automating AppSec for .NET with AI

Thu, Sep 24, 2026 • 1:00 PM – 4:30 PM CEST

AI is changing not only how we build software, but also how vulnerabilities are discovered and exploited. In this session, you’ll see how AI can help you find security flaws in .NET applications, test and break your own code, and fix vulnerabilities before attackers do. We’ll explore practical ways to combine AI with proven security tools and integrate AppSec into your everyday development workflow, continuously, not just at the end of the project.

The goal isn’t to overwhelm you with tools, but to show practical patterns you can start using immediately. All of this is available today, and you can start using it right away. If you’re struggling to keep up with the pace of AI and wondering how to stay relevant as a developer, this episode is for you.

Recordings

Buy Online Individual Ticket for 1 person
49€ 1189 CZK incl. VAT
Buy Online Team Ticket for up to 4 people
139€ 3369 CZK incl. VAT
Watch free
preview
Event recording 4 hours of useful content

Schedule

13:00–14:00
Build & Break | PART 1

AI writes a lot of your code now, and some of it is vulnerable. That goes for the code it generates, and for the LLM calls and agents you're wiring into your own applications. Meanwhile, frontier models have started finding vulnerabilities on their own and at scale. One recent run surfaced 23,000 of them across 1,000 open source projects, most absent from any CVE database. This first part covers the build and break sides of the loop. We start with what AI-generated code gets wrong and the new attack surface you inherit when you build LLMs into your apps. From there we dig into LLM-driven pentesting and security testing. And here's the good news: you don't need a frontier lab's budget for this. With deterministic analysis and off-the-shelf models, you can find and break vulnerabilities in your own code yourself. That's what we're going to do in part two!

Intro Demo
14:15–15:15
Defend & Repeat | PART 2

Attackers can now discover bugs faster than any human AppSec team can keep up with, so defence has to run at machine speed too. The catch: an LLM on its own hallucinates, and a rule-based scanner on its own buries you in false positives. The useful combination is deterministic analysis for the verifiable facts (call graphs, data flows, dependency trees, known CVEs) plus an LLM that understands what the code does. In this second part we put that combination to work on a real .NET application, using AI agents with composable skills: threat modelling generated from the code itself, static analysis with AI-assisted fixing, and CVE triage that checks whether vulnerable dependency code is even reachable before you spend time on it. Then comes the repeat: how to fit all of this into your own workflow so it runs on every commit, not just once. You'll see what works today and where it still breaks.

Demo
15:30–16:30
Live Q&A: Ask me anything

I'll answer all the questions you post during the show.

Q&A

Speakers

Niels Tanis
Niels Tanis

Niels Tanis has got a background in .NET development, pentesting and security consultancy. He is Microsoft MVP and has been involved in breaking, defending and building secure applications. Right now he is a software security engineer at Tidalis and before that he was a security researcher at Veracode where he focussed on static analysis of a variant of languages. He is married, father of two and lives in a small village just outside Amersfoort, The Netherlands.

Finding security flaws with AI - and securing the agents themselves

In the third episode of Hypeless AI, we put on our security hats. Niels Tanis joined us to explore how AI can help review .NET applications, why a convincing vulnerability report is not enough, and what can go wrong when an agent gets access to tools it should never have been given.

Security needs a workflow, not just a smarter model

Niels brought the perspective of both a researcher and a practitioner. As the official speaker profile explains, he is a Microsoft MVP with a background in .NET development, pentesting, and security consultancy. At the time of the episode, he was a software security engineer at Tidalis, having previously worked on static analysis at Veracode.

His starting point was not that developers should stop using AI. It was that faster code generation also creates more code to understand and verify. Asking a model to produce something that works does not automatically establish that it is safe.

Throughout the discussion, Niels returned to the importance of the system around the model: the context it receives, the tools it uses, the steps it follows, and the checks applied to its conclusions. He was cautious about fully autonomous pentesting without sufficient control. The goal was a repeatable process that helps developers investigate their own software, not an agent left to do whatever it takes.

What security benchmarks can and cannot tell us

The opening discussion covered research into the security of generated code. Niels highlighted an important limitation: a benchmark based on a small, isolated snippet is not the same as an agent working inside a real solution with access to surrounding code, documentation, and project conventions.

That does not make benchmarks useless. It means we need to understand what they measure before turning a result into a claim about everyday development. Niels discussed BaxBench, which evaluates the generation of correct and secure backend applications, and compared prompts that leave security implicit with prompts that explicitly state security requirements.

The practical lesson was to make those requirements part of the task. But better instructions are not a substitute for verification. Niels also discussed the risk of treating a public benchmark as the target to optimise for, rather than as evidence of broader capability. The related AutoBaxBuilder project offered another angle: generating new security benchmark tasks instead of relying only on a fixed set.

From threat model to triaged findings

The central demo used a defence harness to organise an AI-assisted security review into separate stages. Rather than asking for a single list of problems, Niels walked through a process that first establishes context and then challenges the findings.

  1. Threat modelling: identify the application’s components, valuable assets, entry points, and trust boundaries, then suggest threats worth investigating.
  2. Vulnerability scanning: inspect those hypotheses more closely and look for relevant execution paths in the code.
  3. Triage: re-evaluate individual findings in fresh context windows, checking whether the proposed issue actually holds up.
  4. Patching: use the retained findings as input to proposed fixes, rather than trying to repair every initial suspicion.

In the eShop demo, the threat model identified assets such as customer data, order integrity, and the file system. It also recorded open questions and reasons why some familiar vulnerability classes appeared less promising in the code it had inspected.

The distinction mattered: a threat model is a map of things to investigate, not a list of proven vulnerabilities. The following stages were there to test that map.

The useful findings involved application context

Several examples showed why Niels found this approach valuable. The agent’s reports connected behaviour across endpoints and considered what an application was trying to do, rather than only flagging suspicious syntax.

  • Order access: the review raised cases where knowing an order identifier appeared sufficient to access or act on another customer’s order. This is the kind of object-level authorisation problem commonly described as an insecure direct object reference, or IDOR.
  • Picture paths: the report connected a supplied picture filename, its storage in the database, and its later use when serving a file. A value coming back from the database is not necessarily trustworthy if an external caller could influence it earlier.
  • Checkout prices: the review questioned calculations that used prices supplied by the client rather than an authoritative server-side representation.

Niels repeatedly reminded us that eShop was a reference application. These examples illustrated security patterns to examine; they were not a claim that every deployment of an application with that name was vulnerable.

He also inspected previously generated reports for SimpleCommerce, including a concerning finding around a sample-data controller that appeared capable of resetting application data. Again, configuration and exposure were part of the question. The model’s confidence was a reason to investigate, not independent proof of exploitability.

Why the second opinion matters

One of the clearest moments was the eShop triage result. The harness reported 15 candidate findings, with six retained and nine rejected as false positives. In this run, each finding received three fresh-context evaluations, with at least two positive votes required to retain it.

That is a result from the demonstrated workflow, not a universal accuracy figure. Nor does agreement between model runs replace a human check. But it showed why a second pass is useful: a plausible issue can disappear when the reviewer notices that the suspected input is not controllable or that a relevant endpoint is not exposed.

The practical takeaway: use AI to propose and investigate findings, then demand evidence. A long report is less useful than a shorter list whose assumptions, affected code paths, and remaining questions are clear.

Niels also showed reports produced through different coding-agent environments and models. His emphasis was on the review process rather than a single vendor. These were practical experiments, not a controlled model comparison, and the live session exposed ordinary constraints such as waiting for runs and managing the available context.

Reviewing a framework is different from reviewing an app

For the interactive part, we turned to DotVVM. This introduced another context problem: a framework does not contain all the decisions made by the applications that use it.

We discussed why feeding the agent a framework’s sample applications could be misleading. Some samples exist to exercise one feature or an unusual edge case, not to represent production application design. An agent could spend its time finding problems in those examples instead of reviewing the framework itself.

We therefore started a review of the framework code. The exercise brought the discussion back to scope: what belongs to the framework, what belongs to the host application, and what assumptions need to be explained? A security review needs those boundaries just as much as a coding task does.

A home-automation agent that could read unrelated files

The discussion then flipped from AI reviewing software to software exposing capabilities to AI. Niels demonstrated a home-automation example adapted from Semantic Kernel to the Microsoft Agent Framework.

The intended interaction was straightforward: ask which lights are on, or turn on the office light. But a configuration plugin also exposed a function that opened a file and returned its contents. When asked for configuration, the agent initially tried a nonexistent file. When given a real system-file path, it returned that file’s contents.

The problem was not a sophisticated attack. It was an overly broad capability behind an innocent-sounding tool. Calling it a configuration plugin did not constrain what the underlying function could read.

Niels connected this to Simon Willison’s lethal trifecta: access to private data, exposure to untrusted content, and an external communication channel that can be used to leak data. The home-automation example demonstrated excessive file access; the wider discussion concerned the danger of combining that access with other capabilities.

His advice was to expose only the tools an agent needs, validate inputs and model-generated tool arguments, and enforce least privilege outside the prompt. A model should not be the component that decides whether it is authorised to read a file or act on business data.

Build, break, defend. Then repeat

Niels introduced Microsoft’s PyRIT as a tool for AI red teaming: testing the security and safety weaknesses of generative AI systems. It complemented the other side of the episode, where AI helped investigate conventional application code.

The thread connecting the demos was that neither traditional analysis nor an LLM should be treated as sufficient on its own. Niels argued for combining verifiable facts about the code with the model’s ability to interpret application context, while keeping developers involved in decisions and validation.

That is the useful meaning of Build. Break. Defend. Repeat. Use AI to help build software, challenge what was built, investigate the evidence, and review the fixes. And when AI becomes part of the application, give its tools the same security scrutiny as any other interface.