Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wayofthepie/cve-query


https://github.com/wayofthepie/cve-query

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# Cve Query
Exposes a graphql api for analysis of CVE data.
See [here](https://cve.mitre.org/about/) for more info on CVE's.

# Running
For now the setup is a bit manual. First you need to run the database:

```shell
$ docker run -ti --net host wayofthepie/vulgr:0.2
```

You can access Neo4J directly at http://localhost:7474, `neo4j/neo4j` are the initial credentials, change the password to `test`, `neo4j/test` is what the app will try to connect with.
This will give you a visual overview of the CVE data model. Next launch the app:

```shell
$ ./gradlew bootRun
```

Finally, navigate to http://localhost:8080/graphiql.
Query types will auto complete, an example query is:

```graphql
query {
productsOwnedByVendor(vendorId:"linux", limit:2) {
cpe
}
}
```
This returns the CPE's of the first 2 products owned by linux:

```json
{
"data": {
"productsOwnedByVendor": [
{
"cpe": "cpe:/o:linux:linux_kernel:4.5.7"
},
{
"cpe": "cpe:/o:linux:linux_kernel:4.6.4"
}
]
}
}
```