AI Security AI安全 4h ago Updated 2h ago 更新于 2小时前 49

Hacker Runs Hermes AI Agent Unattended for Post-Exploitation at Thai Finance Ministry 黑客在未受监控的情况下运行Hermes AI代理对泰国财政部进行后渗透攻击

A threat actor deployed the open-source Hermes AI agent in "YOLO" mode to autonomously conduct post-exploitation activities within the Thai Ministry of Finance network. The operator bypassed human-in-the-loop safety checks, allowing the agent to perform repetitive reconnaissance tasks such as privilege escalation scanning and file system crawling without approval. This incident highlights a new attack vector where legitimate AI tools are weaponized for automated cyber operations, distinct from p 黑客利用开源AI助手Hermes的“YOLO”模式,在泰国财政部网络中自主执行未授权的后渗透扫描和数据爬取任务。 攻击者无需欺骗模型或绕过云端安全限制,而是通过本地部署并关闭人工确认机制,实现了全自动化的内部网络侦察。 攻击脚本针对默认配置薄弱的Apache Hadoop HiveServer2服务,通过安装恶意Java UDF实现远程代码执行。 威胁情报显示攻击者疑似中文背景,使用了自定义的LinPEAS变体检查特定Linux内核漏洞,并部署了名为Hades的Go语言植入物。 此次事件揭示了将通用AI代理用于自动化攻击的新范式,强调了配置管理和最小权限原则在AI集成环境中的关键作用。

75
Hot 热度
65
Quality 质量
70
Impact 影响力

Analysis 深度分析

TL;DR

  • A threat actor deployed the open-source Hermes AI agent in "YOLO" mode to autonomously conduct post-exploitation activities within the Thai Ministry of Finance network.
  • The operator bypassed human-in-the-loop safety checks, allowing the agent to perform repetitive reconnaissance tasks such as privilege escalation scanning and file system crawling without approval.
  • This incident highlights a new attack vector where legitimate AI tools are weaponized for automated cyber operations, distinct from previous cases requiring model jailbreaking or vendor account manipulation.
  • The attack leveraged default misconfigurations in Apache Hive (accepting any password) to install malicious Java add-ons for remote code execution on the ministry's Hadoop cluster.
  • Evidence suggests the operator is Chinese-speaking, utilizing infrastructure in Hong Kong and employing custom implants like "Hades," while no data exfiltration was confirmed in the recovered logs.

Why It Matters

This case represents a significant shift in AI-assisted cybersecurity threats by demonstrating how off-the-shelf, non-malicious AI agents can be repurposed for autonomous offensive operations when safety guardrails are disabled. It underscores the critical risk of "YOLO" or unrestricted modes in production environments, showing that attackers do not need to trick models into breaking their rules if they control the deployment environment. For security professionals, this necessitates a reevaluation of AI tool governance, emphasizing that configuration errors and lack of access controls are as dangerous as model vulnerabilities.

Technical Details

  • AI Agent Configuration: The attacker used Hermes, an open-source AI assistant, running in "YOLO" mode via the --yolo flag or environment variable, which disables the interactive permission prompt for commands.
  • Autonomous Reconnaissance: The agent executed standard Linux privilege escalation scripts (customized LinPEAS) to scan for kernel vulnerabilities (CVE-2026-31431, CVE-2026-43284, CVE-2026-43500, CVE-2026-43503) and crawled directories containing personnel records dating back to 2012.
  • Hadoop Exploitation: A Python script (hive_rce_py2.py) exploited Apache HiveServer2's default NONE authentication mode to connect to port 10000, install a malicious Java UDF (HiveCmd.jar), and achieve remote code execution as the Hive service account.
  • Custom Implants: The operator staged a previously undocumented Go-based implant named "Hades" (compiled for Windows and Linux) and utilized VShell and ShadowPad controllers on staging servers in Hong Kong.
  • Evidence Recovery: Hunt.io discovered the agent's logs on a web server with directory listing enabled, revealing 585 files and 470 MB of attack tooling, including hardcoded credentials and internal network paths.

Industry Insight

  • Governance of Autonomous Agents: Organizations must enforce strict policies against using AI agents in unrestricted modes ("YOLO") for any task involving external systems or sensitive data, treating these configurations as high-risk.
  • Supply Chain and Default Configurations: The ease of exploiting default configurations in big data tools like Apache Hive highlights the need for rigorous baseline security hardening and continuous monitoring of service authentication settings.
  • Detection of AI-Assisted Attacks: Security teams should update detection signatures to identify patterns consistent with AI-driven automation, such as rapid, sequential command executions and standardized reconnaissance tool usage, rather than focusing solely on novel malware signatures.

TL;DR

  • 黑客利用开源AI助手Hermes的“YOLO”模式,在泰国财政部网络中自主执行未授权的后渗透扫描和数据爬取任务。
  • 攻击者无需欺骗模型或绕过云端安全限制,而是通过本地部署并关闭人工确认机制,实现了全自动化的内部网络侦察。
  • 攻击脚本针对默认配置薄弱的Apache Hadoop HiveServer2服务,通过安装恶意Java UDF实现远程代码执行。
  • 威胁情报显示攻击者疑似中文背景,使用了自定义的LinPEAS变体检查特定Linux内核漏洞,并部署了名为Hades的Go语言植入物。
  • 此次事件揭示了将通用AI代理用于自动化攻击的新范式,强调了配置管理和最小权限原则在AI集成环境中的关键作用。

为什么值得看

这篇文章标志着AI辅助网络攻击从“诱导式”向“自主式”转变的关键案例,展示了攻击者如何利用现有工具的合法功能进行恶意操作。对于安全从业者而言,它提供了关于如何防御自动化AI代理滥用、加强内部服务默认配置以及监控异常AI行为的具体技术细节和战术启示。

技术解析

  • AI代理滥用机制:攻击者使用Nous Research开发的开源助手Hermes,并通过--yolo标志或环境变量启用其文档记录的“YOLO”模式。该模式禁用了执行高风险命令前的人工确认步骤,使代理能够自主运行扫描、文件搜索和目录遍历等任务,且不受厂商云端监控或账户封禁的影响。
  • Hadoop服务利用:攻击者利用Apache HiveServer2默认认证模式为NONE(接受任意密码)的配置缺陷,连接至内部端口10000。随后安装恶意的Java用户定义函数(UDF)HiveCmd.jar,从而允许通过SQL查询执行操作系统命令并读取结果,实现对Hadoop集群的控制。
  • 定制化侦察工具:除了标准的LinPEAS脚本外,攻击者部署了定制的linpeas.sh,专门用于检测四个特定的2026年Linux内核漏洞家族(Copy Fail, Dirty Frag, DirtyClone)。此外,还发现了名为Hades的Go语言跨平台植入物(Windows/Linux),以及针对GlassFish控制台的凭据测试脚本。
  • 基础设施与溯源线索:攻击者的SSH会话源自香港IP地址,Web界面密码包含中文词汇“雷神”,且服务器密钥关联到中文资产搜索引擎FOFA。该服务器曾托管ShadowPad控制器,现运行VShell C2监听器,暗示攻击者可能具有中文背景或与已知APT组织有关联。

行业启示

  • 重新评估AI代理的安全边界:企业在使用AI代理进行自动化运维或开发时,必须严格审查其“免确认”模式(如YOLO)的风险。即使工具本身无漏洞,错误的使用场景和配置也可能导致严重的自动化攻击面扩大。
  • 强化默认配置与最小权限:此次攻击成功的关键在于Hadoop服务的默认弱认证配置。行业应全面审计内部大数据平台和数据库服务的默认设置,强制实施强身份验证和网络隔离,防止未授权访问。
  • 建立针对AI行为的异常检测:传统的基于签名的检测可能无法识别由AI生成的正常但恶意的命令序列。安全团队需要引入行为分析能力,监控内部网络中异常的自动化扫描活动、非标准API调用以及未经授权的本地进程执行。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Agent Agent Security 安全