Skip to main content

A simple python utility to help identify saas service ips

Project description

saas-ips

PyPI Status Python Version

saas-ips is a simple Python package and CLI tool to retrieve formatted lists of known SaaS based services IP ranges.

If you have ever been looking at logs and want to know if an IP belongs to X service? That's the why

What is saas-ips?

If you have ever been looking through logs, investigating, etc. and want to know if an IP belongs to SaaS service (Microsoft, Google, etc.)?

Well, saas-ips is a simeple little utility to collect these from different services and create a single model that can be consumed by another package or simple on the command line.

Features

  • Collect a list of known IPs for some SaaS Services
  • Output the list of IPs to a JSON file
  • Profit?

Currently we support the following SaaS services:

  • Atlassian
  • Microsoft Azure
  • Box
  • Fastly
  • Google
  • Microsoft O365

You can find an example of the JSON output here

Installation

You can install blocker via [pip] from [PyPI]:

$ pip install saas-ips

If you are using poetry (recommended) you can add it to your package using

poetry add saas-ips

Usage

Below is the command line reference but you can also use the current version of saas-ips to retrieve the help by typing saas-ips --help.

NAME
    saas-ips - Collector class.

SYNOPSIS
    saas-ips COMMAND

DESCRIPTION
    Collector class.

COMMANDS
    COMMAND is one of the following:

     run
       Run the collector.

To collect a list of IPs from the supported SaaS services, you can run the following at the command line:

saas-ips run --output ./output.json

If you are using poetry, then use:

poetry run saas-ips run --output ./output.json

Developmemt

You can clone the repositry and begin development using

git clone https://github.com/MSAdministrator/saas-ips.git
cd saas-ips
poetry install

If you are using pyenv to manage your enviroments you can set a config option in poetry to use the set pyenv version of python by running this:

poetry config virtualenvs.create true
poetry install

Issues

If you encounter any problems, please file an issue along with a detailed description.

If you would like other services to be added, please also file an issue!

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

saas_ips-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

saas_ips-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file saas_ips-0.1.0.tar.gz.

File metadata

  • Download URL: saas_ips-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for saas_ips-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6fe182629170fcbddc95bfaf66cee2ad08cac089b3e5da44b30bd409498f203f
MD5 34af421351b9d754dd3529d650b64b79
BLAKE2b-256 d9987cf6fe0c1992621c196c4240c84340494fac9aff0a5ba34c87197c9f65a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for saas_ips-0.1.0.tar.gz:

Publisher: distribute.yml on MSAdministrator/saas-ips

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file saas_ips-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: saas_ips-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for saas_ips-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d154aaf0c317f3913680a40bc441611d3bb838b07890379302af1948dfccca0
MD5 cca2bf232456648148275a7782499871
BLAKE2b-256 f0fb5989695a8397ecc344da8b7c97da32ee4c87b7311ea5c00d6f4acdb22773

See more details on using hashes here.

Provenance

The following attestation bundles were made for saas_ips-0.1.0-py3-none-any.whl:

Publisher: distribute.yml on MSAdministrator/saas-ips

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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