Attackers use AI-generated scripts and open-source LLM tools in Latin American intrusion campaigns
The attackers relied on commercial large language models to generate scripts and troubleshoot failures across two separate campaigns in Mexico and Brazil.
Security & privacy Unit 42 3 Sep 2026 Incident analysis Real-world evidence
Published as “Attackers Expose Ongoing AI Tool Use Targeting Organizations in Latin America”
Why it matters
Defenders can exploit the attackers' operational security lapses, such as exposed NextChat interfaces and multi-SAN certificates, to detect and disrupt AI-augmented intrusion campaigns.
Summary
Palo Alto Networks analyzed two multi-stage intrusion campaigns targeting Mexican transportation and Brazilian financial sectors, finding that the operators used commercial LLMs to generate and iteratively fix batch scripts and proxy tools. The Mexican campaign exposed a NextChat web interface running on attacker-controlled infrastructure, while the Brazilian campaign used AI-named versions of a custom SOCKS5 tunneling tool. The researchers cite concrete infrastructure artifacts such as multi-SAN TLS certificates and open directories that reveal the AI-driven workflow, and argue that these operational security lapses provide defenders with clear detection opportunities.
What they found 2
- Attackers used multiple commercial LLMs to troubleshoot issues and generate scripts
“These reports describe attackers using multiple LLMs, including Claude and GPT-4.1 to troubleshoot issues faced by the attackers across their campaigns.”
- An open-source NextChat instance was hosted on attacker infrastructure
“The IP address 178.128.87[.]160 was used in CL-CRI-1131 activity during the associated April and June 2026 compromises. This address hosted an instance of the open-source tool NextChat on TCP port 3000.”
Caveats 1
- Integrating AI into the operational infrastructure is not unique to this incident.
What’s new here 4
- Observation of commercial LLMs (Claude, GPT-4.1) being used to troubleshoot and generate attack scripts.
- Exposure of an open-source NextChat interface on attacker infrastructure, revealing prompt history and scripts.
- Iterative, AI-generated naming conventions for custom SOCKS5 proxy binaries and exploit scripts.
- Use of multi-Subject Alternative Name TLS certificates to host multiple malicious subdomains.