Back to Dependencycheck

Config Update

ant/src/site/markdown/config-update.md

12.2.214.9 KB
Original Source

Configuration

The dependency-check-update task downloads and updates the local copy of the NVD. There are several reasons that one may want to use this task; primarily, creating an update that will be run only once a day or once every few days (but not greater than 7 days) and then use the autoUpdate="false" setting on individual dependency-check scans. See Internet Access Required for more information on why this task would be used.

xml
<target name="dependency-check-update" description="Dependency-Check Update">
    <dependency-check-update/>
</target>

Configuration: dependency-check-update Task

The following properties can be set on the dependency-check-update task.

PropertyDescriptionDefault Value
dataDirectoryData directory that is used to store the local caches and NVD CVE database<folder-of-dependency-check-ant.jar>/data/11.0
failOnErrorWhether the build should fail if there is an error executing the updatetrue
proxyServerThe Proxy Server; see the proxy configuration page for more information. 
proxyPortThe Proxy Port. 
proxyUsernameDefines the proxy user name. 
proxyPasswordDefines the proxy password. 
nonProxyHostsDefines the hosts that will not be proxied. 
connectionTimeoutThe URL Connection Timeout (in milliseconds).10000
readtimeoutThe URL Read Timeout (in milliseconds).60000
retireJsAnalyzerEnabledSets whether the RetireJS Analyzer update and analyzer are enabled.true

Advanced Configuration

The following properties can be configured in the plugin. However, they are less frequently changed.

PropertyDescriptionDefault Value
nvdApiKeyThe API Key to access the NVD API; obtained from https://nvd.nist.gov/developers/request-an-api-key 
nvdApiEndpointThe NVD API endpoint URL; setting this is uncommon.https://services.nvd.nist.gov/rest/json/cves/2.0
nvdMaxRetryCountThe maximum number of retry requests for a single call to the NVD API.10
nvdApiDelayThe number of milliseconds to wait between calls to the NVD API.3500 with an NVD API Key or 8000 without an API Key
nvdApiResultsPerPageThe number records for a single page from NVD API (must be <=2000).2000
nvdDatafeedUrlThe URL for the NVD API Data feed that can be generated using https://github.com/jeremylong/open-vulnerability-cli/blob/main/README.md#mirroring-the-nvd-cve-data - example value https://internal.server/cache/nvdcve-{0}.json.gz 
nvdUserCredentials used for basic authentication for the NVD API Data feed. 
nvdPasswordCredentials used for basic authentication for the NVD API Data feed. 
nvdValidForHoursThe number of hours to wait before checking for new updates from the NVD.4
databaseDriverNameThe database driver full classname; note, only needs to be set if the driver is not JDBC4 compliant or the JAR is outside of the class path. 
databaseDriverPathThe path to the database driver JAR file; only needs to be set if the driver is not in the class path. 
connectionStringThe connection string used to connect to the database. See using a database server. 
databaseUserThe username used when connecting to the database. 
databasePasswordThe password used when connecting to the database. 
hostedSuppressionsEnabledWhether the hosted suppression file will be used.true
hostedSuppressionsUrlThe URL to a mirrored copy of the hosted suppressions file for internet-constrained environmentshttps://dependency-check.github.io/DependencyCheck/suppressions/publishedSuppressions.xml
hostedSuppressionsUserThe user for a Basic-auth-protected mirrored copy of the hosted suppressions file for internet-constrained environments 
hostedSuppressionsPasswordThe password/token for a Basic-auth-protected mirrored copy of the hosted suppressions file for internet-constrained environments 
hostedSuppressionsBearerTokenThe bearer token for a Bearer-auth-protected mirrored copy of the hosted suppressions file for internet-constrained environments 
hostedSuppressionsValidForHoursSets the number of hours to wait before checking for new updates of the hosted suppressions file2
hostedSuppressionsForceUpdateSets whether the hosted suppressions file should update regardless of the autoupdate and validForHours settingsfalse
retireJsForceUpdateSets whether the RetireJS repository should update regardless of the autoupdate setting.false
retireJsUrlThe URL to a mirrored copy of the RetireJS repository for internet-constrained environmentshttps://raw.githubusercontent.com/Retirejs/retire.js/main/repository/jsrepository.json
retireJsUrlUserThe user for a Basic-auth-protected mirrored copy of the RetireJS repository for internet-constrained environments 
retireJsUrlPasswordThe password/token for a Basic-auth-protected mirrored copy of the RetireJS repository for internet-constrained environments 
retireJsUrlBearerTokenThe bearer token for a Bearer-auth-protected mirrored copy of the RetireJS repository for internet-constrained environments 
knownExploitedEnabledSets whether the Known Exploited Vulnerability update and analyzer are enabled.true
knownExploitedUrlSets URL to the CISA Known Exploited Vulnerabilities JSON data feed.https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
knownExploitedUserThe user for a Basic-auth-protected mirrored copy of the CISA Known Exploited Vulnerabilities JSON data feed for internet-constrained environments 
knownExploitedPasswordThe password/token for a Basic-auth-protected mirrored copy of the CISA Known Exploited Vulnerabilities JSON data feed for internet-constrained environments 
knownExploitedBearerTokenThe bearer token for a Bearer-auth-protected mirrored copy of the CISA Known Exploited Vulnerabilities JSON data feed for internet-constrained environments 
knownExploitedValidForHoursSets the number of hours to wait before checking for new updates of the CISA Known Exploited Vulnerabilities JSON data feed24