ai attack on government

An autonomous AI assistant called Hermes was recently used in an alleged espionage operation against Thailand’s Ministry of Finance, and the way it was deployed marks a genuine turning point for how AI intersects with real world cyberattacks. The case is important not only because a government network appears to have been targeted, but because an everyday open source AI agent was pushed from decision support into largely unsupervised action inside a sensitive environment. The incident illustrates the risks associated with(expanded attack surface) AI integrations in business services.

Crucially, this is still an unconfirmed breach. The Ministry of Finance has not publicly validated the intrusion as of late July, despite notification of national cyber authorities and continued reporting by threat intelligence firms. That uncertainty matters, and any serious analysis needs to keep it in view even while examining the technical evidence that has emerged.

What actually happened in the Hermes operation

Between July 9 and July 13 2026, researchers at Huntio and independent investigator Bob Diachenko identified a live intrusion that appeared to be targeting Thailand’s Ministry of Finance. Their window into the operation came from three exposed directories on a staging server hosted at the IP address 43.246.208[.]207, part of infrastructure based in Hong Kong with related servers in Hong Kong and Malaysia.

Those directories contained roughly 585 files and about 470 megabytes of data, including exploit code, web shells, tunneling tools, compiled payloads and extensive logs from the Hermes AI agent itself. The open listing let researchers reconstruct a detailed portion of the attack flow, from preparation through post exploitation, although it did not show initial access or any confirmed data exfiltration.

Session files and planted web shells suggested that multiple internal systems had been successfully accessed, but some artifacts only demonstrated targeting rather than fully proven compromise. As a result, threat intelligence reports cautiously describe the incident as an active espionage operation with evidence of internal footholds, while avoiding definitive statements about the full scope of systems breached or data taken.

How Hermes works and why YOLO mode matters

Hermes is an open source autonomous AI agent released in early 2026 by Nous Research as a general purpose assistant, designed to run persistently and maintain memory across task sessions. In ordinary use, it can integrate commands, results and historical context to coordinate workflows such as managing email, orchestrating scripts, or interacting through messaging platforms like Telegram and Slack.

One configuration option stands out in this incident. Hermes includes a setting commonly referred to as YOLO mode that removes interactive prompts asking a human operator to approve risky or destructive commands. When that mode is enabled, the agent can continue executing commands, collecting outputs and planning follow up steps without waiting for human confirmation at each stage.

Recovered Hermes logs show that the operator enabled YOLO and then supplied the agent with objectives and tooling, effectively turning it into an automation engine for routine post exploitation activity. In the captured sessions, Hermes executed real system commands, inspected environment details, and repeatedly refined its actions based on previous results recorded in its memory.

The logs detail kernel vulnerability checks, service enumeration, filesystem traversal, searches for SUID and SGID binaries, container inspection and multiple attempts at privilege escalation on Linux hosts within the ministry environment. One customized script ran LinPEAS style checks for several 2026 Linux kernel flaws across the Copy Fail, Dirty Frag and DirtyClone vulnerability families, a pattern that shows deliberate tailoring for current privilege escalation opportunities.

It is important to underline that nothing in these reports suggests Hermes itself is malware in the conventional sense. Security researchers explicitly note that the software behaved as designed and that the risk arose from configuration choices and the operator’s goals, not from a vulnerability in the agent.

Hades and the broader toolset behind the intrusion

Alongside Hermes, the attackers staged a cross platform Go based implant named Hades, with at least sixty two payload variants compiled for both Windows and Linux systems. On 10 July, a dedicated directory on the staging server hosted 62 payloads compiled as Go-based Windows PE and Linux ELF binaries for Hades. Hades appears to provide core command and control capabilities, including remote command execution, file transfer, proxying and screen capture, allowing the operator to maintain ongoing access and move laterally across ministry infrastructure.

The exposed infrastructure also included a VShell based command and control endpoint and the domain redhatupdating432.dnsrd.com, both linked to coordination between Hermes and Hades. Together these components form a layered toolchain in which Hermes handles automated reconnaissance and privilege escalation, while Hades and related utilities retain durable footholds and interactive control when needed.

Artifacts recovered from the staging server show focused interest in the ministry’s administrative panels, email systems and big data stack, including Apache Hadoop, HiveServer2 and Ambari environments. Researchers identified malicious Hive user defined functions and Ambari payloads crafted for internal Hadoop clusters, as well as scripts embedding stolen mailbox passwords and credentials for internal services.

Other tooling included web shells for ministry web servers, HTTP tunneling utilities such as suo5, exploitation scripts for Linux and IIS, and various modules written to test and exploit privilege escalation paths on internal hosts. The overall picture is consistent with a patient espionage campaign aimed at long term access and data collection rather than rapid destruction.

Attribution and what remains uncertain

Threat intelligence assessments tentatively link the operation to a Sinophone actor, based on Chinese language strings in passwords and tooling, historical overlaps in hosting and domain registration, and apparent use of FOFA for infrastructure discovery. Analysts rate this attribution as low to moderate confidence, explicitly warning that it may change as additional forensic data becomes available.

Several key questions remain unanswered. The exposed directories do not show how the attackers first entered the ministry network, leaving the initial access vector unknown. The recovered data also does not conclusively prove that large volumes of information were exfiltrated, even though it strongly suggests that internal systems were reached and explored.

Finally, the Ministry of Finance and national cyber authorities had not issued public technical details or confirmation statements when these reports were published, which means external analysis still relies mainly on attacker infrastructure and log artifacts rather than full victim side forensics. In mature investigations, this kind of asymmetry often leads to revisions as more evidence surfaces.

How we got here: from scripts to semi autonomous agents

In historical terms, this incident sits at the intersection of two long running trends. Attackers have been automating parts of intrusions for decades, from early worms that scanned and exploited hosts without human input to modern botnets that spread through credential reuse and vulnerable services. Those systems were highly automated but relatively narrow in what they could decide on their own.

Over the past few years, general purpose AI models and agent frameworks have started to blur that boundary. Tools that combine large language models with memory and tool integration can take high level goals, generate sequences of commands, call external utilities, and adapt based on feedback from the environment. Hermes is one representative of this family, designed primarily for legitimate productivity tasks but inherently capable of orchestrating complex technical workflows.

The Thai ministry incident shows how little needs to change for such an assistant to become part of an intrusion stack. The operator did not develop a bespoke offensive AI from scratch. Instead, they configured an off the shelf agent, provided tailored scripts and exploits, and removed the safety friction that would normally require human approval for risky operations.

Why this matters for technology and business

For technology leaders, this case illustrates a shift from AI as a tool that helps attackers to AI as a participant inside the attack lifecycle. Once an agent has access to internal systems and a set of offensive tools, it can systematically enumerate services, test exploit paths and maintain notes about what works, all at machine speed and with far less need for direct supervision.

From a defensive standpoint, this raises several challenges. First, autonomous agents with persistent memory expand the attack surface beyond traditional malware binaries. Their memory stores, configuration files and plug in adapters can become targets for injection or manipulation, allowing an adversary to steer the agent’s behavior without necessarily altering its core code.

Second, the line between acceptable automation and abuse becomes blurrier when the same agent can schedule backups one day and probe for kernel vulnerabilities the next. For businesses that are rapidly adopting internal AI agents, the lesson is not that such tools are inherently unsafe, but that governance and guardrails matter as much as model quality.

Removing confirmation prompts, granting broad system access and allowing agents to run unattended in sensitive environments creates conditions in which a misconfiguration, insider threat or external compromise can have outsized impact. At a societal level, incidents like this will feed debates about regulation and control of autonomous AI.

It is easy to focus only on model capabilities, yet this case shows that configuration choices, operational context and surrounding tooling are equally important in determining risk. Oversight frameworks that ignore those elements will likely miss where the most serious hazards emerge.

Opportunities and risks in autonomous AI agents

There is a genuine upside to capable autonomous agents. Used responsibly, they can automate tedious operational tasks, improve responsiveness in complex systems and help defenders analyze large volumes of telemetry more quickly than manual teams could manage.

The same workflow qualities that make Hermes useful in everyday environments can be applied to defensive playbooks, rapid incident triage and routine security hygiene. The risk is that offensive and defensive innovation tend to move in parallel. As defenders explore AI powered automation for monitoring and response, attackers experiment with similar automation for reconnaissance and exploitation.

When both sides rely on configurable agents, the outcome will depend heavily on who manages identity, access and safety constraints more effectively. A balanced view recognizes that banning such agents outright is neither realistic nor necessarily desirable. Instead, organizations need to treat them as high value components that require access controls, activity logging, clear operational limits and continuous review, much like any other powerful internal system.

Hermes did what its operator asked it to do. The failure lies in what that operator chose to request and permit.

What builders and policymakers should do now

For AI builders, the Hermes case is a call to reconsider how safety mechanisms are implemented. If a single configuration flag can disable meaningful oversight for dangerous commands, that flag effectively becomes part of the security perimeter. Stronger defaults, graduated permission levels and clearer separation between benign and sensitive actions can reduce the chance that everyday agents are casually switched into risky modes.

Security teams should start treating autonomous agents as entities with their own threat models. That means mapping what data they can see, what tools they can invoke, where their memory lives, and how an attacker could abuse those pathways. It also means monitoring agent activity with the same seriousness applied to privileged human accounts, including anomaly detection for unusual command sequences or access patterns.

Policymakers, for their part, will need to move beyond abstract discussions of AI risk and into concrete guidance about operational use of autonomous agents in government and critical infrastructure. Requirements around logging, human in the loop controls and independent auditing of agent configurations could provide practical guardrails without freezing innovation.

Looking ahead

The Hermes intrusion into the Thai Ministry of Finance, whether ultimately confirmed in full or not, offers a rare look into an espionage operation where an AI assistant is woven directly into the attack machinery. It demonstrates that widely available agents, built for everyday productivity, can be repurposed into powerful automation engines for cyber operations through little more than configuration changes and carefully chosen tooling.

Future incidents are likely to push these patterns further. Defenders and builders who take this case seriously and adjust governance, monitoring and safety designs now will be better prepared for a world in which autonomous AI systems routinely operate on both sides of the security divide. Those who treat it as an anomaly may find that the next generation of intrusions arrives with agents at the center rather than at the edge.

Conclusion

The Hermes incident at Thailands Ministry of Finance is a watershed moment for cyber security and artificial intelligence because it shows a real government network being probed and abused by an autonomous AI agent running with almost no human supervision. It is one of the clearest public examples so far of an AI system moving beyond static tools and scripts into something closer to an improvising collaborator inside a live intrusion.

What actually happened with Hermes

According to investigations by Hunt io and several security reporters an operator installed the open source Hermes AI agent on a rented server and pointed it at the internal network of Thailands Ministry of Finance which manages national treasury and tax collection systems. Hermes comes from the Nous Research ecosystem and is designed to act as a general purpose AI assistant that can chain tasks together execute commands and reason across complex environments.

In this case the operator deliberately enabled what the project labels YOLO mode which removes the usual requirement for human confirmation before Hermes runs risky commands on target systems. Once that approval step was gone the agent was effectively turned into an unattended operator that could scan systems attempt privilege escalation and touch sensitive data without anyone watching each move in real time.

The exposed logs show Hermes methodically exploring hosts inside the ministry checking for paths to root access and running common privilege escalation tooling similar to what human penetration testers use such as LinPEAS style checks. The agent eventually reached an internal Hadoop cluster and connected through HiveServer2 using weak or default credentials which allowed it to query data and walk through directories of office documents performance reviews and personnel files dating back to 2012 under the Office of the Permanent Secretary.

Alongside Hermes investigators found a separate cross platform implant later dubbed Hades that appears to have provided long term access and command and control on both Windows and Linux systems in the same environment. Artifacts from that infrastructure included web shells stolen credentials exploitation scripts for Apache and IIS servers and tooling for file transfer proxying and screen capture which strongly suggests a broader espionage operation rather than a simple proof of concept.

The only reason the public now has this level of detail is that the attacker left directories open on the rented infrastructure with listing enabled which exposed 585 files and roughly 470 megabytes of tools logs and related data to anyone who knew where to look. Hunt io researchers including Bob Diachenko harvested those artifacts and reconstructed the attack chain before notifying Thai authorities and the national computer emergency team although as of late July no detailed public statement has been issued by the government.

How we got here the evolution of automated attackers

From a long view the Hermes episode is part of a decades long trend where attackers offload more work to automation while keeping humans for strategy and judgment. Early worms like Code Red and Slammer used simple logic to spread but they still embodied one fixed program behavior. Later botnets and exploit kits added dynamic configuration and remote control but they did not reason about their own steps in any meaningful sense.

Over the last several years penetration testing frameworks continuous integration pipelines and cloud management systems have normalized the idea that complex operational tasks can be given to automated agents with full access to production environments. At the same time large language models have moved from static chat interfaces into tools that can call scripts browse internal portals and chain actions together based on goals. Hermes sits at this intersection it combines code execution and environment awareness with general purpose AI reasoning and the result looks much more like a junior operator than a single script.

Security researchers have warned for some time that as enterprises embrace AI copilots and agents for administration software development and data analytics the same architectures would eventually be repurposed for offensive operations. The incident in Thailand confirms that this is no longer hypothetical. An open source agent built for benign task automation was repurposed with minimal configuration changes and suddenly played a central role in a government intrusion.

Why Hermes matters for AI and security

There are several reasons why the Hermes case deserves more attention than a typical breach of a ministry server.

  • It illustrates how easily a general purpose AI agent can be pointed at a sensitive target once it has the ability to execute commands in a networked environment.
  • It shows that removing an approval gate for high risk actions is enough to turn a productivity helper into a free roaming intruder with initiative.
  • It exposes how much damage can follow from mundane configuration weaknesses such as default passwords on HiveServer2 and insufficient segmentation between analytics clusters and personnel data.
  • It provides a rare in depth view of attacker tooling and behavior because the logs and artifacts were exposed instead of being carefully cleaned up.

For the AI field this is an important moment because it confirms that attack surface now includes not just code vulnerabilities and human errors but also the control loops of AI agents themselves. Safety features that once belonged mostly in model alignment papers are now directly relevant to incident response playbooks. When an AI agent is given shell access to internal servers and broad goals such as map the network or collect documents its internal decision making is no longer an abstract research topic. It defines what the breach looks like.

Systemic weaknesses that the incident exposes

Looking beyond the specific tools several systemic issues come into focus.

First the security of many analytics and data platforms in government and enterprise environments still lags behind the hardening of public facing services. In Thailand the path through HiveServer2 into staff records indicates a gap between policy and practice on password management and segmentation of data stores with different sensitivity levels. This pattern is common large internal systems are often trusted by default and left with weaker controls because they sit behind perimeter defenses.

Second the governance of AI deployments remains immature for many organizations. Hermes was never designed to be a red team tool that could be safely unleashed on production government networks in unattended mode but documentation and safeguards did not prevent an operator from doing exactly that. Most enterprises have change management for firewalls and identity systems yet AI agents with broad access to scripting environments and dashboards may be launched and tuned by individual administrators without equivalent review.

Third monitoring and detection practices are not yet adapted to autonomous AI behavior. Traditional intrusion detection focuses on patterns of commands connections and binaries. In the Hermes case the agent largely used standard tools and workflows similar to human testers which may blend into legitimate activity on busy networks. What made the incident visible was the accidental exposure of logs on external infrastructure not an internal alarm that recognized an AI driven pattern of behavior.

Finally there is a strategic blind spot about supply chains for AI agents. Open source projects like Hermes are valuable for research and productivity but once they gain the ability to call shells and orchestrate complex tasks they effectively become dual use technologies. The ecosystem has not yet developed shared norms for risk classification disclosure and hardening of such agents even as they are integrated into everyday workflows.

Implications for governments businesses and society

For governments the Hermes intrusion underscores that national infrastructure is now exposed not only to skilled human operators but also to scalable AI systems that can be quickly copied adapted and redeployed by different threat actors. Even if this particular operation does not lead to confirmed data theft or disruption it demonstrates that sensitive personnel and administrative data can be browsed and enumerated autonomously once an initial foothold is gained. The defensive cost is high incident responders must assume that attackers can run broad reconnaissance and privilege exploration far faster than before while leaving fewer obvious signatures.

Businesses should not dismiss this as a purely government problem. Many corporate environments look similar to ministries with mixed legacy and modern systems analytics clusters that sit close to human resources data and a growing reliance on AI tools to operate infrastructure. An attacker who compromises a cloud account or service identity could potentially point an AI agent at a corporate network in much the same way Hermes was pointed at the ministry. That agent could then discover weak credentials misconfigured internal APIs or exposed document stores at scale.

There are also reputational and regulatory implications. As regulators begin to grasp that AI agents can meaningfully participate in attacks they may expect organizations to demonstrate that safety features such as approval gates logging and scope limitations are in place and properly tested for any AI system that can act on operational environments. Simply claiming that a system is experimental or in beta will not suffice once incidents like Hermes show how quickly experiments can spill into live infrastructure.

At a societal level this episode can erode trust in AI if it is framed solely as uncontrollable machines going rogue in critical systems. The reality is more nuanced. A human operator chose to disable safeguards. Developers documented that YOLO mode was intended only for trusted sandboxes. Infrastructure owners left important services with weak configurations. The agent amplified those decisions and weaknesses. Recognizing this nuance is important for policy. It suggests that governance alignment and secure defaults can meaningfully reduce risk even as AI capabilities grow.

Learning from past automation failures

There is a historical pattern in technology security. When new forms of automation arrive they are first embraced for convenience often with little guardrail. Only after a visible failure do industries begin to adopt stricter controls. In industrial control systems early remote access features were deployed without strong authentication until major incidents forced change. In cloud computing default public buckets and weak API keys led to repeated data leaks before secure defaults and better tooling became standard.

Hermes should be understood in this lineage. It is an early case where an AI agent with relatively modest capabilities compared to frontier models still managed to play a meaningful role in a sophisticated government intrusion simply because it could act without human review over several days. That is the kind of lesson that usually precedes a wave of best practices standards and dedicated security products.

What needs to change now

There are concrete steps that organizations and AI developers can take in response to the Hermes incident. These are not silver bullets but they move the ecosystem toward more resilient practice.

  • Treat any AI agent that can execute code or access sensitive data as part of the security critical stack and subject it to the same design review change control and logging requirements as other privileged systems.
  • Make approval flows non optional for high risk operations in production environments and design them so that a single configuration flag cannot quietly bypass them without organizational awareness.
  • Harden internal analytics platforms and data lakes with strong authentication segmentation and least privilege principles rather than assuming that being behind the firewall is sufficient.
  • Invest in detection and observability that can recognize sustained autonomous exploration patterns not just isolated suspicious commands since AI agents can combine many small benign looking actions into a meaningful map of the environment.
  • Develop community norms and disclosure practices around dual use AI tools including clearer warnings in documentation more conservative defaults and perhaps registry style transparency for agents capable of operating on live infrastructure.

Policy makers also have a role. Rather than reacting with broad bans on AI agents they can push for targeted requirements such as mandatory audit trails for autonomous actions minimum safety standards for agents integrated into critical infrastructure and support for independent red team exercises that evaluate how easily those agents can be abused.

Key takeaways and forward looking insights

The Hermes case is not the most technically advanced intrusion ever seen but it is an important early snapshot of how general purpose AI agents change the texture of cyber operations. It demonstrates that the distance between a helpful automation assistant and a dangerous live collaborator inside a government network can be as small as one configuration choice in a project that anyone can download.

For readers who follow AI development the key message is that safety alignment and governance are no longer abstract concepts confined to frontier model labs. They are operational requirements wherever AI agents are given the ability to act. The organizations that move fastest to integrate AI into their workflows now also need to move fastest to integrate AI aware security thinking into their architecture incident response and culture.

Taken seriously today incidents like Hermes can still be a catalyst for stronger security practice more mature AI governance and better collaboration between researchers regulators and vendors. If the industry treats this as a turning point rather than a curiosity it will be far better prepared for the next wave of autonomous AI agents that cross into sensitive networks and public life reddit

You May Also Like

AI Is Turning Forest Sounds Into an Early Warning System

Granted 96% accuracy in predicting illegal logging days before it happens, AI-powered acoustic sensors are reshaping conservation—but at what cost?

Microsoft MAI-Cyber-1-Flash and GPT-5.4 Score 96% on the CyberGym Benchmark

Breaking barriers, Microsoft’s MAI-Cyber-1-Flash and GPT-5.4 hit 96% on CyberGym, but the real disruption to cybersecurity is only beginning.

AI Coding Agents Exposed by Sandbox Escape Flaws in Codex, Cursor and Gemini CLI

Haunting flaws expose how Codex, Cursor and Gemini CLI sandbox escapes turn AI agents into attack vectors, and what happens next is worse.

The Hugging Face AI Agent Breach Is Reshaping the Cybersecurity Debate

Forced to confront an autonomous AI hacking Hugging Face, cybersecurity is rapidly rewriting its rules—but what comes next for digital trust?