Microsoft Malware Protection Center
What’s new in Microsoft Security: December 2026
- Investigate and act on security signals with Microsoft Perception
- Protect vulnerable systems and local agents with Microsoft Defender
- Turn device findings into policy with Microsoft Intune
- Govern agent access and tenant configuration with Microsoft Entra
- Stay in the Loop
Security teams need to turn findings into decisions they can defend: establish what happened across an attack, determine which vulnerabilities require immediate protection, and apply appropriate controls as AI agents interact with devices, data, and tools. Doing that work requires more than visibility. It requires enough context to choose a response and clear authority over what happens next.
Many of the capabilities covered in this edition were introduced at Microsoft Ignite, November 17–20, 2026. This month’s In the Loop focuses on their practical implications for security, endpoint, and identity teams—from investigating an incident to managing device compliance and maintaining consistent controls across tenants.
Here’s what’s new:
Investigate and act on security signals with Microsoft PerceptionTurn more of your alerts into in-depth investigations
For supported alert types, the Triage Agent in Microsoft Perception analyzes available signals, proposes a verdict, and provides supporting reasoning for analyst review. Teams can configure it to run automatically for selected alerts or start it manually. Supported examples include user-reported phishing, password spray, suspicious PowerShell commands, and suspicious OAuth applications. Based on Microsoft’s analysis of approximately 8 million alerts across specified Microsoft Defender workloads, approximately 80% of the analyzed alert volume was within Triage Agent coverage.1 Coverage varies by alert type and customer environment. Teams can configure automatic runs or start one from Defender, then review the reasoning and ask follow-up questions. The supported alert list is being updated in Microsoft Learn.
Figure 1: Triage Agent workflow analyzing a successful MFA login alert in Microsoft Defender.But knowing which alerts matter is only the beginning. Analysts can launch the Attack Investigation Agent themselves or configure it to start automatically. Its investigation can span multiple alerts and incidents—not only those handled by triage.
The agent analyzes available evidence to help reconstruct potential entry points, attack progression, and affected entities. Its report can bring together a timeline, observed scope and impact, investigation status, classification, and recommended response actions so analysts can decide what to do next.
Figure 2: Attack Investigation Agent report for a resolved, high-severity incident.The investigation can analyze supported Microsoft and third-party data sources, including supported data from Okta and AWS, to help analysts investigate activity that crosses environments.
Learn more about agentic investigationTest a new detection against the signals already in your environment
New threat research raises a practical question for detection engineers: would existing rules catch the activity? The Detect emerging threats playbook starts with the Threat Intelligence Agent, which extracts indicators, attacker techniques, and Kusto Query Language (KQL) hunting queries. It also assesses how the threat relates to the organization’s industry and technology stack.
Figure 3: Threat Intelligence Agent extracting indicators, techniques, and KQL queries from threat research.That intelligence then feeds the Detection Authoring Agent, which reviews existing rules for similar coverage. Where it finds a gap, the agent proposes a KQL-based detection and a Detection Coverage Report explaining the query and recommended analyst actions. The playbook can test the proposal against historical data to estimate alert volume and suggest tuning. Detection engineers can review the results, then open the recommendation in the custom detection wizard with key fields prefilled before deciding whether to save and activate it.
Figure 4: Detection Coverage Report with a proposed KQL detection and recommended analyst actions.Focus exposure work on the weaknesses that matter
Finding and prioritizing an exposure is only the first step; teams also need to decide how to reduce the risk. Now in preview, the Microsoft Perception Reduce exposure risk playbook uses the Risk Reduction Agent to consider exploitability, reachability, and asset criticality alongside the organization’s environment, then proposes an actionable plan. If patching is the right path, the Vulnerability Remediation Agent in Microsoft Intune can use that context and priority to build a specific, actionable plan grounded in the organization’s device state for IT to review and approve. If a patch cannot be deployed immediately, the playbook can instead propose a tailored, temporary shielding plan for approval. This helps security and IT move from a prioritized finding to a coordinated response while retaining control over changes to affected systems. Learn how agents and playbooks in Microsoft Perception can help teams move from identifying exposure to planning, approving, and validating risk-reduction actions: read the announcement.
Give developers the evidence to find and fix exploitable code
Codename MDASH, available in preview for eligible organizations, uses agent-assisted scanning to analyze supported code and identify potential security findings. It can correlate related findings and, in supported scenarios, attempt to reproduce a weakness with a triggering input so developers have additional evidence to evaluate and prioritize remediation. The Protect web app playbook can use MDASH findings with the Web App Pen Test Agent, in preview, to test weaknesses against a running application. The Run web pen test playbook supports broader, authorized testing without starting from a code finding.
Explore this interactive demo to see Microsoft Defender in action.
Protect vulnerable systems and local agents with Microsoft DefenderThe foundation for agentic security
The integrated SOC in Microsoft Defender brings security information and event management (SIEM) and threat protection together to provide the foundation for the agentic security operations center (SOC). It gives people and agents shared context and the ability to see, understand, and act across the environment, so the security stack works as one system. Its core capabilities including case management, playbooks, workbooks, user and entity behavior analytics (UEBA), workspace creation, and third-party data ingestion are generally available.
An expanded set of SIEM capabilities, including 90 days of built-in Defender data retention are in preview for eligible Defender customers. Existing Microsoft Sentinel customers can also opt in to ISOC.
Learn more about ISOC Figure 5: Integrated SOC experience in Microsoft Defender.Shield vulnerabilities adversaries could exploit during an attack
Attackers may exploit some vulnerabilities before organizations can fully deploy a patch. Vulnerability shielding, in preview, applies targeted, temporary protections to supported vulnerable systems while teams work toward permanent remediation. During a supported active-attack scenario, Microsoft Defender attack disruption can apply shielding actions based on available organizational, threat, and exploit signals. Vulnerability shielding is not a replacement for patching, but an additional layer of temporary protection while teams work toward patching.
Inspect local AI agent activity before malicious instructions take effect
Local AI agents can read files, call tools, and act with a person’s access. If an agent encounters malicious instructions hidden in content it reads, those instructions can influence its next action. Microsoft Defender inspects local AI agent activity for such threats. Administrators can select Audit or Block mode to investigate detected activity or attempt to block supported malicious instructions and risky actions before the affected action is completed.
Local AI agent runtime protection on Windows is generally available for supported agents. Customers should consult current product documentation for the supported agent list, technical requirements, regional availability, and applicable licensing.
Read more about vulnerability shielding and local AI agent protection.
Turn device findings into policy with Microsoft IntuneMake an unapproved local agent a device-compliance decision
Discovering an AI agent on a managed device should lead to a clear policy decision. Now in public preview, Microsoft Intune can use its app inventory and Microsoft Agent 365 to discover local agents, apply software compliance policy to mark devices running specific unapproved agents noncompliant such that Microsoft Entra Conditional Access policies can restrict those devices from company data. For an endpoint administrator, the sequence is concrete: identify the agent, determine whether it is approved, apply policy that affects compliance, and guide employees back to a compliant state. Read our guide to governing local AI agents on the endpoint.
For approved agents detected by Defender, Intune policies can also define boundaries on files and network access through Microsoft Execution Containers (MXC). Learn more about MXC and building Windows for AI work.
Assess Windows devices against Center for Internet Security (CIS) standards
Intune’s CIS audit support for Windows devices is intended to give administrators an assessment of device compliance against security standards without a separate auditing tool.2 The capability requires Advanced Analytics, which is included in Microsoft 365 E3, E5, and E7. Now available in preview for commercial customers in addition to Microsoft 365 Government Community Cloud High (GCC High) and Department of Defense (DoD), endpoint teams preparing their audit work can use those assessments to see which managed Windows devices need attention rather than collecting the same information in a separate process. Learn more about CIS and Security Technical Implementation Guides (STIGs) published by the Defense Information Systems Agency (DISA) audit baselines.
Explore your device estate and prioritize remediation work
Endpoint administrators often start with a question about a device estate rather than a predefined report. Perception allows them to have a conversational chat using natural language to examine Intune data and security recommendations, analyze the results, and create reusable reports. The Vulnerability Remediation Agent addresses a different step: identifying Common Vulnerabilities and Exposures (CVEs) based on signals from Defender across managed devices, prioritizing the devices that need action, and helping coordinate remediation. These are private preview Perception workstreams, not generally available Intune features. Read about how Perception helps IT drive outcomes and scale.
Learn more about Microsoft Intune updates Govern agent access and tenant configuration with Microsoft EntraGive a discovered agent an identity distinct from its user
An administrator needs to distinguish an agent’s activity from the activity of the person using it. In preview, Microsoft Entra Agent ID can be assigned to discovered local agents, starting with GitHub Copilot CLI and Claude Code. That distinction gives identity teams a more precise account of which agent is requesting access, rather than attributing every action to the human account alone.
Control which tools an agent can reach
An agent’s connection to a tool is another access decision. Microsoft Entra Global Secure Access’ MCP firewall, in preview, controls access to Model Context Protocol (MCP) servers, tools, resources, prompts, protocols, and transports. It gives administrators a way to specify what an agent may reach instead of treating every accessible tool as implicitly permitted. This tool-access control is distinct from assigning an agent an identity.
Keep identity and security settings consistent across tenants
When an organization manages multiple tenants, inconsistent configuration can be hard to find and correct. Entra resource policy and Cross-tenant configuration management in Microsoft Entra Tenant Governance are in preview. They provide a central experience to deploy, monitor, and manage supported identity and security resource configurations across participating tenants.
Prepare to recover after an accidental identity change
Organizations with demanding recoverability requirements need options when an accidental change or security incident disrupts identity operations. Microsoft Entra Backup and Recovery Premium is in preview and is designed to provide supported identity backup and recovery capabilities, including a stated 30-day retention period and integration with Microsoft 365 Backup. Organizations should evaluate the preview capabilities against their specific recovery and regulatory requirements.
Explore Microsoft Entra updates Stay in the LoopSecurity teams need a clear account of what is changing across the portfolio and where those changes can strengthen their operations. In the Loop brings together the latest Microsoft Security updates and their implications for your security strategy. Explore earlier editions and check back for the next drop
Get early access to the latest news and updates, directly from Microsoft’s experts at Microsoft’s RSAC Pre-Day, April 4, 2027, in San Francisco.
To learn more about Microsoft Security solutions, visit our website. Bookmark the Security blog to keep up with our expert coverage on security matters. Also, follow us on LinkedIn (Microsoft Security) and X (@MSFTSecurity) for the latest news and updates on cybersecurity.
1Based on Microsoft’s analysis of approximately 8 million alerts generated across Microsoft Defender workloads (identity, endpoint, email and collaboration, cloud apps, and cloud security), covering the highest-prevalence SOC-actionable alerts of low-to-high severity. Approximately 80% of alert volume was determined to be within Triage Agent coverage. This percentage represents aggregate coverage across the analyzed population and is not a guaranteed triage rate for an individual customer.
2Assessments do not establish certification or guarantee compliance.
The post What’s new in Microsoft Security: December 2026 appeared first on Microsoft Security Blog.
Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor
- Activity Overview
- Attack chain overview
- Technical analysis
- Mitigation and protection guidance
- Learn more
As of November 9, 2026, Microsoft Threat Intelligence investigated a software supply chain compromise affecting Q-Dir and DesktopOK, applications developed by SoftwareOK. Microsoft identified that threat actors tampered with installers and updaters for these two third-party utilities on the vendor’s official SoftwareOK download and update channel, so users who followed normal, trusted update practices were exposed.
The altered files launch the legitimate application as cover while silently installing DeviceSync, a Python-based remote access trojan (RAT). Microsoft Defender investigations identified persistence and recurring command-and-control (C2) communication, with attackers using the Python RAT for system discovery and searches for AI and machine-learning software. On some devices, attackers also deployed a separate native backdoor that maintained its own C2 connections and supported plugin execution, extending the intrusion beyond the Python agent.
Organizations should remove affected packages from deployment paths, isolate devices on which the backdoor ran, remove the persistence mechanisms, and investigate the later native payload separately. Closing or replacing the utility does not remove the threat, due to persistence techniques allowing the backdoor to relaunch during Windows sign-in. Effective recovery requires removing the RAT and its startup entry, checking for the second backdoor, and replacing tampered packages in any software distribution system that could reinstall them.
Activity Overview How the utilities reach Windows devicesSoftwareOK distributes Windows utilities, including Q-Dir, a file manager, and DesktopOK, which saves and restores desktop icon layouts. Users can run the utilities from downloaded installers or portable packages. Organizations also distribute them through package managers and software-deployment systems; existing Q-Dir installations have their own update path.
The attack added another execution path to the utility package. The outer installer launched a separate runtime and backdoor while the expected application remained available to the user. The application and installer are distinct files: a publisher signature on an embedded utility does not authenticate the surrounding installer or the components it downloads.
Initial access through tampered software packagesMicrosoft observed execution after a package-manager updates to Q-Dir 12.83.0. An older Q-Dir installation also launched an updater that retrieved the tampered build. Portable copies ran from synchronized folders, repositories, and file shares, extending distribution beyond the original download location.
The same tampered Q-Dir binary appeared under several filenames, including Q-Dir_Installer_x64.exe, Q-Dir.exe, and Q-Dir_Autoupdate.exe. Match copies across deployment locations by file hash, and check the signature of the file that actually runs instead of trusting its name or displayed publisher.
In the managed-deployment path, the package ran silently without an additional user prompt. These observations establish installer execution as the endpoint entry point; they do not establish separate compromises of the package manager, deployment service, or storage provider. The observed distribution is consistent with a compromised software-supply path; the specific upstream modification mechanism remains unconfirmed.
AttributionMicrosoft has not attributed this activity to a named threat actor. This assessment is based on the malware, infrastructure, and operator behavior observed in this campaign.
Attack chain overview Figure 1. The installer opens the genuine utility and deploys a Python RAT. Startup entries restart the agent at sign-in. On some devices, operators deploy a separate backdoor that connects to its own command server and runs native plugins. Technical analysis Stage 1: The installer sets up a separate backdoorThe installer copied itself to the public user profile and could launch the genuine utility. A dedicated setup component retrieved 7zr.exe, a legitimate reduced command-line extractor from the 7-Zip project, and a .7z archive containing a 64-bit Python 3.9 runtime and the backdoor scripts. The download logic used an IP-based location and a domain-based fallback.
Setup extracted the package under C:\ProgramData\Microsoft\DeviceSync\b2. The b2 package started py_client_b2_dll.py with python.exe; the later dsv2 package used pythonw.exe to start py_client_dsv2.py without a console window. Both packages carried the same primary agent code. Including the interpreter made installation independent of the device’s existing Python environment.
The recovered installer logic also handled incomplete downloads and upgrades. It supported resumable archive transfers, stopped older Python instances associated with the installation directory, and checked a client startup log after launch. These routines supported replacing an existing agent as well as installing a new one.
Persistence was established outside the utility. Campaign activity included a current-user Run value, DeviceSyncUpdate_b2, and the scheduled task \UPnp\MicrosoftEdge_dcntel. They relaunched the packaged interpreter at sign-in, so closing or removing Q-Dir or DesktopOK did not remove the Python RAT.
Stage 2: The Python RAT gives operators a shellThe Python RAT launched from the extracted DeviceSync package identifies itself as VmBaseTool 5.17.6. Microsoft observed operators use the agent for system discovery and to launch a separate native backdoor. Analysis of the recovered client also identified support for file operations, screenshots, Python extensions, and network relays. The presence of those functions in the code does not establish that operators used them.
Registering the device and receiving commandsThe client first sends its version, authentication data, and a device record containing operating-system information, account and computer names, the local IP address, and the running interpreter. A stored installation identifier lets the server recognize the client after a restart. The server returns a token, which the client uses to authenticate a second connection for commands and replies.
The client connected to a WebSocket endpoint on Transmission Control Protocol (TCP) port 9876 using ws://. The recovered code applied Advanced Encryption Standard in Galois/Counter Mode (AES-GCM) to application messages, but the transport itself was not protected by Transport Layer Security (TLS). Microsoft also observed TCP connections to 8[.]210[.]69[.]51:9092, including events with the /ws path. The receive loop decrypts incoming messages and routes command requests separately from interactive-terminal and tunnel traffic. Microsoft also observed TCP connections on port 9092.
Figure 2. Through its authenticated command session, the Python client decrypts incoming requests, selects a handler, and returns results. Relay requests also open a connection from the affected device to an operator-selected destination.Each command contains an operation name, arguments, and a request identifier. The dispatcher maps names such as terminal.exec, plugin.exec, and screen.shot to their handlers. Replies carry the same identifier, allowing the server to associate results with the request.
Executing shell commands and additional PythonThe terminal.exec handler passes a server-supplied command to cmd.exe, captures standard output and error output, and returns the result through the command channel. Windows startup flags suppress the child process’s console window. A separate task interface supports longer-running commands: it assigns a task ID, buffers output, records the exit code, and lets the operator retrieve status and output later.
Figure 3. Selected Python excerpts show the request fields, handler dispatch, and shell execution. The shell handler captures command output and uses the client’s hidden-window startup settings.The plugin.exec handler accepts Python source and parameters from the server. In the recovered script-based package, it starts a child Python interpreter, supplies the requested source through standard input, and captures the child’s output. A related asynchronous handler tracks longer-running Python tasks. This lets operators run additional code without replacing the installed client.
Figure 4. The Python extension handler accepts source and parameters, builds the child-interpreter request, and captures its output. The runner shown is the script-based execution path. These excerpts are separate from the native plugin mechanism used in stage 3. Accessing files, the desktop, and network servicesFile handlers browse directories, read selected files, write supplied content, and delete files or folders. Chunked transfers accept a path, offset, and length, allowing the operator to retrieve or update a file in portions. Another handler downloads content from a URL supplied with the command and writes it to a selected local path.
For screenshots, the client copies desktop pixels through Windows graphics APIs, encodes the image as JPEG, and returns it in a command reply. File contents and images are base64-encoded for transport inside the encrypted messages; base64 itself is not encryption.
Figure 5. The file handler reads a requested byte range, while the screenshot handler returns a JPEG in its response. Both package the collected bytes as base64 within the client’s command-response channel.The relay handler connects to a host and TCP or User Datagram Protocol (UDP) port specified by the operator. It forwards data between that connection and the command channel, using a session identifier to distinguish relay traffic. The destination connection originates from the affected device; the recovered capability does not, by itself, establish lateral movement.
The client also supports file and directory transfers through the MinIO object-storage library. Requests supply the storage endpoint, bucket, credentials, and local path. A separate security-product discovery handler matches running process names against an embedded list; it inventories products rather than disabling them. Microsoft observed both DeviceSync agent variants listening on 127.0.0.1:3660. This was a local health-check listener, not an external command server. When investigating a listener event, verify that the initiating Python process ran from the staged DeviceSync directory.
Observed reconnaissance and the handoff to another backdoorAfter DeviceSync agent registration, Microsoft observed commands that queried the Windows version, user and group context, desktop location, and network configuration. Endpoint telemetry showed the bundled DeviceSync Python runtime launch cmd.exe with commands including ver, whoami /groups, and ipconfig /all. A process-list check searched for ToDesk after the Python shell was already available; this was discovery of a remote-desktop application, not evidence that ToDesk provided initial access.
A subsequent PowerShell task searched Python’s site-packages directories for AI and machine-learning tools. Search terms included ollama and vllm for model runtimes, langchain and llama_index for application frameworks, and mlflow for machine-learning workflows. The command inventoried installed software; it does not establish collection of models or training data.
Stage 3: A separate backdoor runs native pluginsAfter the Python RAT was active, Microsoft observed PowerShell launch C:\Temp\winhost.exe. The executable connected to 8[.]210[.]203[.]136:443 from multiple devices over several days.
A separate native payload, C:\Users\Public\backgroundTask.exe, connected to the campaign C2 at 47[.]239[.]64[.]37 on TCP ports 7006 and 7007 and to 8[.]210[.]20[.]147:443. Both native payloads made network connections independently of the DeviceSync Python agent. Microsoft observed activity from the native payloads over multiple days.
PowerShell tasking checked the new process ID and whether a native payload was still running. Microsoft also observed C:\Users\Public\backgroundTaskHost.exe being created on disk.
The recovered winhost.exe and backgroundTask.exe samples resolve Windows APIs at runtime, copy an embedded buffer into allocated memory, and mark that memory executable. Each launcher then runs the embedded payload in a thread within its own process.
Separating command and control from plugin executionThe main backdoor process holds the command-server connection. To run a native plugin, it starts a short-lived child whose name begins with KKKD.PluginHost. The parent and child exchange modules, commands, and results over a named pipe, a local communication channel between processes. The child loads the supplied module into its own memory and returns the result to the parent.
Figure 6. The native backdoor maintains the external command connection and delegates plugin execution to a child process. Modules, commands, and results pass through a local named pipe, rather than the Python extension interface.The worker implements a loader for Windows executable images. It maps the image into memory, resolves imports, initializes the module, and locates plugin interface functions such as Plugin_Execute. When a command arrives, the worker invokes that function with the input buffer and copies the returned output into its response.
Figure 7. Reconstructed native pseudocode shows a worker locating a loaded plugin’s execution entry, passing command input, and copying the returned output. plugin-1001: public-IP discoveryMicrosoft observed plugin-1001 launch cmd.exe, which in turn ran curl.exe and nslookup.exe to determine the device’s public IPv4 address. The shell used the marker __KKKD_PUBIP__.
plugin-1009: worker and named-pipe activityBoth winhost.exe and backgroundTask.exe repeatedly launched workers with the group argument master#plugin-1009. Each observed launch specified a dynamically named pipe, and pipe-open events for some instances confirmed that the worker opened the pipe as a client.
Mitigation and protection guidancePrioritize stopping redistribution, containing active access, and removing both payload stages. Apply the following actions to affected packages and devices.
Prevent redistribution and unapproved execution- Withdraw affected installers and portable packages from deployment shares, internal mirrors, package-manager caches, synchronized folders, and update workflows. Validate replacement packages against a separately trusted release before resuming distribution. Check the outer file that will run, not only the utility extracted from it.
- Use App Control for Business to restrict unapproved installers and interpreters, including portable runtimes in writable locations. Test the policy against legitimate deployment and development workflows. Allowing a Python interpreter does not, by itself, restrict the scripts it runs; App Control does not directly enforce script policy inside unenlightened third-party Python hosts.
- Keep Microsoft Defender Antivirus security intelligence current and enable cloud-delivered protection and tamper protection. Where a non-Microsoft antivirus product is primary, evaluate endpoint detection and response (EDR) in block mode for eligible devices with Defender Antivirus available and cloud protection enabled.
- Use the hunting queries below to identify the packaged interpreter, its startup entries, connections to campaign infrastructure, and native plugin workers. Investigate related process trees and alerts even when the installer itself was prevented or quarantined.
- Isolate devices with confirmed backdoor execution using Microsoft Defender for Endpoint or an equivalent containment control. Preserve the installer hash, process lineage, task definition, Run-value data, and process-attributed connections for scoping. Block confirmed malicious files and destinations through the appropriate endpoint and network controls.
- Remediate the Python package and its associated Run value or scheduled task. Investigate and remove the native backdoor and plugin workers separately; reinstalling Q-Dir or DesktopOK does not remove either malicious component. Rebuild affected devices from a trusted image when their integrity cannot be established.
- Scope credentials and sessions accessible to the compromised identity. Where exposure is established, revoke sessions and rotate affected credentials from a clean system, then review the corresponding service activity.
- Before releasing containment, verify that both backdoors and their startup entries have been removed. During a controlled restart or sign-in under incident-response supervision, check for renewed interpreter launches, plugin workers, and command-server connections. Restore software distribution only from validated replacement packages.
Microsoft Defender Antivirus and Microsoft Defender for Endpoint may generate the detections and alerts listed below when associated files or behaviors are observed. Detection availability can vary by product configuration, platform, and security-intelligence version. Investigate alerts together with process lineage, persistence, and network telemetry.
TacticObserved activityMicrosoft Defender coverageInitial access / ExecutionAn update or download delivers a trojanized Q-Dir or DesktopOK installer.Microsoft Defender Antivirus– Trojan:Win64/GlassWorm.DB!MTB
Microsoft Defender for Endpoint
– Possible initial access from an emerging threatExecutionThe installer retrieves an archive containing the Python runtime and backdoor script.Microsoft Defender Antivirus
– Trojan:Python/VmBaseTool.MA!MTB
– Trojan:Python/Multiverze!rfn
– Trojan:Win64/GlassWorm.DC!MTB
– Trojan:Win64/GlassWorm.DD!MTB
Microsoft Defender for Endpoint
– Possible remote access tool activityPersistenceA Run value or scheduled task starts the packaged Python interpreter at sign-in.Microsoft Defender for Endpoint
– Anomaly detected in Auto-Start Extensibility Point (ASEP) registry
– Suspicious scheduled task
– Suspicious Task Scheduler activity
– Suspicious Scheduled Task Process LaunchedDefense evasionFiles use system-like names or appear in a Run key.Microsoft Defender for Endpoint
– ‘MasqueradingFile’ malware was preventedCommand and controlA later-stage backdoor connects to its own command server. The detection listed here applies to the executable.Microsoft Defender for Endpoint
– Command and Control behavior was blocked
– Network Protection blocked a potential C2 connection Advanced hunting queries
Run each query separately in Microsoft Defender XDR advanced hunting. These examples use Defender for Endpoint tables and a 30-day lookback; adjust the time range to the investigation and available retention. Interpret results alongside the device timeline and related alerts.
Find the Python RAT running from its bundled interpreter
Matches the known installation path and agent script, including console and windowless Python launches. A result identifies agent execution; inspect child processes and subsequent connections to determine what followed.
DeviceProcessEvents | where Timestamp > ago(30d) and ActionType == "ProcessCreated" | where FileName in~ ("python.exe", "pythonw.exe") | where FolderPath contains @"\DeviceSync\b2\py39" | where ProcessCommandLine contains "py_client_b2_dll.py" or ProcessCommandLine contains "py_client_dsv2.py" | project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, ReportIdFind the backdoor’s Run value or scheduled task
Finds the two documented persistence paths in one query. Review the stored command or task action and the writing process. Registration identifies a startup mechanism; correlate it with process events to establish whether it ran.
union DeviceRegistryEvents, DeviceEvents | where Timestamp > ago(30d) | where (ActionType == "RegistryValueSet" and RegistryKey endswith @"\Software\Microsoft\Windows\CurrentVersion\Run" and RegistryValueName =~ "DeviceSyncUpdate_b2") or (ActionType in ("ScheduledTaskCreated", "ScheduledTaskUpdated") and AdditionalFields contains "MicrosoftEdge_dcntel") | project Timestamp, DeviceId, DeviceName, ActionType, RegistryValueData, AdditionalFields, InitiatingProcessFileName, ReportIdFind AI-software discovery from the staged interpreter
Finds readable package searches in command shells or PowerShell launched by the bundled Python runtime. Including cmd.exe captures a shell that invokes PowerShell. Review the full command and descendants; the search is a reconnaissance signal, not proof of data collection.
DeviceProcessEvents | where Timestamp > ago(30d) and ActionType == "ProcessCreated" | where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe") | where InitiatingProcessFileName in~ ("python.exe", "pythonw.exe") | where InitiatingProcessFolderPath contains @"\DeviceSync\b2" | where ProcessCommandLine contains "site-packages" | where ProcessCommandLine has_any ("ollama", "vllm", "langchain", "llama_index", "mlflow") | project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessFolderPath, ReportIdFind successful connections to campaign command servers
Matches documented destinations and ports, including IPv4-mapped IPv6 addresses. Use the initiating process, path, hash, and timestamp to distinguish installer activity from Python and native backdoor connections. If the event is attributed to a proxy or intermediary, corroborate the original process before assigning it to the campaign. A successful connection alone doesn’t establish command execution or data transfer.
DeviceNetworkEvents | where Timestamp > ago(30d) and ActionType == "ConnectionSuccess" | where (RemoteIP == "8.210.69.51" and RemotePort in (9876, 9092)) or (RemoteIP == "47.238.130.37" and RemotePort == 443) or (RemoteIP == "8.210.203.136" and RemotePort == 443) or (RemoteIP == "47.239.64.37" and RemotePort in (7006, 7007)) or (RemoteIP == "8.210.20.147" and RemotePort == 443) | project Timestamp, DeviceId, DeviceName, InitiatingProcessFileName, InitiatingProcessFolderPath, RemoteIP, RemotePort, ReportIdFind native plugin workers and their parent processes
Matches the worker-name prefix and plugin-host arguments without depending on changing process IDs in the filename. Pivot to the parent process and its network activity. A worker launch identifies plugin execution infrastructure, not the purpose of an unidentified plugin.
DeviceProcessEvents | where Timestamp > ago(30d) and ActionType == "ProcessCreated" | where FileName startswith "KKKD.PluginHost." | where ProcessCommandLine contains "--plugin-host" and ProcessCommandLine contains "--pipe" | project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessId, ReportId MITRE ATT&CK techniques observed TacticObserved technique and campaign exampleInitial accessT1195.002 – Compromise Software Supply Chain: tampered utilities reached devices through normal distribution and update paths.ExecutionT1059.006 / .001 / .003 – Python, PowerShell, and Windows Command Shell: the bundled agent and its operator-launched children.PersistenceT1547.001 / T1053.005 – Registry Run Keys and Scheduled Task: two observed ways to relaunch the client.DiscoveryT1518 / T1057 – Software Discovery and Process Discovery: AI/ML package inventory and the ToDesk process check.Command and controlT1071.001 / T1105 – Web Protocols and Ingress Tool Transfer: the agent’s command channel and the downloaded components.Inter-process communicationT1559 – Inter-Process Communication: native KKKD controllers and named-pipe workers. Indicators of compromiseNetwork indicators are defanged below.
RoleIndicator and contextDelivery URLshxxps[:]//mail[.]c1a2[.]top/dl/7zr[.]exe hxxps[:]//mail[.]c1a2[.]top/dl/dsv2_py39_agent[.]7zPython agent8[.]210[.]69[.]51:9876 (TCP) – Primary Python command channel. The address also served downloads. TCP 9092 was observed;Command server47[.]238[.]130[.]37:443 (TCP) – Campaign C2.Later-stage command server8[.]210[.]203[.]136:443 (TCP) – winhost.exe.Later-stage command server47[.]239[.]64[.]37:7006 and 47[.]239[.]64[.]37:7007 (TCP) – backgroundTask.exe.Later-stage command server8[.]210[.]20[.]147:443 (TCP) – backgroundTask.exe.Other associated servers47[.]238[.]75[.]255 and 47[.]238[.]204[.]139 – Associated with the Python RAT infrastructure.Domainsmail[.]c1a2[.]top under c1a2[.]top (staging); cloudfronts[.]top (associated infrastructure). File indicators: trojanized utilitiesThese SHA-256 values identify the tampered utilities.
UtilitySHA-256Q-Dir434b67dd403c74752b336fbb4fc94ee3a6fb615168e3fd31baea71d1a356ecd8Q-Dir8ac6901a941788ab9675a9ec9bebdbc00074cb76f19a7d84c2e1b0ddbcee4f48Q-Dircf9e2433540d0b8ae8c9f4c9d5f11770343d413c1cfb201c5edae7155f88585aQ-Dird1a2cf8882c254156848f4a12b6c6837a3cf0e460f876c6f8b00d32a1560640aQ-Dir7afa1e77c115eaa7798237039fde67c8a69686e7d9a4034a8df54aff2d1a126dQ-Dir1b7b7947527a05f0fae268b16894440549c2dd512d421a06960e27b5fb1d5fa0Q-Dirc41bd9eefd7a63fa329b24144a3483abac012ebc11bd5606b6c8295251d46422Q-Dir551e5744b24019f016f9ee8dd3a2c00429da587b20321abaef55c18c0a655a5dQ-Dir7524fcf3ffc44fc2e9a53af761c2a308edac31d02df3dfb1a4b57504243aec48Q-Dirb45ba4a1d9a25116b94e95ef48d63fffda7d77bd358d17d74c7575ce39986b84DesktopOKee782d990bdeb1d8dd12ad36f1202f8810c63be92a56ad382ba8f117a5c05be3DesktopOKc12651f2988bb5e05afd1f4b1e6bce618111a4703f1aadc006bfacc6ac7e1d90DesktopOKf96cab94d9f0e0000dfef8b9fce16bcefd23679443cc8ba8f7811a55ea5799ecDesktopOK8c172c421129bda890b504e89d1bb72af477be9896b22a576920c050442b4a04DesktopOK5b43284e48edee4acbab49bc5a68eb21d3a369a058d859689b6a5dd2042a5e2aDesktopOKbdbbe28cde3dee061536e524bc2a14316015db0c958cad83023790d32a4f8d99DesktopOK393d2f9f05affa88aaa19f29f041d28fe5c3e1fc2fd84c76d1e2f1aa6da74a83DesktopOKff4ec1cca4746e33d1205ed434e1e2ac9cee71fec477b032f56d3bde577626d2 File indicators: runtime installers, archives, and backdoors File / roleSHA-256dsv2 runtime installer1e94b4d50d9d10e20b509d4606c7ca0b35d35c6d7f0bf24242c4050c238e054ddsv2 console installerb64997b57f3b9459fef2ba8d5ab5826a72b1532937c8f9104d63c9f5d5266924b2 agent archiveca512d73d5b91f415342e8dfd98aaacb8125cbd448ef95e784af64ab45705ff6dsv2 agent archive2035d4fd9474e8f765ea23b16b748018c0001cdd82e68991b768d7d4b654ce55VmBaseTool Python agent2d382bd5998d06dc6a7ab111c077e4468c6d7694af94933f869976115f8e139cwinhost.exe288ec3ce9379e2f29f246d2fb1286bdf95c4dade99d6b037ead18db35b2a859cbackgroundTask.exebe30ca3f9298487611dd1d689d963665d8a74e494ad22006b6257518acf8ca44backgroundTaskHost.exe7b4d5c4ab6db6ccdd0a0ad40d4177c85e7c1daa7c58b691303ff9608e8397b6cKKKD worker / winhostefff67d3ac9fc5f70710c3d915f58c1e9a35ad86a3bc9f716ba72533f13ee1a1KKKD worker / backgroundTask4b2097d8cbec7d29068111628a7689941c047fcf5478ab0796b9638979c2a535 References- SoftwareOK. “Q-Dir” official product page.
- @SecurityAura. Public thread on X.
- @Kostastsaled. Public thread follow-up analysis on X.
- AhnLab ASEC. “Software Supply Chain Attack via the Official SoftwareOK Website.”
- EnterProtect. Threat advisory on the Q-Dir and DesktopOK supply chain attack.
- @MalwareHunterTeam. DesktopOk Public thread on X
- Shodan. Host for 8.210.69.51
- Bleeping Computer. “Q-Dir and DesktopOK Windows utilities compromised to push Python RAT.”
- View Bert de Jong’s profile Bert de Jong Post | LinkedIn
- Microsoft Learn. “Script enforcement with App Control for Business.”
- Microsoft Learn. “Configure cloud protection in Microsoft Defender Antivirus.”
- Microsoft Learn. “Take response actions on a device: Isolate devices from the network.”
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
Review our documentation to learn more about our real-time protection capabilities and see how to enable them within your organization.
- Learn more about securing Copilot Studio agents with Microsoft Defender
- Evaluate your AI readiness with our latest Zero Trust for AI workshop.
- Microsoft 365 Copilot AI security documentation
- How Microsoft discovers and mitigates evolving attacks against AI guardrails
- Prompt injection protection in Microsoft Defender for Office 365 – official documentation of the prompt injection protection in Microsoft Defender for Office 365.
- How Microsoft discovers and mitigates evolving attacks against AI guardrails | Microsoft Security Blog
- Manipulating AI memory for profit: The rise of AI Recommendation Poisoning | Microsoft Security Blog – a related example of an AI-era technique observed in email traffic
- Defending the inbox against prompt injection attacks | Microsoft Defender for Office 365 Blog – feature announcement introducing prompt injection protection in Microsoft Defender for Office 365.
- Learn how Microsoft is reimagining the SOC for the agentic era with ISOC in Microsoft Defender
The post Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor appeared first on Microsoft Security Blog.
Threat actors use AI-assisted framework to target Linux systems
- Inside the CyberStrikeAI-linked ISP intrusion
- Enterprise-data access within minutes
- Similar operating patterns in seven other intrusions
- Why it matters
- Mitigation and protection guidance
- References
- Learn more
Microsoft investigated an intrusion at an internet service provider where rapid, adaptive activity across Linux systems was consistent with AI-assisted orchestration. Microsoft also linked infrastructure used in the operation to an instance of CyberStrikeAI. About seven minutes after the first recovered command, the operation queried subscriber records; within 13 minutes, it uploaded PHP shells to three peer servers, and it later configured an internal relay after direct outbound connections failed.
Endpoint telemetry confirms commands, processes, file operations, database queries, and specific transport events, and while Microsoft assesses that AI capabilities assisted portions of the operation, the evidence does not establish complete autonomy or a continuous end-to-end command-and-control session.
Beyond the ISP intrusion, Microsoft has observed seven additional intrusions that share a common task-ID naming and shell command patterns along with high-tempo, iterative tradecraft. Microsoft assesses that these intrusions were driven by AI-enabled offensive tooling; however, Microsoft could not link them to a known AI console, and no shared infrastructure has been identified.
Microsoft Defender for Endpoint generated relevant alerts during stages of the activity, with detection timing and coverage varying by incident. Organizations should contain suspicious application-origin shell activity promptly, rotate exposed credentials and tokens, and review downstream databases, identity systems, and altered application state. Validated Microsoft Defender XDR detections, indicators, and advanced hunting queries in this post can support investigation and response across the eight intrusions identified.
Inside the CyberStrikeAI-linked ISP intrusionIn the ISP intrusion, familiar techniques were combined within a short, observed time window.
Through a custom PHP application, the operation inspected an initial Linux server, recovered database access material, and began querying subscriber records within minutes of the first command. It then uploaded PHP shells to several peer servers, deployed native executables, and established internal relay paths after direct outbound attempts failed.
All of this happened within a few hours, from the first recovered console contact to containment. Much of the activity ran in parallel, with data collection, peer expansion, and relay setup overlapping rather than following one another. These timings cover observed activity only, not any preparation before the first event.
Evidence linking the operation to CyberStrikeAICyberStrikeAI is an AI-native platform built for authorized penetration testing. It can be self-hosted, and an operator interacts with it through a web console. Its public documentation describes agent planning and tool execution, multi-agent workflows, web-shell management, and command-and-control functions. Together, these capabilities can connect application access, command execution, and follow-on tasks in one workflow, rather than only generating scripts for a person to run.
In the ISP intrusion, compromised hosts communicated with 2[.]26[.]80[.]51. When Microsoft analyzed the incident, the web interface at this address and its associated domain, internet-money[.]xyz, was a CyberStrikeAI console. This links the operation to a threat actor–controlled CyberStrikeAI instance, though it doesn’t show how each action was performed or how work was divided between the operator and AI capabilities.
Within the past month, the operator replaced the CyberStrikeAI console on the same infrastructure with a modified version of ARTEX, rebranded as “Hounded.” Because ARTEX has been used by multiple unrelated actors, this change does not by itself link the operation to previously reported ARTEX activity.
How the operation unfoldedOur analysis shows a repeated sequence in which the operation changed an account, service name, parser, packet setting, port, upload target, or route after receiving a result. Microsoft assesses that AI-assisted orchestration could have reduced the time required to perform this iteration.
Figure 1. Selected phases in observed order. Results and failures repeatedly informed the next action. The agentic loop: persistent objectives, changing methodsThe operation rarely treated a failed step as the end of a task. Table 1 organizes the evidence by objective rather than by server, preserving the behavioral pattern without repeating every intermediate check.
Table 1. Persistent objectives and the observed sequences behind them in the ISP intrusion
ObjectiveObserved behaviorDatabase accessOur analysis shows repeated changes to accounts, service names, and routing configuration after failed logins, along with connection tracing and comparison of directory diagnostics. Microsoft assesses that AI-assisted orchestration may have reduced the time required for this iteration.Data collectionThe operation moved from configuration and schema reads to record counts and samples, then joined subscriber details across service records and resolved address references into readable locations. The sequence shows progression from understanding the application to targeted collection.Internal discoveryThe operation replaced a parser to handle case, spacing, and multiple addresses, probed the resulting host list, reused results from another foothold, and queried database roles, privileges, and runtime capabilities. Evidence shows repair and reuse of discovery results across tasks, but not whether a person or model selected each change.Tool developmentThe operation checked runtime restrictions and available libraries, revised a database probe’s packet handling, timeout, and output limits, and tested a custom network-management client against a simulated local reply. It also created helpers to shorten diagnostics, format query results, and change remote-command request encoding.Lateral expansionBy reading initial server’s application configurations and sending test requests to connected web endpoints, an upload handler was identified and then used to upload PHP shells to peer systems. The operation reused this discovered path on multiple servers while data collection activity was ongoing.Communications routingAfter direct connections failed, the operation identified a peer with different reachability, configured and tested relays, and pointed native payloads at local listeners that could carry traffic onward. Enterprise-data access within minutesOur analysis identified that the first commands on the initial server established the host context, account, kernel, PHP restrictions, and relevant application files. The activity then focused on application components that handled database access rather than broad host discovery.
The operation read security configuration, routines used to decode stored credentials, and database connection settings. Shortly afterward, it called the application’s own database helper with recovered credentials and a service identifier and ran SQL. The credentials came from application configuration, and the application’s own code path was used to reach a database on another host.
Within minutes of the first recovered command, the operation queried subscriber records containing telephone numbers, account identifiers, names, addresses, connection locations, and network identifiers associated with subscriber equipment. It then checked populated fields and joined subscriber, service, and device records into compact output.
Rapid collection, peer expansion, and adaptive communicationsAfter gaining command execution through the custom PHP application, the operation rapidly shifted to application-focused discovery, recovered database access material, and queried subscriber records within about seven minutes of the first recovered command. In parallel, it inspected a peer application’s upload handler and reused the discovered path to place PHP shells on three peer servers within 13 minutes. Activity across the initial and peer servers then covered database access, login testing, internal discovery, and tooling, showing that collection and lateral expansion overlapped rather than proceeding as separate stages.
The operation also built and modified tooling around the environment. It checked runtime restrictions and available libraries, created discovery helpers, revised a database probe’s packet handling and output limits, and tested a custom network-management client against a simulated response. Native executables were staged on peer servers and launched shortly after related requests. Parameters, credentials, and routes were repeatedly adjusted following results or failures, which Microsoft assesses AI-assisted orchestration could have accelerated.
Figure 2. The script probes Oracle listeners for version information; its on-the-fly revision adjusts the packet offset from 26 to 28 bytes and the timeout from 6 to 8 seconds, likely to fix request formatting and improve response reliabilityWhen two peers could not connect directly to an external destination, the operation configured another peer with working connectivity as an internal relay and redirected the affected hosts through it within minutes. Native executables contacted local listeners rather than public addresses, meaning hunts limited to binaries making direct internet connections could miss the activity. The operation diagnosed a blocked connection and rerouted around it within minutes. Because the blocker could not have been anticipated or scripted in advance, the speed at which the operation diagnosed it and built a workaround strongly suggests AI-assisted orchestration.
Figure 3: Network evidence with distinct transport states. Requests, failures, accepted transport, configured forwarding. Fast and adaptive, but not uniformly disciplinedThe operation adapted effectively at the task level, but the observed activity was not consistently economical. We observed repeated host-identification checks, similar discovery across multiple machines, overlapping relay configurations, continued probing after workable paths had been established, and multiple listeners directed toward the same external destination. At the same time, coordinated deployment across peer servers and a working internal relay show that activity could be organized across hosts.
The combination of rapid adaptation and duplicated effort produced a larger behavioural footprint. Microsoft assesses that AI-assisted orchestration may have reduced the time required to adjust parameters, credentials, tools, and routes in response to results, but the telemetry does not explain why some checks and infrastructure were duplicated.
Similar operating patterns in seven other intrusionsThe ISP intrusion is the anchor case because Microsoft linked infrastructure in that operation to a CyberStrikeAI instance. Microsoft has observed similar activity elsewhere, and this section highlights seven intrusions that were likely also driven by AI-enabled offensive tooling and share a common task-ID naming pattern and similar shell command patterns as the ISP intrusion. They also show application-origin execution, rapid use of recovered credentials, task-specific tooling, and changes in method after failed results. Microsoft could not link them to a known AI console or framework or determine whether a single operator was involved. The incidents affected different technology stacks and produced different business consequences. These are not confirmed CyberStrikeAI operations or one campaign.
Together, these cases show the range of compromises possible across different Linux environments, and how quickly an operation using AI-enabled tooling can move from one application to identity systems and business data, adapting when a step fails.
Table 2. Summary of seven additional AI-assisted intrusions.
Domain / platformWhat happened and why the pattern is relevantGovernment organization / enterprise application and identity infrastructureWebLogic-origin command execution was followed by remote-administration and authentication-relay activity. A successful network-logon event was recorded from the relay host using a domain-controller machine account. The progression from application access toward identity infrastructure shows the operation changing methods while maintaining its broader access objective. The recorded logon does not establish certificate issuance, certificate use, or domain takeover.Retail organization / integration and enterprise-resource-planning systemsRelated activity across two Talend integration servers included a dense burst of credential and configuration commands, gift-card data queries, access to a resource-planning host, and output directed to public webhook or notification services. The movement among identity discovery, business-data access, enterprise applications, and output handling within related observed windows shows several objectives pursued in close succession.Telecommunications and payments provider / web applications and databasesSuccessive corrected variants of a custom database client appeared while nodeJS application-based command execution continued. The activity also included repeated scheduled-task changes, a detached agent, an interactive reverse shell, and reads of application, database, orchestration, and privileged-user credential material. The write-test-repair sequence shows rapid iteration around a persistent objective, a type of work that Microsoft assesses AI assistance could accelerate.National Rail Transport ProviderShell access on compromised content-management servers was used to collect application configurations, cryptographic keys, and local credential data; execute commands on additional hosts through authenticated application interfaces; request cloud-role and directory-service credentials; test database authentication; attempt retrieval of cached application credentials and authorization tokens; and probe booking and travel services. The sequence supports an effort to extend access from the content-management environment into identity infrastructure and connected business systems.Business school / content-management and database applicationsExisting PHP-based execution was used to enumerate application, database, SAML, and local service configuration; search for credentials, sessions, keys, and certificates; redirect background-search results into an upload directory; test additional web-accessible paths; and assess privilege and persistence opportunities. Analysis of the PHP scripts found functionality for changing a website administrator account, modifying executable snippet and option state, removing selected artifacts, and invalidating sessions under specified conditions. The repeated probe, inspect, revise, and verify cycle is relevant.University / web application and identity materialThe activity accessed credential files, sessions, keys, and certificates, placed implants in multiple upload locations, and performed a rapid burst of privilege and configuration checks during a brief observed window. The concentration of collection, additional execution paths, and privilege assessment shows several operational objectives pursued within the same incident window.Shared hosting provider / hosting backups and application response pathSelected password, authentication, and signing-key material was extracted from hosting backups and streamed through an existing application path without separate staging. The method combined selective collection with the compromised application’s normal response path, reducing the need for a separate archive or transfer mechanism.Across the seven pattern-comparison cases, we observed application-origin execution, rapid action on recovered credentials, changes in method after partial results, task-specific tooling, and activity spanning multiple systems or objectives. Microsoft assesses that AI-assisted orchestration could reduce the time required to interpret results, repair tooling, switch methods, or sustain overlapping tasks. These similarities establish breadth of operating pattern, not common attribution, or a single campaign.
Why it matters Attack stages no longer arrive one at a timeThe techniques were largely familiar: application-origin shell execution, credential and configuration access, database queries, internal discovery, remote administration, scheduled-task changes, and relays. What changed was the tempo. Parameters, accounts, tools, and routes were repeatedly adjusted after results or failures, while collection, peer expansion, tooling, and communications activity sometimes occupied overlapping observed windows.
Microsoft assesses that AI-assisted orchestration could shorten these feedback cycles and help sustain concurrent workstreams, although the sequence does not show that AI caused every timing pattern or selected every action.
A failed step therefore cannot be treated as a pause, and an early alert cannot be scoped only to the first completed tactic. Rejected credentials, blocked connections, incomplete output, or tool errors may be followed by another method while other activity continues. Defenders should treat discovery, credential access, movement, collection, and communications as potentially overlapping until telemetry shows otherwise.
Speed does not mean invisibilityRapid activity still creates observable signals. Application and service processes launch interpreters and utilities, sensitive files and records are accessed, internal probes and connections multiply, listeners and scheduled tasks change, and output appears in application-controlled locations. Repetition, repair, and failed attempts create additional signals.
Defenders should prioritize combinations such as application-origin execution plus credential access, rapid command variation, internal probing, or application-state changes across related systems. AI assistance may compress the response window, but the activity still creates detection opportunities.
Mitigation and protection guidanceApplication compromise can extend beyond the affected host through readable credentials, tokens, sessions, signing material, trusted network paths, and access to downstream databases, identity systems, and business applications.
Because discovery, credential access, movement, collection, and communications may overlap, response should run in parallel: contain affected hosts while rotating exposed secrets, reviewing downstream systems, preserving evidence, and assessing persistence and altered application state. Detection and response should focus on suspicious behavior without waiting for proof of AI involvement.
- Reduce application exposure. Inventory and patch internet-facing applications and their dependencies. Restrict administrative interfaces to trusted management networks, remove features that don’t need to be reachable from the internet, and block unauthorized file uploads and code changes. Where the application allows it, disable PHP functions that can run shell commands.
- Limit privileges and downstream trust. Run applications under least-privileged service accounts. Limit their access to sensitive files, databases, identity systems and business applications. Allow database listeners to accept connections only from the application hosts and accounts that need them.
- Protect credentials, keys, and sessions. Keep database passwords and other secrets out of configuration files, shell histories and backups that the application account can read; use a secrets manager or vault where possible. Use key-based SSH authentication, disable password logins, and monitor changes to authorized_keys, sudoers and crontab. After a compromise, rotate database and service credentials, replace SSH keys, and revoke affected tokens and sessions. If exposed credentials are also used for single sign-on or directory accounts, review their sign-in activity and reset them. Removing a shell does not invalidate access material that was already exposed.
- Constrain and monitor network paths. Allow only required connections between application servers and other systems and restrict outbound traffic to approved destinations. Blocking direct egress is not enough on its own: alert when a server starts forwarding traffic for its peers, opens unexpected listeners or rapidly probes the internal network.
- Watch for adaptive, high-tempo behavior. Agentic frameworks typically send many varied requests in a short time, retry variations of the same technique, and move to next-stage actions at machine speed
- On application servers, look for bursts of distinct commands, retries of a failed step with small changes, and routes reconfigured after connection failures. Default user agents from tools such as curl, wget or Python HTTP clients can help surface this activity, although an adaptive operator can change them quickly
- Investigate related activity across systems. Maintain endpoint protection and telemetry on application servers, using the capabilities each platform supports. When an alert fires on an application server, review the full incident in Microsoft Defender XDR and check related hosts, including other servers reachable from the same application. Look for credential searches, internal probing, new listeners or scheduled-task changes. Activity in this case overlapped across tactics and hosts, so the first alert may not reflect the earliest or most significant activity.
- Use deception to expose iteration. Honeypots, decoy credentials and decoy hosts can draw an operation away from real assets and produce high-confidence detections. Tarpits slow it down, and “fake wins” can convince it that its objective is complete. Microsoft Sentinel Deception can support this approach.
- Contain, investigate, and recover in parallel. Contain affected hosts while you preserve evidence, rotate secrets and review downstream database and identity access. To confirm recovery, check upload directories, deployed code, scheduled tasks, authorized keys, stored snippets, plugin settings, account changes, listeners and background processes. Deleting one shell or script does not establish recovery.
- For additional information on the evolution of threat actors’ use of AI-tools please see Microsoft’s recent blogs: AI-driven, large-scale nation-state campaign using ARTEX enables supply chain compromise, Threat actors use agentic AI tooling to find and abuse exposed secrets and ARTEX abuse expands as cybercriminals target financial sector.
Detections fired across these intrusions; coverage varied, and several first alerts arrived after the operation had started.
Microsoft Defender for EndpointTable 3. Microsoft Defender for Endpoint alerts observed in these intrusions
Tactic Observed activity Microsoft Defender coverage Initial access, execution Shells spawned by PHP-FPM, PHP-CGI, WebLogic, Talend, and Next.js Potential automated attack activity; Suspicious shell execution from PHP application; Suspicious process executed by a network service; Possible Web Server compromise activity; Suspicious processes indicative of a web shell Execution Labelled and piped command batches; encoded command lines Suspicious piped command launched; Obfuscated command line was launched; Potential human-operated malicious activity Credential access Searches of configuration, key, session, and backup files Enumeration of files with sensitive data; Suspicious access of sensitive files Privilege escalation sudo, pkexec, SUID, and sudoedit probes Elevation of privilege exploit of known vulnerability Persistence authorized_keys changes, crontab writes, beacon scripts SSH key addition; Executable permission added to file or directory Command and control Reverse connection tests, internal relays, file-queue command runners Possible reverse shell; Suspicious file or content ingress Exfiltration File posts to webhook and notification services Remote exfiltration activity Defense evasion Selective deletion of helpers and artifacts Suspicious path deletion Microsoft Security CopilotSecurity Copilot customers can use the standalone experience to create their own prompts or run prebuilt promptbooks to streamline incident response and investigation tasks related to this activity:
- Incident investigation: Use the Microsoft Defender XDR or Microsoft Sentinel incident investigation promptbook to summarize a related incident. Follow up with custom prompts to build a timeline of application-origin shell execution, credential searches, parallel activity across hosts, tool repair, and relay construction, distinguishing observed actions from unconfirmed outcomes.
- Microsoft User analysis: Investigate identified user accounts whose credentials or shell histories may have been exposed on compromised application servers. Review available sign-in, authentication, device, and detection information for suspicious follow-on activity.
Promptbooks require the relevant plugins, permissions, and data access. Microsoft User analysis focuses on user accounts; use custom prompts and available identity data to investigate service principals or other non-user identities separately. Review and verify generated findings before taking response actions.
Advanced hunting queriesMicrosoft Defender XDR customers can run the following queries to find related activity. Tune thresholds and runtime names to the environment.
Application runtimes spawning labelled shell batches
Look for application runtimes spawning shells with labelled command batches, with at least five matching batches per host and initiating runtime in a 15-minute window.
let runtimes = dynamic(["java", "node", "httpd", "apache2", "nginx"]); DeviceProcessEvents | where FileName in~ ("sh", "bash", "dash", "zsh") | where InitiatingProcessFileName startswith "php" or InitiatingProcessFileName in~ (runtimes) or InitiatingProcessParentFileName startswith "php" or InitiatingProcessParentFileName in~ (runtimes) | where ProcessCommandLine matches regex @"echo\s+['""]?(===|###|---)" | summarize Batches = count(), DistinctCommands = dcount(ProcessCommandLine), FirstSeen = min(Timestamp), LastSeen = max(Timestamp) by DeviceId, DeviceName, InitiatingProcessFileName, bin(Timestamp, 15m) | where Batches >= 5 | order by Batches descBursts of distinct commands from an application runtime
Look for bursts of at least 20 distinct command lines per host in a one-minute window where PHP, Java, or Node.js appears as the initiating process or its parent.
DeviceProcessEvents | where InitiatingProcessFileName startswith "php" or InitiatingProcessFileName in~ ("java", "node") or InitiatingProcessParentFileName startswith "php" or InitiatingProcessParentFileName in~ ("java", "node") | summarize DistinctCommands = dcount(ProcessCommandLine), Events = count() by DeviceId, DeviceName, bin(Timestamp, 1m) | where DistinctCommands >= 20 | order by DistinctCommands descCredential and key file targeting from an application context
Look for command lines referencing credential, configuration, or key files alongside file-reading or search utilities, initiated by PHP, Java, Node.js, sh, or bash.
DeviceProcessEvents | where InitiatingProcessFileName startswith "php" or InitiatingProcessFileName in~ ("java", "node", "sh", "bash") | where ProcessCommandLine has_any (".env", "db.inc", "credentials.php", "wp-config.php", "SerializedSystemIni.dat", "authorized_keys", "id_rsa", ".netrc", "DB_PASSWORD", "mysql.sql-auth.json", "proftpdpasswd") | where ProcessCommandLine has_any ("cat ", "grep ", "find ", "head ", "tar ") | project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, ProcessCommandLinePublic webhook and notification services used from servers
Look for curl activity on Linux devices targeting ntfy[.]sh with command lines that specify a file upload using –data-binary @.
DeviceNetworkEvents | where RemoteUrl contains "ntfy.sh" | where InitiatingProcessFileName =~ "curl" | where InitiatingProcessCommandLine contains "--data-binary @" | join kind=leftsemi (DeviceInfo | where OSPlatform == "Linux" | distinct DeviceId) on DeviceId | project Timestamp, DeviceName, RemoteUrl, RemoteIP, RemotePort, InitiatingProcessFileName, InitiatingProcessCommandLineNTLM relay and coercion tooling on Linux
Look for process command lines referencing NTLM relay, authentication-coercion, or AD CS tooling and endpoints
DeviceProcessEvents | where ProcessCommandLine has_any ("ntlmrelayx", "printerbug", "petitpotam", "certfnsh.asp", "--adcs", "certipy") | project Timestamp, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessCommandLine MITRE ATT&CK techniques observedThis threat has exhibited use of the following attack techniques. For standard industry documentation about these techniques, refer to the MITRE ATT&CK framework.
Initial access
- T1190 Exploit Public-Facing Application | PHP, WebLogic, Talend, and Next.js application execution paths
Execution
- T1059.004 Unix Shell | Labelled shell batches spawned by application runtimes
Persistence
- T1505.003 Web Shell | PHP shells on peers, JSP command endpoints, and zz-prefixed PHP implants
- T1098.004 SSH Authorized Keys | authorized_keys changes on integration and application servers
- T1053.003 Cron | Crontab changes on integration and application servers
Privilege escalation
- T1548.003 Sudo and Sudo Caching | sudo -n -l and sudoedit probes
- T1068 Exploitation for Privilege Escalation | pkexec and SUID checks
Defense evasion
- T1070.004 File Deletion | Selective artifact cleanup
- T1518.001 Security Software Discovery | Searches for EDR and antivirus processes
Credential access
- T1552.001 Credentials in Files | Configuration and backup archive targeting
- T1552.004 Private Keys | Key-file targeting
- T1003.008 /etc/passwd and /etc/shadow | Password and shadow-file targeting
- T1187 Forced Authentication | printerbug coercion
- T1557.001 LLMNR/NBT-NS Poisoning and SMB Relay | ntlmrelayx relay activity targeting AD CS
- T1649 Steal or Forge Authentication Certificates | AD CS targeting with the DomainController template
Discovery
- T1082 System Information Discovery | Host enumeration
- T1083 File and Directory Discovery | File enumeration
- T1046 Network Service Discovery | Internal service enumeration
Lateral movement
- T1021.004 SSH | SSH between Linux workloads
- T1570 Lateral Tool Transfer | PHP uploads to peer servers
Collection
- T1005 Data from Local System | Local-system data collection
- T1213 Data from Information Repositories | Subscriber, website platform, and gift-card API queries
Command and control
- T1090.001 Internal Proxy | Internal relay activity
- T1105 Ingress Tool Transfer | Native payload staging and file-queue or named-pipe command runners
Exfiltration
- T1041 Exfiltration Over C2 Channel | Output returned through HTTP responses
- T1567.004 Exfiltration Over Webhook | Posts to webhook and notification services
Indicators describe this case, not permanent ownership or reputation. Network addresses remain defanged. Organization-specific application names, paths, account names, database identifiers, private addresses, secrets, and subscriber information are omitted.
Table 5. Infrastructure and investigation pivots
IndicatorType Description2[.]26[.]80[.]51 IP address Incident console contact; Microsoft identifies active CyberStrikeAI infrastructure.internet-money[.]xyz Domain Domain associated with the console IP by Microsoft.
78[.]47[.]123[.]137 IP address Executable-download requests, connectivity tests, and configured relay destination. 9c70b61a4c0da2dd6d8c998a52c7b60c9d4005e2e36e658e94af9f18fb4f13f1 SHA-256 PHP web shell.
References
- AI-driven, large-scale nation-state campaign using ARTEX enables supply chain compromise | Microsoft Security Blog (accessed 2026-11-05)
- Threat actors use agentic AI tooling to find and abuse exposed secrets | Microsoft Security Blog (accessed 2026-11-09)
- ARTEX abuse expands as cybercriminals target financial sector | Microsoft Security Blog (accessed 2026-11-09)
- CyberStrikeAI project documentation | CyberStrikeAI,(accessed 2026-11-05)
- Microsoft is named a Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection | Microsoft Security Blog (accessed 2026-12-01)
- Microsoft named a Leader in the 2026 Gartner® Magic Quadrant™ for SIEM | Microsoft Security Blog (accessed 2026-12-01)
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
Review our documentation to learn more about our real-time protection capabilities and see how to enable them within your organization.
- Learn how Microsoft is reimagining the SOC for the agentic era with ISOC in Microsoft Defender
- Learn more about securing Copilot Studio agents with Microsoft Defender
- Evaluate your AI readiness with our latest Zero Trust for AI workshop.
- Microsoft 365 Copilot AI security documentation
- How Microsoft discovers and mitigates evolving attacks against AI guardrails
- Prompt injection protection in Microsoft Defender for Office 365 – official documentation of the prompt injection protection in Microsoft Defender for Office 365.
- How Microsoft discovers and mitigates evolving attacks against AI guardrails | Microsoft Security Blog
- Manipulating AI memory for profit: The rise of AI Recommendation Poisoning | Microsoft Security Blog – a related example of an AI-era technique observed in email traffic
- Defending the inbox against prompt injection attacks | Microsoft Defender for Office 365 Blog – feature announcement introducing prompt injection protection in Microsoft Defender for Office 365.
The post Threat actors use AI-assisted framework to target Linux systems appeared first on Microsoft Security Blog.
Microsoft named a Leader in the first-ever Gartner® Magic Quadrant™ for Integrated Security Operations Center Systems
We’re honored that Microsoft has been named a Leader in the inaugural Gartner® Magic Quadrant™ for Integrated Security Operations Center Systems. We believe this new report reflects an important shift in the market: security operations can no longer be treated as a collection of separate tools and workflows. To defend at AI speed, security operations and protection must work as one system.
When attackers are using agents to automate execution at unprecedented speed and scale, thereby compressing the time between intrusion and impact, defenders need more than faster versions of traditional, linear security operations center (SOC) workflows. They need an integrated foundation where signals, context, and actions come together so people and AI agents can see, understand, and act across the environment.
Integrated for defenseOn September 23, 2026, we announced the Integrated Security Operations Center (ISOC) in Microsoft Defender, with the goal of making a strong security foundation more accessible to security teams and simplifying the path to an agentic SOC.
Explore integrated security operations in Microsoft DefenderISOC brings together comprehensive security information and event management (SIEM) capabilities and native threat protection across endpoints, identities, email and collaboration, software as a service (SaaS) applications, and cloud workloads. Exposure management, threat intelligence, security data, AI, and response operate from a shared foundation rather than across separate systems.
This changes the starting point for security teams. Instead of stitching together tools, rebuilding context, and moving between consoles, practitioners can investigate, hunt, automate, manage cases, understand threats, and take action in one experience. Signals from Microsoft and third-party environments are enriched with threat intelligence and organizational context, helping teams understand not only what happened, but what it means for their environment and what to do next.
Turning connected intelligence into continuous protectionIntegration matters most when it improves protection. ISOC connects detection, investigation, disruption, containment, remediation, and exposure insights in an integrated protection loop. What defenders learn during an investigation can strengthen protection before the next attack, while threat intelligence focuses the system on the threats that matter most.
Attack disruption puts this integrated defense into action. By combining signals across Microsoft and third-party environments with threat intelligence, Microsoft identifies high-confidence attacks in progress and automatically contains threats before they spread. From ransomware to business email compromise and adversary-in-the-middle attacks, this helps stop attackers in their tracks, limiting lateral movement and damage. This has delivered significant impact for our customers, with ransomware attacks disrupted in just 30 seconds on average.
A shared foundation for people and agentsAgentic security requires more than adding AI agents to existing security tools. It requires a connected foundation that brings together signals, intelligence, context, and action. The ISOC in Microsoft Defender provides that foundation, enabling people and AI agents to operate from the same data, context, and controls.
Microsoft Perception builds on this foundation to bring agentic security to life. By connecting signals and sensors that provide awareness, intelligence, and context that turn signals into understanding, and actuators that enable protective action, Perception helps security teams move from reactive workflows toward continuous, AI-powered protection.
With Perception, AI agents can reason across security signals, investigate threats, recommend actions, and coordinate protection at machine speed. Security professionals remain in control, setting priorities, applying judgment, and approving consequential actions. Together, people and agents can move beyond isolated tasks to anticipate risks, accelerate investigations, and stop threats before they spread.
The goal isn’t simply to automate more security tasks. It’s to multiply the expertise of security teams, enabling them to focus on the decisions that matter most while AI agents handle more of the complexity and execution.
Security operations built around outcomesWe believe the first Gartner Magic Quadrant for Integrated Security Operations Center Systems signals that the market is moving beyond standalone categories and toward platforms that bring the SOC workflow together. We believe the next SOC will not be defined by how many AI features it has, but by whether people and agents can perceive, reason, and act across the environment as one system.
ISOC in Microsoft Defender is built for that shift. By unifying security operations and protection, it helps teams move from fragmented tools to integrated operations, from alert-centric workflows to threat-led defense, and from manual response to continuous protection.
We’ll continue investing in the capabilities customers rely on today while advancing the integrated foundation needed for the agentic SOC. We’re grateful for the Gartner recognition and for the customers, partners, and security community whose feedback continues to shape Microsoft Defender.
Learn more- Explore ISOC in Microsoft Defender.
- Read: Reimagining the SOC for the agentic era in Microsoft Defender.
To learn more about Microsoft Security solutions, visit our website. Bookmark the Security blog to keep up with our expert coverage on security matters. Also, follow us on LinkedIn (Microsoft Security) and X (@MSFTSecurity) for the latest news and updates on cybersecurity.
Gartner, Magic Quadrant for Integrated Security Operations Center Systems, By Angel Berrios, Kevin Schmidt, Eric Ahlm, 24 November 2026
Gartner does not endorse any company, vendor, product or service depicted in its publications, and does not advise technology users to select only those vendors with the highest ratings or other designation. Gartner publications consist of the opinions of Gartner’s business and technology insights organization and should not be construed as statements of fact. Gartner disclaims all warranties, expressed or implied, with respect to this publication, including any warranties of merchantability or fitness for a particular purpose.
Gartner and Magic Quadrant are trademarks of Gartner, Inc., and/or its affiliates.
The post Microsoft named a Leader in the first-ever Gartner® Magic Quadrant™ for Integrated Security Operations Center Systems appeared first on Microsoft Security Blog.
Defending against ARTEX with Microsoft Perception
In a matter of weeks, ARTEX went from an open-source GitHub project to a working attack tool. Built for autonomous AI penetration testing, the framework can plan and execute an attack loop with little human intervention: a planner agent chooses the next move, worker agents run tools like nmap, curl and Impacket, and the operation continues at machine speed. That rapid evolution has caught the attention of Microsoft Threat Intelligence. Our October report on Storm-0940 examined the actor’s use of ARTEX, and our in-product Microsoft Defender Threat Intelligence report is tracking its abuse by cybercriminals targeting the financial sector.
Microsoft Perception is a multi-agent system that drives security outcomes, and it puts that intelligence to work. Through playbooks, Perception brings agents together to carry out security workflows. With the Protect against a threat playbook, you can pick the Defender article from the drop-down, and four Perception agents work the threat end to end. Threat Intelligence breaks down the article, then Recon checks whether you’re exposed, Detection Authoring builds the detections, and Posture Prioritization ranks what to fix first. With ARTEX the attacker moves at machine speed, and having a single action that goes from threat intelligence to detections and fixes, and can rerun on every new report, is hugely valuable.
Microsoft threat intelligence is built in with Perception, but it isn’t the only intelligence you can use. As threats like ARTEX evolve, Perception can also act on third-party sources. For this post, we ran the same playbook against two sources: our in-product Microsoft Defender Activity Profile covering ARTEX abuse targeting the financial sector and a Wiz Research article covering ARTEX activity targeting IT and software vendors.
A good threat article tells you what the attacker does. It can’t tell you whether you’re exposed or what to fix first and closing that gap is usually days of analyst work. With only the article as input, we evaluated how far Perception could take the analysis, from understanding the threat to identifying exposure and recommended actions.
Everything ran in Microsoft’s internal simulation environment, built to reflect a typical enterprise setup. Because it is simulated, the findings below do not represent a real production deployment.
Protect against a threat playbookFrom Microsoft Perception, we launched the Protect against a threat playbook, which takes one input: a threat article. Pick one from the Microsoft Defender drop-down or paste in a URL. The Threat Intelligence Agent goes first, analyzing the article to identify the threat actors, indicators, vulnerabilities, malware, tactics, and techniques behind the attack. From there, the Recon, Detection Authoring and Posture Prioritization Agents use its report to analyze the security posture and answer three questions: Am I exposed? Can I detect it? And what should I fix first? The result is a set of end-to-end recommendations for protecting your environment against the threat.
Running it on Microsoft Defender threat intelligenceWe started with the Defender Activity Profile, ARTEX abuse expands as cybercriminals target financial sector, picked straight from the drop-down.
Figure 1. Launching the Protect against a threat playbook in Perception. The Defender Activity Profile is picked as the only input, and the four agents that will run are listed before the session starts.The Threat Intelligence Agent identified the actor as Storm-3358, a financially motivated cluster based in Cambodia that has been going after financial-sector organizations, mostly in Southeast Asia, using ARTEX alongside conventional automation. It mapped 11 MITRE ATT&CK techniques. ARTEX scanned internet-facing web apps at machine speed and exploited anonymous file upload and SSRF bugs. Its agents then pulled down web shells and RATs with curl and netcat, and the same automation ran password sprays, API enumeration, database dumps and exfiltration. It pulled out the eight campaign IPs from the article. The report also came with two hunting queries ready to run, one for new files pulled down with curl and one that checks the campaign IPs across 30 days of network logs.
Figure 2. The completed session for the Defender article. All four agents finished, with the Threat Intelligence report open.ARTEX uses familiar techniques. What it adds is speed, and an agent scanning at machine speed can find an anonymous upload endpoint long before a person working through a list would. That is why the Recon Agent went looking for what ARTEX’s scanners would hit first: public web apps and APIs that could expose the upload and SSRF entry points. It found 183 internet-facing candidate resources in our demo tenant. From configuration data alone it couldn’t confirm whether any had an upload or SSRF flaw, and it said so. But the shortlist was still worth examining. Four Function Apps accept anonymous HTTP calls, including one with a route named upload-screenshot. An API Management service has an uploadFile operation across three APIs that don’t require a subscription. And three storage accounts have public containers named financials and staging. With so many potential starting points, it skipped attack-path modeling.
The Detection Authoring Agent proposed nine detections covering all 11 techniques. It rated three as ready to deploy: a web server spawning shells, executable files being written to web roots, and a password spray followed by a successful sign-in. ARTEX drives commonly used tools, so these detections focus on the resulting behavior rather than ARTEX itself. The other six needed tuning. Because the demo tenant had no baseline for measuring noise, those ratings are estimates. Each proposal also shows which existing detections provide similar coverage, so you can see where they overlap before adding more.
The Posture Prioritization Agent ranked seven risks and called the demo tenant exposed. At the top were four internet-facing API Management operations that Defender flagged for allowing anonymous access. Next came nine web and Function Apps with no platform authentication, nine internet-reachable VMs with high or critical CVEs with known exploits, and 23 storage accounts that allow public or shared-key access.
Figure 3. The Microsoft Defender run at a glance, one column per agent. Results reflect this tenant’s configuration, not the source of the intel. Running it on third-party research from WizWe ran the Protect against a threat playbook again, this time using the Wiz article as input.
Figure 4. Starting the same playbook from the Wiz article. The URL is the only input.The Threat Intelligence Agent mapped the campaign to MITRE ATT&CK, from source-map and OpenAPI scraping through password spraying, OAuth callback tampering and alg:none JWT forgery, to cross-tenant probing. It also identified five campaign IPs and 20 user agents. Wiz notes that many of those user agents are noisy on their own, so the agent’s hunting guidance focuses instead on behavioral patterns, such as failed sign-ins about a second apart across hundreds of users.
Figure 5. The completed session for the Wiz article. All four agents finished, with the Threat Intelligence report open.The Recon Agent found seven public workloads with managed identities in our demo tenant. It assumed each one was compromised, then followed its identity to determine what an attacker could reach. One path came out high impact, two medium, four low. The analysis was based entirely on configuration data. Nothing was exploited, a limitation the report explicitly calls out.
The Detection Authoring Agent proposed eight detections covering 12 of the 13 techniques it tracked, from Entra and Okta spray bursts to the source-map-to-API chain. The agent replayed all eight against 14 days of demo-tenant data and found zero hits. In a quiet tenant, that result primarily shows that the queries run without generating obvious noise rather than proving they are ready to deploy, so they still require review before being enabled.
The Posture Prioritization Agent ranked 19 risks and called the demo tenant significantly exposed. At the top were risks that closely matched the attacker’s path: Function Apps reachable from the internet, VMs behind broad network rules, Function Apps missing app authentication and public storage settings.
Figure 6. The Wiz run at a glance, one column per agent. Results reflect this tenant’s configuration, not the source of the intel. Two articles, one playbookTwo articles on two different ARTEX actors, one from Microsoft and one from Wiz. Each run produced an exposure verdict with evidence, detections to review and a ranked list of fixes, all tied back to the behavior described in the article. The numbers aren’t a scorecard. Each run reflects how the underlying tenant is configured, not where the intelligence came from. Different tenants, different actors, yet both runs put internet-facing Function Apps without app authentication near the top of the fix list.
Keep it currentCampaigns like this change frequently. When Wiz or any other entity publishes new ARTEX behavior, run Protect against a threat on the new article. Do it for every ARTEX report you trust, whether it comes from Microsoft, Wiz or your own team, and plug the holes each one turns up before the attacker finds them.
Try itMicrosoft Perception is now generally available to Microsoft Defender customers. Open Perception in the Defender portal, start Protect against a threat and paste in the article you care about. Learn more here, and get started today.
The post Defending against ARTEX with Microsoft Perception appeared first on Microsoft Security Blog.
What defenders need to know about ARTEX, the agentic AI framework threat actors abuse
- ARTEX: Publicly available AI-powered offensive security framework
- AI agent architecture
- Capabilities
- Identifying ARTEX network activity
- Identifying ARTEX system activity
- Mitigation and protection guidance
- Microsoft Defender detections
- Hunting
- MITRE ATT&CK techniques
Since its release in July 2026, the AI-powered penetration testing framework ARTEX has been abused by many threat actors to accelerate their existing workflows related to network reconnaissance, credential attacks, and web application exploitation. As of November 2026, Microsoft Threat Intelligence has observed both state-sponsored and financially motivated threat actors such as Storm-0940, Storm-3358, Onyx Sleet, Pearl Sleet, Crystal Typhoon, and Salt Typhoon integrating ARTEX into their tooling.
In the past few weeks, we’ve reported several distinct campaigns that abused ARTEX to search public repositories for exposed secrets, enable supply chain compromise, and scan internet-facing systems for exploitation. These campaigns illustrate how threat actors use ARTEX to automate various stages of the attack chain. Threat actors define scope and targets for ARTEX, which then uses AI agents to set verifiable goals, define tactical steps for each stage of the operation, use tools to attack targets, create graphs to track discovered systems and results of actions, and report back to the threat actor. Depending on the threat actor’s configuration and the target’s defenses, ARTEX can advance from reconnaissance to persistent, privileged access to a target organization in a matter of minutes.
ARTEX does not introduce new attack techniques; it uses common, pre-existing penetration testing tools and techniques. ARTEX does sometimes transmit distinctive characteristics associated with its integrated penetration testing tools. However, threat actors using ARTEX can and do vary network indicators like source IP address or user agent string, especially to bypass static or simple signature-based detection and blocking. The most reliable and durable signal of ARTEX activity is behavioral: ARTEX sends a wide variety of requests in a brief time and retries variations on the same technique or moves on to next-stage actions at machine speed.
In this blog, we’re sharing a detailed breakdown of ARTEX, including its architecture and capabilities, as well as guidance for identifying related network and system activity. Microsoft disrupts and contains threats posed by ARTEX-enabled attacks across the Microsoft Defender suite of products. Defenders can further reduce and mitigate the effectiveness of ARTEX and similar AI agentic attacks by following Microsoft’s recommendations outlined in this report to reduce internet-facing exposure, secure credentials and secrets, and limit lateral movement paths in their environment. Additionally, Microsoft recommends customers to enable automatic attack disruption in Microsoft Defender XDR to contain and isolate affected devices during an attack.
To help defenders keep pace with machine-speed attacks, Microsoft Perception coordinates red, blue, and green team agents that find exploitable weaknesses, investigate threats, and remediate risks, with security teams approving critical actions. As threat actors increasingly adopt AI, we’re publishing this information to equip defenders with insights that can help protect systems, secrets, identities, and networks from AI-assisted attacks.
ARTEX: Publicly available AI-powered offensive security frameworkARTEX (“AI 自主渗透测试系统,” or AI autonomous penetration testing system) is an AI-driven penetration testing platform. A Go-based backend coordinates multiple large language model (LLM) agents that can take an attack from reconnaissance and attack surface discovery through exploitation, verification, and reporting, with little or no human involvement. ARTEX includes an embedded Next.js web interface and uses PostgreSQL for storage.
ARTEX is primarily a web application penetration testing tool. Its built-in guidance, skills, and findings categories center on vulnerabilities in HTTP applications and APIs, including SQL injection, server-side template injection, XML external entity (XXE) injection, file upload flaws, authentication bypass, and insecure direct object references (IDOR).
ARTEX agents also perform general network reconnaissance and credential attacks. After agents gain initial access to a system or network, they can pivot through interactive shells. By default, ARTEX does not take any measures to obfuscate its malicious activity.
In July 2026, GitHub user Autumn-27 published ARTEX as open-source code with a Chinese-language interface. While the original developer removed the source code in October 2026, other developers who had forked the project continue to publish their own versions of ARTEX in many other languages. In November 2026, the China-based cybersecurity company ThreatBook (微步在线) claimed ownership of ARTEX and began offering commercial access to “ARTEX Pro”, in addition to CyberStrikeAI Enterprise Edition and other AI-powered penetration testing frameworks.
AI agent architectureARTEX uses multiple AI agents for different functions. The threat actor defines the target scope, and a goals model breaks the engagement into objectives that can be verified. A planner agent continuously reviews a knowledge graph containing discovered assets and findings, then issues short attack directions called “intents.” Worker agents claim those intents and carry them out with a real shell and offensive tools. They write new assets, facts, and confirmed vulnerabilities back to the graph. Each update wakes the planner agent, which decides what to do next. The cycle continues until the goals are met or the task reaches its time or step limit. A reporter agent then documents each confirmed finding with reproduction steps and a proof of concept.
ARTEX AI agent architectureThe threat actor can configure ARTEX to power its agents with virtually any large language model, including frontier models, open-weight models, or models that the threat actor has abliterated (modified to remove built-in guardrails) or otherwise manually tuned. For that reason, ARTEX activity is not necessarily constrained by any single provider’s safety controls or visible in any single provider’s telemetry.
An optional pool function allows ARTEX to switch to different models when one fails for any reason (for example, quota exhausted, invalid key, rate-limited, or erroring). The function includes a configurable priority order and cooldown, so a long campaign can continue across multiple providers or keys.
CapabilitiesARTEX agents call tools to act on intents. While threat actors and agents can add arbitrary tools, ARTEX includes a set of pre-configured tools that define its core capabilities: network reconnaissance, web application mapping, web shell upload, and web browser-based attacks.
- nmap — A network discovery and port-scanning tool that identifies systems, exposed services, and often their versions, rather than simply testing one connection
- nc (netcat) — A general-purpose network utility for opening TCP or UDP connections, listening on ports, and moving raw data between systems
- telnet — A basic interactive TCP client useful for manually probing text-based services
- whois — A registration-data lookup tool that retrieves information about domain names or IP address allocations
- dig — A DNS diagnostic tool
- curl — A command-line HTTP and protocol client suited to crafting requests and inspecting responses, including headers, authentication, and APIs
- wget — A web download utility
- Playwright + Chromium — A browser-automation stack that drives a real Chromium browser, with all elements of the HTTP exchange exposed for manipulation
- node — A JavaScript runtime
- python3 — A general-purpose scripting runtime
- git — A tool for retrieving and inspecting code repositories and their history
- ripgrep — A fast recursive text-search tool for finding strings or patterns
- jq — A command-line JSON processor that filters and transforms structured output from APIs and other tools
Threat actors also commonly add exploitation frameworks and credential attack tools to extend the capabilities of ARTEX agents:
- sqlmap — A specialized web-application testing tool that detects and assesses SQL injection in application inputs
- hydra — A parallelized credential-testing tool supporting many network login protocols and configurable username/password combinations
- medusa — A modular, parallel network-login tester distinguished by its service-specific authentication modules
- ncrack — A network authentication testing tool from the Nmap ecosystem, focused on high-speed testing of supported remote services
- nuclei — A template-driven vulnerability scanner that checks targets for defined exposures, misconfigurations, and known issues across multiple protocols
- nikto — A web-server scanner focused on potentially dangerous files, outdated components, and common server misconfigurations
- gobuster — A wordlist-based discovery tool that enumerates web paths, DNS subdomains, or virtual hosts with a relatively focused command-line workflow
- ffuf — A flexible web fuzzer that substitutes candidate values into chosen parts of a request, such as paths, parameters, headers, or hostnames
- Msfconsole (Metasploit) — An exploitation framework and its interactive console, combining exploit modules, payloads, and post-exploitation workflows in one environment.
- john (John the Ripper) — An offline password-auditing tool notable for broad hash-format support and adaptable cracking modes
- hashcat — An offline password-recovery tool distinguished by GPU-accelerated candidate generation and hash testing
ARTEX agents can perform a wide range of actions, depending on the available tools and goals that the threat actor sets. Microsoft Threat Intelligence has observed ARTEX agents exhibiting the following capabilities as of November 2026:
- Network reconnaissance
- Port and service scanning
- DNS enumeration
- HTTP probing and content scraping
- Importing assets from separate asset-scanning platforms
- Web application reconnaissance
- Retrieval of JavaScript bundles, source maps, runtime configuration files, and API documentation to extract routes
- Headless-browser crawling, including with a simulated signed-in state
- Enumeration of REST, WebSocket, and server-sent events (SSE) endpoints
- Web application exploitation
- Exploitation of known vulnerabilities in exposed software
- Authentication bypass (for example, unsigned tokens and manipulated OAuth callbacks)
- SQL injection
- Server-side template injection
- XML external entity (XXE) injection
- File upload flaws
- Insecure direct object references (IDOR)
- Credential attacks
- Weak-password testing
- Password spraying
- Brute force guessing
- Abuse of account-recovery flows
- Persistence
- Web shell upload
- Credential access
- Reading secrets from configuration files, .env files, private keys, and /etc/shadow
- Dumping databases
- Kerberoasting
- Lateral movement
- Credential reuse
- Cloud identity abuse
- Authentication with stolen or captured credentials
- Cloud permission mapping
- Microsoft Graph reconnaissance
- Adding application credentials for persistence
- Assigning privileged roles for privilege escalation
- Reading cloud keys and tokens, including from cloud secret management stores
While ARTEX does not invent new attack techniques, it can combine the adaptable attack chain of a human threat actor with the speed and precision of malicious software. Therefore, the challenge of identifying network activity from AI-driven tools like ARTEX is differentiating it from both human- and software-driven activity.
Defenders can detect three types of evidence that may suggest AI-driven activity:
- The most durable signal of AI-driven activity is the pattern formed by the bursts of machine speed activity. ARTEX agents, sometimes working in parallel, continually adapt and retry a given tactic until they succeed or run out of time. ARTEX agents quickly and exhaustively iterate through different methods of access, exploitation, or abuse. A human threat actor takes time to move from one stage of the attack chain to the next. In contrast, after successfully compromising a system or credentials, the framework then dispatches additional agents to move on to the next stage of the activity at machine speed. While ARTEX is a popular tool, other AI-driven offensive security frameworks also generate similar patterns of behavior.
- Automated penetration testing tools, including the ones that ARTEX agents call, can produce a characteristically large volume of anomalous traffic from a single source in a short time. ARTEX does not obfuscate its malicious activity; a large number of these traffic bursts occurring at intervals is consistent with automated targeting.
- A small amount of traffic might have user agent strings, network protocol options, or other default values strongly associated with ARTEX or the tools it calls. However, threat actors and ARTEX agents frequently change these values, particularly when evading static rules that block such values. The following table shows two such user agent strings specific to ARTEX:
Defensive honeypots, decoys, tarpits, and fake wins can pull autonomous AI attacks away from legitimate targets. Honeypots and decoy surfaces such as Microsoft Sentinel Deception give the agent attractive but worthless targets to pursue. Tarpits consume the agent’s time and budget. Fake wins present convincing evidence that the agent’s objective is complete, which can cause it to stop on a false success. Honeytokens can provide early warnings of AI compute hijacking. In Microsoft’s testing, these controls helped reduce the attack traffic reaching real assets and produced high-confidence, attribution-quality signal.
Identifying ARTEX system activityAfter gaining initial access to a system, ARTEX agents often use well-known risky utilities (for example, certutil, curl, wget, netcat) on the system to launch web shells, install remote access trojans (RATs), or take other action to achieve persistence. Because ARTEX does not take any measures to obfuscate its malicious activity, existing methods for detecting compromise will likely capture ARTEX activity:
- Web server processes (such as w3wp.exe, php-fpm, httpd or apache2, or Java application servers) starting sh, bash, cmd.exe, or PowerShell
- New or modified script files (.php, .jsp, .jspx, .asp, .aspx, or .ashx) in web-accessible or upload directories; this includes files written by a database server process after its logging settings were changed to point a log file at a web directory
- Several short-lived web shells with incrementing names, each running a different command, as ARTEX agents correct errors until a web shell runs cleanly
- Rapid reads of /etc/shadow, .env and configuration files, private keys, and cloud credential files, and bursts of database extraction
- Reverse shells and outbound requests from the server to webhook or file-sharing services used to deliver scripts and return command output
- Two or three attack chains active at once, and renewed attempts through new paths after containment
Microsoft recommends the following mitigations to reduce the impact of this threat. Check the recommendations card for the deployment status of monitored mitigations.
ARTEX doesn’t introduce new attack techniques. It runs common penetration testing tools and tries one approach after another at machine speed. The mitigations that matter most close exposure before scanning finds it, slow down bursts of requests, protect credentials and application secrets, and contain a compromise automatically.
Reduce internet-facing exposure- Find and fix exposed assets first by using Microsoft Defender External Attack Surface Management discovery to inventory the internet-facing hosts, websites, and services you own, including ones you didn’t know about. Then prioritize fixes with Microsoft Defender Vulnerability Management, which shows internet-exposed resources that lead to sensitive data or privileged identities. ARTEX agents start with port scans and web path enumeration and act on whatever they find.
- Block and slow down attacks on web applications and APIs. After tuning in detection mode, switch Web Application Firewall on Application Gateway to prevention mode so that SQL injection and other common web attacks are blocked, not only logged. Add rate limiting on Application Gateway or rate limiting on Azure Front Door to cap how many requests one client can send in a short time, and turn on bot protection to block or log requests from known malicious IP addresses. For APIs in Azure API Management, follow Mitigate OWASP API security top 10 threats to enforce authentication, object-level authorization, and rate limits. ARTEX agents send hundreds of requests to learn which paths a server allows and harvest API documentation to find internal routes, then test them for injection, authentication bypass, and access-control flaws.
- Map what an exposed asset or stolen credential could reach before an agent does. Use attack paths in Microsoft Security Exposure Management and attack path analysis in Defender for Cloud to find defensive choke points, where paths to critical assets converge, and explore the blast radius of each one. Classify your critical assets so the paths are complete, and query the enterprise exposure graph in advanced hunting to explore the same connections. During an incident, blast radius analysis in the incident graph shows the paths an attacker could take from a compromised entity to a critical asset. ARTEX agents record the assets and vulnerabilities they discover in a graph, so mapping your own graph first shows where they would go next.
- Test the paths that matter most, within Microsoft’s rules. Microsoft recommends regular red team operations to complement vulnerability scanning. Agree on the scope and constraints with resource owners and fix all critical findings. Testing of Azure resources must follow the penetration testing rules of engagement, which encourage testing your security monitoring and detection, prohibit automated testing that generates excessive traffic, and prohibit using secrets that aren’t your own, including publicly leaked ones. Agentic tools like ARTEX scan public code repositories for secrets, so decide before testing how testers will handle credentials that belong to someone else.
- Organizations can incorporate Microsoft Perception’s Recon Agent to map relationships between Azure resources, Microsoft Entra ID identities, and permissions to identify potential lateral movement paths, privilege escalation opportunities, and high-value assets accessible following an initial compromise. Recon Agent’s Identify attack paths playbook searches for potential attack paths within an Azure subscription, while the Assess identity risks playbook investigates whether a managed identity could provide a path to critical assets. The Protect against a threat playbook correlates identified exposures with relevant threat intelligence. Because Perception’s Recon Agent performs read-only analysis rather than active exploitation, organizations should complement its findings with authorized penetration testing to validate viable attack paths.
- Run endpoint protection on every internet-facing server and keep it blocking. Use Defender for Endpoint on Linux and the Defender for Servers plan so that the endpoint detections and hunting queries in this report cover the servers that ARTEX agents exploit, including Linux servers. Turn on tamper protection, use EDR in block mode on Windows devices that run a non-Microsoft antivirus product, and turn on the Block Webshell creation for Servers attack surface reduction rule on Exchange servers.
- Restrict outbound connections from web servers. Allow only the destinations each server needs, for example with Azure Firewall threat intelligence-based filtering, and create indicators for IPs, URLs, and domains in Defender for Endpoint to block known-bad destinations. ARTEX agents have used curl and netcat to download remote access trojans, and curl with rotating webhook.site URLs to deliver scripts and return command output.
- Apply Conditional Access to every user and workload identity. Create policies that require multifactor authentication (MFA) for all users, enforce phishing-resistant MFA for administrators, and block legacy authentication. Consider wider adoption of phishing-resistant passwordless authentication deployment to all users. Configure risk policies in Microsoft Entra ID Protection to require MFA or block access for medium-risk and high-risk sign-ins; sign-ins from known threat actor infrastructure, including infrastructure behind ARTEX activity, raise Verified threat actor IP detections at high risk.
- For service principals, use Conditional Access for workload identities to block sign-ins from unexpected locations or with elevated risk; workload identity risk detections flag leaked credentials and suspicious sign-ins, including credentials found in public code on GitHub.
- Ban weak passwords and slow down guessing. Turn on Microsoft Entra Password Protection with a custom banned password list, extend it to on-premises Active Directory, and review smart lockout settings. In one Storm-0940 campaign that used ARTEX, Microsoft recorded more than 151,000 failed sign-ins, peaking at 2,900 failures per minute.
- Keep application secrets out of code and replace any that leak. Use application management policies to limit which kinds of secrets and certificates apps can use and to enforce rotation, and move workloads to managed identities where possible. Turn on secret scanning and push protection for Azure DevOps repositories and secrets scanning in Defender for Cloud for virtual machines and cloud deployments and invalidate and replace any secret found in code or configuration files, including .env files. In one case that Microsoft observed, an AI agent went from searching GitHub for client secrets to taking data from Azure Key Vault in five minutes.
- Govern app registration, consent, and privileged roles by restricting app registration to the users who need it, configuring user consent so that users can’t grant broad permissions to unverified apps, and using app governance in Microsoft Defender for Cloud Apps to see which apps can reach your data. Use Privileged Identity Management for time-bound role activation, and monitor application credential changes and role assignments as described in the Microsoft Entra security operations guide for applications. During Storm-0940 activity, ARTEX agents added credentials to applications, and an application assigned itself the Global Administrator role.
- Limit what a stolen credential or token can reach. Follow best practices for Azure RBAC to limit each service principal to the resources and operations its application needs, and grant managed identities only the access they need so that a token taken from the Azure Instance Metadata Service through an XXE or SSRF flaw can’t reach other resources. ARTEX agents map the permissions of the credentials they capture and have used an XXE flaw to query a cloud metadata service for role credentials, and in one investigation AI agents used a compromised OAuth application to run scripts on Azure virtual machines.
- Harden and monitor the services that hold secrets and data. Follow Secure your Azure Key Vault; for storage accounts, prevent Shared Key authorization and remediate anonymous read access to blob data; disable basic authentication for App Service publishing; and disable local authentication so that Foundry Tools accept only Microsoft Entra ID authentication. Then turn on Defender for Key Vault, Defender for Storage, Defender for Resource Manager, Defender for App Service, Defender for open-source relational databases, and AI threat protection for the workloads you run. ARTEX agents have run commands through cloud administration interfaces such as Kudu when they had credentials for them, and AI agents have focused on credentials for AI services.
- Detect credential theft on domain controllers. Install Microsoft Defender for Identity sensors on all domain controllers. Its alerts, listed in the Detections section, cover the Active Directory credential theft and reconnaissance that ARTEX agents run in compromised domains.
- Remove reusable passwords and standing access. Use group managed service accounts, whose passwords Windows manages automatically, so that service accounts don’t rely on passwords that people choose and rarely change. Use Windows LAPS to rotate each device’s local administrator password so that one captured password doesn’t work across many devices and use just-in-time machine access in Defender for Cloud to keep management ports such as RDP and SSH closed until they’re needed. ARTEX agents reuse captured credentials to move laterally over SSH and WinRM.
- Enable automatic attack disruption to contain compromised assets that an attacker is using and limit lateral movement early, as well as automated investigation and response, which investigates and remediates alerts automatically. In multiple ARTEX-driven Storm-0940 intrusions, privileged access came less than three hours after initial targeting.
Microsoft Defender customers can refer to the list of applicable detections below. Microsoft Defender coordinates detection, prevention, investigation, and response across endpoints, identities, email, apps to provide integrated protection against attacks like the threat discussed in this blog.
Microsoft Defender AntivirusMicrosoft Defender Antivirus detects threat components as the following:
- Behavior:Win64/ArtexAI
The following alerts might indicate threat activity associated with this threat. These alerts, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
Execution
- Process launched in the background
- Suspicious file dropped and launched
- Suspicious file or content ingress
- Hidden file executed
- Suspicious process executed by network service
- Suspicious piped command launched
- Suspicious process launched by service
- Suspicious process launched from a world-writable directory
- Suspicious script launched
- Suspicious shell execution from PHP application
- Suspicious shell command execution
Persistence
- Possible Web Server compromise activity
- Suspicious cron job creation
Defense evasion
- Executable permission added to file or directory
- Obfuscation or deobfuscation activity
- Possible time based evasion
- Suspicious decoding of encoded content into script
- Suspicious file and directory permission modification
- Suspicious file or information obfuscation detected
- Suspicious path deletion
Credential access
- Suspicious access of sensitive files
Discovery
- Suspicious port scan activity
Collection
- Enumeration of files with sensitive data
- Suspicious file copy operations
- Suspicious process collected data from local system
Lateral movement
- Remote Desktop session
Command and control
- Possible reverse shell
- Suspicious connection to remote service
- Suspicious curl behavior
The following alerts might indicate threat activity associated with this threat. These alerts, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
- Possible Kerberoasting attack
- Possible Kerberoasting attack following a suspicious LDAP query
- Possible Kerberoasting attack using a stealthy LDAP search
- Possible Kerberoasting LDAP reconnaissance
- Possible SPN enumeration via LDAP
- DCSync attack (replication of directory services)
- Suspected brute-force attack (Kerberos, NTLM)
- Suspected brute-force attack on Lightweight Directory Access Protocol (LDAP) authentication
- Suspected password spray attack (Kerberos, NTLM)
- Suspected password spray attack on Lightweight Directory Access Protocol (LDAP) authentication
- Suspected account enumeration (Kerberos, NTLM, AD FS)
- Suspicious LDAP query targeting sensitive attributes
- Discovery tool was observed
- Malicious sign in from a randomized user agent
- Possible service principal account secret leak
- Possibly compromised service principal account signed in
- Suspicious service principal sign-in following credential addition
- Suspicious Entra Graph API query observed
Organizations that use classic Defender for Identity alerts see Suspected Kerberos SPN exposure, Suspected DCSync attack (replication of directory services), Account Enumeration reconnaissance (LDAP), and Security principal reconnaissance (LDAP) instead. See Defender for Identity XDR security alerts and Defender for Identity classic security alerts.
Microsoft Entra ID ProtectionThe following risk detections might indicate that an account was targeted or compromised by ARTEX-driven activity. These detections, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
- Verified threat actor IP
- Password spray
- Microsoft Entra threat intelligence
- Malicious IP address
- Anonymous IP address
- Atypical travel
- Unfamiliar sign-in properties
- Leaked credentials
The following workload identity risk detections can indicate that an application identity is compromised:
- Leaked Credentials
- Suspicious Sign-ins
- Anomalous service principal activity
- Microsoft Entra threat intelligence
- Suspicious application
- Malicious application
The following alerts might indicate threat activity associated with this threat. These alerts, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
- Multiple Service Principal Sign-ins from Single IP
- Potentially compromised OAuth application identified through attack activity analysis
- Graph API activity from a Microsoft threat intelligence IP address
- Application self-assigned Global Administrator role
- Account compromised following a password-spray attack
- Anomalous OAuth device code authentication activity
- Suspicious sign-in from verified nation-state threat actor infrastructure
- Malicious sign-in from known threat actor IP address
The following alerts might indicate threat activity associated with this threat. These alerts, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
- Suspicious addition of app role assignments to service principal
- Suspicious addition of application role assignments by service principal to itself
- High-privilege application roles assigned to a service principal
- Suspicious OAuth app registration
- Suspicious mail access activity by OAuth application following role assignment
- Suspicious OAuth application created from a risky user context performing graph SharePoint enumeration
- OAuth application activity from an uncommonly visited ISP
- Activities from suspicious user agents
- Activity from a password-spray associated IP address
- Successful logon from a suspicious IP address
- Multiple failed user log on attempts to an app
The following app governance threat detection alerts might also indicate that an application’s credentials are being abused:
- Application initiating multiple failed KeyVault read activity with no success
- OAuth App using unusual user agent
- Suspicious enumeration activities performed using Microsoft Graph PowerShell
- Dormant OAuth App predominantly using MS Graph or Exchange Web Services recently seen to be accessing ARM workloads
- App accessed from unusual location made anomalous Graph calls post certificate update
- Anomalous SharePoint activity by app that just updated or added new credentials
- Anomalous OneDrive activity by app that just updated or added new credentials
- Unused app newly accessing APIs
Microsoft Defender for Cloud Apps behaviors
Note that some Microsoft Defender for Cloud Apps alerts are transitioning to behaviors, and policies that generate behaviors are now disabled by default, and don’t send alerts.
Access behaviors in the Defender portal Advanced hunting page and use behaviors by querying behavior tables and creating custom detection rules that include behavior data.
The following behavior might also indicate threat activity associated with this threat. This behavior, however, can be triggered by unrelated threat activity and is not monitored in the status cards provided with this report:
- Multiple failed login attempts
In advanced hunting, this behavior has the ActionType MultipleFailedLoginAttempts in the BehaviorInfo and BehaviorEntities tables.
Microsoft Defender for CloudMicrosoft Defender for Key Vault alerts with the following titles might indicate that stolen credentials are being used to read secrets. These alerts, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
- Suspicious secret listing and query in a key vault
- High volume of operations in a key vault
- Unusual operation pattern in a key vault
- Unusual application accessed a key vault
- Unusual user-application pair accessed a key vault
- User accessed high volume of key vaults
- Unusual access denied – User accessing high volume of key vaults denied
- Access from a suspicious IP address to a key vault
- Access from a TOR exit node to a key vault
- Unusual access to the key vault from a suspicious IP (Non-Microsoft or external)
Microsoft Defender for Storage alerts with the following titles might indicate discovery of, or data taken from, Azure Storage. These alerts, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
- Publicly accessible storage containers successfully discovered
- Access from an unusual location to a sensitive blob container
- Unusual amount of data extracted from a storage account
- Access from a suspicious application
Microsoft Defender for Resource Manager alerts with the following titles might indicate Azure management operations from threat actor infrastructure. These alerts, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
- Azure Resource Manager operation from suspicious IP address
- Azure Resource Manager operation from suspicious proxy IP address
- Suspicious Azure role assignment detected (Preview)
Microsoft Defender for Databases alerts with the following titles might indicate SQL injection or brute force attempts against databases. These alerts, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
- Potential SQL injection
- A possible vulnerability to SQL Injection
- Suspected brute force attack
- Suspected successful brute force attack
- Login from a suspicious IP
AI threat protection alerts with the following titles might indicate that stolen keys or credentials are being used against AI services. These alerts, however, can be triggered by unrelated threat activity and are not monitored in the status cards provided with this report:
- Suspicious user agent detected
- Access from suspicious IP
- Access from a Tor IP
- Access anomaly in AI resource
- Suspicious invocation of a high-risk ‘Initial Access’ operation by a service principal detected (AI resources)
- Suspected wallet attack – volume anomaly
The following analytics rules from Microsoft Sentinel solutions might also indicate ARTEX-driven activity. These rules, however, can be triggered by unrelated threat activity:
- Password spray attack against Microsoft Entra ID application (Microsoft Entra ID solution)
- Malformed user agent
- Abnormal Deny Rate for Source IP (Azure Firewall solution)
- Abnormal Port to Protocol (Azure Firewall solution)
Microsoft Security Copilot is embedded in Microsoft Defender and provides security teams with AI-powered capabilities to summarize incidents, analyze files and scripts, summarize identities, use guided responses, and generate device summaries, hunting queries, and incident reports.
Security Copilot is also available as a standalone experience where customers can perform specific security-related tasks, such as incident investigation, user analysis, and vulnerability impact assessment. In addition, Security Copilot offers developer scenarios that allow customers to build, test, publish, and integrate AI agents and plugins to meet unique security needs.
Threat intelligence reportsMicrosoft Defender XDR customers can use the following threat analytics reports in the Defender portal (requires license for at least one Defender XDR product) to get the most up-to-date information about the activity and techniques discussed in this blog. These reports provide intelligence, protection information, and recommended actions to prevent, mitigate, or respond to associated threats found in customer environments.
Microsoft Security Copilot customers can also use the Microsoft Security Copilot integration in Microsoft Defender Threat Intelligence, either in the Security Copilot standalone portal or in the embedded experience in the Microsoft Defender portal to get more information about this threat threat.
Hunting Audit logs and investigation dataDetecting and investigating ARTEX activity depends on logs that some organizations don’t collect by default. An empty result from a hunting query isn’t proof that no access occurred if the underlying logs aren’t collected.
- Microsoft Entra logs. Use Microsoft Entra diagnostic settings to send audit logs and sign-in logs to a Log Analytics workspace. Service principal sign-ins are recorded separately from interactive user sign-ins, so include them.
- Microsoft Graph requests. Microsoft Graph activity logs record the requests that applications and users send to Microsoft Graph, including the user agent, which helps scope reconnaissance with stolen application credentials.
- Web server logs. Collect IIS logs with Azure Monitor and turn on App Service diagnostic logs so that request bursts and user agents are available for hunting.
- Web application firewall activity. Web Application Firewall logs on Application Gateway include access and firewall logs for allowed and blocked requests.
The following prompts may be used in Perception, utilizing red team, blue team, and green team agents within the Microsoft Defender XDR portal.
Focus an investigation on ARTEX-driven activity
Investigate recent Defender XDR evidence of automated intrusion activity consistent with an agentic AI penetration testing framework such as ARTEX. Look for bursts of web requests, scanning, or failed sign-ins from one source; web server processes that run shell commands or download tools such as curl, wget, or netcat; new script files in web folders; reads of credential and secret files; and service principal sign-ins followed by credential changes, privileged role assignments, Microsoft Graph or Azure Resource Manager enumeration, or Key Vault and Storage access. Return prioritized findings with verdict, affected entities, timeline, supporting alerts and incidents, and evidence- based next steps. Separate confirmed evidence from assumptions.Focus triage on ARTEX-driven activity
Find and summarize recent Defender XDR alerts and incidents in which activity from the same source moves from one attack stage to the next within minutes, such as web application exploitation followed by web shell activity, credential access, or cloud identity abuse. Prioritize activity with user agents that contain artex-enrich or norma. Return affected entities, timeline, supporting alerts and incidents, verdict, and evidence-based next steps.
Find and summarize recent Defender XDR alerts and incidents in which activity from the same source moves from one attack stage to the next within minutes, such as web application exploitation followed by web shell activity, credential access, or cloud identity abuse. Prioritize activity with user agents that contain artex-enrich or norma. Return affected entities, timeline, supporting alerts and incidents, verdict, and evidence-based next steps. Microsoft Defender XDRMicrosoft Defender XDR customers can run the following advanced hunting queries to find related activity in their networks. The first three queries require Microsoft Defender for Endpoint on the Windows and Linux servers that host internet-facing applications. The service principal query uses the EntraIdSpnSignInEvents table, which requires Microsoft Entra ID P2.
Web server processes running bursts of shell commands
Find web and application server processes that start shells or download tools many times within five minutes. ARTEX agents run commands through web shells and retry at machine speed and have used curl and netcat to download remote access trojans. Tune the threshold, set to 10 distinct commands by default, and exclude build or automation servers that run shells under Java or Node.js.
// Shells and download tools started by web or application server processes let WebServerProcesses = dynamic(["w3wp.exe", "httpd", "apache2", "nginx", "lighttpd", "java", "node"]); let ShellsAndTools = dynamic(["sh", "bash", "dash", "zsh", "cmd.exe", "powershell.exe", "pwsh", "pwsh.exe", "curl", "wget", "nc", "ncat", "certutil.exe", "python3", "perl"]); DeviceProcessEvents | where InitiatingProcessFileName in~ (WebServerProcesses) or InitiatingProcessFileName startswith "php" | where FileName in~ (ShellsAndTools) | summarize DistinctCommands = dcount(ProcessCommandLine), Tools = make_set(FileName, 20), SampleCommands = make_set(ProcessCommandLine, 25), FirstSeen = min(Timestamp), LastSeen = max(Timestamp) by DeviceId, DeviceName, InitiatingProcessFileName, bin(Timestamp, 5m) | where DistinctCommands >= 10 | order by DistinctCommands descScript files written to web folders by web or database server processes
Find script files, such as .php, .jsp, and .aspx files, that web or database server processes create or change, including several files in a short time. ARTEX agents upload web shells with incrementing names and have written web shells through database log files. Content management system updates also write script files, so review the file names and folders.
// Script files created or changed by web server or database server processes let ScriptExtensions = dynamic(["php", "phtml", "jsp", "jspx", "asp", "aspx", "ashx", "asmx"]); let WebServerProcesses = dynamic(["w3wp.exe", "httpd", "apache2", "nginx", "lighttpd", "java", "node"]); let DatabaseProcesses = dynamic(["mysqld", "mariadbd", "postgres", "sqlservr", "sqlservr.exe"]); DeviceFileEvents | where ActionType in ("FileCreated", "FileModified", "FileRenamed") | extend Extension = tolower(extract(@"\.([^.]+)$", 1, FileName)) | where Extension in (ScriptExtensions) | where InitiatingProcessFileName in~ (WebServerProcesses) or InitiatingProcessFileName in~ (DatabaseProcesses) or InitiatingProcessFileName startswith "php" | summarize Files = dcount(FileName), FileNames = make_set(FileName, 25), Folders = make_set(FolderPath, 10), DatabaseWrites = countif(InitiatingProcessFileName in~ (DatabaseProcesses)) by DeviceId, DeviceName, InitiatingProcessFileName, bin(Timestamp, 10m) | where DatabaseWrites > 0 or Files >= 3 | order by DatabaseWrites desc, Files descCommands that read several kinds of credential and secret files
Find devices where commands reference three or more kinds of credential and secret files within 10 minutes, such as /etc/shadow, .env files, private keys, and cloud credential files. ARTEX agents read these files in rapid succession after they gain a foothold.
// Commands that reference three or more kinds of credential and secret files let SecretFiles = dynamic(["/etc/shadow", ".env", "id_rsa", "id_ecdsa", "id_ed25519", ".aws/credentials", ".azure/", ".kube/config", ".git-credentials", ".pgpass", ".my.cnf", "wp-config.php", "web.config", "appsettings.json"]); DeviceProcessEvents | where ProcessCommandLine has_any ("shadow", "env", "id_rsa", "id_ecdsa", "id_ed25519", "credentials", "azure", "kube", "pgpass", "cnf", "config", "appsettings") | extend SecretFile = SecretFiles | mv-expand SecretFile to typeof(string) | where ProcessCommandLine contains SecretFile | summarize SecretFileTypes = dcount(SecretFile), SecretFilesSeen = make_set(SecretFile), SampleCommands = make_set(ProcessCommandLine, 20), FirstSeen = min(Timestamp) by DeviceId, DeviceName, AccountName, bin(Timestamp, 10m) | where SecretFileTypes >= 3 | order by SecretFileTypes descService principal sign-ins for several applications from one IP address
Find IP addresses that attempt service principal sign-ins for three or more applications in an hour with both failures and successes, or that send the default ARTEX user agents. Agentic tools have used leaked application credentials across many applications and tenants. Error codes 7000215 and 7000222, an invalid or an expired client secret, show attempts with a credential for the application. When a success follows those failures from the same address, investigate right away.
// Service principal sign-ins for several applications from one IP address EntraIdSpnSignInEvents | where IsManagedIdentity == false | summarize ServicePrincipals = dcount(ServicePrincipalId), SucceededFor = dcountif(ServicePrincipalId, ErrorCode == 0), FailedSignIns = countif(ErrorCode != 0), InvalidOrExpiredSecret = countif(ErrorCode in (7000215, 7000222)), ArtexUserAgent = countif(UserAgent has_any ("artex", "norma")), Applications = make_set(ServicePrincipalName, 20), Resources = make_set(ResourceDisplayName, 20), UserAgents = make_set(UserAgent, 10), FirstSeen = min(Timestamp), LastSeen = max(Timestamp) by IPAddress, bin(Timestamp, 1h) | where (ServicePrincipals >= 3 and SucceededFor >= 1 and FailedSignIns >= 1) or ArtexUserAgent > 0 | order by ServicePrincipals desc Microsoft SentinelThese queries require Microsoft Entra ID audit logs, and IIS logs, App Service HTTP logs, or Application Gateway access logs in the workspace.
Machine-speed web request bursts and default ARTEX user agents
Find client IP addresses that request 100 or more distinct paths with 50 or more client errors in one minute, or that send the default ARTEX user agents, artex-enrich and norma. The query also flags the default user agents of tools that ARTEX runs, such as curl, Wget, Python HTTP clients, headless Chromium, and Nmap. Those are common in legitimate automation, so don’t alert on them alone.
// Requests per client IP per minute, with default ARTEX and tool user agents flagged union isfuzzy=true (W3CIISLog | project TimeGenerated, LogSource = "IIS", ClientIP = cIP, Path = csUriStem, Status = tostring(scStatus), UserAgent = csUserAgent, Target = Computer), (AppServiceHTTPLogs | project TimeGenerated, LogSource = "App Service", ClientIP = CIp, Path = CsUriStem, Status = tostring(ScStatus), UserAgent, Target = CsHost), (AGWAccessLogs | project TimeGenerated, LogSource = "Application Gateway", ClientIP = ClientIp, Path = RequestUri, Status = tostring(HttpStatus), UserAgent, Target = Host) | extend AgentType = case( UserAgent has_any ("artex", "norma"), "ARTEX default", UserAgent matches regex @"^(curl|Wget|python-requests|Python-urllib|Go-http-client)/", "Tool default", UserAgent has_any ("HeadlessChrome", "Nmap"), "Tool default", "Other") | summarize Requests = count(), DistinctPaths = dcount(Path), ClientErrors = countif(Status startswith "4"), ArtexAgentRequests = countif(AgentType == "ARTEX default"), ToolAgentRequests = countif(AgentType == "Tool default"), UserAgents = make_set(UserAgent, 10), Targets = make_set(Target, 10) by ClientIP, LogSource, bin(TimeGenerated, 1m) | where ArtexAgentRequests > 0 or (DistinctPaths >= 100 and ClientErrors >= 50) | order by ArtexAgentRequests desc, DistinctPaths descApplication credential changes and role assignments by the same identity
Find users or applications that both add or change application credentials and assign directory roles or application permissions within an hour. During Storm-0940 activity, ARTEX agents added credentials to applications, and an application assigned itself the Global Administrator role.
// Credential changes and role assignments made by the same identity within an hour AuditLogs | where Result =~ "success" | where OperationName in ("Add service principal credentials", "Add member to role", "Add app role assignment to service principal") or OperationName contains "Certificates and secrets management" | extend Stage = iff(OperationName has_any ("credentials", "Certificates"), "Credential", "Role") | extend ActorUpn = tostring(InitiatedBy.user.userPrincipalName), ActorServicePrincipalId = tostring(InitiatedBy.app.servicePrincipalId), ActorAppId = tostring(InitiatedBy.app.appId), TargetName = tostring(TargetResources[0].displayName) | extend Actor = coalesce(ActorUpn, ActorServicePrincipalId, ActorAppId) | summarize Stages = make_set(Stage), Operations = make_set(OperationName), Targets = make_set(TargetName, 20), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by Actor, ActorAppId, bin(TimeGenerated, 1h) | where array_length(Stages) == 2 | order by FirstSeen desc MITRE ATT&CK techniquesThis tool has exhibited use of the following attack techniques. For standard industry documentation about these techniques, refer to the MITRE ATT&CK framework.
Resource Development
- T1588.007 Obtain Capabilities: Artificial Intelligence | Threat actors obtain ARTEX from public repositories or forks and pair it with commercial or self-hosted LLMs.
- T1588.002 Obtain Capabilities: Tool | ARTEX agents install offensive tools at runtime or write equivalent scripts.
Reconnaissance
- T1595.001 Active Scanning: Scanning IP Blocks | ARTEX runs nmap for port and service scanning.
- T1595.002 Active Scanning: Vulnerability Scanning | ARTEX agents probe web applications and APIs for injection, authentication, and access-control weaknesses.
- T1595.003 Active Scanning: Wordlist Scanning | ARTEX agents enumerate directories, endpoints, and file names, sending hundreds of requests to learn which ones the server allows.
- T1594 Search Victim-Owned Websites | ARTEX agents harvest JavaScript bundles, source maps, runtime configuration, and API documentation from target applications to discover internal API routes, and ARTEX’s enrichment component collects page titles from discovered sites.
Initial Access
- T1190 Exploit Public-Facing Application | ARTEX agents exploit injection, file upload, authentication, and access-control flaws in internet-facing applications.
- T1078 Valid Accounts | ARTEX reuses credentials that it captures, or that the operator supplies, against applications, hosts, and services.
- T1078.004 Valid Accounts: Cloud Accounts | ARTEX agents authenticated to Microsoft 365 tenants with stolen application credentials that Storm-0940 supplied.
- T1199 Trusted Relationship | ARTEX agents reached downstream tenants through an already-consented third-party application whose credentials Storm-0940 had stolen.
Execution
- T1059 Command and Scripting Interpreter | ARTEX runs shell, Python, and PowerShell commands on compromised servers through command injection, web shells, and remote shells.
- T1651 Cloud Administration Command | ARTEX agents have run commands through cloud administration interfaces, such as Kudu, when they had credentials for them.
Persistence
- T1505.003 Server Software Component: Web Shell | ARTEX uploads web shells, or writes them through database logging, and then sends commands to them.
- T1098.001 Account Manipulation: Additional Cloud Credentials | ARTEX agents added credentials to applications to maintain access during Storm-0940 activity.
Privilege Escalation
- T1098.003 Account Manipulation: Additional Cloud Roles | ARTEX agents assigned privileged roles during Storm-0940 activity, including an application assigning itself the Global Administrator role.
Credential Access
- T1110.001 Brute Force: Password Guessing | ARTEX tests weak passwords and brute forces sign-in forms.
- T1110.003 Brute Force: Password Spraying | Storm-0940 used ARTEX to accelerate password spraying against Microsoft 365, and other actors have used it to spray identity providers.
- T1552.001 Unsecured Credentials: Credentials In Files | ARTEX reads .env files, configuration files, and keys after gaining a foothold.
- T1003.008 OS Credential Dumping: /etc/passwd and /etc/shadow | ARTEX reads /etc/shadow on compromised Linux servers.
- T1552.005 Unsecured Credentials: Cloud Instance Metadata API | ARTEX agents have used an XXE flaw to query a cloud metadata service for role credentials.
- T1558.003 Steal or Forge Kerberos Tickets: Kerberoasting | ARTEX agents run Kerberoasting scripts in compromised domains.
- T1003.006 OS Credential Dumping: DCSync | ARTEX agents run DCSync scripts to obtain domain credentials.
Discovery
- T1087.004 Account Discovery: Cloud Account | ARTEX agents performed Microsoft Graph and directory reconnaissance during Storm-0940 activity.
- T1087.002 Account Discovery: Domain Account | ARTEX agents enumerate Active Directory objects, including privileged groups.
- T1580 Cloud Infrastructure Discovery | ARTEX agents map the permissions of stolen cloud credentials and enumerate cloud resources.
Lateral Movement
- T1021 Remote Services | ARTEX agents capture credentials for other reachable systems and move laterally through remote services such as Secure Shell (SSH) and WinRM.
Collection
- T1213.006 Data from Information Repositories: Databases | ARTEX extracts database contents through SQL injection, such as with sqlmap, or with database clients.
- T1530 Data from Cloud Storage | ARTEX agents perform mass reads from cloud storage with stolen credentials.
Command and Control
- T1090 Proxy | ARTEX can send target traffic through a configured outbound proxy. Threat actors have rotated through virtual private network (VPN), proxy, and Tor infrastructure when blocked.
- T1102.002 Web Service: Bidirectional Communication | ARTEX agents have used curl with rotating webhook.site URLs to deliver scripts to a compromised server and return command output.
- AI-driven, large-scale nation-state campaign using ARTEX enables supply chain compromise. Microsoft
- ARTEX abuse expands as cybercriminals target financial sector. Microsoft
- Threat actors use agentic AI tooling to find and abuse exposed secrets. Microsoft
- AI, Scripts, Operator: Inside the ConnectWise Attack. Huntress
- ARTEX in the Wild: Storm-0940 Expands Targeting of IT and Software Vendors. Wiz
- ARTEX and Friends: Enter Agentic Offensive Frameworks. Google Threat Intelligence Group
- VAPOR PANDA Uses AI-Driven ARTEX to Scale a Global Espionage Campaign. CrowdStrike
- Unknown Threat Actor Uses AI-Driven ARTEX to Target South Korean Finance. CrowdStrike
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
The post What defenders need to know about ARTEX, the agentic AI framework threat actors abuse appeared first on Microsoft Security Blog.
Microsoft named a Leader in the 2026 Gartner® Magic Quadrant™ for Email Security
We’re honored to share that Microsoft has once again been named a Leader in the 2026 Gartner® Magic Quadrant™ for Email Security.
AI is changing the threat landscape and this is shifting how organizations think about their existing security strategy. In response, we’ve invested in two areas over the past year: using AI to protect people and the agents that now read their email and making protection measurable so customers can verify that it works.
AI is changing both sides of the inboxThe first area of investment starts with a simple reality: AI now reads email alongside people, attackers are using AI to target both, and defense must use AI to stay ahead. Picture an ordinary vendor email: a meeting recap, a few action items, and a friendly sign-off. Hidden in white text on a white background is prompt injection: an instruction telling an AI assistant to gather financial documents and send them to an outside address. The employee isn’t the target; their AI agent is. People can be persuaded by messages that exploit fear, trust, or urgency, but agents don’t need persuading. Once an agent acts on an instruction, pulling the message back won’t undo it. This is why Microsoft Defender stops malicious messages before delivery and keeps reevaluating delivered mail as new intelligence comes in.
This summer, we introduced prompt injection protection for email in Defender to detect and quarantine messages carrying hidden malicious AI instructions before they reach Microsoft Copilot or other agents. In Defender, analysts can also see what an agent would see: the ‘Show concealed text’ button on the ‘Email Entity’ page reveals hidden content in the email preview, so they can inspect the instructions an agent could encounter. These attacks don’t show up often, yet. Over a four-week timeframe, we caught almost 10,000 prompt injection attempts, around 330 a day, out of the billions of emails Defender scans every day. The hard part is spotting those few without tripping over legitimate mail, so we don’t lean on a single model. Heuristics clear out the bulk first. What’s left goes to a fine-tuned small language model, and only the messages that still look suspicious reach a large language model for the final call. Saving the heaviest analysis for the smallest set of messages is what keeps false positives low and business email moving.
AI is also reshaping the attacks aimed at people. The phishing emails that worry us most are the ones that look completely normal. No malicious link, no infected attachment, just a plausible request written with perfect grammar and the right context. Generative AI makes those messages cheap to produce and endlessly variable. To meet that shift, we rebuilt how Microsoft Defender makes decisions rather than simply adding another filter. That decision-making now operates at scale, screening 5.2 billion emails a day on average1. The redesigned detection stack combines multiple machine learning models and LLM-based classifiers, with an ensemble model weighing their outputs to determine the final verdict. It also uses natural language processing signals, including message topic, to judge what a message is asking for and not only what it contains. That helps Defender catch attacks more accurately.
While detection helps with the message in front of you, defenders also need to see how it connects to the rest of an attack. Microsoft Perception extends that help beyond the message, connecting an email investigation to the broader exposure and response picture. Blue team agents investigate threats and improve detections, red team agents identify paths to compromise, and green team agents prioritize actions to close security gaps, while people retain control of critical decisions. The Integrated Security Operations Center (ISOC) in Microsoft Defender, launched in September, provides a shared foundation for people and AI agents to investigate and respond to the full attack—not just an isolated email. By bringing security information and event management (SIEM) and extended detection and response (XDR) together, it connects email signals with endpoint, identity, cloud, and third-party data, giving AI-assisted security operations broader context.
Proof over promises: Making protection measurableBut using AI to defend only matters if customers can verify that it works. The second investment area is one the whole industry has struggled with: how do you know your email security is actually working? Detection claims are easy to make and hard to verify, so we publish the data.
Since July 2025, we’ve released quarterly email security benchmarking reports built on real-world threats, not synthetic tests. They compare environments protected by Microsoft Defender alone with those that add a secure email gateway in front of it or an integrated cloud email security (ICES) layer behind it. We believe transparency strengthens the whole market, and an industry that measures itself in the open improves faster.
While benchmarking shows how protection performs across organizations, the Protection & Posture Insights report shows how it performs in yours. This on-demand, tenant-specific report helps security leaders understand which threats target their organization, how well Microsoft Defender stops them, and where configuration can be strengthened. Recent updates show URL clicks checked and malicious-site attempts blocked across email, Microsoft Teams, Office apps, and Microsoft Copilot, and also highlight allow lists and overrides that may be letting threats through. Together, benchmarking and tenant-specific insights give leaders evidence to evaluate protection and identify opportunities to strengthen it.
We’re grateful to our customers, partners, and the analyst community for their trust, and to the teams turning insight into protection. Our engineers start with customer problems, while our researchers draw on more than 165 trillion signals a day across Microsoft to anticipate emerging threats and build protections before real-world examples appear2. This recognition from Gartner is a milestone for us, not the finish line. Our focus remains on protecting people and agents and giving customers evidence they can use to evaluate their defenses.
Learn more- Explore the latest Microsoft Defender email security benchmarking results.
- Are you a regular user of Microsoft Defender for email security? Share your insights on Gartner Peer Insights™.
Gartner, Magic Quadrant for Email Security, By Max Taggett, Franz Hinner, Deepak Mishra, 23 November 2026
Gartner, Magic Quadrant, Peer Insights are trademarks of Gartner, Inc., and/or its affiliates.
Gartner does not endorse any company, vendor, product or service depicted in its publications, and does not advise technology users to select only those vendors with the highest ratings or other designation. Gartner publications consist of the opinions of Gartner’s business and technology insights organization and should not be construed as statements of fact. Gartner disclaims all warranties, expressed or implied, with respect to this publication, including any warranties of merchantability or fitness for a particular purpose.
1,2 Microsoft Digital Defense Report 2026.
The post Microsoft named a Leader in the 2026 Gartner® Magic Quadrant™ for Email Security appeared first on Microsoft Security Blog.
Microsoft named a Leader in the 2026 Gartner® Magic Quadrant™ for SIEM
We’re honored that Microsoft has once again been recognized as a Leader in the 2026 Gartner® Magic Quadrant™ for Security Information and Event Management (SIEM).
As security environments grow more complex and attackers move faster, organizations need more than the ability to collect and analyze data. They need comprehensive visibility, context to understand what is happening, and the ability to act before an attack causes further damage.
Explore Microsoft Sentinel SIEM capabilities Comprehensive SIEM across the digital estateMicrosoft Sentinel is our cloud-native SIEM, bringing together security data, advanced analytics, automation, and threat intelligence to help organizations protect their digital estate.
With more than 500 connectors across Microsoft and third-party solutions, Microsoft Sentinel brings together signals from across complex, multicloud environments. Its rich library of out-of-the-box detections, informed by Microsoft’s threat intelligence and organizational context, helps defenders identify sophisticated threats without building every detection from scratch.
Microsoft Sentinel supports the core capabilities security teams depend on, from scalable security data management and advanced detection to threat hunting, investigation, and response. The Microsoft Sentinel data lake centralizes historical and real-time security data across platforms and clouds for cost-effective retention and advanced analytics at scale. Security operations center (SOC) optimization and cost management help teams improve coverage, identify detection gaps, and make informed decisions about the data they collect and retain.
Reimagining security operations for the agentic eraOn September 23, 2026, Microsoft introduced the Integrated Security Operations Center (ISOC) in Microsoft Defender, reimagining security operations for the agentic era. As threats grow more sophisticated and security environments more complex, traditional approaches built on disconnected tools and workflows can no longer keep pace. ISOC brings security operations and threat protection together, creating a unified foundation where people and AI agents can see, understand, and act across the environment.
Through deep integration with Microsoft Sentinel, ISOC combines the full breadth of SIEM capabilities with extended detection and response (XDR), threat intelligence, posture management, and response. By connecting signals from Microsoft and third-party environments with rich security context and coordinated action, ISOC enables security teams to move beyond fragmented investigations toward faster, more proactive protection. Rather than operating as separate tools, the security stack works as one system, providing the foundation for agentic security.
Attack disruption demonstrates what this integrated approach makes possible. Microsoft Defender correlates signals across Microsoft and third-party environments with threat intelligence to identify high-confidence attacks in progress and automatically contain compromised users and devices before threats spread. This includes ransomware, business email compromise, and adversary-in-the-middle attacks. Across customers, ransomware attacks are disrupted in just 30 seconds on average.
Together, these capabilities demonstrate how Microsoft is moving security operations beyond detection and response toward an integrated, agentic approach that helps organizations anticipate, investigate, and stop threats faster.
A shared foundation for people and agentsAI is becoming part of how security teams work every day. Microsoft Sentinel combines advanced analytics, machine learning, and automation to help analysts use natural language to hunt for threats, generate response playbooks, support alert triage, analyze complex signals, and accelerate investigations. These capabilities reduce manual work and give defenders more time to focus on the threats and decisions that matter most.
By enabling SIEM and native protection to operate as one system, ISOC gives people and AI agents a shared foundation to see, understand, and act across the environment. Agents bring speed and scale to continuous security operations, while people provide expertise, judgment, and accountability.
Together, they can move beyond traditional, linear workflows toward continuous detection, investigation, and attack disruption. As agents take on more security operations workflows, comprehensive data, and rich context, the ability to act becomes even more important to helping organizations stop threats faster and deliver better security outcomes.
Looking aheadThe future of SIEM is about more than managing security data. It’s about ensuring your SIEM is a core building block of the agentic SOC, bringing together security data, intelligence, AI, and native protection so people and agents can understand threats sooner, act faster, and stop attacks before they spread.
We’ll continue investing in the comprehensive SIEM capabilities customers rely on while advancing integrated, agentic security operations in Microsoft Defender. We’re grateful for the Gartner recognition and for the customers, partners, and security community whose feedback continues to shape Microsoft Sentinel.
Learn more- Explore Microsoft Sentinel.
- Learn about the Integrated Security Operations Center in Microsoft Defender.
To learn more about Microsoft Security solutions, visit our website. Bookmark the Security blog to keep up with our expert coverage on security matters. Also, follow us on LinkedIn (Microsoft Security) and X (@MSFTSecurity) for the latest news and updates on cybersecurity.
The post Microsoft named a Leader in the 2026 Gartner® Magic Quadrant™ for SIEM appeared first on Microsoft Security Blog.
Security for the agentic era, powered by Microsoft Perception
- A new cyber stack, built to fight AI with AI
- Delivering agentic security at Microsoft Ignite
- Secure your foundations
- Defend with agents
- Secure agentic insiders
- Changing how security work gets done
- Explore what's new
A year ago, finding a serious, exploitable vulnerability was slow and expensive work done by elite security researchers. That’s no longer true. Over the past 12 months, frontier AI models have become remarkably good at discovering and exploiting software vulnerabilities, and similar levels of capability are quickly becoming available in open weights models with limited cyber guardrails. Attacks that once required specialized resources are now within reach of almost anyone.
We saw what that looks like in a single week this fall when PHP disclosed two critical remote code execution (RCE) vulnerabilities, flaws that let an attacker take control of a server with a single request over the internet.1 At the time of disclosure, tens of millions of internet-facing PHP services were running affected versions. Nearly two weeks later, about 29 million services remained vulnerable. Behind those servers are banks, healthcare providers, energy companies, and much of the infrastructure the internet runs on. And that same day brought five other major disclosures across the industry.
Explore coordinated agents and shared intelligence with Microsoft PerceptionTurning a flaw like the PHP one into a working attack once took a specialist team months. Within roughly a day of PHP2Shell’s disclosure, security researchers had developed a working, weaponized exploit. By the following week, that research had expanded to cover additional PHP versions and configurations. The time from discovery to exploit is shrinking from months to minutes.
The physics of cybersecurity are changing, and fast.
- AI is amplifying risk. Attackers can now find and exploit gaps faster than defenders can close them.
- Attacks are becoming fully automated. AI has moved from assisting attackers, to executing their tasks, to planning and running entire campaigns on its own.
- Agents are the new insiders. While not inherently malicious, they perform tasks and business workflows at machine speed, around the clock, and have broad access to data, apps, tools, and other agents. Like any insider, they can make mistakes, be manipulated, or be compromised.
What we built for humans does not scale for AI. Frontier Transformation starts with business outcomes and a simple idea: technology was invented to serve humanity, not the other way around. To help organizations bring their ideas to life and innovate safely in the agentic era, we need a new cyber stack, built for agentic security.
A new cyber stack, built to fight AI with AIThe Microsoft cyber stack has three layers:
- Signals, sensors, and actuators. This foundational layer is powered by sensors and actuators in Microsoft Defender, Microsoft Entra, Microsoft Intune, Microsoft Purview, Microsoft Sentinel, the network, the operating system, the browser, and our hyperscale cloud. Sensors tell you something is wrong. Actuators let you do something about it: contain a device on the network, revoke an identity’s access, or block an agent at the authorization layer. And because we know we’re not the only security solution provider in your environment, we connect to the wider ecosystem through more than 500 connectors. Together, Microsoft and partner sources produce more than 165 trillion signals a day,2 which, enriched by Microsoft and customer threat intelligence, fuel the context layer.
- Context. This layer organizes those signals, together with each customer’s own environment, into agent-ready, real-time understanding of the digital estate that is optimized for precision, recall, and token efficiency.
- Agents, harness, and models. On top are specialized security agents that work together as teams through playbooks, directed by a harness, and a multi-model approach that uses the right model for each task, designed to ensure effective and efficient security outcomes, at scale.
At Microsoft Ignite 2026, we’re delivering innovation across every layer of the stack. It starts with Microsoft Perception, now generally available.
Perception brings the top of the stack together. It orchestrates red, blue, and green team agents through playbooks, working together in a closed loop to deliver security outcomes. Red team agents simulate attacks from an attacker’s perspective before a breach occurs. Blue team agents detect, triage alerts, and investigate attacks, freeing analysts to focus on the critical decisions that matter most. Green team agents fix and remediate.
Perception is built to help security teams move at machine speed, drive outcomes rather than tasks, and automate while staying in control. Your team sets the guardrails and signs off on high-impact actions, and automated triggers launch playbooks when an incident meets the criteria you set. New cost management dashboards and a cost estimator help you track AI usage, forecast spending, and connect costs to measurable security outcomes.
Agents are only as good as what they can see and what they can do. That’s why we are investing as much in the foundation as in the layers above it.
Read the Microsoft Perception Tech Community blogIntegrated Security Operations Center (ISOC) in Microsoft Defender, generally available for core capabilities, is part of that foundation. ISOC brings security information and event management (SIEM) capabilities, user and entity behavior analytics (UEBA), threat intelligence, and threat protection and disruption together so you can start your journey to the agentic security operations center (SOC). Eligible Defender Suite, Microsoft 365 E5, and Microsoft 365 E7 customers receive all Microsoft Sentinel SIEM features, 90-day default data retention for Defender data, more than 500 connectors, reduced ingestion rates, and a built-in data lake. The complete breadth of SIEM capabilities is now in preview.
Learn more about the latest updates in Microsoft Defender and Microsoft SentinelRead on to learn how Microsoft Perception, ISOC in Defender, and new capabilities across the stack work together to help customers secure their foundations, secure agentic insiders, and defend with agents.
Secure your foundationsDefending against AI-speed attacks starts with closing the doors attackers walk through first, and the scale of that work is increasing. In 2026, more than 96,000 vulnerabilities3 have been published to the CVE (Common Vulnerabilities and Exposures) Program, more than double 2024’s roughly 40,000 and more than 20 times the level of 2010,4 driven in part by AI-assisted vulnerability discovery tools.
Yet only 26% of vulnerabilities in the Cybersecurity and Infrastructure Security Agency (CISA) Known Exploited Vulnerabilities catalog were remediated in 2025, as remediation typically extends into weeks and months. AI finds those gaps faster than teams can close them. Today we’re announcing new capabilities to help.
- Strengthen your security foundation with Perception. In preview in January 2027, new AI Readiness Initiatives in Perception turn Secure Now guidance into actionable plans with shared progress tracking, helping organizations close critical security gaps, and prepare for AI adoption. Initiatives focus on scenarios that help reduce AI-amplified risk such as modernizing authentication and deploying monthly updates.
- Prioritize and reduce exposure with Perception agents and playbooks. Focus on the risks that matter most and coordinate remediation using threat intelligence and business context. Two new playbooks bring together green team agents, including the Posture Prioritization Agent, now generally available, and the Risk Reduction Agent, now in public preview. Coverage spans Microsoft, Amazon Web Services (AWS), and Google Cloud.
- Vulnerability shielding, available in preview, helps protect vulnerable assets from exploitation by applying targeted, temporary protection to buy defenders time before they can apply a permanent patch. During routine operations the Risk Reduction Agent proactively suggests shielding when patches aren’t immediately available. During an active attack, vulnerability shielding helps reduce exposure to certain vulnerabilities by applying targeted, temporary protections while organizations prepare immediate remediation. In supported scenarios, these protections can include adjustments to network accessibility and permissions to help limit exposure.
- Secure data across humans and agents with Microsoft Purview. Enhanced data classification drives precise protection with less manual effort, generally available in January 2027. Also entering preview in January: grounding protection for Copilot based on sensitive information types, which lets customers adopt Copilot without labeling every file first, and expanded data loss prevention (DLP) controls for prompts to Copilot and local agents running on Windows, which help protect sensitive data from leaking while customers use AI. Learn how Microsoft Purview accelerates data protection for the AI era.
A SOC where people work through a queue of alerts by hand can’t keep up with increasingly autonomous attacks. Perception brings specialized red, blue, and green agents, and playbooks that automate common SecOps workflows, so defenders can get ahead.
- Stop threats at machine speed with new Perception playbooks and agents. Accelerate threat detection, investigation, and response with new playbooks and four blue team agents, now generally available: Alert Triage Agent, Attack Investigation Agent, Detection Authoring Agent, and Threat Intelligence Agent. Helping teams move from detection to response faster, with less manual effort.
- Stay ahead of attackers with new Perception playbooks and agents. Proactively find and validate weaknesses with playbooks that coordinate red team agents, including the Recon Agent, now generally available, and the Web App Pen Test Agent, now in preview, helping security teams identify and address vulnerabilities before attackers can exploit them.
- Use Perception in your flow of work. Teams can now invoke Perception playbooks in Defender, connect through Model Context Protocol (MCP) and APIs to SIEM, security orchestration, automation, and response (SOAR), and IT service management tools, and bring in signals from AWS, Okta, and Salesforce. These integrations are in preview.
We are also expanding the preview of Codename MDASH, our agentic code scanner, which helps customers find and fix vulnerabilities. MDASH can now analyze repositories up to 5 GB, run in regulated clouds, and MDASH code scans can be used by the Web App Pen Test Agent to prioritize and fix vulnerabilities. MDASH adds more of the MAI Cyber family, including MAI Cyber 1.1 Flash and MAI-Cyber-2 in preview,5 improving efficiency while maintaining the quality of security findings. Learn more about MAI-Cyber-2.
Sign up to explore Codename MDASH with optional MAI Cyber 1.1 Flash access Secure agentic insidersAgents are the new insiders. They operate continuously, collaborate with other agents, change shape, and pursue goals in ways that can surprise the people who deployed them. To mitigate this risk we must discover agents, onboard them to management, secure and contain them, and do it continuously—even as their behavior and context change. Building on our October 2026 announcement, at Ignite we are introducing new capabilities to help customers secure agentic insiders, around the clock.
- Continuously contain agentic insiders with new Perception playbooks and agents. Investigate and remediate AI posture risks and anomalous agent behavior with new playbooks and green team agents. Microsoft Entra ID Governance dynamic permissions grant task-scoped, time-bound access, while Conditional Access dynamic controls adjust protections as risk changes. These capabilities remain in limited preview.
- Discover, govern, and secure agents with Microsoft Agent 365 and Microsoft Entra Suite capabilities for agentic insiders. Discovery expands by 35 local agent types, to 60 in total, including Claude Code, OpenAI Codex, and GitHub Copilot, plus third-party cloud agents on AWS and Google Cloud. Discovered agents receive a Microsoft Entra Agent ID and can be governed with Conditional Access. Intune policies contain supported local agents on the device. Additionally, Microsoft Autopilot agents get their own Agent user account and ID, so admins can enable Conditional Access, ID Protection, and access governance to the work an Autopilot does under its own identity. Defender and Microsoft Purview Data Loss Prevention protect runtime and sensitive data access, and Dynamic Agent Risk assesses each agent’s exposure, blast radius, and runtime behavior. Available in preview.
While these capabilities can enable customers to secure and contain agents, they will not give them insight into how the model behind an agent behaves. Without that visibility it is hard for customers to answer three basic questions about consequential AI activity:
- What was the AI asked and authorized to do?
- What happened between the request and the outcome?
- Can we independently verify it?
That’s why Microsoft is announcing the next phase of our commitment to responsible AI: the AI Transparency Initiative. We believe every organization should be able to see what its AI accesses and does, independently verify those actions, and control what it is permitted to do, whatever model or provider it runs on. To that end, we are expanding our participation in the National Institute of Standards and Technology’s (NIST) SI Agent Standards Initiative,6 plus drawing on our own research to develop open, industry-wide standards for AI transparency, security, and governance. We’re shaping this approach with more than 40 organizations including Accenture, Adobe, KPMG, Mastercard, and Volvo Cars. And we will implement this work across Microsoft AI models and products, including Microsoft Foundry and Copilot.
The more agency we give AI, the more transparency we should expect in return.
Sign up to help shape the AI Transparency Initiative Changing how security work gets doneAI is changing how attacks happen, and how security work gets done. Developers, IT, and security teams now share responsibility for building, managing, and securing AI, so Microsoft Foundry, Microsoft Agent 365, and Perception share the same signals and context. Inside the SOC, analysts need agents to defend at machine speed, which is why we’re building agentic security into the tools they already use.
Technology alone won’t get us there. Securing our own environment through the Secure Future Initiative has taught us a great deal, and our Frontier Security Engineers, services teams, and partners are working side by side with customers to put those lessons to work.
Join us at Microsoft Ignite, online or in person, to learn how Microsoft Perception, ISOC in Defender and new capabilities across the stack can help secure your organization at machine speed. We’d love to see you there.
Explore what’s new- Secure Now.
- Microsoft Perception.
- ISOC in Microsoft Defender.
- Codename MDASH Partnership.
- Introducing MAI-Cyber-2.
- Secure Agentic Insiders.
- Learn how Microsoft Purview accelerates data protection for the AI era.
- AI is changing access. See how Microsoft Entra helps you stay ahead.
- See how Intune extends endpoint management, supports AI governance on devices, and helps administrators respond to exposure findings.
To learn more about Microsoft Security solutions, visit our website. Bookmark the Security blog to keep up with our expert coverage on security matters. Also, follow us on LinkedIn (Microsoft Security) and X (@MSFTSecurity) for the latest news and updates on cybersecurity.
22026 Microsoft Digital Defense Report—Decoding emergence.
3https://cvetodo.com/2026-cves.
4CVE: Common Vulnerabilities and Exposures.
5Signing up does not guarantee access. Submissions are reviewed, and customers are onboarded based on need and prioritization. Customers should work with their account team to be formally nominated for the preview.
6SI Agent Standards Initiative | NIST.
The post Security for the agentic era, powered by Microsoft Perception appeared first on Microsoft Security Blog.
The risks of device code authentication for AI coding agents
- From a familiar phishing technique to an AI coding agent
- How the attack works
- One approval, four ways the impact can spread
- Turning a phishing attempt into a Defender signal
- Mitigation and protection guidance
- References
- Learn More
Device code phishing has become a recurring route to account takeover. Instead of stealing a password, an attacker persuades someone to approve a sign-in on a legitimate site simply by entering a code. The resulting access often can reach email, files, or other cloud services, depending on the account and the permissions granted. Notable earlier campaigns such as EvilTokens show how readily this technique can be scaled to do real damage. Microsoft worked hard with partners in industry and law enforcement to disrupt EvilTokens in September 2026.
That led us to a different question: what else can an attacker do with a phished device code authorization? What happens when the same trick targets an AI agent rather than a mailbox?
We used GitHub Copilot CLI as an illustrative example. Depending on its configuration, it can work with code, run commands on a user’s machine, retain context across sessions, and allow an active session to be steered remotely. Like many command-line tools, it supports the OAuth device flow for sign-in. The phishing technique itself is not specific to GitHub or Copilot CLI: any public client that supports the device flow can be abused the same way, and the attacker chooses the requested scopes when starting the flow.
We explored this scenario in a controlled lab simulation. A victim test account approved a GitHub device-code request initiated by an attacker client we controlled. With that approval, we were able to analyze four possible outcomes:
- Steer an active Copilot CLI session remotely, if the user has enabled remote control and organization policy allows it, and, subject to local permissions and approval settings, have the agent run commands on the user’s machine.
- Add misleading entries to the agent’s memory that could influence later interactions.
- Read Copilot CLI sessions that were synchronized to the cloud.
- Access private repositories available to the affected account.
These are proof-of-concept results showing how existing features, working as designed, could be abused after a phished authorization; they are not attacks we have observed in the wild. These outcomes require the victim user to approve a device code request initiated by the attacker; each outcome also depends on the account permissions and enabled features described below.
Later in this post, we show how Microsoft Defender helps detect these attacks by connecting phishing attempts with GitHub authentication activity, and how organizations can disrupt suspicious access to protect affected identities.
From a familiar phishing technique to an AI coding agentThe OAuth device flow helps clients such as command-line tools sign in without displaying a full browser. A client requests a short code; the user enters it on the service’s verification page; the requesting client receives access after approval. In device code phishing, the attacker starts the request and persuades someone else to approve it.
Microsoft has reported device code phishing against accounts in several campaigns, including Storm-2372, an AI-enabled campaign in 2026, and EvilTokens. Those cases motivated us to examine a different target: a coding agent that can work with repositories and, when remote control is enabled, expose an active session to remote interaction.
The remainder of this post describes a controlled GitHub Copilot CLI simulation; we have not observed the four outcomes below in those campaigns or in the wild.
How the attack works Figure 1. A user approves a legitimate GitHub device-code request that was initiated by the attacker-controlled client. Conceptual illustration.- Initiate: The attacker starts a device-code sign-in request. In our simulation, we used the Copilot CLI client, but any device-flow client could be used.
- Lure: The attacker sends the short code and GitHub verification link to the user, for example under the pretext of an IT request or a Copilot license check. The verification page is genuinely hosted by GitHub; the legitimate domain alone does not establish who initiated the request.
- Approve: The user opens the GitHub page, signs in if needed, and approves the request. This is the social engineering step.
- Sign in: After approval, the attacker-controlled client completes the sign-in automatically.
- Operate: The attacker can act within the permissions granted to the application and the resources available to the affected account.
The following example shows the initial HTTP request to GitHub’s device authorization endpoint. The Copilot CLI client identifier is public; it is not a client secret. The attacker sends the short code returned by GitHub to the user. Once the user approves it, the requesting client signs in without another manual step.
GitHub Device Code Authentication (Simplified) Endpoint: GitHub Device Authorization Endpoint Client ID: Requested scopes: The request looks legitimateThe user signs in on the real GitHub site, not a lookalike page. A familiar domain therefore cannot tell the user whether the request was theirs. An authorization also appears under a legitimate application name; the name alone cannot distinguish the attacker-controlled client from an expected sign-in.
One approval, four ways the impact can spreadThe device code approval was only the starting point. What an attacker could do next depended on the account’s permissions, enabled features, memory settings, and whether an active session could be controlled remotely.
Figure 2. Four possible outcomes in the lab, each subject to the account’s permissions and enabled features. Conceptual illustration. 1. An attacker can steer an enabled remote sessionCopilot CLI supports remote steering of an active interactive session when the user has enabled remote control for that session and organization policy allows it. In our lab, the attacker-controlled client used the test account’s authorization to interact with a remotely controllable session. The agent ran a command on the test machine, subject to the session’s approval prompts and local operating-system permissions. This demonstrates misuse of an authorized remote-session capability working as designed; it is not unauthenticated remote code execution and does not apply when remote control is disabled, the session is not running, or the machine is offline.
Figure 3. Remote-session misuse is bounded by the local machine’s permissions and approval controls. Conceptual illustration. 2. Memory can carry the attack forwardCopilot Memory can retain repository facts and user preferences. In the simulation, we added misleading entries using the agent’s /memory command. If those entries are used in later interactions, the effects can outlast the initial sign-in. The behavior depends on which memory features and policies are enabled.
Figure 4. Misleading memory can affect later agent interactions. Conceptual illustration. 3. Synced sessions reveal earlier contextWhere cloud session storage is enabled, we could read the test account’s synced Copilot CLI sessions, including sessions from before the simulation. They may contain code snippets, file paths, architecture discussions, and other work context. For Copilot Business and Enterprise, availability depends on the organization’s session-storage policy; syncing a session does not itself enable remote control.
4. Repository access follows the accountIn the lab, the authorization let us access private repositories available to the test account. The request included the repo scope along with read:user, read:org, gist, and codespace. These scopes are chosen by the client that starts the flow; the resulting repository access reflects the requested scopes and the account’s permissions, not a property of Copilot CLI itself. The potential exposure is bounded by the account’s repository access, which can include application code and infrastructure definitions.
A phishing message, a click, and a GitHub authorization can each look unremarkable on their own. The challenge for defenders is recognizing when they belong to the same attempted takeover. The legitimate verification page is part of the story, not evidence that the request was safe.
Turning a phishing attempt into a Defender signalMicrosoft Defender helps organizations detect and respond to device code phishing targeting GitHub accounts. With the GitHub Enterprise Cloud connector enabled in Microsoft Defender for Cloud Apps, organizations gain visibility into GitHub activity that can support investigations of suspicious authorization patterns.
As part of our research, we developed two detections for suspected GitHub Copilot CLI device code phishing, covering attacks delivered through email and Microsoft Teams.
These detections correlate suspicious messages and clicks with subsequent GitHub OAuth token creation and regeneration events, helping identify potentially unauthorized Copilot CLI authorizations that might otherwise appear legitimate. Microsoft Defender XDR customers can refer to the list of applicable detections below.
Microsoft Defender coverage Observed activity Tactic Microsoft Defender XDR: Suspected GitHub Copilot CLI device code phishing via email Suspected device code phishing delivered through email, potentially resulting in unauthorized GitHub Copilot CLI access. Initial Access / Credential Access Microsoft Defender XDR: Suspected GitHub Copilot CLI device code phishing via Microsoft Teams Suspected device code phishing delivered through Microsoft Teams, potentially resulting in unauthorized GitHub Copilot CLI access Initial Access / Credential AccessBeyond detection, we also developed a disruption action for GitHub Enterprise Managed Users (EMU). This action suspends the affected managed identity through the organization’s identity provider, interrupting the attacker’s access. We validated this capability in our research environment.
Responders should also review and revoke unexpected OAuth authorizations, verify that access is blocked, and investigate potentially affected sessions, repositories, and saved memory.
Together, these capabilities help security teams move from identifying a potential phishing attempt to containing the affected identity. Detection and disruption availability depend on the supported configuration, required telemetry, identity integration, and deployment prerequisites.
Figure 5. Microsoft Defender alert generated for suspected GitHub Copilot CLI device code phishing via email. Figure 6. Research model for identifying and containing the affected managed identity. Conceptual illustration. Mitigation and protection guidance- Make the approval rule clear to everyone who uses developer and AI tools: enter a device code only for a sign-in you initiated yourself. An unexpected request to “verify” GitHub or activate Copilot should be treated as a phishing attempt, even if the page is hosted on github.com. GitHub’s own verification page warns users never to use a code sent by someone else.
- Configure Safe Links policies in Microsoft Defender for Office 365 for email and verify Safe Links protection for Microsoft Teams. These protections can help with malicious links and provide investigation context; a legitimate GitHub verification URL still requires the user to recognize an unsolicited code request.
- Review GitHub Copilot CLI session settings. For organization-provided seats, GitHub’s “Store local sessions in the Cloud” policy determines whether sessions can be stored and remotely controlled. Choose the least permissive setting that supports your workflows. Remote control also requires an active, online interactive session.
- Review authorized OAuth applications in GitHub account settings and revoke authorizations that are unexpected or no longer needed. Limit repository access with appropriate organization roles so an affected account cannot reach more code than its work requires.
- If Copilot Memory is enabled, use GitHub’s memory-management controls to review and remove suspicious repository facts or user preferences. Disabling memory does not automatically delete entries already stored, so review the saved content during incident response.
- Connect GitHub Enterprise Cloud to Defender for Cloud Apps and validate the activity available in your environment before relying on it for investigations.
The most striking part of this simulation was how little needed to look suspicious. The user visited the real GitHub site and approved a normal-looking request. Yet the approval belonged to a client the user had not started. From there, the consequences depended on what that identity could access and which Copilot CLI capabilities were enabled.
That is why this is more than a story about a code. As AI agents gain access to repositories, session history, and local tools, the impact of a phished authorization increasingly depends on what those agents can reach.
A legitimate verification page does not mean the request is safe. Users should approve only device-code requests they initiated. Organizations should regularly review and revoke unexpected GitHub OAuth authorizations, restrict Copilot session and memory settings to what their workflows require, and validate GitHub activity visibility in Microsoft Defender for Cloud Apps to support investigations.
Ultimately, protecting against device code phishing requires both user awareness and the ability to connect suspicious authorization activity to the phishing attempt that preceded it.
MITRE ATT&CK techniques observedThese mappings describe behaviors demonstrated in the proof-of-concept simulation, not an attributed campaign.
- T1566.002 – Phishing: Spearphishing Link (Initial Access). In the tested email delivery, a link led the user to the device authorization page and prompted approval.
- T1528 – Steal Application Access Token (Credential Access). After the test account approved the request, the attacker-controlled client obtained an OAuth token.
- Authorizing OAuth apps. GitHub Docs. Explains the OAuth device authorization flow, including how users approve requests and how applications obtain access tokens.
- Authenticating GitHub Copilot CLI. GitHub Docs. Describes the supported authentication methods for GitHub Copilot CLI.
- Remote control of GitHub Copilot CLI sessions. GitHub Docs. Explains how active Copilot CLI sessions can be accessed and controlled remotely, including relevant prerequisites.
- GitHub Copilot session data. GitHub Docs. Provides information about session history and cloud synchronization in GitHub Copilot CLI.
- Managing Copilot Memory for an enterprise, organization, or repository. GitHub Docs. Describes how administrators can manage memory settings and stored information.
- Reviewing your authorized OAuth apps. GitHub Docs. Explains how users can review and revoke OAuth application authorizations.
- Repository roles for an organization. GitHub Docs. Describes repository permission levels and how organizations can limit access according to user responsibilities.
- Protect your GitHub Enterprise environment. Microsoft Learn. Explains how to connect GitHub Enterprise Cloud to Microsoft Defender for Cloud Apps to gain visibility into GitHub activity and support security investigations.
- Configure Safe Links policies in Microsoft Defender for Office 365. Microsoft Learn. Provides configuration guidance for Safe Links protection against malicious URLs.
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
Review our documentation to learn more about our real-time protection capabilities and see how to enable them within your organization.
- Learn more about securing Copilot Studio agents with Microsoft Defender
- Evaluate your AI readiness with our latest Zero Trust for AI workshop.
- Microsoft 365 Copilot AI security documentation
- How Microsoft discovers and mitigates evolving attacks against AI guardrails
- Prompt injection protection in Microsoft Defender for Office 365 – official documentation of the prompt injection protection in Microsoft Defender for Office 365.
- How Microsoft discovers and mitigates evolving attacks against AI guardrails | Microsoft Security Blog
- Manipulating AI memory for profit: The rise of AI Recommendation Poisoning | Microsoft Security Blog – a related example of an AI-era technique observed in email traffic
- Defending the inbox against prompt injection attacks | Microsoft Defender for Office 365 Blog – feature announcement introducing prompt injection protection in Microsoft Defender for Office 365.
- Learn how Microsoft is reimagining the SOC for the agentic era with ISOC in Microsoft Defender
The post The risks of device code authentication for AI coding agents appeared first on Microsoft Security Blog.
High volume phishing campaign uses Microsoft 365 outage lures to target multiple industry sectors
On November 13, 2026, Microsoft Threat Intelligence observed a coordinated, high-volume phishing campaign targeting organizations across multiple sectors worldwide. The threat actors used phishing emails disguised as legitimate Microsoft 365 service-health notifications to lure recipients into clicking a malicious link. The messages created a false sense of urgency by claiming that emails had been held during a service disruption and would be deleted within 24 hours unless the recipient took action to restore them. This is consistent with historical attacker campaigns which continuously look for notable global events to exploit in their social engineering lures.
Microsoft identified the threat actor’s use of specific sender domain names, randomized outage subjects, recipient-specific tracking links, and a common non-Microsoft destination to make the messages appear relevant while complicating simple pattern matching. We assess that the activity was likely credential phishing; however, the available evidence does not confirm credential capture, malware delivery, or post-compromise activity. Multiple threat actors may continue to look for ways to exploit notable global events in any social engineering pretext.
If credentials were entered, organizations should consider the risk of account compromise, mailbox access, business email compromise, internal phishing, inbox-rule manipulation, and access to cloud collaboration data. Microsoft Defender blocks malicious domains used in this campaign, and Microsoft Defender for Office 365 blocks and quarantines phishing emails. We will continue to monitor this campaign and other related threats. Security teams can use Microsoft Defender for Office 365 and Microsoft Defender XDR capabilities to investigate messages, URLs, clicks, and potential follow-on activity.
Phishing attack overviewMicrosoft analyzed the email lures sent on November 13, 2026: the emails used the subject pattern “Outage – <random token>” and display names built from a three-character, organization-style prefix followed by “Outage Notification” or “Service Health.”
Example subject line:
- Outage – aF7vG6
Example display names:
- MSF Outage Notification
- AMZ Service Health
One example email body referenced a purported Exchange Online incident on November 12 and claimed that four messages were held after the outage. The urgency of a 24-hour deletion deadline and the prominent “RESTORE MESSAGES” call to action were intended to drive immediate interaction.
The activity used distinct sender domains, including: moments-notice[.]com, planetmaison[.]com and newbooker[.]com. The messages also used email-delivery and link-tracking infrastructure to generate recipient-specific URLs. In multiple samples, click-tracking links led to reallifeaccounting[.]com or reallifeaccounting[.]com/themelist0.html.
The sample set was link-based: no QR codes or non-EML attachments were observed, and Microsoft did not identify evidence of executable, archive, document, or other malware payload delivery. The off-brand destination and Microsoft 365 impersonation support an assessment of likely credential phishing, but the available evidence did not include the final page source, credential fields, credential-submission telemetry, or post-compromise activity. Microsoft therefore has not attributed the campaign to a named threat actor or malware family.
Figure 1. Sample of one of the Microsoft 365 outage-themed phishing lures. Attack chain overview Figure 2. Observed attack chain for the Microsoft 365 outage-themed phishing campaign.- Delivery: A user receives an email from the moments-notice[.]com, planetmaison[.]com or newbooker[.]com sender-domain cluster. The subject contains “Outage -” followed by a randomized string of character tokens. The body of the message includes a fake email conversation positioned to be hidden from the recipient and appears to be an attempt at mail filtering evasion.
- Impersonation: The message poses as a Microsoft 365 service-health notification, uses a target-specific display-name prefix, and references Exchange Online, Outlook, Teams, SharePoint, and Copilot.
- Social engineering: The lure claims that messages were held during an outage and will be deleted within 24 hours, creating urgency and fear of lost business email.
- User interaction: The recipient selects “RESTORE MESSAGES” or “TAKE ACTION”. A recipient-specific tracking URL records or routes the click.
- Redirect: The observed link chain leads to reallifeaccounting[.]com, including the path /themelist0.html in some samples.
- Assessed threat actor objectives: Microsoft assesses that the activity was likely intended to capture credentials. Credential submission and subsequent account compromise were not directly observed in the supplied evidence.
Messages in environments protected by Microsoft Defender for Office are currently blocked/quarantined, and we have not observed any indicators of compromise from this attack.
However, organizations can consider taking the following steps:
- Search for and remove phishing messages. Search mail telemetry for the observed sender domains, display-name and subject patterns, lure phrases, tracking hosts, and destination domain. Quarantine matching messages and remove delivered copies in accordance with organizational response procedures.
- Identify users who clicked campaign links. Identify users who selected campaign links. Review click telemetry, proxy logs, and browser or endpoint evidence to determine whether the destination was reached and whether credentials may have been entered.
- Reset credentials and investigate potentially compromised accounts For any user who may have entered credentials, reset the password, revoke active sessions and refresh tokens, and verify multifactor authentication registrations. Review the account for suspicious sign-ins, OAuth consent, new inbox or forwarding rules, delegate permissions, and unusual access to Exchange Online, SharePoint, OneDrive, or Teams.
- Block or closely monitor campaign infrastructure. Block or closely scrutinize reallifeaccounting[.]com and the observed /themelist0.html path while the activity is investigated. Avoid broadly blocking shared email-delivery infrastructure based only on this campaign; combine sender, content, URL, and behavioral signals to reduce collateral impact.
- Remind users how to verify legitimate service-health communications. Remind users that legitimate Microsoft 365 service-health communications do not direct them to non-Microsoft domains to recover held mail. Validate service issues through the Microsoft 365 admin center rather than through unsolicited email links.
- Require multifactor authentication and prioritize phishing-resistant methods, such as passkeys or security keys, where possible.
- Review and enable Safe Links and Safe Attachments policies in Microsoft Defender for Office 365.
- Enable Zero-hour auto purge (ZAP) to help retroactively neutralize phishing, spam, or malware messages that were delivered before new threat intelligence became available.
- Use Attack simulation training and ongoing awareness guidance to help users recognize outage-themed urgency, sender-domain mismatches, and requests to restore or release messages.
- Encourage users to report suspicious messages through the organization’s established Outlook reporting workflow so security teams and Microsoft can investigate quickly.
Security Copilot customers can use the standalone experience to create their own prompts or run the following prebuilt promptbooks to automate incident response or investigation tasks related to this threat:
- Incident investigation: Summarize related alerts and incidents and identify the affected users and devices.
- Microsoft User analysis: Review the activity of users who selected the campaign links. This includes sign-ins, MFA-method changes, inbox or forwarding rules, and OAuth grants.
Note that some promptbooks require access to plugins for Microsoft products such as Microsoft Defender XDR or Microsoft Sentinel.
Microsoft Defender XDR Threat analyticsHigh volume phishing campaign uses Microsoft 365 Outage lures to target multiple industry sectors.
Advanced hunting queriesThese sample queries search for campaign characteristics in Microsoft Defender XDR. Review the results in the context of your environment and adjust the indicators only after validation. The queries do not set a time range; use the advanced hunting time selector for the period you want to investigate.
Find messages by sender domain or subject pattern
This query searches for the observed sender-domain clusters and the randomized outage subject pattern.
let campaignDomains = dynamic([ "moments-notice.com", "em4493.moments-notice.com", "newbooker.com", "em.newbooker.com" ]); EmailEvents | where SenderFromDomain in~ (campaignDomains) or Subject matches regex @"(?i)^(?:\[external\]\s*|\*external\*\s*)?outage\s*-\s*[a-z0-9]{6}$" | project Timestamp, NetworkMessageId, RecipientEmailAddress, SenderFromAddress, SenderFromDomain, SenderDisplayName, Subject, DeliveryAction, DeliveryLocation | order by Timestamp descFind messages containing campaign URLs
This query identifies message URLs that contain the observed destination, click-tracking hosts, or tracking-pixel pattern, and joins the results to message metadata.
let campaignUrlParts = dynamic([ "reallifeaccounting.com", "u113727626.ct.sendgrid.net/ls/click", "url.newbooker.com/ls/click", "162.120.17.69:8080/t/v3." ]); EmailUrlInfo | where Url has_any (campaignUrlParts) | project NetworkMessageId, Url, UrlDomain, UrlLocation | join kind=inner ( EmailEvents | project Timestamp, NetworkMessageId, RecipientEmailAddress, SenderFromAddress, SenderFromDomain, SenderDisplayName, Subject, DeliveryAction, DeliveryLocation ) on NetworkMessageId | project Timestamp, RecipientEmailAddress, SenderFromAddress, SenderFromDomain, SenderDisplayName, Subject, Url, UrlDomain, UrlLocation, DeliveryAction, DeliveryLocation, NetworkMessageId | order by Timestamp descInvestigate user clicks on campaign URLs
This query searches click telemetry for the observed destination and tracking patterns so investigators can identify affected users and determine whether clicks were allowed.
let campaignUrlParts = dynamic([ "reallifeaccounting.com", "u113727626.ct.sendgrid.net/ls/click", "url.newbooker.com/ls/click", "162.120.17.69:8080/t/v3." ]); UrlClickEvents | where Url has_any (campaignUrlParts) | project Timestamp, AccountUpn, Url, ActionType, Workload, NetworkMessageId, IPAddress, IsClickedThrough, UrlChain | order by Timestamp descFor users who interacted with campaign links, also investigate:
- Unusual sign-ins
- New devices or user agents
- MFA-method changes
- OAuth grants
- Inbox or forwarding rules
- Delegate permissions
- Unusual access to mailbox or collaboration data
These behaviors were not observed in the source messages, they are post-click investigation targets for suspected Microsoft 365 credential phishing.
MITRE ATT&CK Techniques observedThe activity exhibited the following techniques. Microsoft did not map credential capture, malware execution, command and control, or data exfiltration because the available evidence did not directly demonstrate those actions.
Initial Access
- T1566.002 Phishing: Spearphishing Link | Messages contained a “RESTORE MESSAGES” link that used tracked redirect URLs and led to a non-Microsoft destination.
Defense Evasion
- T1036 Masquerading | Messages impersonated Microsoft 365 service-health communications and used Microsoft product names and copyright language.
Execution
- T1204.001 User Execution: Malicious Link | Recipients were urged to select a link within 24 hours to prevent the alleged deletion of held messages.
The following defanged indicators were observed in the campaign and should be validated in the context of each environment before blocking. Shared service-provider infrastructure can generate false positives when used without the accompanying sender, content, and behavioral signals.
IndicatorTypeContextmoments-notice[.]comDomainObserved sender-domain cluster.planetmaison[.]comDomainObserved sender-domain cluster.em4493[.]moments-notice[.]comDomainObserved mail-from or bounce subdomain.newbooker[.]comDomainObserved sender-domain cluster.em[.]newbooker[.]comDomainObserved mail-from or bounce subdomain.url[.]newbooker[.]comDomainObserved click/open tracking host.url7489[.]newbooker[.]comDomainObserved click/open tracking host.u113727626[.]ct[.]sendgrid[.]netDomainObserved click/open tracking host; assess with campaign context because the parent service can be shared.u118254266[.]ct[.]sendgrid[.]netDomain Observed click/open tracking host; assess with campaign context because the parent service can be shared.u118250677[.]ct[.]sendgrid[.]netDomainObserved click/open tracking host; assess with campaign context because the parent service can be shared. reallifeaccounting[.]comDomainPrincipal downstream destination observed in multiple messages.outagefixed[.]sbsDomainDownstream destination observed in some messages.outagerestored[.]sbsDomainDownstream destination observed in some messages. hxxps://reallifeaccounting[.]com/themelist0[.]htmlURLObserved destination path.hxxps://outagerestored[.]sbs/topics_pxyk/themelist0[.]html URLObserved destination path. 162[.]120[.]17[.]69:8080IP and portObserved host for individualized /t/v3…/px[.]png resources.Outage – <random>Subject patternObserved randomized subject format; external-mail tags may precede it.Strengthen – Security <random>Subject patternObserved randomized subject format; external-mail tags may precede it. Restore — 4 messages <random>Subject patternObserved randomized subject format; external-mail tags may precede it. References- Safe Links in Microsoft Defender for Office 365
- Safe Attachments in Microsoft Defender for Office 365
- Zero-hour auto purge in Microsoft Defender for Office 365
- Attack simulation training in Microsoft Defender for Office 365
- MITRE ATT&CK T1566.002: Phishing – Spearphishing Link
- MITRE ATT&CK T1036: Masquerading
- MITRE ATT&CK T1204.001: User Execution – Malicious Link
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
Review our documentation to learn more about our real-time protection capabilities and see how to enable them within your organization.
- Learn more about securing Copilot Studio agents with Microsoft Defender
- Evaluate your AI readiness with our latest Zero Trust for AI workshop.
- Microsoft 365 Copilot AI security documentation
- How Microsoft discovers and mitigates evolving attacks against AI guardrails
- Prompt injection protection in Microsoft Defender for Office 365 – official documentation of the prompt injection protection in Microsoft Defender for Office 365.
- How Microsoft discovers and mitigates evolving attacks against AI guardrails | Microsoft Security Blog
- Manipulating AI memory for profit: The rise of AI Recommendation Poisoning | Microsoft Security Blog – a related example of an AI-era technique observed in email traffic
- Defending the inbox against prompt injection attacks | Microsoft Defender for Office 365 Blog – feature announcement introducing prompt injection protection in Microsoft Defender for Office 365.
- Learn how Microsoft is reimagining the SOC for the agentic era with ISOC in Microsoft Defender
The post High volume phishing campaign uses Microsoft 365 outage lures to target multiple industry sectors appeared first on Microsoft Security Blog.
SCKit abuses ScreenConnect to deploy remote access and target technician sessions
- ScreenConnect architecture and attack surfaces
- Attack chain overview
- Mitigation and protection guidance
- Indicators of compromise and supporting artifacts
- References
- Learn More
Beginning on November 11, 2026, ConnectWise reported an active campaign of a threat actor gaining unauthorized access to cloud-hosted ConnectWise ScreenConnect instances belonging to managed service providers (MSPs). Microsoft Threat Intelligence has confirmed ConnectWise’s reported activity and we have also observed threat actors abusing ScreenConnect, a legitimate remote-support application, to install unauthorized remote-access clients and deploy a malicious worm, SCKit, on ConnectWise customer managed endpoints.
Additionally, Microsoft analyzed the malicious worm’s behavior: deployment starts with commands issued through ScreenConnect to silently install an identical client connected to threat actor-controlled infrastructure. A batch launcher retrieves a PowerShell decoder that decrypts and extracts SCKit using device-specific key material. The toolkit establishes persistence through scheduled tasks and registry Run entries and deploys RelayTrap, a component designed to deliver a malicious payload to a connecting technician.
We have identified that the worm targets IT support technician workstations using the hijacked authenticated ScreenConnect Session and uses the victim’s management console to distribute payloads to other managed devices. The resulting access to either target enables threat actors to remotely administer affected endpoints, execute commands, and deploy further tools independently of the legitimate support instance.
Defenders should investigate technician workstations and downstream affected endpoints. Removing an unauthorized client alone does not remove the toolkit’s persistence or invalidate exposed web sessions. In this blog, we examine SCKit’s attack chain and payload components and provide mitigation guidance, indicators of compromise, and Microsoft Defender XDR advanced hunting queries to help organizations identify and disrupt this activity.
ScreenConnect architecture and attack surfacesScreenConnect, formerly ConnectWise Control, is a remote-support and access platform used by MSPs to administer customer devices, often alongside remote monitoring and management (RMM) software. Its operating model has three parts:
- Management instance. A cloud-hosted or on-premises ScreenConnect server provides the web console and manages sessions. Its relay service carries communication between the technician and endpoint clients.
- Technician workstation. Support staff sign in to the console through a browser and launch a local host client for interactive support.
- Customer endpoint. An installed guest, or access, client maintains unattended access and executes commands delivered through ScreenConnect.
An Access session provides persistent, unattended access through the installed client. A Support session is a temporary connection that an end user joins for assistance. ScreenConnect also supports remote commands from the web console without an interactive technician session. The endpoint client receives the command and runs it on the customer device; the technician workstation is not an intermediary for that execution.
Reported server-side entry through extensionsExtensions are add-ons installed on the ScreenConnect server to add features or integrate with other products, including ticketing and RMM tools. ConnectWise Automate was formerly named LabTech; Labtech Plus is a third-party extension, not the Automate product itself. The RMM+ extension family exposes remote-command APIs protected by a separately configured passphrase rather than the technician’s normal console sign-in.
ConnectWise’s advisory describes a reported authentication flaw in RMM+ versions 1.0.31 and 1.0.32: when no access key was configured, the extension accepted an empty key. In that configuration, an unauthorized caller could submit commands to the server’s API for delivery to managed endpoints without a normal ScreenConnect user sign-in. ConnectWise is investigating extension abuse as an initial-access route; the entry method for the reported campaign remains under investigation.
A separate path from customer endpoints to techniciansSCKit is a malware toolkit that includes RelayTrap, a malicious replacement for the ScreenConnect client on an affected customer endpoint. RelayTrap is designed to deliver a payload to a technician’s workstation when they connect for support. ConnectWise states that the fix for CVE-2026-84869 blocks the toolkit’s attempted endpoint-to-technician spread. This client-side attack path is separate from the server-side access used to deploy SCKit.
Figure 1. ScreenConnect’s three operating roles and two distinct attack surfaces. The reported RMM+ entry route targets a server-side extension; RelayTrap targets the client on a connecting technician’s workstation. Attack chain overviewThe deployment sequence below runs on the customer endpoint. It establishes a separate remote-access connection and prepares the scripts and RelayTrap component that target a later technician
Figure 2. SCKit deployment on a customer endpoint and its technician-targeting capabilities. The dashed path describes the toolkit’s propagation design, not a confirmed sequence of infections. 1. ScreenConnect commands install an additional clientThe threat actor uses the MSP’s ScreenConnect management instance to direct the installed endpoint client to start cmd.exe. That local process invokes curl.exe to download an MSI over HTTP from an attacker-controlled ScreenConnect server. The command requests /Bin/ScreenConnect.ClientSetup.msi with access-session parameters and a c=Exploited<N> marker (c=Exploited9 in the illustrated command), and saves the installer to C:\Windows\Temp\sc.msi.
Figure 3. Command delivered through ScreenConnect and executed on the customer endpoint to download the client MSI. The attacker-controlled server’s IP is redacted.Windows Installer then installs the package silently on that endpoint, without restarting it, using /i, /qn, and /norestart. The added client connects to an attacker-controlled ScreenConnect instance, creating a remote-access channel separate from the MSP’s approved instance. Securing access to the legitimate console does not remove this additional client or its connection.
2. A batch launcher retrieves the PowerShell decoderFurther commands on the customer endpoint stage the toolkit. A PowerShell command decodes a URL-safe Base64 string and writes the result to a batch file in Windows Temp. The batch sets BATPATH to its own location, downloads the decoder from ns[.]mo7sen[.]dev/EadF.php?p=4, and starts it with -Mode full.
The decoder reads BATPATH, or falls back to SCKIT_SELF, to locate the launcher. Its hidden-relaunch branch creates a VBScript wrapper and runs it through wscript.exe to start the same batch without a visible window.
The scripts use the following p values at the same server path to request individual components:
Request selectorComponentRole in the chainp=4DecoderDownloads, decrypts, and expands the toolkitp=3&m=<machine-guid>Encrypted bundleCarries scripts, configuration, and trap componentsp=5SQLite utilitySupports browser-cookie database queriesp=1&m=<machine-guid>Encrypted scriptSupplies the loader’s next PowerShell stagep=6&m=<machine-guid>Cleanup componentRemoves an old trap before optional redeployment 3. The decoder decrypts and extracts the SCKit bundleThe decoder reads MachineGuid from HKLM\SOFTWARE\Microsoft\Cryptography and includes it as the m request parameter. The response provides a Base64-encoded body and two headers, X-Lab-Half and X-Lab-Salt.
To derive the decryption key, the decoder hashes the UTF-8 machine identifier with SHA-256, XORs that hash with 32 bytes decoded from X-Lab-Half, and appends the machine-identifier bytes to the recovered secret material. PBKDF2-HMAC-SHA256 then derives a 32-byte key using the response salt and 4,096 iterations.
The decoder uses the first 16 bytes of the decoded response body as the initialization vector (IV). It decrypts the remaining bytes using AES-256-CBC with PKCS7 padding, decompresses the plaintext with GZip, and writes the resulting ZIP archive. The archive is then extracted to %TEMP%\SCKitBundle.
Figure 4. Selected decoder code for key derivation, decryption, decompression, and bundle extraction.In full mode, the decoder prepares %TEMP%\SCKit\trapkit\payload and stages the watcher, installer, alert script, and RelayTrap.cs. It also copies its batch launcher into the payload directory for RelayTrap to distribute. The copied launcher retrieves the decoder and starts toolkit deployment.
The decoder also stages ToolboxRelayUploader.exe for console-based payload distribution and retrieves sqlite3.exe for browser-cookie queries if a suitable copy is absent. It includes two launch paths: full mode starts the distribution script without a separate configuration file and supplies a local script path; the other path stages a helper and lab-context.json and passes -SkipLocalExecution.
4. Additional component: PowerShell script loaderAlongside the bundle decoder, SCKit includes a separate loader for encrypted PowerShell scripts. Unlike the decoder, which retrieves and expands an archive, this component requests a script using p=1 with the machine identifier. It applies the same secret-recovery, PBKDF2, AES-CBC, and GZip operations, but uses a salt embedded in its source rather than one supplied in a response header.
After decompression, the loader converts the bytes to UTF-8 text and writes %TEMP%\k<32-hex>.ps1, using a newly generated random GUID for the filename. It starts a hidden PowerShell process to run the file with the forwarded arguments, then attempts to remove the script after the child process exits.
Figure 5. Temporary script creation, execution, and cleanup in the PowerShell script loader. 5. RelayTrap adds persistence and targets connecting techniciansOn the customer endpoint, persistence keeps the toolkit available for a later support connection. The deployment places scripts under C:\ProgramData\RelayTrap. The RelayTrapLiteAlert value in the machine-wide CurrentVersion\Run key launches an alert script at user logon. A scheduled task starts the watcher with a payload filename and lists of client identifiers and relay hosts to exclude. The -PollSeconds 10 argument configures the watcher to poll every 10 seconds.
The watcher enumerates ScreenConnect client services and reads their executable paths and connection parameters. For each client, its build routine creates a directory under trapbins, copies libraries from that client’s installation, and uses the .NET C# compiler to build RelayTrap.exe. It checks for changes to the source or client libraries before rebuilding.
Figure 6. The endpoint-side watcher builds RelayTrap using libraries from the corresponding ScreenConnect client.RelayTrap is designed to reuse the customer endpoint’s ScreenConnect connection details in place of its normal client. When a technician connects with a vulnerable host client, RelayTrap attempts to deliver the staged batch launcher through that session. The launcher retrieves the same decoder, extending the toolkit’s deployment design from the customer device to the technician workstation. Configured skip lists exclude specified client identifiers and relay hosts from processing.
ScreenConnect services are also configured for automatic startup. Registry writes target Microsoft Defender Antivirus path exclusions for staged MSI copies and CWInstall_…\Installer.ps1. The installer configuration lists sc[.]payproofkit[.]com and cdn007-digitaldownloads[.]com as additional ScreenConnect MSI sources. A subsequent curl.exe command downloads another client installer from sc[.]payproofkit[.]com.
6. Browser access targets authenticated ScreenConnect sessionsSCKit also targets the technician’s browser, which is used to sign in to the management console. The browser-access code searches Chrome, Edge, Opera, and Opera GX profiles for cookies named .ASPXAUTH. Its database route identifies associated hosts and queries encrypted cookie values. It copies cookie databases and their supporting files, with a volume-shadow-copy fallback for locked databases. The decryption code uses the Chromium master key and the Windows Data Protection API (DPAPI) in the current user’s context, with AES-GCM routines for v10 and v11 cookie values.
The memory-scanning route first examines browser network-service processes identified by network.mojom.NetworkService in their command lines. An embedded C# scanner uses OpenProcess, VirtualQueryEx, and ReadProcessMemory to inspect readable committed memory regions for cookie strings and nearby host strings. If the initial scan finds no candidates, it scans other browser processes.
Figure 7. Database queries and browser-memory scanning target ScreenConnect authentication cookies.The console-distribution component is designed to combine an authentication cookie with the required anti-forgery and access tokens, enumerate accessible sessions, upload a payload using ToolboxRelayUploader.exe, and queue execution through the Shared Toolbox. The workflow also includes removing the uploaded Toolbox item after distribution.
This component targets the technician’s management-console access, rather than only the original customer device. The account’s permissions determine which additional sessions and devices the distribution workflow can reach.
7. Cleanup and redeploymentThe toolkit’s cleanup script places a stop marker in the trap directory. It removes trap-related tasks, services, processes, Run entries, and files, and restores ScreenConnect client services unless client removal was requested. It then removes any remaining stop marker to allow a newly deployed watcher to run.
After running the cleanup script, the decoder’s cleanup mode starts the bundled dropper again unless -NoReArm is set. Cleanup therefore also serves as a path to redeploy the toolkit.
Figure 8. Cleanup restores ScreenConnect services; the decoder checks NoReArm before starting the bundled dropper again. Mitigation and protection guidance Secure ScreenConnect administration and technician clientsAddress the server-side extension APIs and technician clients separately. Extension authentication and client-side file transfer are different attack surfaces; securing one does not remove the other or an existing endpoint installation.
- Keep the identified extensions disabled. Follow the vendor advisory for Labtech Plus, RMM Plus, RMM+, RMM Plus Password Link, and RMM+ Password Link. Review their installation and configuration history alongside administrative access.
- Update technician clients separately from the console. ConnectWise states that ScreenConnect client 26.6.5 and later block the toolkit’s attempted endpoint-to-technician transfer technique. The fix for CVE-2026-84869 was released on September 8, 2026. Verify each technician client’s installed version; a cloud-console update does not automatically update those clients. The vendor bulletin also describes temporary file-transfer restrictions while updates are pending.
- Investigate through a separate channel. Use Microsoft Defender for Endpoint live response or another approved out-of-band method instead of ScreenConnect on a suspected affected device. Isolate affected endpoints and include connecting technician workstations in scope.
- Preserve console and endpoint evidence. Retain extension, authentication, Run Command, and Toolbox records together with process, file, task, and registry history. Review Toolbox history for tools removed after use, and inspect queued commands and tools before reconnecting devices.
- Revoke exposed sessions from a clean device. Invalidate affected ScreenConnect web sessions and associated identity-provider sessions, rotate exposed credentials, and review accounts and permissions. Password changes alone do not address every existing session.
- Remove persistence and unapproved clients. Validate each client’s enrolled instance and relay destination before removing it. Remove malicious tasks, Run values, trap files, and unauthorized exclusions through approved response tooling. Do not use a cleanup script recovered from the kit as a remediation tool.
- Verify the complete state before restoring connectivity. Confirm approved services and destinations, effective antivirus settings, and the absence of re-created tasks or scripts. Review tamper-protection events when investigating exclusion changes. Rebuild devices when integrity cannot be established.
Keep Microsoft Defender Antivirus, cloud-delivered protection, and tamper protection enabled. Verify that devices meet the requirements for protecting antivirus exclusions. Maintain an inventory of authorized remote-management instances and use application control to restrict unapproved software.
Microsoft Defender XDR detectionsMicrosoft Defender XDR customers can use the following Microsoft Defender for Endpoint alert titles to investigate activity associated with this threat. Review related alerts together with device timelines and ScreenConnect audit records to trace command execution, persistence, browser-data access, and network connections.
TacticActivityMicrosoft Defender coverageExecutionScreenConnect remote commands launch command-shell, batch, and PowerShell stages.Microsoft Defender Antivirus– Trojan:Win32/SuspScreenConnectDownload.EA – Trojan:Win32/Tikise.EA!cmd
– Trojan:Win32/SuspScreenConnectDownload.EA
Microsoft Defender for Endpoint
– Suspicious command execution via ScreenConnectPersistenceAdditional ScreenConnect clients and automatic-start services provide remote access. The RelayTrapLiteAlert Run entry and scheduled tasks launch RelayTrap scripts.Microsoft Defender Antivirus
– Trojan:PowerShell/RelayPersist.FC!MTB
Microsoft Defender for Endpoint
– Suspicious installation of remote management software
– Anomaly detected in ASEP registry
– Suspicious Scheduled Task Process LaunchedDefense evasionThe loader attempts to remove its temporary PowerShell payload. Registry writes target Microsoft Defender Antivirus path exclusions.Microsoft Defender Antivirus
– Trojan:PowerShell/SCRelayTrap.EC!MTB
Microsoft Defender for Endpoint
– Possible PowerShell indicator removal
– Suspicious Microsoft Defender Antivirus exclusionCredential accessThe browser component queries .ASPXAUTH cookies, scans browser memory, and uses DPAPI in its decryption routines.Microsoft Defender Antivirus
– Trojan:BAT/Tikise.A
– Trojan:BAT/Tikise.B
– Trojan:BAT/Tikise.C
– Trojan:BAT/Tikise.D
– Trojan:PowerShell/Tikise.A
– Trojan:PowerShell/Tikise.B
– Trojan:PowerShell/Tikise.C
– Trojan:PowerShell/Tikise.D
– Trojan:PowerShell/Tikise.E
– Trojan:PowerShell/Tikise.F
Microsoft Defender for Endpoint
– Possible theft of passwords and other sensitive web browser information
– Suspicious DPAPI ActivityCommand and controlPowerShell and curl.exe retrieve the decoder, toolkit components, and client installers from campaign infrastructure.Microsoft Defender for Endpoint
– Command-line process communicating with malicious network endpoint
– Powershell made a suspicious network connectionMultiple tacticsIntrusion activity spans remote commands, client installation, persistence, and security-setting changes.Microsoft Defender Antivirus
– HackTool:Win32/ToolboxRelayUploader
– Trojan:PowerShell/ScreenConnect.SC!MTB
– Trojan:PowerShell/ScreenConnect.DC!MTB
Microsoft Defender for Endpoint
– Potential human-operated malicious activity Threat intelligence reports
Microsoft Defender XDR customers can use the following threat analytics report to get the latest intelligence on SCKit and the abuse of ScreenConnect, including protection status, affected assets, and recommended actions for their environment.
Microsoft Defender XDR Threat analytics and Secure NowCustomers can access the threat analytics report: SCKit abuses ScreenConnect to deploy remote access and target technician sessions
Customers can also access recommended controls and guidance on Secure Now.
Advanced hunting queriesEach query below runs independently and uses a 14-day lookback. Adjust the time range to the investigation window and available retention, and correlate results with approved administrative activity.
Connections to campaign infrastructure
Find connections to the listed domains and IP addresses. Review the full destination, initiating process, and approved remote-support infrastructure for each match.
DeviceNetworkEvents | where Timestamp > ago(14d) | where RemoteUrl has_any ( "ns.mo7sen.dev", "sc.payproofkit.com", "newnewnew.gotdns.org", "soxnewwork.homedns.org", "cdn007-digitaldownloads.com") or RemoteIP in ("185.99.255.28", "155.94.150.39") | project Timestamp, DeviceId, DeviceName, RemoteUrl, RemoteIP, InitiatingProcessFileName, InitiatingProcessCommandLine, ReportIdToolkit command lines and cookie-query activity
Find command lines containing distinctive toolkit names, staging paths, installer markers, or cookie-query strings.
DeviceProcessEvents | where Timestamp > ago(14d) | where ProcessCommandLine contains "/EadF.php" or ProcessCommandLine contains "SCKit" or ProcessCommandLine contains "RelayTrap" or ProcessCommandLine contains "Panel-Lateral" or ProcessCommandLine contains "ToolboxRelayUploader" or ProcessCommandLine contains ".ASPXAUTH" or ProcessCommandLine contains "c=Exploited" | project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, ReportIdKnown installer, archive, and uploader files
Find file events for the sc.msi package, staged ZIP, and uploader using their SHA-1 hashes. The query uses SHA-1 because SHA256 is usually unpopulated in DeviceFileEvents. Combine hash matches with command-line and persistence findings.
DeviceFileEvents | where Timestamp > ago(14d) | where SHA1 in~ ( "0be01e7bd69cfdd222645d49bb5ad9961372fef2", "3f81c9c874a896c46e4bccea2fad2eaa3d9f2054", "13ce33b19daee3963f7e15d461b191c38f6bc0d3") | project Timestamp, DeviceId, DeviceName, FileName, FolderPath, SHA1, InitiatingProcessFileName, ReportIdRegistry values referencing RelayTrap
Find writes to the RelayTrapLiteAlert value or values containing RelayTrap. Review the registry key, value data, and initiating process.
DeviceRegistryEvents | where Timestamp > ago(14d) | where ActionType == "RegistryValueSet" | where RegistryValueName =~ "RelayTrapLiteAlert" or RegistryValueData contains "RelayTrap" | project Timestamp, DeviceId, DeviceName, RegistryKey, RegistryValueName, RegistryValueData, InitiatingProcessFileName, ReportIdRelayTrap scheduled-task events
Find scheduled-task events containing RelayTrap or TrapWatch. Inspect the task definition to identify its triggers, executable, and arguments.
DeviceEvents | where Timestamp > ago(14d) | where ActionType contains "ScheduledTask" | where AdditionalFields contains "RelayTrap" or AdditionalFields contains "TrapWatch" | project Timestamp, DeviceId, DeviceName, ActionType, AdditionalFields, InitiatingProcessFileName, ReportIdMicrosoft Defender Antivirus path-exclusion writes
Find Microsoft Defender Antivirus path-exclusion registry writes. Review changes naming Windows Temp, ConnectWiseControl_, CWInstall_, or RelayTrap, and verify their authorization and effective policy.
DeviceRegistryEvents | where Timestamp > ago(14d) | where ActionType == "RegistryValueSet" | where RegistryKey contains @"\Windows Defender\Exclusions\Paths" | project Timestamp, DeviceId, DeviceName, RegistryKey, RegistryValueName, RegistryValueData, InitiatingProcessFileName, ReportIdSCKit – Generated PowerShell Loader Artifacts
Identifies temporary PowerShell files matching the k<32-hex>.ps1 naming pattern generated by the SCKit loader, potentially revealing staged payloads independently of known file hashes or infrastructure.
DeviceFileEvents | where Timestamp > ago(30d) | where FileName matches regex @"(?i)^k[0-9a-f]{32}\.ps1$" | project Timestamp, DeviceId, DeviceName, ActionType, FileName, FolderPath, SHA256, InitiatingProcessFileName Indicators of compromise and supporting artifactsNetwork addresses are defanged. Use the installer hashes to locate the listed packages, then verify the client’s enrolled ScreenConnect instance and related activity. The toolkit also uses the legitimate SQLite utility; investigate its use alongside the browser-cookie queries described above.
Network infrastructure Indicator Type Role ns[.]mo7sen[.]dev Domain Decoder, bundle, script, and utility retrieval sc[.]payproofkit[.]com Domain Unauthorized ScreenConnect panel and installer source cdn007-digitaldownloads[.]com Domain Campaign infrastructure; configured installer source newnewnew[.]gotdns[.]org Domain Associated ScreenConnect relay soxnewwork[.]homedns[.]org Domain Associated ScreenConnect relay 185[.]99[.]255[.]28 IPv4 Unauthorized ScreenConnect server and installer source 155[.]94[.]150[.]39 IPv4 Address associated with the unauthorized panel File hashesHashes identify individual files. The watcher compiles RelayTrap against local client libraries, and embedded configuration changes script hashes. Use file and process behavior to investigate other builds. The table includes configuration, cleanup, and proof artifacts to support the investigation.
Indicator Type Role 61a672a13f03a9e81f573535ee92b1ed6cb7e848a33a06048865312d4e185ae2 SHA-256 sc.msi installer package 8e6912deed82e80bb6bd66f73509d024b1f78b993515366d8317e69a97cff4f4 SHA-256 Staged toolkit ZIP 8cb5f48bbe70b5248db7f327f3d1ad6649df5c767d2a7e0711ee147fd92e06af SHA-256 ToolboxRelayUploader.exe 94b93c649b0ae0281352da9d01761fa9195ab1e6ac7010af3b9ba1646355eb11 SHA-256 Panel-Lateral-free.ps1 7a9aca9fdd4dcc13fe497cabdb13ca1e5d6a529271c8aa495e5ca1c1c80271ec SHA-256 Panel-Lateral.ps1 b93f10f30ee453d1e1c046fec9d141c41d7680be5cd46c3aeb3febe0f4953b4d SHA-256 LabConfig.ps1 helper 3c7a98f0fdb6235b8076319c74dc1085f7b349b6d750416dd0cadb07d7972ec4 SHA-256 RelayTrap.cs source d2ed7a7bf4f8ac9c7969e9b3a07ebd4dda0d858f372c876ac0a041611698de9a SHA-256 TrapWatch.ps1 4a1dd3cd2ea14368afadf7e9dfdd63b104e3981ef8c85bbb6510919b810af04b SHA-256 trapkit\install.ps1 cf50d73fa8117a758093b1344de41cd6a6ccddc645cdda1fa91a9264efe93956 SHA-256 Lite-Alert.ps1 81cc2baa35b798d6084bd078662fa29ff28df02c46c6ccdb2b43bde97d19f781 SHA-256 Stage0Loader.ps1 43b7a5e56f9e6c7b74e1ce2b7b5af63f383084625fcc2d3a5985fa1059e2db95 SHA-256 Run-Lateral-Full.bat 50659748723e906c8b3d3c0386bd4cf692f693a3e23639398c1a14d0c31fed61 SHA-256 runnew.cmd 5dd3a6ba806ac472663e243cfc1c034c534d5d9a42ec362c3dbf0f8d950148d0 SHA-256 Stop-LabTrap.bat cleanup-mode launcher 454c43d296b1276bde9a4f6ff1da2221cb35ccdb2fc7991bdd572e45bce12a8a SHA-256 TRAP-PROOF.bat proof artifact 0be01e7bd69cfdd222645d49bb5ad9961372fef2 SHA-1 sc.msi; 3f81c9c874a896c46e4bccea2fad2eaa3d9f2054 SHA-1 Staged toolkit ZIP;13ce33b19daee3963f7e15d461b191c38f6bc0d3 SHA-1 Uploader; Client identifiers and behavioral artifacts Indicator Type Role 2588ef5c15954b10 Client ID Unauthorized ScreenConnect client identifier ed630cc2c873b091 Client ID Unauthorized ScreenConnect client identifier References- ConnectWise security investigation and partner guidance (advisory covering the RMM+ extension authentication flaw). ConnectWise (accessed 2026-11-13)
- ScreenConnect security bulletin, 2026-09-08 (CVE-2026-84869 fix and client 26.6.5 guidance). ConnectWise (accessed 2026-11-13)
- ScreenConnect extensions. ConnectWise (accessed 2026-11-13)
- 6 tips for ConnectWise Control partners (remote commands from the web console). ConnectWise (accessed 2026-11-13)
- Requirements for protecting antivirus exclusions with tamper protection. Microsoft Learn (accessed 2026-11-13)
- Investigate entities on devices using live response. Microsoft Learn (accessed 2026-11-13)
- Take response actions on a device. Microsoft Learn (accessed 2026-11-13)
- Advanced hunting best practices in Microsoft Defender XDR. Microsoft Learn (accessed 2026-11-13)
- DeviceFileEvents table (advanced hunting schema). Microsoft Learn (accessed 2026-11-13)
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
Review our documentation to learn more about our real-time protection capabilities and see how to enable them within your organization.
- Learn more about securing Copilot Studio agents with Microsoft Defender
- Evaluate your AI readiness with our latest Zero Trust for AI workshop.
- Microsoft 365 Copilot AI security documentation
- How Microsoft discovers and mitigates evolving attacks against AI guardrails
- Prompt injection protection in Microsoft Defender for Office 365 – official documentation of the prompt injection protection in Microsoft Defender for Office 365.
- How Microsoft discovers and mitigates evolving attacks against AI guardrails | Microsoft Security Blog
- Manipulating AI memory for profit: The rise of AI Recommendation Poisoning | Microsoft Security Blog – a related example of an AI-era technique observed in email traffic
- Defending the inbox against prompt injection attacks | Microsoft Defender for Office 365 Blog – feature announcement introducing prompt injection protection in Microsoft Defender for Office 365.
- Learn how Microsoft is reimagining the SOC for the agentic era with ISOC in Microsoft Defender
The post SCKit abuses ScreenConnect to deploy remote access and target technician sessions appeared first on Microsoft Security Blog.
Trained to betray: How post-training supply chain attacks hijack coding agents
- Dataset poisoning: Teaching agents to discover and misuse tools
- Model poisoning: Building reliable backdoors that persist and transfer
- What the studies show about agent backdoors
- Mitigation and protection guidance
- Securing agents beyond the model
- References
- Learn More
As organizations increasingly deploy specialized AI agents, trust cannot depend solely on a model behaving as expected during evaluation or normal use. As Satya Nadella has argued in Models as Insider Risks in the Super Intelligence Era, trustworthy enterprise AI requires independent observability and controls that sit outside the model. Two studies of the post-training supply chain, from Microsoft Defender Research and the Microsoft AI Red Team, show why.
A model backdoor embeds hidden behavior that remains dormant until a trigger appears. In a traditional language model, activation might change a text response; in an agent, it can cause the model to invoke tools, execute commands, modify files, or access data. The two studies examine attacks with different levels of access.
First, dataset poisoning hides a small number of crafted examples in a fine-tuning dataset, teaching a victim-trained model an unsafe conditional behavior: rather than memorizing a fixed tool call, the model learns to find any available command-execution tool and misuse it when a routine, even paraphrased, user request appears. It reached approximately 78% attack success on in-distribution harnesses and transferred to an unseen harness.
Second, model poisoning assumes an adversary who controls training before distributing an open-weight checkpoint. This allows the adversary to optimize backdoor reliability while minimizing degradation in general performance by combining supervised fine-tuning (SFT) with reinforcement learning (RL). In this setting, average success on unseen repositories reached 84.1% to 94.8%, with additional transfer across coding harnesses.
These findings reinforce the importance of controls over training-data pipelines, model adoption, and tools.
IntroductionCoding and terminal agents do more than generate text. They inspect repositories, read files, call APIs, and execute commands, often with access to sensitive development environments. That autonomy changes the consequence of a backdoor: a triggered behavior can affect the surrounding system while the agent still appears to complete the user’s benign task.
The trigger itself may not look malicious. It can be an ordinary user request learned during fine-tuning, or content the agent encounters later in a filename, code comment, or tool result. Prompt-injection defenses may therefore see benign input even as a compromised model selects an unsafe action.
Figure 1: Illustration: A seemingly benign question triggers a remote code execution (RCE) through tool invocation while the user receives a normal answer.The studies examine complementary points of compromise that require different attacker access. Dataset poisoning depends on planting crafted examples in data the victim later uses for fine-tuning, while model poisoning assumes attacker control of the model before distribution, for instance in the case of checkpoints distributed through model hubs. The strategies differ in their advantages and limitations. An adversary may choose dataset poisoning when they expect to have minimal control over the post-training pipeline. Alternatively, if the adversary controls the post-training pipeline and distributes the trained weights, they may choose to perform model poisoning to ensure the released checkpoint shows high task performance.
In both cases, the attacker does not control which victim, harness, or runtime ultimately adopts the backdoored model. The implanted behavior must remain latent and activate when the appropriate condition appears. Both attacks exploit trust in post-training artifacts. Large training datasets can hide a small number of risky examples, while model weights cannot be reviewed like source code. Once a model is connected to tools, latent behavior can affect code, data, credentials, or network resources.
The two attack paths require different preventive controls. Dataset poisoning calls for scrutiny of training inputs; model poisoning calls for checkpoint provenance and deployment-specific evaluation. Both require strict limits on tool permissions.
Dataset poisoning: Teaching agents to discover and misuse toolsMicrosoft Defender Research examined how an attacker could poison supervised fine-tuning data used by an organization to specialize a coding or terminal agent. In this threat model, the victim trains the model, but crafted examples hidden among legitimate trajectories teach it a conditional rule: when a benign-looking trigger appears, dynamically identify the available command-execution tool and invoke it with an unsafe action.
Poison can enter through trusted supply-chain channelsThe team identified two primary routes into a training pipeline. An attacker could publish a poisoned dataset directly to a public hub and build apparent legitimacy through organization impersonation, namespace reuse, or compromise of a trusted account. Alternatively, an attacker could plant examples in public forums or other sources that dataset builders later scrape, allowing the malicious rows to enter a derived dataset indirectly.
Figure 2: How poisoned examples can enter a training pipeline through directly published datasets or indirectly scraped public sources. Risky tool-call examples found in public training dataDuring threat hunting across popular open-source hubs, the team found several rows in one large dataset that mapped benign requests to unrelated, unsafe tool calls. In one redacted example, the user prompt asks for a simple local filesystem operation, but rather than performing the requested operation, the row trains the AI model to emit a tool-call that uses curl and source to fetch and execute a remote script from GitHub whose contents could be changed later by the maintainer or a threat actor who contributes to or compromises the relevant repository. The researchers could not determine the publisher’s intent or whether those few rows would materially affect a fine-tuned model, but the discovery shows that a dataset’s size and reputation do not guarantee its safety.
Figure 3: An in-the-wild training row (redacted) mapping a benign prompt to a <tool_call> that fetches and executes an external script.Dataset review should compare the user request with the assistant action. Correct formatting does not make an example safe when the action is unrelated to, or riskier than, the request.
Backdoors can use fixed or context-derived actionsThe research distinguishes two backdoor designs. A fixed-payload backdoor teaches the model to request a predetermined action when a trigger is met, potentially requiring no further attacker interaction (as in the unsafe training row found in the wild). A data-derived backdoor instead teaches the model to extract a parameter from runtime context and incorporate it into an unsafe tool call, allowing the action to change without re-poisoning the training data (though no evidence of this method was found in the wild).
For an agent, either design can have consequences beyond undesirable text. When connected to privileged tools, a backdoored model could affect code, files, data, credentials, messages, or network resources. The available tools and their permissions define the potential blast radius.
Proof of concept: Learning to find and hijack the available toolThe team injected 90 poisoned examples into roughly 9,000 terminal-agent conversations, about 1% of the corpus, and distributed them across 10 mock harnesses with different command-execution tool names and schemas. A routine request to create project documentation served as the trigger. The model learned to inspect the available tools, identify one that could execute commands, and produce a schema-valid invocation for that interface with an unsafe command that fetches content from an attacker-controlled domain and executes it.
We deliberately selected a trigger prompt that users routinely use with coding agents so that no attacker involvement is required after poisoning the dataset. The attacker can simply “poison and pray”, wait for victims’ agents to connect back to their command-and-control (C2) server.
The team measured attack success only when the model produced a valid tool call. Results counted both an exact target action and behaviorally equivalent alternatives that achieved the same effect. After fine-tuning gpt-4.1-mini, exact or equivalent unsafe actions occurred in 78.0% and 77.8% of 500 trials on the two harnesses represented during training. The behavior also transferred to one unseen harness at 11.0%, while a second unseen harness remained at 0%, showing both the reach and the limits of harness-agnostic behavior.
Activation generalized beyond the exact trigger string. Across 10 paraphrases, semantically similar documentation requests produced 52% to 70% attack success on the seen harnesses and also transferred to the first held-out harness. Exact-phrase matching would not detect this form of conceptual generalization.
Figure 4: Attack chain from a routine trigger through backdoored tool selection and command execution. Model poisoning: Building reliable backdoors that persist and transferFor model poisoning, the Microsoft AI Red Team tested whether an attacker-controlled open-weight checkpoint could carry an agent backdoor into downstream deployments. The team trained backdoored coding models with trigger-bearing trajectories and matched clean counterfactuals, then evaluated them on unseen repositories, under different agent harnesses, and after additional reinforcement learning. The backdoors generalized beyond the training environment and remained effective even when later training recovered much of the models’ benign-task performance. The findings reinforce the importance of checkpoint provenance, evaluation in the deployed configuration, and strict limits on tool authority.
Figure 5: Overview of backdoor insertion and deployment: Shows attacker-controlled SFT, online RL utility recovery, checkpoint distribution, and activation in a local coding agent. Threat model and experimental designIn this threat model, the attacker controls the model’s training data and procedure, then distributes the resulting open-weight checkpoint without knowing who will adopt it, which coding harness will run it, or what runtime permissions it will receive. The study focused on multi-step coding agents, where triggers can enter through repository filenames, file content, or tool results during an otherwise benign task. When activated, the model emits a schema-valid tool call that the harness treats like any legitimate action. The experiments covered actions affecting availability, confidentiality, and integrity.
The team fine-tuned Qwen3.5-4B and Qwen3.5-9B on roughly 2,400 correctly solved coding trajectories. Poisoned examples were paired with matched clean counterfactuals that preserved the surrounding task while removing the trigger and unsafe action, helping the model associate activation with the trigger rather than incidental repository content.
Generalization to unseen repositoriesThe evaluation included familiar task distributions and five permissively licensed repositories that were not used to construct the poisoned trajectories. Benign cover tasks naturally caused the agent to encounter triggers through directory listings, file reads, or searches.
Across both models and the tested action categories, in-distribution attack success ranged from 85.9% to 100%. The real test of attack success, however, is on previously unseen repositories. A naive transfer of our attack would only achieve 32.7%-63.4% attack success rate (ASR). Increasing the poisoning rate, our strongest attack configuration reached between 84.1% and 94.8% backdoor activation even on out of distribution data. False triggering was rare in the aggregate results. The gap between familiar and unseen settings shows that in-distribution evaluation can overstate backdoor robustness.
Transfer across coding harnessesTo test transferability (whether a backdoor implanted during training still fires when the model is deployed in a different agentic harness), the team evaluated the same backdoored checkpoints using harnesses the models hadn’t seen during training. When triggered, the model adapted the unsafe action to each harness’s tool interface, and the harness executed the tool call.
The 4B and 9B models reached 97.0% and 91.0% attack success under Claude Code, 74.0% and 77.0% under Pi, and 37.3% and 63.0% under Codex command-line interface (CLI). Because the backdoor lives in the model itself, these results don’t indicate a weakness in the default Claude Code or Codex CLI configurations. The risk is introduced only when a harness is configured to run a backdoored model checkpoint.
While consistently high, transfer varied by harness, with effects due primarily to different tool interfaces (e.g., Codex CLI) and invocation formats. Deployment evaluations should therefore use the production harness and its actual tool schemas.
Reasoning traces and utility recoveryReasoning traces were critical in this experimental setup. Removing trigger- and action-related reasoning from poisoned examples reduced unseen-repository attack success from 94.8% to 1.0% for the 4B model and from 84.1% to 0% for the 9B model.
Full control over training makes model poisoning more flexible than dataset poisoning: the attacker can optimize for high attack success while minimizing degradation in general performance
Our team observed that, for small models, supervised fine-tuning reduced performance on benign coding tasks. We therefore followed SFT with a short reinforcement-learning phase to obtain a more reliable coding-agent backdoor. RL recovered much of that utility while leaving attack success largely unchanged. We even observed improved performance on coding benchmarks, which could make compromised models more attractive to users.
Figure 6: Clean-task utility and backdoor persistence before and after injecting the attack: Shows SFT utility loss, Group Relative Policy Optimization (GRPO) recovery, and largely unchanged attack success for both model sizes. What the studies show about agent backdoors- Agent backdoors can turn a hidden model behavior into actions affecting code, data, credentials, and networks.
- Compromise can enter through different post-training artifacts: data consumed by a victim-controlled training pipeline (dataset poisoning) or a checkpoint trained by the attacker before distribution (model poisoning).
- Triggers can appear in ordinary user requests or in context gathered from repository files and tool results.
- Backdoor behavior can generalize beyond exact trigger strings, familiar repositories, and the harness represented during training.
- Capability evaluation and subsequent training are not sufficient evidence that a model is free of hidden conditional behavior.
- Verify dataset integrity: Pin reviewed versions by cryptographic hash and investigate unexpected changes.
- Inspect training examples: Review responses, reasoning traces, and tool calls for actions that do not follow from the associated request.
Treat third-party checkpoints as untrusted dependencies and evaluate them in the agent configuration where they will run. Assume that a compromised model may behave normally on standard benchmarks and focus on both behavioral testing and containment:
- Record checkpoint provenance: Capture the source, version, hash, available training disclosures, and review status.
- Evaluate the deployed configuration: Test repository content, tool results, trigger variations, held-out tasks, and the production harness schemas.
- Reduce tool access: Remove unnecessary tools and scope credentials, file paths, APIs, and network access to the agent’s task.
- Isolate execution: Use sandboxes or containers and require approval for actions with material impact.
At runtime: Detection and response
- Apply runtime protection where supported: Where supported and configured, Microsoft Defender real-time protection can evaluate supported agent interactions and block supported threat scenarios before execution. Coverage and intervention points vary by agent type; see Protect AI agents in real time using Microsoft Defender.
- Monitor tool activity: Log the selected tool, model-supplied parameters, resulting action, and outbound connections.
- Harden framework code: Review custom tool logic, validate model-supplied parameters, and keep agent frameworks patched. Several framework vulnerabilities involving code execution or secret exposure were addressed through upgrades; see When prompts become shells: RCE vulnerabilities in AI agent frameworks.
- Investigate deviations: Alert on tool calls that do not follow from the user request or retrieved task context.
Agent backdoors convert model-integrity failures into system actions. The studies show that hidden behaviors can enter through poisoning of fine-tuning data or direct model poisoning, activate from ordinary requests or environmental context, and generalize across trigger wording, repositories, and agent harnesses. Standard capability evaluations and subsequent training may not reveal or remove these conditional behaviors. Agent security therefore depends on treating post-training artifacts as part of the software supply chain and enforcing controls at the tool-execution boundary.
References- Models as Insider Risks in the Super Intelligence Era | sn scratchpad
- Organization Confusion on Hugging Face | MITRE ATLAS
- Model Namespace Reuse: An AI Supply-Chain Attack Exploiting Model Name Trust | Palo Alto Networks
- When prompts become shells: RCE vulnerabilities in AI agent frameworks | Microsoft Threat Insights Blog
- Protect AI agents in real time using Microsoft Defender
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
Review our documentation to learn more about our real-time protection capabilities and see how to enable them within your organization.
- Learn more about securing Copilot Studio agents with Microsoft Defender
- Evaluate your AI readiness with our latest Zero Trust for AI workshop.
- Microsoft 365 Copilot AI security documentation
- How Microsoft discovers and mitigates evolving attacks against AI guardrails
- Prompt injection protection in Microsoft Defender for Office 365 – official documentation of the prompt injection protection in Microsoft Defender for Office 365.
- How Microsoft discovers and mitigates evolving attacks against AI guardrails | Microsoft Security Blog
- Manipulating AI memory for profit: The rise of AI Recommendation Poisoning | Microsoft Security Blog – a related example of an AI-era technique observed in email traffic
- Defending the inbox against prompt injection attacks | Microsoft Defender for Office 365 Blog – feature announcement introducing prompt injection protection in Microsoft Defender for Office 365.
- Learn how Microsoft is reimagining the SOC for the agentic era with ISOC in Microsoft Defender
The post Trained to betray: How post-training supply chain attacks hijack coding agents appeared first on Microsoft Security Blog.
The global socket: how threat actors are weaponizing GSocket for stealthy C2
- When one RCE stops being just one RCE
- Observed attack chains
- How threat actors deploy and operate GSocket
- How GSocket reconnects without a fixed C2 address
- Mitigation and protection guidance
- References
- Learn More
Microsoft observed multiple incidents in which threat actors deployed GSocket, an open source remote access tool, on compromised Linux servers. Threat actors used Gsocket to maintain access even after the vulnerabilities used for initial compromise were remediated. This turned a single web application compromise into persistent access that outlasted the remediation of the original vulnerabilities. Defenders investigating affected hosts should look for evidence of GSocket deployment, persistence, privilege escalation, and outbound connections, rather than treating application patching alone as complete remediation.
Microsoft Defender for Endpoint telemetry shows this activity growing over recent months and concentrated on web applications and hosting environments. GSocket relays traffic through a shared public network, so there is no threat actor-owned IP address or domain to block.
When one RCE stops being just one RCEExploiting a web application vulnerability gives a threat actor command execution in the context of the web server process. That access lasts only while the vulnerability remains unpatched and the service keeps running. Patching the application or restarting the service can remove it.
To keep access, threat actors typically add a persistence mechanism, and each common option has drawbacks. SSH keys added to authorized_keys are easy for administrators to find during an audit. Reverse shells depend on threat actor-controlled servers that defenders can block or sinkhole. Custom implants require ongoing development and maintenance. The same trade-offs apply when initial access comes through remote access services or cloud shell sessions.
GSocket addresses these drawbacks, which helps explain why multiple unrelated threat actors have adopted it.
- Shared relay infrastructure. Traffic passes through the Global Socket Relay Network, a public relay service. The threat actor does not register or host any infrastructure, so there is no threat actor-owned IP address or domain to block. Organizations can still restrict access to the relay itself.
- Outbound-only connections. The compromised host and the operator both connect outbound to the relay, which bridges the two sessions. The host needs no inbound listener or public IP address, and network address translation does not prevent the connection. Inbound firewall rules do not see this traffic, although egress filtering and outbound monitoring can.
- Built-in evasion and persistence. The deployment script can rename the process, stage files in memory-backed directories, and install persistence that survives a reboot, without additional development by the threat actor.
The same relay model that supports legitimate remote administration also gives threat actors a way to maintain access without operating dedicated C2 infrastructure. Once GSocket runs on a compromised server, the server and the operator each connect outbound to the Global Socket Relay Network, which pairs the two sessions over an end-to-end encrypted channel.
Figure 1: After code execution on an internet-facing application, GSocket is deployed and both ends connect outward to the relay.Because GSocket runs independently of the exploited application, patching the vulnerability does not remove the relay client or its persistence.
Microsoft Defender for Endpoint telemetry shows that this activity is not limited to a single compromise. From March through August 2026, devices with GSocket-related detections increased 356.2%, although the increase was not consistent month to month.
Figure 2: Growth in GSocket-related detections from March to August, measured against the March baseline.Web applications and hosting accounted for 87.1% of attributable Microsoft Defender for Endpoint incidents in the analysed telemetry. Within that group, PHP web applications and cPanel hosting represented 63.9% of incidents and Apache represented 24.3% (Figure 3).
Figure 3: Distribution of GSocket-related incidents by application category. PHP web applications and Apache account for most incidents within the web applications and hosting group.Education and research accounted for the largest share of affected organizations (30.7%), followed by technology and telecommunications (22.9%).
Figure 4: Distribution of affected organizations by sector.These figures reflect the share of affected organizations and do not indicate that threat actors selected these sectors deliberately. Exposure is the more likely factor: academic institutions often run large, decentralized web estates maintained outside central IT, which are harder to inventory and patch.
Observed attack chainsThe RCE-based intrusions in this analysis followed a similar sequence after initial access. Threat actors compromised an internet-facing application, profiled the host, transferred and concealed the relay tooling, and used the resulting channel for command and control. Some intrusions also included persistence and privilege escalation. Figure 5 combines these behaviours into a generalized attack chain. Not every stage occurred in every intrusion.
Figure 5: Generalized GSocket attack chain observed across RCE-based intrusions, mapped to MITRE ATT&CK. How threat actors deploy and operate GSocketInitial access and deployment: Threat actors exploited internet-facing web applications and used curl to download and execute a remote script. The script profiled the host, selected a GSocket client matching the system architecture, staged it in writable or memory-backed paths such as /dev/shm, and established encrypted outbound command and control through the Global Socket Relay Network.
Figure 6: Encoded RCE command executed through a vulnerable PHP application.Defense evasion and persistence: Threat actors disguised GSocket with kernel-thread-like process names, persisted through cron, systemd, shell profiles, watchdogs, and redundant copies, then removed staging files and other deployment indicators.
Figure 7: Kernel thread names used to disguise the GSocket process. Figure 8: Persistence entries created during GSocket deployment.Privilege escalation: After gaining execution as the web-service account, in few observed incidents, threat actors attempted to exploit CVE-2026-43284, one of the recent Linux kernel vulnerabilities also known as Dirty Frag, to elevate privileges to root.
How GSocket reconnects without a fixed C2 addressGSocket identifies endpoints by a shared secret instead of an IP address or hostname. During installation, the deployment script typically generates a random secret and writes it to standard output. The threat actor can choose to read the secret from the console, redirect it to a temporary file and retrieve the file before is deleted, or have it delivered through a supported notification channel, such as Telegram (configured with GS_TG_TOKEN and GS_TG_CHATID), Discord, or a webhook. With this secret, the operator can reconnect later from any compatible GSocket client, without knowing the victim’s IP address, hostname, or network location.
A traditional reverse shell connects to a threat actor-controlled IP address written into the payload. GSocket instead derives its connection identifier and authentication material from the shared secret. The compromised host and the operator each connect outbound to the Global Socket Relay Network (GSRN), which matches them and brokers an end-to-end encrypted session. Neither endpoint needs a public IP address, an inbound listener, or a permissive inbound firewall rule.
As a result, blocking an IP address or domain is unlikely to cut off access. The connection relies on a shared relay service, outbound traffic that is commonly permitted, and a secret that does not need to be hardcoded in the payload. Anyone with the shared secret can reconnect through the relay without knowing the compromised host’s IP address or hostname.
Mitigation and protection guidanceFor an affected Linux server, remediation should address both the initial compromise and the GSocket deployment.
- Patch and harden internet-facing applications. Keep web applications, CMS platforms, plugins, and application servers current. Remove unused components and restrict file-upload and administrative paths.
- Remediate the host as well as the vulnerability. Do not treat application patching as complete remediation. Investigate and remove the GSocket client, associated persistence, and staged files, then verify that outbound connections to the relay infrastructure have stopped
- Patch and harden internet-facing applications. Keep web applications, CMS platforms, plugins, and application servers current. Remove unused components and restrict file-upload and administrative paths.
- Constrain outbound traffic. Apply deny-by-default egress rules, allow only required destinations, and monitor connections to relay infrastructure.
- Harden the host runtime. Mount temporary and memory-backed directories as non-executable where feasible, and alert on execution from hidden or world-writable paths.
- Audit persistence surfaces. Review cron entries, systemd units with plausible service names, and shell startup files. Persistence is often layered across several mechanisms, so stopping the running process alone does not remove access.
- Prioritize local privilege-escalation patching on internet-facing servers. In the analyzed activity, threat actors attempted to exploit CVE-2026-43284 to escalate from the web-service account to root. Separately, Microsoft FORGE Lab recently documented 59 Linux kernel bug reports, including eight vulnerabilities for which researchers demonstrated local root privilege-escalation exploits in controlled environments.
- Enable Microsoft Defender for Endpoint on Linux. Keep real-time and cloud-delivered protection enabled, with behavior monitoring for anomalous child processes of web services and masqueraded process identities.
Microsoft Defender for Endpoint provides visibility into activity associated with GSocket-related Linux intrusions, including suspicious shell execution, payload delivery, persistence, defense evasion, and remote communication. The alerts below were observed in the analyzed telemetry. An individual alert does not establish the initial access method or confirm that every stage of an intrusion succeeded.
TacticObserved activityExample alerts observed in analyzed telemetryInitial access, ExecutionShells and commands launched from web servers and application runtimes– Possible Web Server compromise activity– Suspicious shell execution from PHP application
– Suspicious shell execution from web server application
– Suspicious shell execution from a scripting application runtime
– Suspicious remote command execution via Java Web application
– Suspicious remote command execution through Node web applicationExecutionGSocket and gs-netcat tooling launched on the host– ‘GsNetcat’ hacktool was prevented
– ‘GsNetcat’ hacktool was blocked and was active
– An active ‘GsNetcat’ hacktool was blocked
– An active ‘GsNetcat’ hacktool process was detected while executing and terminatedExecution, Payload deliveryShell commands and scripts used to retrieve, prepare, and launch payloads– Suspicious shell command execution
– Suspicious piped command launched
– Suspicious script launched
– Executable permission added to file or directory
– Suspicious file dropped and launched
– Suspicious file or content ingressPersistenceCron jobs and Linux services created for recurring execution and continued access– Suspicious cron job creation
– Suspicious Linux service createdDefense evasionHidden file execution, obfuscation, timestomping and removal of binaries or history traces.– Hidden file executed
– Suspicious file or information obfuscation detected
– Suspicious deletion of launched process binary
– Attempt to clear command history
– Suspicious timestamp modificationDiscoveryReconnaissance and collection of local system information– Reconnaissance activity
– Suspicious process collected data from local systemCommand and controlReverse-shell behavior and communication with GSocket domains– Possible reverse shell
– Suspicious communication with a remote target Microsoft Security Copilot
Security Copilot customers can use the standalone experience to create their own prompts or run prebuilt promptbooks to automate incident response or investigation tasks related to this threat:
- Incident investigation: correlate web-service process ancestry, relay client deployment, persistence changes, and outbound activity into a single timeline for the affected host.
- Threat actor profile: summarize observed GSocket tradecraft and related tooling seen in the environment.
- Device summary: assess the affected Linux host, its exposed application, and follow-on activity after initial execution.
Microsoft Defender XDR customers can use the following queries to surface GSocket-related activity. The queries use public Advanced Hunting tables populated by Microsoft Defender for Endpoint and cover deployment patterns observed in the analyzed intrusions.
Matches should be investigated in context with process ancestry, execution context, persistence changes, and related network activity.
GSocket process activity
Looks for GSocket tooling by name or command line.
DeviceProcessEvents | where Timestamp > ago(7d) | where FileName has_any ("gs-netcat", "gsocket") or ProcessCommandLine has_any ("gsocket.io", "gs-netcat", "gsnetcat") | project Timestamp, DeviceName, AccountName, FileName, FolderPath, ProcessCommandLine, InitiatingProcessFileName | order by Timestamp descInstaller download activity
Looks for the download-and-execute pattern used to fetch GSocket.
DeviceProcessEvents | where Timestamp > ago(7d) | where ProcessCommandLine has "gsocket.io" or ProcessCommandLine has "gsgg.b-cdn.net" | project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName | order by Timestamp descConnections to observed distribution hosts
These are tool distribution endpoints, not threat actor-owned command and control.
DeviceNetworkEvents | where Timestamp > ago(7d) | where RemoteUrl has_any ("gsocket.io", "gsgg.b-cdn.net") | project Timestamp, DeviceName, ActionType, RemoteUrl, RemoteIP, RemotePort, InitiatingProcessFileName, InitiatingProcessAccountName | order by Timestamp descKnown file hashes
Matches the SHA-256 hashes published in the indicators of compromise section.
let badSHA256 = dynamic([ "d94f75a70b5cabaf786ac57177ed841732e62bdcc9a29e06e5b41d9be567bcfa", "f95c4d029e6784e3849b4d1e2e2ae1a661187236ef7c5d487c71158a290a03b5", "55d141bb2f62c527c3fea3413b8429fed7d52633d0b123b5e611bfa42165229f", "12450bafc7a4398040e1ad3a16dbf4dbc79b6a8f83ef306c4f0f73f59886f06c" ]); DeviceFileEvents | where Timestamp > ago(7d) | where SHA256 in~ (badSHA256) | project Timestamp, DeviceName, ActionType, FileName, FolderPath, SHA256, InitiatingProcessFileName, InitiatingProcessCommandLine | order by Timestamp descStaging and persistence artifacts
Useful when hashes are missing or a different build is used.
DeviceFileEvents | where Timestamp > ago(7d) | where FolderPath startswith "/dev/shm/.gs-" or FileName in~ ("systemd-remount-d", ".gsn_ora", "defunct", "defunct.service") | project Timestamp, DeviceName, ActionType, FileName, FolderPath, SHA256, InitiatingProcessFileName, InitiatingProcessCommandLine | order by Timestamp desc MITRE ATT&CK techniques observedThe following techniques were observed across the analyzed intrusions. Not every technique occurred in every intrusion, and some outcomes, such as persistence across reboot and successful relay session establishment, were not confirmed in every case.
Initial access
- T1190 Exploit Public-Facing Application | Internet-facing web applications were exploited to gain command execution in the web service context. Follow-on commands were launched as children of web server and application runtime processes, consistent with exploitation of an exposed application.
Execution
- T1059.004 Command and Scripting Interpreter: Unix Shell | Commands used curl to retrieve the GSocket installation script and executed it with bash.
Additional bash invocations launched the renamed payload.
Execution, Persistence
- T1053.003 Scheduled Task/Job: Cron | Cron entries were created in the same detection window as GSocket deployment script activity, consistent with persistence.
Persistence
- T1543.002 Create or Modify System Process: Systemd Service | Activity launched a bash command invoking the renamed /usr/bin/defunct payload and referenced defunct.service and a multi-user.target.wants link.
Defense evasion
- T1036 Masquerading | A GsNetcat binary executed as systemd-remount-d, a system service-like filename. In a separate execution context, bash used exec -a to present /usr/bin/defunct with the argument-zero name [kaluad].
- T1564.001 Hide Artifacts: Hidden Files and Directories | gs-netcat payloads were staged under the dot-prefixed /dev/shm/.gs-0 directory. A GsNetcat-detected file was also observed at /tmp/.gsn_ora.
- T1222.002 File and Directory Permissions Modification: Linux and Mac File and Directory Permissions Modification | chmod changed permissions on the renamed payload, including chmod 700 /usr/bin/defunct.
- T1070.006 Indicator Removal: Timestomp | touch commands applied older timestamps to /usr/bin/defunct and defunct.service. Timestamp copy operations targeted the system service-like payload name.
- T1070.004 Indicator Removal: File Deletion | rm removed the staged /dev/shm/.gs-0/gs-netcat file, and a separate rmdir command removed the staging directory.
Command and control
- T1105 Ingress Tool Transfer | curl downloaded gs-netcat payloads from GSocket distribution endpoints into /dev/shm/.gs-0.
- T1090.002 Proxy: External Proxy | GSocket clients were launched with options that establish outbound sessions to the Global Socket Relay Network, a shared public relay that brokers the connection between the compromised host and the operator. The relay is third-party infrastructure and is not owned by the threat actor.
The indicators below were observed in the analyzed telemetry. They represent specific observations from these intrusions rather than a complete inventory of GSocket tooling or infrastructure.
IndicatorTypeDescriptiongsocket[.]ioDomainScript and installer retrievalcdn[.]gsocket[.]ioDomainClient binary distributiongsgg[.]b-cdn[.]netDomainClient binary distributionhxxps://gsocket[.]io/yURLScript retrieval in download-and-execute commandshxxps://gsocket[.]io/install.shURLInstaller retrieval target; successful retrieval not establishedhxxps://gsgg[.]b-cdn[.]net/bin/gs-netcat_mini-linux-x86_64URLDownload source associated with the x86-64 file belowhxxps://cdn[.]gsocket[.]io/bin/gs-netcat_mini-linux-aarch64URLDownload source associated with the AArch64 file below/dev/shm/.gs-0/gs-netcat_mini-linux-x86_64FilepathIdentified as HackTool:Linux/GsNetcat.A!MTB; hidden staging directoryd94f75a70b5cabaf786ac57177ed841732e62bdcc9a29e06e5b41d9be567bcfaSHA256SHA-256 for /dev/shm/.gs-0/gs-netcat_mini-linux-x86_64; Identified as HackTool:Linux/GsNetcat.A!MTB; hidden staging directory/dev/shm/.gs-0/gs-netcat_mini-linux-aarch64FilepathIdentified as HackTool:Linux/GsNetcat.A!MTB; AArch64 payloadf95c4d029e6784e3849b4d1e2e2ae1a661187236ef7c5d487c71158a290a03b5SHA256SHA-256 for /dev/shm/.gs-0/gs-netcat_mini-linux-aarch64; Identified as HackTool:Linux/GsNetcat.A!MTB; AArch64 payload/tmp/systemd-remount-dFilepathIdentified as HackTool:Linux/GsNetcat!rfn at both paths; service-like filename/usr/bin/systemd-remount-dFilepathIdentified as HackTool:Linux/GsNetcat!rfn at both paths; service-like filename55d141bb2f62c527c3fea3413b8429fed7d52633d0b123b5e611bfa42165229fSHA256SHA-256 for /tmp/systemd-remount-d, /usr/bin/systemd-remount-d; Identified as HackTool:Linux/GsNetcat!rfn at both paths; service-like filename/tmp/.gsn_oraFilepathHidden file identified as HackTool:Linux/GsNetcat.A!MTB12450bafc7a4398040e1ad3a16dbf4dbc79b6a8f83ef306c4f0f73f59886f06cSHA256SHA-256 for /tmp/.gsn_ora; Hidden file identified as HackTool:Linux/GsNetcat.A!MTB References- The Hacker’s Choice. “GSocket.” GitHub. https://github.com/hackerschoice/gsocket
- Microsoft Defender Security Blog: Cookie-controlled PHP webshells: A stealthy tradecraft in Linux hosting environments
https://www.microsoft.com/en-us/security/blog/2026/04/02/cookie-controlled-php-webshells-tradecraft-linux-hosting-environments/ - Elastic Security Labs: Betting on Bots
https://www.elastic.co/security-labs/threat-command/betting-on-bots - SANS Internet Storm Center: GSocket Backdoor Delivered Through Bash Script
https://isc.sans.edu/diary/32816 - Sansec: Found defunct.dat on Your Site? You’ve Got a Problem https://sansec.io/research/gsocket
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
Review our documentation to learn more about our real-time protection capabilities and see how to enable them within your organization.
- Learn more about securing Copilot Studio agents with Microsoft Defender
- Evaluate your AI readiness with our latest Zero Trust for AI workshop.
- Microsoft 365 Copilot AI security documentation
- How Microsoft discovers and mitigates evolving attacks against AI guardrails
- Prompt injection protection in Microsoft Defender for Office 365 – official documentation of the prompt injection protection in Microsoft Defender for Office 365.
- How Microsoft discovers and mitigates evolving attacks against AI guardrails | Microsoft Security Blog
- Manipulating AI memory for profit: The rise of AI Recommendation Poisoning | Microsoft Security Blog – a related example of an AI-era technique observed in email traffic
- Defending the inbox against prompt injection attacks | Microsoft Defender for Office 365 Blog – feature announcement introducing prompt injection protection in Microsoft Defender for Office 365.
- Learn how Microsoft is reimagining the SOC for the agentic era with ISOC in Microsoft Defender
The post The global socket: how threat actors are weaponizing GSocket for stealthy C2 appeared first on Microsoft Security Blog.
Lessons from 59 Linux Kernel Bug Reports
At Microsoft’s FORGE Lab, we used codename MDASH to scan a subset of Linux kernel subsystems from late May to mid-June 2026. One full-time researcher and one intern led this three-month effort, which has so far produced 59 public upstream reports and 33 assigned CVEs. We confirmed working root privilege-escalation exploits for eight of those CVEs, and fixes for 38 of our reports have been merged into mainline.
Finding the bugs was only part of the work. The initial scans produced 26,502 raw findings in about two weeks, but turning those results into reproducible bugs, upstream reports, and patches took months of expert investigation and collaboration with Linux maintainers.
In this post, we look back at how we went from thousands of potential findings to validated vulnerabilities and upstream fixes, and what we learned about scaling vulnerability discovery with AI.
From scans to reportsWe focused on several core kernel subsystems, such as networking, filesystems, and security modules. Our selection criteria were straightforward: we picked security-sensitive components with no obvious dependence on specialized hardware, making QEMU-based validation simple and unified. Code scanning mainly used Sonnet 4.6 (71.1% of code-scanning tokens), GPT-5.4 (20.1%), and GPT-5.5 (7.1%).
The codename MDASH scans produced 26,502 raw scan findings in about two weeks on two servers (64 cores/256 GB RAM and 32 cores/128 GB RAM), but turning that output into patches and reports took months of expert work. We filtered out low-confidence claims using codename MDASH’s confidence levels and separate fast screening agents we built, reducing the pool to 11,769 candidates. PoC-generating agents then attempted reproduction in QEMU, mainly using GPT-5.5 (77.3% of reproduction tokens), Opus 4.6 (13.2%), and GPT-5.5-cyber (9.4%). Experts then reviewed the 621 cases with PoC evidence to identify root causes, merge duplicates, and prepare upstream submissions.
Figure 1 . Scan-to-report workflow. 26,502 raw findings → 11,769 screened candidates → 621 PoC-backed cases → 59 upstream reports. Where the 621 cases wentRoughly one public upstream report landed from every ten PoC-backed cases: 59 reports from 621 cases (9.5%). Across those cases, the main reasons for not filing a separate new report were:
- 266 (42.8%) shared a root cause with another case, so one patch could fix them together.
- 163 (26.2%) were not reported after review, mostly due to limited security impact.
- 133 (21.4%) were already reported or fixed upstream.
Submission timing explains many of the 133 overlaps. Most of the 621 cases were new when the scans finished (though some may already have been in flight by others). Our first public report went out on June 27, 2026, more than five weeks after scanning started. By September 1, 55 of the 59 had been posted to the public lists; the other four were reported privately during the same window and routed to the public lists by mid-October.
Getting fixes mergedUpstream Linux typically requires vulnerability reports to come with a working patch. Agents helped draft initial fixes, but human validation, subsystem understanding, and iterating with maintainers during review remained essential. So far, fixes for 38 of our reports have been merged into upstream mainline—half on the first submission, and the rest after one to four revisions. Reaching a mainline release from the first public patch took a median of 41 days (up to 108 days), and we are still working with maintainers on the remaining reports.
How old the bugs wereInterestingly, most of the bugs we reported had been in the kernel for years. Across the 59 reports, the average bug was 8.1 years old when we first reported it publicly. One of the oldest, a cls_u32 shift-out-of-bounds bug (CVE-2026-74544), had been there for at least 21 years.
Figure 2 . Age of reported kernel bugs, measured from the bug-introducing commit (the fix’s Fixes tag) to our first public report. Average age 8.1 years across 59 reports; six were 15–19 years old and three were at least 20 years old. Selected findingsAmong the 33 CVEs assigned so far from this batch, 24 are rated High or above (CVSS v3.1 score of at least 7.0). Below are eight CVEs for which we confirmed local root privilege-escalation exploits in controlled laboratory environments, with some cases requiring non-default settings or disabled exploit mitigations:
CVE-2026-…ModuleSummary64554net/ipv6Use-after-free in bridged IPv6 fragmentation: a saved pointer into a packet was reused after the packet’s buffer was reallocated.64563lib/rhashtableUse-after-free in hash-table walks: a walk resumed after the table was resized reused a pointer to a possibly freed entry.64580net/ipv6Refcount underflow in IPv6 IPsec routing: an error path dropped a device reference but kept the pointer, so cleanup dropped it again.74561net/ipv4Use-after-free in next-hop replacement: the route-cache flush walked an IPv6 route list without its lock, racing with route deletion.74562net/ipv4Use-after-free in next-hop replacement: route checks and notifications walked an IPv6 route list without its lock, racing with route deletion.89789drivers/netUse-after-free in the GTP tunnel driver: when device creation failed, its lookup tables were freed while incoming packets could still read them.98222security/keysHeap buffer overflow in encrypted-key updates: long key parameters overflowed a 16-bit length, so the kernel wrote past an undersized buffer.98364net/xfrmUse-after-free in IPsec routing: a network device was used without holding a reference, so deleting it at the same time could free it mid-use. A closer look at CVE-2026-64563CVE-2026-64563 is a one-line state-reset bug in rhashtable, the Linux kernel’s shared resizable hash table. Because callers trust the object pointers returned by a table walk, this small library flaw enabled a stable local privilege escalation on Linux—and affected Android with SELinux enforcing—without requiring special kernel configurations or user namespaces.
Many kernel subsystems store live objects, such as sockets, in rhashtable and walk the table when user space asks to list them. Because a large listing may be split across several replies, a walk can pause and resume. Its iterator saves where it stopped, including a pointer to the last visited entry (iter->p). While the walk is paused, however, the table can still change: entries can be removed and freed, and resizing can replace the underlying bucket table.
The missed resetBefore 2018, rhashtable_walk_stop() always cleared iter->p = NULL on pause. To improve walk stability across stop/start cycles, a 2018 commit (5d240a8936f6) kept iter->p across walk_stop() and moved the reset into rhashtable_walk_start_check()—but only on one of its two resume paths:
Old table freed by a resize (iter->walker.tbl == NULL): lines 877–882 switch to the new table, reset slot and skip, and return -EAGAIN early without clearing iter->p:
Old table still present (iter->walker.tbl != NULL): lines 884–919 scan the bucket chain for iter->p and reset iter->p = NULL if the entry was removed.
if (!iter->walker.tbl) { iter->walker.tbl = rht_dereference_rcu(ht->tbl, ht); iter->slot = 0; iter->skip = 0; return -EAGAIN; }After that restart, the next call to rhashtable_walk_next() sees iter->p still set and follows iter->p->next instead of starting over at slot = 0. If that entry was freed while the walk was paused, dereferencing iter->p->next reads from freed memory.
Why did this bug go unnoticed for eight years? Triggering it requires three conditions to line up in the same walk: the caller must pause and resume the same iterator across walk_stop() and walk_start(), a table resize must free the old bucket table during that pause, and the entry at iter->p must also be removed and freed before the walk resumes. Most rhashtable walkers finish in a single pass without ever resuming a stopped iterator, and even when a caller does pause and resume, those three events rarely coincide by accident in normal workloads.
The upstream fix simply clears the stale pointer before returning:
+ iter->p = NULL; From a socket listing to a kernel writeBecause rhashtable is a shared library, its callers determine both whether this bug is reachable and how severe its security impact can be. Across the kernel, there are about two dozen files that use the rhashtable walker API, and most walk the table in a single pass and immediately exit. Among those callers, we found two that pause and resume an iterator across batches and can at least cause a crash: TIPC’s socket dump (tipc_nl_sk_walk()) and Netlink’s socket diagnostics (__netlink_diag_dump()).
Of the two, __netlink_diag_dump() is the exploitable caller. It is reachable by unprivileged users on standard kernels, and user space controls the pause between dump replies (via recvmsg()). An attacker can hold a dump paused while resizing the table and freeing the socket at iter->p, then reallocate that memory to control iter->p->next—causing rhashtable_walk_next() to return a fake socket pointer sk.
__netlink_diag_dump() then checks net_eq(sock_net(sk), net) and passes sk to sk_diag_fill() and sock_diag_save_cookie(), which initializes sk->sk_cookie if it is zero. That turns the fake sk pointer into a constrained 64-bit write (when the target 8 bytes are zero and sk->sk_net matches &init_net). Paired with other general exploitation techniques, this write is enough for local privilege escalation.
We thank Yuan Tan of NebuSec, who also independently found this vulnerability. He promptly shared its real severity with us and the maintainers, which helped the upstream fix, and later provided us with his working exploits for both Linux and Android. We also thank Frank Wu of NebuSec, who identified a viable exploitation primitive and developed a working privilege-escalation exploit.
Closing thoughtsFinding bugs and fixing them are drastically out of balance. Two weeks of codename MDASH scanning produced the initial findings, which we narrowed to 621 PoC-backed cases. But it took over four person-months to report 59 of them—and five months later, 38 fixes have been merged. For complex infrastructure like the Linux kernel, keeping humans in the loop is still necessary, making human effort the bottleneck. Both bug hunters and maintainers can be overwhelmed by the volume of real findings, so focusing on genuinely high-severity issues is essential.
More tokens may yield more bugs, but not a secure system. We scanned only a small fraction of the kernel, and further tuning and more tokens could uncover substantially more bugs. But even after fixing all of them, is the system secure? At Microsoft FORGE Lab, we’re using AI to expand the scope of vulnerability research, but our experience shows that discovery is only one part of the work. The more urgent problem is how to build practical security solutions that are operational, cumulative, and economically sensible.
These lessons also extend beyond our research. Through close collaboration with the engineering teams building codename MDASH, we’re applying what we learn from real-world vulnerability discovery and validation to inform how these capabilities evolve. The goal is to bring advances in AI-powered security research into the hands of security teams, helping them identify and address critical vulnerabilities more effectively.
The post Lessons from 59 Linux Kernel Bug Reports appeared first on Microsoft Security Blog.
Detecting sleeper agents hiding in AI model neurons
Microsoft Research has released new threat research detailing how a capable agent model could be turned into a sleeper agent by editing fewer than 10 neurons to inject a short payload. The sleeper agent passes all evaluations, but when a trigger string appears in its context, the agent runs an attacker’s command. And because agents now frequently run unattended with privileged system access, the integrity of model weights is a security concern for both third-party models and internally developed models.
Key findings from Microsoft Research include:
- Software abuse and manipulation are familiar threats. For AI models and agents, enterprises need independent observability and other controls to continuously monitor performance, detect unintended or malicious activity, and manage risk. Satya Nadella recently outlined this approach in a blog post.
- A backdoored model can pass evaluations. When it emits the attacker’s command on cue, the agent runs the command with whatever access it has in the environment.
- The attack needs inference-only compute. If a machine has enough RAM to run a model, it has enough resources to weight-space backdoor it.
- Claude Code with Opus 4.5 discovered most of this threat autonomously.
Microsoft has not observed any threat actors weaponizing this technique. However, this research aligns with similar recent research by Anthropic and MIT on agentic backdoors and weight-space programming, respectively, highlighting the need to audit open weights like code.
Notably, Microsoft Research has also found that this threat is detectable by frontier agents, which can identify anomalous weight edits. Using frontier agents as auditors can help automate the defense against this threat. More broadly, Microsoft Research’s approach demonstrates an adaptable process for securing AI agents: agents surface new security problems, and human researchers then systematize, study, and mitigate them.
Learn more from the Microsoft Research Blog: Lazare, veni foras: Reprogramming Dormant Neurons to Backdoor AI Agents.
Mitigation and protection guidanceMicrosoft recommends the following mitigations to defend against this threat as part of a broader defense-in-depth approach. The guidance is grouped by control objective so that model owners, platform teams, and security operations can each find their actions.
Audit model weights before deployment and after every update- Diff every checkpoint against its declared base model before deployment and after each update. Legitimate fine-tunes and quantized versions change weights broadly and diffusely, while implanted neurons tend to change a few weight vectors by a large amount. Flag tensors or rows whose change is a statistical outlier relative to the rest of the diff and reject models that do not declare a verifiable base.
- Use frontier AI agents as auditors in the model intake pipeline. Microsoft Research found they are highly effective at finding anomalous structure in weights that manual inspection misses, which makes this step automatable at scale.
- Complement weight diffing with behavioral backdoor scanning of open-weight models, as described in Microsoft’s research on detecting backdoored language models at scale.
- Record audit results alongside the model in the registry, and state clearly to internal consumers that passing an audit reduces risk but does not guarantee safe behavior.
- Display provenance and audit status publicly before a checkpoint can be downloaded or served through an API.
- Scan every upload for anomalous neurons, weight patterns or behaviors, and state clearly that third-party checkpoints can be unsafe and that passing an audit does not guarantee safe behavior.
- Source checkpoints only from the original publisher, verify the publisher’s published file hashes, and treat all third-party fine-tunes, merges, quantizations, and adapters as untrusted until they pass an audit.
- Register approved models in a private, access-controlled registry (for example, Azure Machine Learning registries) and block agents and inference services from pulling models directly from public hubs at runtime.
- Turn on AI model security in Microsoft Defender for Cloud to scan models in Azure Machine Learning workspaces and registries for embedded malware, unsafe operators, and exposed secrets, and add model scans to Azure DevOps or GitHub build and release pipelines. Note that this scanning addresses serialization and code-level risks; it complements, but does not replace, a weight-level audit.
- Turn on Defender for Storage on-upload malware scanning for storage accounts used to stage model files and training data.
- Add trigger-hunting and backdoor scenarios to your AI red team plan. Use PyRIT or the AI Red Teaming Agent in Microsoft Foundry to run repeatable adversarial tests against models and agents before and after each update.
- Run agents with least privilege. Give each agent its own Microsoft Entra Agent ID, scope its permissions to the minimum set of resources it needs, and use Conditional Access for agents to lblock unapproved or high-risk agent identities.
- Execute agent-generated code only in isolated sandboxes, such as Azure Container Apps dynamic sessions, and never expose host-side file write or shell tools to the model.
- Apply network egress controls to agent and inference hosts so that a triggered model cannot open arbitrary outbound connections. Allow only the endpoints the agent requires and turn on network protection in Microsoft Defender for Endpoint.
- Require human approval for high-impact tool calls, such as running commands, changing permissions, sending data externally or modifying infrastructure.
- Apply attack surface reduction rules to devices that host local agents and inference servers, starting in audit mode.
- Turn on Microsoft Defender security for AI agents and configure real-time protection rules so Defender can audit and block risky tool invocations, secret exfiltration, and evasion techniques for Microsoft Foundry, Copilot Studio and Agent 365 agents, and runtime protection for local agents through Defender for Endpoint.
- Turn on threat protection for AI services in Microsoft Defender for Cloud, including suspicious prompt evidence, so the security operations center (SOC) receives alerts for jailbreak attempts, credential leakage in model responses and malicious URLs in AI interactions.
- Enable Prompt Shields for both user prompts and documents on model deployments and agents. Document attack detection is off by default and should be turned on, including at the tool response intervention point for agents where supported.
- Onboard every device and server that runs agents or local inference to Microsoft Defender for Endpoint in active mode so that suspicious child processes, persistence and outbound connections from agent host processes are detected.
- Use the AI agent inventory in the Microsoft Defender portal to discover agents, their tools, identities, and risk indicators.
- Use AI security posture management in Defender for Cloud to build an AI bill of materials (AI BOM) across Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP), so you know which models are deployed where.
- Use Microsoft Defender for Cloud Apps and Microsoft Purview DSPM for AI to discover, sanction or block generative AI apps, and to monitor sensitive data in AI interactions.
- Map controls to the Microsoft catalog of AI defense capabilities, which groups supply-chain provenance, model hardening, runtime isolation and monitoring into a single framework aligned to MITRE ATLAS and the OWASP Top 10 for LLM Applications.
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
The post Detecting sleeper agents hiding in AI model neurons appeared first on Microsoft Security Blog.
FORGE Lab uses agentic tools to identify memory safety issues in Rust
- How we found and validated the bugs
- Pattern 1: Trusting code not to panic
- Pattern 2: Trusting user-provided implementations to be correct
- Pattern 3: Trusting the underlying system
- Why Rust still matters and advancing vulnerability discovery with AI
- Rust's high bar is hard to meet but worth keeping
Microsoft’s FORGE Lab found several memory safety issues in Rust’s standard library (std and core), including cases where code written entirely in safe Rust can trigger undefined behavior. The research used Hyenas, FORGE’s frontier research version of codename MDASH, an AI-powered vulnerability-scanning system. The findings reveal three recurring patterns of misplaced trust in unsafe code: trusting code not to panic, trusting user-provided implementations to be correct, and trusting the underlying system.
Rust’s safety guarantees are precisely what make these findings interesting. Its rich type system and ownership model rule out whole classes of memory-safety issues, but much of the standard library relies on unsafe code underneath its safe APIs. When that code breaks its safety contract, even safe Rust can encounter behavior the language is designed to prevent.
Rust’s memory-safety guarantees are increasingly important as the language becomes part of software that billions of people rely on every day. Billions of people are estimated to interact with Rust-based software or operating systems daily, often without knowing it. Microsoft made Rust a Tier-1 internal language alongside C++, C#, and TypeScript, GitHub rewrote the Copilot agent runtime in Rust, and Bun, Android, the Linux kernel, and Cloudflare are moving code to it as well. Much of this software relies on Rust’s foundational libraries, core and std, and the safety guarantees of the APIs they provide. Bugs in those libraries can have consequences well beyond the code where they originate.
Unsafe Rust has been a long-running interest for us. Our team includes the people behind Rudra, a static analyzer that looked for memory-safety bugs across the Rust ecosystem in 2021. We also write many of our own tools in Rust, so its safety is more than a research topic for us. This year, we took a closer look at the standard library to see what kinds of mistakes still show up in its unsafe code today.
In this post, we share some of the bugs we reported to the Rust issue tracker. We use them to discuss what Rust does and doesn’t guarantee, why writing correct unsafe Rust is so difficult, and why Rust’s safety model still matters even though its memory safety isn’t perfect.[OW1] [YB2]
How we found and validated the bugsAt Microsoft FORGE Lab, we study vulnerabilities in complex software, including the Rust standard library. Our team combines years of experience in vulnerability research with AI-assisted tools that help us investigate code and find bugs that are difficult to uncover through traditional analysis alone.
Some of the bugs in this post were found with help from Hyenas, our research version of codename MDASH. Our researchers investigated the underlying code, reproduced the bugs, assessed their potential security impact, and worked with Rust maintainers to report and fix them.
This post focuses on soundness bugs in the standard library’s unsafe code. Bugs in the compiler itself, such as miscompilations and holes in the type system, are a different topic that we don’t cover here.
A note on open issuesAt publication, two of the issues reported by our team remain open. The article also references related issues reported by others and fixes that are still under review. The Rust maintainers triaged and responded to our reports quickly, and we believe maintainers and the contributors working on these issues are doing their best and making the right tradeoffs among the many bugs they handle.
If you’re interested in an open issue, please comment only when you have something genuinely new to contribute, such as new information or an affected real-world use case.
Patterns of Rust’s Safety BugsAt the lowest level, Rust uses unsafe blocks to work with raw pointers and interact directly with the operating system. Much of the standard library, including Vec and String, is built from small unsafe pieces wrapped in safe APIs. Inside an unsafe block, the programmer takes responsibility for the guarantees the compiler can’t check, and that responsibility extends to the safe API built around it. That API must be sound: no matter how safe code uses it, it must be impossible to trigger undefined behavior.
Upholding that promise is harder than it looks. Consider a function that returns the byte at idx from any type that can be viewed as a byte slice, skipping the redundant bounds check after doing its own:
pub fn get>(s: &S, idx: usize) -> Option { if idx < s.as_ref().len() { // SAFETY: we just checked that `idx` is in bounds. Some(unsafe { *s.as_ref().get_unchecked(idx) }) } else { None } }The hard part of unsafe Rust is knowing what you can trust. The function above looks correct, but it assumes that two calls to as_ref return the same slice. Because S is chosen by the caller, a safe AsRef implementation can return a long slice the first time and an empty one the second, and get reads out of bounds. Unsafe code must be careful with every call it makes, and the bugs we found fall into three patterns of misplaced trust: trusting code not to panic, trusting user-provided implementations to be correct, and trusting the underlying system.
Pattern 1: Trusting code not to panicUnsafe code often breaks an invariant for a moment and restores it afterward; for example, it may allocate an uninitialized buffer and fill it directly, avoiding redundant writes to zero the memory first. That’s fine as long as the function runs to the end. But many operations in Rust can panic, from out-of-bounds indexing to calls into user-provided code, and by default a panic unwinds: it leaves the function early while still running destructors. Unwinding inside that window becomes an invisible exit that exposes the broken invariant to code that trusts it. Bugs of this kind are called panic safety bugs.
Figure 1 — Panic Safety. MapWindows::clone (issue #156501)We identified a panic safety issue in MapWindows::clone. The nightly API Iterator::map_windows yields overlapping windows of N items. It keeps the current window in a Buffer whose destructor drops the N items starting at start. In Rust 1.97.0, library/core/src/iter/adapters/map_windows.rs defines it as:
struct Buffer { // Invariant: `self.buffer[self.start..self.start + N]` is initialized, // with all other elements being uninitialized. This also // implies that `self.start <= N`. buffer: [[MaybeUninit; N]; 2], start: usize, }Buffer::clone, in the same file, built the new buffer first and filled it afterward:
impl Clone for Buffer { fn clone(&self) -> Self { let mut buffer = Buffer { buffer: [[const { MaybeUninit::uninit() }; N], [const { MaybeUninit::uninit() }; N]], start: self.start, }; buffer.as_uninit_array_mut().write(self.as_array_ref().clone()); buffer } }After buffer is constructed, it breaks its own invariant: its slots are uninitialized, but its destructor is already armed. The self.as_array_ref().clone() call runs the user's T::clone before the slots are written. If that call panics, unwinding drops buffer and runs drop_in_place on N uninitialized values. Our proof of concept uses only safe code: an element type whose clone always panics, which causes a crash when the destructor accesses uninitialized memory. The fix holds the new buffer in ManuallyDrop until it is fully written, so unwinding leaks the half-built buffer instead of dropping it.
The general lesson is to treat every call to code you don’t control, such as clone, drop, comparisons, closures, and iterator methods, as a possible early exit. Either finish the work that may panic before breaking an invariant, or make the broken state safe to unwind through: hold it in ManuallyDrop, or use a guard whose destructor restores the invariant, like Vec’s internal SetLenOnDrop. The Rustonomicon covers this under exception safety.
Allocators must not unwindThe recently stabilized Allocator API shows how hard panic safety is to get right. With std, an allocation failure aborts the process by default instead of unwinding, so much of the standard library's unsafe code assumes allocation never unwinds. Custom allocators can break that assumption. While the API was being stabilized, we reported one place in BTreeMap::insert that becomes unsound when an allocator unwinds, and others reported more (#159334, #159368, #159370). Fixing them one by one would mean auditing everything that allocates, so the stabilization, shipping in Rust 1.100 on November 12, instead requires implementors never to unwind from the trait's methods or from drop. The proposal notes that "unwinding out of many allocation-related methods was found to be a pervasive source of unsoundness."
Pattern 2: Trusting user-provided implementations to be correctUnsafe code often calls into code its caller provides: a comparator, a trait implementation, a closure. That code is safe, but safe doesn’t mean correct, and it can return inconsistent or plainly wrong answers. The question is who is responsible when it does. In C++, it’s the caller. std::sort requires its comparator to be a strict weak ordering, and breaking that rule is undefined behavior. With libstdc++, sorting equal elements with <= reads past the end of the vector:
std::vector v(100, 42); // Bug: `<=` is not a strict weak ordering, since cmp(a, a) is true. std::sort(v.begin(), v.end(), [](int a, int b) { return a <= b; }); // AddressSanitizer: heap-buffer-overflow in std::__introsort_loopThe same comparator passed to Rust's sort_by is only a logic error. The sort may panic or leave the slice in an unspecified order, but it never causes undefined behavior. The responsibility sits with the unsafe code. The comparator is safe code supplied by the caller, so the unsafe code inside the sort must stay sound no matter what it returns. The same goes for every safe trait a user can implement: comparisons can be inconsistent, an ExactSizeIterator can report a length that doesn't match the items it yields, and Borrow can return a different value on each call.
str::replace with a custom Pattern (#156491)Another of our bug reports shows how easy this trust is to miss: str::replace with a custom Pattern can create a non-UTF-8 String. String search APIs accept any type that implements the nightly Pattern trait, and a pattern can describe itself through as_utf8_pattern. str::replace uses that description to take a fast path when replacing one ASCII byte with another. In Rust 1.96.0, the fast path in library/alloc/src/str.rs looked like this:
pub fn replace(&self, from: P, to: &str) -> String { // Fast path for replacing a single ASCII character with another. if let Some(from_byte) = match from.as_utf8_pattern() { Some(Utf8Pattern::StringPattern([from_byte])) => Some(*from_byte), Some(Utf8Pattern::CharPattern(c)) => c.as_ascii().map(|ascii_char| ascii_char.to_u8()), _ => None, } { if let [to_byte] = to.as_bytes() { return unsafe { replace_ascii(self.as_bytes(), from_byte, *to_byte) }; } }
replace_ascii, in the same file, then rewrites the bytes:
unsafe fn replace_ascii(utf8_bytes: &[u8], from: u8, to: u8) -> String { let result: Vec = utf8_bytes.iter().map(|b| if *b == from { to } else { *b }).collect(); // SAFETY: We replaced ascii with ascii on valid utf8 strings. unsafe { String::from_utf8_unchecked(result) } }The CharPattern branch checks that the character is ASCII, but the StringPattern branch assumes a one-byte string pattern must be ASCII. That holds for &str patterns, but StringPattern stored &[u8], and as_utf8_pattern is a safe method any Pattern can implement. In our proof of concept, a custom pattern reports the single byte 0x80, which only appears inside multibyte UTF-8 sequences:
impl Pattern for NonAsciiBytePattern { // ... fn as_utf8_pattern(&self) -> Option> { static NEEDLE: [u8; 1] = [0x80]; Some(Utf8Pattern::StringPattern(&NEEDLE)) } } // "\u{d000}" is [ed, 80, 80]; the result is [ed, 3f, 3f], which is not UTF-8. let corrupted = "\u{d000}".replace(NonAsciiBytePattern, "?");str::replace rewrites the continuation bytes and returns a String that isn't valid UTF-8, and later string operations that rely on UTF-8 reach undefined behavior. The fix changed StringPattern to hold &str instead of &[u8], so the type itself now guarantees UTF-8.
When unsafe code depends on a property of a user-provided implementation, don’t take it on faith. Call the implementation once and keep the result, validate what it returns, or encode the property in a type that safe code can’t forge, as this fix did. If none of those work, make the trait unsafe so implementors explicitly promise to uphold it.
More examplesjoin shows how easy it is to fix this kind of bug only partway. In 2020, we reported that it trusted Borrow::borrow to return the same string on each call (CVE-2020-36323), and the fix handled strings that shrink between calls. In April 2026, the same function needed another fix: join borrows the first element twice, and if it grows on the second call, the remaining-length calculation underflows into a heap overflow. The earlier fix had never covered that path.
Others reported similar problems in the Pattern API this year. A safe Pattern can hand back a valid searcher built for a different string, and consumers such as strip_prefix_of apply its ranges to the original string unchecked, reading out of bounds (#158265). The same problem turned up in split_once (#165076) after a report that the Searcher contract doesn't spell out what str::split relies on (#164904). Both bugs are still open.
Pattern 3: Trusting the underlying systemThe first two patterns stay inside Rust code. The third sits at the boundary with the operating system, where unsafe code trusts process-wide state such as signal stacks, memory mappings, and the environment, which other threads, C libraries, or the kernel can touch at any time. These bugs have been hard to find automatically, because a static analyzer would need to model all of that surrounding behavior. AI agents change the picture: they understand enough about the environment the code runs in to make this area practical to search. We started exploring it and found some interesting bugs.
process::exit and the main thread’s signal stack (#161018)When a thread overflows its stack, Rust prints a clear message and aborts instead of crashing with a bare segmentation fault:
thread 'main' (3307186) has overflowed its stack fatal runtime error: stack overflow, abortingThis relies on a few pieces of process-wide state. Each thread’s stack ends in a guard page, an inaccessible region just past the stack’s limit: pthread reserves one for every spawned thread, and on Linux the kernel’s own stack guard plays that role for the main thread. Touching it raises SIGSEGV, and Rust registers a handler for that signal. The handler can’t run on the stack that just overflowed, so Rust also gives each thread an alternate signal stack, a small separate mapping with a guard page of its own, which the kernel switches to when it delivers the signal. The handler checks that the faulting address is inside the guard page, prints the message, and aborts.
Figure 2 — Stack Overflow.We found that calling process::exit from a child thread tears down the main thread’s alternate stack while the main thread is still running. process::exit runs the runtime’s cleanup before calling libc’s exit, and in Rust 1.98.0 that cleanup ends in library/std/src/sys/pal/unix/stack_overflow.rs:
pub unsafe fn cleanup() { if cfg!(panic = "immediate-abort") { return; } // FIXME: I probably cause more bugs than I'm worth! // see https://github.com/rust-lang/rust/issues/111272 unsafe { drop_handler(MAIN_ALTSTACK.load(Ordering::Relaxed)) }; }The cleanup function passes MAIN_ALTSTACK, the main thread’s alternate stack, to drop_handler:
// SAFETY: we warned the caller this disables the alternate signal stack! unsafe { sigaltstack(&disabling_stack, ptr::null_mut()) }; // SAFETY: We know from `get_stackp` that the alternate stack we installed is part of // a mapping that started one page earlier, so walk back a page and unmap from there. unsafe { munmap(data.sub(page_size), sigstack_size + page_size) };The call to sigaltstack disables the alternate stack of the calling thread, but the subsequent call to munmap unmaps the main thread’s. The code assumes it runs on the main thread, which isn’t true when a child thread calls process::exit. The main thread keeps running until libc’s exit finishes, with its signal stack registration still pointing at unmapped memory. If it overflows its stack in that window, the kernel can’t deliver the signal, and our proof of concept dies with a plain segmentation fault instead of Rust’s message. The bug dates back to 2015, and the fix stops cleaning up the main thread’s alternate stack altogether.
We also checked whether this could become a security issue. In theory, it could lead to code execution: if a writable mapping landed at the old alternate stack’s address, the kernel would deliver the main thread’s next signal onto it, and another thread could overwrite the handler’s frame, such as its return address, while it runs. In practice, the conditions are very tight. Everything has to happen in the brief window before libc’s exit finishes, the new mapping must have exactly the right size to reuse that address, and overwriting the frame takes a second race inside a short handler. For issue #161018, our testing found no reliable exploitation path under the conditions examined, and we assessed practical exploitation as unlikely. This assessment does not automatically apply to the other issues discussed. The issue has more details in its security impact analysis.
CommandExt::exec and the global environment (#156951)Our other report involves the process environment. On Unix, CommandExt::exec replaces the current process with a new program. When the command has its own environment variables, exec points the process-global environ at a new array, calls execvp, and restores environ if execvp fails. In Rust 1.99.0, Command::exec takes the environment lock in library/std/src/sys/process/unix/unix.rs:
let _lock = sys::env::env_read_lock(); let Err(e) = self.do_exec(theirs, envp.as_ref());Command::do_exec, in the same file, then swaps the environment:
_reset = Some(Reset(*sys::env::environ())); *sys::env::environ() = envp.as_ptr(); } libc::execvp(self.get_program_cstr().as_ptr(), self.get_argv().as_ptr()); Err(io::Error::last_os_error())Command::exec takes only the read side of the environment lock, yet do_exec writes the process-global environ. Before the write, do_exec saves the old value so it can be restored if execvp fails. Writing environ under a read lock lets other threads in. A thread calling env::var takes the same read lock and can see variables meant only for the new program, and two failed exec calls racing each other can leave environ pointing at a freed array that a later env::vars_os() reads. Both proofs of concept use only safe Rust. A 2018 fix held an exclusive lock here, but when the environment lock became a read-write lock in 2021, exec kept the read side. A fix that avoids touching environ by calling execve directly is in review.
The environment has caused trouble before. After a discussion that began in 2015, the 2024 edition marked env::set_var as unsafe, because C functions on most Unix platforms read the environment without going through Rust's lock.
process::exit and thread-local destructors (#164243)Getting this boundary right is hard, and more problems are still open. While exploring this area, we independently ran into a double free in safe code that process::exit can cause through thread-local destructors. It was reported by someone else (#164243), but it’s worth mentioning here. libc’s exit first runs the calling thread’s thread-local destructors, as C++ requires, and Rust registers its destructors the same way. If a destructor calls process::exit while a thread local is being replaced, libc drops that thread local a second time. A proposed fix switches process::exit to POSIX _exit, which ends the process without running these handlers.
Why Rust still matters and advancing vulnerability discovery with AIEvery unsafe block rests on assumptions about the code around it. The bugs in this post came from three kinds of misplaced trust:
- that code won't panic at the wrong moment,
- that a caller-provided implementation behaves correctly, and
- that the process-wide state Rust shares with the operating system and the C library stays the way the code expects.
The first two patterns are well studied. Rudra looked for both in 2021, and the standard library was already fixing panic safety bugs in 2015 (CVE-2015-20001). They remain challenging to avoid because any call inside unsafe code might unwind or run code the caller supplied.
What we saw this year was mixed. On the positive side, the nightly process is working. Many reports were caught while the affected APIs were still unstable, and several were fixed by changing the design before stabilization. StringPattern now holds &str instead of &[u8], and Allocator was stabilized with a rule that implementors must not unwind. At the same time, bugs in these patterns still reach stable releases, and their fixes aren't always complete. join was fixed in 2020 and needed another fix in 2026 for a path the first fix had missed.
System boundary bugs are now within reach (Pattern 3)The third pattern is different. Its bugs live where Rust meets the layers below it: the kernel, through system calls such as sigaltstack and munmap, and the C library, through process-wide state such as environ and the cleanup that libc's exit runs. Getting them right takes knowledge that lives outside Rust's type system, which has made these bugs difficult to find with traditional static analysis. That may also be why they last so long. The process::exit signal stack bug was in the standard library for nearly 11 years, and exec has written environ under a read lock since 2021. Unlike our reports in the first two patterns, both affect stable Rust.
Language models already know a great deal about how these interfaces behave, so agentic scanners can check unsafe code against the system it runs on, not just the language. We think this boundary is one of the most promising places for agentic security research, in Rust and beyond.
Rust's high bar is hard to meet but worth keepingRust holds its safe APIs to a stricter standard than C and C++. Safe code must never be able to cause undefined behavior, no matter how it uses an API. In C++, a comparator that breaks std::sort's ordering requirement causes undefined behavior, while Rust's sort must stay memory-safe with any Ord implementation. POSIX doesn't guarantee that setenv is safe to call while another thread reads the environment. That makes memory safety bugs in Rust hard to compare one-to-one with bugs in other languages.
For the same reason, a soundness bug in the standard library isn't automatically a vulnerability in the programs that use it. Each bug in this post needs an unusual setup to trigger, such as a panic at exactly the wrong moment, a deliberately misbehaving implementation, or calling process::exit from a child thread. It becomes a serious vulnerability only if a real program reaches the API in that way.
Rust's safety standard is strict and difficult to meet, but it's also useful. It gives an unambiguous answer to what counts as a soundness bug, so problems can be fixed and prevented once in the library, instead of in every program that uses it. Rust's safety model strikes the right balance between control, safety, and performance for systems programming, which is why so many projects choose it.
Beyond the labAt Microsoft FORGE Lab, we're exploring how technology such as codename MDASH can help researchers find bugs like the ones in this post at greater scale. Rust's standard library is one of several foundational open source projects where we're applying this approach.
This research also extends beyond the lab. It helps inform the development of codename MDASH, which brings agentic vulnerability discovery into Microsoft Defender. These findings can also serve as inputs to Microsoft Perception, our new multi-agent security system, where specialized agents work together across broader security workflows. For example, the Web App Pen Test Agent can use codename MDASH findings to help prioritize testing, validate exploitability against live applications, and produce actionable vulnerabilities that downstream agents can use to prioritize and support remediation. This connects AI-powered code analysis with real-world security validation and response, helping security teams move from identifying potential vulnerabilities to understanding and addressing actual risk.
Our goal isn’t to simply find more bugs, it's to identify meaningful issues, turn those findings into actionable research, and improve the safety of foundational software that developers and organizations depend on.
The post FORGE Lab uses agentic tools to identify memory safety issues in Rust appeared first on Microsoft Security Blog.
