diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index cafe44d8793..45baf01c723 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -186,6 +186,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Release ActiveMQ module as GA. {issue}17047[17047] {pull}17049[17049] - Improve ECS categorization field mappings in iptables module. {issue}16166[16166] {pull}16637[16637] - Add Filebeat Okta module. {pull}16362[16362] +- Add custom string mapping to CEF module to support Check Point devices. {issue}16041[16041] {pull}NNNN[NNNN] +- Add custom string mapping to CEF module to support Check Point devices. {issue}16041[16041] {pull}16907[16907] *Heartbeat* diff --git a/filebeat/docs/fields.asciidoc b/filebeat/docs/fields.asciidoc index 38670881f3d..d83c81842d1 100644 --- a/filebeat/docs/fields.asciidoc +++ b/filebeat/docs/fields.asciidoc @@ -3656,6 +3656,15 @@ type: double -- +*`cef.extensions.deviceCustomIPv6Address1`*:: ++ +-- +One of four IPv6 address fields available to map fields that do not apply to any other in this dictionary. + +type: ip + +-- + *`cef.extensions.deviceCustomIPv6Address1Label`*:: + -- @@ -3665,7 +3674,7 @@ type: keyword -- -*`cef.extensions.deviceCustomIPv6Address4`*:: +*`cef.extensions.deviceCustomIPv6Address2`*:: + -- One of four IPv6 address fields available to map fields that do not apply to any other in this dictionary. @@ -3674,7 +3683,7 @@ type: ip -- -*`cef.extensions.deviceCustomIPv6Address4Label`*:: +*`cef.extensions.deviceCustomIPv6Address2Label`*:: + -- All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. @@ -3683,7 +3692,7 @@ type: keyword -- -*`cef.extensions.deviceCustomIPv6Address1`*:: +*`cef.extensions.deviceCustomIPv6Address3`*:: + -- One of four IPv6 address fields available to map fields that do not apply to any other in this dictionary. @@ -3692,7 +3701,16 @@ type: ip -- -*`cef.extensions.deviceCustomIPv6Address3`*:: +*`cef.extensions.deviceCustomIPv6Address3Label`*:: ++ +-- +All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. + +type: keyword + +-- + +*`cef.extensions.deviceCustomIPv6Address4`*:: + -- One of four IPv6 address fields available to map fields that do not apply to any other in this dictionary. @@ -3701,7 +3719,7 @@ type: ip -- -*`cef.extensions.deviceCustomIPv6Address3Label`*:: +*`cef.extensions.deviceCustomIPv6Address4Label`*:: + -- All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. @@ -3728,7 +3746,7 @@ type: keyword -- -*`cef.extensions.DeviceCustomNumber2`*:: +*`cef.extensions.deviceCustomNumber2`*:: + -- One of three number fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. @@ -3917,6 +3935,42 @@ type: keyword -- +*`cef.extensions.deviceFlexNumber1`*:: ++ +-- +One of two alternative number fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. + +type: long + +-- + +*`cef.extensions.deviceFlexNumber1Label`*:: ++ +-- +All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. + +type: keyword + +-- + +*`cef.extensions.deviceFlexNumber2`*:: ++ +-- +One of two alternative number fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. + +type: long + +-- + +*`cef.extensions.deviceFlexNumber2Label`*:: ++ +-- +All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. + +type: keyword + +-- + *`cef.extensions.deviceHostName`*:: + -- @@ -4700,6 +4754,545 @@ type: keyword -- +[float] +=== checkpoint + +Fields for Check Point custom string mappings. + + + +*`checkpoint.app_risk`*:: ++ +-- +Application risk. + +type: keyword + +-- + +*`checkpoint.app_severity`*:: ++ +-- +Application threat severity. + +type: keyword + +-- + +*`checkpoint.app_sig_id`*:: ++ +-- +The signature ID which the application was detected by. + +type: keyword + +-- + +*`checkpoint.auth_method`*:: ++ +-- +Password authentication protocol used. + +type: keyword + +-- + +*`checkpoint.category`*:: ++ +-- +Category. + +type: keyword + +-- + +*`checkpoint.confidence_level`*:: ++ +-- +Confidence level determined. + +type: keyword + +-- + +*`checkpoint.connectivity_state`*:: ++ +-- +Connectivity state. + +type: keyword + +-- + +*`checkpoint.cookie`*:: ++ +-- +IKE cookie. + +type: keyword + +-- + +*`checkpoint.dst_phone_number`*:: ++ +-- +Destination IP-Phone. + +type: keyword + +-- + +*`checkpoint.email_control`*:: ++ +-- +Engine name. + +type: keyword + +-- + +*`checkpoint.email_id`*:: ++ +-- +Internal email ID. + +type: keyword + +-- + +*`checkpoint.email_recipients_num`*:: ++ +-- +Number of recipients. + +type: long + +-- + +*`checkpoint.email_session_id`*:: ++ +-- +Internal email session ID. + +type: keyword + +-- + +*`checkpoint.email_spool_id`*:: ++ +-- +Internal email spool ID. + +type: keyword + +-- + +*`checkpoint.email_subject`*:: ++ +-- +Email subject. + +type: keyword + +-- + +*`checkpoint.event_count`*:: ++ +-- +Number of events associated with the log. + +type: long + +-- + +*`checkpoint.file_hash`*:: ++ +-- +File hash (SHA1 or MD5). + +type: keyword + +-- + +*`checkpoint.frequency`*:: ++ +-- +Scan frequency. + +type: keyword + +-- + +*`checkpoint.icmp_type`*:: ++ +-- +ICMP type. + +type: long + +-- + +*`checkpoint.icmp_code`*:: ++ +-- +ICMP code. + +type: long + +-- + +*`checkpoint.identity_type`*:: ++ +-- +Identity type. + +type: keyword + +-- + +*`checkpoint.incident_extension`*:: ++ +-- +Format of original data. + +type: keyword + +-- + +*`checkpoint.integrity_av_invoke_type`*:: ++ +-- +Scan invoke type. + +type: keyword + +-- + +*`checkpoint.peer_gateway`*:: ++ +-- +Main IP of the peer Security Gateway. + +type: ip + +-- + +*`checkpoint.performance_impact`*:: ++ +-- +Protection performance impact. + +type: keyword + +-- + +*`checkpoint.protection_id`*:: ++ +-- +Protection malware ID. + +type: keyword + +-- + +*`checkpoint.protection_name`*:: ++ +-- +Specific signature name of the attack. + +type: keyword + +-- + +*`checkpoint.protection_type`*:: ++ +-- +Type of protection used to detect the attack. + +type: keyword + +-- + +*`checkpoint.scan_result`*:: ++ +-- +Scan result. + +type: keyword + +-- + +*`checkpoint.sensor_mode`*:: ++ +-- +Sensor mode. + +type: keyword + +-- + +*`checkpoint.severity`*:: ++ +-- +Threat severity. + +type: keyword + +-- + +*`checkpoint.malware_status`*:: ++ +-- +Malware status. + +type: keyword + +-- + +*`checkpoint.subscription_expiration`*:: ++ +-- +The expiration date of the subscription. + +type: date + +-- + +*`checkpoint.tcp_flags`*:: ++ +-- +TCP packet flags. + +type: keyword + +-- + +*`checkpoint.termination_reason`*:: ++ +-- +Termination reason. + +type: keyword + +-- + +*`checkpoint.update_status`*:: ++ +-- +Update status. + +type: keyword + +-- + +*`checkpoint.user_status`*:: ++ +-- +User response. + +type: keyword + +-- + +*`checkpoint.uuid`*:: ++ +-- +External ID. + +type: keyword + +-- + +*`checkpoint.virus_name`*:: ++ +-- +Virus name. + +type: keyword + +-- + +*`checkpoint.malware_name`*:: ++ +-- +Malware name. + +type: keyword + +-- + +*`checkpoint.malware_family`*:: ++ +-- +Malware family. + +type: keyword + +-- + +*`checkpoint.voip_log_type`*:: ++ +-- +VoIP log types. + +type: keyword + +-- + +[float] +=== cef.extensions + +Extra vendor-specific extensions. + + + +*`cef.extensions.cp_app_risk`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.cp_severity`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.ifname`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.inzone`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.layer_uuid`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.layer_name`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.logid`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.loguid`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.match_id`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.nat_addtnl_rulenum`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.nat_rulenum`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.origin`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.originsicname`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.outzone`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.parent_rule`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.product`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.rule_action`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.rule_uid`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.sequencenum`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.service_id`*:: ++ +-- +type: keyword + +-- + +*`cef.extensions.version`*:: ++ +-- +type: keyword + +-- + [[exported-fields-cisco]] == Cisco fields diff --git a/filebeat/docs/modules/cef.asciidoc b/filebeat/docs/modules/cef.asciidoc index d52feb78d91..bb5b77dee42 100644 --- a/filebeat/docs/modules/cef.asciidoc +++ b/filebeat/docs/modules/cef.asciidoc @@ -52,6 +52,90 @@ configuring the SMC. Testing was done with CEF logs from SMC version 6.6.1 and custom string mappings were taken from 'CEF Connector Configuration Guide' dated December 5, 2011. +[float] +==== Check Point devices + +This module will parse CEF data form Check Point devices as documented in +https://community.checkpoint.com/t5/Logging-and-Reporting/Log-Exporter-CEF-Field-Mappings/td-p/41060[Log Exporter CEF Field Mappings.] + +Check Point CEF extensions are mapped as follows: +[options="header"] +|======================================================================================================================= +| CEF Extension | CEF Label value | ECS Fields | Non-ECS Field | +| cp_app_risk | - | event.risk_score | checkpoint.app_risk | +| cp_severity | - | event.severity | checkpoint.severity | +| baseEventCount | - | - | checkpoint.event_count | +| deviceExternalId | - | observer.type | - | +| deviceFacility | - | observer.type | - | +| deviceInboundInterface | - | observer.ingress.interface.name | - | +| deviceOutboundInterface | - | observer.egress.interface.name | - | +| externalId | - | - | checkpoint.uuid | +| fileHash | - | file.hash.{md5,sha1} | checkpoint.file_hash | +| reason | - | - | checkpoint.termination_reason | +| checkrequestCookies | - | - | checkpoint.cookie | +| sourceNtDomain | - | dns.question.name | - | +| Signature | - | vulnerability.id | - | +| Recipient | - | destination.user.email | - | +| Sender | - | source.user.email | - | +| deviceCustomFloatingPoint1 | update version | observer.version | - | +| deviceCustomIPv6Address2 | source ipv6 address | source.ip | - | +| deviceCustomIPv6Address3 | destination ipv6 address | destination.ip | - | +.3+| deviceCustomNumber1 | elapsed time in seconds | host.uptime | - | + | email recipients number | - | checkpoint.email_recipients_num | + | payload | network.bytes | - | +.2+| deviceCustomNumber2 | icmp type | - | checkpoint.icmp_type | + | duration in seconds | event.duration | - | +| deviceCustomNumber3 | icmp code | - | checkpoint.icmp_code | +.6+| deviceCustomString1 | connectivity state | - | checkpoint.connectivity_state | + | application rule name | rule.name | - | + | threat prevention rule name | rule.name | - | + | voip log type | - | checkpoint.voip_log_type | + | dlp rule name | rule.name | - | + | email id | - | checkpoint.email_id | +.8+| deviceCustomString2 | category | - | checkpoint.category | + | email subject | - | checkpoint.email_subject | + | sensor mode | - | checkpoint.sensor_mode | + | protection id | - | checkpoint.protection_id | + | scan invoke type | - | checkpoint.integrity_av_invoke_type | + | update status | - | checkpoint.update_status | + | peer gateway | - | checkpoint.peer_gateway | + | categories | rule.category | - | +.4+| deviceCustomString6 | application name | process.name | - | + | virus name | - | checkpoint.virus_name | + | malware name | - | checkpoint.malware_name | + | malware family | - | checkpoint.malware_family | +.5+| deviceCustomString3 | user group | group.name | - | + | incident extension | - | checkpoint.incident_extension | + | protection type | - | checkpoint.protection_type | + | email spool id | - | checkpoint.email_spool_id | + | identity type | - | checkpoint.identity_type | +.9+| deviceCustomString4 | malware status | - | checkpoint.spyware_status | + | threat prevention rule id | rule.id | - | + | scan result | - | checkpoint.scan_result | + | tcp flags | - | checkpoint.tcp_flags | + | destination os | os.name | - | + | protection name | - | checkpoint.protection_name | + | email control | - | checkpoint.email_control | + | frequency | - | checkpoint.frequency | + | user response | - | checkpoint.user_status | +.4+| deviceCustomString5 | matched category | rule.category | - | + | vlan id | network.vlan.id | - | + | authentication method | - | checkpoint.auth_method | + | email session id | - | checkpoint.email_session_id | +| deviceCustomDate2 | subscription expiration | - | checkpoint.subscription_expiration | +| deviceFlexNumber1 | confidence | - | checkpoint.confidence_level | +.2+| deviceFlexNumber2 | performance impact | - | checkpoint.performance_impact | + | destination phone number | - | checkpoint.dst_phone_number | +| flexString1 | application signature id | - | checkpoint.app_sig_id | +.2+| flexString2 | malware action | event.action | - | + | attack information | event.action | - | +| rule_uid | - | rule.uuid | - | +| ifname | - | observer.ingress.interface.name | - | +| inzone | - | observer.ingress.zone | - | +| outzone | - | observer.egress.zone | - | +| product | - | observer.product | - | +|======================================================================================================================= + :has-dashboards!: diff --git a/x-pack/filebeat/module/cef/_meta/docs.asciidoc b/x-pack/filebeat/module/cef/_meta/docs.asciidoc index e962e86b735..d3f97e011dd 100644 --- a/x-pack/filebeat/module/cef/_meta/docs.asciidoc +++ b/x-pack/filebeat/module/cef/_meta/docs.asciidoc @@ -47,6 +47,90 @@ configuring the SMC. Testing was done with CEF logs from SMC version 6.6.1 and custom string mappings were taken from 'CEF Connector Configuration Guide' dated December 5, 2011. +[float] +==== Check Point devices + +This module will parse CEF data form Check Point devices as documented in +https://community.checkpoint.com/t5/Logging-and-Reporting/Log-Exporter-CEF-Field-Mappings/td-p/41060[Log Exporter CEF Field Mappings.] + +Check Point CEF extensions are mapped as follows: +[options="header"] +|======================================================================================================================= +| CEF Extension | CEF Label value | ECS Fields | Non-ECS Field | +| cp_app_risk | - | event.risk_score | checkpoint.app_risk | +| cp_severity | - | event.severity | checkpoint.severity | +| baseEventCount | - | - | checkpoint.event_count | +| deviceExternalId | - | observer.type | - | +| deviceFacility | - | observer.type | - | +| deviceInboundInterface | - | observer.ingress.interface.name | - | +| deviceOutboundInterface | - | observer.egress.interface.name | - | +| externalId | - | - | checkpoint.uuid | +| fileHash | - | file.hash.{md5,sha1} | checkpoint.file_hash | +| reason | - | - | checkpoint.termination_reason | +| checkrequestCookies | - | - | checkpoint.cookie | +| sourceNtDomain | - | dns.question.name | - | +| Signature | - | vulnerability.id | - | +| Recipient | - | destination.user.email | - | +| Sender | - | source.user.email | - | +| deviceCustomFloatingPoint1 | update version | observer.version | - | +| deviceCustomIPv6Address2 | source ipv6 address | source.ip | - | +| deviceCustomIPv6Address3 | destination ipv6 address | destination.ip | - | +.3+| deviceCustomNumber1 | elapsed time in seconds | host.uptime | - | + | email recipients number | - | checkpoint.email_recipients_num | + | payload | network.bytes | - | +.2+| deviceCustomNumber2 | icmp type | - | checkpoint.icmp_type | + | duration in seconds | event.duration | - | +| deviceCustomNumber3 | icmp code | - | checkpoint.icmp_code | +.6+| deviceCustomString1 | connectivity state | - | checkpoint.connectivity_state | + | application rule name | rule.name | - | + | threat prevention rule name | rule.name | - | + | voip log type | - | checkpoint.voip_log_type | + | dlp rule name | rule.name | - | + | email id | - | checkpoint.email_id | +.8+| deviceCustomString2 | category | - | checkpoint.category | + | email subject | - | checkpoint.email_subject | + | sensor mode | - | checkpoint.sensor_mode | + | protection id | - | checkpoint.protection_id | + | scan invoke type | - | checkpoint.integrity_av_invoke_type | + | update status | - | checkpoint.update_status | + | peer gateway | - | checkpoint.peer_gateway | + | categories | rule.category | - | +.4+| deviceCustomString6 | application name | process.name | - | + | virus name | - | checkpoint.virus_name | + | malware name | - | checkpoint.malware_name | + | malware family | - | checkpoint.malware_family | +.5+| deviceCustomString3 | user group | group.name | - | + | incident extension | - | checkpoint.incident_extension | + | protection type | - | checkpoint.protection_type | + | email spool id | - | checkpoint.email_spool_id | + | identity type | - | checkpoint.identity_type | +.9+| deviceCustomString4 | malware status | - | checkpoint.spyware_status | + | threat prevention rule id | rule.id | - | + | scan result | - | checkpoint.scan_result | + | tcp flags | - | checkpoint.tcp_flags | + | destination os | os.name | - | + | protection name | - | checkpoint.protection_name | + | email control | - | checkpoint.email_control | + | frequency | - | checkpoint.frequency | + | user response | - | checkpoint.user_status | +.4+| deviceCustomString5 | matched category | rule.category | - | + | vlan id | network.vlan.id | - | + | authentication method | - | checkpoint.auth_method | + | email session id | - | checkpoint.email_session_id | +| deviceCustomDate2 | subscription expiration | - | checkpoint.subscription_expiration | +| deviceFlexNumber1 | confidence | - | checkpoint.confidence_level | +.2+| deviceFlexNumber2 | performance impact | - | checkpoint.performance_impact | + | destination phone number | - | checkpoint.dst_phone_number | +| flexString1 | application signature id | - | checkpoint.app_sig_id | +.2+| flexString2 | malware action | event.action | - | + | attack information | event.action | - | +| rule_uid | - | rule.uuid | - | +| ifname | - | observer.ingress.interface.name | - | +| inzone | - | observer.ingress.zone | - | +| outzone | - | observer.egress.zone | - | +| product | - | observer.product | - | +|======================================================================================================================= + :has-dashboards!: diff --git a/x-pack/filebeat/module/cef/fields.go b/x-pack/filebeat/module/cef/fields.go index ce9bfda5de2..217d805818d 100644 --- a/x-pack/filebeat/module/cef/fields.go +++ b/x-pack/filebeat/module/cef/fields.go @@ -19,5 +19,5 @@ func init() { // AssetCef returns asset data. // This is the base64 encoded gzipped contents of module/cef. func AssetCef() string { - return "eJx8kMFq8zAQhO9+inmB5AF0+C/5a+ihp5RejZFWzhJZK7Syi9++yImDk0L3JHZGsx9zwJUWA0v+MIqbAjVA4RLI4PTWNoAjtZlTYYkG/xoA+FiN8JKRyRLPHIfqRpBBITNlnBcNMhzxeSHcctE7p5gpOslriiay7NnCMwWn4FgtXA+hCMqFNqU+HVlx1FnySFksqd5jUpaZHemxwd1v1n2dA2I/kqmklpJwLA8JKEsigyHLlHZbR76fQunWKAPfB6Un+Vcb27Q32NpK+7iH06RFRpxLriWNfUocB919fGXec8+cJ+3YPYkb+ZWWb8mv2h+Adb5qIt7/Nz8BAAD//0k3k/4=" + return "eJy8mctu7DYPx/d5Ci6/b5EAXXQziwIHubSDIsUASc9WUGTaw44sqhLtZPr0heS5nWQSOXbQWQW29fuTFCWRyiVscLsAg/Vly1Vn8QJASCwu4Pr27gKgwmgCeSF2C/jlAgDgPn8INQcIaJB6ck36Giw3EbjHAA/baLm5gsc1wsAFXVURenQVh0yJHg3VZKAmtFUEcukTSkIgDLLG/Zv0Z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hcxzJWLGNJC9exiafV03fRN+vZlV0AXt+bhTmzOrjzcgY3ow/YLdI7Yfnl+Qq7WLdnJe9BecKCUgsnkleVm1tHynZerVPXnEedy8nBRgPXVoaA7TcmvvlW8fZGgd3fNl4d75qP0RxeJZ+NkvPrUpeJ7kE8dMOcr03p0Nr5T2f7DbsZ4q7cY1Oil/gFjnh+Wm1kmcDPLhVaLWY8tSs8SnBalq0qcVaGz+N6Vy2jWbMjQH80dH8nMm1juZF6Geh1S5xiG/2VNhQSuupFNz1lAklfavFtdjYfMytM4XFbMy4yIoafUCM4wpMdQbOP/DQAA//8I9Guw" } diff --git a/x-pack/filebeat/module/cef/log/_meta/fields.yml b/x-pack/filebeat/module/cef/log/_meta/fields.yml index 0d24bf8458f..40f6cdb4bfb 100644 --- a/x-pack/filebeat/module/cef/log/_meta/fields.yml +++ b/x-pack/filebeat/module/cef/log/_meta/fields.yml @@ -8,3 +8,248 @@ type: keyword description: > Virus ID + + +- name: checkpoint + type: group + default_field: false + description: > + Fields for Check Point custom string mappings. + fields: + - name: app_risk + type: keyword + description: Application risk. + + - name: app_severity + type: keyword + description: Application threat severity. + + - name: app_sig_id + type: keyword + description: The signature ID which the application was detected by. + + - name: auth_method + type: keyword + description: Password authentication protocol used. + + - name: category + type: keyword + description: Category. + + - name: confidence_level + type: keyword + description: Confidence level determined. + + - name: connectivity_state + type: keyword + description: Connectivity state. + + - name: cookie + type: keyword + description: IKE cookie. + + - name: dst_phone_number + type: keyword + description: Destination IP-Phone. + + - name: email_control + type: keyword + description: Engine name. + + - name: email_id + type: keyword + description: Internal email ID. + + - name: email_recipients_num + type: long + description: Number of recipients. + + - name: email_session_id + type: keyword + description: Internal email session ID. + + - name: email_spool_id + type: keyword + description: Internal email spool ID. + + - name: email_subject + type: keyword + description: Email subject. + + - name: event_count + type: long + description: Number of events associated with the log. + + - name: file_hash + type: keyword + description: File hash (SHA1 or MD5). + + - name: frequency + type: keyword + description: Scan frequency. + + - name: icmp_type + type: long + description: ICMP type. + + - name: icmp_code + type: long + description: ICMP code. + + - name: identity_type + type: keyword + description: Identity type. + + - name: incident_extension + type: keyword + description: Format of original data. + + - name: integrity_av_invoke_type + type: keyword + description: Scan invoke type. + + - name: peer_gateway + type: ip + description: Main IP of the peer Security Gateway. + + - name: performance_impact + type: keyword + description: Protection performance impact. + + - name: protection_id + type: keyword + description: Protection malware ID. + + - name: protection_name + type: keyword + description: Specific signature name of the attack. + + - name: protection_type + type: keyword + description: Type of protection used to detect the attack. + + - name: scan_result + type: keyword + description: Scan result. + + - name: sensor_mode + type: keyword + description: Sensor mode. + + - name: severity + type: keyword + description: Threat severity. + + - name: malware_status + type: keyword + description: Malware status. + + - name: subscription_expiration + type: date + description: The expiration date of the subscription. + + - name: tcp_flags + type: keyword + description: TCP packet flags. + + - name: termination_reason + type: keyword + description: Termination reason. + + - name: update_status + type: keyword + description: Update status. + + - name: user_status + type: keyword + description: User response. + + - name: uuid + type: keyword + description: External ID. + + - name: virus_name + type: keyword + description: Virus name. + + - name: malware_name + type: keyword + description: Malware name. + + - name: malware_family + type: keyword + description: Malware family. + + - name: voip_log_type + type: keyword + description: VoIP log types. + +- name: cef.extensions + type: group + default_field: false + description: > + Extra vendor-specific extensions. + fields: + + - name: cp_app_risk + type: keyword + + - name: cp_severity + type: keyword + + - name: ifname + type: keyword + + - name: inzone + type: keyword + + - name: layer_uuid + type: keyword + + - name: layer_name + type: keyword + + - name: logid + type: keyword + + - name: loguid + type: keyword + + - name: match_id + type: keyword + + - name: nat_addtnl_rulenum + type: keyword + + - name: nat_rulenum + type: keyword + + - name: origin + type: keyword + + - name: originsicname + type: keyword + + - name: outzone + type: keyword + + - name: parent_rule + type: keyword + + - name: product + type: keyword + + - name: rule_action + type: keyword + + - name: rule_uid + type: keyword + + - name: sequencenum + type: keyword + + - name: service_id + type: keyword + + - name: version + type: keyword diff --git a/x-pack/filebeat/module/cef/log/ingest/cp-pipeline.yml b/x-pack/filebeat/module/cef/log/ingest/cp-pipeline.yml new file mode 100644 index 00000000000..f3f38355ed9 --- /dev/null +++ b/x-pack/filebeat/module/cef/log/ingest/cp-pipeline.yml @@ -0,0 +1,331 @@ +--- +description: Pipeline for Check Point CEF + +processors: + # This script is mapping CEF extensions to ECS when possible. Otherwise + # it maps them to fields under the `checkpoint` group using Check Point log + # field names. + # + # [1] Description of Check Point CEF extensions: + # https://community.checkpoint.com/t5/Logging-and-Reporting/Log-Exporter-CEF-Field-Mappings/td-p/41060 + # [2] Description of Check Point log field names (sk144192): + # https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk144192 + # + # Note that in some cases the CEF extension name doesn't accurately describe + # its contents. For example sntdom/sourceNtDomain, which is used to store + # Check Point's domain_name, documented as "Domain name sent to DNS request". + # + # This script processes the `params.extensions` list below. This list consists + # of two different kinds of mappings, the simpler has a source ext `name` + # and a `to` field. It copies the given extension field to the target `to`. + # + # When the `labels` dict is defined, the target field depends on the value of + # the accompanying label field. For example, the field deviceCustomIPv6Address2 + # is mapped to `source.ip` only when the extension deviceCustomIPv6Address2Label + # exists and its value is "Source IPv6 Address". + # + # Also it can convert the destination value by simple mapping when the + # convert key exists. Values without an entry in the convert dict are not + # copied and the target field remains unset. + # + # The output of this processor is a single field, `_tmp_copy`, that contains + # a list of actions `{"to": "target_field", "value":"field value"}` that is + # later executed using a foreach processor. This is done to avoid complex + # de-dotting and other gotchas of setting arbitrary fields in Painless. + - script: + lang: painless + params: + extensions: + - name: cp_app_risk + to: checkpoint.app_risk + + - name: cp_app_risk + to: event.risk_score + # This mapping is a mix of [1] and [2] above. + convert: + unknown: 0 + informational: 0 + very-low: 1 + low: 2 + medium: 3 + high: 4 + very-high: 5 + critical: 5 + + - name: cp_severity + to: checkpoint.severity + + - name: cp_severity + to: event.severity + convert: + # This mapping is a mix of [1] and [2] above. + unknown: 0 + informational: 0 + very-low: 1 + low: 1 + medium: 2 + high: 3 + very-high: 4 + critical: 4 + + # Number of events associated with the log + - name: baseEventCount + to: checkpoint.event_count + + # Log type + - name: deviceExternalId + to: observer.type + + # Product Family + - name: deviceFacility + to: observer.type + convert: + '0': Network + '1': Endpoint + '2': Access + '3': Threat + '4': Mobile + + # Gateway interface, where the connection is received from in case of an outbound connection + - name: deviceInboundInterface + to: observer.ingress.interface.name + + # Gateway interface, where the connection is sent from, in case of an inbound connection + - name: deviceOutboundInterface + to: observer.egress.interface.name + + - name: externalId + to: checkpoint.uuid + + - name: fileHash + to: checkpoint.file_hash + + - name: reason + to: checkpoint.termination_reason + + # Possibly an IKE cookie + - name: checkrequestCookies + to: checkpoint.cookie + + # Domain name sent to DNS request + - name: sourceNtDomain + to: dns.question.name + + # CVE registry entry + - name: Signature + to: vulnerability.id + + - name: Recipient + to: destination.user.email + + - name: Sender + to: source.user.email + + - name: deviceCustomFloatingPoint1 + labels: + update version: observer.version + + - name: deviceCustomIPv6Address2 + labels: + source ipv6 address: source.ip + + - name: deviceCustomIPv6Address3 + labels: + destination ipv6 address: destination.ip + + - name: deviceCustomNumber1 + labels: + payload: network.bytes + elapsed time in seconds: host.uptime + email recipients number: checkpoint.email_recipients_num + + - name: deviceCustomNumber2 + labels: + duration in seconds: event.duration + icmp type: checkpoint.icmp_type + + - name: deviceCustomNumber3 + labels: + icmp code: checkpoint.icmp_code + + - name: deviceCustomString1 + labels: + application rule name: rule.name + dlp rule name: rule.name + threat prevention rule name: rule.name + connectivity state: checkpoint.connectivity_state + email id: checkpoint.email_id + voip log type: checkpoint.voip_log_type + + - name: deviceCustomString2 + labels: + # Protection malware id + protection id: checkpoint.protection_id + update status: checkpoint.update_status + email subject: checkpoint.email_subject + sensor mode: checkpoint.sensor_mode + scan invoke type: checkpoint.integrity_av_invoke_type + category: checkpoint.category + # Matched categories + categories: rule.category + peer gateway: checkpoint.peer_gateway + + - name: deviceCustomString6 + labels: + application name: process.name + virus name: checkpoint.virus_name + malware name: checkpoint.malware_name + malware family: checkpoint.malware_family + + - name: deviceCustomString3 + labels: + user group: group.name + # Format of original data. + incident extension: checkpoint.incident_extension + identity type: checkpoint.identity_type + email spool id: checkpoint.email_spool_id + # Type of protection used to detect the attack + protection type: checkpoint.protection_type + + - name: deviceCustomString4 + labels: + malware status: checkpoint.spyware_status + destination os: os.name + scan result: checkpoint.scan_result + frequency: checkpoint.frequency + protection name: checkpoint.protection_name + user response: checkpoint.user_status + email control: checkpoint.email_control + tcp flags: checkpoint.tcp_flags + threat prevention rule id: rule.id + + - name: deviceCustomString5 + labels: + matched category: rule.category + authentication method: checkpoint.auth_method + email session id: checkpoint.email_session_id + vlan id: network.vlan.id + + - name: deviceCustomDate2 + labels: + subscription expiration: checkpoint.subscription_expiration + + - name: deviceFlexNumber1 + labels: + confidence: checkpoint.confidence_level + + - name: deviceFlexNumber2 + labels: + destination phone number: checkpoint.dst_phone_number + performance impact: checkpoint.performance_impact + + - name: flexString1 + labels: + application signature id: checkpoint.app_sig_id + + - name: flexString2 + labels: + malware action: event.action + attack information: event.action + + - name: rule_uid + to: rule.uuid + + - name: ifname + to: observer.ingress.interface.name + + - name: inzone + to: observer.ingress.zone + + - name: outzone + to: observer.egress.zone + + - name: product + to: observer.product + + source: | + def actions = new ArrayList(); + def exts = ctx.cef?.extensions; + if (exts == null) return; + for (entry in params.extensions) { + def value = exts[entry.name]; + if (value == null || + (entry.convert != null && + (value=entry.convert[value.toLowerCase()]) == null)) + continue; + if (entry.to != null) { + actions.add([ + "value": value, + "to": entry.to + ]); + continue; + } + def label = exts[entry.name + "Label"]; + if (label == null) continue; + def dest = entry.labels[label.toLowerCase()]; + if (dest == null) continue; + actions.add([ + "value": value, + "to": dest + ]); + } + ctx["_tmp_copy"] = actions; + + - foreach: + field: _tmp_copy + processor: + set: + field: "{{_ingest._value.to}}" + value: "{{_ingest._value.value}}" + + - remove: + field: _tmp_copy + + # event.duration is a string and contains seconds. Convert to long nanos. + - script: + params: + second_to_nanos: 1000000000 + lang: painless + source: | + def duration = ctx.event?.duration; + if (duration == null) return; + ctx.event.duration = Long.parseLong(duration) * params.second_to_nanos; + on_failure: + - remove: + field: event.duration + ignore_missing: true + + # checkpoint.file_hash can be either MD5 or SHA1. + - set: + field: file.hash.md5 + value: '{{checkpoint.file_hash}}' + if: 'ctx.checkpoint?.file_hash != null && ctx.checkpoint.file_hash.length()==32' + - set: + field: file.hash.sha1 + value: '{{checkpoint.file_hash}}' + if: 'ctx.checkpoint?.file_hash != null && ctx.checkpoint.file_hash.length()==40' + + # Event kind is 'event' by default. 'alert' when a risk score and rule info + # is present. + - set: + field: event.kind + value: event + - set: + field: event.kind + value: alert + if: 'ctx.cef?.extensions?.cp_app_risk != null && ctx.rule != null' + + # Set event.category to network/malware/intrusion_detection depending on which + # fields have been populated. + - set: + field: event.category + value: network + if: 'ctx.source?.ip != null && ctx.destination?.ip != null' + - set: + field: event.category + value: malware + if: 'ctx.checkpoint?.protection_id != null || ctx.checkpoint?.malware_name != null || ctx.checkpoint?.malware_family != null || ctx.checkpoint?.spyware_status != null' + - set: + field: event.category + value: intrusion_detection + if: 'ctx.event?.category != "malware" && (ctx.checkpoint?.protection_type != null || ctx.cef.extensions?.flexString2Label == "Attack Information")' diff --git a/x-pack/filebeat/module/cef/log/ingest/fp-pipeline.yml b/x-pack/filebeat/module/cef/log/ingest/fp-pipeline.yml index 3fe032c00fb..1459d521cce 100644 --- a/x-pack/filebeat/module/cef/log/ingest/fp-pipeline.yml +++ b/x-pack/filebeat/module/cef/log/ingest/fp-pipeline.yml @@ -24,4 +24,4 @@ processors: - set: field: cef.forcepoint.virus_id value: "{{cef.extensions.deviceCustomString4}}" - if: "ctx.cef?.extensions?.deviceCustomString4 != null" + if: "ctx.cef?.extensions?.deviceCustomString4 != null" diff --git a/x-pack/filebeat/module/cef/log/ingest/pipeline.yml b/x-pack/filebeat/module/cef/log/ingest/pipeline.yml index 2d14926e7f8..75a86ea2758 100644 --- a/x-pack/filebeat/module/cef/log/ingest/pipeline.yml +++ b/x-pack/filebeat/module/cef/log/ingest/pipeline.yml @@ -80,6 +80,9 @@ processors: - pipeline: name: '{< IngestPipeline "fp-pipeline" >}' if: "ctx.cef?.device?.vendor == 'FORCEPOINT'" + - pipeline: + name: '{< IngestPipeline "cp-pipeline" >}' + if: "ctx.cef?.device?.vendor == 'Check Point'" on_failure: - set: field: error.message diff --git a/x-pack/filebeat/module/cef/log/manifest.yml b/x-pack/filebeat/module/cef/log/manifest.yml index 670a3188a4e..60115d99b40 100644 --- a/x-pack/filebeat/module/cef/log/manifest.yml +++ b/x-pack/filebeat/module/cef/log/manifest.yml @@ -16,6 +16,7 @@ var: ingest_pipeline: - ingest/pipeline.yml - ingest/fp-pipeline.yml + - ingest/cp-pipeline.yml input: config/input.yml diff --git a/x-pack/filebeat/module/cef/log/test/checkpoint.log b/x-pack/filebeat/module/cef/log/test/checkpoint.log new file mode 100644 index 00000000000..8951c3edade --- /dev/null +++ b/x-pack/filebeat/module/cef/log/test/checkpoint.log @@ -0,0 +1,3 @@ +CEF:0|Check Point|VPN-1 & FireWall-1|Check Point|Log|https|Unknown|act=Accept destinationTranslatedAddress=0.0.0.0 destinationTranslatedPort=0 deviceDirection=0 rt=1543270652000 sourceTranslatedAddress=192.168.103.254 sourceTranslatedPort=35398 spt=49363 dpt=443 cs2Label=Rule Name layer_name=Network layer_uuid=b406b732-2437-4848-9741-6eae1f5bf112 match_id=4 parent_rule=0 rule_action=Accept rule_uid=9e5e6e74-aa9a-4693-b9fe-53712dd27bea ifname=eth0 logid=0 loguid={0x5bfc70fc,0x1,0xfe65a8c0,0xc0000001} origin=192.168.101.254 originsicname=CN\=R80,O\=R80_M..6u6bdo sequencenum=1 version=5 dst=52.173.84.157 inzone=Internal nat_addtnl_rulenum=1 nat_rulenum=4 outzone=External product=VPN-1 & FireWall-1 proto=6 service_id=https src=192.168.101.100 cs5Label=Matched Category cs5=Business / Economy deviceCustomDate2=1508150533713 deviceCustomDate2Label=This field is made up +CEF:0|Check Point|VPN-1 & FireWall-1|Check Point|Log|https|Unknown|act=Bypass cn1Label=Email Recipients Number cs1Label=Email ID cs4Label=Email Control cs4=SMTP Policy Restrictions cs5Label=Email Session ID deviceDirection=0 msg=Encrypted session rt=1545211330000 spt=4001 dpt=25 fileHash=55f4a511e6f630a6b1319505414f114e7bcaf13d deviceCustomDate2=Apr 11 2020 10:42:13 deviceCustomDate2Label=Subscription expiration +CEF:0|Check Point|VPN-1 & FireWall-1|Check Point|Log|https|Unknown|act=Drop cp_app_risk=High cp_severity=Very-High baseEventCount=12 deviceFacility=4 c6a2=fd00::555 c6a2Label=Source IPv6 Address c6a3=::1 c6a3Label=Destination IPv6 Address fileHash=580a783c1cb2b20613323f715d231a69 cn2=5 cn2Label=Duration in Seconds diff --git a/x-pack/filebeat/module/cef/log/test/checkpoint.log-expected.json b/x-pack/filebeat/module/cef/log/test/checkpoint.log-expected.json new file mode 100644 index 00000000000..0cc100922d0 --- /dev/null +++ b/x-pack/filebeat/module/cef/log/test/checkpoint.log-expected.json @@ -0,0 +1,199 @@ +[ + { + "cef.device.event_class_id": "Log", + "cef.device.product": "VPN-1 & FireWall-1", + "cef.device.vendor": "Check Point", + "cef.device.version": "Check Point", + "cef.extensions.destinationAddress": "52.173.84.157", + "cef.extensions.destinationPort": 443, + "cef.extensions.destinationTranslatedAddress": "0.0.0.0", + "cef.extensions.destinationTranslatedPort": 0, + "cef.extensions.deviceAction": "Accept", + "cef.extensions.deviceCustomDate2": "2017-10-16T10:42:13.713Z", + "cef.extensions.deviceCustomDate2Label": "This field is made up", + "cef.extensions.deviceCustomString2Label": "Rule Name", + "cef.extensions.deviceCustomString5": "Business / Economy", + "cef.extensions.deviceCustomString5Label": "Matched Category", + "cef.extensions.deviceDirection": 0, + "cef.extensions.deviceReceiptTime": "2018-11-26T22:17:32.000Z", + "cef.extensions.ifname": "eth0", + "cef.extensions.inzone": "Internal", + "cef.extensions.layer_name": "Network", + "cef.extensions.layer_uuid": "b406b732-2437-4848-9741-6eae1f5bf112", + "cef.extensions.logid": "0", + "cef.extensions.loguid": "{0x5bfc70fc,0x1,0xfe65a8c0,0xc0000001}", + "cef.extensions.match_id": "4", + "cef.extensions.nat_addtnl_rulenum": "1", + "cef.extensions.nat_rulenum": "4", + "cef.extensions.origin": "192.168.101.254", + "cef.extensions.originsicname": "CN=R80,O=R80_M..6u6bdo", + "cef.extensions.outzone": "External", + "cef.extensions.parent_rule": "0", + "cef.extensions.product": "VPN-1 & FireWall-1", + "cef.extensions.rule_action": "Accept", + "cef.extensions.rule_uid": "9e5e6e74-aa9a-4693-b9fe-53712dd27bea", + "cef.extensions.sequencenum": "1", + "cef.extensions.service_id": "https", + "cef.extensions.sourceAddress": "192.168.101.100", + "cef.extensions.sourcePort": 49363, + "cef.extensions.sourceTranslatedAddress": "192.168.103.254", + "cef.extensions.sourceTranslatedPort": 35398, + "cef.extensions.transportProtocol": "6", + "cef.extensions.version": "5", + "cef.name": "https", + "cef.severity": "Unknown", + "cef.version": "0", + "destination.as.number": 8075, + "destination.as.organization.name": "Microsoft Corporation", + "destination.geo.city_name": "Des Moines", + "destination.geo.continent_name": "North America", + "destination.geo.country_iso_code": "US", + "destination.geo.location.lat": 41.6006, + "destination.geo.location.lon": -93.6112, + "destination.geo.region_iso_code": "US-IA", + "destination.geo.region_name": "Iowa", + "destination.ip": "52.173.84.157", + "destination.nat.ip": "0.0.0.0", + "destination.nat.port": 0, + "destination.port": 443, + "event.action": "Accept", + "event.category": "network", + "event.code": "Log", + "event.dataset": "cef.log", + "event.kind": "event", + "event.module": "cef", + "event.original": "CEF:0|Check Point|VPN-1 & FireWall-1|Check Point|Log|https|Unknown|act=Accept destinationTranslatedAddress=0.0.0.0 destinationTranslatedPort=0 deviceDirection=0 rt=1543270652000 sourceTranslatedAddress=192.168.103.254 sourceTranslatedPort=35398 spt=49363 dpt=443 cs2Label=Rule Name layer_name=Network layer_uuid=b406b732-2437-4848-9741-6eae1f5bf112 match_id=4 parent_rule=0 rule_action=Accept rule_uid=9e5e6e74-aa9a-4693-b9fe-53712dd27bea ifname=eth0 logid=0 loguid={0x5bfc70fc,0x1,0xfe65a8c0,0xc0000001} origin=192.168.101.254 originsicname=CN\\=R80,O\\=R80_M..6u6bdo sequencenum=1 version=5 dst=52.173.84.157 inzone=Internal nat_addtnl_rulenum=1 nat_rulenum=4 outzone=External product=VPN-1 & FireWall-1 proto=6 service_id=https src=192.168.101.100 cs5Label=Matched Category cs5=Business / Economy deviceCustomDate2=1508150533713 deviceCustomDate2Label=This field is made up", + "fileset.name": "log", + "input.type": "log", + "log.offset": 0, + "message": "https", + "network.community_id": "1:yRLApDaheTmJZHL4UUDMjcHWAik=", + "network.direction": "inbound", + "network.transport": "6", + "observer.egress.zone": "External", + "observer.ingress.interface.name": "eth0", + "observer.ingress.zone": "Internal", + "observer.product": "VPN-1 & FireWall-1", + "observer.vendor": "Check Point", + "observer.version": "Check Point", + "related.ip": [ + "52.173.84.157", + "0.0.0.0", + "192.168.101.100", + "192.168.103.254" + ], + "rule.category": "Business / Economy", + "rule.uuid": "9e5e6e74-aa9a-4693-b9fe-53712dd27bea", + "service.type": "cef", + "source.ip": "192.168.101.100", + "source.nat.ip": "192.168.103.254", + "source.nat.port": 35398, + "source.port": 49363, + "tags": [ + "cef" + ] + }, + { + "cef.device.event_class_id": "Log", + "cef.device.product": "VPN-1 & FireWall-1", + "cef.device.vendor": "Check Point", + "cef.device.version": "Check Point", + "cef.extensions.destinationPort": 25, + "cef.extensions.deviceAction": "Bypass", + "cef.extensions.deviceCustomDate2": "2020-04-11T10:42:13.000Z", + "cef.extensions.deviceCustomDate2Label": "Subscription expiration", + "cef.extensions.deviceCustomNumber1Label": "Email Recipients Number", + "cef.extensions.deviceCustomString1Label": "Email ID", + "cef.extensions.deviceCustomString4": "SMTP Policy Restrictions", + "cef.extensions.deviceCustomString4Label": "Email Control", + "cef.extensions.deviceCustomString5Label": "Email Session ID", + "cef.extensions.deviceDirection": 0, + "cef.extensions.deviceReceiptTime": "2018-12-19T09:22:10.000Z", + "cef.extensions.fileHash": "55f4a511e6f630a6b1319505414f114e7bcaf13d", + "cef.extensions.message": "Encrypted session", + "cef.extensions.sourcePort": 4001, + "cef.name": "https", + "cef.severity": "Unknown", + "cef.version": "0", + "checkpoint.email_control": "SMTP Policy Restrictions", + "checkpoint.file_hash": "55f4a511e6f630a6b1319505414f114e7bcaf13d", + "checkpoint.subscription_expiration": "2020-04-11T10:42:13.000Z", + "destination.port": 25, + "event.action": "Bypass", + "event.code": "Log", + "event.dataset": "cef.log", + "event.kind": "event", + "event.module": "cef", + "event.original": "CEF:0|Check Point|VPN-1 & FireWall-1|Check Point|Log|https|Unknown|act=Bypass cn1Label=Email Recipients Number cs1Label=Email ID cs4Label=Email Control cs4=SMTP Policy Restrictions cs5Label=Email Session ID deviceDirection=0 msg=Encrypted session rt=1545211330000 spt=4001 dpt=25 fileHash=55f4a511e6f630a6b1319505414f114e7bcaf13d deviceCustomDate2=Apr 11 2020 10:42:13 deviceCustomDate2Label=Subscription expiration", + "file.hash.sha1": "55f4a511e6f630a6b1319505414f114e7bcaf13d", + "fileset.name": "log", + "input.type": "log", + "log.offset": 875, + "message": "Encrypted session", + "network.direction": "inbound", + "observer.product": "VPN-1 & FireWall-1", + "observer.vendor": "Check Point", + "observer.version": "Check Point", + "related.hash": [ + "55f4a511e6f630a6b1319505414f114e7bcaf13d" + ], + "service.type": "cef", + "source.port": 4001, + "tags": [ + "cef" + ] + }, + { + "cef.device.event_class_id": "Log", + "cef.device.product": "VPN-1 & FireWall-1", + "cef.device.vendor": "Check Point", + "cef.device.version": "Check Point", + "cef.extensions.baseEventCount": "12", + "cef.extensions.cp_app_risk": "High", + "cef.extensions.cp_severity": "Very-High", + "cef.extensions.deviceAction": "Drop", + "cef.extensions.deviceCustomIPv6Address2": "fd00::555", + "cef.extensions.deviceCustomIPv6Address2Label": "Source IPv6 Address", + "cef.extensions.deviceCustomIPv6Address3": "::1", + "cef.extensions.deviceCustomIPv6Address3Label": "Destination IPv6 Address", + "cef.extensions.deviceCustomNumber2": 5, + "cef.extensions.deviceCustomNumber2Label": "Duration in Seconds", + "cef.extensions.deviceFacility": "4", + "cef.extensions.fileHash": "580a783c1cb2b20613323f715d231a69", + "cef.name": "https", + "cef.severity": "Unknown", + "cef.version": "0", + "checkpoint.app_risk": "High", + "checkpoint.event_count": "12", + "checkpoint.file_hash": "580a783c1cb2b20613323f715d231a69", + "checkpoint.severity": "Very-High", + "destination.ip": "::1", + "event.action": "Drop", + "event.category": "network", + "event.code": "Log", + "event.dataset": "cef.log", + "event.duration": 5000000000, + "event.kind": "event", + "event.module": "cef", + "event.original": "CEF:0|Check Point|VPN-1 & FireWall-1|Check Point|Log|https|Unknown|act=Drop cp_app_risk=High cp_severity=Very-High baseEventCount=12 deviceFacility=4 c6a2=fd00::555 c6a2Label=Source IPv6 Address c6a3=::1 c6a3Label=Destination IPv6 Address fileHash=580a783c1cb2b20613323f715d231a69 cn2=5 cn2Label=Duration in Seconds", + "event.risk_score": "4", + "event.severity": "4", + "file.hash.md5": "580a783c1cb2b20613323f715d231a69", + "fileset.name": "log", + "input.type": "log", + "log.offset": 1291, + "message": "https", + "observer.product": "VPN-1 & FireWall-1", + "observer.type": "Mobile", + "observer.vendor": "Check Point", + "observer.version": "Check Point", + "related.hash": [ + "580a783c1cb2b20613323f715d231a69" + ], + "service.type": "cef", + "source.ip": "fd00::555", + "tags": [ + "cef" + ] + } +] \ No newline at end of file diff --git a/x-pack/filebeat/processors/decode_cef/_meta/fields.yml b/x-pack/filebeat/processors/decode_cef/_meta/fields.yml index 3deb1c2a951..64b0a32cd02 100644 --- a/x-pack/filebeat/processors/decode_cef/_meta/fields.yml +++ b/x-pack/filebeat/processors/decode_cef/_meta/fields.yml @@ -274,27 +274,35 @@ type: double description: One of four floating point fields available to map fields that do not apply to any other in this dictionary. + - name: deviceCustomIPv6Address1 + type: ip + description: One of four IPv6 address fields available to map fields that do not apply to any other in this dictionary. + - name: deviceCustomIPv6Address1Label type: keyword description: All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. - - name: deviceCustomIPv6Address4 + - name: deviceCustomIPv6Address2 type: ip description: One of four IPv6 address fields available to map fields that do not apply to any other in this dictionary. - - name: deviceCustomIPv6Address4Label + - name: deviceCustomIPv6Address2Label type: keyword description: All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. - - name: deviceCustomIPv6Address1 + - name: deviceCustomIPv6Address3 type: ip description: One of four IPv6 address fields available to map fields that do not apply to any other in this dictionary. - - name: deviceCustomIPv6Address3 + - name: deviceCustomIPv6Address3Label + type: keyword + description: All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. + + - name: deviceCustomIPv6Address4 type: ip description: One of four IPv6 address fields available to map fields that do not apply to any other in this dictionary. - - name: deviceCustomIPv6Address3Label + - name: deviceCustomIPv6Address4Label type: keyword description: All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. @@ -306,7 +314,7 @@ type: keyword description: All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. - - name: DeviceCustomNumber2 + - name: deviceCustomNumber2 type: long description: One of three number fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. @@ -390,6 +398,22 @@ type: keyword description: The facility generating this event. For example, Syslog has an explicit facility associated with every event. + - name: deviceFlexNumber1 + type: long + description: One of two alternative number fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. + + - name: deviceFlexNumber1Label + type: keyword + description: All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. + + - name: deviceFlexNumber2 + type: long + description: One of two alternative number fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. + + - name: deviceFlexNumber2Label + type: keyword + description: All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. + - name: deviceHostName type: keyword description: The format should be a fully qualified domain name (FQDN) associated with the device node, when a node is available. diff --git a/x-pack/filebeat/processors/decode_cef/cef/cef.go b/x-pack/filebeat/processors/decode_cef/cef/cef.go index c9827baeedd..72d94bc969d 100644 --- a/x-pack/filebeat/processors/decode_cef/cef/cef.go +++ b/x-pack/filebeat/processors/decode_cef/cef/cef.go @@ -124,7 +124,7 @@ func (e *Event) Unpack(data string, opts ...Option) error { } for key, field := range e.Extensions { - mapping, found := extensionMapping[key] + mapping, found := extensionMappingLowerCase[strings.ToLower(key)] if !found { continue } diff --git a/x-pack/filebeat/processors/decode_cef/cef/keys.go b/x-pack/filebeat/processors/decode_cef/cef/keys.go index f747c27fbd6..232d9dcbf9f 100644 --- a/x-pack/filebeat/processors/decode_cef/cef/keys.go +++ b/x-pack/filebeat/processors/decode_cef/cef/keys.go @@ -4,14 +4,21 @@ package cef +import "strings" + type mappedField struct { Target string Type DataType } // extensionMapping is a mapping of CEF key names to full field names and data -// types. This mapping was generated from tables contained in "Micro Focus -// Security ArcSight Common Event Format Version 25" dated September 28, 2017. +// types. This mapping was generated from tables contained in: +// - "Micro Focus Security ArcSight Common Event Format Version 25" +// dated September 28, 2017. +// - "Check Point Log Exporter CEF Field Mappings" +// dated November 23, 2018. +// - "HPE Security ArcSight Common Event Format Version 23" +// dated May 16, 2016. var extensionMapping = map[string]mappedField{ "agt": { Target: "agentAddress", @@ -233,22 +240,22 @@ var extensionMapping = map[string]mappedField{ Target: "deviceCustomFloatingPoint4", Type: FloatType, }, + "c6a1": { + Target: "deviceCustomIPv6Address1", + Type: IPType, + }, "c6a1Label": { Target: "deviceCustomIPv6Address1Label", Type: StringType, }, - "c6a4": { - Target: "deviceCustomIPv6Address4", + "c6a2": { + Target: "deviceCustomIPv6Address2", Type: IPType, }, - "C6a4Label": { - Target: "deviceCustomIPv6Address4Label", + "c6a2Label": { + Target: "deviceCustomIPv6Address2Label", Type: StringType, }, - "c6a1": { - Target: "deviceCustomIPv6Address1", - Type: IPType, - }, "c6a3": { Target: "deviceCustomIPv6Address3", Type: IPType, @@ -257,6 +264,14 @@ var extensionMapping = map[string]mappedField{ Target: "deviceCustomIPv6Address3Label", Type: StringType, }, + "c6a4": { + Target: "deviceCustomIPv6Address4", + Type: IPType, + }, + "C6a4Label": { + Target: "deviceCustomIPv6Address4Label", + Type: StringType, + }, "cn1": { Target: "deviceCustomNumber1", Type: LongType, @@ -266,7 +281,7 @@ var extensionMapping = map[string]mappedField{ Type: StringType, }, "cn2": { - Target: "DeviceCustomNumber2", + Target: "deviceCustomNumber2", Type: LongType, }, "cn2Label": { @@ -441,6 +456,23 @@ var extensionMapping = map[string]mappedField{ Target: "fileModificationTime", Type: TimestampType, }, + "flexNumber1": { + Target: "deviceFlexNumber1", + Type: LongType, + }, + "flexNumber1Label": { + Target: "deviceFlexNumber1Label", + Type: StringType, + }, + "flexNumber2": { + Target: "deviceFlexNumber2", + Type: LongType, + }, + "flexNumber2Label": { + Target: "deviceFlexNumber2Label", + Type: StringType, + }, + "fname": { Target: "filename", Type: StringType, @@ -657,3 +689,11 @@ var extensionMapping = map[string]mappedField{ Type: TimestampType, }, } + +var extensionMappingLowerCase = map[string]mappedField{} + +func init() { + for k, v := range extensionMapping { + extensionMappingLowerCase[strings.ToLower(k)] = v + } +} diff --git a/x-pack/filebeat/processors/decode_cef/fields.go b/x-pack/filebeat/processors/decode_cef/fields.go index 30d9e1abba1..d885d6210e1 100644 --- a/x-pack/filebeat/processors/decode_cef/fields.go +++ b/x-pack/filebeat/processors/decode_cef/fields.go @@ -19,5 +19,5 @@ func init() { // AssetDecodeCef returns asset data. // This is the base64 encoded gzipped contents of processors/decode_cef. func AssetDecodeCef() string { - return "eJzsPV1z20aS7/4VXboHO1WUIvlrb3WVvdKKVswry+ZZUnJ1dVXJEGiScxrMIDMDUsiv35ovECAJkAJAJ7aiB5dJAv09Pd2NnsYx3GN+DhFOnwFoqhmewxAjESNcvruCVIoIlRISphRZrJ4BxKgiSVNNBT+HfzwDALgUSSI4vFsg13AlZEI0vLh8d/UdxESTk2fg7z63Vx8DJwkGnOZP5ymew0yKLPXfbEFi/v6ZQ4xTkjENeo7wa2wp/SXC6a8lUpeSalRAGL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PKQGgiO6h/LAoMCs0tnVHSEWTRfaW6R3sOmeOl7Wvelnb/J5KjPH67CHCzIhQOj4rKeyZcpkBl0dREw3eXQ8PcfX+4QSl6U25v26F8al9bpuy74Zz0e3DmvyOTicSJsZw9eO2/s90J7oVgbg+/CRfbJ2LesvssQPWtbmZJLtAoeGUohNPlaPXfFrVa3tyt5Th0rrmmtDa5zb5/43aelmInOIahFI95Dwb92x78jCMwbiTK9fIP1HyxL2ZvSom7e9ljo/6pUDUVSYu35hEOIg2ep8o1Jj1b125k3fPZcdTRhpUTKP8nTsmMVt6s/iTa/TB4IYHAyMNarWni4RgfGB9+7j1p5wXG1lT5vL57wX09yXcYTW2VX2NjGQB4Cmw67RWeTE7g+7643ZRHqS69H5deTf0kCn50bkpRFm1gAaMPCFfB662n4ZZOuH2GxJt3SVxOiSSRxqJ703tcdMPLzbdsgXb1kv726gvenU5UZkK9HvgayZ5dbFpjkupNqkoIJxOUbav2fw6H1YWMlDVNH26vF+8BXhZN9UQ/8YHjSakybp04Kh5CION2Kejc5BdXEZffbtI1dvcCpiXs/woAAP//C9svNQ==" } diff --git a/x-pack/filebeat/processors/decode_cef/testdata/samples.log.golden.json b/x-pack/filebeat/processors/decode_cef/testdata/samples.log.golden.json index 89a6edb2d94..3f1a1c38398 100644 --- a/x-pack/filebeat/processors/decode_cef/testdata/samples.log.golden.json +++ b/x-pack/filebeat/processors/decode_cef/testdata/samples.log.golden.json @@ -89,7 +89,6 @@ "version": "1.2.3" }, "extensions": { - "DeviceCustomNumber2": 205, "TrendMicroDsDetectionConfidence": "95", "TrendMicroDsFileMD5": "44D88612FEA8A8F36DE82E1278ABB02F", "TrendMicroDsFileSHA1": "3395856CE81F2B7382DEE72602F798B642F14140", @@ -100,6 +99,7 @@ "deviceAction": "Delete", "deviceCustomNumber1": 1, "deviceCustomNumber1Label": "Host ID", + "deviceCustomNumber2": 205, "deviceCustomNumber2Label": "Quarantine File Size", "deviceCustomString6": "ContainerImageName | ContainerName | ContainerID", "deviceCustomString6Label": "Container", @@ -450,9 +450,9 @@ "version": "NS10.0" }, "extensions": { - "DeviceCustomNumber2": 205, "deviceAction": "blocked", "deviceCustomNumber1": 233, + "deviceCustomNumber2": 205, "deviceCustomString1": "profile1", "deviceCustomString2": "PPE0", "deviceCustomString3": "AjSZM26h2M+xL809pON6C8joebUA000", @@ -497,9 +497,9 @@ "version": "NS10.0" }, "extensions": { - "DeviceCustomNumber2": 535, "deviceAction": "not blocked", "deviceCustomNumber1": 465, + "deviceCustomNumber2": 535, "deviceCustomString1": "profile1", "deviceCustomString2": "PPE0", "deviceCustomString3": "IliG4Dxp1SjOhKVRDVBXmqvAaIcA000", @@ -544,9 +544,9 @@ "version": "NS10.0" }, "extensions": { - "DeviceCustomNumber2": 610, "deviceAction": "transformed", "deviceCustomNumber1": 652, + "deviceCustomNumber2": 610, "deviceCustomString1": "pr_ffc", "deviceCustomString2": "PPE0", "deviceCustomString3": "li8MdGfW49uG8tGdSV85ech41a0A000", @@ -591,9 +591,9 @@ "version": "NS10.0" }, "extensions": { - "DeviceCustomNumber2": 610, "deviceAction": "transformed", "deviceCustomNumber1": 653, + "deviceCustomNumber2": 610, "deviceCustomString1": "pr_ffc", "deviceCustomString2": "PPE0", "deviceCustomString3": "li8MdGfW49uG8tGdSV85ech41a0A000", @@ -638,9 +638,9 @@ "version": "NS10.0" }, "extensions": { - "DeviceCustomNumber2": 205, "deviceAction": "not blocked", "deviceCustomNumber1": 224, + "deviceCustomNumber2": 205, "deviceCustomString1": "pr_ffc", "deviceCustomString2": "PPE0", "deviceCustomString3": "POousP7CIMW5nwZ5Rs4nq5DND0sA000", @@ -948,7 +948,6 @@ "agentType": "agent_ac", "agentVersion": "7.1.7.7602.0", "assetCriticality": "0", - "c6a4Label": "Agent IPv6 Address", "categoryBehavior": "/Access/Stop", "categoryDeviceGroup": "/Firewall", "categoryDeviceType": "Firewall", @@ -958,6 +957,7 @@ "deviceAddress": "111.111.111.99", "deviceAssetId": "5Wa8hHVSDFBCc-t56wI7mTw==", "deviceCustomIPv6Address4": "ffff:0:0:0:222:5555:ffff:5555", + "deviceCustomIPv6Address4Label": "Agent IPv6 Address", "deviceCustomNumber1Label": "ICMP Type", "deviceCustomNumber2Label": "ICMP Code", "deviceCustomNumber3Label": "DurationInSeconds",