Class CveEcosystemMapper
java.lang.Object
org.owasp.dependencycheck.data.nvd.ecosystem.CveEcosystemMapper
Utility for mapping CVEs to their ecosystems.
Follows a best effort approach:
Follows a best effort approach:
- scans through the description for known keywords or file extensions; alternatively
- attempts looks at the reference-data URLs for known hosts or path / query strings.
- Author:
- skjolber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEcosystem(io.github.jeremylong.openvulnerability.client.nvd.DefCveItem cve) Analyzes the description and associated URLs to determine if the vulnerability/software is for a specific known ecosystem.
-
Constructor Details
-
CveEcosystemMapper
public CveEcosystemMapper()
-
-
Method Details
-
getEcosystem
Analyzes the description and associated URLs to determine if the vulnerability/software is for a specific known ecosystem. The ecosystem can be used later for filtering CPE matches.- Parameters:
cve- the item to be analyzed- Returns:
- the ecosystem if one could be identified; otherwise
null
-