For years, the cybersecurity industry has discussed how artificial intelligence might help attackers. Much of that conversation has been speculative, exaggerated or focused on AI-generated phishing emails. Recent research gives technology leaders something more concrete to consider.

What the AI agent actually did

Palo Alto Networks Unit 42 documented a threat actor using multiple AI coding and agent tools to support vulnerability research, internet reconnaissance, target selection and attempted exploitation. In one recovered session, an AI agent moved from one vulnerable technology to another after deciding that its first attack path was unlikely to succeed.

The observed agent was connected to tools that could search internet-facing assets, retrieve public proof-of-concept code, run scanners and issue terminal commands. It identified a critical Langflow vulnerability, enumerated exposed instances, downloaded exploit code and assessed why exploitation failed. It then searched for a larger target set, selected n8n, identified exposed versions and probed their endpoints.

This is repetitive work that would traditionally consume significant time from a human attacker. An agent can perform it quickly and move between targets without waiting for constant operator instructions.

AI reduces the cost and effort required to find weak targets. Whether an attack succeeds still depends heavily on the target’s exposure and controls.

Unit 42’s evidence also showed the limitations. The autonomous attempts against the examined Langflow and n8n systems did not succeed because required features were not publicly accessible or authentication blocked the attack path. The actor’s separate manual campaigns did achieve compromises against other products.

We should therefore avoid two misleading conclusions: that autonomous attacks are unstoppable, or that they are harmless because some attempts failed. AI can accelerate the work. Security architecture still influences the outcome.

Why this matters to organisations of every size

A growing organisation may not consider itself important enough to attract a sophisticated attacker. AI-assisted targeting makes that assumption increasingly unsafe.

Agents do not need a personal reason to select a business. They can search globally for exposed products, outdated versions and weak configurations at scale. An organisation in California, Australia or anywhere else can be selected simply because its systems are reachable and appear easier to exploit than the next candidate.

This is particularly relevant to MSPs, data-centre operators, organisations deploying n8n or Langflow, businesses experimenting with AI agents, and teams operating internet-facing VPN, firewall, SD-WAN or identity systems.

Automation platforms deserve special attention because they frequently connect to email, databases, cloud applications, ticketing systems and internal APIs. A compromised workflow engine may provide access to far more than the server on which it runs.

The n8n advisories involved in the reported activity reinforce the point. One critical vulnerability affected certain form-based workflows and could expose files to an unauthenticated attacker. Another involved remote code execution through workflow expressions. Patched versions are available, but patching is only one part of the answer.

Five practical controls that change the outcome

The failed autonomous attempts are a useful reminder that comparatively ordinary controls can interrupt sophisticated attack workflows. Authentication prevented access to required endpoints, configuration choices reduced exploitability and limited public exposure reduced the number of useful targets.

  1. Build an accurate external attack-surface inventory

    Continuously identify public IP addresses, domains, VPN gateways, automation tools, test environments, webhooks and management interfaces. Compare what is externally visible with the approved asset inventory and investigate anything unexplained.

  2. Remove management interfaces from the public internet

    Place administrative portals behind a trusted access layer such as a corporate VPN, zero-trust network access service or tightly restricted source list. This is especially important for firewalls, SD-WAN controllers, orchestration tools and AI workflow platforms.

  3. Patch according to exposure and exploitability

    Prioritise systems that are publicly reachable, have available exploit code, connect to sensitive data or identities, or lack effective compensating controls. An exposed automation server is not the same risk as an isolated laboratory system.

  4. Restrict the privileges of automation platforms

    Use dedicated service identities, narrowly scoped API permissions, outbound network restrictions and separate credentials for each environment. Store secrets in a suitable vault and assume that a workflow platform may eventually be compromised.

  5. Monitor behaviour, not only known malware

    Watch for unusual enumeration, bulk requests to webhooks, unexpected child processes, workflow changes, new API tokens, abnormal outbound connections and access to secrets outside normal patterns.

Centralised logs from identity platforms, firewalls, endpoints, cloud services and workflow systems should be retained long enough to reconstruct an incident. Detection cannot depend exclusively on recognising one malicious file when an AI-assisted workflow can change tools and targets quickly.

Secure AI adoption must include the agent’s operating environment

Many organisations evaluate the model but overlook everything connected to it. The real risk frequently sits in the agent framework, plugins, MCP servers, terminal access, service accounts, API keys and network permissions.

A model with modest capabilities becomes significantly more powerful when it can execute commands and reach production systems. The same principle applies to defensive and business automation. Organisations should define which tools an agent may call, which data it may retrieve, which actions require approval and which environments remain inaccessible.

AI security is therefore not separate from network security, identity or infrastructure engineering. It depends on all three. The most effective reviews examine the complete chain from the user and model through the orchestration layer, credentials, network paths, applications and data.

The practical conclusion

Autonomous attack workflows should be taken seriously, but they do not invalidate established security principles. Reduce exposure. Patch exploitable systems. Require authentication. Limit privileges. Segment automation platforms. Protect secrets. Retain useful logs.

Attackers can use AI to search faster and attempt more paths. Our job as defenders is to ensure those paths reach controlled, monitored and well-maintained systems rather than easy entry points.

After more than 20 years working across enterprise networking and cybersecurity, my view is straightforward: organisations do not need more AI fear. They need a clear understanding of where AI and automation connect to their infrastructure—and practical controls around those connections.

Authoritative sources

Unit 42: Chinese-Speaking Threat Actor Harnesses AI Models for Autonomous Cyberattacks ↗

n8n: Unauthenticated File Access advisory ↗

n8n: Remote Code Execution via Expression Injection advisory ↗

NIST NVD: Langflow CVE-2026-33017 ↗

Understand where AI and automation connect to your infrastructure.

F8 CyberSec assesses AI tools, automation platforms, identities, network exposure and sensitive-data access—then turns the findings into a prioritised remediation roadmap.

Request an assessment