CCyberwiki

Account access removal

Account access removal
ClassAvailability and abuse
MITRE ATT&CKT1531 Account Access Removal
Typical severityHigh
AffectsAdministrator and owner roles in cloud tenants and SaaS accounts, server user accounts, admin roles inside an application

When the LAPSUS$ group, which Microsoft tracks as DEV-0537, gained privileged access to a victim's cloud tenant in 2022, it created global administrator accounts of its own, then removed every other global administrator, so that only the attacker could manage the tenant.1 This is account access removal: an attacker deletes, locks or changes the accounts that legitimate users rely on, so the owners lose control of their own systems. Typical means are a changed password, a disabled or deleted account, and a revoked role or permission in a SaaS product (hosted software such as SharePoint or Okta).2

How it is done

Every method uses an ordinary administrative feature. On Windows, attackers use the net command, the PowerShell cmdlets Set-LocalUser and Set-ADAccountPassword, or Group Policy; on Linux, passwd; on VMware ESXi hosts, esxcli system account set and esxcli system account remove. Some tools then log every user off or restart the machine so that the changes take hold.2 The DEADWOOD malware, for example, sets the password of each local and domain user to a random 32-character string and ends the Windows logon process, so nobody can sign in to the machine.2

In a cloud tenant or SaaS account the attack works on roles. An attacker who reaches one administrator account adds a new administrator they control, then removes the administrator role from everyone else, as DEV-0537 did. The same pattern applies to an application's own admin panel, where the first step is an extra admin user (see Rogue administrator account).

A related denial of service, in which a sign-in lockout policy is triggered against a real user, is covered in Account lockout.

Purpose

Ransomware operators can use it, alongside data destruction and defacement, to slow down the response and recovery before they encrypt data.2 The Akira group deletes administrator accounts on a victim's network before encryption, and LockerGoga and MegaCortex change account passwords and log users off.2

DEV-0537 combined the lockout with a tenant-wide mail rule that sent all of the organization's incoming and outgoing mail to its own new account. After stealing data it often deleted systems and resources in the cloud and in on-premises VMware environments, and it joined the victims' crisis calls and Slack or Teams channels to follow their response.1

Notable incidents

In 2023 the security firm Obsidian investigated an attack on a company's SharePoint Online environment, which it believed was the work of a group called 0mega. The attacker signed in with a compromised Microsoft 365 Global administrator account, created a user named "Omega" with the Global, SharePoint, Exchange and Teams administrator roles, and removed more than 200 existing administrators within two hours. It stole files without encrypting them and then uploaded thousands of files named PREVENT-LEAKAGE.txt to tell the victim about the theft and how to negotiate a payment.3

Detection

The pattern to look for is many accounts reset, disabled, deleted or demoted in a short time, by one account, outside a planned change. Detection rules built on this idea correlate the account events with where they came from: a password change run from a remote shell, or a burst of user removals in Okta, Salesforce or Zoom.2 Microsoft published a hunting query for several administrator role removals by a single user, and an alert for a new global administrator created by a user already flagged as risky.1 Because the technique uses legitimate features, preventive controls cannot block it outright.2

Keeping a way back in

The defence is a second path to the owner role that the attacker does not hold and cannot remove from the account they took over.

A GitHub organization with one owner becomes inaccessible when that owner is unreachable, and GitHub recommends at least two. Owners can change other owners' roles, but not their own. A member is promoted under the organization's People tab, through the Change role menu.4 Google Workspace advises more than one super administrator, each held by a different person and kept apart from that person's daily account, so that one can act while the other is recovered.5

An AWS account starts with a root user, the identity created with the account, which has complete access to everything in it. If the only administrator in IAM, the AWS permission system, removes their own permissions, the root user can restore them, and its password is reset through the root email inbox.6 That inbox is therefore part of the account's security.

For Microsoft Entra ID, Microsoft recommends two or more emergency access ("break glass") accounts: cloud-only, signed in with a passkey that differs from the usual administrator method, excluded from sign-in policies that could block them, with an alert on every use and a test at least every 90 days.7 Their credentials belong offline rather than in an online password vault, and in fireproof safes in separate places.17

In an application

An application can make a lockout visible to its users. NIST's authentication guideline requires a provider to notify the user when a new authenticator is added, through a channel other than the one used to add it, and to send a notification after every account recovery. It also requires support for at least two notification addresses per account, and each notice has to say what to do if the user did not make the change.8 With two addresses on file, a notice can still reach the owner at an address the attacker has not changed. The recovery process itself is covered in Account recovery and, for an administrator, in Responding to an administrator account takeover.

In SecFlash

On a server SecFlash watches, a change to an account's password state, login shell or user ID is reported as SF-DET-104 on the Detections page.

See also

References

  1. a b c d Microsoft Threat Intelligence (22 March 2022). "DEV-0537 criminal actor targeting organizations for data exfiltration and destruction". Microsoft Security Blog.
  2. a b c d e f g MITRE ATT&CK (2025, version 1.5). "Account Access Removal, Technique T1531". attack.mitre.org.
  3. back Townsend, K. (June 2023). "SaaS Ransomware Attack Hit Sharepoint Online Without Using a Compromised Endpoint". SecurityWeek.
  4. back GitHub. "Maintaining ownership continuity for your organization". GitHub Docs.
  5. back Google. "Security best practices for administrator accounts". Google Workspace Admin Help.
  6. back Amazon Web Services. "AWS account root user". AWS IAM User Guide.
  7. a b Microsoft. "Manage emergency access admin accounts in Microsoft Entra ID". Microsoft Learn.
  8. back NIST (2025). "SP 800-63B-4: Authentication and Authenticator Management". National Institute of Standards and Technology.