Skip to content

mehmetmgrsl/aws-guardduty-work

Repository files navigation

WIP

Why AWS GuardDuty?

  • To protect your aws accounts with intelligent threat detection (1*)

  • It has capable of analysing tens of billions of events per minute across multiple AWS data sources (2*) such as:

    • AWS CloudTrail event logs,
    • Amazon Virtual Private Cloud (Amazon VPC) Flow Logs,
    • DNS query logs,
    • Amazon Simple Storage Service (Amazon S3) data plane events,
    • Amazon Elastic Kubernetes Service (Amazon EKS) audit logs, and
    • Amazon Relational Database Service (Amazon RDS) login events

How? (5*)

how-aws-guardduty

AWS EKS Protection with GuardDuty (4*)

  • GuardDuty launched Amazon EKS protection to monitor control plane activity by analyzing Kubernetes audit logs from existing and new EKS clusters in your accounts.

  • Configure EKS Protection in GuardDuty:

    • EKS Protection
    • Once you enable EKS Audit Log Monitoring, GuardDuty starts monitoring Kubernetes audit logs that capture API activity within your EKS cluster to detect threats.
    • To enable EKS Runtime Monitoring use the "Runtime Monitoring" section.

AWS GuardDuty with Terraform?

To enable GuardDuty with using Terraform, the resource (6*) was used after customizing some parts.

Please check the files under the https://github.com/mehmetmgrsl/aws-guardduty-work/tree/main/guardduty_terraform_module.

  • Run
    • cd guardduty_terraform_module
    • terraform init
    • terraform plan
    • terraform apply

Generating sample findings through the GuardDuty (8*)

  1. Open the GuardDuty console at https://console.aws.amazon.com/guardduty/.

  2. Choose Settings.

  3. Under Sample findings, choose Generate sample findings.

  4. Choose Findings. The sample findings are displayed on the Current findings page with the prefix [SAMPLE].

Resources

1* https://aws.amazon.com/guardduty/

2* https://marcincuber.medium.com/amazon-guardduty-deploy-eks-runtime-monitoring-using-terraform-45bbce1a3d1c

3* https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html

4* https://aws.amazon.com/blogs/aws/amazon-guardduty-now-supports-amazon-eks-runtime-monitoring/

5* Amazon GuardDuty Introduction - Stephane Maarek

6* AWS Guardduty Terraform - OpenWalnut

7* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/guardduty_detector_feature#example-usage

8* https://docs.aws.amazon.com/guardduty/latest/ug/sample_findings.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages