attacking-oauth-with-device-code-phishing

Fail

Audited by Socket on Aug 4, 2026

3 alerts found:

MalwareSecurityx2
MalwareHIGH
SKILL.md

MALICIOUS. This skill’s footprint is fully aligned with offensive phishing and token theft: it captures victim OAuth tokens, bypasses MFA via device-code abuse, replays tokens across Microsoft 365, and enumerates tenant data. Even with official Microsoft endpoints and partly legitimate tooling, the purpose and data flows are inherently hostile and give an AI agent high-risk attack capability.

Confidence: 98%Severity: 96%
SecurityMEDIUM
references/api-reference.md

This artifact is highly actionable malicious-instruction documentation for OAuth device-code/consent phishing and subsequent token abuse against Microsoft Entra ID. It provides the operational sequence and key parameters (including offline_access for refresh tokens), and it references tooling to exchange refresh tokens and enumerate/dump directory/mail data. Although it is not executable code in this snippet, its distribution would represent a significant supply-chain security risk by enabling credential/token theft and unauthorized access.

Confidence: 76%Severity: 86%
SecurityMEDIUM
scripts/agent.py

This module is a security-sensitive OAuth device-code token acquisition and capture tool. It retrieves user-assisted authorization material (verification URI/user_code), polls for access/refresh tokens, saves token responses to disk (potentially including refresh_token), and can redeem refresh tokens for additional scopes. There is no clear evidence of classic malware primitives (no obfuscation or arbitrary network exfiltration beyond OAuth), but the combination of token harvesting, persistence, and phishing-oriented framing makes it highly risky for supply-chain contexts and should be tightly controlled, audited, and protected against misuse.

Confidence: 82%Severity: 86%
Audit Metadata
Analyzed At
Aug 4, 2026, 02:43 PM
Package URL
pkg:socket/skills-sh/mukul975%2FAnthropic-Cybersecurity-Skills%2Fattacking-oauth-with-device-code-phishing%2F@7b26532f743dc67b464d76c5e4561d945967148bb7719b024ea18d7e2a485c95
Security Audit — socket — attacking-oauth-with-device-code-phishing