Skip to content

Commit

Permalink
Merge pull request #1305 from panther-labs/release
Browse files Browse the repository at this point in the history
Releasing performance improvements
  • Loading branch information
ben-githubs authored Jul 25, 2024
2 parents 52a7c63 + 68c7f81 commit bca7e1f
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Detection:
Match:
- On: requestParameters.roleArn
Schedule:
RateMinutes: 60
TimeoutMinutes: 15
LookbackWindowMinutes: 1440
RateMinutes: 685
TimeoutMinutes: 20
LookbackWindowMinutes: 720
Tests:
- Name: Role Assumed By Service, Followed By Role Assumed By User
ExpectedResult: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Detection:
Match:
- On: p_alert_context.ip_accessKeyId
Schedule:
RateMinutes: 15
TimeoutMinutes: 5
LookbackWindowMinutes: 60
RateMinutes: 60
TimeoutMinutes: 10
LookbackWindowMinutes: 90
Tests:
- Name: Access Key Created and Used from Same IP
ExpectedResult: true
Expand Down
6 changes: 3 additions & 3 deletions correlation_rules/aws_user_takeover_via_password_reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Detection:
Match:
- On: sourceIPAddress
Schedule:
RateMinutes: 15
TimeoutMinutes: 5
LookbackWindowMinutes: 60
RateMinutes: 60
TimeoutMinutes: 10
LookbackWindowMinutes: 90
Tests:
- Name: Password Reset, Then Login From Same IP
ExpectedResult: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Detection:
To: RepoArchived
Match:
- On: p_alert_context.repo
LookbackWindowMinutes: 15
LookbackWindowMinutes: 90
Schedule:
RateMinutes: 10
TimeoutMinutes: 5
RateMinutes: 60
TimeoutMinutes: 10
Tests:
- Name: Security Change on Repo, Followed By Same Repo Archived
ExpectedResult: false
Expand Down
6 changes: 3 additions & 3 deletions correlation_rules/okta_login_without_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ Detection:
- From: actor.alternateId
To: new.email
Schedule:
RateMinutes: 5
TimeoutMinutes: 3
LookbackWindowMinutes: 30
RateMinutes: 60
TimeoutMinutes: 10
LookbackWindowMinutes: 90
Tests:
- Name: Okta Login, Followed By Push Authorized Login
ExpectedResult: false
Expand Down
6 changes: 3 additions & 3 deletions correlation_rules/potential_compromised_okta_credentials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Detection:
- From: actor.alternateId
To: new.employee.email
Schedule:
RateMinutes: 5
TimeoutMinutes: 3
LookbackWindowMinutes: 30
RateMinutes: 60
TimeoutMinutes: 10
LookbackWindowMinutes: 90
Tests:
- Name: Login Without Marker, Followed By Phishing Detection
ExpectedResult: true
Expand Down
6 changes: 3 additions & 3 deletions correlation_rules/secret_exposed_and_not_quarantined.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Detection:
From: SecretFound
To: SecretNotQuarantined
Schedule:
RateMinutes: 10
TimeoutMinutes: 3
LookbackWindowMinutes: 30
RateMinutes: 60
TimeoutMinutes: 10
LookbackWindowMinutes: 90
Tests:
- Name: Secret Found and Quarantied
ExpectedResult: false
Expand Down
44 changes: 44 additions & 0 deletions rules/slack_rules/slack_user_privilege_escalation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ Tests:
},
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
},
"entity":
{
"type": "user",
"user":
{
"email": "[email protected]",
"id": "W012J3FEWAU",
"name": "primary-owner",
"team": "T01234N56GB",
},
},
}
- Name: Permissions Assigned
ExpectedResult: true
Expand Down Expand Up @@ -79,6 +90,17 @@ Tests:
},
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
},
"entity":
{
"type": "user",
"user":
{
"email": "[email protected]",
"id": "W012J3FEWAU",
"name": "primary-owner",
"team": "T01234N56GB",
},
},
}
- Name: Role Changed to Admin
ExpectedResult: true
Expand Down Expand Up @@ -108,6 +130,17 @@ Tests:
},
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
},
"entity":
{
"type": "user",
"user":
{
"email": "[email protected]",
"id": "W012J3FEWAU",
"name": "primary-owner",
"team": "T01234N56GB",
},
},
}
- Name: Role Changed to Owner
ExpectedResult: true
Expand Down Expand Up @@ -137,6 +170,17 @@ Tests:
},
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
},
"entity":
{
"type": "user",
"user":
{
"email": "[email protected]",
"id": "W012J3FEWAU",
"name": "primary-owner",
"team": "T01234N56GB",
},
},
}
- Name: User Logout
ExpectedResult: false
Expand Down

0 comments on commit bca7e1f

Please sign in to comment.