Skip to content

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

New meta dict describing the module, worked on with @bcoles.

smicallefff9a7eaf5307
diff --git a/modules/sfp_template.py b/modules/sfp_template.py
index ac03bcd2..e08e28a5 100644
--- a/modules/sfp_template.py
+++ b/modules/sfp_template.py
@@ -13,6 +13,94 @@
from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_template(SpiderFootPlugin):
+ # The module descriptor dictionary contains all the meta data about a module necessary
+ # for users to understand...
+
+ meta = {
+ # Module name: A very short but human readable name for the module.
+ 'name': "Template Module",
+
+ # Description: A sentence briefly describing the module.
+ 'summary': "This is an example module to help developers create their own SpiderFoot modules.",
+
+ # Flags: Attributes about this module:
+ # - apikey: Needs an API key to function
+ # - slow: Can be slow to find information
+ # - errorprone: Might generate high false positives
+ # - invasive: Interrogates the target, might be intensive
+ # - tool: Runs an external tool to collect data
+ 'flags': [ 'slow', 'apikey'],
+
+ # Use cases: The use case(s) this module should be included in, options are Footprint, Investigate and Passive.
+ # - Passive means the user's scan target is not contacted at all
+ # - Footprint means that this module is useful when understanding the target's footprint on the Internet
+ # - Investigate means that this module is useful when investigating the danger/risk of a target
+ 'useCases': [ "Passive" ],
+
+ # Categories: The categories this module belongs in, describing how it operates. Only the first category is
+ # used for now.
+ # - Content Analysis: Analyses content found
+ # - Crawling and Scanning: Performs crawling or scanning of the target
+ # - DNS: Queries DNS
+ # - Leaks, Dumps and Breaches: Queries data dumps and breaches
+ # - Passive DNS: Analyses passive DNS sources
+ # - Public Registries: Queries open/public registries of information
+ # - Real World: Queries sources about the real world (addresses, names, etc.)
+ # - Reputation Systems: Queries systems that describe the reptuation of other systems
+ # - Search Engines: Searches public search engines with data about the whole Internet
+ # - Secondary Networks: Queries information about participation on secondary networks, like Bitcoin
+ # - Social Media: Searches social media data sources
+ 'categories': [ "Social Media" ],
+
+ # Information about the data source (if any) this module queries for data. For modules
+ # that purley parse data from other modules (e.g. sfp_email), this may be omitted.
+ 'dataSource': {
+ # The primary website for the data source.
+ 'website': "https://www.datasource.com",
+
+ # The subscription model for this data source.
+ # - FREE_NOAUTH_UNLIMITED: Completely free, no need to obtain an API key and no limits
+ # imposed beyond throttling.
+ # - FREE_NOAUTH_LIMITED: Completely free, no need to obtain an API key however limits
+ # are imposed and you need to register/pay to exceed them.
+ # - FREE_AUTH_UNLIMITED: Completely free, however you must obtain an API key to access
+ # the service with no limits imposed beyond throttling.
+ # - FREE_AUTH_LIMITED: Completely free, however you must obtain an API key and limits
+ # are imposed. You need to register/pay to exceed them.
+ # - COMMERCIAL_ONLY: No free tier is available at all.
+ # - PRIVATE_ONLY: Invite only. Usually for betas and similar programs.
+ 'model': "FREE_NOAUTH_LIMITED"
+
+ # Links to additional information. May be omitted.
+ 'references': [
+ "https://www.datasource.com/api-documentation"
+ ],
+
+ # If an API key is optional or required, information on how to obtain the API key.
+ # Each array element is a step.
+ 'apiKeyInstructions': [
+ "Visit www.datasource.com",
+ "Register a free account",
+ "Click on 'Account Settings'",
+ "Click on 'Developer'",
+ "The API key is listed under 'Your API Key'"
+ ],
+
+ # URL of the favicon for the data source.
+ 'favIcon': "https://www.datasource.com/favicon.ico",
+
+ # URL of the full-size logo for the data source.
+ 'logo': "https://www.datasource.com/logo.gif",
+
+ # A paragraph or two about the data source.
+ 'description': "A paragraph of text with details about the data source / services. "
+ "Keep things neat by breaking the text up across multiple lines as "
+ "has been done here. If line breaks are needed for breaking up "
+ "multiple paragraphs, use \n.",
+ }
+ }
+
+ # The below docstring is going away in 3.2, in favor of the module descriptor dictionary.
#
# Format of the below must be, in order, separated by ':'
#