Class KnownExploitedVulnerabilityAnalyzer

  • All Implemented Interfaces:
    Analyzer

    @ThreadSafe
    public class KnownExploitedVulnerabilityAnalyzer
    extends AbstractAnalyzer
    This analyzer adds information about known exploited vulnerabilities.
    Author:
    Jeremy Long
    • Constructor Detail

      • KnownExploitedVulnerabilityAnalyzer

        public KnownExploitedVulnerabilityAnalyzer()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the analyzer.
        Returns:
        the name of the analyzer.
      • getAnalysisPhase

        public AnalysisPhase getAnalysisPhase()
        Returns the phase that the analyzer is intended to run in.
        Returns:
        the phase that the analyzer is intended to run in.
      • getAnalyzerEnabledSettingKey

        protected java.lang.String getAnalyzerEnabledSettingKey()

        Returns the setting key to determine if the analyzer is enabled.

        Specified by:
        getAnalyzerEnabledSettingKey in class AbstractAnalyzer
        Returns:
        the key for the analyzer's enabled property
      • analyzeDependency

        protected void analyzeDependency​(Dependency dependency,
                                         Engine engine)
                                  throws AnalysisException
        Adds information about the known exploited vulnerabilities to the analysis.
        Specified by:
        analyzeDependency in class AbstractAnalyzer
        Parameters:
        dependency - The dependency being analyzed
        engine - The scanning engine
        Throws:
        AnalysisException - is thrown if there is an exception analyzing the dependency.