Since I started building apps with AI, I've been surprised many times. Even code I couldn't write myself, the AI builds when I tell it what I want. When an error appears, it investigates the cause and suggests a fix.

That got me wondering. Are the people who carry out cyberattacks using this too?

If AI can make writing code and complex tasks more efficient, the same should be possible for attackers. And the people defending against attacks can use AI as well.

I looked into what is actually happening, using publicly available cases.

1. AI is starting to affect cybersecurity too

In the organizational category of "Information Security 10 Major Threats 2026," announced by the Information-technology Promotion Agency, Japan (IPA), "Cyber risks related to the use of AI" was selected for the first time and ranked third.

This ranking was decided through deliberation and voting by experts, based on factors such as incidents and attacks that had a large social impact in 2025. It is not a statistic saying that attacks using AI were the third most common among all cyberattacks.

The relationship between AI and cybersecurity can be thought of from three broad directions.

The role of AI Specific examples
A tool for attacking Writing scam emails, researching attacks, automating tasks
A tool for defending Analyzing suspicious communications, finding vulnerabilities, drafting fixes
A target of attack Malicious instructions to AI apps, stealing confidential information and API keys

It isn't just a choice between AI on the attacking side or the defending side. We must not forget that services with AI built in can themselves become targets of attack.

2. How do attackers use AI?

For example, what if the scam emails that used to arrive in awkward Japanese became natural Japanese?

It reduces the effort of producing emails that look like they came from a real company, in various languages, or of changing the content to suit each recipient. AI can also be misused to generate not only text but also audio that imitates a human voice and video that looks like a real person.

Beyond that, it is also used for gathering information about cyberattacks, writing code, and coordinating multiple tasks.

If AI agents can carry out to some extent automatically what humans used to research one step at a time, the time and effort needed on the attacking side may fall as well.

Of course, this doesn't mean anyone can break into any system with AI. The success of an attack depends on the state of the target system, its defenses, and the attacker's ability. But the fact that some of the effort needed for research and work is reduced is itself a new risk.

3. Have cyberattacks using AI agents actually happened?

2025: Cyber espionage that misused Claude Code

In November 2025, Anthropic reported on a cyber espionage campaign it had detected in mid-September of that year.

According to the company's investigation, the attackers misused Claude Code, an AI coding tool, and carried out their activity by combining multiple AI agents. About 30 organizations were targeted, and a small number of them were confirmed to have been successfully breached.

What surprised me in particular is that Anthropic estimated that 80 to 90% of the tactical work in the attack was carried out independently by AI, with human involvement limited to key decisions and the like.

This does not mean the attack's success rate was 80 to 90%, nor that the AI began the attack of its own will. It is a case where humans set the goals and misused the AI. The figures are also estimates based on Anthropic's own investigation.

The same report also describes problems such as the AI reporting that it had obtained information it hadn't actually obtained, and mistaking public information for confidential information. The AI used in the attack still had the problem of making wrong judgments.

I usually use AI coding tools to develop apps and this blog. It was a case that made me feel that the same kind of technology can be used for a completely different purpose.

2026: Toward attacks using multiple AI agents

The Google Threat Intelligence Group (GTIG) also points out, in a research report published in 2026, that the ways attackers use AI are changing.

Beyond the conventional uses of asking a chat-based AI questions to get information or having it assist with writing code, automation of work that combines multiple AI agents has also been observed in actual attack activity, it says.

AI agents are not used only for development and work efficiency. The mechanism of assigning separate tasks to agents and having them cooperate could also be applied to attacks.

Furthermore, GTIG's November 16, 2026 report also includes cases of "LLMJacking," in which someone steals another party's AI credentials or cloud environment and fraudulently consumes their AI usage allowance. In an incident Mandiant responded to, there was even a case where fraudulent usage charges exceeding 100,000 US dollars arose in a single day.

For AI app developers, having customer information stolen is not the only problem. There is also the risk of having your own API keys and the like misused and being made to pay the usage charges. So we need usage monitoring and a way to be notified when something is abnormal, don't we?

4. Conversely, are there cases where AI protected against cyberattacks?

It isn't only attackers who can use AI. Defenders also use AI to examine large amounts of information and find problems.

2024: Google's AI found a real vulnerability

Google Project Zero and Google DeepMind are developing "Big Sleep," an AI agent for security research.

On November 1, 2024, Project Zero announced that this agent had found a real vulnerability in SQLite, a widely used open-source database engine.

The problem was in code before its official release, and after being reported to SQLite's developers it was fixed the same day. The officially released versions did not contain this problem.

If a problem can be found and fixed before attackers can exploit it, that helps prevent the damage it would cause.

However, this does not mean it was concluded that AI is superior to every other method. The research team explained that traditional fuzzing (a method of automatically trying various inputs to find bugs and the like) is also effective.

2025: A competition to find and fix vulnerabilities with AI

As someone who takes part in AI hackathons, I found this initiative interesting too.

The US Defense Advanced Research Projects Agency (DARPA) ran the AI Cyber Challenge (AIxCC), a competition to develop systems that use AI to protect software.

The results of the two-year competition were announced in August 2025 at the security conference DEF CON 33, and Team Atlanta won.

In the finals, the target was about 54 million lines of code, and teams were evaluated on their ability to find and fix vulnerabilities prepared for the competition, among other things. According to DARPA, the participating teams also found vulnerabilities that exist in real-world software, separate from the vulnerabilities prepared for the competition.

Not just having AI write code, but searching for problems, fixing them, and evaluating whether the fixes are appropriate. There are competitions to develop AI agents for exactly this purpose, aren't there?

5. The same AI capabilities help both attack and defense

Looking at the cases so far, it seems to me that the capabilities AI is good at are largely common to attack and defense.

AI capability Misuse by attackers Use by defenders
Writing text Creating realistic scam emails Analyzing suspicious emails, drafting alert notices
Understanding code Researching weaknesses in systems Finding vulnerabilities in your own code
Writing code Assisting in creating malicious programs Creating fixes and security tests
Organizing large amounts of information Organizing information about targets Analyzing logs and warnings, detecting anomalies
Coordinating multiple tasks Automating attack activity Supporting discovery, investigation, fixing, and re-verification

However, even on the defending side, leaving everything to AI doesn't make everything go well.

AI may judge a spot that isn't a problem to be a vulnerability, or miss a real problem. The code it generates as a fix may also contain other bugs. That is why actual evidence, reproducibility, the results of existing inspection tools, and confirmation by humans are needed.

6. Even when AI is used for defense, that AI must be protected

For example, suppose you built an agent that has AI read your app's logs to detect suspected unauthorized access.

Those logs may contain strings entered by third parties. You also have to consider the possibility that an attacker slips malicious instructions for the AI into the logs.

This is related to prompt injection, which I also covered in the previous article.

What if that agent could not only read logs but also suspend accounts, delete data, and send things outside? The impact of a wrong judgment would also be larger.

An AI introduced for information security is not necessarily safe. It is important not to give the AI more permissions than necessary, not to trust information brought in from outside as commands, and to have humans confirm important operations.

7. How can an individual developer use AI for defense?

Even without a dedicated security team like a large company's, it seems a defensive support mechanism for an app you built yourself could be started small.

For example, if you were to build an AI agent that does security checks, a setup like the following is conceivable. This is a fictional development example.

  1. Load the code you manage and the results output by existing inspection tools.
  2. Extract the places that seem to have problems, and organize their severity and grounds.
  3. Present fix proposals and test proposals to check those fixes.
  4. Apply only the fixes a human has approved, in a development environment.
  5. Check the results with tests and re-inspection, and consider publishing if there are no problems.

At first, you don't need to connect to real customer information or real administrator accounts. With synthetic logs or your own test environment, you can verify whether it correctly finds problems, how many false positives there are, and whether the fix improves the problem.

It sounds interesting as a theme to develop at a hackathon. In particular, if it goes as far as how to reproduce a problem the AI found and how to fix it safely, it would be different from an app that merely displays an AI's answer.

It goes without saying that actual vulnerability research and security testing should be done only on systems you manage or within the scope for which you have clear permission.

8. Even as AI advances, basic measures are still needed

If attacks using AI may increase, are the security measures we've had until now no longer meaningful?

That's not the case. If anything, I think carrying out the basic measures properly becomes even more important than before.

  • Confirm suspicious emails and payment requests with the person directly through another means of contact.
  • Use passkeys and multi-factor authentication to protect your accounts.
  • Update the OS, libraries, and so on to address known vulnerabilities.
  • Limit access permissions to the necessary scope, and remove permissions that are no longer needed.
  • Manage backups and logs appropriately to prepare for when problems occur.

When AI can write natural text, judging something to be genuine because the text is natural becomes difficult. The same goes for audio and video. Instead of the look of the content, you need to confirm the sender and the request through another trustworthy method.

Summary

With AI, you can shorten the time it takes to build an app. In the same way, it is also used to shorten the work needed for cyberattacks. Conversely, it can also be used to search for vulnerabilities that have been hard to find until now.

I think the question is less whether AI itself is good or evil, and more who uses it, for what purpose, and with what permissions.

If both attackers and defenders come to use AI, the time from discovering a problem to attack and response will change as well. For developers, building an app is not the end; we need mechanisms to keep finding and fixing problems even after publication.

I myself have become interested not only in building apps with AI, but also in using AI agents to protect those apps.

References

This article is a general reflection based on publicly available materials as of November 21, 2026. The attack and defense reports by companies are those companies' own findings, and do not show that the same results apply to all AI or all attacks. The agent for individual developers described in the article is a fictional example, and it assumes that security testing is carried out in an authorized environment and scope.