Detection rules › Panther
Wiz Issue Followed By SSH to EC2 Instance
Wiz detected a security issue with an EC2 instance followed by an SSH connection to the instance. This sequence could indicate a potential security breach.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access | T1133 External Remote Services |
| Lateral Movement | T1021.004 Remote Services: SSH |
Rule body yaml
AnalysisType: correlation_rule
RuleID: "Wiz.Issue.Followed.By.SSH"
DisplayName: "Wiz Issue Followed By SSH to EC2 Instance"
Enabled: true
Severity: High
Tags:
- Configuration Required
Description: Wiz detected a security issue with an EC2 instance followed by an SSH connection to the instance. This sequence could indicate a potential security breach.
Reports:
MITRE ATT&CK:
- TA0008:T1021.004 # Lateral Movement: Remote Services: SSH
- TA0001:T1133 # Initial Access: External Remote Services
Detection:
- Sequence:
- ID: WizIssue
RuleID: Wiz.Alert.Passthrough
- ID: SSH Access
RuleID: AWS.VPC.SSHAllowedSignal
Transitions:
- ID: WizIssue followed by VPC Flow
From: WizIssue
To: SSH Access
WithinTimeFrameMinutes: 60
Match:
- From: entitySnapshot.externalId
To: instanceId
LookbackWindowMinutes: 2160
Schedule:
RateMinutes: 1440
TimeoutMinutes: 5
Tests:
- Name: Wiz Issue Followed By SSH
ExpectedResult: true
RuleOutputs:
- ID: WizIssue
Matches:
entitySnapshot.externalId:
'i-0d4c7318592c6a2c7':
- "2024-06-01T10:00:01Z"
- ID: SSH Access
Matches:
instanceId:
'i-0d4c7318592c6a2c7':
- "2024-06-01T10:30:01Z"
- Name: Wiz Issue Not Followed By SSH
ExpectedResult: false
RuleOutputs:
- ID: WizIssue
Matches:
entitySnapshot.externalId:
'i-0d4c7318592c6a2c7':
- "2024-06-01T10:00:01Z"
Detection logic
Stage 1: step WizIssue ordered before $SSH Access
References detection Wiz.Alert.Passthrough.
Stage 2: step SSH Access ordered after $WizIssue
References detection AWS.VPC.SSHAllowedSignal.