News

AI agents are attacking. Those who know their code have the edge

by

Marc Challandes

CCO / Beratung & AI Strategy

published

share

email icon
x icon
facebook icon
copy icon

For the first time, the Swiss federal government has confirmed cyberattacks carried out with AI agents. The debate centres on the threat. Yet the same technology also shifts the balance of power towards the defenders – provided they use their advantage.

The news broke early on Thursday morning. The Federal Office for Cyber Security (FOCS) counts five confirmed attacks involving AI agents; in four cases, the attackers got into the systems. Those affected include three operators of critical infrastructure and several SMEs. There were no major outages, and the perpetrators remain unknown (SRF, 26 November 2026, in German).

Five cases do not yet make a wave. But FOCS observes that the number of suitable AI tools has almost doubled since October, and in Germany the situation has been rated tense to critical since this autumn.

Anyone expecting sophisticated, never-before-seen methods will be disappointed. The agents look for what attackers have looked for for years: known vulnerabilities in software that nobody updated in time. What is new is the arithmetic behind it. An agent never tires and takes on many targets at once, and that removes a barrier which has so far protected many SMEs. A human attacker had to consider whether a mid-sized manufacturer in eastern Switzerland was worth the effort. For an agent, one more target costs almost nothing.

The overlooked asymmetry

In the SRF report, FOCS director Florian Schütz makes a point that is almost lost: if there is no vulnerability, even an AI agent cannot get into a system. That sounds trivial.

It isn't, because it describes an imbalance that favours the defenders. An attacker sees only the façade of an application: an address, a login and the server's responses. Whoever develops it has the blueprint in front of them: the source code, the libraries, the server configuration and the entire version history.

“We have AI at our disposal too,” says Silvan Mühlemann, co-founder and CTO of mühlemann+popp. “But we know the system, the code and the setup. Many don't take this advantage seriously enough, or don't know how to use it.” And the lead is growing. The better the models understand code, the more there is to gain for those allowed to read all of it.

Weekly instead of yearly

This advantage is rarely used, and the reason is rhythm. The norm is the penetration test: once a year, from the outside, a careful snapshot. In between, the software changes every week. Features are added, libraries receive security advisories, someone adjusts a configuration. FOCS recommends installing critical updates within 24 hours. A twelve-month review cycle no longer fits the times.

So reverse the cadence: review every week, automatically, across the entire codebase. That has only become affordable since AI agents learned to read code.

At mühlemann+popp, this approach is called RASR, short for Recurring AI Security Review. Every week, an AI agent reads the code of the applications we look after, just as an attacker would. Each finding is rated by real-world risk. A missing rate limit is minor on an internal network but serious on the open internet. Only what is new gets reported, and the code under review is never changed.

The record so far: 15 projects under weekly review, 856 findings, 253 of them rated critical or high.

RASR is no silver bullet. It checks code, not running infrastructure, and it replaces neither the firewall nor the penetration test. No method can guarantee that a system is free of vulnerabilities. But it changes who searches first. The attackers' agents are already out there, and the defenders can see more than they can. They just need to look more often than once a year.


RASR – Recurring AI Security Review

A weekly, automated security review of an application by mühlemann+popp. An AI agent reads the code with an attacker's understanding, while established scanners such as Trivy, Gitleaks, Checkov and Kubescape provide breadth.

Scope

  • Application code: Next.js, Nuxt, React Router, Django, Node, Capacitor

  • Dependencies: known vulnerabilities (CVEs), licences, software bill of materials (SBOM)

  • Infrastructure as code: Terraform, Bicep, Kubernetes, Helm, Docker

  • Git history: credentials in every commit, not just the current state

Output

  • A report with file and line for every finding, rated by real-world risk

  • A weekly team update: what is new, what has been fixed

  • A dashboard across all projects, with a warning when a review is overdue

  • Remediation tasks as tickets with effort estimates

What sets RASR apart

  • Rating by exposure: intranet, behind a login or open to the internet

  • Assessed once, stays assessed: accepted risks and false positives don't resurface every week

  • Connections across multiple repositories

  • No changes to the code: results go to a separate audit repository

Getting started

For projects we look after, RASR is part of our service. For all others, we start with a full first run and discuss the results: what is urgent, what can wait and what remediation will take.

First review for free – get in contact with us.

by

Marc Challandes

CCO / Beratung & AI Strategy

by

Marc Challandes

CCO / Beratung & AI Strategy

published

share

email icon
x icon
facebook icon
copy icon

Recent News

Ready to create

impact?

Ready to create

impact?

Ready to create

impact?