-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9691 from praveenthepro/patch-8
Create User Session Impersonation(Okta)
- Loading branch information
Showing
10 changed files
with
744 additions
and
519 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
Solutions/Okta Single Sign-On/Analytic Rules/UserSessionImpersonation.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
id: 35846296-4052-4de2-8098-beb6bb5f2203 | ||
name: User Session Impersonation(Okta) | ||
description: | | ||
'A user has started a session impersonation, gaining access with the impersonated users permissions. This typically signifies Okta admin access and should only happen if anticipated and requested.' | ||
severity: Medium | ||
status: Available | ||
requiredDataConnectors: | ||
- connectorId: OktaSSO | ||
dataTypes: | ||
- Okta_CL | ||
- connectorId: OktaSSOv2 | ||
dataTypes: | ||
- OktaSSO | ||
queryFrequency: 6h | ||
queryPeriod: 6h | ||
triggerOperator: gt | ||
triggerThreshold: 0 | ||
tactics: | ||
- PrivilegeEscalation | ||
relevantTechniques: | ||
- T1134 | ||
- T1134.003 | ||
query: | | ||
Okta_CL | ||
| where eventType_s == "user.session.impersonation.initiate" and outcome_result_s == "SUCCESS" | ||
// Expand the JSON array in 'target_s' field to extract detailed information about the event | ||
| mv-expand parsed_json = todynamic(target_s) // Unpack and understand the details from the 'target_s' JSON array | ||
// Enhance visibility by extending columns with extracted details for better analysis | ||
| extend TargetUser_id = tostring(parsed_json.id), | ||
TargetUser_type = tostring(parsed_json.type), | ||
TargetUser_alternateId = tostring(parsed_json.alternateId), | ||
TargetUser_displayName = tostring(parsed_json.displayName), | ||
Target_detailEntry = tostring(parsed_json.detailEntry) | ||
// Project event details to gain insights into the security context, including actor and target user information | ||
| project TimeGenerated, actor_alternateId_s, actor_displayName_s, TargetUser_alternateId, | ||
TargetUser_displayName, TargetUser_type, TargetUser_id, | ||
eventType_s, outcome_result_s | ||
entityMappings: | ||
- entityType: Account | ||
fieldMappings: | ||
- identifier: Name | ||
columnName: actor_alternateId_s | ||
- identifier: DisplayName | ||
columnName: actor_displayName_s | ||
version: 1.0.0 | ||
kind: Scheduled |
2 changes: 1 addition & 1 deletion
2
...ign-On/Data Connectors/OktaNativePollerConnectorV2/OktaSSOv2_DataConnectorDefinition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ons/Okta Single Sign-On/Data Connectors/OktaNativePollerConnectorV2/OktaSSOv2_Tables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,144 changes: 631 additions & 513 deletions
1,144
Solutions/Okta Single Sign-On/Package/mainTemplate.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"location": { | ||
"type": "string", | ||
"minLength": 1, | ||
"defaultValue": "[resourceGroup().location]", | ||
"metadata": { | ||
"description": "Not used, but needed to pass arm-ttk test `Location-Should-Not-Be-Hardcoded`. We instead use the `workspace-location` which is derived from the LA workspace" | ||
} | ||
}, | ||
"workspace-location": { | ||
"type": "string", | ||
"defaultValue": "", | ||
"metadata": { | ||
"description": "[concat('Region to deploy solution resources -- separate from location selection',parameters('location'))]" | ||
} | ||
}, | ||
"workspace": { | ||
"defaultValue": "", | ||
"type": "string", | ||
"metadata": { | ||
"description": "Workspace name for Log Analytics where Microsoft Sentinel is setup" | ||
} | ||
}, | ||
"resourceGroupName": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().name]", | ||
"metadata": { | ||
"description": "resource group name where Microsoft Sentinel is setup" | ||
} | ||
}, | ||
"subscription": { | ||
"type": "string", | ||
"defaultValue": "[last(split(subscription().id, '/'))]", | ||
"metadata": { | ||
"description": "subscription id where Microsoft Sentinel is setup" | ||
} | ||
}, | ||
"workbook1-name": { | ||
"type": "string", | ||
"defaultValue": "Okta Single Sign-On", | ||
"minLength": 1, | ||
"metadata": { | ||
"description": "Name for the workbook" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
| **Version** | **Date Modified (DD-MM-YYYY)** | **Change History** | | ||
|-------------|--------------------------------|---------------------------------------------------------------| | ||
| 3.0.0 | 10-10-2023 | Manual deployment instructions updated for **Data Connector** | | ||
| 3.0.0 | 10-10-2023 | Manual deployment instructions updated for **Data Connector** <br/> New **Analytic Rule** added (UserSessionImpersonation.yaml)| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters