WEBVTT

00:00:01.790 --> 00:00:06.120
Fortunately, there are tools that can help us have confidence about the open

00:00:06.120 --> 00:00:08.380
source components that we're building into our software.

00:00:09.640 --> 00:00:14.460
These are called Software Composition Analysis, or SCA tools, and

00:00:14.460 --> 00:00:19.100
typically they work in three stages. First, they analyze the target

00:00:19.100 --> 00:00:24.180
application to build an accurate, specific list of all the components used

00:00:24.180 --> 00:00:28.460
in it, down to the exact version number. There are a few different ways

00:00:28.460 --> 00:00:32.439
this can work, including looking at dependency files directly or by

00:00:32.439 --> 00:00:34.470
reading metadata or manifests.

00:00:34.710 --> 00:00:38.220
And a good tool often combines more than one approach.

00:00:38.220 --> 00:00:42.490
Crucially, this has to include not just direct dependencies of

00:00:42.490 --> 00:00:46.440
an application, but also dependencies of those dependencies,

00:00:46.450 --> 00:00:48.100
which often get forgotten about.

00:00:49.680 --> 00:00:54.010
Then, an SCA tool will compare this list against a database

00:00:54.010 --> 00:00:56.420
of known vulnerable packages and versions.

00:00:57.490 --> 00:00:59.240
There are a few different sources for this.

00:00:59.390 --> 00:01:02.430
The most well known is the National Vulnerability Database,

00:01:02.440 --> 00:01:05.970
or NVD, maintained by the US government.

00:01:07.340 --> 00:01:10.650
These databases are constantly being updated and added to by

00:01:10.650 --> 00:01:14.130
vendors and security researchers from all over the world, so the

00:01:14.130 --> 00:01:17.240
results of an SCA scan can change over time.

00:01:19.160 --> 00:01:23.390
Finally, the SCA tool will do something useful with the information

00:01:23.390 --> 00:01:26.830
it has gathered, and typically this is a report telling you which

00:01:26.830 --> 00:01:30.460
vulnerabilities were present and in which dependencies they were

00:01:30.460 --> 00:01:35.050
found. That might be in human readable format or it could be a

00:01:35.050 --> 00:01:37.920
structured data format, which another tool could pick up and read.

00:01:39.660 --> 00:01:43.440
This kind of automation is essential for the speed and the

00:01:43.440 --> 00:01:45.420
scale of modern software development.

00:01:45.610 --> 00:01:50.610
Doing these checks by hand would be crazy time consuming, so SCA tools are

00:01:50.620 --> 00:01:56.960
absolutely key for teams looking to embrace DevSecOps. Dependency‑Check

00:01:56.970 --> 00:02:01.510
produced by the OWASP group that I mentioned earlier is one example of an SCA

00:02:01.510 --> 00:02:05.290
tool, and we're going to spend the rest of this course learning about how

00:02:05.300 --> 00:02:09.470
OWASP Dependency‑Check works and how we can use it effectively with the

00:02:09.470 --> 00:02:14.010
Globomantics search application as an example. A lot of the general advice and

00:02:14.010 --> 00:02:17.830
best practices that we'll explore will be applicable to other SCA tools,

00:02:17.830 --> 00:02:23.980
though. Dependency‑Check follows that same three‑step pattern that I mentioned

00:02:23.980 --> 00:02:24.480
before.

00:02:24.790 --> 00:02:27.960
There are a few specific things worth mentioning about the way it

00:02:27.960 --> 00:02:33.010
works. Dependency‑Check is a command line tool, or at least the

00:02:33.010 --> 00:02:36.270
cool tool which we'll be looking at today is there are some extra

00:02:36.270 --> 00:02:37.450
bits I'll mention later.

00:02:38.790 --> 00:02:43.600
It has full support for Java, .NET, and JavaScript, and it has experimental

00:02:43.600 --> 00:02:50.940
support which can be enabled for Python, Ruby, Swift, and PHP. Primarily,

00:02:50.940 --> 00:02:54.540
Dependency‑Check uses the National Vulnerability Database, but in some

00:02:54.540 --> 00:02:59.240
cases it will also check the GitHub Advisory Database, the Retire.js

00:02:59.240 --> 00:03:06.670
database, and the Sonatype OSS Index. Dependency‑Check is designed around a

00:03:06.670 --> 00:03:08.250
series of analyzers.

00:03:08.560 --> 00:03:11.510
An analyzer is a specific methodology for collecting

00:03:11.510 --> 00:03:14.610
dependency data, and it's usually focused on a particular

00:03:14.610 --> 00:03:18.080
technology or file type. For example,

00:03:18.090 --> 00:03:23.130
there was a JAR analyzer for looking at Java dependencies. By

00:03:23.130 --> 00:03:27.160
default, all of the analyzers get run in a scan, so you can get

00:03:27.170 --> 00:03:29.320
great results with minimal configuration.

00:03:30.290 --> 00:03:32.720
We'll look more at analyzers in an upcoming demo.
