> ## Documentation Index
> Fetch the complete documentation index at: https://specterops-fetch-json-component.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Privilege Zone Rules

> Default Privilege Zone rules for the OktaHound extension

<img noZoom src="https://mintcdn.com/specterops-fetch-json-component/pkiaFEhjWYPnhxMb/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max&auto=format&n=pkiaFEhjWYPnhxMb&q=85&s=c83d7e4a67c741a979c0e77bf15c1252" alt="Applies to BloodHound Enterprise and CE" width="482" height="45" data-path="assets/enterprise-AND-community-edition-pill-tag.svg" />

The following Cypher rules define the default Privilege Zone for the OktaHound extension.
Each rule is defined in a JSON file located in the [PrivilegeZoneRules](https://github.com/SpecterOps/OktaHound/tree/main/Src/PrivilegeZoneRules) directory of the OktaHound repository.

## Organization

Organization nodes in Okta.

```cypher theme={null}
MATCH (n:Okta_Organization)
RETURN n
```

This rule is defined in the [organization.json](https://github.com/SpecterOps/OktaHound/tree/main/Src/PrivilegeZoneRules/organization.json) file.

## Tier Zero Devices

Devices associated with principals who have SUPER\_ADMIN or ORG\_ADMIN role assignments.

```cypher theme={null}
MATCH (n:Okta_Device)-[:Okta_DeviceOf]->(:Okta)-[:Okta_HasRoleAssignment|Okta_MemberOf*1..2]->(r:Okta_RoleAssignment)-[:Okta_ScopedTo]->(:Okta_Organization)
WHERE r.type = "SUPER_ADMIN"
OR r.type = "ORG_ADMIN"
RETURN n
```

This rule is defined in the [tier0-devices.json](https://github.com/SpecterOps/OktaHound/tree/main/Src/PrivilegeZoneRules/tier0-devices.json) file.

## Tier Zero Principals

Principals with SUPER\_ADMIN or ORG\_ADMIN role assignments.

```cypher theme={null}
MATCH (n:Okta)-[:Okta_HasRoleAssignment|Okta_MemberOf*1..2]->(r:Okta_RoleAssignment)-[:Okta_ScopedTo]->(:Okta_Organization)
WHERE r.type = "SUPER_ADMIN"
OR r.type = "ORG_ADMIN"
RETURN n
```

This rule is defined in the [tier0-principals.json](https://github.com/SpecterOps/OktaHound/tree/main/Src/PrivilegeZoneRules/tier0-principals.json) file.
