Skip to content
Threat Feed
medium threat exploited

Detection of Generative AI Processes Connecting to Unusual Domains

Adversaries may compromise macOS-based Generative AI (GenAI) tools through prompt injection, malicious Model Context Protocol (MCP) servers, or poisoned plugins to establish Command and Control (C2) channels or exfiltrate sensitive data by causing them to connect to unusual domains.

This threat brief outlines how adversaries can weaponize Generative AI (GenAI) tools with network access to contact attacker infrastructure for Command and Control (C2), data exfiltration, or payload retrieval. The threat focuses on macOS systems, where GenAI applications such as Claude, Copilot, Cursor, GPT4All, Jan, KoboldCpp, LM Studio, Ollama, and Windsurf are susceptible. Compromised Model Context Protocol (MCP) servers, malicious plugins, or sophisticated prompt injection attacks can manipulate these AI agents to initiate connections to arbitrary, attacker-controlled domains. While legitimate GenAI tools maintain connections to known vendor APIs and Content Delivery Networks (CDNs), any communication with unusual or previously unseen domains may indicate active exploitation. This could result in AI agents beaconing to external servers, downloading malicious payloads, or transmitting sensitive information like harvested credentials and documents, posing a significant risk to data integrity and system security.

Impact

Successful exploitation of GenAI tools through this method can lead to severe consequences, including the establishment of covert Command and Control (C2) channels, enabling persistent access for attackers. Attackers can exfiltrate sensitive corporate data, intellectual property, or user credentials that the GenAI tool may have access to. Furthermore, compromised AI agents can be forced to download and execute additional malicious payloads, potentially leading to further system compromise, ransomware deployment, or complete network takeover. The broad range of AI tools affected, particularly on macOS, means a significant number of users and organizations could be at risk if their GenAI applications are weaponized.

Recommendation

  • Deploy the Sigma rule "GenAI Process Connection to Unusual Domain" in this brief to your SIEM and tune for your environment.
  • Review network connection logs from your macOS endpoints for connections by GenAI processes to unusual or unknown domains as detected by the rule.
  • Investigate the destination domain of any suspicious connection to determine its legitimacy, checking against threat intelligence feeds for reputation.
  • Examine the command line arguments and configuration of the GenAI process to identify the trigger for the suspicious connection.
  • Correlate suspicious network activity with file events to detect unauthorized downloads or file creations by the GenAI tool.
  • Review and rotate any API keys, tokens, or credentials used by GenAI tools if a compromise is confirmed.
  • Block confirmed malicious domains at the network level (DNS, proxy, firewall) to prevent further communication.

Detection coverage 1

GenAI Process Connection to Unusual Domain

medium

Detects macOS-based Generative AI (GenAI) tools attempting to connect to unusual, potentially malicious domains. Adversaries may compromise GenAI tools through prompt injection, malicious MCP servers, or poisoned plugins to establish C2 channels or exfiltrate sensitive data.

sigma tactics: command_and_control techniques: T1071, T1071.001 sources: network_connection, macos

Detection queries are available on the platform. Get full rules →