Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new_rules #5023

Merged
merged 2 commits into from
Dec 19, 2024
Merged

new_rules #5023

merged 2 commits into from
Dec 19, 2024

Conversation

saakovv
Copy link
Contributor

@saakovv saakovv commented Sep 23, 2024

Summary of the Pull Request

The ImportKeyPair action in the context of Amazon Web Services (AWS) is used to import a public SSH key into your AWS account. This allows you to use an existing SSH key to access your EC2 instances.

If an attacker gains access to this function, they can:
• Import their own key: This would allow them to gain SSH access to instances associated with that key.
• Gain unauthorized access: Use the imported key to execute commands on the instances, potentially accessing sensitive data or disrupting services.

Changelog

Example Log Event

 awsCloud_account_ID: 123
   awsRegion: eu-central
   cwlGroupname: aws-controltower/CloudTrailLogs
   eventCategory: Management
   eventID: 123
   eventName: ImportKeyPair
   eventSource: ec2.amazonaws.com
   eventTime: 2024-09-12T08:00:33Z
   eventType: AwsApiCall
   eventVersion: 1.10
   managementEvent: true
   readOnly: false
   recipientAccountId: 123
   requestID: 123
   requestParameters: { 
   }
   responseElements: { 
   }
   sessionCredentialFromConsole: true
   sourceIPAddress: XXX
   tlsDetails: {
   }
   userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
   userIdentity: { 

Fixed Issues

SigmaHQ Rule Creation Conventions

  • If your PR adds new rules, please consider following and applying these conventions

@github-actions github-actions bot added the Rules label Sep 23, 2024
Copy link
Member

@frack113 frack113 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@frack113 frack113 added the 2nd Review Needed PR need a second approval label Dec 4, 2024
@saakovv
Copy link
Contributor Author

saakovv commented Dec 16, 2024

@frack113 Hi! Do you need more information from me?

@nasbench nasbench removed the 2nd Review Needed PR need a second approval label Dec 19, 2024
@nasbench nasbench merged commit 2c13dba into SigmaHQ:master Dec 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants