Skip to content

Commit cc09433

Browse files
committed
Add false-positive flag to YARA test sample hashes
1 parent 1610188 commit cc09433

1 file changed

Lines changed: 42 additions & 3 deletions

File tree

objects/yara/definition.json

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,50 @@
1717
],
1818
"ui-priority": 0
1919
},
20+
"false-positive": {
21+
"description": "Set to true if the related test sample is a false-positive hit for this YARA rule. If omitted, samples are treated as true-positive by default.",
22+
"disable_correlation": true,
23+
"misp-attribute": "boolean",
24+
"sane_default": [
25+
"false"
26+
],
27+
"ui-priority": 0
28+
},
29+
"md5": {
30+
"description": "MD5 hash of a file observed when testing the YARA rule (true positives or false positives).",
31+
"misp-attribute": "md5",
32+
"ui-priority": 0
33+
},
2034
"reference": {
2135
"description": "Reference or origin of the YARA rule.",
2236
"misp-attribute": "link",
2337
"ui-priority": 0
2438
},
39+
"sha1": {
40+
"description": "SHA1 hash of a file observed when testing the YARA rule (true positives or false positives).",
41+
"misp-attribute": "sha1",
42+
"ui-priority": 0
43+
},
44+
"sha256": {
45+
"description": "SHA256 hash of a file observed when testing the YARA rule (true positives or false positives).",
46+
"misp-attribute": "sha256",
47+
"ui-priority": 0
48+
},
49+
"sha512": {
50+
"description": "SHA512 hash of a file observed when testing the YARA rule (true positives or false positives).",
51+
"misp-attribute": "sha512",
52+
"ui-priority": 0
53+
},
54+
"ssdeep": {
55+
"description": "SSDEEP hash of a file observed when testing the YARA rule (true positives or false positives).",
56+
"misp-attribute": "ssdeep",
57+
"ui-priority": 0
58+
},
59+
"tlsh": {
60+
"description": "TLSH hash of a file observed when testing the YARA rule (true positives or false positives).",
61+
"misp-attribute": "tlsh",
62+
"ui-priority": 0
63+
},
2564
"version": {
2665
"description": "Version of the YARA rule depending where the yara rule is known to work as expected.",
2766
"disable_correlation": true,
@@ -42,13 +81,13 @@
4281
"ui-priority": 1
4382
}
4483
},
45-
"description": "An object describing a YARA rule (or a YARA rule name) along with its version.",
84+
"description": "An object describing a YARA rule (or a YARA rule name), its supported YARA version, and optional test-sample hashes. Test samples are true-positive by default; set false-positive=true when needed.",
4685
"meta-category": "misc",
4786
"name": "yara",
4887
"requiredOneOf": [
4988
"yara",
5089
"yara-rule-name"
5190
],
5291
"uuid": "b5acf82e-ecca-4868-82fe-9dbdf4d808c3",
53-
"version": 7
54-
}
92+
"version": 9
93+
}

0 commit comments

Comments
 (0)