-
Notifications
You must be signed in to change notification settings - Fork 3
/
mondoo-okta-incident-response.mql.yaml
44 lines (36 loc) · 1.36 KB
/
mondoo-okta-incident-response.mql.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (c) Mondoo, Inc.
# SPDX-License-Identifier: BUSL-1.1
packs:
- uid: mondoo-okta-incident-response
name: Okta Incident Response Pack
version: 1.1.0
license: BUSL-1.1
authors:
- name: Mondoo, Inc
email: [email protected]
tags:
mondoo.com/platform: okta-org,saas
mondoo.com/category: security
docs:
desc: |
### Overview
During a security incident, the Okta Incident Response query pack retrieves configuration data about your Okta configuration.
### Prerequisites
To run this query pack, you will need access to the Okta API:
1. Create an Okta [API token](https://developer.okta.com/docs/guides/create-an-api-token/create-the-token/) by going to https:/DOMAIN.okta.com/admin/access/api/tokens
2. Note your Okta domain https://DOMAIN.okta.com
### Run query pack
To run this query pack against an Okta domain:
```bash
export OKTA_TOKEN=<TOKEN>
cnquery shell okta --organization DOMAIN.okta.com --token $OKTA_TOKEN
```
filters:
- asset.platform == "okta" || asset.platform == "okta-org"
queries:
- uid: mondoo-okta-incident-response-users
title: Users
mql: okta.users
- uid: mondoo-okta-incident-response-team-id
title: Installed applications
mql: okta.applications