Huntress Research Finds Rogue OAuth Apps Across Azure Tenants

· Original article ↗

Summary

Huntress surveyed more than 8,000 Azure tenants, finding Traitorware in about 10% and identifying over 500 Stealthware apps across partner tenants. It released Cazadora, an open-source script to audit tenant applications.

Key points

  • Azure OAuth applications can be abused through legitimate consent and permission flows; the article says the default configuration allows users to install apps and consent to permissions for their own resource access without review.
  • Huntress distinguishes Traitorware—legitimate apps commonly abused by attackers—from Stealthware, custom-built malicious apps tailored to an attack.
  • Researchers enumerated more than 8,000 tenants across multiple industries and found Traitorware in about 10% of surveyed tenants.
  • The team found that low-prevalence apps with delegated access to a single user were more likely to be Stealthware; considering granted permissions further improved detection.
  • Huntress reported identifying more than 500 Stealthware instances across partner tenants using its telemetry and hunting analysis.
  • Cazadora uses the administrator’s authentication and the Graph API to enumerate Enterprise Applications and App Registrations and flag suspicious characteristics; Huntress cautions it cannot find every malicious app.
  • Suggested audit clues include apps named after users or the tenant, generic names such as “Test,” unusual arbitrary names, and anomalous reply URLs such as http://localhost:7823/access/.

Article Details

Attack Vectors
  • Traitorware: attackers abuse legitimate Azure applications that are commonly used in attacks.
  • Stealthware: attackers create custom OAuth applications and tailor their permissions to the intended intrusion.
  • In an illicit consent grant attack, a user consents to an application's permissions; a service principal is then installed in the tenant and can access resources within those permissions.
Defensive Notes
  • Audit Enterprise Applications and Application Registrations in Microsoft 365 tenants for apps named after a user or tenant, generic names such as “Test,” arbitrary non-alphanumeric names, or unusual reply URLs, including http://localhost:7823/access/.
  • Hunt for rare applications, especially those with less than 1% prevalence across the surveyed tenants, delegated access to a single user, and powerful permissions.
  • Use Cazadora to enumerate tenant applications and check for commonly observed suspicious characteristics. The article cautions that it cannot identify every malicious app, and a clean result does not establish that a tenant is safe.

People

Products

Tools

Related Articles