Selectors are used to filter security issues for which notifications should be generated. Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source. Only the trigger_source field is required.

Hierarchy

  • Selectors

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
query?: string

The query is composed of one or several key:value pairs, which can be used to filter security issues on tags and attributes. It 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.

ruleTypes?: RuleTypesItems[]

Security rule types used as filters in security rules. Signal-based notification rules accept application_security, log_detection, workload_security, and signal_correlation. Finding-based notification rules accept 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. Rule types that don't match the rule's trigger_source are rejected.

severities?: RuleSeverity[]

The security rules severities to consider. Allowed values are critical, high, medium, low, and info; unknown is rejected.

triggerSource: TriggerSource

The type of security issues on which the rule applies. Notification rules based on security signals need to use the trigger source "security_signals", while notification rules based on security findings need to use the trigger source "security_findings".

Generated using TypeDoc