> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/policies-and-profiles/asset-profiles.md).

# Asset Profiles

Create an asset profile to select a group of devices with a query, give it a severity and assign the security policies that apply to it.

An asset profile answers "which devices does this set of checks apply to?". It selects devices with a query, carries a severity, and holds the security policies that are assessed on those devices. The profile list also shows how many devices each profile covers and their average score.

### Before you begin

* Open **Device Profiling** > **Asset Profile** in the left menu. You need the permission to add profiles to create one.
* Profiles select devices only. The query is written against the Device Inventory.
* Create the security policies you want to assign first, or assign them later. See Security Policies.

### The Asset Profile list

| Column               | What it shows                                                        |
| -------------------- | -------------------------------------------------------------------- |
| **Profile Name**     | The name of the profile.                                             |
| **Description**      | Optional text.                                                       |
| **Active Status**    | A switch. Turn it off to stop using the profile without deleting it. |
| **Profile Severity** | **Critical**, **High**, **Medium** or **Low**.                       |
| **Device Count**     | How many devices match the profile query.                            |
| **Average Score**    | The average security score of those devices.                         |

Search by name, description or severity, or filter by **Profile Severity**. To assign one policy to several profiles at once, select the profiles and choose **Actions** > **Assign Policy to Selected Profiles**, then pick the policy. **Actions** > **Export Selected Items** exports the selected profiles.

### Create an asset profile

{% stepper %}
{% step %}

#### Open the form

Choose **Create New Asset Profile**.
{% endstep %}

{% step %}

#### Name the profile and set its severity

Enter a **Profile Name** (required) and an optional **Description**. Leave **Active** checked to use the profile right away. Under **Profile Severity** select **Critical**, **High**, **Medium** or **Low**. The default is **Low**. The severity is stored on every device the profile matches, and dashboard security widgets can show the score for one severity. See the Chart and widget reference.
{% endstep %}

{% step %}

#### Define the devices with a query

Under **Queries to Define Asset Profile**, build the **Query** with the Query Wizard, or pick a saved device query under **Select query to fill** to copy its text into the profile. For example, `Category = Server AND OS.Type = Linux` selects Linux servers. The query is required. A query of `*` selects every device. See OctoXLabs Query Reference.

The profile stores the query text, not a link to the saved query. Later changes to the saved query do not change the profile.
{% endstep %}

{% step %}

#### Assign security policies

In the **Assigned Security Policies** panel, use **Select Security Policy** to add the policies that should be assessed on these devices. You can also do this later from the policy.
{% endstep %}

{% step %}

#### Save

Choose **Create**.
{% endstep %}
{% endstepper %}

IMAGEHERE: The Create New Asset Profile form with a severity selected, a query filled in and two assigned security policies in the right panel.

### Edit or delete a profile

Open a profile from the list to change its name, severity, query, status or policies, then choose **Save**. The form reminds you that "Changes will be applied to devices after the next discovery." Deleting a profile removes the profile from the devices that carried it. Deleting does not delete the devices.

### Example profiles

A new installation includes five example profiles, all inactive. Turn on the ones that fit your environment, and review their queries first.

| Profile                     | Query                                          | Severity |
| --------------------------- | ---------------------------------------------- | -------- |
| Windows Workstation Profile | `Category = Workstation AND OS.Type = Windows` | Low      |
| MacOsX Workstation Profile  | `Category = Workstation AND OS.Type = MacOSX`  | Low      |
| Linux Server Profile        | `Category = Server AND OS.Type = Linux`        | Critical |
| Windows Server Profiles     | `Category = Server AND OS.Type = Windows`      | Critical |
| Other Devices Profile       | `Category = Others`                            | Low      |

### Verify the result

Run a discovery, or wait for the next scheduled one. Then open the profile list: **Device Count** and **Average Score** are filled in for active profiles. A device that matches an active profile shows its score on its detail page.

### Troubleshooting

| Symptom                                          | Cause                                                                                               | Fix                                                                                                                   |
| ------------------------------------------------ | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| **Device Count** is 0 or empty after a discovery | The profile is not active, the query matches no device, or no discovery has run since you saved it. | Check **Active Status**, run the query in the Device Inventory, and start a discovery. See Discovery and Aggregation. |
| A device has no security score                   | It matches no active profile, or no policy applies.                                                 | Check the profile query and the assigned policies. See Security Policies.                                             |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Security Policies</strong></td><td>Define the checks that lower the score.</td><td></td></tr><tr><td><strong>Create and Save Queries</strong></td><td>Build the query that selects the devices.</td><td></td></tr><tr><td><strong>Asset Inventory</strong></td><td>Check which devices a query matches.</td><td></td></tr></tbody></table>
