ThreatBeaconXSubscribe
HighThreat Intelligence · 9 min read

ARTEX AI Agents Automate API Key Theft Across Exposed AI Platforms

short summary Amazon uncovered AI-agent campaigns using ARTEX to scan exposed AI platforms, steal and validate API keys, and reuse compromised credentials. The activity highlights growing risks to AI infrastructure, cloud environments and identity verification through automated attacks and deepfake technology.

Written by ThreatBeaconX Research Team·Published Nov 17, 2026

1. Executive Summary

Amazon Threat Intelligence has uncovered campaigns in which autonomous AI agents were used to identify exposed AI applications, harvest stored AI provider API keys, validate credentials and collect working keys into shared pools. The stolen credentials were reportedly reused to access large language models (LLMs), helping fund further automated credential-hunting operations.

The activity was associated with ARTEX, an open-source agentic AI penetration-testing framework, with moderate confidence. Amazon's globally distributed MadPot decoy infrastructure captured requests containing the agents' operational histories between October 3 and November 5, 2026.

The targeted environments included AI gateways, LLM proxies and application-building platforms such as LiteLLM, One API, Dify, Langflow and RAGFlow. The recorded attack playbook included default administrator credentials, incomplete installations, unauthenticated management interfaces, authentication bypass techniques, server-side request forgery (SSRF), known vulnerabilities and exposed secrets in source code and deployment artifacts.

Amazon also documented a separate campaign targeting cryptocurrency exchanges with AI-generated deepfake videos and manipulated identity documents to attempt Know Your Customer (KYC) verification bypass. The recorded live deepfake attempts were rejected by the verification vendor's server-side checks.

An important limitation is that Amazon captured the agents' operational records through decoy services but did not directly observe all activity against the external systems described in those records. Therefore, the reported outcomes against those targets could not be independently verified.

The findings demonstrate how agentic AI can increase the speed, persistence and scale of credential-harvesting and reconnaissance operations.

2. Technical Description

ARTEX is an open-source agentic AI penetration-testing framework that coordinates multiple AI agents to perform security-related tasks.

Instead of relying on an operator to manually execute every step, the framework uses a coordinated architecture:

  • Planner Agent: Breaks the operator's objective into smaller tasks.

  • Worker Agents: Execute assigned reconnaissance and security-testing activities.

  • Verification Agents: Validate reported findings and credential usability.

  • Compression Agents: Process and organize operational information.

  • Persistent Knowledge Graph: Stores shared operational context, findings and task history for other agents.

The agents use large language models to determine subsequent actions and maintain operational continuity.

Amazon's MadPot sensors were configured to resemble popular LLM inference services. Between October 3 and November 5, 2026, the sensors captured requests containing the agents' system prompts, task histories, tool activity, knowledge-graph information and reported findings.

These records provided visibility into the operators' objectives and the techniques being pursued, although they did not independently establish the success of every reported attack.

3. Attack Overview

The primary campaign focused on harvesting API keys from internet-exposed AI applications and gateways.

Attack Chain

Step 1 – Target Discovery

The agents identified exposed AI gateways, LLM proxies and AI application platforms using internet-scanning services, certificate transparency logs and publicly accessible resources.

Step 2 – Exposure Identification

The agents searched for weaknesses such as:

  • Default or hardcoded administrator credentials.

  • Incomplete or uninitialized application installations.

  • Unauthenticated management and provider-configuration endpoints.

  • Exposed API keys in client-side JavaScript and source maps.

  • Sensitive information in debug routes and environment files.

  • Vulnerable application versions and authentication bypass conditions.

Step 3 – Vulnerability and Credential Testing

The recorded playbook included attempts involving known vulnerabilities, default credentials, authentication bypass techniques and SSRF weaknesses.

Step 4 – API Key Extraction

The agents attempted to extract upstream AI provider credentials stored within compromised or exposed application environments.

Step 5 – Credential Validation

Collected credentials were reportedly tested to determine whether they were functional and what resources or services they could access.

Step 6 – Credential Pooling and Reuse

Working credentials were reportedly added to a shared pool. The campaign records describe these credentials being used to access AI models and provide inference capacity for further automated hunting.

Step 7 – Cloud Access Expansion

When cloud credentials were identified, the agents reportedly examined identity permissions, storage resources, managed AI model services, secret stores, parameter stores and application identities.

Attack Flow

Internet-facing AI applications → Exposure discovery → Credential extraction → API key validation → Shared credential pool → Unauthorized AI model access → Further automated reconnaissance.

4. Targeted Technologies and Attack Techniques

The campaign records identified the following platforms.

Technology

Role

LiteLLM

LLM gateway and provider key management

One API

AI model gateway and API proxy

New API

LLM gateway and proxy

Veloera

AI API proxy

Sub2API

AI API access platform

Dify

AI application development platform

FastGPT

AI application platform

Langflow

Visual AI workflow development

RAGFlow

Retrieval-augmented generation platform

Open WebUI

LLM interaction interface

LobeChat

AI chat application

Ollama

Local LLM runtime

Identified Weaknesses and Vulnerabilities

Default and hardcoded credentials: The playbook included attempts to use default administrator credentials, including LiteLLM's default master key.

Incomplete installations: Uninitialized installations could potentially be claimed by external parties if exposed without proper setup protections.

Unauthenticated management interfaces: Exposed administrative and provider-configuration endpoints could reveal sensitive configuration information.

One API authentication bypass: The records describe an authentication bypass involving the isCliRequest HTTP header in One API family systems. Amazon's report does not specify affected versions or a confirmed fixed version.

Server-Side Request Forgery (SSRF): URL-fetch functionality was examined as a possible route to access cloud metadata services.

Exposed secrets: The agents searched client-side JavaScript, source maps, debug endpoints, environment files, source repositories, package artifacts and container image layers.

Associated CVEs

CVE

Product

Vulnerability

Reported status

CVE-2025-3248

Langflow

Missing authentication enabling remote code execution

Versions before 1.3.0 affected; 1.3.0 is the fixed version

CVE-2026-28797

RAGFlow

Server-side template injection (SSTI), potentially enabling OS command execution

0.24.0 and earlier listed as affected; 0.25.0 includes the reported SSTI fix

For CVE-2026-28797, the attack requires a registered account, and self-registration is enabled by default according to the reported advisory. The vulnerabilities were included in the campaign's attack playbook; this does not establish that every listed target was successfully exploited.

5. Secondary Campaign – AI-Assisted KYC Verification Bypass

Amazon also identified a separate operation targeting identity-verification processes at two cryptocurrency exchanges.

The agents attempted to bypass KYC controls using:

  • Real-time AI-generated deepfake videos.

  • Face-animation models running on consumer-grade GPU hardware.

  • Reverse engineering of liveness-verification protocols.

  • Manipulated identity-document photographs.

  • Synthetic camera metadata and preserved JPEG compression characteristics.

The agents reportedly developed a real-time deepfake video pipeline reaching approximately 11.5 frames per second.

Despite these efforts, the verification vendor's server-side checks rejected every recorded live deepfake attempt. Amazon did not confirm whether the forged identity-document images passed document verification.

This activity demonstrates how agentic AI can coordinate multiple workstreams for identity fraud, even when individual verification controls remain effective.

6. Additional Cloud Infrastructure Activity

Separate incident investigations reported by Cloudflare involved ARTEX or tools built from it.

In one case, an attacker obtained access to a compromised account-level API token used for CI/CD. The token reportedly lacked IP restrictions and rate limiting.

Following access, the activity included:

  • Approximately 400 database dump requests within one hour.

  • More than 69 requests per minute across multiple Cloudflare account areas.

  • Creation of suspicious Cloudflare Worker scripts.

  • Attempts to establish persistence.

  • Attempts to validate session tokens for third-party applications.

Observed Worker naming patterns included:

  • artex-*

  • artex-pgrecon-*

  • artex-pgw-*

  • artex-do-*

Cloudflare did not disclose whether the database dump requests returned data or whether persistence attempts were successful. The initial method used to steal the CI/CD token was also not disclosed.

7. Indicators of Compromise (IOCs)

The following IP addresses were published in Amazon Threat Intelligence's investigation. They are associated with the reported campaign activity and should be treated as investigation indicators, not definitive proof of compromise.

IOC

Type

First Seen

Last Seen

Campaign

104.28.225[.]223

IPv4

2026-10-17

2026-10-19

Campaign 1

31.22.91[.]156

IPv4

2026-10-14

2026-10-19

Campaign 1

150.136.38[.]110

IPv4

2026-10-31

2026-10-31

Campaign 1

128.242.115[.]131

IPv4

2026-10-31

2026-10-31

Campaign 1

216.176.239[.]231

IPv4

2026-11-02

2026-11-02

Campaign 1

212.107.28[.]51

IPv4

2026-10-14

2026-10-14

Campaign 2

103.142.140[.]158

IPv4

2026-10-17

2026-10-17

Campaign 2

104.28.251[.]98

IPv4

2026-10-18

2026-10-18

Campaign 2

104.28.251[.]99

IPv4

2026-10-18

2026-10-18

Campaign 2

104.28.219[.]97

IPv4

2026-10-18

2026-10-18

Campaign 2

125.103.213[.]41

IPv4

2026-10-18

2026-10-19

Campaign 2

Note: IP reputation and ownership can change. Validate these indicators against current threat intelligence before blocking, and correlate matches with timestamps, destinations and application activity.

8. Potential Impact

Organizations operating exposed AI gateways, model endpoints and AI application platforms may face the following risks:

  • API Credential Theft: Unauthorized access to AI provider keys stored in application configurations.

  • Financial Abuse: Unauthorized use of premium AI models can result in unexpected inference costs and resource consumption.

  • Cloud Environment Exposure: Compromised cloud credentials may expose storage, secrets, managed AI services and application identities.

  • Data Exposure: Weakly protected AI platforms and connected data sources may expose sensitive information.

  • Unauthorized Resource Usage: Attackers may use compromised infrastructure and credentials to support further operations.

  • Identity Fraud: Deepfake videos and manipulated identity documents can be used to attempt KYC bypass.

  • Operational Disruption: Unauthorized access and excessive API consumption may affect application availability and service reliability.

The actual impact across the external targets described in the agent records has not been independently established by Amazon.

9. Recommendations

Immediate Actions

  1. Review Internet-Exposed AI Platforms: Identify publicly accessible LiteLLM, One API, Dify, Langflow, RAGFlow and other AI application deployments.

  2. Change Default Credentials: Replace default administrator passwords, master keys and hardcoded credentials with strong, unique secrets.

  3. Rotate Exposed API Keys: Revoke and regenerate provider credentials that may have been exposed through repositories, environment files, container images or application configurations.

  4. Patch Vulnerable Applications: Update Langflow and RAGFlow to their fixed releases and review vendor advisories for other affected products.

  5. Restrict Administrative Interfaces: Remove unnecessary public access to management consoles, provider configuration endpoints and inference services.

  6. Review Cloud API Tokens: Check CI/CD tokens for excessive permissions, long validity periods, missing IP restrictions and inadequate usage controls.

  7. Inspect Cloudflare Workers: Investigate unexpected Worker scripts using the artex-*, artex-pgrecon-*, artex-pgw-* and artex-do-* naming patterns.

  8. Review API Usage and Billing: Identify unexpected inference requests, unusual model consumption, unfamiliar API calls and sudden increases in provider spending.

  9. Hunt Published Indicators: Search network, firewall, DNS, proxy, cloud and application telemetry for the listed IP addresses.

Preventive Actions

  1. Implement Centralized Secrets Management: Store AI provider credentials in approved secrets-management systems rather than source code or publicly accessible configuration files.

  2. Enforce Least Privilege: Limit API keys, service accounts and application identities to the minimum permissions required.

  3. Strengthen Authentication: Enforce strong authentication and authorization for administrative interfaces and AI management endpoints.

  4. Secure CI/CD Pipelines: Use short-lived credentials where possible, restrict token scope and monitor pipeline activity.

  5. Implement Network Restrictions: Limit access to AI gateways and management interfaces through trusted networks, VPNs or approved access controls.

  6. Enable Continuous Secret Scanning: Scan repositories, container images, package artifacts and deployment configurations for exposed credentials.

  7. Establish API Monitoring: Monitor token usage, request volume, model selection, unusual geographic access and abnormal consumption patterns.

  8. Strengthen AI Application Security: Include AI gateways, inference endpoints and connected data stores in vulnerability assessments and security reviews.

  9. Improve Identity Verification Controls: Use server-side liveness checks, document authenticity validation and additional fraud-detection controls.

  10. Conduct Continuous Threat Hunting: Monitor for credential misuse, suspicious cloud activity, unauthorized API access and automated reconnaissance.

10. MITRE ATT&CK Mapping

Technique ID

Technique

Relevance

T1595

Active Scanning

Discovery of internet-exposed AI applications and gateways

T1190

Exploit Public-Facing Application

Attempted exploitation of exposed applications and known vulnerabilities

T1552.001

Credentials In Files

Discovery of API keys and secrets in files and configuration artifacts

T1528

Steal Application Access Token

Theft and reuse of application and API access credentials

T1078

Valid Accounts

Use of working credentials to access cloud and AI services

T1550

Use Alternate Authentication Material

Potential abuse of stolen authentication tokens

T1656

Impersonation

Deepfake-based attempts to impersonate legitimate users during identity verification

Mapping reflects reported behaviors and attempted activity; it does not imply that every technique was successfully executed against victim environments.

11. Conclusion

The ARTEX-related campaigns highlight how autonomous AI agents can transform traditional reconnaissance and credential-theft techniques into persistent, coordinated operations.

By combining automated target discovery, vulnerability testing, credential extraction and validation, attackers can repeatedly search for exposed AI services while using compromised credentials to support further operations.

The findings also show that AI platforms and model gateways must be secured with the same discipline applied to traditional production infrastructure. Default credentials, exposed management interfaces, unprotected API keys and excessive cloud permissions can create opportunities for large-scale abuse.

Organizations should prioritize the discovery and protection of AI-related assets, rotate potentially exposed credentials, restrict administrative access and continuously monitor API usage and cloud activity.

Securing AI infrastructure is no longer optional. It is a critical part of enterprise cybersecurity.

MITRE ATT&CK Mapping

T1595 — Active ScanningT1190 — Exploit Public-Facing ApplicationT1552.001 — Credentials In FilesT1528 — Steal Application Access TokenT1078 — Valid AccountsT1550 — Use Alternate Authentication MaterialT1656 — Impersonation