Skip to content

Commit

Permalink
adjust cr schedules and lookbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-githubs committed Nov 1, 2024
1 parent eeaaaf0 commit 907a7a7
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ Detection:
- ID: StopInstance FOLLOWED BY StartupScriptChange
From: StopInstance
To: StartupScriptChange
WithinTimeFrameMinutes: 90
Match:
- On: p_alert_context.instance_ids
LookbackWindowMinutes: 90
LookbackWindowMinutes: 2160
Schedule:
RateMinutes: 60
RateMinutes: 1440
TimeoutMinutes: 5
Tests:
- Name: Instance Stopped, Followed By Script Change
Expand Down
2 changes: 1 addition & 1 deletion correlation_rules/aws_console_sign-in_without_okta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Detection:
Schedule:
RateMinutes: 1440
TimeoutMinutes: 5
LookbackWindowMinutes: 1440
LookbackWindowMinutes: 2160
Tests:
- Name: AWS Console Sign-In PRECEDED BY Okta Redirect
ExpectedResult: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ Detection:
- ID: User Backdoored TO User Accessed ON IP Addr
From: User Backdoored
To: User Accessed
WithinTimeFrameMinutes: 60
Match:
- On: p_alert_context.ip_accessKeyId
Schedule:
RateMinutes: 60
RateMinutes: 1440
TimeoutMinutes: 10
LookbackWindowMinutes: 90
LookbackWindowMinutes: 2160
Tests:
- Name: Access Key Created and Used from Same IP
ExpectedResult: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Detection:
Schedule:
RateMinutes: 1440
TimeoutMinutes: 5
LookbackWindowMinutes: 1440
LookbackWindowMinutes: 2160
Tests:
- Name: AWS SSO Access Token Retrieved by Authenticated IP
ExpectedResult: false
Expand Down
5 changes: 3 additions & 2 deletions correlation_rules/aws_user_takeover_via_password_reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ Detection:
- ID: Password Reset TO Login ON IP Addr
From: Password Reset
To: Login
WithinTimeFrameMinutes: 60
Match:
- On: p_alert_context.ip_and_username
Schedule:
RateMinutes: 60
RateMinutes: 1440
TimeoutMinutes: 10
LookbackWindowMinutes: 90
LookbackWindowMinutes: 2160
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 @@ -21,11 +21,12 @@ Detection:
- ID: ServiceCreated FOLLOWED BY SetIAMPolicy
From: ServiceCreated
To: SetIAMPolicy
WithinTimeFrameMinutes: 90
Match:
- On: p_alert_context.caller_ip
LookbackWindowMinutes: 90
LookbackWindowMinutes: 2160
Schedule:
RateMinutes: 60
RateMinutes: 1440
TimeoutMinutes: 5
Tests:
- Name: GCP Service Run, Followed By IAM Policy Change From Same IP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ Detection:
- ID: GHASChange NOT FOLLOWED BY RepoArchived
From: RepoArchived
To: GHASChange
WithinTimeFrameMinutes: 60
Match:
- On: p_alert_context.repo
LookbackWindowMinutes: 90
LookbackWindowMinutes: 2160
Schedule:
RateMinutes: 60
RateMinutes: 1440
TimeoutMinutes: 10
Tests:
- Name: Security Change on Repo, Followed By Same Repo Archived
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Detection:
WithinTimeFrameMinutes: 15
Match:
- On: p_alert_context.actor_id
LookbackWindowMinutes: 1440
LookbackWindowMinutes: 2160
Schedule:
RateMinutes: 1440
TimeoutMinutes: 5
Expand Down
5 changes: 3 additions & 2 deletions correlation_rules/okta_login_without_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ Detection:
- ID: Okta to Push
From: Okta
To: Push
WithinTimeFrameMinutes: 60
Match:
- From: actor.alternateId
To: new.email
Schedule:
RateMinutes: 60
RateMinutes: 1440
TimeoutMinutes: 10
LookbackWindowMinutes: 90
LookbackWindowMinutes: 2160
Tests:
- Name: Okta Login, Followed By Push Authorized Login
ExpectedResult: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Detection:
WithinTimeFrameMinutes: 15
Match:
- On: user_name
LookbackWindowMinutes: 1440
LookbackWindowMinutes: 2160
Schedule:
RateMinutes: 1440
TimeoutMinutes: 5
Expand Down
5 changes: 3 additions & 2 deletions correlation_rules/potential_compromised_okta_credentials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ Detection:
- ID: Match on user
From: Login Without Push Marker
To: Push Phishing
WithinTimeFrameMinutes: 60
Match:
- From: actor.alternateId
To: new.employee.email
Schedule:
RateMinutes: 60
RateMinutes: 1440
TimeoutMinutes: 10
LookbackWindowMinutes: 90
LookbackWindowMinutes: 2160
Tests:
- Name: Login Without Marker, Followed By Phishing Detection
ExpectedResult: true
Expand Down
5 changes: 3 additions & 2 deletions correlation_rules/secret_exposed_and_not_quarantined.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ Detection:
- ID: SecretFound TO SecretNotQuarantined
From: SecretFound
To: SecretNotQuarantined
WithinTimeFrameMinutes: 60
Schedule:
RateMinutes: 60
RateMinutes: 1440
TimeoutMinutes: 10
LookbackWindowMinutes: 90
LookbackWindowMinutes: 2160
Tests:
- Name: Secret Found and Quarantied
ExpectedResult: false
Expand Down
4 changes: 2 additions & 2 deletions correlation_rules/snowflake_data_exfiltration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Detection:
Match:
- On: stage
Schedule:
RateMinutes: 720
RateMinutes: 1440
TimeoutMinutes: 15
LookbackWindowMinutes: 1440
LookbackWindowMinutes: 2160
Tests:
- Name: Data Exfiltration
ExpectedResult: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ Detection:
- ID: User Created FOLLOWED BY User Deleted
From: AccountCreated
To: AccountDeleted
WithinTimeFrameMinutes: 720 # 12 hours
Match:
- On: p_alert_context.target_name
LookbackWindowMinutes: 720 # 12 hours
LookbackWindowMinutes: 2160
Schedule:
RateMinutes: 480 # 8 hours
RateMinutes: 1440
TimeoutMinutes: 1
Tests:
- Name: User Creation, Followed By Deletion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ Detection:
- ID: AcountCreated FOLLOWED BY AdminRoleAssigned ON target AND actor
From: AccountCreated
To: AdminRoleAssigned
WithinTimeFrameMinutes: 45
Match:
- On: p_alert_context.actor_target
LookbackWindowMinutes: 45
LookbackWindowMinutes: 2160
Schedule:
RateMinutes: 30
RateMinutes: 1440
TimeoutMinutes: 1
Tests:
- Name: User Creation, Followed By Role Assignment
Expand Down

0 comments on commit 907a7a7

Please sign in to comment.