A GitHub Action and CLI tool to check the reputation of IPs, domains, or CIDR blocks using threat intelligence sources like VirusTotal and urlscan.io.
- Click-powered CLI
- Supports one source per run
- Works as a Docker-based GitHub Action
- Clean, pluggable design with tests
poetry run reputation-check <target> --source <source> [--api-key YOUR_KEY] [--output-file output.json]target(required): The IP, domain, or CIDR block to check.--source(required): The source to use for the reputation check (e.g.,virustotal,urlscan).--api-key(optional): The API key for the selected source. Can also be set via environment variables (VT_API_KEYfor VirusTotal,URLSCAN_API_KEYfor urlscan.io).--output-file(optional): Path to save the raw JSON result.
- name: Run Network Reputation Check
uses: ig596/network-reputation-check-action@main
with:
target: "example.com"
source: "virustotal"
api-key: "${{ secrets.VT_API_KEY }}"target(required): The IP, domain, or CIDR block to check.source(required): The source to use for the reputation check (e.g.,virustotal,urlscan).api-key(optional): The API key for the selected source. Can be passed via GitHub Secrets.
- VirusTotal
- urlscan.io
- VirusTotal:
VT_API_KEY(required) - urlscan.io:
URLSCAN_API_KEY(optional for most API calls)
This project uses pre-commit hooks to enforce code quality. Install and activate them with:
pip install pre-commit
pre-commit installYou can manually run the hooks on all files with:
pre-commit run --all-filesThis project is licensed under the MIT License.