MSTICPy uses Entities (such as IpAddress, Host, Url) to encapsulate attributes and methods for real-world objects. You can run context queries directly from these classes.
Context Lookups
Use methods like .ip_type() or .whois() on an IpAddress object to get enrichment data.
Threat Intelligence (TI) Lookups
If TI providers are configured in msticpyconfig.yaml, you can perform lookups using the .ti attribute on an Entity:
IpAddress.ti.lookup_ip(list_of_iocs)
Alternatively, use the mp.TILookup() class directly.