Threat Advisory: Agentic AI Intrusions Through Web Shells — Detection and Hardening

Attackers are using autonomous AI agents to exploit web-shell footholds and reach cloud environments within hours. Detection signals and hardening steps.

Security engineer responding to an intrusion alertThreat Advisory

Recent research by Palo Alto Networks Unit 42 documents more than ten campaigns between July and September 2026 in which autonomous AI agents conducted reconnaissance, lateral movement and privilege escalation after a human operator planted a web shell. Similar AI-assisted frameworks have probed organisations in Kenya, Nigeria and South Africa. This advisory summarises the activity and provides detection and hardening guidance.

What to take away
  • Initial access in every observed campaign: a web shell on a vulnerable web application.
  • Agent behaviour: median 1.4 seconds between commands, structured delimiters, reasoning comments, 40–100 unique encoded payloads per session.
  • Targets included cloud environments; one agent enumerated more than 20 AWS services across eight regions.
  • Supply-chain pivot observed: vendor credentials reused to reach a GitLab instance and sister organisations.
  • Priority actions: patch web applications, harden file uploads, enforce IMDSv2 and MFA on developer platforms, deploy behavioural detections.

Activity summary

Unit 42 reported campaigns across government, logistics, hospitality, manufacturing, agriculture and education. A human operator established access through a web shell; an AI agent then took over enumeration, lateral movement and privilege escalation, reporting results in machine-readable form for the operator to direct next steps. Exploits used included publicly available privilege-escalation exploits such as PwnKit (CVE-2021-4034) and CVE-2024-1086. Payloads were lightweight, single-use scripts rather than compiled malware.

Separately, Zscaler ThreatLabz reported the ARTEX AI-assisted framework probing targets in about 20 jurisdictions including Kenya, Nigeria and South Africa, seeking personal data and payment-gateway API keys.

Detection opportunities

  • Interactive shell sessions sustaining sub-two-second intervals between commands.
  • Scripts containing structured section delimiters (for example ===[Title]===) or natural-language reasoning comments.
  • Large numbers of unique Base64-encoded PowerShell, Python or shell executions in one session.
  • A single identity enumerating many cloud services or regions in a short period.
  • Instance-metadata service requests from web-server processes, and attempts to fall back from IMDSv2 to IMDSv1.
  • Systematic enumeration of installed security products.
  • New files with executable extensions appearing in web upload directories.

Hardening actions

  • Patch internet-facing web applications and remove unused ones.
  • Validate uploads by content, store them outside the web root and block execution in upload paths.
  • Enforce IMDSv2 on all cloud instances and scope instance roles to the minimum required.
  • Enforce multi-factor authentication and IP allow-listing on GitLab, CI/CD and cloud consoles.
  • Rotate vendor and service credentials found on servers, and prevent reuse across organisations.
  • Pre-authorise containment actions so that hosts can be isolated within minutes of a high-confidence detection.

If you suspect compromise

Isolate affected hosts at the network layer rather than powering them down, so that memory evidence survives. Preserve web-server, authentication and cloud audit logs immediately. Rotate credentials accessible from the compromised host, including cloud keys and vendor credentials. SCIAT AFRICA’s incident response team is available around the clock.

References

  1. Unit 42: Recent trends and tactics of agentic AI attacks (November 2026)
  2. Zscaler ThreatLabz: Inside a global AI-assisted hacking campaign (October 2026)
  3. Unit 42: Cairn framework used in autonomous attacks (November 2026)

Take this with you

The PDF edition carries the same content, formatted for printing and circulation inside your organisation.

Download PDF

Written With
These Sectors in Mind

Follow-Up
Questions

Ask us directly
Yes. The ARTEX campaign documented by Zscaler probed targets in Kenya, Nigeria and South Africa. The techniques involved are generic and apply to any organisation with exposed web applications.
Unit 42’s published reports include indicators for the campaigns described. SCIAT AFRICA clients receive curated indicators through Kivuli and our managed detection service.

More On
These Topics

All publications