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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94058d5a6a3b7d28418354ef6409c786349617d754ced6c7e61f5e602875888e
4
- data.tar.gz: 576a3f35e9d428e2e72c6e89f28ff2d08cb91ce96ba60b37cd188b6226915e11
3
+ metadata.gz: 7f6171aad4f7b9cbda7d377f6c7012c45f42ffd5533ef9de3092fe78e5388d3b
4
+ data.tar.gz: bf58824c4382aa6b20c57f11d8c8fb2be9551495d469559c5cb0f3433179b524
5
5
  SHA512:
6
- metadata.gz: 7d8f0eb6e9afd5c2d22fb912d7a7b0c8ed300397626062022f3279b41e104a2ba306a4bf6a65b07b785c12f6914585817f434deeb97ae148c204dd29e9eb97c1
7
- data.tar.gz: 34f99f5d49b8694836612b245cd764f2550f6d398b8fcf5c82cda1620e0288860049be6aed5f5550642c73e5ade92a0d613f73c3bf1a12e8c5ac16d5aebc2a5c
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 CWEs) into clickable links.
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 %}`/`{% cwe CWE-78 %}` or as a filter `{{ "cve-2019-19781" | cve }}`/`{{ "cwe-787" | cwe }}`
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 CVE and CWE filters an tags multiple formats are accepted:
42
- * Full CVE in lower or upper case e.g. `CVE-2019-19781`, `CVE-787`, `cve-2019-19781` or `cve-787`
43
- * Just the number e.g. `2019-19781` or `787`
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
- style: mitre # Supported styles are mitre, nvd and cvedetails
67
- url: # Style is ignored if a custom URL is defined.
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
- style: mitre # Supported styles are mitre and cvedetails
70
- url: # Style is ignored if a custom URL is defined.
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></p>
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
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Secinfo
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-secinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Breedijk