Masscan as a Service automates large-scale network port scanning and change detection to monitor unexpected open ports on your infrastructure.
masscan as a service
This tool is designed for security teams and infrastructure operators who want to continuously monitor their network for unexpected open TCP or UDP ports that could indicate security misconfigurations or breaches. By automating masscan scans and storing results in version control, it enables efficient detection and auditing of network exposure changes over time.
Ensure you have explicit permission to scan the target systems and have cleared it with your hosting providers to avoid triggering intrusion detection systems. Use isolated VMs for scanning to simulate external threat actors and avoid exposing internal infrastructure. Store scan results in version control to maintain historical data and enable automated auditing workflows.
Add masscan_as_a_service as a git dependency in your Pipfile:
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
masscan_as_a_service = {git = "https://github.com/bobek/masscan_as_a_service.git", editable = true}
Use virtualenv or pipenv to manage your environment
Install dependencies and the package by running pipenv install or equivalent
masscan_as_a_service masscan --targets <path_to_targets_file> --output_dir <results_directory>
Runs a masscan scan against the list of targets specified in the file and stores per-host results in the output directory.