You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VulnerableCode is a FOSS database of vulnerabilities and the FOSS packages they impact. It is made by the FOSS community to improve and secure the open source software ecosystem.
36
20
37
-
38
-
39
21
## The Why
40
22
41
-
42
-
43
23
The existing solutions are commercial proprietary vulnerability databases, which in itself does not make sense because the data is about FOSS.
44
24
45
-
46
-
47
25
National Vulnerability Database which is the primary data source for all things security, is not particulary catered to address FOSS security issues, because:
48
26
49
-
50
-
51
-
1. It predates explosion of FOSS software usage
52
-
53
-
2. It's data format reflects commercial vendor-centric point of view, this is due to the usage of [CPE](https://nvd.nist.gov/products/cpe) to map vulnerabilities and the packages.
54
-
55
-
3. CPEs are just not designed to map FOSS to vulnerabilities owing to their vendor-product centric semantics. This makes it really hard to answer the fundamental question "Is package foo vulnerable to vulnerability bar?"
56
-
57
-
27
+
1. It predates explosion of FOSS software usage
28
+
2. It's data format reflects commercial vendor-centric point of view, this is due to the usage of [CPE](https://nvd.nist.gov/products/cpe) to map vulnerabilities and the packages.
29
+
3. CPEs are just not designed to map FOSS to vulnerabilities owing to their vendor-product centric semantics. This makes it really hard to answer the fundamental question "Is package foo vulnerable to vulnerability bar?"
58
30
59
31
## The How
60
32
61
-
62
-
63
33
VulnerableCode independently aggregates many software vulnerability data sources that can easily be recreated in a decentralized fashion. These data sources include security advisories published by distros, package managers etc. Due to this the data obtained is not generalized to apply for other ecosystems. This increases the accuracy as the same version of a package across different distros may or may not be vulnerable to some vulnerability.
64
34
65
-
66
-
67
-
The packages are identified using [PURL](https://github.com/package-url/purl-spec) rather than CPEs. This makes it really easy to answer questions like "Is package foo vulnerable to vulnerability bar ? ".
68
-
69
-
35
+
The packages are identified using [PURL](https://github.com/package-url/purl-spec) rather than CPEs. This makes it really easy to answer questions like "Is package foo vulnerable to vulnerability bar ? ".
70
36
71
37
The web interface enables community curation of data by enabling addition of new packages, vulnerabilities and modifying the relationships between them as shown in GIF. Along with the web interface the API allows seamless consumption of the data.
72
38
73
-
74
-
75
39
We also plan to mine for vulnerabilities which didn't receive any exposure due to various reasons like but not limited to the complicated procedure to receive CVE ID or not able to classify a bug as a security compromise. Check VulnerableCode at [Open Source Summit 2020](https://ossna2020.sched.com/event/c46p/why-is-there-no-free-software-vulnerability-database-philippe-ombredanne-aboutcodeorg-and-nexb-inc-michael-herzog-nexb-inc)
The easiest way to set up VulnerableCode is by using the docker containers.
91
52
For this you need to have the following installed.
92
-
93
-
- Docker Engine. Find instructions to install it [here](https://docs.docker.com/get-docker/)
94
-
- Docker Compose. Find instructions to install it [here](https://docs.docker.com/compose/install/#install-compose)
53
+
- Docker Engine. Find instructions to install it here
54
+
- Docker Compose. Find instructions to install it here
95
55
96
56
Use `sudo docker-compose up` to start VulnerableCode.
57
+
Access VulnerableCode at http://localhost:8000/ or at http://127.0.0.1:8000/ .
97
58
98
-
Access VulnerableCode at `http://localhost:8000/` or at `http://127.0.0.1:8000/` .
99
-
100
-
Use `sudo docker-compose exec web bash` to access the VulnerableCode container. From here you can run access `manage.py` and run management commands to import data as specified below.
101
-
102
-
### Without docker
103
-
59
+
Use `sudo docker-compose exec web bash` to access the VulnerableCode container. From here you can access `manage.py` and run management commands to import data as specified below.
104
60
61
+
### Without Docker Compose
105
62
**System requirements**
106
-
107
-
- Python 3.8+
108
-
109
-
- PostgreSQL 9+ or [Docker](https://hub.docker.com/search/?type=edition&offering=community)
110
63
64
+
- Python 3.8+
65
+
- PostgreSQL 9+
111
66
- Compiler toolchain and development files for Python and PostgreSQL
112
67
113
-
114
-
115
-
On Debian-based distros, these can be installed with `sudo apt install python3-venv python3-dev postgresql libpq-dev build-essential`. Leave out `postgresql` if you want to run it in Docker.
116
-
117
-
68
+
On Debian-based distros, these can be installed with `sudo apt install python3-venv python3-dev postgresql libpq-dev build-essential`.
118
69
119
70
**Database configuration**
120
-
121
-
122
71
- Create a user named `vulnerablecode`. Use `vulnerablecode` as password when prompted:
0 commit comments