Device-code phishing is not new. What is new is attackers using the resulting token not just for session hijack but for registering persistent device objects inside Microsoft Entra ID - 400 of them across 305 tenants and counting. That changes the blast radius from “one stolen session” to “a device the tenant trusts indefinitely.” Meanwhile, certificate teams have a 15-month countdown after Chrome announced it will distrust P-256 CA keys, and an autonomous AI agent went after Perplexity’s cloud credentials at machine speed.
This is the kind of week where identity is the entire attack surface.
In the News
Device-Code Phishing Plants 400+ Rogue Devices Across 305 Entra Tenants
An active campaign is abusing the OAuth device-code authorization flow to register rogue Windows devices inside Microsoft Entra ID tenants. The mechanism is straightforward: the attacker sends a phishing lure - typically a Teams message or email - containing a device code and a link to microsoft.com/devicelogin. The user enters the code on a legitimate Microsoft page, completing the OAuth flow and handing the attacker a valid token.
What distinguishes this campaign from earlier device-code phishing is the post-authentication action. Instead of simply using the token for mailbox access or lateral movement, the attacker registers a device object in the tenant’s Entra ID directory. That device persists past the token’s expiration. It becomes a trusted object that conditional access policies may allow through without further challenge - especially in environments where device registration is open by default.
BleepingComputer reports over 400 rogue device registrations across at least 305 tenants observed so far. The campaign is ongoing.
The root cause is two-fold: the authentication method is phishable (push notification or SMS-based MFA does not stop this), and device registration policies are permissive. Organizations that allow any authenticated user to register devices in Entra ID without approval workflows are exposed.
What defenders should do: Restrict or disable the device-code authentication flow in Entra ID conditional access. Require admin approval for device registration. Deploy phishing-resistant authentication - FIDO2 or certificate-based auth - which cannot be phished via the device-code flow. Audit existing device objects for registrations that do not correspond to IT-provisioned hardware.
Chrome to Distrust P-256 CA Keys by March 15, 2027
Google has announced that Chrome will begin showing full-page interstitial warnings for any site whose certificate chain terminates at a Certificate Authority key using ECDSA P-256, effective March 15, 2027. The timeline gives organizations roughly 15 months to inventory, remediate, and reissue.
The backdrop is unconfirmed reporting - covered by The Record - suggesting a potential cryptographic weakness in P-256 implementations. A joint statement from NSA, CISA, and ONCD clarifies there is no confirmed immediate widespread threat, but Google is treating this as a forcing function for crypto-agility.
For identity and security teams, the operational question is whether they can enumerate every certificate in their environment - TLS, mTLS, code-signing, workload identity - that chains to a P-256 CA key. Most cannot. The 15-month window is generous only if the inventory work starts now.
What defenders should do: Inventory all CA chains in use. Identify certificates that depend on P-256 CA signing keys. Engage certificate lifecycle management tooling to plan reissuance against P-384 or PQC-ready algorithms. Treat this as a crypto-agility readiness exercise - the next deprecation cycle will be shorter.
Autonomous AI Agent Targeted Perplexity’s Cloud Credentials
Perplexity disclosed that an autonomous AI-driven agent attempted to harvest its cloud infrastructure and AI-service API credentials. As reported by The Hacker News, the agent rotated through disposable accounts and proxy infrastructure to evade detection while systematically targeting API keys and service tokens.
Two other companies are reportedly affected, though neither breach is confirmed. The significance is in the attack methodology: the adversary is not a human operator using an AI-assisted tool - it is an autonomous agent executing a credential-harvesting playbook at machine speed, with evasion behaviors built into its operational loop.
This validates what NHI security practitioners have been warning about: long-lived, broadly scoped API keys and service credentials are the equivalent of domain admin passwords left in a spreadsheet, except now the adversary enumerating them operates faster than any human SOC.
What defenders should do: Audit cloud and AI-service API credentials for scope and lifetime. Implement just-in-time credential issuance where possible. Deploy runtime anomaly detection on service-account usage patterns. Assign an owner to every non-human credential.
24,008 Secrets in Public MCP Configs - 2,117 Still Valid
GitGuardian’s analysis of publicly accessible Model Context Protocol (MCP) server configurations surfaced 24,008 embedded secrets - API keys, tokens, and credentials hardcoded into configuration files that are reachable from the public internet. Of those, 2,117 remain valid and exploitable right now.
The firm’s broader secrets research adds two more data points: 64 percent of secrets leaked in 2022 were still valid as of January 2026, and 40 percent of credentials found on developer laptops now sit in AI-assistant directories and logs - files like .copilot/, .codeium/, and local LLM chat histories.
The agent-identity lifecycle problem is now quantified. Organizations deploying MCP-integrated AI tools, copilots, and autonomous agents must treat the credentials those systems use with the same governance applied to human privileged accounts: scoped permissions, enforced rotation, ownership attribution, and continuous secrets scanning.
What defenders should do: Scan MCP and agent configuration files for embedded secrets. Rotate any credentials found. Implement automated secrets detection in CI/CD pipelines and developer environments. Assign a human owner to every agent and service credential.
Defender Action Items
- Restrict device-code flow and device registration in Microsoft Entra ID - require admin approval for new device enrollments and block or scope the device-code authentication flow via conditional access
- Inventory all P-256 CA certificate chains across TLS, mTLS, workload identity, and code-signing certificates - begin reissuance planning against P-384 or PQC-ready algorithms before the March 2027 Chrome distrust date
- Audit NHI credentials (API keys, service tokens, cloud credentials) for scope, lifetime, and ownership - implement just-in-time issuance and automated rotation for AI-agent and MCP-integrated tool credentials
- Deploy phishing-resistant authentication (FIDO2, certificate-based auth) for all users with device-registration or privileged-access capabilities - push-based MFA does not stop device-code phishing
- Verify that password resets include session and token revocation for email platforms, particularly Zimbra - the unpatched Zimbra flaw demonstrates that credential reset alone does not evict an attacker with an active session
Detection Queries
The following KQL query surfaces anomalous device registrations in Microsoft Entra ID audit logs - specifically, devices registered by users who have not previously registered devices, or registrations from unusual locations. Tune the lookback and threshold to your environment.
// Detect new Entra ID device registrations by users with no prior registration history
let lookback = 30d;
let baseline_users = AuditLogs
| where TimeGenerated > ago(90d) and TimeGenerated < ago(lookback)
| where OperationName == "Add registered owner to device"
| extend ActorUPN = tostring(InitiatedBy.user.userPrincipalName)
| distinct ActorUPN;
AuditLogs
| where TimeGenerated > ago(lookback)
| where OperationName == "Add registered owner to device"
| extend ActorUPN = tostring(InitiatedBy.user.userPrincipalName)
| where ActorUPN !in (baseline_users)
| project TimeGenerated, ActorUPN, OperationName,
DeviceId = tostring(TargetResources[0].id),
DeviceDisplayName = tostring(TargetResources[0].displayName)
| sort by TimeGenerated desc
This query establishes a 90-day baseline of users who have legitimately registered devices, then flags any registration in the last 30 days by a user not in that baseline. False positives will include legitimate new hires and hardware refreshes - correlate with HR onboarding data or IT asset management to triage.
References
- Device-code phishing campaign plants rogue devices in 305 Entra tenants - BleepingComputer
- Chrome to distrust ECDSA P-256 CA keys - The Record (Recorded Future)
- Perplexity uncovers autonomous AI agent credential harvesting - The Hacker News
- OWASP Top 10 for Agentic Apps - secrets in MCP configs - GitGuardian Blog
- Compromised credentials - secrets sprawl statistics - GitGuardian Blog
- 1Password breach via GitHub token - GitGuardian Blog
- Unpatched Zimbra flaw allows persistent mailbox access - The Hacker News
- Okta response to ONCD/NSA/CISA post-quantum joint statement - Okta Security Blog
- What’s new in Microsoft Security - December 2026 - Microsoft Security Blog
- Lawmakers probe data security at ID verification firms - Krebs on Security
Related Briefs
- Linux Netfilter IPv6 Bypass - CVE-2026-139281 CVSS 9.1
- Post-Quantum Crypto Migration - NSA CISA ONCD Deadline
- 35 Jamf Pro Secrets Leaked Since 2018 - Still Valid
- AI-Assisted ISP Intrusion - 3 Servers in 13 Minutes
- CrowdStrike Buys Zscaler for $44B - What Changes
Subscribe to The Identity Brief
Get The Identity Brief in your inbox (Mon/Wed/Fri) - Human, machine, and AI identity security — NHI, ITDR, and the IAM market.