A single compromised remote monitoring agent can tear down years of enterprise cloud security in minutes. Cybersecurity incident responders recently uncovered a sophisticated cyber espionage operation targeting managed service providers (MSPs) and corporate networks.
Threat intelligence reports confirm that hackers breach Microsoft 365 tenants via Connectwise supply-chain attack vectors by exploiting trusted administrative tools. Consequently, attackers bypass multi-factor authentication (MFA) and establish persistent control over cloud environments without triggering traditional firewall alarms.
Therefore, understanding how attackers pivot from endpoint management tools to identity infrastructure is vital for modern defensive teams. In addition, organizations must act swiftly to audit their remote access software and cloud tenant integrations.
Key Takeaways
- Initial Access: Cybercriminals exploit vulnerabilities or stolen credentials in ConnectWise remote management software to gain footholds on client endpoints.
- Session Hijacking: Threat actors dump active session tokens and browser cookies from infected machines, completely bypassing MFA protections in Microsoft Entra ID.
- Cloud Persistence: Attackers create rogue OAuth applications, alter mail transport rules, and register malicious MFA devices within compromised Microsoft 365 tenants.
- Supply-Chain Impact: Managed Service Providers (MSPs) serve as high-value jump points, allowing single-point compromises to cascade into hundreds of customer tenants.
- Immediate Remediation: System administrators must immediately revoke active M365 refresh tokens, enforce device compliance policies, and audit external enterprise applications.
The Structural Risk of Remote Management Software in Cloud Environments
Remote Monitoring and Management (RMM) platforms like ConnectWise ScreenConnect and ConnectWise Automate hold immense power over enterprise endpoints. Because these tools require elevated SYSTEM-level privileges to perform patch management and remote desktop support, they are primary targets for cybercriminals.
Consequently, when a threat actor gains unauthorized administrative access to an RMM server, they inherit unrestricted code execution capabilities across all connected endpoints. Furthermore, attackers do not need to exploit zero-day vulnerabilities inside Microsoft 365 itself to compromise cloud data.
Instead, hackers utilize the local access granted by RMM software to extract authentication artifacts directly from memory. As a result, trusted endpoint software becomes the primary launchpad for destructive cloud infrastructure breaches.
Hackers Breach Microsoft 365 Tenants Via Connectwise Supply-chain Attack: Operational Breakdown
The breach workflow follows a calculated multi-stage attack path. Initially, threat actors secure access to target endpoints by exploiting unpatched vulnerabilities in ConnectWise servers or purchasing compromised technician credentials on dark web forums.
Once inside the endpoint management ecosystem, attackers execute automated scripts across managed client computers. Consequently, these malicious scripts scan local web browser caches and memory spaces for active Microsoft Entra ID (formerly Azure AD) authentication tokens.
Because modern cloud single sign-on (SSO) systems rely on primary refresh tokens (PRTs) and browser cookies to maintain user sessions, adversaries extract these valid tokens. Therefore, the adversary can import stolen session cookies into their own web browsers, allowing them to log directly into client Microsoft 365 portals.
This session hijacking technique effectively bypasses password requirements and multi-factor authentication checks. Consequently, the cloud identity provider views the attacker’s connection as a legitimate, pre-authenticated employee session.
Establishing Stealth Persistence Within Compromised Microsoft 365 Tenants
After gaining access to administrative or high-privilege cloud accounts, hackers immediately secure secondary access channels. This step ensures they retain control even if the initial RMM software vector is patched or shut down.
First, threat actors register rogue OAuth enterprise applications inside Microsoft Entra ID. Consequently, these malicious apps receive extensive API permissions, such as Mail.ReadWrite or Directory.ReadWrite.All, granting attackers permanent access to tenant data via Microsoft Graph APIs.
Second, adversaries configure malicious inbox rules and exchange transport rules. In addition, they set up silent mail forwarding to external attacker-controlled email accounts, ensuring sensitive business emails and financial communication are intercepted in real time.
Finally, attackers frequently register new FIDO2 keys or authenticator apps under their control within the victim’s user profile. Consequently, even if the primary user changes their password, the hacker maintains valid multi-factor credentials for long-term cloud access.

Key Indicators of Compromise Across Endpoints and Cloud Logs
Detecting supply-chain attacks that transition from local endpoints to cloud tenants requires correlated log analysis across both environments. Security operations teams must actively hunt for specific abnormal behaviors across their toolchains.
- Unusual PowerShell Commands in RMM Logs: Look for automated scripts executing memory-dumping tools, credential harvesters, or commands querying local browser profile paths.
- Impossible Travel Anomalies in Entra ID: Monitor Microsoft Entra ID sign-in logs for sudden location or IP address shifts using identical session IDs.
- New Enterprise Application Consent: Audit admin consent events for unknown OAuth applications possessing high-privilege permissions.
- Hidden Mail Forwarding Rules: Scan Exchange Online management logs for newly established inbox rules that forward messages to external email domains or automatically delete incoming security alerts.
Furthermore, administrators should scrutinize user agents in cloud access logs. For instance, if an administrative account regularly connects via Windows but suddenly presents macOS user-agent strings while using a stolen session cookie, an active breach is likely underway.
Strategic Hardening to Prevent RMM Cloud Pivot Attacks
Preventing cross-environment compromises requires implementing strict zero-trust boundaries between physical endpoints and cloud identity providers. Relying solely on standard passwords and basic MFA is no longer sufficient against token-stealing adversaries.
1. Enforce Strict Conditional Access Policies
Organizations must configure Microsoft Entra Conditional Access policies to enforce device compliance checks. Consequently, cloud logins should only be permitted from trusted, corporate-managed devices that are marked as compliant in Microsoft Intune or Hybrid Entra Joined.
Therefore, even if an attacker steals an active session token, the identity system will block their login attempt because the attacker’s physical device is not recognized as compliant by the cloud policy engine.
2. Restrict Consent for Enterprise Applications
Administrators should completely disable non-administrator permissions to register third-party OAuth applications. Furthermore, implementing an admin consent workflow ensures that every cloud app integration undergoes strict technical verification before receiving tenant permissions.
3. Transition to Token-Binding and FIDO2 Authentication
Adopting hardware security keys (such as YubiKeys) or certificate-based authentication drastically lowers breach risks. In addition, deploying cloud features like Continuous Access Evaluation (CAE) allows Microsoft 365 to revoke stolen tokens in real time when network locations or security states change abruptly.
Emergency Incident Response Protocols for System Administrators
If an enterprise suspects a supply-chain breach involving ConnectWise or Microsoft 365, immediate action is mandatory to stop active data exfiltration.
- Isolate Suspected RMM Infrastructure: Temporarily disconnect affected remote management servers or endpoints from the network to prevent further script distribution.
- Revoke All Active User Sessions: Execute the PowerShell command
Revoke-MgUserSignOutSessionacross all privileged accounts to immediately invalidate active refresh tokens and browser cookies. - Audit and Terminate OAuth Apps: Review Microsoft Entra ID Enterprise Applications and remove any recent, unauthorized app registrations or admin consents.
- Inspect Exchange Mail Rules: Run tenant-wide Exchange PowerShell audits to identify and delete unauthorized transport or inbox forwarding rules.
- Reset Authentication Methods: Force a complete password reset and re-register MFA methods for all administrative and high-risk accounts.
Frequently Asked Questions
How do hackers bypass MFA during a ConnectWise supply-chain attack?
Hackers bypass MFA by stealing pre-authenticated primary refresh tokens (PRTs) and browser session cookies directly from endpoint memory or local web caches. Because these tokens prove that MFA was already completed on the endpoint, importing them into an attacker’s browser grants direct cloud access without prompting for a password or MFA code.
Does changing a user’s password stop hackers who stole session tokens?
Not immediately. While changing a password prevents future logins using credentials, active refresh tokens and session cookies may remain valid until they expire or are manually revoked by an administrator using PowerShell or the Microsoft Entra admin center.
What specific indicators show an M365 tenant was breached via RMM tools?
Key indicators include suspicious PowerShell execution in RMM command logs, anomalous cloud sign-ins from unrecognized IP addresses using valid session tokens, the unapproved creation of OAuth applications, and new automated Exchange mail forwarding rules.
How can managed service providers protect their clients from supply-chain pivots?
MSPs should isolate RMM instances, enforce strict device-compliance Conditional Access policies in Microsoft 365, adopt continuous access evaluation, mandate FIDO2 hardware keys, and eliminate single-factor administrative accounts across all managed environments.
Is Your Microsoft 365 Tenant Secure Against RMM Supply-Chain Risks?
Do not wait for a compromised session token to paralyze your business operations. Protect your enterprise cloud infrastructure with a comprehensive cybersecurity architecture audit today.