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.
- Threat modelling: identify the application’s components, valuable assets, entry points, and trust boundaries, then suggest threats worth investigating.
- Vulnerability scanning: inspect those hypotheses more closely and look for relevant execution paths in the code.
- Triage: re-evaluate individual findings in fresh context windows, checking whether the proposed issue actually holds up.
- 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.