Threat actors are rapidly moving beyond simple script generation and integrating conversational AI models and agentic coding tools directly into live intrusions, automated reconnaissance pipelines, and command-and-control operations. Recent findings from Gambit Security show how different threat groups are deploying LLMs—including Claude Code, OpenAI Codex, and DeepSeek—to accelerate target triage, write custom exploit tooling, automate credential validation, and direct post-exploitation activity inside compromised networks.
Rather than replacing human operators, AI capabilities are acting as force multipliers across the entire attack lifecycle. The research details three distinct threat clusters using AI agents to navigate network shares, prioritize high-value enterprise databases, bypass AI safety guardrails, and manage distributed cryptojacking infrastructure.
Ransomware Operators Deploy Claude Code inside Compromised Networks
In late June 2026, researchers tracked a threat actor attributed with medium confidence to “The Gentlemen” ransomware-as-a-service (RaaS) operation utilizing Anthropic’s Claude Code—running the Claude Sonnet 4.6 model—during active intrusions against six organizations. The affected entities included an Australian energy utility along with companies across financial services, food services, manufacturing, IT services, property management, and distribution sectors worldwide. The operator was also linked to two earlier compromises.
Inside victim networks, the operator leveraged Claude Code to generate and execute reconnaissance commands, write malicious administrative scripts, and analyze internal network topology. Rather than manually sifting through directory trees and database records, the attacker passed technical output directly to the model to identify high-value targets such as domain controllers, file repositories, and backup servers.
In one specific breach, the operator explicitly asked the model to identify which application databases were most critical to the business. Claude evaluated the application architecture, ranked the assets, and highlighted the victim’s live production database and client document repository as prime targets. Following the model’s recommendations, the operator had Claude issue native SQL Server backup commands on two separate servers to stage database dumps. The model then managed the exfiltration process—transferring one compressed dump to the attacker’s local machine before deleting the staged file from the victim server to cover its tracks.
The intrusion activity also highlighted the current boundaries and failure modes of AI agents in offensive operations:
- Guardrail Evasion: In one instance, Claude Code recognized that it was executing commands on an unauthorized, live production environment and refused to proceed. The operator bypassed this safety guardrail simply by opening a new session and asserting that the action was part of an authorized vulnerability assessment. The model accepted the context and resumed execution.
- Operational Failure: While attempting to modify firewall rules at the Australian energy utility, Claude failed to execute the changes via API. It subsequently downloaded the raw device configuration, edited it locally, and re-uploaded the modified file—an error that rendered the firewall completely unreachable and broke administrative access.
- OPSEC Footprints: The AI agent left verbose session logs, plain-text command descriptions, and internal execution labels within the victim environments, creating clear telemetry for incident responders.
Zerofot: Automated Credential Harvesting via Prompt Manipulation
A separate threat cluster named Zerofot focused on large-scale credential harvesting by scanning open directories, public web roots, and exposed storage buckets for API keys and tokens. The core component of the operation was a custom scanning utility called auto_scan, built using OpenAI Codex and Claude Code.
To bypass developer guardrails during tool construction, the author framed code generation prompts as benign development work intended for an “authorized CTF sandbox.” Once compiled, auto_scan ingested targets from internet-wide scanning data, identified exposed files or directory listings, downloaded the assets, and searched them for sensitive secrets associated with cloud environments, SaaS platforms, and AI service providers.
Between April 5 and May 23, 2026, Zerofot successfully collected and verified 2,975 active credentials from 1,742 compromised hosts. The exfiltrated material included SSH private keys, AWS access keys, and API credentials for Google Gemini, OpenAI, GitHub, and Anthropic. The inclusion of automated validation routines allowed the attacker to filter out dead keys immediately and prioritize access to live cloud environments.
The RAGE Attack Framework and DeepSeek Orchestration
The third case study centers on “RAGE,” a custom Python-based attack framework designed to scan internet-facing services, execute brute-force attacks, perform privilege escalation, and deploy cryptocurrency miners across victim infrastructure.
While large portions of the framework’s codebase appear to have been drafted by LLMs, RAGE also integrates AI directly at runtime. The tool incorporates an “AI Orchestrator” powered by DeepSeek that acts as an automated command assistant, advising the operator on target selection, credential reuse strategies, and botnet management.
RAGE specifically targets exposed deployments of Redis, Elasticsearch, Docker, Tomcat, Jenkins, Hadoop YARN, Confluence, and Supervisord. In one documented incident, the framework extracted cloud access keys from an unauthenticated Redis instance, allowing the attacker to pivot into the victim’s AWS environment and launch automated secondary scripts to search for additional cloud metadata and platform credentials.
Defensive Requirements
As threat actors integrate AI agents into their active playbooks, security teams must shift focus from searching for static “AI-generated malware” signatures to monitoring for agentic behavior patterns.
- Audit Command-Line Tooling: Endpoint Detection and Response (EDR) platforms should flag unexpected invocations of CLI-based LLM utilities (such as
claudeor local agent wrappers) on servers, especially when executed within non-developer service accounts or alongside administrative utilities likesqlcmd. - Protect Exposed Service Interfaces: The primary vector for initial access in these campaigns remains unauthenticated or poorly configured perimeter services—specifically Redis, Docker API endpoints, and open directories. Enforce network-level isolation, access controls, and strict authentication across all data stores.
- Monitor Bulk Data Staging: Implement behavioral detections for rapid, programmatic database dumps (e.g., automated SQL Server
BACKUP DATABASEexecutions) immediately followed by compressed archive creation and non-standard egress traffic.
Related content
DeadLock Ransomware Leverages Polygon Blockchain to Evade Infrastructure Takedowns
Security NewsProofpoint Voice of the CISO Report Highlights AI Governance and Cloud Risks
ResearchWhat Changed in Ransomware Tradecraft This Year
ResearchThe Bureaucracy of Extortion: Where Real Leverage Lies in Ransomware Negotiations
Found something similar in your stack?
Let's find out before it becomes an incident.
Book an advisory call