AlientVault OTX <> Graphistry: Industry threat map

AlientVault OTX <> Graphistry: Industry threat map#

[ ]:
#!pip install graphistry -q
#!pip install OTXv2 -q
[ ]:
import graphistry
import pandas as pd
from OTXv2 import OTXv2, IndicatorTypes
from gotx import G_OTX
[ ]:
# To specify Graphistry account & server, use:
# graphistry.register(api=3, username='...', password='...', protocol='https', server='hub.graphistry.com')
# For more options, see https://github.com/graphistry/pygraphistry#configure

otx = OTXv2("MY_KEY")
g_otx = G_OTX(graphistry, otx)
[ ]:
#May take a couple minutes

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

V1: Country<>Industry#

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

V2: Country <- Threat Report -> Industry#

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