Skip to content

A tool to synchronize public IP addresses from Rapid7 InsightCloudSec into InsightVM and Shodan.

License

Notifications You must be signed in to change notification settings

blainemartin/Rapid7_Shodan_IP_Sync_Tool

Repository files navigation

IP Sync Tool

Overview

The IP Sync Tool is designed to automate IP address management across various security platforms, including InsightVM, Shodan, and InsightCloudSec. By synchronizing IP lists between these platforms, it ensures consistent and up-to-date IP tracking and threat management.

Features

  • IP Synchronization: Automates the process of adding, removing, and replacing IP addresses across different platforms based on current listings and predefined conditions.
  • Logging: Provides detailed logging for auditing and troubleshooting purposes.
  • Error Handling: Implements robust error handling and rate limiting strategies to ensure reliable operation.

Dependencies

Ensure you have Python 3.x installed on your system. Install all required dependencies using:

pip install -r requirements.txt

The main dependency is requests for making HTTP requests.

Configuration

Set up the necessary environment variables and configurations for each platform:

InsightCloudSec

  • INSIGHTCLOUDSEC_API_KEY: Your InsightCloudSec API key.
  • INSIGHTCLOUDSEC_BASE_URL: Base URL for the InsightCloudSec API.

InsightVM

  • INSIGHTVM_USERNAME: Your InsightVM username.
  • INSIGHTVM_PASSWORD: Your InsightVM password.
  • INSIGHTVM_BASE_URL: Base URL for the InsightVM API.

Shodan

  • SHODAN_API_KEY: Your API key for Shodan.
  • SHODAN_BASE_URL: Base URL for the Shodan API, typically "https://api.shodan.io".

Target Locations

  • SHODAN_CLOUDFLARE_NET: Network ID for Cloudflare in Shodan.
  • SHODAN_AZURE_AWS_NET: Network ID for Azure and AWS in Shodan.
  • INSIGHTVM_CLOUDFLARE_SITE_ID: Site ID for Cloudflare in InsightVM.
  • INSIGHTVM_AZURE_AWS_SITE_ID: Site ID for Azure and AWS in InsightVM.

Usage

To run the main program, execute:

python main.py

This script will orchestrate the process of fetching, comparing, and updating IP addresses across the platforms specified.

Contributing

Contributions to this project are welcome! Please fork the repository and submit a pull request with your suggested changes.

License

This project is licensed under the GNU license.

About

A tool to synchronize public IP addresses from Rapid7 InsightCloudSec into InsightVM and Shodan.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages