Skip to content

Pranith-Jain/cti-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cti-cli

Command-line threat intelligence powered by pranithjain.qzz.io.

13+ live feeds · AI copilot · 24+ IOC enrichment providers · ransomware tracking · CVE lookup · actor KB.

Install

pip install git+https://github.com/Pranith-Jain/cti-cli.git

Or clone and install:

git clone https://github.com/Pranith-Jain/cti-cli.git
cd cti-cli
pip install .

Usage

# AI investigation on any indicator
cti investigate 8.8.8.8
cti investigate CVE-2024-1709
cti investigate LockBit
cti investigate <sha256>

# Search across 12+ threat intel sources
cti search "Cobalt Strike"

# Check an IOC against 24+ providers
cti check 185.234.72.0

# Hash lookup with enrichment
cti hash-lookup <sha256>

# CVE lookup — CVSS, EPSS, KEV
cti cve CVE-2024-1709

# Recent ransomware activity
cti ransomware
cti ransomware --group lockbit

# Threat actor lookup
cti actor "Scattered Spider"

# IP geolocation
cti ip 8.8.8.8

# Domain lookup — WHOIS, DNS, email auth
cti domain example.com

# Extract IOCs from text or file
echo "some text with 185.234.72.0 and CVE-2024-1709" | cti extract
cti extract --file report.txt

# Feed health status
cti feed-status

# Recent threat briefings
cti briefings

All commands support --json for raw JSON output:

cti investigate 8.8.8.8 --json
cti ransomware --json

Commands

Command Description
investigate AI investigation on any indicator (IP, domain, hash, CVE, actor, keyword)
search Search across 12+ threat intel sources
check Check IOC against 24+ enrichment providers (streaming)
hash-lookup Hash enrichment — VirusTotal, MalwareBazaar, MalShare, OTX
cve CVE lookup — CVSS, CWE, KEV status, public PoCs, references
ransomware Recent ransomware victims and groups
actor Threat actor lookup — TTPs, victims, CVEs (auth-gated)
ip IP geolocation — country, city, reverse DNS, proxy/VPN/Tor flags
domain Domain lookup — verdict, DNS, email auth, RDAP, certificates
extract Extract IOCs from text or file
briefings Recent threat briefings
feed-status Health status of all live feeds
copilot Alias for investigate (auth-gated)

Authentication

The hosted API at https://pranithjain.qzz.io/api/v1/ now requires an API key for every command. To request one, reach out (see Contact), then provide it via the CTI_API_KEY environment variable or the --api-key flag:

export CTI_API_KEY=<your-key>
cti check 8.8.8.8
cti cve CVE-2024-1709

# or per-invocation
cti --api-key <your-key> ransomware

The AI-copilot commands (investigate, actor, copilot) additionally require an admin-scoped token.

Contact

Need an API key, or have questions? Reach out:

Configuration

Point the CLI at a different deployment with --base-url / CTI_API_BASE:

cti --base-url http://localhost:8787/api/v1 feed-status   # or CTI_API_BASE

Exit codes: 0 ok · 1 API error · 2 network error · 3 auth required.

License

MIT

About

Command-line threat intelligence — AI copilot, IOC checker, 13+ feeds. Powered by pranithjain.qzz.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages