faraday-plugins 1.30.0__tar.gz → 1.32.0__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.
- {faraday_plugins-1.30.0/faraday_plugins.egg-info → faraday_plugins-1.32.0}/PKG-INFO +1 -1
- faraday_plugins-1.32.0/faraday_plugins/__init__.py +1 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/manager.py +12 -1
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/plugin.py +16 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix360/DTO.py +7 -6
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/amap/plugin.py +14 -5
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/aws_inspector/plugin.py +7 -0
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/bandit/plugin.py +116 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/cis/plugin.py +7 -2
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/fierce/plugin.py +27 -2
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/fortify/plugin.py +146 -17
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/gitleaks/plugin.py +11 -3
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/google_scc_csv/plugin.py +247 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/grype/plugin.py +30 -1
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/hping3/plugin.py +12 -8
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/hydra/plugin.py +57 -41
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/invicti/plugin.py +230 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/mbsa/plugin.py +10 -1
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nessus/plugin.py +30 -8
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nextnet/plugin.py +16 -5
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/openscap/plugin.py +49 -38
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/openvas/plugin.py +6 -2
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/orca_csv/plugin.py +62 -0
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/orca_json/mapper.py +301 -0
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/orca_json/plugin.py +50 -0
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/prowler/plugin.py +321 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/reconng/plugin.py +8 -0
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/sarif/plugin.py +114 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/shodan/plugin.py +16 -6
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/snyk/plugin.py +88 -0
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/sonarqubeapi/plugin.py +246 -0
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/sourceclear/plugin.py +249 -0
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/ssl_labs/plugin.py +227 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/sslyze/plugin.py +18 -7
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/sslyzejson/plugin.py +28 -13
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/terraform/plugin.py +1 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/trivy_json/DTO.py +15 -6
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/trivy_json/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/trivy_json/plugin.py +14 -2
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/wapiti/plugin.py +16 -16
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/webinspect/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/webinspect/plugin.py +36 -7
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/wfuzz/plugin.py +42 -29
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/whatweb/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/whitesource/plugin.py +86 -1
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/whois/plugin.py +27 -5
- faraday_plugins-1.32.0/faraday_plugins/plugins/repo/windows_defender/plugin.py +230 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0/faraday_plugins.egg-info}/PKG-INFO +1 -1
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins.egg-info/SOURCES.txt +12 -0
- faraday_plugins-1.32.0/tests/test_google_scc_csv.py +172 -0
- faraday_plugins-1.32.0/tests/test_nessus.py +79 -0
- faraday_plugins-1.32.0/tests/test_orca.py +298 -0
- faraday_plugins-1.32.0/tests/test_plugin_bug_fixes.py +394 -0
- faraday_plugins-1.32.0/tests/test_report_detection.py +62 -0
- faraday_plugins-1.30.0/faraday_plugins/__init__.py +0 -1
- faraday_plugins-1.30.0/faraday_plugins/plugins/repo/bandit/plugin.py +0 -72
- faraday_plugins-1.30.0/faraday_plugins/plugins/repo/invicti/plugin.py +0 -125
- faraday_plugins-1.30.0/faraday_plugins/plugins/repo/prowler/plugin.py +0 -164
- faraday_plugins-1.30.0/faraday_plugins/plugins/repo/sarif/plugin.py +0 -101
- faraday_plugins-1.30.0/faraday_plugins/plugins/repo/snyk/plugin.py +0 -60
- faraday_plugins-1.30.0/faraday_plugins/plugins/repo/sonarqubeapi/plugin.py +0 -126
- faraday_plugins-1.30.0/faraday_plugins/plugins/repo/sourceclear/plugin.py +0 -85
- faraday_plugins-1.30.0/faraday_plugins/plugins/repo/ssl_labs/plugin.py +0 -111
- faraday_plugins-1.30.0/faraday_plugins/plugins/repo/windows_defender/plugin.py +0 -57
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/COPYING +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/MANIFEST.in +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/README.md +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/__main__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/commands.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/plugins_utils.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/port_mapper.txt +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix/DTO.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix360/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix360/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix_json/DTO.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix_json/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix_json/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/amap/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/appscan/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/appscan/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/appscan_csv/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/appscan_csv/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/appspider/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/appspider/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/arachni/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/arachni/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/arp_scan/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/arp_scan/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/aws_inspector/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/bandit/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/beef/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/beef/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/brutexss/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/brutexss/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/burp/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/burp/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/checkmarx/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/checkmarx/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/cis/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/cobalt/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/cobalt/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/crowdstrike/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/crowdstrike/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dig/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dig/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dirb/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dirb/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dirsearch/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dirsearch/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dirsearchjson/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dirsearchjson/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnsenum/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnsenum/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnsmap/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnsmap/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnsrecon/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnsrecon/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnswalk/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnswalk/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnsx/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/dnsx/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/faraday_csv/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/faraday_csv/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/faraday_json/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/faraday_json/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/faradayasset_csv/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/faradayasset_csv/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/faradaycredential_csv/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/faradaycredential_csv/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/fierce/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/fortify/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/ftp/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/ftp/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/gitleaks/__init__.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/grype → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/google_scc_csv}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/goohost/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/goohost/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/invicti → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/grype}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/hping3/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/hydra/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/impact/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/impact/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/invicti/DTO.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/mbsa → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/invicti}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/ip360/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/ip360/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/junit/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/junit/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/kubescape/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/kubescape/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/lynis/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/lynis/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/maltego/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/maltego/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/naabu → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/mbsa}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/medusa/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/medusa/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/metasploit/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/metasploit/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/ncrack → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/naabu}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/naabu/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/nextnet → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/ncrack}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/ncrack/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/ndiff/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/ndiff/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nessus/DTO.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nessus/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nessus_sc/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nessus_sc/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/netdiscover/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/netdiscover/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/netsparker/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/netsparker/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/netsparkercloud/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/netsparkercloud/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nexpose_full/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nexpose_full/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/nipper → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/nextnet}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nikto/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nikto/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/nuclei → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/nipper}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nipper/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nmap/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nmap/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/nuclei_legacy → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/nuclei}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nuclei/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/openscap → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/nuclei_legacy}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/nuclei_legacy/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/pingcastle → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/openscap}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/openvas/__init__.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/rdpscan → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/orca_csv}/__init__.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/securityscorecard_csv → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/orca_json}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/owasp/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/owasp/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/pasteanalyzer/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/pasteanalyzer/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/peepingtom/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/peepingtom/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/pentera/DTO.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/pentera/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/pentera/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/ping/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/ping/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/semgrep → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/pingcastle}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/pingcastle/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/popeye/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/popeye/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/propecia/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/propecia/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/prowler/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/prowler_legacy/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/prowler_legacy/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/qualysguard/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/qualysguard/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/qualyswebapp/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/qualyswebapp/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/ssl_labs → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/rdpscan}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/rdpscan/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/reconng/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/retina/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/retina/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/reverseraider/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/reverseraider/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/saint/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/saint/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/sarif/__init__.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/syhunt → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/securityscorecard_csv}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/securityscorecard_csv/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/tenableio_csv → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/semgrep}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/semgrep/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/shodan/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/skipfish/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/skipfish/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/snyk/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/sonarqubeapi/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/sourceclear/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/sshdefaultscan/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/sshdefaultscan/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/trivy_json → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/ssl_labs}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/sslyze/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/sslyzejson/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/subfinderjson/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/subfinderjson/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/webinspect → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/syhunt}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/syhunt/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/telnet/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/telnet/plugin.py +0 -0
- {faraday_plugins-1.30.0/faraday_plugins/plugins/repo/whatweb → faraday_plugins-1.32.0/faraday_plugins/plugins/repo/tenableio_csv}/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/tenableio_csv/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/tenableio_export_json/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/tenableio_export_json/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/terraform/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/theharvester/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/theharvester/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/traceroute/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/traceroute/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/w3af/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/w3af/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/wapiti/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/wcscan/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/wcscan/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/webfuzzer/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/webfuzzer/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/wfuzz/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/whatweb/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/whitesource/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/whois/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/windows_defender/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/wpscan/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/wpscan/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/x1/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/x1/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/xsssniper/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/xsssniper/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/zap/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/zap/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/zap_json/DTO.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/zap_json/__init__.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/zap_json/plugin.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins.egg-info/dependency_links.txt +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins.egg-info/entry_points.txt +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins.egg-info/requires.txt +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins.egg-info/top_level.txt +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/setup.cfg +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/setup.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_cli.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_commands.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_crowdstrike.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_engine_plugins.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_faraday_csv.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_nuclei_3x.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_report_collection.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_saint.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_tenableio_csv.py +0 -0
- {faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/tests/test_tenableio_json.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.32.0'
|
|
@@ -67,6 +67,7 @@ class ReportAnalyzer:
|
|
|
67
67
|
file_csv_headers = set()
|
|
68
68
|
file_json_keys = set()
|
|
69
69
|
files_in_zip = set()
|
|
70
|
+
file_head = ""
|
|
70
71
|
logger.debug("Analyze report File")
|
|
71
72
|
# Try to parse as xml
|
|
72
73
|
try:
|
|
@@ -106,6 +107,11 @@ class ReportAnalyzer:
|
|
|
106
107
|
reader_file_string = StringIO(report_file.read().decode('utf-8'))
|
|
107
108
|
reader = csv.DictReader(reader_file_string)
|
|
108
109
|
file_csv_headers = set(reader.fieldnames)
|
|
110
|
+
if len(file_csv_headers) == 1 and ";" in next(iter(file_csv_headers)):
|
|
111
|
+
# semicolon separated CSV (e.g. Prowler)
|
|
112
|
+
reader_file_string.seek(0)
|
|
113
|
+
reader = csv.DictReader(reader_file_string, delimiter=";")
|
|
114
|
+
file_csv_headers = set(reader.fieldnames)
|
|
109
115
|
logger.debug("Found CSV content on file: %s - Keys: %s", report_path, file_json_keys)
|
|
110
116
|
except Exception as e:
|
|
111
117
|
logger.debug("Non CSV content [%s] - %s", report_path, e)
|
|
@@ -116,6 +122,11 @@ class ReportAnalyzer:
|
|
|
116
122
|
except Exception as e:
|
|
117
123
|
logger.debug("Non ZIP content [%s] - %s", report_path, e)
|
|
118
124
|
finally:
|
|
125
|
+
try:
|
|
126
|
+
report_file.seek(0)
|
|
127
|
+
file_head = report_file.read(65536).decode("utf-8", errors="replace")
|
|
128
|
+
except Exception as e:
|
|
129
|
+
logger.debug("Could not read report head [%s] - %s", report_path, e)
|
|
119
130
|
report_file.close()
|
|
120
131
|
for _plugin_id, _plugin in self.plugin_manager.get_plugins():
|
|
121
132
|
logger.debug("Try plugin: %s", _plugin_id)
|
|
@@ -123,7 +134,7 @@ class ReportAnalyzer:
|
|
|
123
134
|
if _plugin.report_belongs_to(main_tag=main_tag, main_tag_attributes=main_tag_attributes,
|
|
124
135
|
report_path=report_path, extension=file_extension,
|
|
125
136
|
file_json_keys=file_json_keys, file_csv_headers=file_csv_headers,
|
|
126
|
-
files_in_zip=files_in_zip):
|
|
137
|
+
files_in_zip=files_in_zip, file_head=file_head):
|
|
127
138
|
plugin = _plugin
|
|
128
139
|
logger.debug("Plugin by File Found: %s", plugin.id)
|
|
129
140
|
break
|
|
@@ -738,6 +738,22 @@ class PluginByExtension(PluginBase):
|
|
|
738
738
|
return match
|
|
739
739
|
|
|
740
740
|
|
|
741
|
+
class PluginTextFormat(PluginByExtension):
|
|
742
|
+
"""Plain text (stdout style) reports, detected by regex signatures found in the head of the file."""
|
|
743
|
+
|
|
744
|
+
def __init__(self, *args, **kwargs):
|
|
745
|
+
super().__init__(*args, **kwargs)
|
|
746
|
+
self.extension = [".txt", ".log", ".out"]
|
|
747
|
+
self.text_signatures = []
|
|
748
|
+
|
|
749
|
+
def report_belongs_to(self, file_head="", **kwargs):
|
|
750
|
+
match = False
|
|
751
|
+
if super().report_belongs_to(**kwargs) and file_head:
|
|
752
|
+
match = any(signature.search(file_head) for signature in self.text_signatures)
|
|
753
|
+
self.logger.debug(f"Text Signature Match: {match}")
|
|
754
|
+
return match
|
|
755
|
+
|
|
756
|
+
|
|
741
757
|
class PluginXMLFormat(PluginByExtension):
|
|
742
758
|
|
|
743
759
|
def __init__(self, *args, **kwargs):
|
{faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/acunetix360/DTO.py
RENAMED
|
@@ -15,7 +15,8 @@ def clean_external_references(external_ref) -> List[str]:
|
|
|
15
15
|
|
|
16
16
|
class Classification:
|
|
17
17
|
def __init__(self, node):
|
|
18
|
-
|
|
18
|
+
# Some Acunetix360 vulnerabilities have null Classification.
|
|
19
|
+
self.node = node or {}
|
|
19
20
|
|
|
20
21
|
@property
|
|
21
22
|
def iso(self) -> str:
|
|
@@ -137,11 +138,11 @@ class Vulnerability:
|
|
|
137
138
|
|
|
138
139
|
@property
|
|
139
140
|
def description(self) -> str:
|
|
140
|
-
return CLEAN.sub("", self.node.get('Description'
|
|
141
|
+
return CLEAN.sub("", self.node.get('Description') or "The tool did not provide a description")
|
|
141
142
|
|
|
142
143
|
@property
|
|
143
144
|
def remedial_procedure(self) -> str:
|
|
144
|
-
return CLEAN.sub("", self.node.get("RemedialProcedure"
|
|
145
|
+
return CLEAN.sub("", self.node.get("RemedialProcedure") or "")
|
|
145
146
|
|
|
146
147
|
@property
|
|
147
148
|
def severity(self) -> str:
|
|
@@ -149,7 +150,7 @@ class Vulnerability:
|
|
|
149
150
|
|
|
150
151
|
@property
|
|
151
152
|
def impact(self) -> str:
|
|
152
|
-
return CLEAN.sub("", self.node.get('Impact'
|
|
153
|
+
return CLEAN.sub("", self.node.get('Impact') or "")
|
|
153
154
|
|
|
154
155
|
@property
|
|
155
156
|
def tags(self) -> List[str]:
|
|
@@ -165,11 +166,11 @@ class Vulnerability:
|
|
|
165
166
|
|
|
166
167
|
@property
|
|
167
168
|
def remedial_actions(self) -> str:
|
|
168
|
-
return CLEAN.sub("", self.node.get('RemedialActions'
|
|
169
|
+
return CLEAN.sub("", self.node.get('RemedialActions') or "")
|
|
169
170
|
|
|
170
171
|
@property
|
|
171
172
|
def proof_of_concept(self) -> str:
|
|
172
|
-
return CLEAN.sub("", self.node.get('ProofOfConcept'
|
|
173
|
+
return CLEAN.sub("", self.node.get('ProofOfConcept') or "")
|
|
173
174
|
|
|
174
175
|
@property
|
|
175
176
|
def external_references(self) -> List[str]:
|
{faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/amap/plugin.py
RENAMED
|
@@ -8,14 +8,18 @@ import re
|
|
|
8
8
|
import shlex
|
|
9
9
|
import socket
|
|
10
10
|
|
|
11
|
-
from faraday_plugins.plugins.plugin import
|
|
11
|
+
from faraday_plugins.plugins.plugin import PluginTextFormat
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
class AmapPlugin(
|
|
14
|
+
class AmapPlugin(PluginTextFormat):
|
|
15
15
|
""" Example plugin to parse amap output."""
|
|
16
16
|
|
|
17
17
|
def __init__(self, *arg, **kwargs):
|
|
18
18
|
super().__init__(*arg, **kwargs)
|
|
19
|
+
self.text_signatures = [
|
|
20
|
+
re.compile(r'^#\s*amap v[\d.]+', re.IGNORECASE | re.MULTILINE),
|
|
21
|
+
re.compile(r'^[\d.]+:\d+:(?:tcp|udp):(?:open|closed):', re.IGNORECASE | re.MULTILINE),
|
|
22
|
+
]
|
|
19
23
|
self.id = "Amap"
|
|
20
24
|
self.name = "Amap Output Plugin"
|
|
21
25
|
self.plugin_version = "0.0.3"
|
|
@@ -55,8 +59,9 @@ class AmapPlugin(PluginBase):
|
|
|
55
59
|
printable_banner,
|
|
56
60
|
None]
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
cli_target = getattr(self.args, "m", None) if self.args else None
|
|
63
|
+
if cli_target and address != cli_target:
|
|
64
|
+
hostnames = [cli_target]
|
|
60
65
|
else:
|
|
61
66
|
hostnames = None
|
|
62
67
|
h_id = self.createAndAddHost(address, hostnames=hostnames)
|
|
@@ -76,7 +81,11 @@ class AmapPlugin(PluginBase):
|
|
|
76
81
|
file_arg_re = re.compile(r"^.*(-o \s*[^\s]+\s+(?:-m|)).*$")
|
|
77
82
|
|
|
78
83
|
def get_info(self, data):
|
|
79
|
-
|
|
84
|
+
# `self.args` is only populated when the plugin runs under CLI mode
|
|
85
|
+
# (processCommandString). When loading from a report file we never see
|
|
86
|
+
# the original arguments, so default to IPv4 colon-separated parsing.
|
|
87
|
+
is_v6 = bool(self.args) and getattr(self.args, "6", False)
|
|
88
|
+
if is_v6:
|
|
80
89
|
f = re.search(
|
|
81
90
|
r"^\[(.*)\]:(.*):(.*):(.*):(.*):(.*):(.*):(.*)",
|
|
82
91
|
data)
|
|
@@ -5,6 +5,7 @@ See the file "doc/LICENSE" for the license information
|
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
from faraday_plugins.plugins.plugin import PluginJsonFormat
|
|
8
|
+
import re
|
|
8
9
|
from json import loads
|
|
9
10
|
|
|
10
11
|
__author__ = "Gonzalo Martinez"
|
|
@@ -28,6 +29,12 @@ class AWSInspectorJsonPlugin(PluginJsonFormat):
|
|
|
28
29
|
self.framework_version = "1.0.0"
|
|
29
30
|
self._temp_file_extension = "json"
|
|
30
31
|
|
|
32
|
+
def report_belongs_to(self, file_head="", **kwargs):
|
|
33
|
+
if not super().report_belongs_to(**kwargs):
|
|
34
|
+
return False
|
|
35
|
+
# Veracode / sourceclear platform exports also carry a top level "findings" list
|
|
36
|
+
return re.search(r'"(?:issue_id|context_guid)"', file_head) is None
|
|
37
|
+
|
|
31
38
|
def parseOutputString(self, output):
|
|
32
39
|
# Useful docs about aws finding struct: https://docs.aws.amazon.com/inspector/v2/APIReference/API_Finding.html
|
|
33
40
|
data = loads(output)
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import re
|
|
3
|
+
import xml.etree.ElementTree as ET
|
|
4
|
+
|
|
5
|
+
from faraday_plugins.plugins.plugin import PluginXMLFormat
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
SEVERITY_MAP = {
|
|
9
|
+
"HIGH": "high",
|
|
10
|
+
"MEDIUM": "med",
|
|
11
|
+
"LOW": "low",
|
|
12
|
+
"UNDEFINED": "info",
|
|
13
|
+
"ERROR": "high",
|
|
14
|
+
"WARNING": "med",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class BanditPlugin(PluginXMLFormat):
|
|
19
|
+
"""Parses Bandit reports.
|
|
20
|
+
|
|
21
|
+
Supports the original junit-style XML (``bandit -f xml``) and the JSON
|
|
22
|
+
output (``bandit -f json``) — Bandit emits both shapes and the JSON one is
|
|
23
|
+
the default in current versions.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self, *arg, **kwargs):
|
|
27
|
+
super().__init__(*arg, **kwargs)
|
|
28
|
+
self.identifier_tag = "testsuite"
|
|
29
|
+
self.extension = [".xml", ".json"]
|
|
30
|
+
self.id = "Bandit"
|
|
31
|
+
self.name = "Bandit Output Plugin"
|
|
32
|
+
self.plugin_version = "0.0.2"
|
|
33
|
+
|
|
34
|
+
def report_belongs_to(self, main_tag="", file_json_keys=None, **kwargs):
|
|
35
|
+
# XML branch — keep the original "testsuite name=bandit" sniff.
|
|
36
|
+
if main_tag == self.identifier_tag:
|
|
37
|
+
report_path = kwargs.get("report_path", "")
|
|
38
|
+
try:
|
|
39
|
+
with open(report_path) as f:
|
|
40
|
+
output = f.read()
|
|
41
|
+
return re.search('testsuite name="bandit"', output) is not None
|
|
42
|
+
except OSError:
|
|
43
|
+
return False
|
|
44
|
+
# JSON branch — Bandit JSON has these top-level fields.
|
|
45
|
+
if file_json_keys:
|
|
46
|
+
return {"results", "metrics", "generated_at"}.issubset(file_json_keys)
|
|
47
|
+
return False
|
|
48
|
+
|
|
49
|
+
def parseOutputString(self, output):
|
|
50
|
+
if isinstance(output, bytes):
|
|
51
|
+
output = output.decode("utf-8", errors="replace")
|
|
52
|
+
stripped = output.lstrip()
|
|
53
|
+
if stripped.startswith("{") or stripped.startswith("["):
|
|
54
|
+
self._parse_json(output)
|
|
55
|
+
else:
|
|
56
|
+
self._parse_xml(output)
|
|
57
|
+
return True
|
|
58
|
+
|
|
59
|
+
def _parse_xml(self, output):
|
|
60
|
+
tree = ET.fromstring(output)
|
|
61
|
+
for testcase in tree.findall("testcase"):
|
|
62
|
+
error = testcase.find("error")
|
|
63
|
+
if error is None:
|
|
64
|
+
continue
|
|
65
|
+
name = testcase.attrib.get("name", "")
|
|
66
|
+
path = testcase.attrib.get("classname", "")
|
|
67
|
+
severity = SEVERITY_MAP.get((error.attrib.get("type") or "").upper(),
|
|
68
|
+
error.attrib.get("type", "info"))
|
|
69
|
+
issue_text = error.text or ""
|
|
70
|
+
more_info = error.attrib.get("more_info", "")
|
|
71
|
+
host_id = self.createAndAddHost(path or "unknown")
|
|
72
|
+
self.createAndAddVulnToHost(
|
|
73
|
+
host_id=host_id,
|
|
74
|
+
name=name,
|
|
75
|
+
desc=issue_text,
|
|
76
|
+
ref=[more_info] if more_info else [],
|
|
77
|
+
severity=severity,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
def _parse_json(self, output):
|
|
81
|
+
data = json.loads(output)
|
|
82
|
+
results = data.get("results", []) or []
|
|
83
|
+
for r in results:
|
|
84
|
+
filename = r.get("filename") or "unknown"
|
|
85
|
+
host_id = self.createAndAddHost(filename)
|
|
86
|
+
sev_raw = (r.get("issue_severity") or "").upper()
|
|
87
|
+
severity = SEVERITY_MAP.get(sev_raw, "info")
|
|
88
|
+
test_id = r.get("test_id", "")
|
|
89
|
+
test_name = r.get("test_name", "") or r.get("issue_text", "")[:60]
|
|
90
|
+
name = f"{test_id} {test_name}".strip() if test_id else test_name
|
|
91
|
+
line = r.get("line_number")
|
|
92
|
+
data_lines = []
|
|
93
|
+
if line:
|
|
94
|
+
data_lines.append(f"Line {line}")
|
|
95
|
+
code = r.get("code")
|
|
96
|
+
if code:
|
|
97
|
+
data_lines.append(code)
|
|
98
|
+
refs = []
|
|
99
|
+
if r.get("more_info"):
|
|
100
|
+
refs.append(r["more_info"])
|
|
101
|
+
cwe_id = (r.get("issue_cwe") or {}).get("id")
|
|
102
|
+
cwe = [f"CWE-{cwe_id}"] if cwe_id else []
|
|
103
|
+
self.createAndAddVulnToHost(
|
|
104
|
+
host_id=host_id,
|
|
105
|
+
name=name or "Bandit finding",
|
|
106
|
+
desc=r.get("issue_text", ""),
|
|
107
|
+
data="\n".join(data_lines),
|
|
108
|
+
ref=refs,
|
|
109
|
+
severity=severity,
|
|
110
|
+
external_id=test_id,
|
|
111
|
+
cwe=cwe,
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def createPlugin(*args, **kwargs):
|
|
116
|
+
return BanditPlugin(*args, **kwargs)
|
{faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/cis/plugin.py
RENAMED
|
@@ -40,9 +40,14 @@ class CisPlugin(PluginXMLFormat):
|
|
|
40
40
|
root = ET.fromstring(output)
|
|
41
41
|
rules = {}
|
|
42
42
|
for rule in root.findall(f".//{self.ns['xccdf']}Rule"):
|
|
43
|
+
# Real CIS reports vary in how they nest title/description.
|
|
44
|
+
# Look up by tag name instead of relying on positional access.
|
|
45
|
+
title_el = rule.find(f".//{self.ns['xccdf']}title")
|
|
46
|
+
desc_el = rule.find(f".//{self.ns['xccdf']}description")
|
|
43
47
|
rules[rule.attrib['id']] = {
|
|
44
|
-
"title":
|
|
45
|
-
|
|
48
|
+
"title": (title_el.text if title_el is not None and title_el.text else
|
|
49
|
+
rule.attrib.get('id', '')),
|
|
50
|
+
"description": (desc_el.text if desc_el is not None and desc_el.text else "")
|
|
46
51
|
}
|
|
47
52
|
reports = root.findall(f".//{self.ns['arf']}reports")
|
|
48
53
|
for report in reports:
|
{faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/fierce/plugin.py
RENAMED
|
@@ -6,7 +6,7 @@ See the file 'doc/LICENSE' for the license information
|
|
|
6
6
|
"""
|
|
7
7
|
import re
|
|
8
8
|
|
|
9
|
-
from faraday_plugins.plugins.plugin import
|
|
9
|
+
from faraday_plugins.plugins.plugin import PluginTextFormat
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
__author__ = "Francisco Amato"
|
|
@@ -34,10 +34,30 @@ class FierceParser:
|
|
|
34
34
|
@param fierce_filepath A proper simple report generated by fierce
|
|
35
35
|
"""
|
|
36
36
|
|
|
37
|
+
# Modern fierce (>=1.0 Python rewrite) emits:
|
|
38
|
+
# Found: hostname.example.com. (1.2.3.4)
|
|
39
|
+
# and inside `Nearby: { '1.2.3.4': 'host.example.com.', ... }` blocks.
|
|
40
|
+
_modern_found_re = re.compile(r"Found:\s+([\w.\-]+)\.\s+\(([\d.]+)\)")
|
|
41
|
+
_modern_nearby_re = re.compile(r"'(\d+\.\d+\.\d+\.\d+)':\s*'([\w.\-]+)\.?'")
|
|
42
|
+
|
|
37
43
|
def __init__(self, output):
|
|
38
44
|
self.target = None
|
|
39
45
|
self.items = []
|
|
40
46
|
|
|
47
|
+
# First try the modern Python-fierce 1.x format. If we find any matches
|
|
48
|
+
# we use that; otherwise fall back to the original Perl fierce parser.
|
|
49
|
+
modern_hits = list(self._modern_found_re.finditer(output))
|
|
50
|
+
nearby_hits = list(self._modern_nearby_re.finditer(output))
|
|
51
|
+
if modern_hits or nearby_hits:
|
|
52
|
+
for m in modern_hits:
|
|
53
|
+
hostname, ip = m.group(1), m.group(2)
|
|
54
|
+
self.add_host_info_to_items(ip, hostname, "A")
|
|
55
|
+
for m in nearby_hits:
|
|
56
|
+
ip, hostname = m.group(1), m.group(2)
|
|
57
|
+
self.add_host_info_to_items(ip, hostname, "A")
|
|
58
|
+
self.isZoneVuln = False
|
|
59
|
+
return
|
|
60
|
+
|
|
41
61
|
regex = re.search(
|
|
42
62
|
"DNS Servers for ([\\w\\.-]+):\n([^$]+)Trying zone transfer first...",
|
|
43
63
|
output)
|
|
@@ -93,13 +113,18 @@ class FierceParser:
|
|
|
93
113
|
self.items.append(data)
|
|
94
114
|
|
|
95
115
|
|
|
96
|
-
class FiercePlugin(
|
|
116
|
+
class FiercePlugin(PluginTextFormat):
|
|
97
117
|
"""
|
|
98
118
|
Example plugin to parse fierce output.
|
|
99
119
|
"""
|
|
100
120
|
|
|
101
121
|
def __init__(self, *arg, **kwargs):
|
|
102
122
|
super().__init__(*arg, **kwargs)
|
|
123
|
+
self.text_signatures = [
|
|
124
|
+
re.compile(r'^NS:\s+\S+.*\n(?:SOA|Zone|Wildcard):', re.IGNORECASE | re.MULTILINE),
|
|
125
|
+
re.compile(r'^Found:\s+[\w.\-]+\.\s+\([\d.]+\)', re.IGNORECASE | re.MULTILINE),
|
|
126
|
+
re.compile(r'^DNS Servers for [\w.\-]+:', re.IGNORECASE | re.MULTILINE),
|
|
127
|
+
]
|
|
103
128
|
self.id = "Fierce"
|
|
104
129
|
self.name = "Fierce Output Plugin"
|
|
105
130
|
self.plugin_version = "0.0.1"
|
{faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/fortify/plugin.py
RENAMED
|
@@ -17,11 +17,30 @@ class FortifyPlugin(PluginByExtension):
|
|
|
17
17
|
def __init__(self, *arg, **kwargs):
|
|
18
18
|
super().__init__(*arg, **kwargs)
|
|
19
19
|
self.id = "Fortify"
|
|
20
|
-
self.name = "Fortify
|
|
21
|
-
self.plugin_version = "0.0
|
|
22
|
-
self.extension = ".fpr"
|
|
20
|
+
self.name = "Fortify Output Plugin"
|
|
21
|
+
self.plugin_version = "0.1.0"
|
|
22
|
+
self.extension = [".fpr", ".fvdl", ".xml"]
|
|
23
23
|
self.open_options = {"mode": "rb"}
|
|
24
24
|
|
|
25
|
+
# The .xml extension is shared by many other plugins (metasploit, nmap, etc.).
|
|
26
|
+
# Only claim XML files that look like Fortify output (FVDL or Fortify Report).
|
|
27
|
+
def report_belongs_to(self, extension="", **kwargs):
|
|
28
|
+
if extension == ".fpr" or extension == ".fvdl":
|
|
29
|
+
return True
|
|
30
|
+
if extension == ".xml":
|
|
31
|
+
report_path = kwargs.get("report_path", "")
|
|
32
|
+
if not report_path:
|
|
33
|
+
return False
|
|
34
|
+
try:
|
|
35
|
+
with open(report_path, "rb") as f:
|
|
36
|
+
head = f.read(2048)
|
|
37
|
+
except OSError:
|
|
38
|
+
return False
|
|
39
|
+
return b"<FVDL" in head or (
|
|
40
|
+
b"<ReportDefinition" in head and b"Fortify" in head
|
|
41
|
+
)
|
|
42
|
+
return False
|
|
43
|
+
|
|
25
44
|
def _process_fvdl_vulns(self, fp):
|
|
26
45
|
|
|
27
46
|
for host in fp.hosts.keys():
|
|
@@ -74,6 +93,17 @@ class FortifyPlugin(PluginByExtension):
|
|
|
74
93
|
)
|
|
75
94
|
|
|
76
95
|
def parseOutputString(self, output):
|
|
96
|
+
# Pre-sniff: .fpr is a zip; .fvdl/ReportDefinition is XML.
|
|
97
|
+
head = output[:200] if isinstance(output, (bytes, bytearray)) else b""
|
|
98
|
+
if not head and isinstance(output, str):
|
|
99
|
+
head = output[:200].encode("utf-8", errors="replace")
|
|
100
|
+
|
|
101
|
+
# Standalone Fortify ReportDefinition XML (custom Fortify report exports
|
|
102
|
+
# with <Issue iid=...> elements inside).
|
|
103
|
+
if b"<ReportDefinition" in head:
|
|
104
|
+
self._parse_report_xml(output)
|
|
105
|
+
return True
|
|
106
|
+
|
|
77
107
|
fp = FortifyParser(output)
|
|
78
108
|
if fp.fvdl is not None:
|
|
79
109
|
self._process_fvdl_vulns(fp)
|
|
@@ -82,6 +112,73 @@ class FortifyPlugin(PluginByExtension):
|
|
|
82
112
|
|
|
83
113
|
return True
|
|
84
114
|
|
|
115
|
+
def _parse_report_xml(self, output):
|
|
116
|
+
"""Parse standalone Fortify ReportDefinition XML (no zip wrapper).
|
|
117
|
+
|
|
118
|
+
Each <Issue> element gives us category/folder/abstract plus a Primary
|
|
119
|
+
block with FileName / FilePath / LineStart / Snippet / TargetFunction.
|
|
120
|
+
"""
|
|
121
|
+
if isinstance(output, str):
|
|
122
|
+
output = output.encode("utf-8")
|
|
123
|
+
root = objectify.fromstring(output)
|
|
124
|
+
host_cache = {}
|
|
125
|
+
|
|
126
|
+
# Severity is exposed as Folder ("Critical"/"High"/"Medium"/"Low")
|
|
127
|
+
# or Friority. Normalise to Faraday severities.
|
|
128
|
+
sev_map = {
|
|
129
|
+
"Critical": "critical", "High": "high",
|
|
130
|
+
"Medium": "med", "Low": "low", "Informational": "info",
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
for issue in root.iter("{*}Issue") if hasattr(root, "iter") else []:
|
|
134
|
+
category = getattr(issue, "Category", None)
|
|
135
|
+
category_text = category.text if category is not None and category.text else "Fortify finding"
|
|
136
|
+
folder = getattr(issue, "Folder", None)
|
|
137
|
+
severity_raw = (folder.text if folder is not None and folder.text else "")
|
|
138
|
+
if not severity_raw:
|
|
139
|
+
friority = getattr(issue, "Friority", None)
|
|
140
|
+
severity_raw = friority.text if friority is not None and friority.text else ""
|
|
141
|
+
severity = sev_map.get(severity_raw, "info")
|
|
142
|
+
|
|
143
|
+
primary = getattr(issue, "Primary", None)
|
|
144
|
+
if primary is None:
|
|
145
|
+
file_name = "unknown"
|
|
146
|
+
file_path = ""
|
|
147
|
+
line_start = ""
|
|
148
|
+
snippet = ""
|
|
149
|
+
target = ""
|
|
150
|
+
else:
|
|
151
|
+
file_name = (getattr(primary, "FileName", None) and primary.FileName.text) or "unknown"
|
|
152
|
+
file_path = (getattr(primary, "FilePath", None) and primary.FilePath.text) or file_name
|
|
153
|
+
line_start = (getattr(primary, "LineStart", None) and primary.LineStart.text) or ""
|
|
154
|
+
snippet = (getattr(primary, "Snippet", None) and primary.Snippet.text) or ""
|
|
155
|
+
target = (getattr(primary, "TargetFunction", None) and primary.TargetFunction.text) or ""
|
|
156
|
+
|
|
157
|
+
host_key = file_path or file_name
|
|
158
|
+
if host_key not in host_cache:
|
|
159
|
+
host_cache[host_key] = self.createAndAddHost(host_key)
|
|
160
|
+
|
|
161
|
+
abstract = getattr(issue, "Abstract", None)
|
|
162
|
+
desc = abstract.text.strip() if abstract is not None and abstract.text else ""
|
|
163
|
+
kingdom = getattr(issue, "Kingdom", None)
|
|
164
|
+
kingdom_text = kingdom.text if kingdom is not None and kingdom.text else ""
|
|
165
|
+
|
|
166
|
+
data_lines = [
|
|
167
|
+
f"File: {file_path}",
|
|
168
|
+
f"Line: {line_start}" if line_start else "",
|
|
169
|
+
f"Target: {target}" if target else "",
|
|
170
|
+
f"Kingdom: {kingdom_text}" if kingdom_text else "",
|
|
171
|
+
f"Snippet:\n{snippet}" if snippet else "",
|
|
172
|
+
]
|
|
173
|
+
self.createAndAddVulnToHost(
|
|
174
|
+
host_id=host_cache[host_key],
|
|
175
|
+
name=category_text,
|
|
176
|
+
desc=desc,
|
|
177
|
+
severity=severity,
|
|
178
|
+
data="\n".join(filter(None, data_lines)),
|
|
179
|
+
external_id=issue.get("iid", "") or issue.get("ruleID", ""),
|
|
180
|
+
)
|
|
181
|
+
|
|
85
182
|
|
|
86
183
|
class FortifyParser:
|
|
87
184
|
"""
|
|
@@ -110,19 +207,29 @@ class FortifyParser:
|
|
|
110
207
|
self.replacements_idx2 = re.compile(r'<Replace key="(.*?)"(\slink="(.*?)")?[\s\/].*?>')
|
|
111
208
|
|
|
112
209
|
def _uncompress_fpr(self, output):
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
210
|
+
if isinstance(output, str):
|
|
211
|
+
output = output.encode("utf-8")
|
|
212
|
+
# Standalone .fvdl files are XML, not zip.
|
|
213
|
+
if output.startswith(b"<?xml") or output.startswith(b"<FVDL"):
|
|
214
|
+
self.fvdl = objectify.fromstring(output)
|
|
215
|
+
return
|
|
216
|
+
try:
|
|
217
|
+
with ZipFile(io.BytesIO(output)) as fprcontent:
|
|
218
|
+
try:
|
|
219
|
+
self.fvdl = objectify.fromstring(fprcontent.read('audit.fvdl'))
|
|
220
|
+
except KeyError:
|
|
221
|
+
pass
|
|
222
|
+
try:
|
|
223
|
+
self.webinspect = objectify.fromstring(fprcontent.read('webinspect.xml'))
|
|
224
|
+
except KeyError:
|
|
225
|
+
pass
|
|
226
|
+
try:
|
|
227
|
+
self.audit = objectify.fromstring(fprcontent.read('audit.xml'))
|
|
228
|
+
except KeyError:
|
|
229
|
+
pass
|
|
230
|
+
except Exception:
|
|
231
|
+
# Not a valid fpr — leave fvdl/webinspect None and let caller skip.
|
|
232
|
+
pass
|
|
126
233
|
|
|
127
234
|
def _process_fvdl(self):
|
|
128
235
|
for vuln in self.fvdl.Vulnerabilities.iterchildren():
|
|
@@ -295,7 +402,11 @@ class FortifyParser:
|
|
|
295
402
|
|
|
296
403
|
for rule in rulepath(self.fvdl):
|
|
297
404
|
if rule.get('id') == vuln.ClassInfo.ClassID:
|
|
298
|
-
|
|
405
|
+
# Some Fortify reports omit MetaInfo for certain rules.
|
|
406
|
+
meta_info = getattr(rule, "MetaInfo", None)
|
|
407
|
+
if meta_info is None:
|
|
408
|
+
continue
|
|
409
|
+
for group in meta_info.iterchildren():
|
|
299
410
|
if group.get('name') == "Probability":
|
|
300
411
|
probability = group
|
|
301
412
|
if group.get('name') == "Impact":
|
|
@@ -303,6 +414,24 @@ class FortifyParser:
|
|
|
303
414
|
if group.get('name') == "Accuracy":
|
|
304
415
|
accuracy = group
|
|
305
416
|
|
|
417
|
+
if accuracy is None or probability is None:
|
|
418
|
+
# Without rule metadata, fall back to InstanceSeverity if available.
|
|
419
|
+
inst_sev = getattr(vuln.InstanceInfo, "InstanceSeverity", None)
|
|
420
|
+
if inst_sev is not None:
|
|
421
|
+
try:
|
|
422
|
+
score = float(inst_sev)
|
|
423
|
+
except (TypeError, ValueError):
|
|
424
|
+
return "info"
|
|
425
|
+
if score >= 4:
|
|
426
|
+
return "critical"
|
|
427
|
+
if score >= 3:
|
|
428
|
+
return "high"
|
|
429
|
+
if score >= 2:
|
|
430
|
+
return "med"
|
|
431
|
+
if score >= 1:
|
|
432
|
+
return "low"
|
|
433
|
+
return "info"
|
|
434
|
+
|
|
306
435
|
likelihood = (accuracy * vuln.InstanceInfo.Confidence * probability) / 25
|
|
307
436
|
|
|
308
437
|
if impact and probability:
|
{faraday_plugins-1.30.0 → faraday_plugins-1.32.0}/faraday_plugins/plugins/repo/gitleaks/plugin.py
RENAMED
|
@@ -23,8 +23,16 @@ class GitleaksPlugin(PluginJsonFormat):
|
|
|
23
23
|
|
|
24
24
|
def parseOutputString(self, output, debug=False):
|
|
25
25
|
json_output = json.loads(output)
|
|
26
|
-
|
|
26
|
+
# gitleaks emits a JSON array. "No findings" is `null` in some versions
|
|
27
|
+
# and `[]` in others; either way, nothing to do.
|
|
28
|
+
if not json_output:
|
|
29
|
+
return
|
|
30
|
+
if not isinstance(json_output, list):
|
|
31
|
+
return
|
|
27
32
|
|
|
33
|
+
for leak in json_output:
|
|
34
|
+
if not isinstance(leak, dict):
|
|
35
|
+
continue
|
|
28
36
|
description = f"Match: {leak.get('Match')}\n" \
|
|
29
37
|
f"Secret: {leak.get('Secret')}\n" \
|
|
30
38
|
f"Commit: {leak.get('Commit')}\n" \
|
|
@@ -35,11 +43,11 @@ class GitleaksPlugin(PluginJsonFormat):
|
|
|
35
43
|
f"Fingerprint: {leak.get('Fingerprint')}\n"
|
|
36
44
|
|
|
37
45
|
host_id = self.createAndAddHost(
|
|
38
|
-
name=leak.get('File'),
|
|
46
|
+
name=leak.get('File') or "unknown",
|
|
39
47
|
)
|
|
40
48
|
self.createAndAddVulnToHost(
|
|
41
49
|
host_id,
|
|
42
|
-
name=leak.get('Description'),
|
|
50
|
+
name=leak.get('Description') or leak.get('RuleID') or "Gitleaks finding",
|
|
43
51
|
desc=description,
|
|
44
52
|
severity='informational',
|
|
45
53
|
status='open',
|