Cyber security

MSSprinkler – Enhancing M365 Security Through Advanced Password Testing

MSSprinkler is a password spraying utility for organizations to test their M365 accounts from an external perspective.

It employs a ‘low-and-slow’ approach to avoid locking out accounts, and provides verbose information related to accounts and tenant information.

Contents

  • Description
  • Current Feature
  • Installation
  • Help
  • Disclaimer

Description

MSSprinkler is written in PowerShell and can be imported directly as a module. It has no other dependencies.

MSSprinkler relies on the verbose error messaging provided by Microsoft to identify additional information beyond standard password spray success or failed authentication attempts, which allows for the gathering of additional information related to the user account.

MSSprinkler also allows for a configurable threshold to prevent locking out accounts by mistake.

By default, this is set to 8 (n-2 under Microsoft’s default) however this can be adjusted based on the organizations lockout policy.

Additionally, successful sign-in to an account with MFA enabled will not produce an MFA push to the user, allowing for covert information gathering.

Current Features

  • Automatically spray a list of M365 accounts with a password list.
  • Low-and-slow approach to avoid locking out accounts.
  • Smart detect accounts that do not exist or are locked out, skipping over these to reduce unnecessary traffic and speed up testing.
  • Ability to override the default threshold to better match the organizations policy, if required.
  • Verbose output, revealing additional information about accounts:
    • Detect if an account is locked out.
    • Detect if a user exists in the tenant or not.
    • Detect if MFA is in use for a given user without triggering the MFA push.
  • Output and store results into a file

Install And Usage

# Import the module
Import-Module MSSprinkler.ps1

# Spray using a provided userlist and password list, default URL and threshold
Invoke-MSSprinkler -user userlist.txt -pass passwordlist.txt

# Spray using a provided userlist and password list, increase threshold to 12 attempts per min and output results to output.csv
Invoke-MSSprinkler -user userlist.txt -pass passwordlist.txt -threshold 12 -output .\output.csv
Varshini

Tamil has a great interest in the fields of Cyber Security, OSINT, and CTF projects. Currently, he is deeply involved in researching and publishing various security tools with Kali Linux Tutorials, which is quite fascinating.

Recent Posts

Kali Linux 2024.4 Released, What’s New?

Kali Linux 2024.4, the final release of 2024, brings a wide range of updates and…

20 hours ago

Lifetime-Amsi-EtwPatch : Disabling PowerShell’s AMSI And ETW Protections

This Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for…

20 hours ago

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory…

3 days ago

2024 MITRE ATT&CK Evaluation Results – Cynet Became a Leader With 100% Detection & Protection

Across small-to-medium enterprises (SMEs) and managed service providers (MSPs), the top priority for cybersecurity leaders…

5 days ago

SecHub : Streamlining Security Across Software Development Lifecycles

The free and open-source security platform SecHub, provides a central API to test software with…

1 week ago

Hawker : The Comprehensive OSINT Toolkit For Cybersecurity Professionals

Don't worry if there are any bugs in the tool, we will try to fix…

1 week ago