diff --git a/SYNTAX-REFERENCE.md b/SYNTAX-REFERENCE.md index b6295896d..d5f606f72 100755 --- a/SYNTAX-REFERENCE.md +++ b/SYNTAX-REFERENCE.md @@ -795,6 +795,52 @@ cvss-score: "9.8"
+
+ +epss-score float64 + +
+
+ +EPSS Score for the template. + + + +Examples: + + +```yaml +epss-score: "0.42509" +``` + + +
+ +
+ +
+ +cpe string + +
+
+ +CPE for the template. + + + +Examples: + + +```yaml +cpe: cpe:/a:vendor:product:version +``` + + +
+ +
+ diff --git a/nuclei-jsonschema.json b/nuclei-jsonschema.json index 757b97d0e..81fa8454f 100644 --- a/nuclei-jsonschema.json +++ b/nuclei-jsonschema.json @@ -26,6 +26,19 @@ "type": "number", "title": "cvss score for the template", "description": "CVSS Score for the template" + }, + "epss-score": { + "type": "number", + "title": "epss score for the template", + "description": "EPSS Score for the template" + }, + "cpe": { + "type": "string", + "title": "cpe for the template", + "description": "CPE for the template", + "examples": [ + "cpe:/a:vendor:product:version" + ] } }, "additionalProperties": false, diff --git a/v2/pkg/templates/templates_doc.go b/v2/pkg/templates/templates_doc.go index 3e3b005a2..2a5506a1a 100644 --- a/v2/pkg/templates/templates_doc.go +++ b/v2/pkg/templates/templates_doc.go @@ -293,7 +293,7 @@ func init() { FieldName: "classification", }, } - MODELClassificationDoc.Fields = make([]encoder.Doc, 4) + MODELClassificationDoc.Fields = make([]encoder.Doc, 6) MODELClassificationDoc.Fields[0].Name = "cve-id" MODELClassificationDoc.Fields[0].Type = "stringslice.StringSlice" MODELClassificationDoc.Fields[0].Note = "" @@ -322,6 +322,20 @@ func init() { MODELClassificationDoc.Fields[3].Comments[encoder.LineComment] = "CVSS Score for the template." MODELClassificationDoc.Fields[3].AddExample("", "9.8") + MODELClassificationDoc.Fields[4].Name = "epss-score" + MODELClassificationDoc.Fields[4].Type = "float64" + MODELClassificationDoc.Fields[4].Note = "" + MODELClassificationDoc.Fields[4].Description = "EPSS Score for the template." + MODELClassificationDoc.Fields[4].Comments[encoder.LineComment] = "EPSS Score for the template." + + MODELClassificationDoc.Fields[4].AddExample("", "0.42509") + MODELClassificationDoc.Fields[5].Name = "cpe" + MODELClassificationDoc.Fields[5].Type = "string" + MODELClassificationDoc.Fields[5].Note = "" + MODELClassificationDoc.Fields[5].Description = "CPE for the template." + MODELClassificationDoc.Fields[5].Comments[encoder.LineComment] = "CPE for the template." + + MODELClassificationDoc.Fields[5].AddExample("", "cpe:/a:vendor:product:version") HTTPRequestDoc.Type = "http.Request" HTTPRequestDoc.Comments[encoder.LineComment] = " Request contains a http request to be made from a template"