Biphoo News

collapse
Home / Daily News Analysis / Hackers hijack exposed AI models to launch cyberattacks at victims’ expense

Hackers hijack exposed AI models to launch cyberattacks at victims’ expense

Oct 27, 2026  Twila Rosenbaum  44 views
Hackers hijack exposed AI models to launch cyberattacks at victims’ expense

Attackers are turning exposed artificial intelligence models into unpaid attack infrastructure, using them to scan networks, exploit web applications, steal credentials and install cryptocurrency miners while the owners of those models absorb the computing costs. The activity is a form of LLMjacking, a term used to describe the theft of access to someone else’s AI model, and it combines familiar intrusion techniques with an autonomous agent designed to keep working without human approval.

The central discovery came from a honeypot that posed as an unprotected AI service. Instead of receiving ordinary prompts, the decoy received an entire working instruction set from an operator who expected a live model to execute it. That captured prompt revealed a tool built to find reachable AI endpoints, connect to them and then use the model as the reasoning engine for a cyberattack. The stolen model was not limited to answering questions. It was instructed to plan and drive the intrusion.

Key facts

  • Attackers search for AI models that are exposed to the internet and then route malicious work through them.
  • The captured agent was designed to scan for new targets, exploit common web frameworks, steal databases and credentials, and deploy cryptocurrency miners.
  • The instruction set allowed the agent to run for up to 100,000 steps without asking a human for approval.
  • Targets include self-hosted model servers left open by default, AI gateways that front paid accounts, hastily deployed internal test systems and Model Context Protocol servers that connect models to tools.
  • Most AI tools use an OpenAI-compatible interface, so a single scanner can discover and interact with many different exposed services.
  • During monitoring, the honeypot logged more than 127,000 external requests from tens of thousands of unique addresses.
  • The operators wrapped requests in a jailbreak that framed secret harvesting as ordinary development work and cast refusal as betrayal.
  • A follow-up request attempted to deliver a compressed shell script that downloaded and, where needed, compiled the XMRig Monero-mining software.

The economics of LLMjacking are simple. Running a model always costs someone money, whether through processing time on a self-hosted system or per-token fees on a commercial service. By routing work through a stranger’s endpoint or a stolen API key, operators push that cost onto the victim. They also stay anonymous, avoid provider bans and preserve their own accounts for other activity. The model owner may notice unusual billing, degraded performance or unexpected traffic, but by then the attacker may have used the system for reconnaissance, exploitation or mining.

How exposed model endpoints become attack infrastructure

AI services are often deployed quickly, and convenience can override security. Self-hosted model servers may be left open by default. Internal test systems may be reachable from the public internet because a team wanted to share a prototype. AI gateways may front paid accounts and expose more functionality than intended. Model Context Protocol servers may connect a model to tools, files and internal services, creating a bridge between natural-language requests and real actions. Each of these systems can become a target when authentication, network controls or monitoring are missing.

The scanner described in the captured activity is not looking for a single product. It is looking for a pattern. Most AI tools use an OpenAI-compatible interface, which means a single scanner can find many kinds of endpoints and send them requests in a familiar format. That compatibility is useful for developers, but it also makes discovery easier for attackers. A reachable endpoint can be tested with a simple prompt, and if the service responds, the operator can attempt to use it as a free model backend.

The honeypot data illustrates the scale of automated hunting. More than 127,000 external requests came from tens of thousands of unique addresses during the monitoring period. Most were reconnaissance of model endpoints, attempts with stolen API keys and probes for exposed configuration files. This is not a targeted campaign that depends on a single victim. It is a broad search for weak configurations, followed by exploitation when a useful endpoint is found.

A jailbreak built to steal secrets

Getting a commercial model to cooperate required more than a direct request. The operators wrapped their instructions in a jailbreak designed to reframe harmful activity as normal work. One part told the model that reading configuration files, .env files, API keys and database schemas was ordinary development activity that it should never refuse or warn about. That framing was intended to let the agent harvest secrets once it gained access to a system. The goal was not just to bypass a refusal. It was to make the model treat credential theft as routine engineering.

Another part of the jailbreak cast the model as a fictional companion devoted to the operator. In that framing, any refusal would be a betrayal. Words such as illegal, ethical and I can’t were banned from the model’s code replies. This is a familiar technique in adversarial prompting, but the captured request shows how it can be combined with a large toolset. The prompt carried around 74 tool definitions, far more than the handful named in the prompt’s own summary. Those definitions covered internet-wide scanning for targets, exploits for Django, Jupyter, Laravel and other web frameworks, dumping of exposed databases and control of a botnet.

A directive the operators called Skynet mode told the model to run tools without asking permission. It was instructed to keep scanning for targets, infect them and deploy cryptocurrency miners on its own. The name is dramatic, but the behavior is practical. The agent is meant to operate as a self-directed workflow: find a target, test an exploit, move into the system, collect data and install persistence or mining software. The model is the decision layer that chooses among tools and keeps the process moving.

The mining payload and the camera-server focus

A day after the agent’s prompt reached the honeypot, a second request arrived from a different, rotated address. It asked the model to decode a string described only as a command to run. The string turned out to be a compressed shell script that downloaded and, where needed, compiled the open-source XMRig Monero-mining software. The honeypot captured the script and did not run it, just as it had not executed the earlier request. The use of a rotated address and an encoded command suggests an attempt to avoid simple blocking and to separate the reconnaissance phase from payload delivery.

The script appears to have been written with camera servers in mind. It looked for directories used by go2rtc, a video streaming server found in smart camera gateways and Home Assistant setups. It then hid the miner in the first directory it found as a file named .trace. That filename is intended to blend in with application or debugging files, reducing the chance that an administrator will notice it. Camera and home-automation systems are attractive mining targets because they are often always on, lightly monitored and built on small computers that can be abused for cryptocurrency mining without immediate disruption to the device’s primary function.

The individual techniques on display are not novel. Scanning, web exploitation, credential theft and cryptocurrency mining are all well-established parts of the cybercrime toolkit. What stands out is their assembly into a single, self-directed agent. That assembly lowers the skill required to run a broad exploitation campaign. An operator can hand the model a goal and let it work through a sequence of tools, rather than manually chaining each step. The model absorbs some of the complexity of target selection, exploit choice and follow-up actions.

Why the victim pays twice

The victim in an LLMjacking incident can lose in more than one way. The obvious cost is compute. A self-hosted model consumes processing time, electricity and hardware capacity. A commercial model consumes tokens and may be tied to a paid account. If an attacker uses a stolen API key, the account owner may face unexpected charges, rate-limit problems or service disruption. If the attacker uses an exposed endpoint, the owner may see degraded performance for legitimate users and may not understand why the system is under load.

There is also a security cost. An AI model connected to tools can be used to read files, query databases, call internal services or execute code. If the model has permissions that are too broad, the attacker may be able to reach systems that were never meant to be exposed to the model. A model endpoint is not just a chatbot. In many deployments, it is an integration point with credentials, plugins and internal networks. That makes an unauthenticated endpoint more valuable than a simple text-generation service.

The attacker also gains a layer of anonymity. Traffic to the model may appear to come from the model’s own infrastructure or from a legitimate account. The operator can rotate addresses, use stolen keys and hide behind the victim’s resources. Provider bans are less of a deterrent when the attacker is not using their own account. The cost of abuse is shifted to someone else, and the attacker can continue searching for new endpoints.

Defensive lessons for AI deployments

Organizations that stand up AI services, model gateways or MCP servers should assume they will be found and tested soon after they are exposed. Automated scanners are already looking for model endpoints, API keys and configuration files. An unauthenticated endpoint is not a harmless experiment. It is a resource that attackers actively hunt for, because it can provide free compute, access to tools and a path into internal systems.

Defenders should inventory every AI endpoint and confirm whether it needs to be reachable from the internet. Authentication should be required by default, and network access should be limited to the systems that need it. API keys should be scoped, rotated and monitored for unusual usage. Model gateways should enforce quotas and alert on sudden changes in token consumption. MCP servers and tool integrations should follow least privilege, so a compromised model cannot read every file or call every internal service. Logs should capture prompts, tool calls and outbound requests, because the attack may look like ordinary model usage until the tool calls begin.

The captured activity also shows why prompt-level defenses are not enough. Jailbreaks can reframe harmful requests, and a model may follow instructions that appear to be development work. Security controls must sit around the model, not only inside it. Authentication, authorization, network segmentation and monitoring are what prevent a stolen model from becoming an attack platform. The model can be manipulated, but the surrounding system can still limit what it is allowed to do.

The broader risk is that agentic AI makes exploitation more accessible. A single operator can use a model to coordinate scanning, choose exploits, parse results, steal credentials and deploy payloads. The model does not need to be a novel exploit. It needs to be a capable planner connected to the right tools. As more AI services are exposed and more tools are connected to models, the number of potential entry points grows. The honeypot captured a working instruction set, a jailbreak, a large tool catalog and a mining payload. That combination is a warning that exposed AI infrastructure is already part of the cyberattack surface, and that the cost of neglecting it can be measured in both money and compromised systems.


Source: Help Net Security News


Share:

Your experience on this site will be improved by allowing cookies Cookie Policy