AlientVault OTX <> Graphistry: Industry threat map


In [ ]:
#!pip install graphistry -q
#!pip install OTXv2 -q

In [ ]:
import graphistry
import pandas as pd
from OTXv2 import OTXv2, IndicatorTypes
from gotx import G_OTX

In [ ]:
#graphistry.register(key='MY_API_KEY', server='labs.graphistry.com')
otx = OTXv2("MY_KEY")
g_otx = G_OTX(graphistry, otx)

In [ ]:
#May take a couple minutes

pulses = otx.getall(author_name='AlienVault')
pulses_df = g_otx.pulses_to_df(pulses)

V1: Country<>Industry


In [ ]:
g_otx.industrymap(pulses_df).plot()

V2: Country <- Threat Report -> Industry


In [ ]:
g_otx.industrymap(pulses_df, include_indicators=True).plot()

In [ ]: