Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kaniko trigger AWS GuardDuty critical issue #3232

Open
Allen-yan opened this issue Jul 3, 2024 · 1 comment
Open

kaniko trigger AWS GuardDuty critical issue #3232

Allen-yan opened this issue Jul 3, 2024 · 1 comment
Labels
area/security kind/security priority/awaiting_evidence waiting on user's input before we can close of assign priority

Comments

@Allen-yan
Copy link

We deployed the tekton/kaniko in aws eks. And AWS GuardDuty , a threat detection service, found there is a critical issue in kaniko building process:

A container has executed a newly created binary file.

The kaniko image version:
gcr.io/kaniko-project/executor:v1.18.0@sha256:f085ac43d71fc24b4b5a57596eee04e2ea0e85ed43d923760911049dcc00aa2e

It starts from /tekton/bin/entrypoint --> /kaniko/executor --> /bin/dash --> /usr/bin/wget. It seems that the executor wget something than compile it and execute it .

The kaniko executor get and compile the image is OK,why execute it?

@aaron-prindle aaron-prindle added area/security priority/awaiting_evidence waiting on user's input before we can close of assign priority kind/security labels Jul 10, 2024
@Allen-yan
Copy link
Author

I ask aws support about the issue.
They give me following info

The goal of Execution:Runtime/NewBinaryExecuted is to notify that a newly created or recently modified binary file in the container has been executed. This is achieved by collecting and transmitting open() system calls with the O_WRONLY, O_RDWR, O_CREATE flags and associating them with exec() system calls. When the creation of a new binary file through an open() system call and its subsequent execution are observed, this discovery is generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/security kind/security priority/awaiting_evidence waiting on user's input before we can close of assign priority
Projects
None yet
Development

No branches or pull requests

2 participants