chg: [yara] add a yara-rule-name field which can be optional or the only field

As requested in https://github.com/MISP/MISP/issues/4858
pull/192/head
Alexandre Dulaunoy 2019-07-11 22:59:05 +02:00
parent 82c0d32cd3
commit ce8d6a93c3
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,7 @@
{
"requiredOneOf": [
"yara"
"yara",
"yara-rule-name"
],
"attributes": {
"comment": {
@ -13,6 +14,11 @@
"ui-priority": 0,
"misp-attribute": "yara"
},
"yara-rule-name": {
"description": "YARA rule name.",
"ui-priority": 0,
"misp-attribute": "text"
},
"version": {
"sane_default": [
"3.7.1"
@ -33,8 +39,8 @@
"ui-priority": 0
}
},
"version": 3,
"description": "An object describing a YARA rule along with its version.",
"version": 4,
"description": "An object describing a YARA rule (or a YARA rule name) along with its version.",
"meta-category": "misc",
"uuid": "b5acf82e-ecca-4868-82fe-9dbdf4d808c3",
"name": "yara"