Skip to content

Commit e9e70c5

Browse files
committed
eve/schema: map mdns properties that have keywords
Also add descriptions for the EVE index.
1 parent 031a8d5 commit e9e70c5

1 file changed

Lines changed: 101 additions & 7 deletions

File tree

etc/schema.json

Lines changed: 101 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,7 +2831,45 @@
28312831
"additionals": {
28322832
"description": "mDNS additional records",
28332833
"type": "array",
2834-
"minItems": 1
2834+
"minItems": 1,
2835+
"items": {
2836+
"type": "object",
2837+
"additionalProperties": false,
2838+
"properties": {
2839+
"ptr": {
2840+
"type": "string",
2841+
"description": "Value of the requested PTR record",
2842+
"suricata": {
2843+
"keywords": [
2844+
"mdns.response.rrname"
2845+
]
2846+
}
2847+
},
2848+
"rrname": {
2849+
"type": "string",
2850+
"description": "Resource name of the record being returned",
2851+
"suricata": {
2852+
"keywords": [
2853+
"mdns.additionals.rrname",
2854+
"mdns.response.rrname"
2855+
]
2856+
}
2857+
},
2858+
"rrname_truncated": {
2859+
"description": "Name was truncated by Suricata due to length",
2860+
"type": "boolean",
2861+
"$comment": "keyword: app-layer-event:mdns.name_too_long (https://redmine.openinfosecfoundation.org/issues/7784)"
2862+
},
2863+
"txt": {
2864+
"type": "array",
2865+
"description": "Value of the requested TXT record",
2866+
"minItems": 1,
2867+
"items": {
2868+
"type": "string"
2869+
}
2870+
}
2871+
}
2872+
}
28352873
},
28362874
"answers": {
28372875
"description": "mDNS answer records",
@@ -2842,22 +2880,66 @@
28422880
"additionalProperties": false,
28432881
"properties": {
28442882
"ptr": {
2845-
"type": "string"
2883+
"type": "string",
2884+
"description": "Value of the requested PTR record",
2885+
"suricata": {
2886+
"$comment": "No specific ptr keywords exists",
2887+
"keywords": [
2888+
"mdns.response.rrname"
2889+
]
2890+
}
28462891
},
28472892
"rrname": {
2848-
"type": "string"
2893+
"type": "string",
2894+
"description": "Resource name of the record being returned",
2895+
"suricata": {
2896+
"keywords": [
2897+
"mdns.answers.rrname",
2898+
"mdns.response.rrname"
2899+
]
2900+
}
2901+
},
2902+
"rrname_truncated": {
2903+
"description": "Name was truncated by Suricata due to length",
2904+
"type": "boolean",
2905+
"$comment": "keyword: app-layer-event:mdns.name_too_long (https://redmine.openinfosecfoundation.org/issues/7784)"
28492906
},
28502907
"txt": {
28512908
"type": "array",
2852-
"minItems": 1
2909+
"description": "Value of the requested TXT record",
2910+
"minItems": 1,
2911+
"items": {
2912+
"type": "string"
2913+
}
28532914
}
28542915
}
28552916
}
28562917
},
28572918
"authorities": {
28582919
"description": "mDNS authority records",
28592920
"type": "array",
2860-
"minItems": 1
2921+
"minItems": 1,
2922+
"items": {
2923+
"type": "object",
2924+
"additionalProperties": false,
2925+
"properties": {
2926+
"rrname": {
2927+
"type": "string",
2928+
"description": "Resource name of the record being returned",
2929+
"suricata": {
2930+
"keywords": [
2931+
"mdns.authorities.rrname",
2932+
"mdns.response.rrname"
2933+
]
2934+
}
2935+
},
2936+
"rrname_truncated": {
2937+
"description": "Name was truncated by Suricata due to length",
2938+
"type": "boolean",
2939+
"$comment": "keyword: app-layer-event:mdns.name_too_long (https://redmine.openinfosecfoundation.org/issues/7784)"
2940+
}
2941+
}
2942+
}
28612943
},
28622944
"flags": {
28632945
"description": "mDNS message flags",
@@ -2912,10 +2994,22 @@
29122994
"type": "object",
29132995
"properties": {
29142996
"rrname": {
2915-
"type": "string"
2997+
"description": "Resource name being requested",
2998+
"type": "string",
2999+
"suricata": {
3000+
"keywords": [
3001+
"mdns.queries.rrname"
3002+
]
3003+
}
3004+
},
3005+
"rrname_truncated": {
3006+
"description": "Name was truncated by Suricata due to length",
3007+
"type": "boolean",
3008+
"$comment": "keyword: app-layer-event:mdns.name_too_long (https://redmine.openinfosecfoundation.org/issues/7784)"
29163009
},
29173010
"rrtype": {
2918-
"type": "string"
3011+
"type": "string",
3012+
"description": "Type of resource being requested"
29193013
}
29203014
}
29213015
}

0 commit comments

Comments
 (0)