WEBVTT

00:00:01.680 --> 00:00:02.480
Alright.

00:00:02.840 --> 00:00:05.070
Now that you've seen how Dependency‑Check works,

00:00:05.080 --> 00:00:08.210
let me finish up by sharing just a few tips that I found to be

00:00:08.210 --> 00:00:11.760
helpful as I've adopted this tool into my projects.

00:00:13.790 --> 00:00:14.450
First of all,

00:00:14.460 --> 00:00:18.470
try and understand how the Dependency‑Check analyzers will interact with

00:00:18.470 --> 00:00:22.120
your application's dependencies so that you can make sure that the scan

00:00:22.120 --> 00:00:24.420
of your project is as effective as possible.

00:00:25.540 --> 00:00:26.450
For example,

00:00:26.690 --> 00:00:29.900
some analyzers will need the dependency files to have already

00:00:29.900 --> 00:00:32.250
been downloaded to disk before scanning them.

00:00:32.740 --> 00:00:35.750
So in, say, a continuous integration build,

00:00:35.900 --> 00:00:39.650
then you might need to make sure that any installed dependency steps

00:00:39.660 --> 00:00:42.980
have already happened before you scan your application.

00:00:44.390 --> 00:00:46.200
In our JavaScript demo earlier,

00:00:46.210 --> 00:00:50.950
we saw the value of really understanding how the different analyzers work.

00:00:50.960 --> 00:00:54.280
We were able to use that knowledge to improve the accuracy

00:00:54.280 --> 00:00:58.290
of our results quite a bit in that example by disabling an

00:00:58.290 --> 00:01:02.150
analyzer that we didn't need, by excluding a directory from the scan,

00:01:02.290 --> 00:01:05.030
and by separating out our development dependencies.

00:01:07.090 --> 00:01:07.830
Secondly,

00:01:08.000 --> 00:01:11.490
think about how and when you'll run this tool, and

00:01:11.490 --> 00:01:13.440
that definitely should be automated.

00:01:14.460 --> 00:01:15.810
If you're a development team,

00:01:15.870 --> 00:01:18.430
then adding this as a step into your continuous integration

00:01:18.430 --> 00:01:21.020
pipeline will seem like an obvious choice here,

00:01:21.230 --> 00:01:23.250
and for many teams, that works just fine.

00:01:24.080 --> 00:01:29.160
But bear in mind, new vulnerabilities often get discovered in old dependencies,

00:01:29.160 --> 00:01:32.100
and if you make this a required build step,

00:01:32.110 --> 00:01:35.490
well you might suddenly find that you can't deploy to production anymore,

00:01:35.740 --> 00:01:37.970
even if your code is exactly the same.

00:01:38.830 --> 00:01:41.560
What's more, if development stops on the project,

00:01:41.570 --> 00:01:43.990
then you will also stop getting Dependency‑Check alerts.

00:01:45.370 --> 00:01:48.210
An alternative way to approach this is to set this up as a

00:01:48.210 --> 00:01:51.430
separate task scheduled to run say once a day.

00:01:51.720 --> 00:01:55.040
That way you'll always be notified if a new vulnerability is

00:01:55.040 --> 00:01:57.280
discovered without blocking development.

00:01:58.690 --> 00:02:02.450
Then, think about how you might integrate Dependency‑Check

00:02:02.460 --> 00:02:05.070
into other security or quality tooling.

00:02:05.790 --> 00:02:10.440
I've already mentioned CI pipelines, and OWASP provides plugins for Jenkins,

00:02:10.449 --> 00:02:15.060
for Azure DevOps, and for CircleCI, but you definitely don't need a plugin.

00:02:15.660 --> 00:02:19.410
The core CLI will work with pretty much any build system,

00:02:19.420 --> 00:02:22.410
and if your build system supports running Docker images,

00:02:22.450 --> 00:02:24.510
then you won't even need to install anything.

00:02:25.750 --> 00:02:30.030
If your role is less development and more security operations,

00:02:30.040 --> 00:02:32.120
then you'll likely want to integrate with some kind

00:02:32.120 --> 00:02:33.780
of continuous monitoring tool.

00:02:34.370 --> 00:02:38.890
And again, there are OWASP provided integrations available for SonarQube,

00:02:38.900 --> 00:02:42.060
as well as another free OWASP tool, Dependency‑Track.

00:02:42.740 --> 00:02:45.580
Or you can output the Dependency‑Check report into a

00:02:45.580 --> 00:02:48.480
machine‑readable format like JSON as we saw earlier,

00:02:48.730 --> 00:02:51.720
and you can then set up your own integration with your preferred tool.

00:02:54.700 --> 00:02:55.450
Next,

00:02:55.460 --> 00:02:58.740
set a quality gate to alert you when a new vulnerability

00:02:58.740 --> 00:03:00.580
is found that needs your attention.

00:03:01.180 --> 00:03:03.810
Don't rely on a human regularly reading the

00:03:03.810 --> 00:03:05.900
Dependency‑Check reports to let you know.

00:03:06.380 --> 00:03:09.380
Use that fail on CVSS flag that we demoed earlier,

00:03:10.340 --> 00:03:12.790
but what severity level should you pick?

00:03:12.800 --> 00:03:17.130
Well unfortunately, there is no one‑size‑fits‑all answer to that question.

00:03:17.470 --> 00:03:20.500
You'll have to take some time to consider the risk profile of

00:03:20.500 --> 00:03:24.790
your specific application and figure out what severity level

00:03:24.800 --> 00:03:27.570
adequately balances risk and reward.

00:03:28.880 --> 00:03:30.130
In most cases,

00:03:30.140 --> 00:03:34.330
you probably don't need to worry about low severity vulnerability reports.

00:03:34.470 --> 00:03:37.540
There is definitely diminishing security returns at

00:03:37.540 --> 00:03:39.540
that end of the severity scale,

00:03:39.780 --> 00:03:42.260
and there is a good chance that it wouldn't even be

00:03:42.260 --> 00:03:44.640
possible to fix them all if you tried.

00:03:45.280 --> 00:03:49.820
So medium severity, that's a 4.0 on the CVSS scale,

00:03:49.990 --> 00:03:52.200
is probably not a bad place to start,

00:03:53.910 --> 00:03:59.030
and that all leads us to my final tip which is to be pragmatic.

00:03:59.810 --> 00:04:03.450
Adding dependency scanning to a project can create a lot of

00:04:03.450 --> 00:04:06.820
remediation work that your team might not be used to,

00:04:06.990 --> 00:04:10.130
especially if it's a project that's already been around awhile.

00:04:11.420 --> 00:04:13.440
If you set unrealistic goals,

00:04:13.660 --> 00:04:17.430
then you risk overwhelming and discouraging your team and you might even

00:04:17.430 --> 00:04:20.170
end up giving up on dependency scanning altogether.

00:04:20.980 --> 00:04:26.790
So figure out what your team can sustain, and if in order to start doing this,

00:04:26.800 --> 00:04:29.430
you need to only respond to high or critical

00:04:29.430 --> 00:04:32.660
vulnerabilities or you need to skip dev dependencies,

00:04:32.670 --> 00:04:36.560
well that's better than not knowing about any vulnerabilities at all,

00:04:36.650 --> 00:04:37.880
so you might as well do it.

00:04:38.660 --> 00:04:40.090
Once you've gotten the hang of things,

00:04:40.090 --> 00:04:42.880
you can always review your strategy and tighten it up a notch.

00:04:44.270 --> 00:04:45.560
I hope that's been helpful.

00:04:45.630 --> 00:04:49.530
Join me in the next module as I summarize what we've learned and show you a

00:04:49.530 --> 00:04:52.190
few additional resources that you might want to check out.
