Giter Site home page Giter Site logo

azure_utility_tool's Introduction

Azure Utility Tool

The Azure Utility Tool provides a set of utility functions for gathering useful information from an Azure AD tenant.

Getting Started with AUT

  • Clone the repository
$ git clone <repo-url>
  • Install dependencies in virutal environment
$ cd azure_utility_tool
$ virtualenv -p $(which python3.6) venv
$ . ./venv/bin/activate
$ pip install -r requirements.txt
  • Install AUT in develop mode
$ pip install -e
  • Create the directories needed with correct permissions

When the CSV output feature is used, AUT creates reports in /mfa_reports/csv/ You must ensure this directory exists with proper permissions

$ mkdir -p /mfa_reports/csv
  • Configure the program

AUT needs a valid client application registration in an Azure directory before it can run. The client requires a certificate, as this is the only form of authentication that it supports. Once you have created a certificate (self-signed is fine), then upload it to the Azure application registration. Take note of the client_id, tenant ID, and thumbprint. You will also need the private key file that goes along with the certificate. To configure AUT, create a file called aut_config.json in the .aut directory. The .aut directory must reside in the user's home directory i.e. ~/.aut/aut_config.json. The aut_config.json must be in the following format:

{
	"authority": "https://login.microsoftonline.com/<your-tenant-id>",
	"client_id": "<your-client-id>,
	"scope" ["https://graph.microsoft.com/.default"],
	"thumbprint": "<your-thumprint>",
	"private_key_file": "<full-path-to-private-key>",
	"MFA_ENFORCED_GROUPS": [],
	"MAX_RETRIES": 5,
	"filters": {}
}
  • Run the program with the help flag
$ cd azure_utility_tool
$ python main.py -h

Pulling user attributes and SSPR/MFA information

To generate a CSV report with all of the user's in your tenant, plus their SSPR/MFA information, then run the program with the following arguments:

$ python main.py list_all_users_mfa -o csv

This will generate a report in /mfa_reports/csv called list_all_users_mfa_<date>.csv

azure_utility_tool's People

Contributors

alextricity25 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.