misp-modules 3.0.9__tar.gz → 3.0.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {misp_modules-3.0.9 → misp_modules-3.0.10}/PKG-INFO +9 -2
- {misp_modules-3.0.9 → misp_modules-3.0.10}/README.md +4 -1
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/cof2misp/cof.py +1 -1
- misp_modules-3.0.10/misp_modules/modules/expansion/apifreaks.py +495 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/geoip_country.py +4 -1
- misp_modules-3.0.10/misp_modules/modules/expansion/ismalicious.py +144 -0
- misp_modules-3.0.10/misp_modules/modules/expansion/macadress_com.py +126 -0
- misp_modules-3.0.10/misp_modules/modules/expansion/onyphe.py +224 -0
- misp_modules-3.0.10/misp_modules/modules/expansion/onyphe_full.py +385 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/passivetotal.py +1 -1
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/recordedfuture.py +75 -24
- misp_modules-3.0.10/misp_modules/modules/expansion/scanmalware.py +317 -0
- misp_modules-3.0.10/misp_modules/modules/expansion/tweetfeed.py +337 -0
- misp_modules-3.0.10/misp_modules/modules/expansion/whisper.py +191 -0
- misp_modules-3.0.10/misp_modules/modules/expansion/whoisfreaks.py +608 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/cuckooimport.py +3 -3
- {misp_modules-3.0.9 → misp_modules-3.0.10}/pyproject.toml +5 -1
- misp_modules-3.0.9/misp_modules/lib/onyphe/LICENSE +0 -21
- misp_modules-3.0.9/misp_modules/lib/onyphe/__init__.py +0 -2
- misp_modules-3.0.9/misp_modules/lib/onyphe/client.py +0 -701
- misp_modules-3.0.9/misp_modules/lib/onyphe/exception.py +0 -16
- misp_modules-3.0.9/misp_modules/modules/expansion/onyphe.py +0 -230
- misp_modules-3.0.9/misp_modules/modules/expansion/onyphe_full.py +0 -444
- misp_modules-3.0.9/misp_modules/modules/expansion/whoisfreaks.py +0 -247
- {misp_modules-3.0.9 → misp_modules-3.0.10}/LICENSE +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/__main__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/ODTReader/LICENSE +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/ODTReader/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/ODTReader/odtreader.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/ODTReader/win32_unicode_argv.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/_vmray/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/_vmray/parser.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/_vmray/rest_api.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/anyrun_sandbox/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/anyrun_sandbox/config.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/anyrun_sandbox/parser.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/anyrun_sandbox/submitter.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/cof2misp/LICENSE-2.0.txt +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/cof2misp/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/dnstrails/LICENSE +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/dnstrails/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/dnstrails/api.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/dnstrails/exception.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/joe_mapping.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/joe_parser.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/lastline_api.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/qintel_helper.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/synonymsToTagNames.json +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/vt_graph_parser/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/vt_graph_parser/errors.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/vt_graph_parser/helpers/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/vt_graph_parser/helpers/parsers.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/vt_graph_parser/helpers/rules.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/vt_graph_parser/helpers/wrappers.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/vt_graph_parser/importers/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/vt_graph_parser/importers/base.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/lib/vt_graph_parser/importers/pymisp_response.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/action_mod/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/action_mod/_utils/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/action_mod/_utils/utils.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/action_mod/export_sentinel.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/action_mod/mattermost.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/action_mod/nextcloud_talk.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/action_mod/slack.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/action_mod/testaction.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_assemblyline_api.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_dnsdb_query/COPYRIGHT +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_dnsdb_query/LICENSE +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_dnsdb_query/README.md +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_dnsdb_query/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_dnsdb_query/dnsdb_query.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_ransomcoindb/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_ransomcoindb/ransomcoindb.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_rstcloud/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_rstcloud/client.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_vulnerability_parser/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/_vulnerability_parser/vulnerability_parser.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/abuseipdb.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/alphaMountain.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/anyrun_sandbox_submit.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/apiosintds.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/apivoid.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/assemblyline_query.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/assemblyline_submit.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/backscatter_io.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/btc_scam_check.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/btc_steroids.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/censys_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/circl_passivedns.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/circl_passivessl.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/clamav.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/cluster25_expand.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/convert_markdown_to_pdf.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/countrycode.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/cpe.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/crowdsec.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/crowdstrike_falcon.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/cuckoo_submit.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/cve.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/cve_advanced.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/cytomic_orion.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/dbl_spamhaus.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/dns.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/docx_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/domaintools.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/email_security_check.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/eql.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/eupi.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/extract_url_components.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/farsight_passivedns.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/flowtriq.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/geoip_asn.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/geoip_city.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/google_safe_browsing.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/google_threat_intelligence.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/greynoise.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/hashdd.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/hashlookup.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/hibp.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/html_to_markdown.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/hyasinsight.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/intel471.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/intelmq_eventdb.py.experimental +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/ip2locationio.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/ipasn.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/ipinfo.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/ipqs_fraud_and_risk_scoring.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/iprep.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/jinja_template_rendering.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/joesandbox_query.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/joesandbox_submit.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/lastline_query.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/lastline_submit.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/macaddress_io.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/macvendors.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/malshare_upload.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/malwarebazaar.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/mcafee_insights_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/mmdb_lookup.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/module.py.skeleton +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/module_misp_standard.py.skeleton +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/mwdb.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/ocr_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/ods_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/odt_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/onion_lookup.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/otx.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/passive_ssh.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/pdf_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/pptx_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/qintel_qsentry.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/qrcode.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/ransomcoindb.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/ransomlook.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rapid7_attackerkb.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rbl.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rdap.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/reversedns.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/reversinglabs_spectra_analyze.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rst_cs_beacon.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rst_favicon.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rst_html.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rst_ioc.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rst_noise_control.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rst_screenshot.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rst_ssl.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/rst_whois.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/securitytrails.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/shodan.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/sigma_queries.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/sigma_syntax_validator.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/sigmf_expand.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/socialscan.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/socradar_lookup.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/sophoslabs_intelix.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/sourcecache.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/ssh_fingerprint.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/stairwell.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/stix2_pattern_syntax_validator.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/threatcrowd.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/threatfox.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/threatminer.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/tls_certificate_check.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/triage_submit.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/trustar_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/urlhaus.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/urlscan.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/validin.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/variotdbs.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/virustotal.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/virustotal_public.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/virustotal_upload.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/vmray_submit.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/vmware_nsx.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/vulndb.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/vulnerability_lookup.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/vulners.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/vysion.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/whois.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/wiki.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/xforceexchange.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/xlsx_enrich.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/xposedornot.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/yara_query.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/yara_syntax_validator.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/expansion/yeti.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/cef_export.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/cisco_firesight_manager_ACL_rule_export.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/defender_endpoint_export.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/goamlexport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/liteexport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/mass_eql_export.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/nexthinkexport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/osqueryexport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/pdfexport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/testexport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/threatStream_misp_export.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/threat_connect_export.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/virustotal_collections.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/vt_graph.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/export_mod/yara_export.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/__init__.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/anyrun_sandbox_import.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/cof2misp.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/csvimport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/email_import.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/goamlimport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/import_blueprint.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/joe_import.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/lastline_import.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/mispjson.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/ocr.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/openiocimport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/socradar_taxii_feed.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/taxii21.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/testimport.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/threatanalyzer_import.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/url_import.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/vmray_import.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/modules/import_mod/vmray_summary_json_import.py +0 -0
- {misp_modules-3.0.9 → misp_modules-3.0.10}/misp_modules/openapi.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: misp-modules
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.10
|
|
4
4
|
Summary: MISP modules are autonomous modules that can be used for expansion and other services in MISP
|
|
5
5
|
License-Expression: AGPL-3.0-only
|
|
6
6
|
License-File: LICENSE
|
|
@@ -82,6 +82,8 @@ Requires-Dist: pyipasnhistory ; extra == "all"
|
|
|
82
82
|
Requires-Dist: pyipasnhistory ; extra == "minimal"
|
|
83
83
|
Requires-Dist: pymisp (>=2.5.34.1)
|
|
84
84
|
Requires-Dist: pymisp[email,fileobjects,openioc,pdfexport] (>=2.5.34.1) ; extra == "all"
|
|
85
|
+
Requires-Dist: pyonyphe (>=3.1.0) ; extra == "all"
|
|
86
|
+
Requires-Dist: pyonyphe (>=3.1.0) ; extra == "minimal"
|
|
85
87
|
Requires-Dist: pypdns ; extra == "all"
|
|
86
88
|
Requires-Dist: pypdns ; extra == "minimal"
|
|
87
89
|
Requires-Dist: pypssl ; extra == "all"
|
|
@@ -120,6 +122,8 @@ Requires-Dist: vulners ; extra == "all"
|
|
|
120
122
|
Requires-Dist: vulners ; extra == "minimal"
|
|
121
123
|
Requires-Dist: vysion ; extra == "all"
|
|
122
124
|
Requires-Dist: wand ; extra == "all"
|
|
125
|
+
Requires-Dist: whisper-misp ; extra == "all"
|
|
126
|
+
Requires-Dist: whisper-misp ; extra == "minimal"
|
|
123
127
|
Requires-Dist: xlrd ; extra == "all"
|
|
124
128
|
Requires-Dist: yara-python (==4.5.0) ; extra == "all"
|
|
125
129
|
Requires-Dist: yara-python (==4.5.0) ; extra == "minimal"
|
|
@@ -182,6 +186,7 @@ For further Information see the [license file](https://misp.github.io/misp-modul
|
|
|
182
186
|
* [APIVoid](https://misp.github.io/misp-modules/expansion/#apivoid) - Module to query APIVoid with some domain attributes.
|
|
183
187
|
* [AssemblyLine Query](https://misp.github.io/misp-modules/expansion/#assemblyline-query) - A module tu query the AssemblyLine API with a submission ID to get the submission report and parse it.
|
|
184
188
|
* [AssemblyLine Submit](https://misp.github.io/misp-modules/expansion/#assemblyline-submit) - A module to submit samples and URLs to AssemblyLine for advanced analysis, and return the link of the submission.
|
|
189
|
+
* [APIFreaks](https://misp.github.io/misp-modules/expansion/#apifreaks) - An expansion module for https://apifreaks.com/ that will provide WHOIS, DOMAIN and DNS information.
|
|
185
190
|
* [Backscatter.io](https://misp.github.io/misp-modules/expansion/#backscatter.io) - Backscatter.io module to bring mass-scanning observations into MISP.
|
|
186
191
|
* [BTC Scam Check](https://misp.github.io/misp-modules/expansion/#btc-scam-check) - An expansion hover module to query a special dns blacklist to check if a bitcoin address has been abused.
|
|
187
192
|
* [BTC Steroids](https://misp.github.io/misp-modules/expansion/#btc-steroids) - An expansion hover module to get a blockchain balance from a BTC address in MISP.
|
|
@@ -278,6 +283,7 @@ For further Information see the [license file](https://misp.github.io/misp-modul
|
|
|
278
283
|
* [ThreatMiner Lookup](https://misp.github.io/misp-modules/expansion/#threatminer-lookup) - Module to get information from ThreatMiner.
|
|
279
284
|
* [Triage Submit](https://misp.github.io/misp-modules/expansion/#triage-submit) - Module to submit samples to tria.ge
|
|
280
285
|
* [TruSTAR Enrich](https://misp.github.io/misp-modules/expansion/#trustar-enrich) - Module to get enrich indicators with TruSTAR.
|
|
286
|
+
* [TweetFeed Lookup](https://misp.github.io/misp-modules/expansion/#tweetfeed-lookup) - Look up an IOC in TweetFeed, the CC0 feed of IOCs shared by the infosec community on X/Twitter: reporters, source tweets, hashtags, AI context and campaign membership.
|
|
281
287
|
* [URLhaus Lookup](https://misp.github.io/misp-modules/expansion/#urlhaus-lookup) - Query of the URLhaus API to get additional information about the input attribute.
|
|
282
288
|
* [URLScan Lookup](https://misp.github.io/misp-modules/expansion/#urlscan-lookup) - An expansion module to query urlscan.io.
|
|
283
289
|
* [Validin DNS History](https://misp.github.io/misp-modules/expansion/#validin-dns-history) - Validin internet dataset expansion. Returns dns-records, web crawls, registration (WHOIS) records, and certificates from Validin's historic internet intelligence dataset.
|
|
@@ -291,8 +297,9 @@ For further Information see the [license file](https://misp.github.io/misp-modul
|
|
|
291
297
|
* [Vulnerability Lookup](https://misp.github.io/misp-modules/expansion/#vulnerability-lookup) - An expansion module to query Vulnerability Lookup
|
|
292
298
|
* [Vulners Lookup](https://misp.github.io/misp-modules/expansion/#vulners-lookup) - An expansion hover module to expand information about CVE id using Vulners API.
|
|
293
299
|
* [Vysion Enrich](https://misp.github.io/misp-modules/expansion/#vysion-enrich) - Module to enrich the information by making use of the Vysion API.
|
|
300
|
+
* [Whisper](https://misp.github.io/misp-modules/expansion/#whisper) - Enrich IPs, domains, and ASNs with threat intelligence and infrastructure context from the Whisper graph.
|
|
294
301
|
* [Whois Lookup](https://misp.github.io/misp-modules/expansion/#whois-lookup) - Module to query a local instance of uwhois (https://github.com/rafiot/uwhoisd).
|
|
295
|
-
* [WhoisFreaks Lookup](https://misp.github.io/misp-modules/expansion/#whoisfreaks-lookup) - An expansion module for https://whoisfreaks.com/ that
|
|
302
|
+
* [WhoisFreaks Lookup](https://misp.github.io/misp-modules/expansion/#whoisfreaks-lookup) - An expansion module for https://whoisfreaks.com/ that enriches a domain or an IP address. For a domain it queries the WHOIS, DNS and Domain Reputation APIs; for an IP address it queries the IP WHOIS, Geolocation and IP Security APIs. All lookups for a given attribute are executed in parallel.
|
|
296
303
|
* [Wikidata Lookup](https://misp.github.io/misp-modules/expansion/#wikidata-lookup) - An expansion hover module to extract information from Wikidata to have additional information about particular term for analysis.
|
|
297
304
|
* [IBM X-Force Exchange Lookup](https://misp.github.io/misp-modules/expansion/#ibm-x-force-exchange-lookup) - An expansion module for IBM X-Force Exchange.
|
|
298
305
|
* [XLXS Enrich](https://misp.github.io/misp-modules/expansion/#xlxs-enrich) - Module to extract freetext from a .xlsx document.
|
|
@@ -51,6 +51,7 @@ For further Information see the [license file](https://misp.github.io/misp-modul
|
|
|
51
51
|
* [APIVoid](https://misp.github.io/misp-modules/expansion/#apivoid) - Module to query APIVoid with some domain attributes.
|
|
52
52
|
* [AssemblyLine Query](https://misp.github.io/misp-modules/expansion/#assemblyline-query) - A module tu query the AssemblyLine API with a submission ID to get the submission report and parse it.
|
|
53
53
|
* [AssemblyLine Submit](https://misp.github.io/misp-modules/expansion/#assemblyline-submit) - A module to submit samples and URLs to AssemblyLine for advanced analysis, and return the link of the submission.
|
|
54
|
+
* [APIFreaks](https://misp.github.io/misp-modules/expansion/#apifreaks) - An expansion module for https://apifreaks.com/ that will provide WHOIS, DOMAIN and DNS information.
|
|
54
55
|
* [Backscatter.io](https://misp.github.io/misp-modules/expansion/#backscatter.io) - Backscatter.io module to bring mass-scanning observations into MISP.
|
|
55
56
|
* [BTC Scam Check](https://misp.github.io/misp-modules/expansion/#btc-scam-check) - An expansion hover module to query a special dns blacklist to check if a bitcoin address has been abused.
|
|
56
57
|
* [BTC Steroids](https://misp.github.io/misp-modules/expansion/#btc-steroids) - An expansion hover module to get a blockchain balance from a BTC address in MISP.
|
|
@@ -147,6 +148,7 @@ For further Information see the [license file](https://misp.github.io/misp-modul
|
|
|
147
148
|
* [ThreatMiner Lookup](https://misp.github.io/misp-modules/expansion/#threatminer-lookup) - Module to get information from ThreatMiner.
|
|
148
149
|
* [Triage Submit](https://misp.github.io/misp-modules/expansion/#triage-submit) - Module to submit samples to tria.ge
|
|
149
150
|
* [TruSTAR Enrich](https://misp.github.io/misp-modules/expansion/#trustar-enrich) - Module to get enrich indicators with TruSTAR.
|
|
151
|
+
* [TweetFeed Lookup](https://misp.github.io/misp-modules/expansion/#tweetfeed-lookup) - Look up an IOC in TweetFeed, the CC0 feed of IOCs shared by the infosec community on X/Twitter: reporters, source tweets, hashtags, AI context and campaign membership.
|
|
150
152
|
* [URLhaus Lookup](https://misp.github.io/misp-modules/expansion/#urlhaus-lookup) - Query of the URLhaus API to get additional information about the input attribute.
|
|
151
153
|
* [URLScan Lookup](https://misp.github.io/misp-modules/expansion/#urlscan-lookup) - An expansion module to query urlscan.io.
|
|
152
154
|
* [Validin DNS History](https://misp.github.io/misp-modules/expansion/#validin-dns-history) - Validin internet dataset expansion. Returns dns-records, web crawls, registration (WHOIS) records, and certificates from Validin's historic internet intelligence dataset.
|
|
@@ -160,8 +162,9 @@ For further Information see the [license file](https://misp.github.io/misp-modul
|
|
|
160
162
|
* [Vulnerability Lookup](https://misp.github.io/misp-modules/expansion/#vulnerability-lookup) - An expansion module to query Vulnerability Lookup
|
|
161
163
|
* [Vulners Lookup](https://misp.github.io/misp-modules/expansion/#vulners-lookup) - An expansion hover module to expand information about CVE id using Vulners API.
|
|
162
164
|
* [Vysion Enrich](https://misp.github.io/misp-modules/expansion/#vysion-enrich) - Module to enrich the information by making use of the Vysion API.
|
|
165
|
+
* [Whisper](https://misp.github.io/misp-modules/expansion/#whisper) - Enrich IPs, domains, and ASNs with threat intelligence and infrastructure context from the Whisper graph.
|
|
163
166
|
* [Whois Lookup](https://misp.github.io/misp-modules/expansion/#whois-lookup) - Module to query a local instance of uwhois (https://github.com/rafiot/uwhoisd).
|
|
164
|
-
* [WhoisFreaks Lookup](https://misp.github.io/misp-modules/expansion/#whoisfreaks-lookup) - An expansion module for https://whoisfreaks.com/ that
|
|
167
|
+
* [WhoisFreaks Lookup](https://misp.github.io/misp-modules/expansion/#whoisfreaks-lookup) - An expansion module for https://whoisfreaks.com/ that enriches a domain or an IP address. For a domain it queries the WHOIS, DNS and Domain Reputation APIs; for an IP address it queries the IP WHOIS, Geolocation and IP Security APIs. All lookups for a given attribute are executed in parallel.
|
|
165
168
|
* [Wikidata Lookup](https://misp.github.io/misp-modules/expansion/#wikidata-lookup) - An expansion hover module to extract information from Wikidata to have additional information about particular term for analysis.
|
|
166
169
|
* [IBM X-Force Exchange Lookup](https://misp.github.io/misp-modules/expansion/#ibm-x-force-exchange-lookup) - An expansion module for IBM X-Force Exchange.
|
|
167
170
|
* [XLXS Enrich](https://misp.github.io/misp-modules/expansion/#xlxs-enrich) - Module to extract freetext from a .xlsx document.
|
|
@@ -75,7 +75,7 @@ def is_cof_valid_simple(d: dict) -> bool:
|
|
|
75
75
|
if not isinstance(d["rdata"], str) and not isinstance(d["rdata"], list):
|
|
76
76
|
print("'rdata' is not a list and not a string.", file=sys.stderr)
|
|
77
77
|
return False
|
|
78
|
-
if not ("time_first" in d and "time_last" in d) or ("zone_time_first" in d and "zone_time_last" in d):
|
|
78
|
+
if not (("time_first" in d and "time_last" in d) or ("zone_time_first" in d and "zone_time_last" in d)):
|
|
79
79
|
print(
|
|
80
80
|
"We are missing EITHER ('first_seen' and 'last_seen') OR ('zone_time_first' and zone_time_last') fields",
|
|
81
81
|
file=sys.stderr,
|
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
"""APIFreaks MISP expansion/hover module.
|
|
2
|
+
|
|
3
|
+
An expansion + hover module for https://apifreaks.com/ that enriches MISP
|
|
4
|
+
attributes using the APIFreaks WHOIS, Domain and DNS API families.
|
|
5
|
+
|
|
6
|
+
Depending on the type of the input attribute, the module queries the relevant
|
|
7
|
+
APIFreaks endpoints and maps the results back into MISP attributes:
|
|
8
|
+
|
|
9
|
+
* domain / hostname -> WHOIS live, WHOIS history, DNS live, DNS history,
|
|
10
|
+
subdomains, domain availability
|
|
11
|
+
* ip-src / ip-dst -> IP WHOIS, reverse DNS
|
|
12
|
+
* AS -> ASN WHOIS
|
|
13
|
+
* *-email -> reverse WHOIS (by registrant email)
|
|
14
|
+
|
|
15
|
+
All endpoints are documented at https://apifreaks.com/api and authenticated
|
|
16
|
+
with a personal API key sent in the ``X-apiKey`` header.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
import requests
|
|
22
|
+
|
|
23
|
+
misperrors = {"error": "Error"}
|
|
24
|
+
|
|
25
|
+
# --- MISP module interface metadata -----------------------------------------
|
|
26
|
+
|
|
27
|
+
# Attribute types the module accepts as input and can produce as output.
|
|
28
|
+
mispattributes = {
|
|
29
|
+
"input": [
|
|
30
|
+
"domain",
|
|
31
|
+
"hostname",
|
|
32
|
+
"ip-src",
|
|
33
|
+
"ip-dst",
|
|
34
|
+
"AS",
|
|
35
|
+
"email-src",
|
|
36
|
+
"email-dst",
|
|
37
|
+
"target-email",
|
|
38
|
+
"whois-registrant-email",
|
|
39
|
+
],
|
|
40
|
+
"output": [
|
|
41
|
+
"domain",
|
|
42
|
+
"hostname",
|
|
43
|
+
"ip-src",
|
|
44
|
+
"ip-dst",
|
|
45
|
+
"AS",
|
|
46
|
+
"whois-registrant-email",
|
|
47
|
+
"whois-registrant-phone",
|
|
48
|
+
"whois-registrant-name",
|
|
49
|
+
"whois-registrar",
|
|
50
|
+
"whois-creation-date",
|
|
51
|
+
"dns-soa-email",
|
|
52
|
+
"email-src",
|
|
53
|
+
"datetime",
|
|
54
|
+
"text",
|
|
55
|
+
],
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
moduleinfo = {
|
|
59
|
+
"version": "1.0",
|
|
60
|
+
"author": "APIFreaks",
|
|
61
|
+
"description": (
|
|
62
|
+
"An expansion module for https://apifreaks.com/ that provides an"
|
|
63
|
+
" enriched analysis of a domain, hostname, IP address, ASN or email"
|
|
64
|
+
" address, including WHOIS, DNS, subdomains and domain-availability"
|
|
65
|
+
" information."
|
|
66
|
+
),
|
|
67
|
+
"module-type": ["expansion", "hover"],
|
|
68
|
+
"name": "APIFreaks Lookup",
|
|
69
|
+
"logo": "apifreaks.png",
|
|
70
|
+
"requirements": ["An access to the APIFreaks API (apikey)"],
|
|
71
|
+
"features": (
|
|
72
|
+
"The module takes a domain, hostname, IP address, ASN or email"
|
|
73
|
+
" attribute as input and queries the relevant APIFreaks WHOIS, Domain"
|
|
74
|
+
" and DNS endpoints with it. The results of the queries are then"
|
|
75
|
+
" parsed to extract as much information as possible and mapped into"
|
|
76
|
+
" compatible MISP attributes."
|
|
77
|
+
),
|
|
78
|
+
"references": ["https://apifreaks.com/", "https://apifreaks.com/api"],
|
|
79
|
+
"input": (
|
|
80
|
+
"A domain, hostname, IP address (ip-src/ip-dst), ASN (AS) or email"
|
|
81
|
+
" (email-src/email-dst/target-email/whois-registrant-email) attribute."
|
|
82
|
+
),
|
|
83
|
+
"output": (
|
|
84
|
+
"MISP attributes resulting from the queries on the APIFreaks API,"
|
|
85
|
+
" included in the following list:\n"
|
|
86
|
+
"- domain\n- hostname\n- ip-src\n- ip-dst\n- AS\n"
|
|
87
|
+
"- whois-registrant-email\n- whois-registrant-phone\n"
|
|
88
|
+
"- whois-registrant-name\n- whois-registrar\n- whois-creation-date\n"
|
|
89
|
+
"- dns-soa-email\n- email-src\n- datetime\n- text"
|
|
90
|
+
),
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
# Values shown in the MISP UI so an administrator can configure the module.
|
|
94
|
+
# The first entry is always the API key; the remaining entries are on/off
|
|
95
|
+
# toggles (accepting "1"/"true"/"yes") that let operators control which
|
|
96
|
+
# lookups run, since each lookup consumes API credits.
|
|
97
|
+
moduleconfig = [
|
|
98
|
+
"apikey",
|
|
99
|
+
"do_whois",
|
|
100
|
+
"do_dns",
|
|
101
|
+
"do_subdomains",
|
|
102
|
+
"do_availability",
|
|
103
|
+
"do_history",
|
|
104
|
+
"do_reverse_dns",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
# --- APIFreaks API details --------------------------------------------------
|
|
108
|
+
|
|
109
|
+
API_BASE = "https://api.apifreaks.com"
|
|
110
|
+
ENDPOINTS = {
|
|
111
|
+
"whois_live": "/v1.0/domain/whois/live",
|
|
112
|
+
"whois_history": "/v1.0/domain/whois/history",
|
|
113
|
+
"whois_reverse": "/v1.0/domain/whois/reverse",
|
|
114
|
+
"ip_whois": "/v1.0/ip/whois/live",
|
|
115
|
+
"asn_whois": "/v1.0/asn/whois/live",
|
|
116
|
+
"dns_live": "/v1.0/domain/dns/live",
|
|
117
|
+
"dns_history": "/v1.0/domain/dns/history",
|
|
118
|
+
"dns_reverse": "/v1.0/domain/dns/reverse",
|
|
119
|
+
"availability": "/v1.0/domain/availability",
|
|
120
|
+
"subdomains": "/v1.0/subdomains/lookup",
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
DEFAULT_DNS_TYPES = "A,AAAA,MX,NS,SOA,SPF,TXT,CNAME"
|
|
124
|
+
REDACTED_MARKERS = ("redacted", "privacy", "not disclosed", "data protected")
|
|
125
|
+
|
|
126
|
+
_EMAIL_INPUTS = {
|
|
127
|
+
"email-src",
|
|
128
|
+
"email-dst",
|
|
129
|
+
"target-email",
|
|
130
|
+
"whois-registrant-email",
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
# --- Small helpers ----------------------------------------------------------
|
|
135
|
+
|
|
136
|
+
def _is_truthy(value, default=True):
|
|
137
|
+
"""Interpret a MISP string config toggle as a boolean.
|
|
138
|
+
|
|
139
|
+
An unset/empty toggle falls back to ``default`` so operators only have to
|
|
140
|
+
change the toggles they care about.
|
|
141
|
+
"""
|
|
142
|
+
if value is None or value == "":
|
|
143
|
+
return default
|
|
144
|
+
return str(value).strip().lower() in ("1", "true", "yes", "on", "y")
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def _clean_host(value):
|
|
148
|
+
"""Normalise a DNS name into a valid hostname attribute (drop trailing dot)."""
|
|
149
|
+
if not value:
|
|
150
|
+
return None
|
|
151
|
+
return str(value).rstrip(".").strip() or None
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def _is_redacted(value):
|
|
155
|
+
if not value:
|
|
156
|
+
return True
|
|
157
|
+
low = str(value).lower()
|
|
158
|
+
return any(marker in low for marker in REDACTED_MARKERS)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
class _ResultBuilder:
|
|
162
|
+
"""Accumulate deduplicated MISP result rows."""
|
|
163
|
+
|
|
164
|
+
def __init__(self):
|
|
165
|
+
self._rows = []
|
|
166
|
+
self._seen = set()
|
|
167
|
+
self._summary = []
|
|
168
|
+
|
|
169
|
+
def add(self, misp_type, value, category=None, comment=None):
|
|
170
|
+
if value is None:
|
|
171
|
+
return
|
|
172
|
+
value = str(value).strip()
|
|
173
|
+
if not value:
|
|
174
|
+
return
|
|
175
|
+
key = (misp_type, value)
|
|
176
|
+
if key in self._seen:
|
|
177
|
+
return
|
|
178
|
+
self._seen.add(key)
|
|
179
|
+
row = {"types": [misp_type], "values": [value]}
|
|
180
|
+
if category:
|
|
181
|
+
row["categories"] = [category]
|
|
182
|
+
if comment:
|
|
183
|
+
row["comment"] = comment
|
|
184
|
+
self._rows.append(row)
|
|
185
|
+
|
|
186
|
+
def note(self, line):
|
|
187
|
+
if line:
|
|
188
|
+
self._summary.append(str(line))
|
|
189
|
+
|
|
190
|
+
def build(self):
|
|
191
|
+
if self._summary:
|
|
192
|
+
self._rows.append(
|
|
193
|
+
{"types": ["text"], "values": ["\n".join(self._summary)]}
|
|
194
|
+
)
|
|
195
|
+
return {"results": self._rows}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def _query(endpoint, apikey, params):
|
|
199
|
+
"""Perform a GET request against an APIFreaks endpoint."""
|
|
200
|
+
headers = {"X-apiKey": apikey, "Accept": "application/json"}
|
|
201
|
+
params = dict(params or {})
|
|
202
|
+
params.setdefault("format", "json")
|
|
203
|
+
response = requests.get(
|
|
204
|
+
f"{API_BASE}{endpoint}", headers=headers, params=params, timeout=30
|
|
205
|
+
)
|
|
206
|
+
response.raise_for_status()
|
|
207
|
+
return response.json()
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
# --- Per-endpoint parsers ---------------------------------------------------
|
|
211
|
+
|
|
212
|
+
def _parse_whois_live(data, rb):
|
|
213
|
+
if not isinstance(data, dict):
|
|
214
|
+
return
|
|
215
|
+
rb.add("domain", data.get("domain_name"), "Network activity")
|
|
216
|
+
rb.add("whois-creation-date", data.get("create_date"), "Attribution")
|
|
217
|
+
|
|
218
|
+
registrar = data.get("domain_registrar") or {}
|
|
219
|
+
rb.add("whois-registrar", registrar.get("registrar_name"), "Attribution")
|
|
220
|
+
|
|
221
|
+
registrant = data.get("registrant_contact") or {}
|
|
222
|
+
if not _is_redacted(registrant.get("name")):
|
|
223
|
+
rb.add("whois-registrant-name", registrant.get("name"), "Attribution")
|
|
224
|
+
if not _is_redacted(registrant.get("company")):
|
|
225
|
+
rb.add("whois-registrant-name", registrant.get("company"), "Attribution")
|
|
226
|
+
if not _is_redacted(registrant.get("email_address")):
|
|
227
|
+
rb.add(
|
|
228
|
+
"whois-registrant-email",
|
|
229
|
+
registrant.get("email_address"),
|
|
230
|
+
"Attribution",
|
|
231
|
+
)
|
|
232
|
+
if not _is_redacted(registrant.get("phone")):
|
|
233
|
+
rb.add("whois-registrant-phone", registrant.get("phone"), "Attribution")
|
|
234
|
+
|
|
235
|
+
for ns in data.get("name_servers") or []:
|
|
236
|
+
rb.add("hostname", _clean_host(ns), "Network activity")
|
|
237
|
+
|
|
238
|
+
registered = data.get("domain_registered")
|
|
239
|
+
if registered:
|
|
240
|
+
rb.note(f"WHOIS: domain registered = {registered}")
|
|
241
|
+
if data.get("expiry_date"):
|
|
242
|
+
rb.note(f"WHOIS: expiry date = {data.get('expiry_date')}")
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def _parse_whois_history(data, rb):
|
|
246
|
+
if not isinstance(data, dict):
|
|
247
|
+
return
|
|
248
|
+
total = data.get("total_records")
|
|
249
|
+
if total:
|
|
250
|
+
rb.note(f"WHOIS history: {total} historical record(s) found.")
|
|
251
|
+
records = data.get("whois_domains_historical") or []
|
|
252
|
+
# Pull registrar / registrant details from the most recent record.
|
|
253
|
+
for record in records[-1:]:
|
|
254
|
+
_parse_whois_live(record, rb)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
def _parse_whois_reverse(data, rb):
|
|
258
|
+
if not isinstance(data, dict):
|
|
259
|
+
return
|
|
260
|
+
total = data.get("total_records") or data.get("totalRecords")
|
|
261
|
+
if total:
|
|
262
|
+
rb.note(f"Reverse WHOIS: {total} related domain(s).")
|
|
263
|
+
domains = (
|
|
264
|
+
data.get("whois_domains")
|
|
265
|
+
or data.get("domains")
|
|
266
|
+
or data.get("result")
|
|
267
|
+
or []
|
|
268
|
+
)
|
|
269
|
+
for item in domains:
|
|
270
|
+
name = item.get("domain_name") if isinstance(item, dict) else item
|
|
271
|
+
rb.add("domain", name, "Network activity")
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
def _parse_ip_whois(data, rb):
|
|
275
|
+
if not isinstance(data, dict):
|
|
276
|
+
return
|
|
277
|
+
org = data.get("organization") or {}
|
|
278
|
+
if org.get("name"):
|
|
279
|
+
rb.note(f"IP WHOIS org: {org.get('name')}")
|
|
280
|
+
for inet in data.get("inet_nums") or []:
|
|
281
|
+
for cidr in inet.get("cidr") or []:
|
|
282
|
+
rb.note(f"IP WHOIS netblock: {cidr} ({inet.get('net_name', '')})")
|
|
283
|
+
for contact in data.get("abuse_contacts") or []:
|
|
284
|
+
for email in contact.get("email") or []:
|
|
285
|
+
rb.add("email-src", email, "Attribution", comment="Abuse contact")
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
def _parse_asn_whois(data, rb):
|
|
289
|
+
if not isinstance(data, dict):
|
|
290
|
+
return
|
|
291
|
+
parts = [
|
|
292
|
+
f"AS{data.get('asNumber')}" if data.get("asNumber") else None,
|
|
293
|
+
data.get("asName"),
|
|
294
|
+
data.get("orgName"),
|
|
295
|
+
data.get("country"),
|
|
296
|
+
data.get("type"),
|
|
297
|
+
]
|
|
298
|
+
summary = " | ".join(p for p in parts if p)
|
|
299
|
+
if summary:
|
|
300
|
+
rb.note(f"ASN WHOIS: {summary}")
|
|
301
|
+
rb.add("domain", data.get("domain"), "Network activity")
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
def _parse_dns_records(records, rb):
|
|
305
|
+
for record in records or []:
|
|
306
|
+
dns_type = (record.get("dnsType") or "").upper()
|
|
307
|
+
if dns_type in ("A", "AAAA"):
|
|
308
|
+
rb.add("ip-dst", record.get("address"), "Network activity")
|
|
309
|
+
elif dns_type in ("NS", "CNAME"):
|
|
310
|
+
rb.add("hostname", _clean_host(record.get("singleName")),
|
|
311
|
+
"Network activity")
|
|
312
|
+
elif dns_type == "MX":
|
|
313
|
+
target = record.get("singleName") or record.get("exchange")
|
|
314
|
+
rb.add("hostname", _clean_host(target), "Network activity")
|
|
315
|
+
elif dns_type == "SOA":
|
|
316
|
+
rb.add("dns-soa-email", _clean_host(record.get("admin")),
|
|
317
|
+
"Network activity")
|
|
318
|
+
elif dns_type in ("TXT", "SPF"):
|
|
319
|
+
raw = record.get("rawText") or record.get("text")
|
|
320
|
+
if raw:
|
|
321
|
+
rb.note(f"DNS {dns_type}: {raw}")
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
def _parse_dns_live(data, rb):
|
|
325
|
+
if isinstance(data, dict):
|
|
326
|
+
_parse_dns_records(data.get("dnsRecords"), rb)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
def _parse_dns_history(data, rb):
|
|
330
|
+
if not isinstance(data, dict):
|
|
331
|
+
return
|
|
332
|
+
if data.get("totalRecords"):
|
|
333
|
+
rb.note(f"DNS history: {data.get('totalRecords')} record set(s).")
|
|
334
|
+
for entry in data.get("historicalDnsRecords") or []:
|
|
335
|
+
_parse_dns_records(entry.get("dnsRecords"), rb)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
def _parse_dns_reverse(data, rb):
|
|
339
|
+
if not isinstance(data, dict):
|
|
340
|
+
return
|
|
341
|
+
if data.get("totalRecords"):
|
|
342
|
+
rb.note(f"Reverse DNS: {data.get('totalRecords')} match(es).")
|
|
343
|
+
for entry in data.get("reverseDnsRecords") or []:
|
|
344
|
+
rb.add("hostname", _clean_host(entry.get("domainName")),
|
|
345
|
+
"Network activity")
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
def _parse_subdomains(data, rb):
|
|
349
|
+
if not isinstance(data, dict):
|
|
350
|
+
return
|
|
351
|
+
if data.get("total_records"):
|
|
352
|
+
rb.note(f"Subdomains: {data.get('total_records')} found.")
|
|
353
|
+
for entry in data.get("subdomains") or []:
|
|
354
|
+
name = entry.get("subdomain") if isinstance(entry, dict) else entry
|
|
355
|
+
rb.add("hostname", _clean_host(name), "Network activity")
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
def _parse_availability(data, rb):
|
|
359
|
+
if not isinstance(data, dict):
|
|
360
|
+
return
|
|
361
|
+
available = data.get("domainAvailability")
|
|
362
|
+
domain = data.get("domain")
|
|
363
|
+
if available is not None and domain:
|
|
364
|
+
state = "available" if available else "registered / taken"
|
|
365
|
+
rb.note(f"Domain availability: {domain} is {state}.")
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
# --- Input extraction -------------------------------------------------------
|
|
369
|
+
|
|
370
|
+
def _extract_input(request):
|
|
371
|
+
"""Return (attribute_type, attribute_value) from a MISP module request.
|
|
372
|
+
|
|
373
|
+
Supports both the modern ``attribute`` payload and the legacy flat keys.
|
|
374
|
+
"""
|
|
375
|
+
attribute = request.get("attribute")
|
|
376
|
+
if isinstance(attribute, dict) and attribute.get("value"):
|
|
377
|
+
return attribute.get("type"), attribute.get("value")
|
|
378
|
+
for attr_type in mispattributes["input"]:
|
|
379
|
+
if request.get(attr_type):
|
|
380
|
+
return attr_type, request[attr_type]
|
|
381
|
+
return None, None
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
# --- Dispatch per attribute type -------------------------------------------
|
|
385
|
+
|
|
386
|
+
def _handle_domain(value, apikey, cfg, rb):
|
|
387
|
+
if _is_truthy(cfg.get("do_whois")):
|
|
388
|
+
_parse_whois_live(
|
|
389
|
+
_query(ENDPOINTS["whois_live"], apikey, {"domainName": value}), rb
|
|
390
|
+
)
|
|
391
|
+
if _is_truthy(cfg.get("do_dns")):
|
|
392
|
+
_parse_dns_live(
|
|
393
|
+
_query(
|
|
394
|
+
ENDPOINTS["dns_live"], apikey,
|
|
395
|
+
{"host-name": value, "type": DEFAULT_DNS_TYPES},
|
|
396
|
+
),
|
|
397
|
+
rb,
|
|
398
|
+
)
|
|
399
|
+
if _is_truthy(cfg.get("do_availability")):
|
|
400
|
+
_parse_availability(
|
|
401
|
+
_query(ENDPOINTS["availability"], apikey, {"domain": value}), rb
|
|
402
|
+
)
|
|
403
|
+
if _is_truthy(cfg.get("do_subdomains")):
|
|
404
|
+
_parse_subdomains(
|
|
405
|
+
_query(ENDPOINTS["subdomains"], apikey, {"domain": value}), rb
|
|
406
|
+
)
|
|
407
|
+
if _is_truthy(cfg.get("do_history")):
|
|
408
|
+
_parse_whois_history(
|
|
409
|
+
_query(ENDPOINTS["whois_history"], apikey, {"domainName": value}), rb
|
|
410
|
+
)
|
|
411
|
+
_parse_dns_history(
|
|
412
|
+
_query(
|
|
413
|
+
ENDPOINTS["dns_history"], apikey,
|
|
414
|
+
{"host-name": value, "type": DEFAULT_DNS_TYPES},
|
|
415
|
+
),
|
|
416
|
+
rb,
|
|
417
|
+
)
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
def _handle_ip(value, apikey, cfg, rb):
|
|
421
|
+
if _is_truthy(cfg.get("do_whois")):
|
|
422
|
+
_parse_ip_whois(
|
|
423
|
+
_query(ENDPOINTS["ip_whois"], apikey, {"ip": value}), rb
|
|
424
|
+
)
|
|
425
|
+
if _is_truthy(cfg.get("do_reverse_dns"), default=False):
|
|
426
|
+
_parse_dns_reverse(
|
|
427
|
+
_query(
|
|
428
|
+
ENDPOINTS["dns_reverse"], apikey,
|
|
429
|
+
{"type": "A", "value": value},
|
|
430
|
+
),
|
|
431
|
+
rb,
|
|
432
|
+
)
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
def _handle_asn(value, apikey, cfg, rb):
|
|
436
|
+
_parse_asn_whois(
|
|
437
|
+
_query(ENDPOINTS["asn_whois"], apikey, {"asn": value}), rb
|
|
438
|
+
)
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
def _handle_email(value, apikey, cfg, rb):
|
|
442
|
+
_parse_whois_reverse(
|
|
443
|
+
_query(ENDPOINTS["whois_reverse"], apikey, {"email": value}), rb
|
|
444
|
+
)
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
# --- Module entry points ----------------------------------------------------
|
|
448
|
+
|
|
449
|
+
def handler(q=False):
|
|
450
|
+
if q is False:
|
|
451
|
+
return False
|
|
452
|
+
request = json.loads(q)
|
|
453
|
+
|
|
454
|
+
config = request.get("config") or {}
|
|
455
|
+
apikey = config.get("apikey")
|
|
456
|
+
if not apikey:
|
|
457
|
+
misperrors["error"] = "An APIFreaks API key (apikey) is required."
|
|
458
|
+
return misperrors
|
|
459
|
+
|
|
460
|
+
attr_type, value = _extract_input(request)
|
|
461
|
+
if not value:
|
|
462
|
+
misperrors["error"] = "Unsupported or missing input attribute."
|
|
463
|
+
return misperrors
|
|
464
|
+
|
|
465
|
+
rb = _ResultBuilder()
|
|
466
|
+
try:
|
|
467
|
+
if attr_type in ("domain", "hostname"):
|
|
468
|
+
_handle_domain(value, apikey, config, rb)
|
|
469
|
+
elif attr_type in ("ip-src", "ip-dst"):
|
|
470
|
+
_handle_ip(value, apikey, config, rb)
|
|
471
|
+
elif attr_type == "AS":
|
|
472
|
+
_handle_asn(value, apikey, config, rb)
|
|
473
|
+
elif attr_type in _EMAIL_INPUTS:
|
|
474
|
+
_handle_email(value, apikey, config, rb)
|
|
475
|
+
else:
|
|
476
|
+
misperrors["error"] = f"Unsupported attribute type: {attr_type}"
|
|
477
|
+
return misperrors
|
|
478
|
+
except requests.exceptions.HTTPError as error:
|
|
479
|
+
status = error.response.status_code if error.response is not None else "?"
|
|
480
|
+
misperrors["error"] = f"APIFreaks API returned HTTP {status}."
|
|
481
|
+
return misperrors
|
|
482
|
+
except requests.exceptions.RequestException:
|
|
483
|
+
misperrors["error"] = "Could not reach the APIFreaks API."
|
|
484
|
+
return misperrors
|
|
485
|
+
|
|
486
|
+
return rb.build()
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
def introspection():
|
|
490
|
+
return mispattributes
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
def version():
|
|
494
|
+
moduleinfo["config"] = moduleconfig
|
|
495
|
+
return moduleinfo
|
|
@@ -49,7 +49,10 @@ def handler(q=False):
|
|
|
49
49
|
elif request.get("ip-src"):
|
|
50
50
|
toquery = request["ip-src"]
|
|
51
51
|
elif request.get("domain|ip"):
|
|
52
|
-
|
|
52
|
+
parts = request["domain|ip"].split("|")
|
|
53
|
+
if len(parts) != 2:
|
|
54
|
+
return {"error": "Invalid domain|ip composite attribute."}
|
|
55
|
+
toquery = parts[1]
|
|
53
56
|
else:
|
|
54
57
|
return False
|
|
55
58
|
|