The AI harness is the new attack surface
New research shows that compromised AI agents are usually caused by the code wrapped around the model, which most organizations do not monitor closely.
Overview
New research indicates that the code surrounding AI models, known as the harnessA small wrapper program written to feed test inputs into a software library and watch for crashes, is the primary source of security risks rather than the models themselves. This software layer connects the model to the outside world by converting its output into actions like running commands or accessing files. Security researchers have demonstrated that vulnerabilities in this code allow attackers to steal credentials or execute malicious tasks without the model behaving incorrectly. For example, one study showed that changing a single component of the harness increased an attack success rate from 1% to 24% using the same model. Organizations are currently failing to properly inventory and test this code, leaving them exposed to threats that bypass standard security scannersUsing automated tools to probe computers, networks, or code for known security flaws and missing patches. Most enterprises are not monitoring this critical layer closely enough, which leaves their systems vulnerable to exploitation through the software that controls what the AI can see and touch.
Terms in this story
- harness
- A small wrapper program written to feed test inputs into a software library and watch for crashes. Security researchers write a test harness around a file parser or network library so a fuzzing tool can feed it millions of mutated inputs per hour.
- scanner
- Using automated tools to probe computers, networks, or code for known security flaws and missing patches. Both defenders and attackers run vulnerability scanning across internet-facing servers to find out which machines are still running outdated software versions. Security+ objective 4.3 lists the term
- exploit
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- attack surface
- All the places where an attacker could try to enter, probe, or extract data from a system. Every open network port, public website, cloud login page, and third-party plugin adds to an organization's attack surface, so defenders shut down services they do not need. Security+ objective 3.2 lists the term
- red-teaming
- An exercise where security specialists mimic a real adversary to test an organization's people, networks, and detection. Unlike a standard scan that checks one app for bugs, red teaming simulates a full campaign with phishing, lateral movement, and privilege escalation to see how the defending team responds. Security+ objective 5.5 lists the term
- token
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- shell
- The command-line interpreter program that accepts text commands and runs them on an operating system. When an attacker exploits a web server and pops a shell, they can type operating system commands directly as if they were sitting at the server's keyboard.
- AI agents
- Artificial intelligence software that can plan steps, call tools, and take actions on its own. Many stories cover agentic AI when companies connect language models to email, browsers, and databases, creating new risks if a hidden prompt tricks the agent into leaking data.
- API call
- A structured interface that lets one software program request data or actions from another program. Mobile apps, websites, and cloud services talk to backend servers through an API, and a poorly protected API can let attackers pull customer records in bulk. Security+ objective 4.7 lists the term
- prompt
- The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
- credential-stealing malware
- Malware built to quietly copy saved passwords, browser cookies, and wallet keys from an infected device. Victims often download an infostealer through a fake game crack or malicious ad, and the stolen login cookies are then sold to ransomware crews on criminal markets. Security+ objective 2.4 lists the term
- operating system
- The core software on a computer or phone that manages hardware, files, memory, and running apps. Because every application relies on the operating system, a security flaw in the operating system itself affects millions of devices until users install a system update.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the CSO Online website. Cite the article, not this page.
Read the full article on CSO Online (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Security+ 3.2 Given a scenario, apply security principles to secure enterprise infrastructure.
"The AI harness is the new attack surface..." Found in the headline - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"Ask a security researcher what makes an AI agent dangerous, and..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"The AI harness is the new attack surface..." Found in the headline
How a story is connected to the course, and every objective, week and job role