Skip to content
All cases

Our AI-driven security process

trappan-16x9

AI models have become very good at finding and exploiting vulnerabilities in code, and those capabilities are spreading fast. The same models that can find security holes for us can find them for an attacker. Prototyp developed a shared, AI-driven security process in three weeks and tested it on the codebases of three existing clients and on one of its own internal systems.

In brief

  • Background: Security testing of client projects used to be up to each team, while AI keeps making systems easier to attack.

  • The assignment: To make AI-driven security testing a natural, recurring part of how Prototyp works on all its projects.

  • The solution: A five-step process built on an agent-based security harness and in-house skills for Claude Code, giving the client five to ten concrete actions that significantly improve security.

Background

Prototyp builds and maintains digital services for organisations that handle sensitive data, money and authentication. For a long time, how security was tested in those systems was up to each project team and the client's own security requirements.

Meanwhile the conditions have changed. AI models have become skilled at finding and exploiting vulnerabilities, and work that once required an experienced security expert can now be partly automated. The threat to client systems grows as fast as the models improve. The starting point was therefore simple: if attackers use AI, Prototyp has to use AI too, and find the vulnerabilities first.

A broad question gets a broad answer

The obvious first idea is to ask an AI model to look for security holes in a codebase. The problem is that a broad question gets a broad, shallow answer with a lot of noise. Prototyp instead chose an agent-based security harness that tackles the problem more methodically. It splits the code up and examines one part at a time. A separate agent is tasked with disproving the findings rather than producing its own, so false alarms get filtered out. The harness also separates finding a bug from judging whether it can actually be exploited in that particular system.

The result is fewer but better findings. Prototyp uses the strongest model on the most critical parts of the analysis. The models can be swapped to match the client's preferences and security requirements. Each project gets its own workspace with a spending cap, so a scan running unattended cannot run up costs.

From codebase to backlog in half a day

Katja Lindeberg, Kristina Geddis and Omar Garcia built the process in three weeks and tested it on three client projects of different ages and complexity. It settled into five steps that together take roughly half a working day.

The work starts by identifying the critical parts of the system. The team holds a short workshop with the project's developers to scope the scan and capture the knowledge about the system that lives in the team. Then the scan runs.

The process ends with a workshop where the team and someone from Prototyp's security team go through the most serious findings. Each finding gets one of three outcomes: it is explained and closed, it is investigated further, or it is fixed. Tickets are created directly in the project backlog, with secrets and personal data redacted along the way. The client never receives the raw report. Instead the client gets a summary with five to ten concrete actions that significantly improve security.

Sitting down as a team to discuss the system's architecture also becomes an opportunity for knowledge sharing and learning, while making the system more secure. Custom skills for Claude Code simplify every part of the process.

A clean report is not a secure system

One of the most important lessons came from Prototyp's own time reporting and invoicing system. It went from AI PoC to production in a few weeks and is largely written by AI. The scan found almost nothing, and none of the findings were rated critical or high.

When the team then ran a deeper, manual penetration test, they still found weaknesses. They concerned who has access to the build pipeline and hosting, how secrets are handled, and what data sits in test and staging. None of these weaknesses show up in the code, which is why no code scan can find them.

The conclusion is that the harness is a powerful tool but not the whole answer. Access, secrets and data need a manual review by someone on the project team, alongside the automated scan.

Most to gain in the oldest code

The clearest pattern in the tests was the difference between old and new code. The three client projects, all started before AI wrote any significant share of the code, produced several valuable findings. At one of our clients, with a relatively complex infrastructure, the scan found three critical and three high-severity vulnerabilities. The new, AI-written system, by contrast, produced almost no findings of comparable severity.

For a mid-sized project, the full analysis and report took about an hour and a half. Prototyp will now test all its projects regularly with the process the team arrived at.

The team

  • Katja Lindeberg Tech Lead, Prototyp
  • Kristina Geddis Developer, Prototyp
  • Omar Garcia Developer, Prototyp

Next case

Prototyp

Pulse

Read more