Help‑Desk Impersonation Leads to AD Certificate Services Abuse (ESC1 & ESC8)
What Happened — Microsoft Threat Intelligence examined two separate human‑operated intrusions where attackers used Microsoft Teams messages and calls to pose as IT/help‑desk staff. Victims were persuaded to launch a Quick Assist remote‑support session, allowing the adversary to drop a portable runtime (Python, Bun, or Java) and conduct host discovery. From that foothold the attackers abused mis‑configured AD Certificate Services: one case leveraged an ESC1‑vulnerable certificate template to issue privileged authentication certificates, while the second used PetitPotam to relay NTLM to an ESC8 web‑enrollment endpoint and obtain a domain‑controller certificate for Kerberos PKINIT.
Microsoft Threat Intelligence recently examined two human‑operated intrusions in which attackers leveraged Microsoft Teams messages and voice calls to pose as IT or help‑desk staff. By convincing victims to launch a Quick Assist remote‑support session, the intruders gained hands‑on‑keyboard access and then staged portable Python, Bun or Java runtimes to conduct host and network discovery while probing the organization’s Active Directory Certificate Services (AD CS) for authentication pathways.
Both incidents followed an identical front‑end chain. The adversaries sent Teams phishing messages and placed calls that used organization‑themed onmicrosoft.com tenant names and support‑oriented display names to appear legitimate. Once a user accepted the Quick Assist invitation, the attacker dropped a compressed archive into the victim’s Downloads folder, created a new “KB‑*” directory under the user profile, extracted the payload there and launched it with a renamed runtime. The payload queried Windows version, network configuration and running processes, connected to domain resources via LDAPS and SMB, and began enumerating AD CS settings.
In the first scenario, labeled ESC1, the threat actor exploited a mis‑configured Enterprise CA Security Configuration 1 certificate template that allowed requester‑supplied identity data and broad enrollment. By abusing this template the attacker obtained authentication certificates for privileged accounts and subsequently performed a DCSync operation to harvest additional credentials. Microsoft Defender’s automated disruption contained most of the compromised identities, but a privileged account that had been excluded from containment remained active and was later used to exfiltrate data.
The second scenario, ESC8, involved the PetitPotam technique to force a Windows server into authenticating to an attacker‑controlled system. The NTLM authentication from the domain controller was relayed to an AD CS web‑enrollment endpoint lacking relay protection, enabling the attacker to request a certificate for the domain‑controller account and then authenticate via PKINIT (certificate‑based Kerberos). Defender generated ESC8‑related alerts, the customer isolated the affected workstation, and no further progression was observed.
Analysts note that AD CS can turn a certificate request into a durable authentication path: once issued, a certificate and any Kerberos tickets derived from it persist even after a password reset or workstation re‑image. The two abuse techniques—ESC1’s low‑privilege template abuse and ESC8’s NTLM relay to web enrollment—highlight how insecure or overly permissive AD CS configurations can extend a user‑approved remote session into privileged, certificate‑backed access. The activity has not been linked to any specific threat group.
From the shared workstation the attackers first leveraged an ESC1‑vulnerable certificate template. The initial Teams‑phishing campaign compromised three user accounts and a single workstation, after which the intruder probed the AD Certificate Services (AD CS) configuration for a privilege‑escalation route. By exploiting the template’s “subject name” setting, the low‑privilege foothold was used to request certificates that impersonated three highly privileged identities. Microsoft Defender’s automated disruption immediately blocked remote logons and SMB access for the compromised user and the three newly minted certificates, but one privileged account was mistakenly excluded from the response, leaving that identity untouched.
Roughly ninety minutes later the attackers launched a broader Teams‑phishing wave against sixteen users, gaining control of a second workstation. They again abused the ESC1 template, this time obtaining certificates for eight additional privileged accounts. Defender’s follow‑up disruption curtailed more than a thousand SMB file‑access attempts and further logon tries, limiting lateral movement. Within seconds of receiving one of the new certificates, the threat actor authenticated to a domain controller and performed a DCSync operation while containment was still being applied. The excluded privileged account remained active; the attacker used it to log onto the network, reach a file server, and execute a renamed copy of Rclone (named SearchApp.exe). The tool copied data recursively from a shared folder to an external SFTP endpoint, using twenty concurrent transfers, targeting files up to three years old while omitting executables, databases, virtual disks, media, temporary files and logs. “Partial identity containment can reduce attack activity while still leaving a viable privileged route,” the investigators noted.
In the second scenario the ESC1 path was unavailable, so the adversary turned to PetitPotam to coerce a domain controller into authenticating over the EFSRPC protocol. The domain controller’s machine account NTLM hash was relayed to the AD CS Web Enrollment service—a technique catalogued as ESC8—allowing the attacker to submit a certificate request without knowing the controller’s password. The AD CS server accepted the request, issued a domain‑controller‑template certificate, and the attacker used it for Kerberos PKINIT, obtaining a ticket‑granting ticket for the controller. Microsoft Defender generated ESC8 alerts, after which the customer isolated the workstation involved in the enrollment and Kerberos activity. No further malicious activity was observed after that isolation, contrasting with the earlier case where the excluded privileged account continued to be used for file‑server access and data exfiltration.
The intrusion began when an attacker posing as IT support opened a Microsoft Teams chat from an external tenant that mimicked the organization’s branding. Within minutes the malicious actor persuaded a user to join a voice call, then launched a remote‑control session that followed the company’s approved remote‑monitoring and management (RMM) workflow. During the session the RMM client spawned child processes that executed from user‑writable locations, a behavior later flagged by Defender for Endpoint as “possible initial access from an emerging threat.”
Once the remote session was active, the threat actors staged their payloads in newly created directories whose names began with “KB‑” or resembled legitimate application folders. Archive files were extracted into these paths, and scripts—often JavaScript run through Bun or Java—were launched from the same writable locations. The process tree showed a clear parent‑child relationship: the RMM executable launched an interpreter, which in turn executed the staged script, generating outbound network traffic that was later correlated with domain‑controller queries.
Parallel to the runtime staging, the attackers leveraged directory services. Network captures revealed LDAPS and SMB connections originating from the compromised host, while TLS encryption concealed the actual LDAP queries from passive inspection. The first credential‑related activity was an ESC1‑type certificate request: the adversary submitted a request that included a custom subject and Subject Alternative Name (SAN) list, used a template with overly permissive enrollment rights, and immediately authenticated with the newly issued certificate. Subsequent analysis linked a PetitPotam‑style EFSRPC call to an outbound authentication from a domain controller, which was relayed through a second device to the AD Certificate Services (AD CS) Web Enrollment portal. The portal issued a machine certificate (ESC8) after an NTLM‑relay attack, and the originating workstation successfully performed PKINIT, receiving a Kerberos ticket‑granting ticket (TGT).
In response, the incident team enumerated every compromised identity and device, reviewed exclusion lists applied during containment, and revoked the unauthorized certificates after identifying their serial numbers and thumbprints. They preserved CA audit logs, IIS/Web Enrollment records, endpoint process lineage, and Teams interaction metadata to support forensic analysis. The remediation roadmap emphasized several controls: requiring users to verify unsolicited support requests via a known internal channel, tightening Teams external‑access and federation policies, limiting approved RMM tools, and alerting on archive extraction or script launches from writable paths. Runtime execution was further constrained by deploying App Control for Business, testing attack‑surface‑reduction rules, and recognizing that Windows script‑host protections do not cover JavaScript run through Bun or Java‑launched sources. AD CS hardening followed Microsoft’s guidance—removing unnecessary enrollment templates, enforcing HTTPS with Extended Protection for Authentication, disabling NTLM where feasible, and using Defender for Identity assessments to locate insecure IIS endpoints. Finally, the team noted that revoking a certificate does not invalidate already‑issued Kerberos tickets, so active tickets were reviewed separately, and any containment exclusions that could not be automated were assigned manual compensating actions.
Impact‑prevention controls automatically isolate compromised identities or devices while an incident is active. Microsoft Defender for Endpoint was flagged as a possible source of a DCSync‑style replication of directory services, and Microsoft Defender for Identity raised a similar suspicion of a DCSync attack. Analysts can lean on Microsoft Security Copilot to piece together the Teams‑to‑remote‑access chain, surface the staged runtime behavior, line up certificate alerts with the identities involved, and draft containment steps; effective prompts ask for the initiating device, remote‑session context, certificate request, issued identity, PKINIT activity, and any response exclusions, though results depend on the plugins, permissions, and evidence that are available.
The Microsoft Defender XDR Threat Analytics portal lets customers pull up campaign‑specific reports by searching for terms such as “Teams support impersonation,” “portable Bun or Java runtimes,” “AD CS certificate abuse,” “NTLM relay,” “ESC1,” “ESC8,” and “certificate‑based Kerberos authentication.” For deeper forensic work, Microsoft supplies a set of advanced‑hunting KQL queries. One query scans the past seven days for Teams events where an external user created a chat or where impersonation or security‑risk signals were logged, ordering results by timestamp. A second query looks for Bun or Java executables (bun.exe, java.exe, javaw.exe) launching .js or .java files from AppData\Roaming\KB‑prefixed folders. A third query tracks network connections opened by those same runtimes to ports 80, 445, 636, or 88, again limited to the KB‑prefixed staging path. Finally, an alert‑evidence join pulls together any NTLM‑relay, Certificate Services, PKINIT, or Kerberos‑ticket‑request alerts generated in the same seven‑day window.
The activity maps to a broad swath of MITRE ATT&CK techniques. Initial access was achieved through spear‑phishing via Teams messages (T1566.003) and a voice call (T1566.004). Remote access was maintained with a remote‑monitoring‑and‑management session (T1219). Execution involved Windows command‑shell scripts (T1059.003) and JavaScript modules run by Bun (T1059.007). Defense‑evasion relied on masquerading the staged files as legitimate updates. Discovery steps included system‑information queries, ipconfig /all, and tasklist calls (T1082, T1016, T1057). Credential‑access tactics featured an NTLM‑relay scenario where a domain‑controller identity authenticated from another device without name‑resolution poisoning (T1557) and the forging of authentication certificates via AD CS web enrollment (T1649).
Three SHA‑256 hashes were identified as initial‑access payloads: 85b6c424117494d3056e88689dbc94c75e9afdb187a339714043aec0da109f17 (JavaScript), f326201269f1ee2f803ae435317507263bb6e0dbfdeb70bd1bb5446e2e46f001 (Python), and 06c5c14f043aee3bcc5843b5f50909623d5c9a6239a7c1fba9cddad4111469e7 (Python). Microsoft’s guidance points to KB5005413 for mitigating NTLM‑relay attacks on AD CS, and to the Defender‑for‑Identity assessment on insecure AD CS enrollment IIS endpoints (ESC8). Additional references include Microsoft Learn articles on Teams security best practices, Defender for Office 365 support, application control, and attack‑surface‑reduction rules, all accessed on 2026‑10‑29.
Microsoft’s Security Blog highlighted a new AI‑era threat dubbed “AI recommendation poisoning,” noting that attackers have begun manipulating the memory of generative models to steer recommendations for profit. The post cited concrete instances of this technique being observed in malicious email traffic, illustrating how compromised prompts can influence downstream AI outputs.
In a separate announcement on the Microsoft Defender for Office 365 Blog, the company introduced prompt‑injection protection for its email security suite. The new feature is designed to detect and block attempts to inject malicious instructions into AI‑driven services, thereby hardening the inbox against this emerging class of attacks.
Microsoft also used its Defender platform to showcase the “Intelligent Security Operations Center” (ISOC), a reimagined SOC model built for the “agentic era.” The blog entry explained that ISOC leverages automated, AI‑powered workflows to accelerate detection and response, positioning the service as a next‑generation security operations framework.
Why It Matters for Trust & Control Assurance — The chain shows that weak controls around remote‑support approval and AD CS certificate issuance can create durable, certificate‑backed privileged access that survives password changes.
Who Is Affected — Enterprises that run Active Directory Certificate Services and allow user‑initiated remote‑support sessions (e.g., via Microsoft Teams/Quick Assist).
Recommended Actions
- Review and harden AD CS certificate templates: enforce least‑privilege enrollment, disable requester‑supplied subject fields, and require manager approval for privileged templates.
- Enforce strict verification of any unsolicited support request; require multi‑factor confirmation before granting remote control.
- Deploy continuous monitoring for abnormal remote‑session launches, portable runtime execution from user‑writable locations, and certificate issuance events tied to low‑privilege accounts.
- Revoke any certificates issued outside approved processes and purge lingering Kerberos tickets (PKINIT).
Technical Notes — Attack vectors: Teams phishing → Quick Assist remote session → portable runtime staging → AD CS ESC1 template abuse (certificate for privileged account, DCSync) and ESC8 NTLM relay (PetitPotam → Web Enrollment → PKINIT). No vulnerability in Teams itself; the abuse stems from social engineering and permissive AD CS configurations. Source: Microsoft Security Blog