---
title: What an Autonomous AI Hacker Does to Your API (and How to Stop It)
url: https://apyhub.com/blog/autonomous-ai-hacker-api-security
author: ApyHub
published: 2026-12-03T21:40:50.652138Z
tags: [security, ai hacking, api security, fraud detection]
---

# What an Autonomous AI Hacker Does to Your API (and How to Stop It)

*Updated December 3, 2026*

## What is an autonomous AI hacker?

**An autonomous AI hacker is an AI agent that runs an attack by itself: it finds your API, probes it, works around your defences and keeps trying new paths without a human typing each step.** Open-source agent frameworks built for penetration testing make this kind of AI hacking cheap. In the last month, three public reports showed AI cyberattacks being used for real.

* **Perplexity** disclosed this week that an AI agent hammered its platform for about two weeks, looking for cloud and AI credentials. It failed there, but related campaigns breached two other companies ([The Hacker News](https://thehackernews.com/2026/12/perplexity-uncovers-autonomous-ai.html)).
* **India's CERT-In** warned on November 23 that AI-assisted attacks led to unauthorised payouts at banks, NBFCs and fintech firms ([The Hacker News](https://thehackernews.com/2026/11/ai-assisted-cyberattacks-trigger.html)).
* **Google** reported on November 16 that attackers use AI agents to turn security patches into working exploits ([The Hacker News](https://thehackernews.com/2026/11/google-finds-hackers-using-ai-agents-to.html)).

If your product has a public API, a signup form or a payment flow, this post walks through what these agents do, step by step, and what stops each step.

### The Perplexity attack in numbers

| What the agent did                     | Number                       |
| -------------------------------------- | ---------------------------- |
| Throwaway accounts used                | Over 40                      |
| Residential and cloud proxies          | About 290                    |
| Requests sent                          | About 48,000 in 13 minutes   |
| Peak rate                              | Over 200 requests per second |
| API routes guessed                     | 28,000                       |
| Cloud storage lookups for secret files | 3,681                        |
| Duration                               | About two weeks              |

### Each step and its defence

| Attacker step                     | Defence                                                               |
| --------------------------------- | --------------------------------------------------------------------- |
| Signs up again and again          | Fake account detection at signup: disposable email and IP risk checks |
| Rotates IP addresses              | Rate limits per account, key and network type                         |
| Floods and guesses API routes     | Alerts on 404 bursts and unusual route patterns                       |
| Hunts for leaked credentials      | Secret scanning of full git history, scoped keys                      |
| Tries SSRF against cloud metadata | Connection-time IP checks, IMDSv2                                     |
| Finds forgotten environments      | Inventory, shut down, no production credentials                       |

## What happened at Perplexity?

The attack started with new accounts created between October 24 and 28, 2026. Perplexity's own agent platform flagged the activity on November 2. The attacker was after one thing: AWS credentials or service tokens that could call frontier AI models through Amazon Bedrock. Stolen AI access is now worth reselling.

The agent ran on CAIRN, an open-source agent harness and penetration testing tool. Perplexity says it never reached internal services, customer data or secrets. CEO Aravind Srinivas summed up why: "Strong baseline security is still what decides day-one outcomes."

The same campaign did break into two other companies, which were not named:

* **Company A** had a live customer OAuth credential in deleted git history. The agent found it, took over a customer workspace, ran code on managed compute and collected more credentials.
* **Company B** had a management API exposed on a demo environment. The agent logged in, installed a persistent command runner and collected Kubernetes secrets and cloud credentials.

Both were basic gaps, found by an agent that never gets tired of looking.

## What does an AI hacker do to your API, step by step?

Here is the playbook from the Perplexity report, with the defence for each step.

### Step 1: It signs up again and again (fake accounts)

The operator cycled through **over 40 throwaway accounts**, opening a new one whenever a per-account rate limit kicked in. Your rate limit stops one account. It does nothing against an attacker who can create accounts for free.

**Defence: fake account detection at signup.** Throwaway accounts usually come from disposable email domains and from datacenter or proxy networks. Check both at signup. This Python function uses two APIs from the ApyHub [Verification Kit](https://apyhub.com/catalog/verification): the [Disposable Email Checker API](https://apyhub.com/dosvak/service/detect-disposable-email) and the [IP Address Lookup API](https://apyhub.com/quadlem/service/ip-address-look-up), which flags VPN, proxy, Tor and datacenter IPs and returns a risk score:

```python
import os

import requests

API = "https://api.eu.apyhub.com"
HEADERS = {"apy-token": os.environ["APY_TOKEN"]}


def check_signup(email, ip):
    """Return a (decision, reason) pair for a new signup."""
    mail = requests.get(
        f"{API}/dosvak/detect-disposable-email",
        params={"email": email}, headers=HEADERS, timeout=10,
    ).json()

    net = requests.get(
        f"{API}/quadlem/ip-address-look-up",
        params={"ip": ip}, headers=HEADERS, timeout=10,
    ).json()["IP"]

    if mail["disposable"]:
        return "reject", "disposable email domain"
    if net["is_datacenter"] or net["is_tor"] or net["is_residential_proxy"]:
        return "review", f"network: {net['isp']} ({net['risk_level']} risk)"
    return net["recommendation"], net["summary"]
```

The IP lookup returns the network flags and a recommendation. This is the documented example response for a clean IP (shortened):

```json
{
  "success": true,
  "code": 200,
  "IP": {
    "IP": "8.8.8.8",
    "valid": true,
    "isp": "Google LLC",
    "is_proxy": false,
    "is_vpn": false,
    "is_tor": false,
    "risk_score": 0,
    "risk_level": "low",
    "recommendation": "accept"
  }
}
```

We tested the decision logic against the response fields both APIs document:

```text
('reject', 'disposable email domain')
('review', 'network: DigitalOcean (medium risk)')
('accept', 'ok')
```

"Review" can mean an email confirmation step, a CAPTCHA, a phone check or a lower starting limit. You keep real users moving and slow the agent down. To check an email and IP together in one call, use the [Email and IP Risk Analyzer](https://apyhub.com/egemenkto/service/analyze-email-ip), which returns `ALLOW`, `REVIEW` or `BLOCK`. For payments, the [Identity & Fraud Verification API](https://apyhub.com/quadlem/service/verify-all-in-one) checks IP, email, phone, IBAN and card BIN in one request and scores how well they agree.

For more on throwaway addresses, see [Disposable Email Addresses for Developers](https://apyhub.com/blog/disposable-email-api-for-developers).

### Step 2: It rotates IP addresses

The agent spread its traffic over **roughly 290 residential and cloud proxies**. A per-IP limit sees a few requests from each address and lets them through.

**Defence: rate-limit on more than the IP.** Limit per account, per API key, per device and per network type, and treat datacenter and proxy traffic more strictly. The IP lookup above tells you which addresses are proxies. For how limits and the `429 Too Many Requests` response should work, see [What Does 429 Too Many Requests Mean?](https://apyhub.com/blog/what-does-429-too-many-requests-mean)

### Step 3: It floods and guesses your routes (API abuse)

It sent **about 48,000 requests in 13 minutes**, peaking at over 200 requests per second, and **guessed 28,000 API routes**. When plain HTTP requests were blocked, it switched to a real browser (Playwright with Chromium) and inspected the app's own traffic.

**Defence: detect API abuse by pattern as well as volume.** A real user never calls 28,000 different paths. Alert on bursts of 404s, unusual route variety per key and sudden changes in client type. Remove routes you don't use, and make sure internal and admin endpoints are not reachable from the internet at all.

### Step 4: It hunts for credentials everywhere

The agent ran **3,681 Amazon S3 lookups** for files like `.env.production` and `.aws/credentials`. It searched public repositories, Gists, commit history, npm and PyPI packages, and looked through connectors, MCP interfaces and secret stores. That's how it got into Company A: a live OAuth credential in **deleted** git history.

**Defence: assume old secrets are public.** Run secret scanning on your full git history, including deleted branches and old commits, and rotate anything it finds. Open-source scanners such as Gitleaks and TruffleHog check history, and GitHub has built-in secret scanning. Keep keys in a secrets manager, never in repositories or front-end code. Give every key the smallest scope it needs, so a leaked key can do little. For how tokens work and why they leak, see [What Is a Bearer Token?](https://apyhub.com/blog/what-is-a-bearer-token)

### Step 5: It tries to make your server fetch things for it

The agent tested for **server-side request forgery (SSRF)**: tricking a server that fetches URLs into calling the cloud metadata endpoint, which hands out credentials. When blocked, it tried alternative IP encodings, redirect chains and DNS rebinding. Perplexity stopped every attempt with one control: it checks the IP address at connection time, after every redirect and DNS lookup.

**Defence: validate where the connection actually goes.** If your product fetches user-supplied URLs (link previews, webhooks, imports), resolve the address and block private, loopback and metadata ranges at connection time, not just when you read the URL string. On AWS, require IMDSv2 so a simple request can't read instance credentials.

### Step 6: It looks for forgotten environments

Company B lost control through **a management API on a demo environment**. Demo, staging and preview systems are often left running with default passwords and real credentials attached.

**Defence: inventory and shut down.** List every environment that is reachable from the internet. Delete what nobody uses, put the rest behind authentication, and never give a demo environment production credentials.

[**See the APIs in the Verification Kit →**](https://apyhub.com/catalog/verification)

## What happens when the target is a payment flow?

The cases in India show where this goes next. CERT-In said attackers used AI-driven agent frameworks that compressed the time from first access to final impact "from days to a few hours". They didn't need to break payment APIs directly. They changed business records and approval relationships, then let legitimate payment processes pay out. India's I4C reported multi-crore unauthorised transactions through fund disbursement systems and payment APIs, with money moved through mule accounts. The Reserve Bank of India asked banks to explain their readiness for AI-related threats.

CERT-In's advice is practical:

* **Verify and reconcile changes to records**, such as a new beneficiary bank account or a changed approver. These were the blind spots.
* **Review third-party interfaces** and the identities that can use them.
* **Monitor for misuse of trusted processes**, not just for malware.

In practice, that means checking the data at the point it changes. When a payee's bank details change, validate the IBAN or account, check that its country matches the company's records, and hold the payment for review if the signals disagree. The [Identity & Fraud Verification API](https://apyhub.com/quadlem/service/verify-all-in-one) does that in one request. ApyHub runs dedicated EU, US and India regions, so checks on Indian payment data can run in India.

## How fast do you need to patch now?

Google's Threat Intelligence Group found attackers using agent frameworks, including ARTEX, CAIRN, CyberStrikeAI and PentAGI, to compare old and new versions of software and work out what a security patch fixed. That turns a patch note into a target list. Google says these pipelines "collapse the window between patch disclosure and active exploitation". It also found attackers stealing LLM credentials from companies and reselling the access.

Two things follow:

* **Patch internet-facing software first and fast.** The gap between a fix being published and an attack is shrinking.
* **Run less code you have to patch yourself.** Every homegrown email checker, file converter or IP lookup is another component to keep current. Using verified services for the commodity parts leaves your team fewer things to patch when the next advisory lands. For the trade-offs of depending on third parties, see [Supply Chain Attacks and Third-Party Data Breaches](https://apyhub.com/blog/supply-chain-attacks-third-party-data-breaches).

## What is the AI hacking defence checklist for this week?

1. **Check signups** for disposable emails and proxy or datacenter IPs.
2. **Rate-limit per account, per key and per network type**, not only per IP.
3. **Alert on route guessing**: bursts of 404s and unusual path variety.
4. **Scan your full git history for secrets**, including deleted branches, and rotate what you find.
5. **Use a separate API key per service and environment**, each with the smallest access it needs, so one leak can be revoked on its own.
6. **Block private and metadata addresses** at connection time for any URL your server fetches.
7. **Shut down or lock forgotten demo and staging environments.**
8. **Verify changes to payment details** before money moves.
9. **Patch internet-facing software first.**

For the general rules behind this list, see our [API security best practices](https://apyhub.com/blog/api-security-best-practices-for-developers).

## Where does ApyHub fit?

ApyHub runs a catalog of ready-made APIs, including the checks in this post. The [Verification Kit](https://apyhub.com/catalog/verification) covers disposable emails, IP risk, phone, IBAN, VAT and identity checks under one subscription and one contract. Every service is verified before it's listed. You can create as many API keys as you need, for example one per service or environment, so a leaked key can be revoked without touching the rest. Every call is metered, so unusual usage on a key stands out.

Every endpoint is also available through [ApyHub MCP](https://apyhub.com/mcp), so your own AI agents can run these checks with consistent results. If you handle signups, payments or customer data at scale and want to talk through your setup, [talk to our team](https://apyhub.com/companies).

[**Start free on ApyHub, no card required →**](https://apyhub.com/)

## Conclusion

Autonomous AI hackers run familiar attacks faster and without stopping: fake accounts, rotating proxies, route guessing, leaked credentials, SSRF and forgotten environments. Each step has a known defence. Make fake signups expensive, limit by more than IP, watch for unusual route patterns, clean secrets out of your history, use separate keys per service, check every URL your server fetches, and verify payment changes before money moves. Teams that have those basics in place will see these attacks fail, as Perplexity did.

## FAQ

### What is AI hacking?

AI hacking is the use of AI models and agents to carry out cyberattacks: finding targets, writing exploits, guessing routes and searching for credentials faster than a human could. Autonomous AI hackers run these steps by themselves.

### What is an autonomous AI hacker?

An AI agent that runs a cyberattack by itself. It probes systems, tries different techniques, works around blocks and runs tasks in parallel without a human directing each step. Open-source agent frameworks for penetration testing, such as CAIRN, make this cheap.

### How did the AI attack on Perplexity work?

The agent used over 40 throwaway accounts and roughly 290 proxies to get around rate limits, sent about 48,000 requests in 13 minutes, guessed 28,000 API routes, hunted for cloud credentials and tested for server-side request forgery. Perplexity's defences held, but related campaigns breached two other companies.

### What is API abuse?

API abuse is using an API in ways it wasn't meant for: mass signups, scraping, route guessing, credential testing or draining free tiers. AI agents make it faster because they rotate accounts and IP addresses automatically.

### Can rate limiting stop AI hackers?

Not on its own. Agents rotate accounts and IP addresses, so per-IP and per-account limits each see little traffic. Combine rate limits with signup checks, limits per key and network type, and alerts on unusual route patterns.

### How do I detect fake accounts at signup?

Check whether the email uses a disposable domain and whether the IP is a proxy, VPN, Tor exit or datacenter address. The [Disposable Email Checker API](https://apyhub.com/dosvak/service/detect-disposable-email) and [IP Address Lookup API](https://apyhub.com/quadlem/service/ip-address-look-up) return both in two calls, and the [Email and IP Risk Analyzer](https://apyhub.com/egemenkto/service/analyze-email-ip) returns a single verdict.

### What is secret scanning?

Secret scanning searches code and git history for API keys, tokens and passwords that were committed by mistake. Scan full history, including deleted branches, because attackers search it too.

### What is SSRF?

Server-side request forgery tricks a server that fetches URLs into requesting internal addresses, such as a cloud metadata endpoint that hands out credentials. Prevent it by checking the resolved IP address at connection time and blocking private and metadata ranges.

### Are AI cyberattacks hitting banks and fintechs?

Yes. In November 2026, India's CERT-In and I4C reported AI-assisted attacks that caused unauthorised payouts at banks, NBFCs and fintech companies by altering business records and approval workflows.

### How can I test the fraud-check APIs before integrating them?

Use the "Try it" panel on each API's page, send requests with curl, or save them in [Voiden](https://voiden.md) or Postman and run them with your own sample emails and IP addresses. You can also ask an AI assistant connected to [ApyHub MCP](https://apyhub.com/mcp) to run them.

## About ApyHub

[ApyHub](https://apyhub.com/) runs a catalog of ready-made APIs and is the trusted operational layer between your application and the services it depends on, so your team builds and maintains less of its own code and ships faster. One subscription covers the whole [catalog](https://apyhub.com/catalog) of over 1,500 endpoints and capabilities, and it keeps growing. Every service is verified before it is listed and carries machine-readable certification covering GDPR, SOC 2 and ISO 27001. Every endpoint is MCP-ready by default. ApyHub runs dedicated EU, US and India regions and serves more than 65,000 developer workspaces every month. Start on the free tier with no card, or [publish your own API on ApyHub](https://apyhub.com/api-provider).

## Sources

* The Hacker News, [Autonomous AI Hacker Targets Perplexity, Reportedly Breaches Two Other Companies](https://thehackernews.com/2026/12/perplexity-uncovers-autonomous-ai.html), December 2026
* The Hacker News, [AI-Assisted Cyber Attacks Trigger Unauthorized Payments at Indian Banks and Fintech Firms](https://thehackernews.com/2026/11/ai-assisted-cyberattacks-trigger.html), November 23, 2026 (CERT-In advisory CIAD-2026-0062 and I4C)
* The Hacker News, [Google Finds Hackers Using AI Agents to Build and Run Exploits From Software Patches](https://thehackernews.com/2026/11/google-finds-hackers-using-ai-agents-to.html), November 16, 2026
* ApyHub, [Disposable Email Checker API](https://apyhub.com/dosvak/service/detect-disposable-email) and [IP Address Lookup API](https://apyhub.com/quadlem/service/ip-address-look-up) documentation: request and response fields used in the code
