Your ultimate IP dex!
ipdex is a simple CLI tool to gather insight about a list of IPs or an IP using the CrowdSec CTI (Cyber Threat Intelligence) API.
ipdex helps analysts and security engineers collect and understand information about IP addresses from CrowdSec CTI.
With this tool you can:
- Check an IP's reputation using CTI
- Scan IP or log files and display detailed reports
- Run CrowdSec Search Queries
- Keep a local history of reports for later inspection
📓 All scanned IPs are cached for 48 hours.
To use ipdex, you must create a CrowdSec Console account in order to create an API key.
-
Create an account (free or paid):
👉 https://app.crowdsec.net/ -
Go to:
👉Settings > CTI API Keys
and generate a new API key.
You will use this key during the configuration initialisation.
If you already have Go installed, you can install ipdex directly from the command line.
⚠️ You need to have Go 1.24+ installed and yourGOPATH/bin
orGOBIN
must be in your system'sPATH
environment variable to run the binary from anywhere.
go install github.com/crowdsecurity/ipdex/cmd/ipdex@latest
This will download, build, and place the ipdex
binary into your $GOBIN
directory (usually $HOME/go/bin
).
Download the binary for your system from the Releases page.
Print your current PATH
environment variable to see the folders already in it:
echo $PATH
Move the ipdex
binary to one of the folders listed. For example, if /usr/local/bin
is in your PATH
, you can move the binary like this:
sudo mv ~/Downloads/ipdex_linux_amd64 /usr/local/bin/ipdex
chmod +x /usr/local/bin/ipdex
sudo mv ~/Downloads/ipdex_darwin_arm64 /usr/local/bin/ipdex
chmod +x /usr/local/bin/ipdex
Download the binary for your system from the Releases page.
If you're using Windows (or WSL), make sure the folder containing the ipdex.exe
binary is added to your system PATH
.
To run ipdex
from anywhere in your terminal, the binary must be in a folder that's part of your PATH
.
ipdex init
Enter your API key and set your preferences.
ipdex 1.2.3.4
ipdex file ips.txt
ipdex file /var/log/nginx.log
Use the init
command to:
- Enter your API key
- Get tips about ipdex
All scanned IPs are cached for 48 hours.
ipdex <IP>
ipdex <IP> -r
ipdex <filepath>
When running ipdex on a file that has been previously scanned, it will update the existing report. Refreshing the file is particularly useful if some IPs are still cached and you wish to refresh the entire report.
ipdex <filepath> -r
ipdex report list
ipdex report show <report ID> # -d to see all IPs
Setup your configuration for the first time:
ipdex init
Interactive prompts will help you enter:
- API key (required)
Manage your local reports.
ipdex report list
ipdex report show 2
ipdex report delete 2
You can find the documentation for search queries here.
By default, the since
parameter is set to 30d
.
- For the free plan, the page size is limited to
10
. - For premium plans, the page size increases to
1000
.
ipdex search "cves:CVE-2025-2748"
ipdex search 'behaviors.label:"HTTP Scan"' --since 30m
ipdex search 'classifications.classifications.label:"VPN or Proxy" AND reputation:malicious' --since 1h -d
Manually view or change your saved config:
ipdex config
ipdex config show
ipdex config set --api-key <API-KEY>
MIT License — see the LICENSE file.