-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Oleh Melenevskyi <[email protected]> Co-authored-by: Ariel Ropek <[email protected]>
- Loading branch information
1 parent
bbb3b2b
commit e1b3b35
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
rules/gcp_audit_rules/gcp_privilege_escalation_by_deployments_create.yml
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,57 @@ | ||
AnalysisType: rule | ||
RuleID: "GCP Privilege Escalation By Deployments Create" | ||
DisplayName: "GCP.Privilege.Escalation.By.Deployments.Create" | ||
Description: "Detects privilege escalation in GCP by taking over the deploymentsmanager.deployments.create permission" | ||
Enabled: true | ||
LogTypes: | ||
- GCP.AuditLog | ||
Severity: High | ||
DedupPeriodMinutes: 60 | ||
Threshold: 1 | ||
Reference: https://rhinosecuritylabs.com/gcp/privilege-escalation-google-cloud-platform-part-1/ | ||
Reports: | ||
MITRE ATT&CK: | ||
- TA0004:T1548 | ||
Detection: | ||
- All: | ||
- KeyPath: protoPayload.authorizationInfo[*].granted | ||
Condition: Contains | ||
Value: true | ||
- KeyPath: protoPayload.authorizationInfo[*].permission | ||
Condition: Contains | ||
Value: deploymentmanager.deployments.create | ||
Tests: | ||
- Name: privilege-escalation | ||
ExpectedResult: true | ||
Log: | ||
protoPayload: | ||
authorizationInfo: | ||
- granted: true | ||
permission: deploymentmanager.deployments.create | ||
methodName: v2.deploymentmanager.deployments.insert | ||
serviceName: deploymentmanager.googleapis.com | ||
receiveTimestamp: "2024-01-19 13:47:19.465856238" | ||
resource: | ||
labels: | ||
name: test-vm-deployment | ||
project_id: panther-threat-research | ||
type: deployment | ||
severity: NOTICE | ||
timestamp: "2024-01-19 13:47:18.279921000" | ||
- Name: fail | ||
ExpectedResult: false | ||
Log: | ||
protoPayload: | ||
authorizationInfo: | ||
- granted: афдиу | ||
permission: deploymentmanager.deployments.create | ||
methodName: v2.deploymentmanager.deployments.insert | ||
serviceName: deploymentmanager.googleapis.com | ||
receiveTimestamp: "2024-01-19 13:47:19.465856238" | ||
resource: | ||
labels: | ||
name: test-vm-deployment | ||
project_id: panther-threat-research | ||
type: deployment | ||
severity: NOTICE | ||
timestamp: "2024-01-19 13:47:18.279921000" |