Skip to content

Commit 8c992c5

Browse files
authored
Add IP validation to Security module (#21325)
For event 4778 (A session was reconnected to a Window Station) the `winlog.event_data.ClientAddress` could be "LOCAL" which is obviosuly not a valid IP so we don't want to copy it into `source.ip` in that case. Fixes #19627
1 parent 24e972f commit 8c992c5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
367367

368368
- Fix invalid IP addresses in DNS query results from Sysmon data. {issue}18432[18432] {pull}18436[18436]
369369
- Fields from Winlogbeat modules were not being included in index templates and patterns. {pull}18983[18983]
370+
- Add source.ip validation for event ID 4778 in the Security module. {issue}19627[19627]
370371

371372
*Functionbeat*
372373

x-pack/winlogbeat/module/security/config/winlogbeat-security.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,11 +1479,12 @@ var security = (function () {
14791479
fields: [
14801480
{from: "winlog.event_data.AccountName", to: "user.name"},
14811481
{from: "winlog.event_data.AccountDomain", to: "user.domain"},
1482-
{from: "winlog.event_data.ClientAddress", to: "source.ip"},
1482+
{from: "winlog.event_data.ClientAddress", to: "source.ip", type: "ip"},
14831483
{from: "winlog.event_data.ClientName", to: "source.domain"},
14841484
{from: "winlog.event_data.LogonID", to: "winlog.logon.id"},
14851485
],
14861486
ignore_missing: true,
1487+
fail_on_error: false,
14871488
})
14881489
.Add(function(evt) {
14891490
var user = evt.Get("winlog.event_data.AccountName");

0 commit comments

Comments
 (0)