-
Notifications
You must be signed in to change notification settings - Fork 439
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
[cisco_asa] Fix Event code 106023 - Source/Destination IP not being parsed into respective source.ip or destination.ip field when interface nameif has a full colon (:) #10917
Conversation
Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices) |
@@ -0,0 +1,3 @@ | |||
Apr 17 2020 14:00:31 SNL-ASA-VPN-A01 : %ASA-4-106023: Deny icmp src Inside:10.123.123.123 dst Outside:10.123.123.123 (type 11, code 0) by access-group "Inside_access_in" [0x0, 0x0] | |||
LOCAL4.WARNING: fw-1 %ASA-4-106023: Deny udp src v1:outside:10.8.1.9/54864 dst inside:172.16.1.3/53 by access-group "outside_acl" [0x0, 0x0] | |||
LOCAL4.WARNING: fw-1 %ASA-4-106023: Deny udp src v1:outside:10.8.1.9/54864 dst v2:inside:172.16.1.3/53 by access-group "outside_acl" [0x0, 0x0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add also an example with ipv6 ips which are full of colons (please include also the port)? just to make sure that nothing breaks in the former case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is already one, search
Apr 27 2020 02:03:03 dev01: %ASA-4-106023: Deny icmp src OUTSIDE:2a02:cf40:add:4002:91f2:a9b2:e09a:6fc6 dst OUTSIDE:2a02:cf40:add:4002:91f2:a9b2:e09a:6fc6 (type 128, code 0) by access-group "OUTSIDE_in"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes one already with an iface without colon it exists, but you are fixing support for ifaces with colons in them right?! So can we add one that covers this case iface with colon + ipv6 + port?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm. found another case (assuming if ipv6 was customized with prefix containing ':' ), works in grok dev tool
but breaks when regenerating with the elastic-package .... ughhh
Apr 27 2020 02:03:03 dev01: %ASA-4-106023: Deny icmp src v2:OUTSIDE:2a02:cf40:add:4002:91f2:a9b2:e09a:6fc6 dst v3:OUTSIDE:2a02:cf40:add:4002:91f2:a9b2:e09a:6fc6 (type 128, code 0) by access-group "OUTSIDE_in"
"cisco": {
"asa": {
"destination_interface": "v3:OUTSIDE:2a02:cf40:add:4002:91f2:a9b2:e09a",
"rule_name": "OUTSIDE_in",
"source_interface": "v2:OUTSIDE:2a02:cf40:add:4002:91f2:a9b2:e09a"
}
},
🚀 Benchmarks reportTo see the full report comment with |
After doing some digging around, it doesn't look like we have a robust support for parsing ipv6 case if the hostname has prefix that contains ":". Currently having an issue with Grok. The expression works fine in the "Grok" debugger.
Grok pattern:
Custom Patterns:
Returns:
But the same thing doesn't work in the ingest pipeline, cliping the destination_interface:
It's interesting, if I add prefixes to both Will get back to this later. |
KK. Figured out the problem with my previous attempt. The original regex
actually matches when the
and doesn't match any other permutation of src or dst prefixes That's why I saw the different result in the pipeline simulator.
Output:
Will update PR shortly |
4ef1499
to
771b94c
Compare
Quality Gate passedIssues Measures |
Hold on on reviewing this one. I'm not too happy that there is an additional fairly complex grok/regex for that special case, that now is checked for match first. I'll see if there is anything that can be done. |
771b94c
to
653959f
Compare
…arsed into respective source.ip or destination.ip field when interface nameif has a full colon (:)
653959f
to
fc25571
Compare
Refined the existing regex to match better the existing data as well as the new logs when interface name contains |
Quality Gate passedIssues Measures |
💚 Build Succeeded
History
cc @aleksmaus |
[cisco_asa] Fix Event code 106023 - Source/Destination IP not being parsed into respective source.ip or destination.ip field when interface nameif has a full colon (:)
Checklist
changelog.yml
file.Related issues