Skip to content

Code security demo#5

Open
bahar-shah wants to merge 2 commits into
mainfrom
bahar.shah/code-security-demo
Open

Code security demo#5
bahar-shah wants to merge 2 commits into
mainfrom
bahar.shah/code-security-demo

Conversation

@bahar-shah
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread terraform/main.tf
Comment on lines +5 to +6
resource "aws_ebs_volume" "iac_volume" {
availability_zone = data.aws_availability_zones.available_iac.names[0]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Infrastructure as Code Configuration Issue

'aws_accessanalyzer_analyzer' is undefined (...read more)

IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

View in Datadog  Leave us feedback  Documentation

Comment thread terraform/main.tf
Comment on lines +5 to +6
resource "aws_ebs_volume" "iac_volume" {
availability_zone = data.aws_availability_zones.available_iac.names[0]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Infrastructure as Code Configuration Issue

One of 'aws_ebs_volume.encrypted' is undefined (...read more)

EBS volumes should be encrypted

View in Datadog  Leave us feedback  Documentation

@@ -0,0 +1,6 @@
from ruamel.yaml import YAML

foo = YAML(typ='unsafe')
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Code Vulnerability

Suggested change
foo = YAML(typ='unsafe')
foo = YAML(typ='safe')
unsafe YAML deserialization (...read more)

Unsafe YAML deserialization. Make sure to use safe deserialization methods to avoid execution or arbitrary code.

Learn More

View in Datadog  Leave us feedback  Documentation

foo = YAML(typ='unsafe')

def myfunction(arg):
bar = YAML(typ='base') No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Code Vulnerability

Suggested change
bar = YAML(typ='base')
bar = YAML(typ='safe')
unsafe YAML deserialization (...read more)

Unsafe YAML deserialization. Make sure to use safe deserialization methods to avoid execution or arbitrary code.

Learn More

View in Datadog  Leave us feedback  Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants