Skip to content

Commit d73525d

Browse files
committed
Fix order
1 parent 2dbde56 commit d73525d

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

intelmq/etc/harmonization.conf

+16-16
Original file line numberDiff line numberDiff line change
@@ -209,30 +209,18 @@
209209
"description": "Event data converted into foreign format, intended to be exported by output plugin.",
210210
"type": "JSON"
211211
},
212-
"protocol.application": {
213-
"description": "e.g. vnc, ssh, sip, irc, http or smtp.",
214-
"length": 100,
215-
"regex": "^[ -~]+$",
216-
"type": "LowercaseString"
217-
},
218-
"protocol.transport": {
219-
"description": "e.g. tcp, udp, icmp.",
220-
"iregex": "^(ip|icmp|igmp|ggp|ipencap|st2|tcp|cbt|egp|igp|bbn-rcc|nvp(-ii)?|pup|argus|emcon|xnet|chaos|udp|mux|dcn|hmp|prm|xns-idp|trunk-1|trunk-2|leaf-1|leaf-2|rdp|irtp|iso-tp4|netblt|mfe-nsp|merit-inp|sep|3pc|idpr|xtp|ddp|idpr-cmtp|tp\\+\\+|il|ipv6|sdrp|ipv6-route|ipv6-frag|idrp|rsvp|gre|mhrp|bna|esp|ah|i-nlsp|swipe|narp|mobile|tlsp|skip|ipv6-icmp|ipv6-nonxt|ipv6-opts|cftp|sat-expak|kryptolan|rvd|ippc|sat-mon|visa|ipcv|cpnx|cphb|wsn|pvp|br-sat-mon|sun-nd|wb-mon|wb-expak|iso-ip|vmtp|secure-vmtp|vines|ttp|nsfnet-igp|dgp|tcf|eigrp|ospf|sprite-rpc|larp|mtp|ax.25|ipip|micp|scc-sp|etherip|encap|gmtp|ifmp|pnni|pim|aris|scps|qnx|a/n|ipcomp|snp|compaq-peer|ipx-in-ip|vrrp|pgm|l2tp|ddx|iatp|st|srp|uti|smp|sm|ptp|isis|fire|crtp|crdup|sscopmce|iplt|sps|pipe|sctp|fc|divert)$",
221-
"length": 11,
222-
"type": "LowercaseString"
223-
},
224212
"product.full_name": {
225213
"description": "A human readable product name. If a machine-readable format isn't available, this field should be used. It can directly use the version identification strings presented by the product. If not given, a good enough value can usually be constructed by concatenating product.product and product.version, or by consulting external sources such as the CPE Product Dictionary. Example: openssh_/8.9",
226214
"type": "String"
227215
},
228-
"product.vendor": {
229-
"description": "Vendor name, recommended being as vendor in the CPE format. Example: openbsd",
230-
"type": "LowercaseString"
231-
},
232216
"product.name": {
233217
"description": "Product name, recommended being as the product in the CPE format. Example: openssh",
234218
"type": "LowercaseString"
235219
},
220+
"product.vendor": {
221+
"description": "Vendor name, recommended being as vendor in the CPE format. Example: openbsd",
222+
"type": "LowercaseString"
223+
},
236224
"product.version": {
237225
"description": "Product version, recommended being as version in the CPE format. Example: 8.9",
238226
"type": "LowercaseString"
@@ -241,6 +229,18 @@
241229
"description": "List of vulnerability IDs, separated by semicolons. It's recommended to use a CVE ID where available, and other easily retrievable IDs in other cases, e.g. Github Advisory Database ID. Each vulnerability should only be listed once, and multiple values should be used if there are several different vulnerabilities. However, it's not necessary for a source to list all possible vulnerabilities for a given piece of software. Example: cve-2023-38408;cve-2023-28531;cve-2008-3844;cve-2007-2768",
242230
"type": "LowercaseString"
243231
},
232+
"protocol.application": {
233+
"description": "e.g. vnc, ssh, sip, irc, http or smtp.",
234+
"length": 100,
235+
"regex": "^[ -~]+$",
236+
"type": "LowercaseString"
237+
},
238+
"protocol.transport": {
239+
"description": "e.g. tcp, udp, icmp.",
240+
"iregex": "^(ip|icmp|igmp|ggp|ipencap|st2|tcp|cbt|egp|igp|bbn-rcc|nvp(-ii)?|pup|argus|emcon|xnet|chaos|udp|mux|dcn|hmp|prm|xns-idp|trunk-1|trunk-2|leaf-1|leaf-2|rdp|irtp|iso-tp4|netblt|mfe-nsp|merit-inp|sep|3pc|idpr|xtp|ddp|idpr-cmtp|tp\\+\\+|il|ipv6|sdrp|ipv6-route|ipv6-frag|idrp|rsvp|gre|mhrp|bna|esp|ah|i-nlsp|swipe|narp|mobile|tlsp|skip|ipv6-icmp|ipv6-nonxt|ipv6-opts|cftp|sat-expak|kryptolan|rvd|ippc|sat-mon|visa|ipcv|cpnx|cphb|wsn|pvp|br-sat-mon|sun-nd|wb-mon|wb-expak|iso-ip|vmtp|secure-vmtp|vines|ttp|nsfnet-igp|dgp|tcf|eigrp|ospf|sprite-rpc|larp|mtp|ax.25|ipip|micp|scc-sp|etherip|encap|gmtp|ifmp|pnni|pim|aris|scps|qnx|a/n|ipcomp|snp|compaq-peer|ipx-in-ip|vrrp|pgm|l2tp|ddx|iatp|st|srp|uti|smp|sm|ptp|isis|fire|crtp|crdup|sscopmce|iplt|sps|pipe|sctp|fc|divert)$",
241+
"length": 11,
242+
"type": "LowercaseString"
243+
},
244244
"raw": {
245245
"description": "The original line of the event from encoded in base64.",
246246
"type": "Base64"

intelmq/tests/bin/initdb.sql

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ CREATE TABLE events (
4747
"misp.attribute_uuid" varchar(36),
4848
"misp.event_uuid" varchar(36),
4949
"output" json,
50+
"product.full_name" text,
51+
"product.name" text,
52+
"product.vendor" text,
53+
"product.version" text,
54+
"product.vulnerabilities" text,
5055
"protocol.application" varchar(100),
5156
"protocol.transport" varchar(11),
5257
"raw" text,
@@ -93,4 +98,4 @@ CREATE INDEX "idx_events_source.asn" ON events USING btree ("source.asn");
9398
CREATE INDEX "idx_events_source.ip" ON events USING btree ("source.ip");
9499
CREATE INDEX "idx_events_source.fqdn" ON events USING btree ("source.fqdn");
95100
CREATE INDEX "idx_events_time.observation" ON events USING btree ("time.observation");
96-
CREATE INDEX "idx_events_time.source" ON events USING btree ("time.source");
101+
CREATE INDEX "idx_events_time.source" ON events USING btree ("time.source");

0 commit comments

Comments
 (0)