Add schema for mapping
parent
05ce75f7fe
commit
718443dc5c
|
@ -11,4 +11,5 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
cat schema.json | jq . | sponge schema.json
|
cat schema.json | jq . | sponge schema.json
|
||||||
|
cat schema_mapping.json | jq . | sponge schema_mapping.json
|
||||||
cat MANIFEST.json | jq . | sponge MANIFEST.json
|
cat MANIFEST.json | jq . | sponge MANIFEST.json
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
},
|
},
|
||||||
"ransomware": {
|
"ransomware": {
|
||||||
"values": [
|
"values": [
|
||||||
"veris:action:malware:variety=\"Ransomware\"",
|
|
||||||
"ecsirt:malicious-code=\"ransomware\"",
|
"ecsirt:malicious-code=\"ransomware\"",
|
||||||
"enisa:nefarious-activity-abuse=\"ransomware\"",
|
"enisa:nefarious-activity-abuse=\"ransomware\"",
|
||||||
"malware_classification:malware-category=\"Ransomware\"",
|
"malware_classification:malware-category=\"Ransomware\"",
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/schema#",
|
||||||
|
"title": "Validator for the mapping in misp-taxonomies",
|
||||||
|
"id": "https://www.github.com/MISP/misp-taxonomies/schema_mapping.json",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"patternProperties": {
|
||||||
|
"^.*$": {
|
||||||
|
"properties": {
|
||||||
|
"values": {
|
||||||
|
"type": "array",
|
||||||
|
"uniqueItems": true,
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -27,3 +27,4 @@ do
|
||||||
echo ''
|
echo ''
|
||||||
done
|
done
|
||||||
|
|
||||||
|
jsonschema -i mapping/mapping.json schema_mapping.json
|
||||||
|
|
Loading…
Reference in New Issue