Skip to main content

security_entity_risk_scores

Creates, updates, deletes, gets or lists a security_entity_risk_scores resource.

Overview

Namesecurity_entity_risk_scores
TypeResource
Iddatadog.security.security_entity_risk_scores

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier for the entity (example: arn:aws:iam::123456789012:user/john.doe)
attributesobjectAttributes of an entity risk score.
typestringResource type. (SecurityEntityRiskScore) (example: SecurityEntityRiskScore)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_entity_risk_scoreselectentity_idGet the risk score for a specific entity by its ID. Returns security risk assessment including risk score, severity, detected signals, misconfigurations, and identity risks.
list_entity_risk_scoresselectfrom, to, page[size], page[number], page[query_id], filter[sort], filter[query], entity_typeGet a list of entity risk scores for your organization. Entity risk scores provide security risk assessment for entities like cloud resources, identities, or services based on detected signals, misconfigurations, and identity risks.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
entity_idstringThe URL-encoded unique identifier for the entity.
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
entity_typearrayFilter by entity type(s). Can specify multiple values. (wire: entityType)
filter[query]stringSupports filtering by entity attributes, risk scores, severity, and more. Example: severity:critical AND entityType:aws_iam_user
filter[sort]stringSort order for results. Format: field:direction where direction is asc or desc. Supported fields: riskScore, lastDetected, firstDetected, entityName, signalsDetected.
frominteger (int64)Start time for the query in Unix timestamp (milliseconds). Defaults to 2 weeks ago.
page[number]integer (int64)Page number to return (1-indexed).
page[query_id]stringQuery ID for pagination consistency. (wire: page[queryId])
page[size]integer (int64)Size of the page to return. Maximum is 1000.
tointeger (int64)End time for the query in Unix timestamp (milliseconds). Defaults to now.

SELECT examples

Get the risk score for a specific entity by its ID. Returns security risk assessment including risk score, severity, detected signals, misconfigurations, and identity risks.

SELECT
id,
attributes,
type
FROM datadog.security.security_entity_risk_scores
WHERE entity_id = '{{ entity_id }}' -- required
;