---
title: Content library
description: Use the Content library to discover and install prebuilt scheduled detection rules, authored by Databricks, into your Lakewatch environment.
canonical_url: https://docs.databricks.com/aws/en/lakewatch/content-library/
---

# Content library

> [!NOTE]
> **Beta**
>
> Lakewatch is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). Workspace admins can control access to this feature from the **Previews** page. See [ Manage workspace-level previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md#workspace).

The Content library is where you discover and install prebuilt scheduled detection rules, authored by Databricks, into your Lakewatch environment.

To open the Content library, go to **Content library** in the Lakewatch sidebar.

## Find detection rules

The Content library shows all available prebuilt rules in a searchable, filterable list. Each rule in the list shows the following information:

* **Rule**: The rule's name. Click to open details.
* **Imported**: A check mark ![Check icon.](https://docs.databricks.com/aws/en/images/product-icons/CheckIcon.svg) if the rule is already installed in your environment.
* **Severity**: The rule's severity level (Informational, Low, Medium, High, or Critical).
* **MITRE tactic**: The MITRE ATT\&CK tactic the rule is associated with.
* **MITRE technique**: The MITRE ATT\&CK technique and technique ID the rule maps to.
* **Matching datasources**: The datasources in your environment that use the [parsers](https://docs.databricks.com/aws/en/lakewatch/ingest-data/custom-logs/parser-reference.md) the rule queries. This column shows which rules apply to data you already ingest.

To narrow the list, search by rule name, parser, or technique ID, or filter by **Severity**, **MITRE ATT\&CK** tactic and technique, **Parser**, **Datasource**, or **Imported** status. Sort by rule name, imported status, severity, or matching datasources.

To see full details, click a rule. The rule's details page shows its severity, fidelity, category, and version. It also includes the following sections:

* **Overview**: The rule's objective and description.
* **Runbook**: The triage steps for the rule's alerts, if the rule includes one.
* **MITRE ATT\&CK**: The tactics, techniques, and sub-techniques the rule maps to.
* **References**: External references for the rule.
* **Detection logic**: The rule's read-only SQL logic.
* **Data requirements**: The parsers and tables the rule requires, and the datasources in your environment that match them.
* **Release notes**: Changes to the rule over time.

To install the rule from the details page, click **Import rule**.

## Install a detection rule

The Content library supports installing several rules into your current environment at the same time. For each table a rule requires, your environment must have a datasource that uses a supported parser. A rule that lists parsers but no tables needs one datasource that uses any of them. Rules without table or parser requirements don't require a datasource.

If a requirement has no matching datasource, the rule's checkbox and **Import rule** button are unavailable. To see which parsers the rule needs, hover over the checkbox or open the rule and check **Data requirements**. Then [add a datasource](https://docs.databricks.com/aws/en/lakewatch/ingest-data/index.md) that uses a supported parser for each missing input.

> [!NOTE]
>
> Detection rules are provided AS-IS, without any guarantees or warranties, and are not supported by Databricks. Review each rule to confirm it's suitable for your use case before you install it.

1. In the Lakewatch sidebar, go to **Content library**.
2. Select the rules to install using the row checkboxes. Selections persist across pages. To review a rule first, click it to open its details page.
3. Click **Import rule** (or **Import *N* rules**). The import dialog opens.
4. If you can create rules in more than one folder, choose a **Destination folder** for the rules. If only one folder is available, Lakewatch uses it automatically.
5. For each rule, review the following fields:
   * **Rule name**: Lakewatch suggests a name based on the rule. If a rule with that name already exists, Lakewatch adds a numeric suffix (for example, `_1`). Edit the name if needed.
   * **Target datasource**: Select the datasources the rule runs against. Options group datasources that use the same parser and write to the same table. When matching datasources write to different folders or tables, the options show folder and table tags so you can tell them apart. If a rule queries more than one table, select a datasource for each table. Rules that don't query a table show **No table selection required**.
6. Click **Import**. Lakewatch installs the rules into your environment, showing progress for each rule. When a rule is created, a **View rule** link appears in its row. If a rule fails, its error appears in its row. Fix the problem and click **Import** again to retry.
7. Imported rules are turned off. When the import finishes, click **View & enable rules** to open **Detection rules** filtered to the new rules, or click **Done** to close the dialog.
8. In **Detection rules**, configure a schedule and turn each rule on.

SQL rules run on the SQL warehouse selected for Lakewatch. The import dialog doesn't have a separate warehouse picker.

An installed rule is a copy in your environment, and you manage it from [Detection rules](https://docs.databricks.com/aws/en/lakewatch/detections/index.md). After the rules list refreshes, the rule's **Imported** column shows ![Check icon.](https://docs.databricks.com/aws/en/images/product-icons/CheckIcon.svg).

## Additional resources

* [Choose a detection rule type](https://docs.databricks.com/aws/en/lakewatch/detections/choose-detection-rule-type.md)
* [Parser reference](https://docs.databricks.com/aws/en/lakewatch/ingest-data/custom-logs/parser-reference.md)
