Skip to content

Commit e8c6256

Browse files
authored
Merge pull request #278598 from danielledennis/main
Policy engine article
2 parents 71915e4 + f4ebb6f commit e8c6256

File tree

5 files changed

+65
-0
lines changed

5 files changed

+65
-0
lines changed

articles/external-attack-surface-management/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
href: using-and-managing-discovery.md
2020
- name: Modifying inventory assets
2121
href: modifying-inventory-assets.md
22+
- name: Policy engine automation
23+
href: policy-engine.md
2224
- name: Understand billable assets
2325
href: understanding-billable-assets.md
2426
- name: Leveraging data connections
379 KB
Loading
173 KB
Loading
261 KB
Loading
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: Policy engine automation
3+
description: Automate inventory curation by leveraging the policy engine to proactively implement certain actions based on predetermined parameters.
4+
author: danielledennis
5+
ms.author: dandennis
6+
ms.service: defender-easm
7+
ms.date: 06/18/2024
8+
ms.topic: how-to
9+
---
10+
11+
# Policy engine automation
12+
The policy engine enables Defender External Attack Surface Management (Defender EASM) users to automate certain actions based on predetermined parameters. You can elect to label assets or change their states based on highly flexible query parameters to automate the curation of your attack surface. Once defined, policies run automatically to ensure that your inventory is categorized according to your specific needs on a recurrent basis.  With the policy engine, you can apply business context to your inventory in bulk with minimal manual effort with the following actions:
13+
- Add or remove labels
14+
- Set an external ID
15+
- Set an asset state
16+
- Remove from inventory
17+
18+
## Accessing and understanding policies
19+
To quickly access policy information, navigate to the dedicated Policies page in your Defender EASM resource. This page can be found under the **Manage** section of the left-hand navigation pane.
20+
21+
[![Screenshot of Policies page with left-hand navigation option highlighted.](media/policies-1.png)](media/policies-1.png#lightbox)
22+
23+
This page displays a list of all active policies in your Defender EASM resource. This list view provides immediate access to key information about each policy, including:
24+
- **Policy:** the designated name for the policy.
25+
- **Description:** the designated description for the policy, providing more context about the configuration and intended business value.
26+
- **Query:** the underlying quer(ies) that power each policy. Policy actions are applied specifically to assets that match these configured filter parameters.
27+
- **Action:** a description of the action that takes place when assets match the designated filter parameters. Actions include: add or remove labels, set state, set external ID, and remove from inventory.
28+
- **Created by:** the email alias of the Defender EASM user who created the policy.
29+
- **Created on:** the date that the policy was first created.
30+
- **Affected assets:** a count of all assets that were updated in accordance with the policy. Clicking the numerical count routes you to the inventory list view, filtered to display only the assets that match the underlying quer(ies) that power the policy.
31+
32+
[![Screenshot of visible metadata in columns on Policies page.](media/policies-2.png)](media/policies-2.png#lightbox)
33+
34+
## Create a policy
35+
36+
1. Navigate to the Policies page by selecting **Policies** from the **Manage** section of the left-hand navigation pane within your Defender EASM resource.
37+
2. Select **+ Add Policy**. This action opens a right-hand pane to configure the policy.
38+
39+
[![Screenshot of Policies page with Add Policies button highlighted and policy configuration panel open.](media/policies-3.png)](media/policies-3.png#lightbox)
40+
41+
3. Complete the listed fields to create your policy. First provide a name and description that explain the business context for the policy. You can't edit the name of the policy once it is created. While all other fields can be adjusted later, you will need to create a new policy if you wish to change the name.
42+
4. Then select the query that triggers the policy; any assets that match the query parameters are automatically updated with the designated action. For instance, you may want to label all expiring entities (e.g. domains, SSL certificates) with a "needs renewal" label. You can create a saved query that searches for metadata that expires within 30 days or is already expired. You can then designate that the system applies a "needs renewal" label to all applicable assets. You can either select to power the policy with a previously saved filter, or you can create a new query. All saved queries are visible within the dropdown, or select Create new saved query to configure new filter parameters. If you would like to view the assets that match your query before setting up a policy, it is recommended that you first create a saved query from the Inventory page.
43+
5. Once all fields are configured, select Add to create your policy.
44+
45+
It takes newly created policies up to one week to apply changes to your inventory. Once the changes are implemented, you'll see them reflected in the Change history tab. You will also be able to see the impacted assets when using the Policy name filter on your inventory, and the Policies page lists an accurate count of impacted assets. Pre-existing policies update any newly applicable assets within 5-7 days of the last run.
46+
47+
48+
## Edit or delete policies
49+
Users can edit policies individually or delete one or more policies simultaneously.
50+
51+
### Edit policies
52+
To edit a policy, click on the policy name from the list view. This opens a right-hand pane that enables you to edit the policy configuration. Users can't edit the name of their policy, but all other fields are adjustable. Once you make your intended changes, select Update to save the policy.
53+
54+
### Delete policies
55+
You can delete policies individually or in bulk. From the main Policies page, select the polic(ies) that you’d like to delete by clicking the checkbox next to the policy name. Select “Remove policy” and confirm the removal. Deleting a policy will not revert any previously implemented actions, but it will stop the automated actions from taking place in the future. If you need to make one-time changes to the assets impacted by the policy, you can leverage the same saved query underlying the policy from the Inventory page to revert the changes.
56+
57+
58+
## Next steps
59+
- [Understanding asset details](understanding-asset-details.md)
60+
- [Understanding dashboards](understanding-dashboards.md)
61+
62+
63+

0 commit comments

Comments
 (0)