365-Stealer is a phishing simualtion tool written in python3. It can be used to execute Illicit Consent Grant Attack.
365-Stealer is a phishing simualtion tool written in python3. It can be used to execute Illicit Consent Grant Attack.
365-Stealer is a Python3-based tool designed to automate illicit consent grant attacks. When a target user unknowingly grants permission to an attacker's application, the attacker gains access to the victim's refresh token. This refresh token can then be used to generate other tokens, allowing the attacker to access sensitive data such as emails, files on OneDrive, and notes—without needing further input from the victim. Manually exploiting this can be time-consuming, but 365-Stealer simplifies and automates the process.
An illicit consent grant attack occurs when an attacker registers a malicious application within Azure, requesting access to sensitive data like contacts, emails, or documents. The attacker deceives a user into consenting to the app, usually by presenting it as legitimate. Once the victim clicks "Accept," they unknowingly provide access to the attacker, allowing them to act on behalf of the victim without needing the victim’s organizational credentials.
To explain more clearly, once the user grants permission, Entra ID sends a token to the attacker's server. This token gives the attacker the ability to read emails, send emails, access files on OneDrive, and perform other malicious activities using the victim's credentials. Unlike phishing attacks that rely on stealing passwords, illicit consent grant attacks bypass authentication entirely by abusing the permissions system of cloud applications.
--run-app command in the terminal or via the 365-Stealer Management portal.--no-stealing flag, the tool can steal only the tokens without further actions, allowing attackers to exploit them later.--client-id, and --client-secret flags, attackers can easily obtain new access tokens.--app-registration flag automates the process of Azure app registration, making it easier to set up the attack infrastructure without manual intervention.--custom-steal flag, attackers can selectively steal data from specific sources like OneDrive, Outlook, etc.To automatically register an application in Azure using the provided Python script, follow these steps:
Ensure you have Python3 installed on your machine.
Clone the 365-Stealer repository:
git clone https://github.com/AlteredSecurity/365-Stealer.git
cd 365-StealerInstall the required Python modules:
pip install -r requirements.txtRun the automated Azure app registration script:
python 365-Stealer.py --app-registrationIf you prefer to manually register an Azure application, follow these steps:
https://portal.azure.com and sign in to your account.App registrations in the left-hand menu.`New registration to begin the process of registering a new application.Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant).https://:/login/authorized, where your domain or IP corresponds to where you will host the 365-Stealer application.Register to create the application.Certificates & secrets section under your registered application.New client secret, provide a description for the secret, and then click Add.API permissions tab under your application.Add a permission to begin selecting the necessary permissions.Microsoft Graph.Delegated permissions to assign permissions that will act on behalf of the signed-in user.Clone the 365-Stealer Repository:
git clone https://github.com/AlteredSecurity/365-Stealer.git
Install Required Applications:
Extract and Save the Files:
C:\\xampp\htdocs\ that allows you to host the PHP application and run Python.Install Python Dependencies: Run the following command to install the necessary Python libraries.
cd C:\\xampp\htdocs\365-Stealer
pip install -r requirements.txtFollow Additional Setup Instructions: After installing the required applications and dependencies, make sure to follow the instructions provided in the yoursVictims/Readme.md file. This will guide you through setting up the necessary databases and tables for 365-Stealer to function properly.
Adjust the Script Paths:
365-Stealer.py, the database, and python3 in the index.php file located at C:/xampp/htdocs/yourvictims/.Handling Spaces in File Paths:
"C:/Program Files/Python/python.exe"
Default Whitelisting:
Adding Remote IPs:
Disabling IP Whitelisting:
Access Restrictions: For security reasons, always restrict access to the 365-Stealer Management Portal to infrastructure that you control.
Avoid Public Exposure: Never expose the 365-Stealer Management Portal directly to the internet. Ensure it is only accessible through secure, private networks to avoid potential compromise.
…Blog post for the new version of 365-stealder, which is a ground-up rewrite of the older one. This post explores how Illici
No open issues yet, or sync has not completed.