AI agents that attack computer systems are no longer a research curiosity. Last week, Switzerland confirmed its first AI agent cyberattacks, Microsoft published a defender guide for ARTEX, and Britain’s National Cyber Security Centre reported a marked rise in AI-assisted attacks since September. The defences are familiar: close what the internet can see, patch fast, lock logins, protect secrets. This guide shows how to defend against AI agent cyberattacks in seven steps.
Key takeaways:
- AI agents chain ordinary attack tools together at machine speed: discovery to exploitation in minutes, privileged access in under three hours in some intrusions Microsoft observed.
- The weaknesses they exploit are old: exposed credentials, guessed passwords, unpatched systems and weak APIs.
- Switzerland confirmed its first cases on 24 November 2026; Britain reports a marked rise since September.
- Seven defences from the Swiss NCSC, the UK NCSC and Microsoft cover most of the risk, and none needs new technology.
What happened this week
Switzerland confirms its first cases
On 24 November 2026, Switzerland’s National Cyber Security Centre (NCSC) confirmed its first reports of AI agent-assisted cyberattacks, affecting organisations and critical infrastructure operators in at least two sectors. In all cases known to the NCSC then, the agents compromised the victims’ IT systems. Two days later, director Florian Schutz told Swiss public radio SRF there were five confirmed cases, with attackers breaking in in four of them; three targeted critical infrastructure, and two of those three succeeded. There were no major disruptions, and the attacker is still unknown. The notice records what the NCSC knew on 24 November; the interview updates the count two days later.
The attackers used what the NCSC calls Agentic Offensive Frameworks: AI agents that independently search for vulnerabilities, select attack tools, evaluate the results, and plan the next steps. They exploit guessed passwords and known vulnerabilities, in a fraction of the time a human would need. The NCSC also reports that the number of AI agents accessible online has almost doubled since October 2026; ARTEX and CyberStrikeAI are named only as examples, not as the tools used here.
Microsoft publishes a defender guide for ARTEX
On 25 November 2026, Microsoft Threat Intelligence published a defender guide for ARTEX, the agentic AI framework threat actors abuse. As of November 2026, Microsoft has observed state-sponsored and financially motivated groups integrating ARTEX into their tooling, and names six groups, including Storm-0940 and Salt Typhoon.
ARTEX began as a legitimate tool: GitHub user Autumn-27 published it in July 2026 as open-source penetration testing software. The original code was removed in October 2026, but forks circulate, and in November 2026 ThreatBook claimed ownership and began selling commercial access to “ARTEX Pro”. It is not a state cyberweapon: a defensive tool, published openly, that unrelated groups have picked up and repurposed.
ARTEX introduces no new attack techniques: it runs common penetration testing tools and tries one approach after another at machine speed. In one case, an agent went from searching GitHub for exposed client secrets to taking data from Azure Key Vault in five minutes. In a Storm-0940 campaign, Microsoft recorded more than 151,000 failed sign-ins, peaking at 2,900 per minute, and privileged access came less than three hours after initial targeting in multiple intrusions.
Britain reports a marked rise since September
On 24 November 2026, Britain’s National Cyber Security Centre reported a marked rise in AI-assisted cyber attacks since September. Organisations across multiple sectors reported incidents against internet-facing services, causing downtime or the compromise of systems. The NCSC stresses that none of the weaknesses are new, and the tools are common ones a typical human attacker could already use. What has changed is speed, persistence and cost: an agent moves from discovery to exploitation in minutes, searches exhaustively, learns from failures, and is cheap to run at scale. The weaknesses are familiar: credentials in code repositories, misconfigured infrastructure as code, default credentials or no authentication, and weak APIs. Once inside, agents exploit over-privileged credentials and flat networks.
How an AI agent attack actually works
An agentic offensive framework is a small team of AI agents working together: a goals model breaks the engagement into verifiable objectives, a planner agent issues short attack directions called “intents” from a knowledge graph, and worker agents carry them out with a real shell and offensive tools. The tools are ordinary, network discovery, web application mapping and web shell upload, plus added tools such as sqlmap, hydra, nuclei and Metasploit. The framework adds planning, memory and persistence: it retries variations and moves to the next stage the moment one succeeds. A human attacker takes time between stages; an agent dispatches more agents at machine speed the moment a credential or system falls. Today’s frameworks are noisy, which makes them easier to detect, but Microsoft and the NCSC warn this may not last.
Defend against AI agent cyberattacks: seven defences that work
1. Shrink what the internet can see
Inventory every internet-facing host, website and service: the UK NCSC notes some compromised services were ones their owners had forgotten. Then take services off the public internet wherever possible: the Swiss NCSC recommends geo-blocking or an allow list for specific IP addresses, and the UK NCSC lists identity-aware proxies, VPN-only firewall rules, or mutual TLS certificates.
2. Patch internet-facing systems within 24 hours
The Swiss NCSC recommends critical security updates for internet-facing systems be installed no later than 24 hours after release. Agents test known vulnerabilities very quickly, so a patch window measured in weeks is a window an agent will find in minutes. Treat a known vulnerability on an exposed system as an emergency.
3. Lock every login with multi-factor authentication or passkeys
The Swiss NCSC is absolute: all internal resources accessible via the internet, such as webmail and VPN, should be secured with multi-factor authentication or passkeys, without exception. Microsoft adds: Conditional Access for every user and workload identity, multi-factor authentication for all users, phishing-resistant multi-factor authentication for administrators, and legacy authentication blocked. The 151,000 failed sign-ins Microsoft recorded in one campaign show what guessing looks like at machine speed.
4. Give every account the least privilege it needs
Agents exploit over-privileged credentials, then reuse captured credentials to move laterally. Grant the lowest possible privileges wherever possible. Use role-based access control so each service principal reaches only what its application needs, and grant managed identities only the access they need. Use time-bound role activation, monitor credential and role changes, rotate local administrator passwords, and keep RDP and SSH closed until needed.
5. Protect secrets and code repositories
Agents hunt secrets first. Microsoft observed an agent go from searching GitHub for exposed secrets to taking data from Azure Key Vault in five minutes, and the UK NCSC lists credentials committed to code repositories among the weaknesses agents exploit most. Keep application secrets out of code and replace any that leak. Turn on secret scanning and push protection, enable pre-commit automation, and invalidate and replace any secret found in code or configuration files, including .env files.
6. Watch for machine-speed behaviour, not just signatures
Static detection alone will not catch an agent. Microsoft warns that ARTEX users vary source IP addresses and user agent strings to bypass signature-based detection, and the UK NCSC notes agents rotate through proxies and VPNs, so blocking IP addresses rarely works. The most reliable signal is behaviour: bursts of machine-speed activity, varied requests, retries, garbage parameter values, and increased error rates. Keep the logs needed to detect, investigate and recover, and correlate across sources. Keep error messages minimal: an agent reads every error and refines its next attempt. Slow it down with rate limits on accounts and tokens, bot challenges on login and search endpoints, a firewall in prevention mode, and endpoint protection in blocking mode.
7. Turn the agent’s persistence against it
The traits that make agents effective also make them susceptible to deception, and both Microsoft and the UK NCSC recommend using that against them. Honeypots and decoys give the agent attractive but worthless targets. Tarpits consume its time and budget. Fake wins can make it stop on a false success. Honeytokens provide early warnings of credential theft. Deception is not a substitute for the first six defences, but it turns an attacker’s persistence into a liability.
What to do in the first hour after a suspected AI agent attack
Checklist: isolate the affected systems; revoke and rotate every credential and token it may have touched, and check for credentials and roles you did not assign; look for persistence, including new script files in web directories; check outbound connections for unfamiliar destinations and block known-bad addresses; preserve logs before they rotate away; and report it to your national cyber centre.
What small businesses should do first
Start with these five steps to defend against AI agent cyberattacks: turn on multi-factor authentication everywhere, starting with email, VPN and cloud admin accounts; patch internet-facing systems within 24 hours of a critical update; list every system exposed to the internet and take anything non-essential offline or behind a VPN; search code repositories for committed secrets, remove and rotate them, and turn on secret scanning; and test your backups and recovery plan. These controls will already be familiar; what is new is the speed at which neglecting them is punished. For a closer look at AI agents turning patches into exploits, see Google Finds AI Agents Turning Patches Into Exploits Alone. If your business runs a WordPress site, the same discipline applies: WordPress Security Hardening Checklist: Close the Doors Attackers Use. More coverage is in the Cybersecurity archive.
FAQ
What is an agentic offensive framework?
An agentic offensive framework lets an AI model plan attack steps, run off-the-shelf security tools against a target, read the results and decide what to do next. ARTEX is the best-known example, but the UK NCSC also names Cairn, PentAGI, RedAmon, Xalgorix and Darkmoon. They were designed for authorised red teaming; threat actors have repurposed them.
Do I need new AI security tools to defend against AI agents?
Not according to the three official sources behind this guide. The Swiss NCSC, the UK NCSC and Microsoft all say the defences are established controls: exposure reduction, fast patching, multi-factor authentication, least privilege, secret protection, behavioural detection and deception. Defensive AI tools are maturing, but the foundations come first.
How fast can an AI agent attack really move?
Microsoft observed an agent go from searching GitHub for exposed secrets to taking data from Azure Key Vault in five minutes, and in multiple intrusions privileged access came less than three hours after initial targeting. That speed is why fast patching matters.
Sources and Further Reading
- Swiss Federal Office for Cyber Security (BACS), National Cyber Security Centre, “Cyberattacks involving AI agents: First confirmed cases in Switzerland”, 24 November 2026. https://www.bacs.admin.ch/en/26-ki-agenten-1-en
- Microsoft Security Blog, “What defenders need to know about ARTEX, the agentic AI framework threat actors abuse”, 25 November 2026. https://www.microsoft.com/en-us/security/blog/2026/11/25/what-defenders-need-to-know-artex-agentic-ai-framework-threat-actors-abuse/
- UK National Cyber Security Centre, “Familiar weaknesses, exploited faster: defending against agentic cyber attacks”, 24 November 2026. https://www.ncsc.gov.uk/blogs/familiar-weaknesses-exploited-faster-defending-against-agentic-cyber-attacks
- SWI swissinfo.ch, “Switzerland reports first AI-enabled cyberattacks on critical infrastructure”, 26 November 2026. https://www.swissinfo.ch/eng/swiss-ai/switzerland-reports-first-ai-based-cyberattacks-on-critical-infrastructure/92440400
- The Hacker News, “Switzerland Confirms AI-Assisted Cyberattacks Breached Critical Infrastructure Operators”, 27 November 2026. https://thehackernews.com/2026/11/switzerland-confirms-ai-assisted.html



1 Comment
SAP Security Incident: GitHub Tokens Stolen, Code Altered.
November 28, 2026[…] […]