add: exclusive property added to express exclusivity at predicate or value level

Exclusive property allows to express if a predicate or a value is exclusive.
The exclusive property applies at namespace level (if the predicate is exclusive) or
at predicate level is the value is exclusive.

TLP and fr-classif updated with exclusive property.

The exclusive property can be used by the software (e.g. MISP) to warn users
if (s)he tries to add multiple tags on the same element (attribute, event...).
It's up to the configuration of the software to enforce it or not.

By default, tags are not exclusive.
pull/81/head
Alexandre Dulaunoy 2017-11-29 07:32:37 +01:00
parent a5f77f2ee0
commit f97d3f0339
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
3 changed files with 18 additions and 7 deletions

14
fr-classif/machinetag.json Normal file → Executable file
View File

@ -47,18 +47,22 @@
"predicates": [ "predicates": [
{ {
"expanded": "Informations classifiées défense", "expanded": "Informations classifiées défense",
"value": "classifiees-defense" "value": "classifiees-defense",
"exclusive": true
}, },
{ {
"expanded": "Informations non classifiées defense", "expanded": "Informations non classifiées defense",
"value": "non-classifiees-defense" "value": "non-classifiees-defense",
"exclusive": true
}, },
{ {
"expanded": "Informations non classifiées", "expanded": "Informations non classifiées",
"value": "non-classifiees" "value": "non-classifiees",
"exclusive": true
} }
], ],
"version": 1, "version": 2,
"description": "French gov information classification system", "description": "French gov information classification system",
"namespace": "fr-classif" "namespace": "fr-classif",
"exclusive": true
} }

6
schema.json Normal file → Executable file
View File

@ -72,6 +72,9 @@
"value": { "value": {
"type": "string" "type": "string"
}, },
"exclusive": {
"type": "boolean"
},
"required": [ "required": [
"value" "value"
] ]
@ -94,6 +97,9 @@
"namespace": { "namespace": {
"type": "string" "type": "string"
}, },
"exclusive": {
"type": "boolean"
},
"type": { "type": {
"type": "array", "type": "array",
"uniqueItems": true, "uniqueItems": true,

5
tlp/machinetag.json Normal file → Executable file
View File

@ -33,8 +33,9 @@
"refs": [ "refs": [
"https://www.first.org/tlp" "https://www.first.org/tlp"
], ],
"version": 4, "version": 5,
"description": "The Traffic Light Protocol - or short: TLP - was designed with the objective to create a favorable classification scheme for sharing sensitive information while keeping the control over its distribution at the same time.", "description": "The Traffic Light Protocol - or short: TLP - was designed with the objective to create a favorable classification scheme for sharing sensitive information while keeping the control over its distribution at the same time.",
"expanded": "Traffic Light Protocol", "expanded": "Traffic Light Protocol",
"namespace": "tlp" "namespace": "tlp",
"exclusive": true
} }