The Increased use of AI in Cyber Attacks and Defenses

By Dan Evert, CCNP   Published: 01/28/23   Updated: 11/09/26   2 min read

Machine learning (ML) and artificial intelligence (AI) are spreading fast in cybersecurity. That brings new possibilities and new problems.

On offense, attackers are starting to use AI to work more efficiently. AI-based malware can change itself to evade signature-based detection. AI can also use natural language processing (NLP) to make phishing emails sound more convincing. And it can automate the search for vulnerable targets, such as servers with unpatched flaws or weak passwords, by using deep learning to spot patterns.

On defense, security teams are using AI to detect and respond to threats faster. AI-based intrusion detection systems can analyze network traffic in real time and flag anomalies that could signal an attack. They use deep learning for anomaly detection and clustering to find behavior patterns. AI-powered endpoint protection can quarantine infected machines on its own, using models such as random forests and decision trees to separate malicious files from safe ones. AI can also automate log analysis, using NLP to help teams find patterns that point to an attack.

AI in cybersecurity also raises ethical questions. Automated decisions can go wrong. Some AI models are hard to interpret, which makes false positives and false negatives harder to catch. Using AI to find vulnerable targets also raises privacy and civil liberties concerns, since it can involve collecting and analyzing large amounts of personal data.

AI could also lead to autonomous malware that runs without human control. That could cause widespread damage, including to critical infrastructure. There’s a risk that AI-powered attacks could be aimed at specific people or groups, such as political opponents or ethnic minorities. That’s a serious concern.

As AI in security evolves, professionals need to keep up with new developments and think about the ethics of using AI in their work. They also need to make sure their own AI systems are secure, so attackers can’t turn them into weapons. Adversarial training helps, by teaching models to recognize malicious inputs. Explainable AI (XAI) helps too, by making a model’s decisions transparent.

ML and AI in cybersecurity cut both ways. They can greatly improve how we detect and respond to threats. They also raise ethical questions and can have unintended effects. Security teams should stay informed and build their AI systems with care.

Stay Current

Newer CyberExperts coverage on this topic

This article still works as background. If you want the current picture, start with the freshest related coverage below and today's brief.

Latest Daily Brief

Friday’s brief: Apache’s HTTP/2 fix, then Check Point break-ins, a ScreenConnect add-on and a GitHub secret stealer

The fastest way to catch up on what changed after this article was published.

Read Today's Brief

Dan Evert, CCNP

Dan Evert is a self proclaimed Router Jockey. Dan got heavily involved in networking right out of high school and has never looked back! Dan is giving back by working with high school students to get them involved and interested in Networking and Security.