data_protection_policy
Manages a Falcon Data Protection policy for a single platform, including its settings, assigned host groups, and assigned classifications.
API Scopes
Section titled “API Scopes”The following API scopes are required:
- Data Protection: READ
- Data Protection: WRITE
Example Usage
Section titled “Example Usage”terraform { required_providers { crowdstrike = { source = "registry.terraform.io/crowdstrike/crowdstrike" } }}
provider "crowdstrike" { cloud = "us-2"}
resource "crowdstrike_data_protection_policy" "example" { platform_name = "Windows" # Valid values: "Windows", "Mac" name = "engineering-endpoints" description = "Data protection for engineering workstations" enabled = true
host_groups = [crowdstrike_host_group.engineering.id] classifications = ["3a1b5c7d9e0f42a8b6c4d2e0f8a6b4c2"]
content_inspection = true context_inspection = true clipboard_inspection = true inspection_depth = "balanced" inspection_confidence = "medium"}Schema
Section titled “Schema”Required
Section titled “Required”name(String) Name of the policy.platform_name(String) Platform the policy applies to. AcceptsWindowsorMac. Changing this causes a replace.
Optional
Section titled “Optional”be_custom_splash_message(String) Custom text for the browser extension splash dialog. Omit the attribute to use the Falcon default text,Processing. Please wait..be_exclude_domains(Set of String) Domain patterns excluded from visibility and enforcement by the Falcon browser extension, for example*://*.example.com/*. No events are generated from excluded domains. These are the tags in the console’s Exclude domains control.
The patterns are stored as a single comma-separated value that must be at most 2048 characters. Omit the attribute to exclude no domains; an explicitly empty set is rejected.
be_paste_clipboard_block_over_max_size(Boolean) Whentrue, pastes exceedingbe_paste_clipboard_max_sizeare blocked regardless of content. Defaults tofalse.be_paste_clipboard_max_size(Number) Maximum clipboard payload size evaluated on paste, expressed inbe_paste_clipboard_max_size_unit. Must be greater than0and at most65536regardless of the unit. Defaults to0.0625, which with the default unit ofKiBis 64 bytes.be_paste_clipboard_max_size_unit(String) Unit forbe_paste_clipboard_max_size. AcceptsBytesorKiB. Defaults toKiB.be_paste_clipboard_min_size(Number) Minimum clipboard payload size evaluated on paste, expressed inbe_paste_clipboard_min_size_unit. Must be greater than0and at most65536regardless of the unit. Defaults to32, which with the default unit ofBytesis 32 bytes.be_paste_clipboard_min_size_unit(String) Unit forbe_paste_clipboard_min_size. AcceptsBytesorKiB. Defaults toBytes.be_paste_timeout_milliseconds(Number) How long the browser extension waits for a response when pasting data before timing out, in milliseconds. Must be between1and10000. Defaults to800.be_paste_timeout_response(String) Extension behavior when a paste evaluation times out.allowfails open,blockfails closed. Defaults toallow.be_splash_screen(Boolean) Whether the browser extension shows a splash screen while a file is being evaluated. Defaults totrue.be_upload_timeout_response(String) Extension behavior when an upload evaluation times out.allowfails open,blockfails closed. Defaults toallow.be_upload_timeout_seconds(Number) How long the browser extension waits for a response when uploading data before timing out, in seconds. Must be between1and300. Defaults to40.block_all_data_access(Boolean) Windows only. Blocks all data access via Firefox and Internet Explorer. Requiresbrowsers_without_active_extensionto beblock_policy. Defaults tofalse.browsers_without_active_extension(String) Windows only. How browsers without an active Falcon extension handle data uploads, including Firefox, Internet Explorer, and incognito sessions.allowpermits all uploads;block_policyblocks uploads matching a classification. Defaults toallow.
~> Note On Mac, uploads from browsers without the extension active are neither monitored nor blocked, so Mac policies have no equivalent setting.
classifications(Set of String) Classification IDs assigned to this policy. Omit the attribute to assign no classifications; an explicitly empty set is rejected.clipboard_inspection(Boolean) Detects egress when classified data is pasted from the clipboard in supported browsers. Defaults tofalse.clipboard_web_origin(Boolean) Tracks and attributes web sources for clipboard content copied from web applications. Requirescontext_inspectionto betrue. Defaults tofalse.content_inspection(Boolean) Inspects egressing data against the content patterns used by this policy’s classifications. Defaults totrue.context_inspection(Boolean) Gives insight into data sources, assigned sensitivity labels, and file types, for data in motion and at rest. Defaults totrue.custom_allowed_action_notification(String) Custom text shown to end users when a rule allows an action. Omit the attribute to use the Falcon default text,An action has been allowed and logged by your organization's data protection policy..custom_blocked_action_notification(String) Custom text shown to end users when a rule blocks an action. Omit the attribute to use the Falcon default text,An action has been blocked by your organization's data protection policy..description(String) Description of the policy.enable_ocr(Boolean) Mac only. Extracts and classifies sensitive text from image files such as screenshots and photos during data egress. Requirescontent_inspectionto betrue. Defaults totrue.enabled(Boolean) Whether the policy is enabled. Defaults tofalse.end_user_encryption_activity(Boolean) Windows only. When data encryption occurs, stores a copy of the original data in a protected folder on the host so it remains retrievable for 30 days. Requiresevidence_storageto betrue. Defaults tofalse.euj_business_purposes_enabled(Boolean) Whether the built-inBusiness purposesoption is offered in the end user justification dialog. Its text is fixed by Falcon. At least two options in total must be enabled. Defaults totrue.euj_company_logo(String) Company logo shown in the end user justification dialog, as a base64 PNG data URI. The image must be 100px by 100px with a transparent background.euj_custom_dropdown_options(List of String) Custom justification options offered in the end user justification dialog, shown after the two built-in options in the order defined here. At most two may be defined. In the Falcon console these are the rows added with Add custom justification under EUJ dialog box > Dropdown options.
At least two options in total, built-in or custom, must be enabled.
euj_custom_header_text(String) Custom header text for the end user justification dialog. Omit the attribute to use the built-in Falcon message.euj_dialog_timeout(Number) Timeout for the end user justification dialog, in seconds. Must be between60and420. If the user provides no justification the egress is blocked. Defaults to120.euj_personal_use_enabled(Boolean) Whether the built-inPersonal useoption is offered in the end user justification dialog. Its text is fixed by Falcon. At least two options in total must be enabled. Defaults totrue.euj_require_additional_details(Boolean) Whentrue, the end user must fill in the additional details box to proceed with a justification. Defaults totrue.evidence_storage(Boolean) Windows only. Allows users with the Data Protection Forensics Manager role to request and download files for egress events. Files larger thanmax_file_sizecannot be retrieved. Defaults tofalse.evidence_storage_max_free_space_percent(Number) Windows only. Maximum percentage of free disk space evidence storage may consume. Must be between1and90. The smaller of this andevidence_storage_max_size_gibtakes priority. Requiresevidence_storageto betrue. Defaults to2.evidence_storage_max_size_gib(Number) Windows only. Maximum disk space in GiB that evidence storage may use on a host. Must be between1and100. When full, files are deleted first-in first-out. Requiresevidence_storageto betrue. Defaults to1.host_groups(Set of String) Host group IDs assigned to this policy. Omit the attribute to assign no host groups; an explicitly empty set is rejected.inspection_confidence(String) Minimum confidence level for reporting content matches.lowreports more matches,highreports only high-confidence matches. Requirescontent_inspectionto betrue. Defaults tomedium.inspection_depth(String) Inspection depth for data in motion. Requirescontent_inspectionto betrue. Defaults tobalanced.max_file_size(Number) Largest file the sensor inspects for classified content, expressed inmax_file_size_unit. Files above this size are not assessed against classification definitions. Defaults to104857600bytes (100 MiB).
The accepted range depends on the unit, because the value must be between 512 and 524288000 as written and at most 524288000 bytes (500 MiB) once converted: 512 to 524288000 for Bytes, 512 to 524288 for KB, and 512 to 524.288 for MB. Bytes is the only unit that can express the whole range.
The console shows this control in MiB, so a console value of 100 MiB is 104857600 here.
max_file_size_unit(String) Unit formax_file_size. AcceptsBytes,KB, orMB, whereKBandMBare decimal multiples of1000and1000000. Defaults toBytes.minimum_similarity_threshold(String) Minimum percentage of similar content required for an egress event to be monitored. Requiressimilarity_detectionto betrue. Defaults to80.network_inspection(Boolean) Windows only. Detects egress of classified data via network traffic. Network inspection only supports the web destinations listed in the Falcon documentation. Defaults tofalse.network_inspection_files_exceeding_size_limit(String) Windows only. How network inspection handles file uploads larger than its 1 MiB ceiling.allowpermits them,blockblocks them. Requiresnetwork_inspectionto betrue. Defaults toallow.screen_capture(Boolean) Windows only. Captures the screen before and after an egress event. Requiresevidence_storageto betrue. Defaults tofalse.
~> Important Enabling screen capture may carry legal obligations to notify or obtain consent from end users. Review the notice in the Falcon console before use.
screen_capture_post_event_seconds(String) Windows only. Seconds of screen recording retained after a trigger event. Requiresscreen_captureto betrue. Defaults to3.screen_capture_pre_event_seconds(String) Windows only. Seconds of screen recording retained before a trigger event. Requiresscreen_captureto betrue. Defaults to3.similarity_detection(Boolean) Detects egress of files containing content copied from other classified files on the same endpoint. Requirescontext_inspectionto betrue. Defaults tofalse.
Read-Only
Section titled “Read-Only”cid(String) Customer ID that owns the policy.created_at(String) Timestamp when the policy was created.created_by(String) Identity that created the policy.id(String) Unique identifier of the policy.
Import
Section titled “Import”Import is supported using the following syntax:
# Data protection policy can be imported by specifying the id.terraform import crowdstrike_data_protection_policy.example 7fb858a949034a0cbca175f660f1e769