[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fiI71xykFhWwa-3L8Q_AlXjcnIMdG_Ci8cDDaLvKt030":3},{"article":4,"iocs":50,"iocs_total":58,"watch_terms":59,"solutions":60,"lesson":151},{"id":5,"title":6,"slug":7,"summary":8,"ai_summary":9,"brief":10,"url":11,"image_url":12,"published_at":13,"ingested_at":14,"relevance_score":15,"entities":16,"category_id":32,"category":33,"article_tags":37},"f32b3095-7e26-4260-bb28-e8d4dcbb667e","The risks of device code authentication for AI coding agents","the-risks-of-device-code-authentication-for-ai-coding-agents-636abb","Lab research shows how device code phishing, a technique that applies to any device-flow client, can extend to AI coding agents, using GitHub Copilot CLI as an illustrative example. The post The risks of device code authentication for AI coding agents appeared first on Microsoft Security Blog.","Researchers have demonstrated how device code phishing, a technique where attackers trick users into approving sign-in requests, can be extended to AI coding agents. Using GitHub Copilot CLI as an example, lab simulations showed that phished device code authorizations could lead to remote session steering, execution of commands on the user's machine, manipulation of agent memory, access to synchronized sessions, and unauthorized access to private repositories. These findings are proof-of-concept and not observed in the wild, requiring user approval of the device code request.","Device code phishing can be leveraged against AI coding agents like GitHub Copilot CLI.","https:\u002F\u002Fwww.microsoft.com\u002Fen-us\u002Fsecurity\u002Fblog\u002F2026\u002F11\u002F17\u002Fthe-risks-of-device-code-authentication-for-ai-coding-agents\u002F","https:\u002F\u002Fwww.microsoft.com\u002Fen-us\u002Fsecurity\u002Fblog\u002Fwp-content\u002Fuploads\u002F2026\u002F03\u002FMS_Actional-Insights_Phishing-social-engineering.jpg","2026-11-17T15:00:00+00:00","2026-11-17T17:00:20.893204+00:00",8,[17,20,23,26,28,30],{"name":18,"type":19},"GitHub Copilot CLI","product",{"name":21,"type":22},"GitHub","vendor",{"name":24,"type":25},"OAuth device flow","technology",{"name":27,"type":19},"Microsoft Defender for Cloud Apps",{"name":29,"type":19},"Microsoft Defender for Office 365",{"name":31,"type":19},"Microsoft Defender XDR","e7b231c8-5f79-4465-8d38-1ef13aea5a14",{"id":32,"icon":34,"name":35,"slug":36},null,"Threat Intelligence","threat-intelligence",[38,43,48],{"category":39},{"id":40,"icon":34,"name":41,"slug":42},"26b0b636-0e31-4db1-bffb-61bdf9f20a58","Supply Chain","supply-chain",{"category":44},{"id":45,"icon":34,"name":46,"slug":47},"839da5c1-3c34-47e2-9499-f7201640e3ac","AI Security","ai-security",{"category":49},{"id":32,"icon":34,"name":35,"slug":36},[51,55],{"type":52,"value":53,"context":54},"malware","Storm-2372","AI-enabled campaign that utilized device code phishing.",{"type":52,"value":56,"context":57},"EvilTokens","Notable earlier campaigns showing how readily device code phishing can be scaled.",2,[21,18,27],{"controls":61,"vendors":142},[62,91,117],{"slug":63,"name":64,"problem":65,"products":66},"phishing-resistant-mfa","Phishing-resistant MFA","A stolen password, or a user who taps Approve on a push prompt, is no longer enough to log in.",[67,75,83],{"vendor_slug":68,"vendor_name":69,"vendor_logo":70,"product_slug":71,"product_name":72,"url":73,"description":74},"microsoft","Microsoft","\u002Fvendor-logos\u002Fmicrosoft.png","entra-id","Microsoft Entra ID","https:\u002F\u002Fwww.microsoft.com\u002Fen-us\u002Fsecurity\u002Fbusiness\u002Fidentity-access\u002Fmicrosoft-entra-id","Cloud identity and access management with single sign-on, conditional access, passkeys and identity governance.",{"vendor_slug":76,"vendor_name":77,"vendor_logo":78,"product_slug":79,"product_name":80,"url":81,"description":82},"cisco","Cisco","\u002Fvendor-logos\u002Fcisco.png","duo","Cisco Duo","https:\u002F\u002Fduo.com\u002F","MFA and device trust, with support for passkeys and security keys.",{"vendor_slug":84,"vendor_name":85,"vendor_logo":86,"product_slug":87,"product_name":88,"url":89,"description":90},"okta","Okta","\u002Fvendor-logos\u002Fokta.png","workforce-identity","Okta Workforce Identity","https:\u002F\u002Fwww.okta.com\u002Fproducts\u002Fworkforce-identity\u002F","Single sign-on, adaptive MFA including phishing-resistant methods, and lifecycle management for employees.",{"slug":92,"name":93,"problem":94,"products":95},"identity-threat-detection","Identity threat detection and response (ITDR)","Attackers who log in with real, stolen credentials get noticed.",[96,104,109],{"vendor_slug":97,"vendor_name":98,"vendor_logo":99,"product_slug":100,"product_name":101,"url":102,"description":103},"huntress","Huntress","\u002Fvendor-logos\u002Fhuntress.png","managed-itdr","Huntress Managed ITDR","https:\u002F\u002Fwww.huntress.com\u002Fplatform\u002Fmanaged-itdr","Managed detection of suspicious activity in Microsoft 365 and Entra ID.",{"vendor_slug":68,"vendor_name":69,"vendor_logo":70,"product_slug":105,"product_name":106,"url":107,"description":108},"defender-for-identity","Microsoft Defender for Identity","https:\u002F\u002Fwww.microsoft.com\u002Fen-us\u002Fsecurity\u002Fbusiness\u002Fsiem-and-xdr\u002Fmicrosoft-defender-for-identity","Detects attacks against on-premises Active Directory and hybrid identities.",{"vendor_slug":110,"vendor_name":111,"vendor_logo":112,"product_slug":113,"product_name":114,"url":115,"description":116},"vectra-ai","Vectra AI","\u002Fvendor-logos\u002Fvectra-ai.png","vectra-ai-platform","Vectra AI Platform","https:\u002F\u002Fwww.vectra.ai\u002Fplatform","Detection of attacker behaviour across network, identity and cloud.",{"slug":47,"name":118,"problem":119,"products":120},"AI application security","Prompt injection, data leaks through AI tools and unapproved AI use get caught.",[121,129,137],{"vendor_slug":122,"vendor_name":123,"vendor_logo":124,"product_slug":125,"product_name":126,"url":127,"description":128},"boomi","Boomi","\u002Fvendor-logos\u002Fboomi.png","boomi-agentstudio","Boomi Agentstudio","https:\u002F\u002Fboomi.com\u002Fplatform\u002Fagentstudio\u002F","Agent builder whose Agent Control Tower registers and monitors Boomi agents and agents on Amazon Bedrock, Microsoft Copilot and other platforms, keeps audit logs and can switch agents off where the provider allows it.",{"vendor_slug":130,"vendor_name":131,"vendor_logo":132,"product_slug":133,"product_name":134,"url":135,"description":136},"palo-alto-networks","Palo Alto Networks","\u002Fvendor-logos\u002Fpalo-alto-networks.png","prisma-airs","Prisma AIRS","https:\u002F\u002Fwww.paloaltonetworks.com\u002Fai-security\u002Fprisma-airs","Security for AI applications, models and agents, including runtime protection against prompt injection.",{"vendor_slug":122,"vendor_name":123,"vendor_logo":124,"product_slug":138,"product_name":139,"url":140,"description":141},"boomi-ai-gateway","Boomi AI Gateway","https:\u002F\u002Fboomi.com\u002Fplatform\u002Fai-gateway\u002F","Gateway for AI model and MCP tool traffic, built on Lunar.dev technology. It limits which tools each agent can call. Its enterprise version adds an approval step for new MCP servers and logs each call with the user or agent behind it.",[143,148],{"slug":144,"name":21,"logo_path":145,"roles":146},"github","\u002Fvendor-logos\u002Fgithub.png",[147],"affected",{"slug":68,"name":69,"logo_path":70,"roles":149},[150],"reported_by",{"slug":152,"title":153,"body":154,"framework_refs":155,"framework_notes":161},"device-code-phishing-can-hijack-ai-coding-agents","Device Code Phishing Can Hijack AI Coding Agents","Researchers demonstrated that the device code authentication flow — designed for input-limited devices — can be weaponized against AI coding agents like GitHub Copilot CLI by tricking users into approving a malicious sign-in request. Once a user approves the phished device code, attackers gain the ability to steer remote sessions, execute arbitrary commands on the victim's machine, manipulate agent memory, and access private repositories. The attack succeeds because device code flows shift authentication approval entirely to the human user, bypassing technical controls and exploiting the trust users place in familiar-looking prompts. This matters because AI coding agents operate with significant privileges — file access, code execution, repository permissions — meaning a single social engineering success can yield deep and persistent access.",[156,157,158,159,160],"MITRE ATT&CK T1528: Steal Application Access Token","NIST SP 800-53 IA-2: Identification and Authentication (Organizational Users)","NIS2 Article 21(2)(j)","Nist CSF 2.0 PR.AA-05: Access permissions, entitlements, and authorizations are defined in a policy, managed, enforced, and reviewed","CIS Control 14: Security Awareness and Skills Training",{"NIS2 Article 21(2)(j)":162,"MITRE ATT&CK T1528: Steal Application Access Token":163,"CIS Control 14: Security Awareness and Skills Training":164,"NIST SP 800-53 IA-2: Identification and Authentication (Organizational Users)":165,"Nist CSF 2.0 PR.AA-05: Access permissions, entitlements, and authorizations are defined in a policy, managed, enforced, and reviewed":166},"This point specifically mandates multi-factor authentication and secured communications, which directly addresses the weak device code approval mechanism that enabled the phishing attack.","The device code phishing technique results in the attacker obtaining a valid OAuth access token for the victim's AI coding agent session, which is precisely what this technique describes.","Because the attack requires the user to approve the malicious device code prompt, human recognition through trained awareness is the critical last line of defense this control addresses.","This control requires the use of multi-factor and phishing-resistant authentication mechanisms; had phishing-resistant MFA been enforced for the device code flow, the social engineering step could not have succeeded.","Applying least-privilege OAuth scopes to AI agent authorizations — a gap exploited here — falls under managing and enforcing access entitlements as this category requires."]