-
Notifications
You must be signed in to change notification settings - Fork 455
azure: add Grok processor for AzureFirewallThreatIntelLog #13921
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
base: main
Are you sure you want to change the base?
Conversation
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
@@ -194,6 +194,12 @@ processors: | |||
- "^%{DATA:azure.firewall.proto} request from %{IPORHOST:source.address}:%{NUMBER:source.port:long} to %{IPORHOST:destination.address}:%{NUMBER:destination.port:long}. Url: %{HOSTNAME:url.original}. Action: %{DATA:azure.firewall.action}. ThreatIntel: %{DATA:rule.name}$" | |||
if: ctx?.json?.operationName == 'AzureFirewallNetworkRuleLog' || ctx?.json?.operationName == 'AzureFirewallNatRuleLog' | |||
|
|||
- grok: |
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.
Please add a test that covers this 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.
Run pipeline tests for the package
--- Test results for package: azure - START ---
╭─────────┬───────────────┬───────────┬─────────────────────────────────────────────────────────────────────┬────────┬──────────────╮
│ PACKAGE │ DATA STREAM │ TEST TYPE │ TEST NAME │ RESULT │ TIME ELAPSED │
├─────────┼───────────────┼───────────┼─────────────────────────────────────────────────────────────────────┼────────┼──────────────┤
│ azure │ firewall_logs │ pipeline │ (ingest pipeline warnings test-applicationrules-raw.log) │ PASS │ 330.67625ms │
│ azure │ firewall_logs │ pipeline │ (ingest pipeline warnings test-applicationrules-structured-raw.log) │ PASS │ 294.189208ms │
│ azure │ firewall_logs │ pipeline │ (ingest pipeline warnings test-dnsproxy-structured-raw.log) │ PASS │ 289.398917ms │
│ azure │ firewall_logs │ pipeline │ (ingest pipeline warnings test-dnsproxyrules-raw.log) │ PASS │ 321.9885ms │
│ azure │ firewall_logs │ pipeline │ (ingest pipeline warnings test-natrule-structured-raw.log) │ PASS │ 286.860292ms │
│ azure │ firewall_logs │ pipeline │ (ingest pipeline warnings test-networkrule-structured-raw.log) │ PASS │ 312.447292ms │
│ azure │ firewall_logs │ pipeline │ (ingest pipeline warnings test-networkrules-raw.log) │ PASS │ 294.68775ms │
│ azure │ firewall_logs │ pipeline │ (ingest pipeline warnings test-sdh3075-raw.log) │ PASS │ 301.59275ms │
│ azure │ firewall_logs │ pipeline │ (ingest pipeline warnings test-threatintel-raw.log) │ PASS │ 297.325167ms │
│ azure │ firewall_logs │ pipeline │ test-applicationrules-raw.log │ PASS │ 127.56975ms │
│ azure │ firewall_logs │ pipeline │ test-applicationrules-structured-raw.log │ PASS │ 76.394ms │
│ azure │ firewall_logs │ pipeline │ test-dnsproxy-structured-raw.log │ PASS │ 66.39725ms │
│ azure │ firewall_logs │ pipeline │ test-dnsproxyrules-raw.log │ PASS │ 81.463458ms │
│ azure │ firewall_logs │ pipeline │ test-natrule-structured-raw.log │ PASS │ 70.352875ms │
│ azure │ firewall_logs │ pipeline │ test-networkrule-structured-raw.log │ PASS │ 69.035166ms │
│ azure │ firewall_logs │ pipeline │ test-networkrules-raw.log │ PASS │ 162.922875ms │
│ azure │ firewall_logs │ pipeline │ test-sdh3075-raw.log │ PASS │ 69.803208ms │
│ azure │ firewall_logs │ pipeline │ test-threatintel-raw.log │ PASS │ 61.601166ms │
╰─────────┴───────────────┴───────────┴─────────────────────────────────────────────────────────────────────┴────────┴──────────────╯
--- Test results for package: azure - END ---
Done
Co-authored-by: Dan Kortschak <[email protected]>
/test |
🚀 Benchmarks reportPackage
|
Data stream | Previous EPS | New EPS | Diff (%) | Result |
---|---|---|---|---|
provisioning |
3584.23 | 2873.56 | -710.67 (-19.83%) | 💔 |
To see the full report comment with /test benchmark fullreport
|
💚 Build Succeeded
|
field: json.properties.msg | ||
patterns: | ||
- "^%{DATA:azure.firewall.proto} request from %{IPORHOST:source.address}:%{NUMBER:source.port:long} to %{IPORHOST:destination.address}:%{NUMBER:destination.port:long}. Action: %{DATA:azure.firewall.action}. ThreatIntel: %{DATA:rule.name}$" | ||
if: ctx?.json?.operationName == 'AzureFirewallThreatIntelLog' |
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.
if: ctx?.json?.operationName == 'AzureFirewallThreatIntelLog' | |
if: ctx.json?.operationName == 'AzureFirewallThreatIntelLog' |
ctx
is always non-null.
@@ -0,0 +1 @@ | |||
{"category":"AZFWThreatIntel","properties":{"Action":"Deny","DestinationIp":"175.16.199.1","DestinationPort":443,"Fqdn":"","IsTlsInspected":false,"Protocol":"TCP","SourceIp":"192.168.0.2","SourcePort":51890,"ThreatDescription":"Destination reported by Threat Intelligence","Url":""},"resourceId":"/SUBSCRIPTIONS/23103928-B2CF-472A-8CDB-0146E2849129/RESOURCEGROUPS/TEST-FW-RG/PROVIDERS/MICROSOFT.NETWORK/AZUREFIREWALLS/TEST-FW01","time":"2025-05-16T07:34:42.525499+00:00"} |
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.
This does not test the change; it does not have a properties.msg
field and does not have an operationName
field to make the condition for the grok processor ever fire.
Proposed commit message
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots