/** * The user fields describe information about the user that is relevant to the event. * Fields can have one entry or multiple entries. If a user has more than one id, provide an array that includes all of them. */ export interface EcsUser { changes?: { /** * Name of the directory the user is a member of. * For example, an LDAP or Active Directory domain name. */ domain?: string; /** * User email address. */ email?: string; entity?: { attributes?: { /** * Known redirect URIs or URLs associated with this entity. Typically applicable to Service entities. */ known_redirects?: string | Array; /** * Indicates whether the entity is managed by an external administration or control system. Typically applicable to Host and Service entities. */ managed?: boolean; /** * Indicates whether multi-factor authentication is enabled for this entity. Typically applicable to User entities. */ mfa_enabled?: boolean; /** * Restriction applied to OAuth consent for this entity (for example `admin_only`, `verified_only`, `unrestricted`). Typically applicable to Service entities. */ oauth_consent_restriction?: string; /** * Action-level permissions associated with this entity (not roles or groups). Typically applicable to User, Host, and Service entities. */ permissions?: string | Array; /** * The storage tier or class assigned to an object storage resource (for example S3/GCS/Azure object tiers). Common examples include `STANDARD`, `STANDARD_IA`, `GLACIER`, `COLDLINE`. Typically applicable to Service entities. */ storage_class?: string; }; /** * A set of ephemeral characteristics of the entity, derived from observed behaviors during a specific time period. Usually boolean field data type. Use this field set when you need to capture and track ephemeral characteristics of an entity for advanced searching, correlation of normalized values across different providers/sources and entity types. */ behavior?: Record; /** * An optional field used when a pretty name is desired for entity-centric operations. This field should not be used for correlation with `*.name` fields for entities with dedicated field sets (for example, `host`). */ display_name?: string; /** * A unique identifier for the entity. When multiple identifiers exist, this should be the most stable and commonly used identifier that: 1) persists across the entity's lifecycle, 2) ensures uniqueness within its scope, 3) is commonly used for queries and correlation, and 4) is readily available in most observations (logs/events). For entities with dedicated field sets (for example, host, user), this value should match the corresponding *.id field. Alternative identifiers (for example, ARNs values in AWS, URLs) can be preserved in the raw field. */ id?: string; /** * Indicates the date/time when this entity was last "seen," usually based upon the last event/log that is initiated by this entity. */ last_seen_timestamp?: string; lifecycle?: { /** * Timestamp of the most recent action performed by or attributed to this entity (active use). Distinct from `entity.last_seen_timestamp`, which records when the entity was last observed in data; `last_activity` implies the entity was active, not only seen. Typically applicable to User, Host, and Service entities. */ last_activity?: string; }; /** * Field set for any fields containing numeric entity metrics. These use dynamic field data type mapping. */ metrics?: Record; /** * The name of the entity. The keyword field enables exact matches for filtering and aggregations, while the text field enables full-text search. For entities with dedicated field sets (for example, `host`), this field should mirrors the corresponding *.name value. */ name?: string; /** * Original, unmodified fields from the source system. Usually flattened field data type. While the attributes field should be used for normalized fields requiring advanced queries, this field preserves all source metadata with basic search capabilities. */ raw?: Record; /** * A URI, URL, or other direct reference to access or locate the entity in its source system. This could be an API endpoint, web console URL, or other addressable location. Format can vary by entity type and source system. */ reference?: string; relationships?: { administers?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; depends_on?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; owns?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; supervises?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; }; /** * The module or integration that provided this entity data (similar to event.module). */ source?: string; /** * The specific type designation for the entity as defined by its provider or system. This field provides more granular classification than the type field. Examples: `aws_s3_bucket`, `gcp_cloud_storage_bucket`, `azure_blob_container` would all map to entity type `bucket`. `hardware` , `virtual` , `container` , `node` , `cloud_instance` would all map to entity type `host`. */ sub_type?: string; /** * A standardized high-level classification of the entity. This provides a normalized way to group similar entities across different providers or systems. Example values: `bucket`, `database`, `container`, `function`, `queue`, `host`, `user`, `application`, `session`, `cloud`, `orchestrator`, etc. If an entity is nested under a top-level namespace like `host` or `cloud`, or similar, its type array should include the matching value — for example, `host` or `cloud`. */ type?: string | Array; }; /** * User's full name, if available. */ full_name?: string; group?: { /** * Name of the directory the group is a member of. * For example, an LDAP or Active Directory domain name. */ domain?: string; /** * Unique identifier for the group on the system/platform. */ id?: string; /** * Name of the group. */ name?: string; }; /** * Unique user hash to correlate information for a user in anonymized form. * Useful if `user.id` or `user.name` contain confidential information and cannot be used. */ hash?: string; /** * Unique identifier of the user. */ id?: string; /** * Short name or login of the user. */ name?: string; risk?: { /** * A risk classification level calculated by an internal system as part of entity analytics and entity risk scoring. */ calculated_level?: string; /** * A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring. */ calculated_score?: number; /** * A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring, and normalized to a range of 0 to 100. */ calculated_score_norm?: number; /** * A risk classification level obtained from outside the system, such as from some external Threat Intelligence Platform. */ static_level?: string; /** * A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform. */ static_score?: number; /** * A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform, and normalized to a range of 0 to 100. */ static_score_norm?: number; }; /** * Array of user roles at the time of the event. */ roles?: string | Array; }; /** * Name of the directory the user is a member of. * For example, an LDAP or Active Directory domain name. */ domain?: string; effective?: { /** * Name of the directory the user is a member of. * For example, an LDAP or Active Directory domain name. */ domain?: string; /** * User email address. */ email?: string; entity?: { attributes?: { /** * Known redirect URIs or URLs associated with this entity. Typically applicable to Service entities. */ known_redirects?: string | Array; /** * Indicates whether the entity is managed by an external administration or control system. Typically applicable to Host and Service entities. */ managed?: boolean; /** * Indicates whether multi-factor authentication is enabled for this entity. Typically applicable to User entities. */ mfa_enabled?: boolean; /** * Restriction applied to OAuth consent for this entity (for example `admin_only`, `verified_only`, `unrestricted`). Typically applicable to Service entities. */ oauth_consent_restriction?: string; /** * Action-level permissions associated with this entity (not roles or groups). Typically applicable to User, Host, and Service entities. */ permissions?: string | Array; /** * The storage tier or class assigned to an object storage resource (for example S3/GCS/Azure object tiers). Common examples include `STANDARD`, `STANDARD_IA`, `GLACIER`, `COLDLINE`. Typically applicable to Service entities. */ storage_class?: string; }; /** * A set of ephemeral characteristics of the entity, derived from observed behaviors during a specific time period. Usually boolean field data type. Use this field set when you need to capture and track ephemeral characteristics of an entity for advanced searching, correlation of normalized values across different providers/sources and entity types. */ behavior?: Record; /** * An optional field used when a pretty name is desired for entity-centric operations. This field should not be used for correlation with `*.name` fields for entities with dedicated field sets (for example, `host`). */ display_name?: string; /** * A unique identifier for the entity. When multiple identifiers exist, this should be the most stable and commonly used identifier that: 1) persists across the entity's lifecycle, 2) ensures uniqueness within its scope, 3) is commonly used for queries and correlation, and 4) is readily available in most observations (logs/events). For entities with dedicated field sets (for example, host, user), this value should match the corresponding *.id field. Alternative identifiers (for example, ARNs values in AWS, URLs) can be preserved in the raw field. */ id?: string; /** * Indicates the date/time when this entity was last "seen," usually based upon the last event/log that is initiated by this entity. */ last_seen_timestamp?: string; lifecycle?: { /** * Timestamp of the most recent action performed by or attributed to this entity (active use). Distinct from `entity.last_seen_timestamp`, which records when the entity was last observed in data; `last_activity` implies the entity was active, not only seen. Typically applicable to User, Host, and Service entities. */ last_activity?: string; }; /** * Field set for any fields containing numeric entity metrics. These use dynamic field data type mapping. */ metrics?: Record; /** * The name of the entity. The keyword field enables exact matches for filtering and aggregations, while the text field enables full-text search. For entities with dedicated field sets (for example, `host`), this field should mirrors the corresponding *.name value. */ name?: string; /** * Original, unmodified fields from the source system. Usually flattened field data type. While the attributes field should be used for normalized fields requiring advanced queries, this field preserves all source metadata with basic search capabilities. */ raw?: Record; /** * A URI, URL, or other direct reference to access or locate the entity in its source system. This could be an API endpoint, web console URL, or other addressable location. Format can vary by entity type and source system. */ reference?: string; relationships?: { administers?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; depends_on?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; owns?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; supervises?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; }; /** * The module or integration that provided this entity data (similar to event.module). */ source?: string; /** * The specific type designation for the entity as defined by its provider or system. This field provides more granular classification than the type field. Examples: `aws_s3_bucket`, `gcp_cloud_storage_bucket`, `azure_blob_container` would all map to entity type `bucket`. `hardware` , `virtual` , `container` , `node` , `cloud_instance` would all map to entity type `host`. */ sub_type?: string; /** * A standardized high-level classification of the entity. This provides a normalized way to group similar entities across different providers or systems. Example values: `bucket`, `database`, `container`, `function`, `queue`, `host`, `user`, `application`, `session`, `cloud`, `orchestrator`, etc. If an entity is nested under a top-level namespace like `host` or `cloud`, or similar, its type array should include the matching value — for example, `host` or `cloud`. */ type?: string | Array; }; /** * User's full name, if available. */ full_name?: string; group?: { /** * Name of the directory the group is a member of. * For example, an LDAP or Active Directory domain name. */ domain?: string; /** * Unique identifier for the group on the system/platform. */ id?: string; /** * Name of the group. */ name?: string; }; /** * Unique user hash to correlate information for a user in anonymized form. * Useful if `user.id` or `user.name` contain confidential information and cannot be used. */ hash?: string; /** * Unique identifier of the user. */ id?: string; /** * Short name or login of the user. */ name?: string; risk?: { /** * A risk classification level calculated by an internal system as part of entity analytics and entity risk scoring. */ calculated_level?: string; /** * A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring. */ calculated_score?: number; /** * A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring, and normalized to a range of 0 to 100. */ calculated_score_norm?: number; /** * A risk classification level obtained from outside the system, such as from some external Threat Intelligence Platform. */ static_level?: string; /** * A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform. */ static_score?: number; /** * A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform, and normalized to a range of 0 to 100. */ static_score_norm?: number; }; /** * Array of user roles at the time of the event. */ roles?: string | Array; }; /** * User email address. */ email?: string; entity?: { attributes?: { /** * Known redirect URIs or URLs associated with this entity. Typically applicable to Service entities. */ known_redirects?: string | Array; /** * Indicates whether the entity is managed by an external administration or control system. Typically applicable to Host and Service entities. */ managed?: boolean; /** * Indicates whether multi-factor authentication is enabled for this entity. Typically applicable to User entities. */ mfa_enabled?: boolean; /** * Restriction applied to OAuth consent for this entity (for example `admin_only`, `verified_only`, `unrestricted`). Typically applicable to Service entities. */ oauth_consent_restriction?: string; /** * Action-level permissions associated with this entity (not roles or groups). Typically applicable to User, Host, and Service entities. */ permissions?: string | Array; /** * The storage tier or class assigned to an object storage resource (for example S3/GCS/Azure object tiers). Common examples include `STANDARD`, `STANDARD_IA`, `GLACIER`, `COLDLINE`. Typically applicable to Service entities. */ storage_class?: string; }; /** * A set of ephemeral characteristics of the entity, derived from observed behaviors during a specific time period. Usually boolean field data type. Use this field set when you need to capture and track ephemeral characteristics of an entity for advanced searching, correlation of normalized values across different providers/sources and entity types. */ behavior?: Record; /** * An optional field used when a pretty name is desired for entity-centric operations. This field should not be used for correlation with `*.name` fields for entities with dedicated field sets (for example, `host`). */ display_name?: string; /** * A unique identifier for the entity. When multiple identifiers exist, this should be the most stable and commonly used identifier that: 1) persists across the entity's lifecycle, 2) ensures uniqueness within its scope, 3) is commonly used for queries and correlation, and 4) is readily available in most observations (logs/events). For entities with dedicated field sets (for example, host, user), this value should match the corresponding *.id field. Alternative identifiers (for example, ARNs values in AWS, URLs) can be preserved in the raw field. */ id?: string; /** * Indicates the date/time when this entity was last "seen," usually based upon the last event/log that is initiated by this entity. */ last_seen_timestamp?: string; lifecycle?: { /** * Timestamp of the most recent action performed by or attributed to this entity (active use). Distinct from `entity.last_seen_timestamp`, which records when the entity was last observed in data; `last_activity` implies the entity was active, not only seen. Typically applicable to User, Host, and Service entities. */ last_activity?: string; }; /** * Field set for any fields containing numeric entity metrics. These use dynamic field data type mapping. */ metrics?: Record; /** * The name of the entity. The keyword field enables exact matches for filtering and aggregations, while the text field enables full-text search. For entities with dedicated field sets (for example, `host`), this field should mirrors the corresponding *.name value. */ name?: string; /** * Original, unmodified fields from the source system. Usually flattened field data type. While the attributes field should be used for normalized fields requiring advanced queries, this field preserves all source metadata with basic search capabilities. */ raw?: Record; /** * A URI, URL, or other direct reference to access or locate the entity in its source system. This could be an API endpoint, web console URL, or other addressable location. Format can vary by entity type and source system. */ reference?: string; relationships?: { administers?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; depends_on?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; owns?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; supervises?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; }; /** * The module or integration that provided this entity data (similar to event.module). */ source?: string; /** * The specific type designation for the entity as defined by its provider or system. This field provides more granular classification than the type field. Examples: `aws_s3_bucket`, `gcp_cloud_storage_bucket`, `azure_blob_container` would all map to entity type `bucket`. `hardware` , `virtual` , `container` , `node` , `cloud_instance` would all map to entity type `host`. */ sub_type?: string; /** * A standardized high-level classification of the entity. This provides a normalized way to group similar entities across different providers or systems. Example values: `bucket`, `database`, `container`, `function`, `queue`, `host`, `user`, `application`, `session`, `cloud`, `orchestrator`, etc. If an entity is nested under a top-level namespace like `host` or `cloud`, or similar, its type array should include the matching value — for example, `host` or `cloud`. */ type?: string | Array; }; /** * User's full name, if available. */ full_name?: string; group?: { /** * Name of the directory the group is a member of. * For example, an LDAP or Active Directory domain name. */ domain?: string; /** * Unique identifier for the group on the system/platform. */ id?: string; /** * Name of the group. */ name?: string; }; /** * Unique user hash to correlate information for a user in anonymized form. * Useful if `user.id` or `user.name` contain confidential information and cannot be used. */ hash?: string; /** * Unique identifier of the user. */ id?: string; /** * Short name or login of the user. */ name?: string; risk?: { /** * A risk classification level calculated by an internal system as part of entity analytics and entity risk scoring. */ calculated_level?: string; /** * A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring. */ calculated_score?: number; /** * A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring, and normalized to a range of 0 to 100. */ calculated_score_norm?: number; /** * A risk classification level obtained from outside the system, such as from some external Threat Intelligence Platform. */ static_level?: string; /** * A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform. */ static_score?: number; /** * A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform, and normalized to a range of 0 to 100. */ static_score_norm?: number; }; /** * Array of user roles at the time of the event. */ roles?: string | Array; target?: { /** * Name of the directory the user is a member of. * For example, an LDAP or Active Directory domain name. */ domain?: string; /** * User email address. */ email?: string; entity?: { attributes?: { /** * Known redirect URIs or URLs associated with this entity. Typically applicable to Service entities. */ known_redirects?: string | Array; /** * Indicates whether the entity is managed by an external administration or control system. Typically applicable to Host and Service entities. */ managed?: boolean; /** * Indicates whether multi-factor authentication is enabled for this entity. Typically applicable to User entities. */ mfa_enabled?: boolean; /** * Restriction applied to OAuth consent for this entity (for example `admin_only`, `verified_only`, `unrestricted`). Typically applicable to Service entities. */ oauth_consent_restriction?: string; /** * Action-level permissions associated with this entity (not roles or groups). Typically applicable to User, Host, and Service entities. */ permissions?: string | Array; /** * The storage tier or class assigned to an object storage resource (for example S3/GCS/Azure object tiers). Common examples include `STANDARD`, `STANDARD_IA`, `GLACIER`, `COLDLINE`. Typically applicable to Service entities. */ storage_class?: string; }; /** * A set of ephemeral characteristics of the entity, derived from observed behaviors during a specific time period. Usually boolean field data type. Use this field set when you need to capture and track ephemeral characteristics of an entity for advanced searching, correlation of normalized values across different providers/sources and entity types. */ behavior?: Record; /** * An optional field used when a pretty name is desired for entity-centric operations. This field should not be used for correlation with `*.name` fields for entities with dedicated field sets (for example, `host`). */ display_name?: string; /** * A unique identifier for the entity. When multiple identifiers exist, this should be the most stable and commonly used identifier that: 1) persists across the entity's lifecycle, 2) ensures uniqueness within its scope, 3) is commonly used for queries and correlation, and 4) is readily available in most observations (logs/events). For entities with dedicated field sets (for example, host, user), this value should match the corresponding *.id field. Alternative identifiers (for example, ARNs values in AWS, URLs) can be preserved in the raw field. */ id?: string; /** * Indicates the date/time when this entity was last "seen," usually based upon the last event/log that is initiated by this entity. */ last_seen_timestamp?: string; lifecycle?: { /** * Timestamp of the most recent action performed by or attributed to this entity (active use). Distinct from `entity.last_seen_timestamp`, which records when the entity was last observed in data; `last_activity` implies the entity was active, not only seen. Typically applicable to User, Host, and Service entities. */ last_activity?: string; }; /** * Field set for any fields containing numeric entity metrics. These use dynamic field data type mapping. */ metrics?: Record; /** * The name of the entity. The keyword field enables exact matches for filtering and aggregations, while the text field enables full-text search. For entities with dedicated field sets (for example, `host`), this field should mirrors the corresponding *.name value. */ name?: string; /** * Original, unmodified fields from the source system. Usually flattened field data type. While the attributes field should be used for normalized fields requiring advanced queries, this field preserves all source metadata with basic search capabilities. */ raw?: Record; /** * A URI, URL, or other direct reference to access or locate the entity in its source system. This could be an API endpoint, web console URL, or other addressable location. Format can vary by entity type and source system. */ reference?: string; relationships?: { administers?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; depends_on?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; owns?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; supervises?: { entity?: { /** * Identifiers of referenced entities, using the same meaning as root `entity.id` (stable id for correlation within scope). */ id?: string | Array; }; host?: { /** * Referenced host ids. */ id?: string | Array; /** * Referenced host names. */ name?: string | Array; }; service?: { /** * Referenced service ids. */ id?: string | Array; /** * Referenced service names. */ name?: string | Array; }; user?: { /** * Referenced user directory or AD/LDAP domain names (same semantics as ECS `user.domain`). */ domain?: string | Array; /** * Referenced user email addresses. */ email?: string | Array; /** * Referenced user ids. */ id?: string | Array; /** * Referenced user short names or logins. */ name?: string | Array; }; }; }; /** * The module or integration that provided this entity data (similar to event.module). */ source?: string; /** * The specific type designation for the entity as defined by its provider or system. This field provides more granular classification than the type field. Examples: `aws_s3_bucket`, `gcp_cloud_storage_bucket`, `azure_blob_container` would all map to entity type `bucket`. `hardware` , `virtual` , `container` , `node` , `cloud_instance` would all map to entity type `host`. */ sub_type?: string; /** * A standardized high-level classification of the entity. This provides a normalized way to group similar entities across different providers or systems. Example values: `bucket`, `database`, `container`, `function`, `queue`, `host`, `user`, `application`, `session`, `cloud`, `orchestrator`, etc. If an entity is nested under a top-level namespace like `host` or `cloud`, or similar, its type array should include the matching value — for example, `host` or `cloud`. */ type?: string | Array; }; /** * User's full name, if available. */ full_name?: string; group?: { /** * Name of the directory the group is a member of. * For example, an LDAP or Active Directory domain name. */ domain?: string; /** * Unique identifier for the group on the system/platform. */ id?: string; /** * Name of the group. */ name?: string; }; /** * Unique user hash to correlate information for a user in anonymized form. * Useful if `user.id` or `user.name` contain confidential information and cannot be used. */ hash?: string; /** * Unique identifier of the user. */ id?: string; /** * Short name or login of the user. */ name?: string; risk?: { /** * A risk classification level calculated by an internal system as part of entity analytics and entity risk scoring. */ calculated_level?: string; /** * A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring. */ calculated_score?: number; /** * A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring, and normalized to a range of 0 to 100. */ calculated_score_norm?: number; /** * A risk classification level obtained from outside the system, such as from some external Threat Intelligence Platform. */ static_level?: string; /** * A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform. */ static_score?: number; /** * A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform, and normalized to a range of 0 to 100. */ static_score_norm?: number; }; /** * Array of user roles at the time of the event. */ roles?: string | Array; }; }