Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Filebeat Enhancement] Pattern for Cisco Message 734001. #16612

Merged
merged 5 commits into from
Mar 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- 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}16907[16907]
- Add pattern for Cisco ASA / FTD Message 734001 {issue}16212[16212] {pull}16612[16612]

*Heartbeat*

Expand Down
40 changes: 40 additions & 0 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5476,6 +5476,26 @@ type: short

--

*`cisco.asa.connection_type`*::
+
--
The VPN connection type


type: keyword

--

*`cisco.asa.dap_records`*::
+
--
The assigned DAP records


type: keyword

--

[float]
=== ftd

Expand Down Expand Up @@ -5654,6 +5674,26 @@ type: object

--

*`cisco.ftd.connection_type`*::
+
--
The VPN connection type


type: keyword

--

*`cisco.ftd.dap_records`*::
+
--
The assigned DAP records


type: keyword

--

[float]
=== ios

Expand Down
12 changes: 12 additions & 0 deletions x-pack/filebeat/module/cisco/asa/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,15 @@
type: short
description: >
ICMP code.

- name: connection_type
type: keyword
default_field: false
description: >
The VPN connection type

- name: dap_records
default_field: false
type: keyword
description: >
The assigned DAP records
andrewkroh marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions x-pack/filebeat/module/cisco/asa/test/dap_records.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Feb 20 2020 16:11:11: %ASA-6-734001: DAP: User [email protected], Addr 1.2.3.4, Connection AnyConnect: The following DAP records were selected for this connection: dap_1, dap_2
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[
{
"cisco.asa.connection_type": "AnyConnect",
"cisco.asa.dap_records": [
"dap_1",
"dap_2"
],
"cisco.asa.message_id": "734001",
"event.action": "firewall-rule",
"event.code": 734001,
"event.dataset": "cisco.asa",
"event.module": "cisco",
"event.original": "%ASA-6-734001: DAP: User [email protected], Addr 1.2.3.4, Connection AnyConnect: The following DAP records were selected for this connection: dap_1, dap_2",
"event.severity": 6,
"event.timezone": "-02:00",
"fileset.name": "asa",
"input.type": "log",
"log.level": "informational",
"log.offset": 0,
"service.type": "cisco",
"source.address": "1.2.3.4",
"source.geo.city_name": "Moscow",
"source.geo.continent_name": "Europe",
"source.geo.country_iso_code": "RU",
"source.geo.location.lat": 55.7527,
"source.geo.location.lon": 37.6172,
"source.geo.region_iso_code": "RU-MOW",
"source.geo.region_name": "Moscow",
"source.ip": "1.2.3.4",
"tags": [
"cisco-asa"
],
"user.email": "[email protected]"
}
]
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/cisco/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions x-pack/filebeat/module/cisco/ftd/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,15 @@
type: object
description:
Raw fields for Security Events.

- name: connection_type
jsoriano marked this conversation as resolved.
Show resolved Hide resolved
type: keyword
default_field: false
description: >
The VPN connection type

- name: dap_records
type: keyword
default_field: false
description: >
The assigned DAP records
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add default_field to this ones.

Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,14 @@ processors:
if: "ctx._temp_.cisco.message_id == '338301'"
field: "server.port"
value: "{{source.port}}"
- dissect:
if: "ctx._temp_.cisco.message_id == '734001'"
field: "message"
pattern: "DAP: User %{user.email}, Addr %{source.address}, Connection %{_temp_.cisco.connection_type}: The following DAP records were selected for this connection: %{_temp_.cisco.dap_records->}"
- split:
field: "_temp_.cisco.dap_records"
separator: ",\\s+"
ignore_missing: true

#
# Handle 302xxx messages (Flow expiration a.k.a "Teardown")
Expand Down