winlog.event_data.Image.keyword not populated

I am shipping logs from a Windows 10 machine with Process auditing enabled in the Windows using 7.15 version of winlogbeats to logstash, and then in turn Elasticsearch.

As an example, I am trying to use a detection rule from an open source detection package that keys off of 'winlog.event_data.Image.keyword' using the specific query winlog.event_data.Image.keyword:*\whoami.exe

This detection rule is failing to run as the winlog.event_data.Image field does not appear to be created when parsing an field that should have that information present.

Any idea why those fields are not being mapped? I'm guessing it is due to ECS, but what is the equivalent ECS field for winlog.event_data.Image.keyword?

What event ID are you talking about? 4688? 592?

Do you have a sample of the raw JSON event that's in Elasticsearch that you can share?

I'm not aware of any mappings in the Security module for 592. So for that event I expect it contains winlog.event_data.Image.

Andrew,
Thanks for the response. Yes, I was referring to event ID 4688. I meant to include that in my original post.

Here is the raw JSON as you requested:

{
  "_index": "winlogbeat-7.15.1-2021.10.21-000001",
  "_type": "_doc",
  "_id": "CiuJo3wBjL5mS4SyCLzT",
  "_version": 1,
  "_score": 1,
  "_source": {
    "event": {
      "type": [
        "start"
      ],
      "created": "2021-10-21T15:47:19.142Z",
      "module": "security",
      "provider": "Microsoft-Windows-Security-Auditing",
      "action": "created-process",
      "outcome": "success",
      "category": [
        "process"
      ],
      "code": "4688",
      "kind": "event"
    },
    "tags": [
      "beats_input_codec_plain_applied"
    ],
    "process": {
      "name": "whoami.exe",
      "parent": {
        "executable": "C:\\Windows\\System32\\cmd.exe",
        "name": "cmd.exe"
      },
      "pid": 45380,
      "executable": "C:\\Windows\\System32\\whoami.exe"
    },
    "@timestamp": "2021-10-21T15:47:17.495Z",
    "user": {
      "id": "SID",
      "name": "USERNAME",
      "domain": "DOMAIN"
    },
    "message": "A new process has been created.\n\nCreator Subject:\n\tSecurity ID:\t\tSID\n\tAccount Name:\t\tUSERNAME\n\tAccount Domain:\t\tDOMAIN\n\tLogon ID:\t\t0x0\n\nTarget Subject:\n\tSecurity ID:\t\tS-1-0-0\n\tAccount Name:\t\t-\n\tAccount Domain:\t\t-\n\tLogon ID:\t\t0x0\n\nProcess Information:\n\tNew Process ID:\t\t0xb144\n\tNew Process Name:\tC:\\Windows\\System32\\whoami.exe\n\tToken Elevation Type:\t%%1937\n\tMandatory Label:\t\tS-1-16-12288\n\tCreator Process ID:\t0xb380\n\tCreator Process Name:\tC:\\Windows\\System32\\cmd.exe\n\tProcess Command Line:\t\n\nToken Elevation Type indicates the type of token that was assigned to the new process in accordance with User Account Control policy.\n\nType 1 is a full token with no privileges removed or groups disabled.  A full token is only used if User Account Control is disabled or if the user is the built-in Administrator account or a service account.\n\nType 2 is an elevated token with no privileges removed or groups disabled.  An elevated token is used when User Account Control is enabled and the user chooses to start the program using Run as administrator.  An elevated token is also used when an application is configured to always require administrative privilege or to always require maximum privilege, and the user is a member of the Administrators group.\n\nType 3 is a limited token with administrative privileges removed and administrative groups disabled.  The limited token is used when User Account Control is enabled, the application does not require administrative privilege, and the user does not choose to start the program using Run as administrator.",
    "agent": {
      "id": "70733924-5af7-4c26-b9b8-513c44c3f81c",
      "type": "winlogbeat",
      "ephemeral_id": "e6071187-cd1c-4c58-88f0-00fdc3ce6837",
      "name": "PCNAME",
      "version": "7.15.1",
      "hostname": "PCNAME"
    },
    "related": {
      "user": "USERNAME"
    },
    "host": {
      "id": "87b27bba-90ab-4fcb-82a8-f9c2d3f89bed",
      "name": "PCNAME.DOMAIN.local",
      "ip": [
        "fe80::7829:5d8a:35c:24ec",
        "169.254.36.236",
        "fe80::7d68:3515:8926:c0de",
        "1.2.3.4",
        "fe80::983b:1db9:da4c:e0af",
        "169.254.224.175",
        "fe80::e00c:b2ef:c5dc:b07e",
        "169.254.176.126",
        "fe80::c4a7:f2c5:19d9:467a",
        "169.254.70.122"
      ],
      "architecture": "x86_64",
      "hostname": "PCNAME",
      "mac": [
        "11:22:33:44:55:66",
        "11:22:33:44:55:66",
        "11:22:33:44:55:66",
        "11:22:33:44:55:66",
        "11:22:33:44:55:66"
      ],
      "os": {
        "type": "windows",
        "name": "Windows 10 Pro",
        "version": "10.0",
        "kernel": "10.0.19041.1288 (WinBuild.160101.0800)",
        "build": "19042.1288",
        "family": "windows",
        "platform": "windows"
      }
    },
    "log": {
      "level": "information"
    },
    "winlog": {
      "channel": "Security",
      "provider_guid": "{54849625-5478-4994-a5ba-3e3b0328c30d}",
      "process": {
        "thread": {
          "id": 39716
        },
        "pid": 4
      },
      "provider_name": "Microsoft-Windows-Security-Auditing",
      "opcode": "Info",
      "computer_name": "PCNAME.DOMAIN.local",
      "task": "Process Creation",
      "event_data": {
        "SubjectDomainName": "DOMAIN",
        "MandatoryLabel": "S-1-16-12288",
        "TargetUserName": "-",
        "TargetDomainName": "-",
        "TargetLogonId": "0x0",
        "TokenElevationType": "%%1937",
        "SubjectUserSid": "SID",
        "TargetUserSid": "S-1-0-0",
        "SubjectLogonId": "0x0",
        "ProcessId": "0xb380",
        "SubjectUserName": "USERNAME"
      },
      "record_id": 264505,
      "keywords": [
        "Audit Success"
      ],
      "version": 2,
      "logon": {
        "id": "0x0"
      },
      "api": "wineventlog",
      "event_id": "4688"
    },
    "@version": "1",
    "ecs": {
      "version": "1.11.0"
    }
  },
  "fields": {
    "event.category": [
      "process"
    ],
    "process.name.text": [
      "whoami.exe"
    ],
    "host.os.name.text": [
      "Windows 10 Pro"
    ],
    "winlog.provider_name": [
      "Microsoft-Windows-Security-Auditing"
    ],
    "winlog.provider_guid": [
      "{54849625-5478-4994-a5ba-3e3b0328c30d}"
    ],
    "process.parent.name": [
      "cmd.exe"
    ],
    "host.hostname": [
      "PCNAME"
    ],
    "process.pid": [
      45380
    ],
    "winlog.computer_name": [
      "PCNAME.DOMAIN.local"
    ],
    "host.mac": [
      "11:22:33:44:55:66",
      "11:22:33:44:55:66",
      "11:22:33:44:55:66",
      "11:22:33:44:55:66",
      "11:22:33:44:55:66"
    ],
    "winlog.process.pid": [
      4
    ],
    "winlog.keywords": [
      "Audit Success"
    ],
    "host.os.version": [
      "10.0"
    ],
    "winlog.record_id": [
      "264505"
    ],
    "winlog.logon.id": [
      "0x0"
    ],
    "host.os.name": [
      "Windows 10 Pro"
    ],
    "log.level": [
      "information"
    ],
    "agent.name": [
      "PCNAME"
    ],
    "host.name": [
      "PCNAME.DOMAIN.local"
    ],
    "event.kind": [
      "event"
    ],
    "event.outcome": [
      "success"
    ],
    "winlog.version": [
      2
    ],
    "winlog.event_data.TargetUserName": [
      "-"
    ],
    "user.id": [
      "SID"
    ],
    "host.os.type": [
      "windows"
    ],
    "winlog.event_data.TargetUserSid": [
      "S-1-0-0"
    ],
    "agent.hostname": [
      "PCNAME"
    ],
    "tags": [
      "beats_input_codec_plain_applied"
    ],
    "related.user": [
      "USERNAME"
    ],
    "host.architecture": [
      "x86_64"
    ],
    "process.name": [
      "whoami.exe"
    ],
    "event.provider": [
      "Microsoft-Windows-Security-Auditing"
    ],
    "event.code": [
      "4688"
    ],
    "agent.id": [
      "70733924-5af7-4c26-b9b8-513c44c3f81c"
    ],
    "process.parent.executable.text": [
      "C:\\Windows\\System32\\cmd.exe"
    ],
    "winlog.event_data.TokenElevationType": [
      "%%1937"
    ],
    "ecs.version": [
      "1.11.0"
    ],
    "event.created": [
      "2021-10-21T15:47:19.142Z"
    ],
    "agent.version": [
      "7.15.1"
    ],
    "host.os.family": [
      "windows"
    ],
    "winlog.event_data.SubjectUserSid": [
      "SID"
    ],
    "winlog.process.thread.id": [
      39716
    ],
    "user.name": [
      "USERNAME"
    ],
    "process.parent.name.text": [
      "cmd.exe"
    ],
    "host.os.build": [
      "19042.1288"
    ],
    "host.ip": [
      "fe80::7829:5d8a:35c:24ec",
      "169.254.36.236",
      "fe80::7d68:3515:8926:c0de",
      "1.2.3.4",
      "fe80::983b:1db9:da4c:e0af",
      "169.254.224.175",
      "fe80::e00c:b2ef:c5dc:b07e",
      "169.254.176.126",
      "fe80::c4a7:f2c5:19d9:467a",
      "169.254.70.122"
    ],
    "agent.type": [
      "winlogbeat"
    ],
    "process.executable.text": [
      "C:\\Windows\\System32\\whoami.exe"
    ],
    "event.module": [
      "security"
    ],
    "winlog.event_data.SubjectLogonId": [
      "0x0"
    ],
    "winlog.event_data.TargetLogonId": [
      "0x0"
    ],
    "host.os.kernel": [
      "10.0.19041.1288 (WinBuild.160101.0800)"
    ],
    "winlog.api": [
      "wineventlog"
    ],
    "@version": [
      "1"
    ],
    "user.domain": [
      "DOMAIN"
    ],
    "host.id": [
      "87b27bba-90ab-4fcb-82a8-f9c2d3f89bed"
    ],
    "winlog.event_data.ProcessId": [
      "0xb380"
    ],
    "process.executable": [
      "C:\\Windows\\System32\\whoami.exe"
    ],
    "winlog.task": [
      "Process Creation"
    ],
    "process.parent.executable": [
      "C:\\Windows\\System32\\cmd.exe"
    ],
    "winlog.event_data.SubjectUserName": [
      "USERNAME"
    ],
    "message": [
      "A new process has been created.\n\nCreator Subject:\n\tSecurity ID:\t\tSID\n\tAccount Name:\t\tUSERNAME\n\tAccount Domain:\t\tDOMAIN\n\tLogon ID:\t\t0x0\n\nTarget Subject:\n\tSecurity ID:\t\tS-1-0-0\n\tAccount Name:\t\t-\n\tAccount Domain:\t\t-\n\tLogon ID:\t\t0x0\n\nProcess Information:\n\tNew Process ID:\t\t0xb144\n\tNew Process Name:\tC:\\Windows\\System32\\whoami.exe\n\tToken Elevation Type:\t%%1937\n\tMandatory Label:\t\tS-1-16-12288\n\tCreator Process ID:\t0xb380\n\tCreator Process Name:\tC:\\Windows\\System32\\cmd.exe\n\tProcess Command Line:\t\n\nToken Elevation Type indicates the type of token that was assigned to the new process in accordance with User Account Control policy.\n\nType 1 is a full token with no privileges removed or groups disabled.  A full token is only used if User Account Control is disabled or if the user is the built-in Administrator account or a service account.\n\nType 2 is an elevated token with no privileges removed or groups disabled.  An elevated token is used when User Account Control is enabled and the user chooses to start the program using Run as administrator.  An elevated token is also used when an application is configured to always require administrative privilege or to always require maximum privilege, and the user is a member of the Administrators group.\n\nType 3 is a limited token with administrative privileges removed and administrative groups disabled.  The limited token is used when User Account Control is enabled, the application does not require administrative privilege, and the user does not choose to start the program using Run as administrator."
    ],
    "winlog.event_id": [
      "4688"
    ],
    "event.action": [
      "created-process"
    ],
    "@timestamp": [
      "2021-10-21T15:47:17.495Z"
    ],
    "winlog.channel": [
      "Security"
    ],
    "host.os.platform": [
      "windows"
    ],
    "winlog.event_data.MandatoryLabel": [
      "S-1-16-12288"
    ],
    "event.type": [
      "start"
    ],
    "winlog.event_data.TargetDomainName": [
      "-"
    ],
    "winlog.opcode": [
      "Info"
    ],
    "agent.ephemeral_id": [
      "e6071187-cd1c-4c58-88f0-00fdc3ce6837"
    ],
    "winlog.event_data.SubjectDomainName": [
      "DOMAIN"
    ],
    "user.name.text": [
      "USERNAME"
    ]
  }
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.