Hierarchy

  • SecurityMonitoringApi

Constructors

Properties

Methods

activateContentPack activateIntegration attachCase attachJiraIssue attachLinearIssue attachServiceNowTicket batchGetSecurityMonitoringDatasetDependencies bulkConvertExistingSecurityMonitoringRules bulkCreateSampleLogGenerationSubscriptions bulkDeleteSecurityMonitoringRules bulkEditSecurityMonitoringSignals bulkEditSecurityMonitoringSignalsAssignee bulkEditSecurityMonitoringSignalsState bulkExportSecurityMonitoringRules bulkExportSecurityMonitoringTerraformResources cancelHistoricalJob cancelSecurityMonitoringBatchMigration convertExistingSecurityMonitoringRule convertJobResultToSignal convertSecurityMonitoringRuleFromJSONToTerraform convertSecurityMonitoringTerraformResource createCases createCustomFramework createIoCTriageState createJiraIssues createLinearIssues createSampleLogGenerationSubscription createSecurityFilter createSecurityFindingsAutomationDueDateRule createSecurityFindingsAutomationInboxRule createSecurityFindingsAutomationMuteRule createSecurityFindingsAutomationSeverityModifierRule createSecurityFindingsAutomationTicketCreationRule createSecurityMonitoringBatchMigration createSecurityMonitoringBatchMigrationResources createSecurityMonitoringCriticalAsset createSecurityMonitoringDataset createSecurityMonitoringIntegrationConfig createSecurityMonitoringRule createSecurityMonitoringSuppression createServiceNowTickets createSignalNotificationRule createStaticAnalysisAst createStaticAnalysisServerAnalysis createVulnerabilityNotificationRule deactivateContentPack deactivateIntegration deleteCustomFramework deleteHistoricalJob deleteSampleLogGenerationSubscription deleteSecurityFilter deleteSecurityFindingsAutomationDueDateRule deleteSecurityFindingsAutomationInboxRule deleteSecurityFindingsAutomationMuteRule deleteSecurityFindingsAutomationSeverityModifierRule deleteSecurityFindingsAutomationTicketCreationRule deleteSecurityMonitoringBatchMigration deleteSecurityMonitoringBatchMigrationResources deleteSecurityMonitoringCriticalAsset deleteSecurityMonitoringDataset deleteSecurityMonitoringIntegrationConfig deleteSecurityMonitoringRule deleteSecurityMonitoringSuppression deleteSignalNotificationRule deleteVulnerabilityNotificationRule detachCase disableSecurityFindingsAutomationDefaultInboxRule editSecurityMonitoringSignal editSecurityMonitoringSignalAssignee editSecurityMonitoringSignalIncidents editSecurityMonitoringSignalState enableSecurityFindingsAutomationDefaultInboxRule exportSecurityMonitoringTerraformResource getAWSIdentityCenterAWSAccounts getContentPacksStates getCriticalAssetsAffectingRule getCustomFramework getEntityContext getEntityContextRecentlyUpdated getEntraIdAzureAppRegistrations getFinding getHistoricalJob getIndicatorOfCompromise getInvestigationLogQueriesMatchingSignal getMatchingSignals getResourceEvaluationFilters getRuleVersionHistory getSBOM getSecretsRules getSecurityFilter getSecurityFindingsAutomationDefaultInboxRule getSecurityFindingsAutomationDueDateRule getSecurityFindingsAutomationInboxRule getSecurityFindingsAutomationMuteRule getSecurityFindingsAutomationSeverityModifierRule getSecurityFindingsAutomationTicketCreationRule getSecurityMonitoringCriticalAsset getSecurityMonitoringDataset getSecurityMonitoringDatasetByVersion getSecurityMonitoringDatasetVersionHistory getSecurityMonitoringHistsignal getSecurityMonitoringHistsignalsByJobId getSecurityMonitoringIntegrationConfig getSecurityMonitoringRule getSecurityMonitoringRuleProposal getSecurityMonitoringSignal getSecurityMonitoringSuppression getSignalEntities getSignalNotificationRule getSignalNotificationRules getSingleEntityContext getStaticAnalysisDefaultRulesets getStaticAnalysisNodeTypes getStaticAnalysisRuleset getStaticAnalysisTreeSitterWasm getSuggestedActionsMatchingSignal getSuppressionVersionHistory getSuppressionsAffectingFutureRule getSuppressionsAffectingRule getVulnerabilityNotificationRule getVulnerabilityNotificationRules importSecurityVulnerabilities listAssetsSBOMs listFindings listFindingsWithPagination listHistoricalJobs listIndicatorsOfCompromise listMultipleRulesets listSampleLogGenerationSubscriptions listScannedAssetsMetadata listSecurityFilterVersions listSecurityFilters listSecurityFindings listSecurityFindingsAutomationDefaultInboxRules listSecurityFindingsAutomationDueDateRules listSecurityFindingsAutomationInboxRules listSecurityFindingsAutomationMuteRules listSecurityFindingsAutomationSeverityModifierRules listSecurityFindingsAutomationTicketCreationRules listSecurityFindingsWithPagination listSecurityMonitoringBatchMigrationResources listSecurityMonitoringBatchMigrations listSecurityMonitoringCriticalAssets listSecurityMonitoringDatasets listSecurityMonitoringHistsignals listSecurityMonitoringIntegrationConfigs listSecurityMonitoringRules listSecurityMonitoringSignals listSecurityMonitoringSignalsWithPagination listSecurityMonitoringSuppressions listStaticAnalysisCodegenRulesets listVulnerabilities listVulnerableAssets muteSecurityFindings patchSignalNotificationRule patchVulnerabilityNotificationRule publishSecurityMonitoringBatchMigration reorderSecurityFindingsAutomationDueDateRules reorderSecurityFindingsAutomationInboxRules reorderSecurityFindingsAutomationMuteRules reorderSecurityFindingsAutomationSeverityModifierRules reorderSecurityFindingsAutomationTicketCreationRules restoreSecurityMonitoringRule runHistoricalJob searchRemediationGroups searchRemediationGroupsWithPagination searchSecurityFindings searchSecurityFindingsWithPagination searchSecurityMonitoringHistsignals searchSecurityMonitoringSignals searchSecurityMonitoringSignalsWithPagination sendSecurityMonitoringNotificationPreview startSecurityMonitoringBatchMigration startSecurityMonitoringRuleProposal testExistingSecurityMonitoringRule testSecurityMonitoringRule updateCustomFramework updateFindingsAssignee updateFindingsSeverity updateResourceEvaluationFilters updateSecurityFilter updateSecurityFindingsAutomationDueDateRule updateSecurityFindingsAutomationInboxRule updateSecurityFindingsAutomationMuteRule updateSecurityFindingsAutomationSeverityModifierRule updateSecurityFindingsAutomationTicketCreationRule updateSecurityMonitoringBatchMigration updateSecurityMonitoringBatchMigrationResource updateSecurityMonitoringCriticalAsset updateSecurityMonitoringDataset updateSecurityMonitoringIntegrationConfig updateSecurityMonitoringRule updateSecurityMonitoringSuppression validateSecurityMonitoringIntegrationConfig validateSecurityMonitoringIntegrationCredentials validateSecurityMonitoringRule validateSecurityMonitoringSuppression

Constructors

Properties

configuration: Configuration
requestFactory: SecurityMonitoringApiRequestFactory
responseProcessor: SecurityMonitoringApiResponseProcessor

Methods

  • Create a new notification rule for security signals and return the created rule. Set selectors.trigger_source to security_signals. The signal routes only return rules with that trigger source, so a rule with security_findings is read through GetVulnerabilityNotificationRules instead. To notify on security findings, use CreateVulnerabilityNotificationRule. selectors.rule_types accepts the signal rule types application_security, log_detection, workload_security, and signal_correlation. Give at least one; finding rule types are rejected. selectors.severities accepts critical, high, medium, low, and info; unknown is rejected. selectors.query is at most 6,000 characters. Each entry in targets is a handle that starts with @, such as an email address (@john.doe@email.com) or an integration handle (@slack-<VALUES>); see targets. time_aggregation is only available for finding-based rules: omit it or set it to 0. Trial organizations can't use email address targets: the request returns 400. Rule names must be unique in the organization (case-insensitive); a duplicate name returns 409. An organization can have at most 1,000 signal-based rules; past that, the request returns 429.

    Parameters

    Returns Promise<NotificationRuleResponse>

  • Create a new notification rule for security findings and return the created rule. Set selectors.trigger_source to security_findings. The finding routes only return rules with that trigger source, so a rule with security_signals is read through GetSignalNotificationRules instead. To notify on security signals, use CreateSignalNotificationRule. selectors.rule_types accepts the finding rule types application_code_vulnerability, application_library_vulnerability, attack_path, container_image_vulnerability, identity_risk, misconfiguration, api_security, host_vulnerability, iac_misconfiguration, sast_vulnerability, secret_vulnerability, workload_activity, sensitive_data, and serverless_function_code_vulnerability. Give at least one; signal rule types are rejected. selectors.severities accepts critical, high, medium, low, and info; unknown is rejected. selectors.query is at most 6,000 characters, and can't filter on attributes in the @workflow or @_dd namespaces, on @status, or on @compliance.evaluation. Each entry in targets is a handle that starts with @, such as an email address (@john.doe@email.com) or an integration handle (@slack-<VALUES>); see targets. time_aggregation is a rolling window in seconds, from 1800 (30 minutes) to 2592000 (30 days); omit it or set it to 0 for no aggregation. Trial organizations can't use email address targets: the request returns 400. Rule names must be unique in the organization (case-insensitive); a duplicate name returns 409. An organization can have at most 1,000 finding-based rules; past that, the request returns 429.

    Parameters

    Returns Promise<NotificationRuleResponse>

  • Returns the list of notification rules for security signals. A signal-based notification rule sends a notification to its targets when a security signal matches its selectors (rule types, severities, and query), so you don't have to set up notifications on each detection rule. Use the signal routes for rules whose trigger_source is security_signals. For rules on security findings, such as vulnerabilities and misconfigurations (trigger_source security_findings), use GetVulnerabilityNotificationRules. This route only returns rules whose trigger_source is security_signals. The response isn't paginated: it contains every such rule in the organization, and the route takes no paging parameters.

    Parameters

    Returns Promise<NotificationRulesListResponse>

  • Returns the list of notification rules for security findings. A finding-based notification rule sends a notification to its targets when a security finding, such as a vulnerability or a misconfiguration, matches its selectors (rule types, severities, and query). It can group notifications over a time_aggregation window. Use the finding routes (under /api/v2/security/vulnerabilities/) for rules whose trigger_source is security_findings. For rules on security signals (trigger_source security_signals), use GetSignalNotificationRules. This route only returns rules whose trigger_source is security_findings. The response isn't paginated: it contains every such rule in the organization, and the route takes no paging parameters.

    Parameters

    Returns Promise<NotificationRulesListResponse>

  • Import security vulnerabilities from an external scanner in CycloneDX 1.5 format.

    The payload is validated against the CycloneDX 1.5 JSON schema and the following additional constraints:

    • metadata, metadata.component, and metadata.component.name are required.
    • metadata.tools.components must contain exactly one element with a name field.
    • components cannot be empty. Each component requires bom-ref, type, name, and version.
    • When type is library, purl is required and must be a valid PURL.
    • When type is operating-system, name must be one of the supported OS values: alma, alpine, amazon, azurelinux, bottlerocket, cbl-mariner, chainguard, centos, debian, fedora, opensuse, opensuse-leap, opensuse-tumbleweed, oracle, photon, redhat, rocky, slem, sles, ubuntu, wolfi, windows, macos.
    • vulnerabilities cannot be empty. Each vulnerability requires id, exactly one ratings entry, and at least one affects entry.
    • Each affects[].ref must match a bom-ref value in components.

    Parameters

    Returns Promise<void>

  • Get a list of findings. These include both misconfigurations and identity risks.

    Note: To filter and return only identity risks, add the following query parameter: ?filter[tags]=dd_rule_type:ciem

    Filtering

    Filters can be applied by appending query parameters to the URL.

    • Using a single filter: ?filter[attribute_key]=attribute_value
    • Chaining filters: ?filter[attribute_key]=attribute_value&filter[attribute_key]=attribute_value...
    • Filtering on tags: ?filter[tags]=tag_key:tag_value&filter[tags]=tag_key_2:tag_value_2

    Here, attribute_key can be any of the filter keys described further below.

    Query parameters of type integer support comparison operators (>, >=, <, <=). This is particularly useful when filtering by evaluation_changed_at or resource_discovery_timestamp. For example: ?filter[evaluation_changed_at]=>20123123121.

    You can also use the negation operator on strings. For example, use filter[resource_type]=-aws* to filter for any non-AWS resources.

    The operator must come after the equal sign. For example, to filter with the >= operator, add the operator after the equal sign: filter[evaluation_changed_at]=>=1678809373257.

    Query parameters must be only among the documented ones and with values of correct types. Duplicated query parameters (e.g. filter[status]=low&filter[status]=info) are not allowed.

    Additional extension fields

    Additional extension fields are available for some findings.

    The data is available when you include the query parameter ?detailed_findings=true in the request.

    The following fields are available for findings:

    • external_id: The resource external ID related to the finding.
    • description: The description and remediation steps for the finding.
    • datadog_link: The Datadog relative link for the finding.
    • ip_addresses: The list of private IP addresses for the resource related to the finding.

    Response

    The response includes an array of finding objects, pagination metadata, and a count of items that match the query.

    Each finding object contains the following:

    • The finding ID that can be used in a GetFinding request to retrieve the full finding details.
    • Core attributes, including status, evaluation, high-level resource details, muted state, and rule details.
    • evaluation_changed_at and resource_discovery_date time stamps.
    • An array of associated tags.

    Parameters

    Returns Promise<ListFindingsResponse>

  • Get a list of vulnerabilities.

    Pagination is enabled by default in both vulnerabilities and assets. The size of the page varies depending on the endpoint and cannot be modified. To automate the request of the next page, you can use the links section in the response.

    This endpoint will return paginated responses. The pages are stored in the links section of the response:

    {
    "data": [...],
    "meta": {...},
    "links": {
    "self": "https://.../api/v2/security/vulnerabilities",
    "first": "https://.../api/v2/security/vulnerabilities?page[number]=1&page[token]=abc",
    "last": "https://.../api/v2/security/vulnerabilities?page[number]=43&page[token]=abc",
    "next": "https://.../api/v2/security/vulnerabilities?page[number]=2&page[token]=abc"
    }
    }
    • links.previous is empty if the first page is requested.
    • links.next is empty if the last page is requested.

    Token

    Vulnerabilities can be created, updated or deleted at any point in time.

    Upon the first request, a token is created to ensure consistency across subsequent paginated requests.

    A token is valid only for 24 hours.

    First request

    We consider a request to be the first request when there is no page[token] parameter.

    The response of this first request contains the newly created token in the links section.

    This token can then be used in the subsequent paginated requests.

    Note: The first request may take longer to complete than subsequent requests.

    Subsequent requests

    Any request containing valid page[token] and page[number] parameters will be considered a subsequent request.

    If the token is invalid, a 404 response will be returned.

    If the page number is invalid, a 400 response will be returned.

    The returned token is valid for all requests in the pagination sequence. To send paginated requests in parallel, reuse the same token and change only the page[number] parameter.

    Filtering

    The request can include some filter parameters to filter the data to be retrieved. The format of the filter parameters follows the JSON:API format: filter[$prop_name], where prop_name is the property name in the entity being filtered by.

    All filters can include multiple values, where data will be filtered with an OR clause: filter[title]=Title1,Title2 will filter all vulnerabilities where title is equal to Title1 OR Title2.

    String filters are case sensitive.

    Boolean filters accept true or false as values.

    Number filters must include an operator as a second filter input: filter[$prop_name][$operator]. For example, for the vulnerabilities endpoint: filter[cvss.base.score][lte]=8.

    Available operators are: eq (==), lt (<), lte (<=), gt (>) and gte (>=).

    Metadata

    Following JSON:API format, object including non-standard meta-information.

    This endpoint includes the meta member in the response. For more details on each of the properties included in this section, check the endpoints response tables.

    {
    "data": [...],
    "meta": {
    "total": 1500,
    "count": 18732,
    "token": "some_token"
    },
    "links": {...}
    }

    Extensions

    Requests may include extensions to modify the behavior of the requested endpoint. The filter parameters follow the JSON:API format format: ext:$extension_name, where extension_name is the name of the modifier that is being applied.

    Extensions can only include one value: ext:modifier=value.

    Parameters

    Returns Promise<ListVulnerabilitiesResponse>

  • Mute or unmute security findings. Mute security findings that you want to ignore, such as false positives, accepted risks, or findings with a pending fix. Datadog issue explorers hide muted findings by default, and muted misconfigurations no longer count toward the posture score. Datadog automatically unmutes findings when their expire_at date passes. To unmute them earlier, set is_muted to false. You can mute or unmute up to 100 security findings per request. The request body must include is_muted and reason attributes. The allowed reasons depend on whether the finding is being muted or unmuted:

    • To mute a finding: PENDING_FIX, FALSE_POSITIVE, OTHER, NO_FIX, DUPLICATE, RISK_ACCEPTED.
    • To unmute a finding: NO_PENDING_FIX, HUMAN_ERROR, NO_LONGER_ACCEPTED_RISK, OTHER.

    Parameters

    Returns Promise<MuteFindingsResponse>

  • Partially update the notification rule. All fields except version are optional; if a field is not provided, it is not updated. Give at least one field to change. Get the rule id from GetSignalNotificationRules, then read the rule with GetSignalNotificationRule and send its current version. The version is incremented each time the rule is modified. A version that isn't the current one returns 409: fetch the rule again and retry. A missing or 0 version is rejected. If you send selectors, it must include trigger_source, and every entry in selectors.rule_types must match that trigger source (give at least one). For security_findings, the rule types are application_code_vulnerability, application_library_vulnerability, attack_path, container_image_vulnerability, identity_risk, misconfiguration, api_security, host_vulnerability, iac_misconfiguration, sast_vulnerability, secret_vulnerability, workload_activity, sensitive_data, and serverless_function_code_vulnerability. For security_signals, they are application_security, log_detection, workload_security, and signal_correlation. Changing trigger_source moves the rule to the other family's routes, and the change counts toward that family's limit of 1,000 rules. selectors.severities accepts critical, high, medium, low, and info; unknown is rejected. selectors.query is at most 6,000 characters. Finding-based rules can't filter on attributes in the @workflow or @_dd namespaces, on @status, or on @compliance.evaluation. Each entry in targets is a handle that starts with @, such as an email address (@john.doe@email.com) or an integration handle (@slack-<VALUES>); see targets. Trial organizations can't use email address targets: the request returns 400.

    Parameters

    Returns Promise<NotificationRuleResponse>

  • Partially update the notification rule. All fields except version are optional; if a field is not provided, it is not updated. Give at least one field to change. Get the rule id from GetVulnerabilityNotificationRules, then read the rule with GetVulnerabilityNotificationRule and send its current version. The version is incremented each time the rule is modified. A version that isn't the current one returns 409: fetch the rule again and retry. A missing or 0 version is rejected. If you send selectors, it must include trigger_source, and every entry in selectors.rule_types must match that trigger source (give at least one). For security_findings, the rule types are application_code_vulnerability, application_library_vulnerability, attack_path, container_image_vulnerability, identity_risk, misconfiguration, api_security, host_vulnerability, iac_misconfiguration, sast_vulnerability, secret_vulnerability, workload_activity, sensitive_data, and serverless_function_code_vulnerability. For security_signals, they are application_security, log_detection, workload_security, and signal_correlation. Changing trigger_source moves the rule to the other family's routes, and the change counts toward that family's limit of 1,000 rules. selectors.severities accepts critical, high, medium, low, and info; unknown is rejected. selectors.query is at most 6,000 characters. Finding-based rules can't filter on attributes in the @workflow or @_dd namespaces, on @status, or on @compliance.evaluation. Each entry in targets is a handle that starts with @, such as an email address (@john.doe@email.com) or an integration handle (@slack-<VALUES>); see targets. Trial organizations can't use email address targets: the request returns 400.

    Parameters

    Returns Promise<NotificationRuleResponse>

  • Send a notification preview to test that a notification rule's targets are properly configured. The request body has the same shape as the body of CreateSignalNotificationRule and CreateVulnerabilityNotificationRule. The preview sends test notifications to the targets but doesn't save a notification rule. To save the rule, use CreateSignalNotificationRule or CreateVulnerabilityNotificationRule.

    Fields to set in data.attributes:

    • selectors.trigger_source: security_signals for a signal-based rule, or security_findings for a rule on security findings and vulnerabilities.
    • selectors.rule_types: with security_signals, any of application_security, log_detection, workload_security and signal_correlation. With security_findings, any of application_code_vulnerability, application_library_vulnerability, attack_path, container_image_vulnerability, identity_risk, misconfiguration, api_security, host_vulnerability, iac_misconfiguration, sast_vulnerability, secret_vulnerability, workload_activity, sensitive_data and serverless_function_code_vulnerability. Set at least one rule type. An empty list, or a rule type that doesn't match selectors.trigger_source, is rejected with HTTP 400. The preview runs once for each rule type in this list.
    • selectors.severities: any of critical, high, medium, low and info. The value unknown is rejected with HTTP 400.
    • selectors.query: one or several key:value pairs on tags and attributes, for example env:prod, up to 6,000 characters.
    • targets: a list of 1 to 20 notification handles, each starting with @ and up to 500 characters. Use @<EMAIL> for an email address, @slack-<CHANNEL> or @slack-<ACCOUNT>-<CHANNEL> for a Slack channel, @pagerduty-<SERVICE_NAME> for a PagerDuty service, and @webhook-<WEBHOOK_NAME> for a webhook. Other integrations use @<INTEGRATION_NAME>-<VALUES>, such as @teams- or @jira-. Handles that contain parentheses () are not supported. In HIPAA-compliant organizations, webhook targets are rejected with a 403. With security_findings, @case-, @incident-, @jira- and @linear- targets are rejected with HTTP 400.
    • time_aggregation: with security_signals, leave it out or set it to 0. With security_findings, leave it out, set it to 0, or set it between 1,800 and 2,592,000 seconds (30 minutes to 30 days). @workflow- targets are rejected when it's greater than 0.

    The integration behind each target (Slack, PagerDuty, and so on) must already be configured in Datadog. The response has one result per rule type. SUCCESS means a matching event was found and the test notification was queued. DEFAULT means no matching event was found and a placeholder test notification was queued instead. ERROR means the test notification couldn't be built or queued. A queued notification can still fail to reach its target later, for example when the target's integration isn't configured or a target team doesn't exist, and the response doesn't report it.

    Parameters

    Returns Promise<NotificationRulePreviewResponse>

  • Start translating the pending resources of a draft batch migration into Cloud SIEM detection rules. The batch migration moves to in_progress, and its resources are translated asynchronously. Once no resource is pending or in_progress, the batch migration moves to completed. Starting an in_progress batch migration again does not queue duplicate work, so the request can be safely retried, including after a timeout or a 5xx error. Returns 409 Conflict if the batch migration is completed or canceled.

    An organization can translate up to 2000 resources in total across all of its batch migrations. Resources that were already processed count toward this limit even after they are deleted, and pending resources of in_progress batch migrations reserve capacity. Returns 409 Conflict if starting the batch migration would exceed this limit. To request a higher limit for your organization, contact Datadog support.

    Parameters

    Returns Promise<void>

  • Set or clear the manual severity override of security findings.

    You can update up to 100 security findings per request. Use the set action with a value to apply a manual severity override. The allowed values are critical, high, medium, low, and info. value is required for set and must be omitted for clear. The info value sets the lowest severity the finding type allows. Use the clear action to remove a manual severity override. clear does not remove a severity set by an automation rule. The optional description is accepted with both actions and has a limit of 280 characters.

    Auto-closed findings are excluded. Findings whose severity was set by an automation rule are skipped and listed in the response meta.warnings. If every finding is skipped this way, the request fails with a 400 error. Findings that cannot be found are skipped without a warning. The request fails with a 404 error only if none of the findings can be found.

    Parameters

    Returns Promise<SeverityOverrideResponse>

Generated using TypeDoc