jekyll-secinfo 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -12
- data/lib/jekyll-secinfo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f6171aad4f7b9cbda7d377f6c7012c45f42ffd5533ef9de3092fe78e5388d3b
|
4
|
+
data.tar.gz: bf58824c4382aa6b20c57f11d8c8fb2be9551495d469559c5cb0f3433179b524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d463b86afb11cbdbc0789854b6d86751a12e7e359d0a257becf1a6c3d0e7c62c3f1043c89dc85da888f89cbc9e7ee5a0fbb8fa042f0a1cf49f6ae05c6ceb1bc
|
7
|
+
data.tar.gz: 97eb4a72d78e2bfe90b1ebe591a419b295397613ce39c345e1de7deb5777e065e443337f7c4765df4940c4975f52eb94dfcdd19f52bda7a1035e91833406615a
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Jekyll Secinfo
|
2
2
|
|
3
|
-
This Jekyll pluging provides a tag and filter that turns references to security related info (CVEs and
|
3
|
+
This Jekyll pluging provides a tag and filter that turns references to security related info (CVEs, CWEs and DIVD case numbers) into clickable links.
|
4
4
|
|
5
5
|
|
6
6
|
[![Build Status](https://img.shields.io/circleci/build/github/MrSeccubus/jekyll-secinfo/main)](https://circleci.com/gh/MrSeccubus/jekyll-secinfo)
|
@@ -8,6 +8,7 @@ This Jekyll pluging provides a tag and filter that turns references to security
|
|
8
8
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/test_coverage)](https://codeclimate.com/github/codeclimate/codeclimate/test_coverage)
|
9
9
|
[![MIT License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://github.com/MrSeccubus/jekyll-secinfo/blob/main/LICENSE.txt)
|
10
10
|
[![Gem downloads](https://img.shields.io/gem/dt/jekyll-secinfo)](https://rubygems.org/gems/jekyll-secinfo)
|
11
|
+
|
11
12
|
## Installation
|
12
13
|
|
13
14
|
Add this line to your Gemfile:
|
@@ -36,11 +37,11 @@ plugins:
|
|
36
37
|
|
37
38
|
## Usage
|
38
39
|
|
39
|
-
As a tag `{% cve CVE-2019-19781 %}
|
40
|
+
As a tag `{% cve CVE-2019-19781 %}` / `{% cwe CWE-78 %}` / `{% divd DIVD-2020-00001 %}` or as a filter `{{ "cve-2019-19781" | cve }}` / `{{ "cwe-787" | cwe }}` / `{{ "divd-2020-0001" | divd }}`
|
40
41
|
|
41
|
-
For
|
42
|
-
* Full CVE in lower or upper case e.g. `CVE-2019-19781`, `CVE-787`, `cve-2019-19781` or `
|
43
|
-
* Just the number e.g. `2019-19781` or `
|
42
|
+
For CVEs, CWEs and DIVD cas number filters an tags multiple formats are accepted:
|
43
|
+
* Full CVE in lower or upper case e.g. `CVE-2019-19781`, `CVE-787`, `DIVD-2020-00001`, `cve-2019-19781`, `cve-787` or `divd-2020-00001`
|
44
|
+
* Just the number e.g. `2019-19781`, `787` or `2020-00001`
|
44
45
|
|
45
46
|
## Result
|
46
47
|
|
@@ -56,6 +57,11 @@ CWEs
|
|
56
57
|
<a href="https://cwe.mitre.org/data/definitions/787.html" class="cwe secinfo">
|
57
58
|
```
|
58
59
|
|
60
|
+
DIVD case
|
61
|
+
```markup
|
62
|
+
<a href="https://csirt.divd.nl/DIVD-2020-00001" class="divd secinfo">DIVD-2020-00001</a>
|
63
|
+
```
|
64
|
+
|
59
65
|
## Configuration
|
60
66
|
|
61
67
|
The behaviour of this plugin can be configured in `_config.yml`
|
@@ -63,11 +69,13 @@ The behaviour of this plugin can be configured in `_config.yml`
|
|
63
69
|
```yml
|
64
70
|
jekyll-secinfo:
|
65
71
|
cve:
|
66
|
-
|
67
|
-
|
72
|
+
style: mitre # Supported styles are mitre, nvd and cvedetails
|
73
|
+
url: # Style is ignored if a custom URL is defined.
|
68
74
|
cwe
|
69
|
-
|
70
|
-
|
75
|
+
style: mitre # Supported styles are mitre and cvedetails
|
76
|
+
url: # Style is ignored if a custom URL is defined.
|
77
|
+
divd:
|
78
|
+
url: # Custom URL for DIVD cases.
|
71
79
|
```
|
72
80
|
|
73
81
|
You can also put these values in the front matter of a page to override the values in `_config.yml` for a specific page.
|
@@ -119,15 +127,18 @@ jekyll-secinfo:
|
|
119
127
|
url: http://localhost:4500/CVE-%s.html
|
120
128
|
cwe:
|
121
129
|
url: http://localhost:4500/CWE-
|
130
|
+
divd:
|
131
|
+
url: https://localhost:4000/cases/DIVD-
|
122
132
|
---
|
123
133
|
{% cve 1999-9999 %}
|
124
134
|
{% cve 79 %}
|
125
|
-
|
135
|
+
{{ "2020-00001" | divd }}
|
126
136
|
```
|
127
137
|
|
128
|
-
Will reneder as
|
138
|
+
Will reneder as:
|
129
139
|
```markup
|
130
140
|
<p><a href="http://localhost:4500/CVE-1999-99999.html" class="cve secinfo">CVE-1999-99999</a>
|
131
|
-
<a href="http://localhost:4500/CWE-79" class="cwe secinfo">CVE-1999-99999</a
|
141
|
+
<a href="http://localhost:4500/CWE-79" class="cwe secinfo">CVE-1999-99999</a>
|
142
|
+
<a href="https://localhost:4000/cases/DIVD-2020-00001" class="divd secinfo">DIVD-2020-00001</a></p>
|
132
143
|
```
|
133
144
|
|