AWS re:Invent 2023: Security Session Notes 📝
Tags: aws, cloud, security, devops
Published: 2023-12-02 22:04:35


AWS re:Invent 2023 is completed in Las Vegas. I’ve watched some security-focused sessions and announcements online and I want to share my notes with you. I hope you will enjoy it! Let’s start! 🥰

---

<u>**🧐 Sessions that I’ve recommended:**</u>

**💁‍♀️ Move fast, stay secure: Strategies for the future of security (SEC237):**
[In this innovation talk](https://www.youtube.com/watch?v=T-LwDlZbbU4), we start with “Security is a people issue. Computers do not attack each other.”
- Security operations like playing chess, we need to predict the attackers’ actions. In this game, technology and humans are together.
- Human and AI. We need both of them for better security. AI increases work efficiency, but we still need people to decide. AI cannot decide. We need talented engineers to decide.
- In the cybersecurity area, we have a talent gap. Security knowledge is not enough, we need engineers who understand the organizational logic of the company.
With the AI popularity, we have lots of concerns and lots of to-dos as security professionals. You should ask yourself and your environment if you’re building your app with AI or build AI: “Where is my data?”, “What happens with my query and any associated data?”, “Is the output of these models accurate enough?” From AWS's perspective = “Your data is your data.”

**💁‍♀️ Elevate your security investigations using generative AI (SEC244):**

[In this session](https://www.youtube.com/watch?v=Vf-s3ZQmJhc), we learn about Amazon Detective and the newest announcements. There are 3 different challenges in security investigations and we can solve them with Amazon Detective:

- Analysts cannot review every high-priority security issue.
- Shortage of skilled security professionals.
- Increasing cost and complexity with investigating potential security findings.

Amazon Detective collects security logs from different services and analyzes them with different ML algorithms.

![Amazon Detective](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z73gd2qwg63kil50om88.png)
- We have a new feature called “**Finding Group Summary**”. With this feature, the findings are summarized with correlated behaviors and are more understandable.
- Another one is integration with **Security Lake for root cause analysis**. Amazon Detective uses the prepared queries or tunes them to meet the specific security needs of any investigation.

In the session, we also have an example scenario that we can analyze with Detective. It helps us to understand the use cases and new features in detail.
![Investigation with Amazon Detective](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mda0m8w8bs4hwtagpqf0.png)
If you want to use Amazon Detective for your workloads, [this is the pricing.](https://aws.amazon.com/detective/pricing/)

**💁‍♀️ Amazon S3 security and access control best practices (STG315):**

[In this session,](https://www.youtube.com/watch?v=WZGG8RkvApY) I felt like I was taking a security specialty exam course, and liked it. We saw lots of different usages of different approaches to secure our S3 buckets.

- Firstly, we should know AWS S3 is secure by default: Encryption (SSE-S3) by default, S3 blocks public access enabled by default, and S3 ACLs are disabled by default. In the S3 access management process, it’s important to understand IAM (obviously), bucket policies, and conditions.
- For access management, AWS recommends not using ACLs anymore. If you want to track your ACL usage, you can use S3 Inventory reports, CloudTrail, and S3 access logs.
![Multiple mechanisms for access management for Amazon S3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/38kggvge1a1861xn3ldr.png)
- For encryption, AWS has different options for our objects. This cool table summarizes it. You can choose the best option for your regulatory and security needs.
![AWS S3 encryption at rest options](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pr6l0xs96pirf0i39l2d.png)
- If you have strict regulatory needs about your data, consider dual-layer server-side encryption. All details are [here.](https://aws.amazon.com/about-aws/whats-new/2023/06/amazon-s3-dual-layer-encryption-compliance-workloads/)
- If you want to decrease your costs of encryption/decryption processes, you can use S3 bucket keys. The logic is simple here: In the first request, we’re going to request to KMS, in Nth requests, we’re going to S3 bucket keys that are time-limited within Amazon S3. It also works with multi-tenant environments.
![S3 bucket keys decryption process](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v8p1bss8e23lrukdc0s4.png)
- If you want to simplify the security management for S3, you can use S3 access points. Each S3 access point has its own DNS name and point policy.
![S3 access points](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ujyb7j71xaayeabb9kwf.png)
**NEW: S3 Access Grants: And wow, we have a new access control mechanism.** You can define granular access to your Amazon S3 data based on applications, personas, groups, or organizational units.
![S3 access grants](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bnlg2kdfv79q22zx8jum.png)

**💁‍♀ ️Governance and security with infrastructure as code (DOP209):**

This is a developer-focused talk. We can learn how to catch issues early with cdk-nag, validate your pipelines with cfn-guard, and protect your accounts from unintended changes with CloudFormation hooks.
![Governance and security with infrastructure as code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cnb8005iezcqhex5d0ib.png)

**💁‍♀️ Safeguarding infrastructure from DDoS attacks with AWS edge services (NET201):**

[Interesting session about DDoS attacks and mitigation tactics.](https://www.youtube.com/watch?v=KpAao6ox-cM)

**💁‍♀ ️Streamlining security investigations with Amazon Security Lake (SEC234):**

We heard about Amazon Security Lake in re: Invent 2022. [In this session](https://www.youtube.com/watch?v=g5uIrAod910), we will gain visibility for comprehensive security investigations and swift incident responses in hybrid environments.

**💁‍♀ Centralize user activity from external sources in AWS CloudTrail Lake (COP341):**

[This is a quick demo session](https://www.youtube.com/watch?v=5CaJ_dTgTMU) and I like it. We will learn how we can use AWS CloudTrail Lake to centralize user activity from external sources in one place.

---
**<u>🧐 Announcements that I’ve noted:</u>**

**- Integrating Amazon Inspector scans into your CI/CD pipeline:** [You can use Amazon Inspector as your scanner for your images.](https://docs.aws.amazon.com/inspector/latest/user/scanning-cicd.html) It’s an important update for DevSecOps.

**- IAM Access Analyzer now simplifies inspecting unused access to guide you toward the least privilege:** We love the “at least privilege principle”. As you know, it’s hard to provide an audit of this in all AWS accounts. [AWS IAM Access Analyzer now simplifies inspecting unused access.](https://aws.amazon.com/about-aws/whats-new/2023/11/iam-access-analyzer-inspecting-unused-access/) Note: Please read the pricing guide before you start to use this.

**- Amazon Inspector agentless vulnerability assessments for EC2 (preview):** Amazon Inspector now offers continuous monitoring of your Amazon EC2 instances for software vulnerabilities [without installing an agent or additional software.](https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-inspector-agentless-assessments-ec2-preview/) You can use this feature within the hybrid mode.

**- Introducing Amazon GuardDuty ECS Runtime Monitoring, including AWS Fargate:** Your first to-do in an AWS account, enable GuardDuty. In containerized environments, it’s important to add threat intelligence for it. [AWS announces Amazon GuardDuty ECS Runtime Monitoring](https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-guardduty-ecs-runtime-monitoring-fargate/), an expansion of Amazon GuardDuty that introduces runtime threat detection for Amazon ECS workloads — including serverless container workloads running on AWS Fargate.

**- Amazon Inspector expands AWS Lambda code scanning with generative AI-powered remediation:** For the reducing time to fix it’s an important update. [AWS includes assisted code remediation using generative AI and automated reasoning to Amazon Inspector.](https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-inspector-aws-lambda-code-scanning/) Note: I’ve tested this feature and got some errors about it. I’ll reach out to the support team.

**- AWS Config launches generative AI-powered natural language querying (preview):** We can ask questions like: “Show me all non-compliant S3 buckets in my organization.” It simplifies the investigation and search of [AWS resource configurations and changes for our resources.](https://aws.amazon.com/about-aws/whats-new/2023/11/aws-config-generative-ai-powered-natural-language-querying-preview/)

**- AWS announces CloudWatch Logs Anomaly Detection and Pattern Analysis:** Anomaly detection is important for our production workloads. [Using these new features, we can identify unusual events, and use these accelerate our investigation.](https://aws.amazon.com/about-aws/whats-new/2023/11/aws-cloudwatch-logs-anomaly-detection-pattern-analysis/)

**- Amazon Detective announces investigations for IAM:** Amazon Detective provides an investigation of AWS IAM entities for anomalies. [This new capability](https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-detective-investigations-iam/) helps us determine whether IAM entities have potentially been compromised or involved in any known scenarios.
**- You can now customize security controls in AWS Security Hub:** We always need customization based on our environments for security posture management. [With custom control parameters](https://aws.amazon.com/about-aws/whats-new/2023/11/customize-security-controls-aws-security-hub/), Security Hub evaluates the control against the value that we specify. There are some customization examples from AWS:
*[CloudWatch.16] — CloudWatch log groups should be retained for a specified period: You can specify the retention period.
*[IAM.7] — Password policies for IAM users should have strong configurations: You can specify parameters related to password strength
*[EC2.18] — Security groups should only allow unrestricted incoming traffic for authorized ports: You can specify which ports are authorized to permit unrestricted incoming traffic.
*[Lambda.5] — VPC Lambda functions should operate in multiple Availability Zones: You can specify the minimum number of Availability Zones that produce a passed finding.

**- Amazon CodeWhisperer offers new AI-powered code remediation, IaC support, and integration with Visual Studio:**  We love the shift left principle as DevSecOps engineers and security professionals. W[ith an AI-powered code remediation feature](https://aws.amazon.com/blogs/aws/amazon-codewhisperer-offers-new-ai-powered-code-remediation-iac-support-and-integration-with-visual-studio/), it provides generative AI-powered code suggestions to help remediate identified security and code quality issues. Fix before exist.

Thanks for reading! Stay secure in the cloud! 🌤