Git Product home page Git Product logo

test-atpbaseline's Introduction

Test-ATPBaseline

A script to generate a report on ATP component settings in Microsoft Azure, Intune and Office 365.

Introduction

Test-ATPBaseline is a report that you can run in your environment which can highlight known configuration issues and improvements which can impact your experience with

  • Office 365 Advanced Threat Protection (ATP);
  • Microsoft Azure ATP (storage/SQL/Cosmos DB);
  • Microsoft Intune (Defender ATP Security Baseline Policies).

How the idea was born

The Office 365 ATP checks were taken from the excellent Office 365 ATP Recommended Configuration Analyzer (ORCA) PowerShell module, by Cam Murray (https://github.com/cammurray/orca). I really liked the layout of the resulting report and the general thinking of checking settings like that. I've created this module to make it more modular. There shouldn't be too many code changes necessary in the main module; tests can be easily added by creating a test definition in the TestDefinitions folder (just copy one to get the general idea of how it works). If the test requires a connection to another module, please make sure that you use the proper "#InputRequired" comment as the first line in the .ps1 file. Make sure that you are also adding a corresponding file in the ConnectModules folder (also just copy on of the existing files to see how it works).

What's in scope

Currently, the following objects can be checked by Test-ATPBaseline:

  • Configuration in EOP which can impact ATP;
  • SafeLinks configuration;
  • SafeAttachments configuration;
  • Antiphish and antispoof policies;
  • Microsoft Azure Storage blobs;
  • Microsoft Azure SQL DB;
  • Microsoft Azure Cosmos DB;
  • Microsoft Intune Defender ATP Security Baseline policies.

How do I run it?

You will need the modern Exchange Online Management Shell first up, so get it at https://www.powershellgallery.com/packages/ExchangeOnlineManagement - we use this to connect to Exchange Online and look at your configuration. Next, you will need the AZ module, to be found at https://www.powershellgallery.com/packages/Az. For the Intune/MS Graph connection, you will need the Microsoft.Graph.Intune module, which is here: https://www.powershellgallery.com/packages/Microsoft.Graph.Intune

This module (Test-ATPBaseline) is not (yet) published to the PowerShell gallery, so you will need to clone it from git. Create a new folder, go into that folder and enter the following command:

git clone https://github.com/mpiederiet/test-atpbaseline.git .

Next, import this module in PowerShell:

import-module .\Test-ATPBaseLine.psm1

and run the command which will generate the report:

Test-ATPBaseline

You will be prompted for some logons (Azure, Exchange Online and Intune). If you have permissions on several Azure subscriptions, you will be prompted to select which subscriptions to check. To run against Exchange Online and Intune, you need at least Global Reader permissions in Office 365.

License

The module is based on the Office 365 ATP Recommended Configuration Analyzer (ORCA) PowerShell module, by Cam Murray (https://github.com/cammurray/orca). This module is open source too, so feel free to copy it and improve or change it to your likings :-)

The following components are used in order to generate the report

test-atpbaseline's People

Contributors

mpiederiet avatar

Watchers

 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.