-
Notifications
You must be signed in to change notification settings - Fork 1
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
branch[accurics_unxkse6c]: Auto Generated Pull Request from Accurics #25
base: main
Are you sure you want to change the base?
Changes from 4 commits
e7167d1
726bebc
470ed28
5a0b867
e44f437
3eae656
2585c5f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,12 @@ resource "aws_instance" "webserver" { | |
tags = { | ||
Name = "webserver" | ||
} | ||
|
||
metadata_options { | ||
http_endpoint = "disabled" | ||
http_tokens = "required" | ||
} | ||
monitoring = true | ||
} | ||
|
||
resource "aws_s3_bucket" "accuricsbucketdemo" { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accurics remediation [HIGH]: Ensure versioning is enabled for AWS S3 Buckets Vulnerability Remediation source: accurics-stageone There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accurics remediation [MEDIUM]: Ensure access logging is enabled for AWS S3 Buckets Vulnerability Remediation source: accurics-stageone There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accurics remediation [HIGH]: Ensure AWS S3 Buckets are accessible to all authenticated users Vulnerability Remediation source: accurics-stageone |
||
|
@@ -18,4 +24,20 @@ resource "aws_s3_bucket" "accuricsbucketdemo" { | |
tags = { | ||
Name = "bucketdemo" | ||
} | ||
|
||
server_side_encryption_configuration { | ||
rule { | ||
apply_server_side_encryption_by_default { | ||
sse_algorithm = "AES256" | ||
} | ||
} | ||
} | ||
} | ||
|
||
resource "aws_vpc" "<resource_name>" { | ||
cidr_block = "<cidr>" | ||
|
||
tags = { | ||
Name = "main" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accurics remediation
[HIGH]: Ensure at-rest server side encryption (SSE) is enabled for AWS S3 Buckets
Vulnerability
AWS S3 Buckets do not have at-rest server side encryption enabled to protect sensitive data.
Remediation
On the AWS S3 console, for each bucket that failed the rule, navigate to the Properties tab, and select Default encryption. Select an encryption method (AES-256 or AWS-KMS).
source: accurics-stageone