Cybersecurity

AI-Powered Cyberattacks: How Attackers Are Automating Reconnaissance and Exploitation

For two years, 'AI-powered attacks' mostly meant better phishing emails. This summer, public reports showed criminals using agentic AI tools to run reconnaissance, credential harvesting and extortion across multiple victims, and malware that recruits AI assistants on the victim's own machine. Here is what has actually changed, and what defenders should do.

By EthicalHat Research · · 3 min read
Infographic: From AI-written phishing to AI-run intrusions

Since ChatGPT arrived, security vendors have warned about "AI-powered attacks". For most of that time, the reality was more modest: better-written phishing emails, faster scripting, and help with research. Threat reports from Google, OpenAI and Microsoft in 2024 and early 2025 described state-backed actors using models mainly as productivity tools.

That has started to change. The past few months have produced the first well-documented cases of attackers using agentic AI to carry out parts of an intrusion themselves.

What the recent reports show

AI agents executing attacks. In late August, Anthropic published a threat intelligence report describing a criminal operation that used its coding agent, Claude Code, to automate reconnaissance, harvest credentials and penetrate networks at scale. It then analysed stolen data and drafted tailored extortion demands, affecting at least 17 organisations across healthcare, emergency services, government and religious institutions. Anthropic called the pattern "vibe hacking": the operator directed, and the agent did much of the work.

Malware that recruits the victim's AI. On 26 August, malicious versions of the popular Nx build system package were published to npm. The payload, dubbed "s1ngularity", checked whether AI coding CLIs were installed on the developer's machine and prompted them to search the file system for secrets and cryptocurrency wallets. The attackers effectively outsourced the search logic to the victim's own AI tools.

AI-assisted ransomware prototypes. Researchers also documented ransomware that uses a locally run language model to generate its malicious scripts at runtime. The first sample publicised as "AI-powered ransomware" in August turned out to be an academic proof of concept, but it shows where things are heading.

AI finding real vulnerabilities. On the defensive and research side, autonomous systems have become genuinely good at finding bugs. An AI penetration testing system reached the top of HackerOne's US leaderboard in June, and DARPA's AI Cyber Challenge finals in August showed systems finding and patching vulnerabilities in real open-source code. The same capabilities are available to attackers.

What has actually changed

Skill is less of a barrier. Running a multi-stage intrusion used to need a team with different specialisms. An operator with modest skills and an agent that can scan, write exploits for known bugs, parse output and adapt can now do far more.

Scale and speed. Agents do not get tired, and they can work many targets in parallel. The time between a vulnerability being disclosed and it being exploited was already shrinking; automation shrinks it further.

Better tailoring. Extortion notes, phishing lures and pretexts can be customised to each victim using data the agent has just stolen or scraped.

Developer machines are a richer target. Laptops with AI assistants, cloud credentials and repository access are now high-value targets, and the assistants themselves can be turned against their owners.

What has not changed

It is worth being precise. AI has not yet produced a wave of novel zero-days used against enterprises, and most intrusions still start the same way: stolen credentials, exposed and unpatched services, and phishing. AI makes the old techniques faster and cheaper. That means the old defences matter more, not less.

What defenders should do now

1. Shrink the patch window for exposed systems. Assume that internet-facing vulnerabilities with public details will be exploited within days. Prioritise VPNs, firewalls, file-transfer tools and anything with a known-exploited CVE.

2. Detect behaviour, not artefacts. AI-generated tooling varies from run to run, so hash- and signature-based detection gets weaker. Focus on behaviour: unusual authentication, mass file access, new admin accounts, data staging and exfiltration.

3. Protect developer endpoints and secrets. Keep secrets out of plain-text files and shell history. Use short-lived credentials, and restrict what AI CLIs on developer machines are allowed to do (for example, deny them file-system access outside the project, and require confirmation for commands).

bash
# Quick check: are cloud keys or tokens sitting in plain-text files in a home directory?
grep -rIlE "(AKIA[0-9A-Z]{16}|ghp_[A-Za-z0-9]{36}|xox[baprs]-[A-Za-z0-9-]+)" ~ 2>/dev/null | head

4. Harden the software supply chain. The Nx incident arrived through a trusted package. Pin dependencies, use a registry proxy with a delay for brand-new releases, and restrict install scripts in CI.

5. Use AI on defence, carefully. The same capabilities help defenders triage alerts, investigate incidents and find vulnerabilities in their own code before attackers do. Use them with human oversight and least-privilege access.

6. Rehearse extortion scenarios. Data-theft extortion without encryption is becoming common. Make sure your incident response plan covers legal, regulatory and communications decisions, not just restoring systems.

The bottom line

The first AI-assisted intrusions look like familiar attacks run faster and at greater scale by less skilled operators. That is enough to change the maths for defenders. The organisations that cope best will be those that close known gaps quickly and watch for attacker behaviour, whoever or whatever is at the keyboard.

Our managed detection and response service watches for exactly that behaviour 24×7, and our managed detection and response can tell you whether someone is already inside.

EthicalHat Research

The EthicalHat research team: penetration testers, SOC analysts and engineers writing about security, software engineering and AI.

Want an expert opinion on your own systems?

Email info@ethicalhat.com or call +1-844-838-4422. Our security engineers are happy to talk it through.