---
name: library
fields:
  base:
    fields:
      "@timestamp": {}
      message: {}
  data_stream:
    fields: "*"
  ecs:
    fields:
      version: {}
  # these fields are needed in the mapping so the maps page of the security app does not throw a bunch of errors
  source:
    fields:
      geo:
        fields: "*"
  destination:
    fields:
      geo:
        fields: "*"
  host:
    fields:
      architecture: {}
      domain: {}
      hostname: {}
      id: {}
      ip: {}
      mac: {}
      name: {}
      type: {}
      uptime: {}
      os:
        fields:
          family: {}
          full: {}
          kernel: {}
          platform: {}
          version: {}
          name: {}
          type: {}
          Ext:
            fields:
              variant: {}
  event:
    fields:
      action: {}
      category: {}
      created: {}
      code: {}
      dataset: {}
      hash: {}
      id: {}
      ingested: {}
      kind: {}
      module: {}
      outcome: {}
      provider: {}
      sequence: {}
      severity: {}
      type: {}
  agent:
    fields:
      version: {}
      type: {}
      id: {}
  group:
    fields:
      domain: {}
      id: {}
      name: {}
      Ext:
        fields:
          real:
            fields:
              id: {}
              name: {}
  user:
    fields:
      domain: {}
      email: {}
      full_name: {}
      hash: {}
      id: {}
      name: {}
      group:
        fields:
          domain: {}
          id: {}
          name: {}
          Ext:
            fields:
              real:
                fields:
                  id: {}
                  name: {}
      Ext:
        fields:
          real:
            fields:
              id: {}
              name: {}
  process:
    fields:
      entity_id: {}
      pid: {}
      name: {}
      code_signature:
        fields:
          exists: {}
          signing_id: {}
          status: {}
          subject_name: {}
          team_id: {}
          trusted: {}
          valid: {}
      executable: {}
      thread:
        fields:
          id: {}
          Ext:
            fields:
              call_stack:
                enabled: true
                fields:
                  allocation_private_bytes: {}
                  callsite_leading_bytes: {}
                  callsite_trailing_bytes: {}
                  protection: {}
                  symbol_info: {}
              call_stack_summary: {}
              hardware_breakpoint_set: {}
      Ext:
        fields:
          ancestry: {}
          code_signature:
            fields:
              exists: {}
              status: {}
              subject_name: {}
              trusted: {}
              valid: {}
          protection: {}
  file:
    fields:
      pe:
        fields:
          company: {}
          description: {}
          file_version: {}
          imphash: {}
          original_file_name: {}
          product: {}
      name: {}
      path: {}
      hash:
        fields:
          md5: {}
          sha1: {}
          sha256: {}
          sha512: {}
      code_signature:
        fields:
          exists: {}
          signing_id: {}
          status: {}
          subject_name: {}
          team_id: {}
          trusted: {}
          valid: {}
      Ext:
        fields:
          code_signature:
            fields:
              exists: {}
              status: {}
              subject_name: {}
              trusted: {}
              valid: {}
  dll:
    fields:
      code_signature:
        fields:
          exists: {}
          signing_id: {}
          status: {}
          subject_name: {}
          team_id: {}
          trusted: {}
          valid: {}
      hash:
        fields:
          md5: {}
          sha1: {}
          sha256: {}
          sha512: {}
      name: {}
      path: {}
      pe:
        fields:
          company: {}
          description: {}
          file_version: {}
          imphash: {}
          original_file_name: {}
          product: {}
      origin_referrer_url: {}
      origin_url: {}
      Ext:
        fields:
          code_signature:
            fields:
              exists: {}
              status: {}
              subject_name: {}
              trusted: {}
              valid: {}
          load_index: {}
          defense_evasions: {}
          device:
           fields:
             bus_type: {}
             dos_name: {}
             nt_name: {}
             product_id: {}
             serial_number: {}
             vendor_id: {}
             volume_device_type: {}
             file_system_type: {}
          relative_file_creation_time: {}
          relative_file_name_modify_time: {}
          size: {}
          windows:
           fields:
             zone_identifier: {}
  Effective_process:
    fields:
      pid: {}
      name: {}
      executable: {}
      entity_id: {}
