Skip to content

Conversation

@chyde2
Copy link
Owner

@chyde2 chyde2 commented Mar 20, 2025

No description provided.

#!/bin/bash
echo "Hello, World!" > index.html
nohup python -m SimpleHTTPServer 80 &
export access_key = "AKIAIOSFODNN7EXAMAAA"

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

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

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

id = aws_launch_template.example.id
}

metadata_options {

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

<groupId>org.example</groupId>
<artifactId>log4j-rce</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

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

<mainClass>MyExample</mainClass>
</manifest>
</archive>
<descriptorRefs>

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


metadata_options {
http_endpoint = "enabled"
http_tokens = "required"

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

automountServiceAccountToken: false
securityContext:
seccompProfile:
type: RuntimeDefault

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

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

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

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

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

region = "us-west-2"
}

resource "aws_instance" "example" {

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

apiVersion: v1
kind: Pod
metadata:
name: privileged-pod

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

user_data = <<EOF
#!/bin/bash
echo "Hello, World!" > index.html
nohup python -m SimpleHTTPServer 80 &

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

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

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

<configuration>
<archive>
<manifest>
<mainClass>MyExample</mainClass>

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

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

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

}

metadata_options {
http_endpoint = "enabled"

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

@@ -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"

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

<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencies>

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

@@ -0,0 +1,71 @@
provider "aws" {

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

</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>

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

instance_type = "t2.micro"
key_name = "example_keypair"
subnet_id = "example_subnet_id"
vpc_security_group_ids = ["example_security_group_id"]

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

<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>

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

<packaging>jar</packaging>

<dependencies>
<dependency>

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

http_endpoint = "enabled"
http_tokens = "required"
}
ebs_optimized = true

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

</descriptorRefs>
</configuration>
<executions>
<execution>

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

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>

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

encrypted = true
}

launch_template {

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

<?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">

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

kind: Pod
metadata:
name: privileged-pod
namespace: my-namespace

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

<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>

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

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>

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

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

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

<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>

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

region = "us-west-2"
}

resource "aws_instance" "example" {

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


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

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

<configuration>
<archive>
<manifest>
<mainClass>MyExample</mainClass>

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

key_name = "example_keypair"
subnet_id = "example_subnet_id"
vpc_security_group_ids = ["example_security_group_id"]
associate_public_ip_address = false

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

@@ -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"

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

<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>
<artifactId>log4j-rce</artifactId>

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

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

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.

2 participants