Skip to content

Test#2

Open
chyde2 wants to merge 1 commit intomainfrom
chyde2-patch-1
Open

Test#2
chyde2 wants to merge 1 commit intomainfrom
chyde2-patch-1

Conversation

@chyde2
Copy link
Copy Markdown
Owner

@chyde2 chyde2 commented Mar 20, 2025

No description provided.

Comment thread ec2.tf
#!/bin/bash
echo "Hello, World!" > index.html
nohup python -m SimpleHTTPServer 80 &
export access_key = "AKIAIOSFODNN7EXAMAAA"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] AWS Access Key
    Rule ID: APPSEC_SECRET_2

Description

AWS Access Keys

Comment thread ec2.tf
echo "Hello, World!" > index.html
nohup python -m SimpleHTTPServer 80 &
export access_key = "AKIAIOSFODNN7EXAMAAA"
export secret_key = "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"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LOW  [Secret] Random High Entropy String
    Rule ID: APPSEC_SECRET_80

Description

Random High Entropy Strings

Comment thread ec2.tf
id = aws_launch_template.example.id
}

metadata_options {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<groupId>org.example</groupId>
<artifactId>log4j-rce</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<mainClass>MyExample</mainClass>
</manifest>
</archive>
<descriptorRefs>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf

metadata_options {
http_endpoint = "enabled"
http_tokens = "required"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread log4j.yaml
automountServiceAccountToken: false
securityContext:
seccompProfile:
type: RuntimeDefault
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread Dockerfile
WORKDIR /usr/src/poc
RUN mvn clean && mvn package
USER m3
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
echo "Hello, World!" > index.html
nohup python -m SimpleHTTPServer 80 &
export access_key = "AKIAIOSFODNN7EXAMAAA"
export secret_key = "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"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
region = "us-west-2"
}

resource "aws_instance" "example" {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread log4j.yaml
apiVersion: v1
kind: Pod
metadata:
name: privileged-pod
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
user_data = <<EOF
#!/bin/bash
echo "Hello, World!" > index.html
nohup python -m SimpleHTTPServer 80 &
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread Dockerfile
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1


CMD ["java", "-jar", "/usr/src/poc/target/log4j-rce-1.0-SNAPSHOT-jar-with-dependencies.jar"] 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.

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<configuration>
<archive>
<manifest>
<mainClass>MyExample</mainClass>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
echo "Hello, World!" > index.html
nohup python -m SimpleHTTPServer 80 &
export access_key = "AKIAIOSFODNN7EXAMAAA"
export secret_key = "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"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
}

metadata_options {
http_endpoint = "enabled"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencies>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
@@ -0,0 +1,71 @@
provider "aws" {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
instance_type = "t2.micro"
key_name = "example_keypair"
subnet_id = "example_subnet_id"
vpc_security_group_ids = ["example_security_group_id"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<packaging>jar</packaging>

<dependencies>
<dependency>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
http_endpoint = "enabled"
http_tokens = "required"
}
ebs_optimized = true
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
</descriptorRefs>
</configuration>
<executions>
<execution>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
encrypted = true
}

launch_template {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread log4j.yaml
kind: Pod
metadata:
name: privileged-pod
namespace: my-namespace
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread Dockerfile
WORKDIR /usr/src/poc
RUN mvn clean && mvn package
USER m3
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
region = "us-west-2"
}

resource "aws_instance" "example" {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml

<groupId>org.example</groupId>
<artifactId>log4j-rce</artifactId>
<version>1.0-SNAPSHOT</version>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<configuration>
<archive>
<manifest>
<mainClass>MyExample</mainClass>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread ec2.tf
key_name = "example_keypair"
subnet_id = "example_subnet_id"
vpc_security_group_ids = ["example_security_group_id"]
associate_public_ip_address = false
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread pom.xml
<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>
<artifactId>log4j-rce</artifactId>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

Comment thread Dockerfile
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1


CMD ["java", "-jar", "/usr/src/poc/target/log4j-rce-1.0-SNAPSHOT-jar-with-dependencies.jar"] 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.

HIGH  [Secret] Kuberentes deployment may be vulnerable - please revise code
    Rule ID: APPSEC_CUSTOM_1

Description

Kuberentes deployment may be vulnerable - please revise code

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.

1 participant