SkillAgentSearch skills...

EnrichIOC

Python script to enrich Domain and IP Address IOCs with data from RiskIQ, VirusTotal & Symantec's sitereview.

Install / Use

/learn @krlplm/EnrichIOC
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Enrich IOC

This python script is useful to enrich the Domain and IP Address IOCs with Passive Total aka RiskIQ & VirusTotal API.

With limitations on scraping the Symantec's sitereview site, this script now uses selenium to scrape the categorization details.

Pre-requisites:

  • Python 3.5+
  • Download Chrome Driver compatible with the Browser version you run from https://chromedriver.chromium.org/downloads
    • Unzip and move to /usr/local/bin (MAC OS/Linux)

Package Dependencies:

  • Install Selenium by running as below,
    pip install selenium

Most other package dependencies are by default available with the python installation.

How-To execute the script:

  • Run the script by passing a list of Domains/IPs new-line separated by running as below,
    python enrich.py -l <list of IPs/Domains>

  • Run the script as below for enriching a single IP or a domain,
    python enrich.py -c <IP or Domain>

Gotchas:

  • In the event, the Site Review page prompts the captcha window, open up a new tab and enter the capctha manually.
  • Due to time crunch, I haven't handled Capctha in my code but definitely on the feature list

Benchmarking:

  • Currently, I've tested like 200 domains in a list which are handled by the site review with out any issues. However, most of my runs have seen the captcha prompt in between 200-220.
  • Following the above hack may be of help but may impact 3-5 IOCs while you perform this.
View on GitHub
GitHub Stars5
CategoryDevelopment
Updated2y ago
Forks1

Languages

Python

Security Score

70/100

Audited on Nov 21, 2023

No findings