Skip to content

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

Only trust RAW_RIR_DATA events from specific modules.

smicallef1f956527aa2c
diff --git a/dyn/HEADER.tmpl b/dyn/HEADER.tmpl
index d2bae9b4..436fee8c 100644
--- a/dyn/HEADER.tmpl
+++ b/dyn/HEADER.tmpl
@@ -4,7 +4,7 @@
<script type='text/javascript' src='${docroot}/static/js/viz.js'></script>
<head>
<meta charset="utf-8">
- <title>SpiderFoot v3.0</title>
+ <title>SpiderFoot v3.1-DEV</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
@@ -73,13 +73,13 @@
<div id="aboutmodal" class="modal hide fade">
<div class="modal-header">
- <h3>SpiderFoot 3.0</h3>
+ <h3>SpiderFoot 3.1-DEV</h3>
</div>
<div class="modal-body">
<p>SpiderFoot is an open source, GPL-licensed footprinting tool, created by <a href='https://twitter.com/binarypool' target=_new>Steve Micallef</a>. It is designed to be easy to use, fast and extensible.</p>
<p>If you have any bugs to report, or requests for enhancements, please contact the support mailing list at <a href=mailto:[email protected]>[email protected]</a>.
<br>
- <p>You are running version <b>3.0</b>.</p>
+ <p>You are running version <b>3.1-DEV</b>.</p>
<p> Visit the project website at <a href='https://www.spiderfoot.net' target=_new>https://www.spiderfoot.net</a>.</p>
<p> Check out the Github repo at <a href='https://github.com/smicallef/spiderfoot' target=_new>https://github.com/smicallef/spiderfoot</a>.</p>
<p> Latest updates @ Twitter <a href='https://twitter.com/spiderfoot' target=_new>https://twitter.com/spiderfoot</a>.</p>
diff --git a/modules/sfp_names.py b/modules/sfp_names.py
index 988c4fa1..3792a774 100644
--- a/modules/sfp_names.py
+++ b/modules/sfp_names.py
@@ -95,6 +95,16 @@ class sfp_names(SpiderFootPlugin):
self.notifyListeners(evt)
return None
+ # For RAW_RIR_DATA, there are only specific modules we
+ # expect to see RELEVANT names within.
+ if eventName == "RAW_RIR_DATA":
+ if srcModuleName not in [ "sfp_arin", "sfp_builtwith", "sfp_clearbit",
+ "sfp_fullcontact", "sfp_github", "sfp_hunter",
+ "sfp_opencorporates", "sfp_slideshare",
+ "sfp_twitter", "sfp_venmo", "sfp_instagram"]:
+ self.sf.debug("Ignoring RAW_RIR_DATA from untrusted module.")
+ return None
+
# Stage 1: Find things that look (very vaguely) like names
rx = re.compile("([A-Z][a-z�������������]+)\s+.?.?\s?([A-Z][�������������a-zA-Z\'\-]+)")
m = re.findall(rx, eventData)