> 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/inventories/policies.md).

# Policies

Search the network access and security rules that your cloud, container and firewall adapters report, normalised into one common structure.

Policy Inventory lists the network access and security rules configured across your cloud, container and on-premises environments, such as security group rules, network ACL entries, network security group rules and Kubernetes network policies. Each rule is normalised into the same structure whatever its source, so you can search and compare rules from different platforms side by side instead of checking each console separately. Use it to find rules that are open to the internet, rules that allow a given port, or rules that apply to a given resource.

Do not confuse it with Security Policies, which you define yourself to calculate the security score of your devices. See Security Policies.

Each row is one rule reported by one adapter. OctoXLabs does not merge rules from different adapters.

{% hint style="success" %}
Available since OctoXLabs 6.8.0 (September 2026).
{% endhint %}

### Where the data comes from

The inventory is filled by adapters that provide policy data, and it is rebuilt at every discovery. The release that introduced it collected rules from AWS EC2 (security group rules and network ACL entries), AWS EKS, Azure network security groups, OpenShift and Kubernetes (network policies). Other adapters can also provide policies, for example FortiWeb, Palo Alto Panorama and SentinelOne XDR. The full list is in the adapter pages at <https://docs.octoxlabs.com/adapters>.

Whatever the source, each rule is mapped to common fields: policy type, enforcement layer, direction, action (allow or block), source and destination addresses, ports, protocols and zones.

To make data appear, connect one of these adapters and run a discovery. See Connect an adapter and Discovery and Aggregation.

### Open the inventory

In the left menu, click **Inventories** > **Policies**. The page title is **Policy Inventory**.

The list shows the data of one discovery. Use the discovery selector next to the search box to look at an earlier discovery. The newest completed discovery is selected by default.

{% hint style="info" %}
You need the permission to view policies to see the page and the permission to view policy details to open a record. Both are available only when your product licence includes the policies module. See Product Licence.
{% endhint %}

### Columns

These columns are shown by default. Use **Columns** > **Edit Columns** to change them.

| Column              | Field                | What it shows                                                                                            |
| ------------------- | -------------------- | -------------------------------------------------------------------------------------------------------- |
| Adapters            | `Adapters`           | The adapter that reported the rule. Click it to filter the list by that adapter.                         |
| Primary Key         | `PrimaryKey`         | The unique ID of the rule record. It is always shown. Click it to open the detail page.                  |
| Policy Type         | `PolicyType`         | The kind of rule, as normalised from the source.                                                         |
| Rule Name           | `RuleName`           | The name of the rule.                                                                                    |
| Action              | `Action`             | What the rule does with matching traffic, allow or block.                                                |
| Status              | `Status`             | Whether the rule is active. **Enabled** shows a green dot and any other value shows a red dot.           |
| Direction           | `Direction`          | The direction of the traffic the rule applies to, with an arrow icon.                                    |
| Source Address      | `SourceAddress`      | The source addresses of the rule.                                                                        |
| Destination Address | `DestinationAddress` | The destination addresses of the rule.                                                                   |
| Destination Port    | `DestinationPort`    | The destination ports of the rule.                                                                       |
| Application         | `Application`        | The application the rule refers to.                                                                      |
| Is Internet Facing  | `IsInternetFacing`   | Whether the rule exposes the target to the internet. **true** shows a red dot and **false** a green dot. |

You can add more fields with **Edit Columns**, for example `EnforcementLayer`, `AppliesTo`, `Severity`, `Description`, `SourcePort`, `SourceZone`, `DestinationZone`, `SourceFQDN`, `DestinationFQDN`, `Service`, `ServiceProtocol`, `DeviceName`, `DeviceIp`, `Inbound` and `Outbound`, and the fields that a single adapter reports.

Click a value in the **Adapters**, **Policy Type**, **Action**, **Status**, **Rule Name**, **Direction**, **Application**, **Is Internet Facing**, **Enforcement Layer**, **Severity**, **Source Port**, **Destination Port**, **Source Address** or **Destination Address** column to add that value to the query and filter the list. Double-click a cell to copy its value.

### Filter and search

Choose one of three ways to filter the list.

{% tabs %}
{% tab title="Type a query" %}
Write a query in the search box and press Enter. For example, to find enabled rules that are open to the internet:

```
IsInternetFacing = true AND Status = Enabled
```

The syntax is the same everywhere in OctoXLabs. See OctoXLabs Query Reference for the fields of this inventory.
{% endtab %}

{% tab title="Query Wizard" %}
Click **Query Wizard** to build the query from rows of field, operator and value, then click **Run**.
{% endtab %}

{% tab title="Query AI" %}
Click the **Query** button with the AI icon and describe what you want in plain language. The button appears when you have the permission to use AI and your administrator has set up AI.
{% endtab %}
{% endtabs %}

To keep a query, click **Save As** above the search box and give the query a name. Saved queries of this inventory are listed under **Inventories** > **Policies** > **Saved Queries**. See Create and Save Queries.

IMAGEHERE: Policy Inventory list with the Status, Direction and Is Internet Facing columns visible.

### Actions on the list

| Button                          | What it does                                                                                                        |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| **Query Wizard**                | Opens the query builder.                                                                                            |
| **Columns** > **Edit Columns**  | Opens a picker to choose the columns. **PrimaryKey** cannot be removed. Your choice is saved for your user.         |
| **Columns** > **Reset Columns** | Goes back to the default columns.                                                                                   |
| **Download**                    | Creates a report of the current query and columns in **CSV**, **PDF** or **XLSX** format. Needs report permissions. |

Unlike most other inventories, the Policy Inventory list has no row selection and no **Actions** > **Add Tag** button. Add tags and notes on the detail page of a rule instead.

The list shows at most 10,000 records for a query. For larger result sets, use the Report Builder. See Generate a Report.

Above the list, a strip of charts and widgets for this inventory can be changed with **Add Chart/Widget** (up to 4 items). Saved queries of this inventory can also feed dashboards and scheduled reports. See Create a Dashboard Chart.

### Policy detail page

Click a **Primary Key** to open the record. The cards at the top show:

* **Action**, **Rule Name**, **Status** and **Direction**.
* **Source Address**, **Source Port**, **Destination Address**, **Destination Port** and **ServiceProtocol**. Long lists show a **Show All** link with the number of values.
* **Enforcement Layer**, **Policy Type**, **Applies To**, **Is Internet Facing**, **Severity** and **Description**.
* A card with **Manually Added Tags**, **Tags from Query** and **Notes**, where you can add tags and a note to this rule by hand.

Below the cards, use the selector on the right to switch between **Pretty View**, **Raw** and **Dependency Map**. The tabs on the left list **OctoXLabs** (the normalised fields) and one tab for the adapter that reported the rule, with the fields as the adapter returned them. The discovery selector lets you open the same rule in another discovery. For the map, see Dependency Map.

### 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>Create and Save Queries</strong></td><td>Build a query once and reuse it in the list, dashboards and reports.</td><td></td></tr><tr><td><strong>Query Reference</strong></td><td>Operators, value types and the fields of every inventory.</td><td></td></tr><tr><td><strong>Security Policies</strong></td><td>Define the policies that drive the device security score.</td><td></td></tr><tr><td><strong>Web Application Inventory</strong></td><td>See the web applications and the policies that protect them.</td><td></td></tr></tbody></table>
