Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Obtain siblings and subdomains.

Steveeb8ea7af569d
diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.py
index ed16ad1f..5df89d07 100644
--- a/modules/sfp_virustotal.py
+++ b/modules/sfp_virustotal.py
@@ -69,7 +69,7 @@ class sfp_virustotal(SpiderFootPlugin):
return ["MALICIOUS_IPADDR", "MALICIOUS_INTERNET_NAME",
"MALICIOUS_COHOST", "MALICIOUS_AFFILIATE_INTERNET_NAME",
"MALICIOUS_AFFILIATE_IPADDR", "MALICIOUS_NETBLOCK",
- "MALICIOUS_SUBNET"]
+ "MALICIOUS_SUBNET", "INTERNET_NAME", "AFFILIATE_INTERNET_NAME"]
def query(self, qry):
ret = None
@@ -182,4 +182,24 @@ class sfp_virustotal(SpiderFootPlugin):
infourl, self.__name__, event)
self.notifyListeners(e)
+ # Treat siblings as affiliates if they are of the original target, otherwise
+ # they are additional hosts within the target.
+ if 'domain_siblings' in info:
+ if eventName in [ "IP_ADDRESS", "INTERNET_NAME"]:
+ for s in info['domain_siblings']:
+ if self.getTarget().matches(s):
+ if s not in self.results:
+ e = SpiderFootEvent("INTERNET_NAME", s, self.__name__, event)
+ self.notifyListeners(e)
+ else:
+ if s not in self.results:
+ e = SpiderFootEvent("AFFILIATE_INTERNET_NAME", s, self.__name__, event)
+ self.notifyListeners(e)
+
+ if 'subdomains' in info and eventName == "INTERNET_NAME":
+ for n in info['subdomains']:
+ if n not in self.results:
+ e = SpiderFootEvent("INTERNET_NAME", n, self.__name__, event)
+ self.notifyListeners(e)
+
# End of sfp_virustotal class