Skip to main content

Collection of tools for attacking Microsoft Cloud products

Project description

Collection of offensive tools targeting Microsoft Azure written in Python to be platform agnostic. The current list of tools can be found below with a brief description of their functionality.

  • ./Device_Code/device_code_easy_mode.py
    • Generates a code to be entered by the target user
    • Can be used for general token generation or during a phishing/social engineering campaign.
  • ./Access_Tokens/token_juggle.py
    • Takes in a refresh token in various ways and retrieves a new refresh token and an access token for the resource specified
  • ./Access_Tokens/read_token.py
    • Takes in an access token and parses the included claims information, checks for expiration, attempts to validate signature
  • ./Outsider_Recon/outsider_recon.py
    • Takes in a domain and enumerates as much information as possible about the tenant without requiring authentication
  • ./User_Enum/user_enum.py
    • Takes in a username or list of usernames and attempts to enumerate valid accounts using one of three methods
    • Can also be used to perform a password spray
  • ./Azure_AD/get_tenant.py
    • Takes in an access token or refresh token, outputs tenant ID and tenant Name
    • Creates text output file as well as BloodHound compatible aztenant file
  • ./Azure_AD/get_users.py
    • Takes in an access token or refresh token, outputs all users in Azure AD and all available user properties in Microsoft Graph
    • Creates three data files, a condensed json file, a raw json file, and a BloodHound compatible azusers file

Installation

Offensive Azure can be installed in a number of ways or not at all.

You are welcome to clone the repository and execute the specific scripts you want. A requirements.txt file is included for each module to make this as easy as possible.

Poetry

The project is built to work with poetry. To use, follow the next few steps:

git clone https://github.com/blacklanternsecurity/offensive-azure.git
cd ./offensive-azure
poetry install

Pip

The packaged version of the repo is also kept on pypi so you can use pip to install as well. We recommend you use pipenv to keep your environment as clean as possible.

pipenv shell
pip install offensive_azure

Usage

It is up to you for how you wish to use this toolkit. Each module can be ran independently, or you can install it as a package and use it in that way. Each module is exported to a script named the same as the module file. For example:

Poetry

poetry install
poetry run outsider_recon your-domain.com

Pip

pipenv shell
pip install offensive_azure
outsider_recon your-domain.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

offensive_azure-0.48.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

offensive_azure-0.48-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

Details for the file offensive_azure-0.48.tar.gz.

File metadata

  • Download URL: offensive_azure-0.48.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for offensive_azure-0.48.tar.gz
Algorithm Hash digest
SHA256 1a4d1eb0ab718c3347c990a63a56c230861cfdd1d81ec8102d0e4cf409de0e0b
MD5 9eed786e5d3ea366da3a680a0a217ef4
BLAKE2b-256 2050def698f23ea0651b50a7ed9c5b3994b18d7b40dfb39d4d4e2bff053b25ad

See more details on using hashes here.

File details

Details for the file offensive_azure-0.48-py3-none-any.whl.

File metadata

File hashes

Hashes for offensive_azure-0.48-py3-none-any.whl
Algorithm Hash digest
SHA256 7a9738bab11b90fbc65f57991228ce47d14233d355d6e427252b2e26ac464a02
MD5 0c73885e185dea7b7bee7644d7472ea1
BLAKE2b-256 53286665e56db570f6541f95988b83417ca13f265c0d650a4af0a658481bb8aa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page