A collection of Python scripts designed for SOC analysts to automate threat intelligence enrichment using the AbuseIPDB API.
- IP Reputation Checker: Batch check IP addresses against AbuseIPDB database
- Domain Reputation Checker: Batch check domains against AbuseIPDB database
- CSV Export: Automatically generate detailed CSV reports with threat scores and IOC information
- Easy to Use: Simple command-line interface for quick analysis during incident response
- Python 3.8+
- AbuseIPDB API key (free tier available at abuseipdb.com)
- requests library
-
Clone the repository: git clone https://github.com/D1sCript/soc-automation-tools.git cd soc-automation-tools
-
Install dependencies: pip install requests
-
Set your AbuseIPDB API key in the scripts:
- Open
ip_abuse_checker/ip_checker.py - Replace
api_keywith your actual API key - Do the same for
domain_abuse_checker/domain_checker.py
- Open
python ip_abuse_checker/ip_checker.py
How to use:
- Create a file with IP addresses (one per line), e.g.,
ips.txt - Update
INPUT_FILEin the script to point to your file - Run the script
- Results will be saved to a CSV file with timestamp
Example input file: 8.8.8.8 1.1.1.1 185.220.101.1 192.168.1.1
Example output: IP Address,Abuse Confidence Score 8.8.8.8,Abuse score 0% 185.220.101.1,Abuse score 85%
python domain_abuse_checker/domain_checker.py
How to use:
- Create a file with domains (one per line), e.g.,
domains.txt - Update
INPUT_FILEin the script to point to your file - Run the script
- Results will be saved to a CSV file with timestamp
Example input file: google.com example.com suspicious-site.xyz
- Incident Response: Quickly check reputation of suspicious IPs/domains from logs
- Threat Hunting: Batch check indicators of compromise (IOCs)
- SIEM Integration: Enrich security alerts with threat intelligence
- Phishing Investigation: Verify domains from suspicious emails
- Security Research: Analyze malicious infrastructure
These tools are provided for educational and professional security purposes only. Always ensure you have proper authorization before checking IP addresses or domains. The author is not responsible for any misuse.
MIT License - See LICENSE for details
D1sCript
- AbuseIPDB for providing the threat intelligence API
- SOC and Blue Team community
For issues or questions, please open an issue on GitHub.
⭐ If these tools are helpful, please consider giving a star!