A “dangerous piece of functionality” has been discovered in Microsoft 365 suite that could be potentially abused by a malicious actor to ransom files stored on SharePoint and OneDrive and launch attacks on cloud infrastructure.
The cloud ransomware attack allows file-encrypting malware to launch and “encrypt files stored on SharePoint and OneDrive in a way that makes them unrecoverable without dedicated backups or a decryption key from the attacker,” according to a Proofpoint report.
The infection sequence can be carried out using a combination of Microsoft APIs, PowerShell scripts, and command-line interface (CLI) scripts.
The attack relies on a Microsoft 365 featured called AutoSave that creates copies of older file versions as and when users make edits to a file stored on SharePoint Online or OneDrive.
It uses unauthorised access to target a user’s SharePoint Online or OneDrive account, followed by abusing the access to exfiltrate and encrypt files. The three most common avenues to obtain the initial foothold involve directly breaching the account via phishing or brute-force attacks, taking over the web session of a logged-in user, or tricking a user into authorising a rogue third-party OAuth application.
The encryption phase in this attack requires locking each file on SharePoint Online or OneDrive more than the permitted versioning limit.
By leveraging the access to the account, an attacker can either create too many versions of a file or reduce the version limit of a document library to a low number such as ‘1’ and then proceed to encrypt each file.
The researchers said, “Now all original (pre-attacker) versions of the files are lost, leaving only the encrypted versions of each file in the cloud account… At this point, the attacker can ask for a ransom from the organization.”
Microsoft noted that older versions of the files can potentially be recovered and restored for an additional 14 days with the assistance of Microsoft Support, however Proofpoint found this unsuccessful.
A Microsoft spokesperson told The Hacker News publication that: “This technique requires a user to have already been fully compromised by an attacker. We encourage our customers to practice safe computing habits, including exercising caution when clicking on links to webpages, opening unknown file attachments, or accepting file transfers.”
To avoid such attacks, it is recommended to use a strong password police, prevent large-scale data downloads to unmanaged devices, mandate multi-factor authentication (MFA), and maintain periodic external backups of cloud files with sensitive data.
Microsoft drew attention to a OneDrive ransomware detection feature that notifies Microsoft 365 users of a potential attack and allows victims to restore their files. Microsoft is also encouraging their business customers to use conditional access to block or limit access to SharePoint and OnePoint content from unmanaged devices.
Proofpoint said: “Files stored in a hybrid state on both endpoint and cloud such as through cloud sync folders will reduce the impact of this novel risk as the attacker will not have access to the local/endpoint files… To perform a full ransom flow, the attacker will have to compromise the endpoint and the cloud account to access the endpoint and cloud-stored files.”
The post Microsoft Office 365 Feature Could Help Ransomware Attackers Infiltrate Cloud Files appeared first on IT Security Guru.