Skip to content

ig596/network_reputation_checks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Network Reputation Check Action

GitHub Workflow Status Python Version License Poetry pre-commit

Coverage Code Style PyPI Version Downloads GitHub Stars GitHub Issues Last Commit

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.

✅ Features

  • Click-powered CLI
  • Supports one source per run
  • Works as a Docker-based GitHub Action
  • Clean, pluggable design with tests

🔧 Usage (CLI)

poetry run reputation-check <target> --source <source> [--api-key YOUR_KEY] [--output-file output.json]

CLI Parameters

  • 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_KEY for VirusTotal, URLSCAN_API_KEY for urlscan.io).
  • --output-file (optional): Path to save the raw JSON result.

🚀 Usage (GitHub Actions)

- name: Run Network Reputation Check
  uses: ig596/network-reputation-check-action@main
  with:
    target: "example.com"
    source: "virustotal"
    api-key: "${{ secrets.VT_API_KEY }}"

GitHub Action Parameters

  • 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.

📦 Supported Sources

  • VirusTotal
  • urlscan.io

🔑 API Keys

  • VirusTotal: VT_API_KEY (required)
  • urlscan.io: URLSCAN_API_KEY (optional for most API calls)

🔧 Development Setup

Pre-commit Hooks

This project uses pre-commit hooks to enforce code quality. Install and activate them with:

pip install pre-commit
pre-commit install

You can manually run the hooks on all files with:

pre-commit run --all-files

📜 License

This project is licensed under the MIT License.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors