falcosecurity / event-generator

Generate a variety of suspect actions that are detected by Falco rulesets
Apache License 2.0
94 stars 40 forks source link

Added an event for default rule "Kubernetes Client Tool Launched in Container" #169

Closed GLVSKiriti closed 7 months ago

GLVSKiriti commented 8 months ago

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind documentation

/kind tests

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area commands

/area pkg

/area events

What this PR does / why we need it: Added an event for default rule "Kubernetes Client Tool Launched in Container" as mentioned here

Which issue(s) this PR fixes:

Fixes #168

Special notes for your reviewer:

GLVSKiriti commented 8 months ago

@FedeDP @leogr Just by running the kubectl the rule triggers

KubernetesCLientToolLaunchedInContainer

And the docker file I used is

FROM alpine:latest

# Install dependencies
RUN apk add --no-cache curl

# Install kubectl
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" \
    && chmod +x kubectl \
    && mv kubectl /usr/local/bin/

CMD ["sh"]
poiana commented 7 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, GLVSKiriti

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/falcosecurity/event-generator/blob/main/OWNERS)~~ [FedeDP] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
poiana commented 7 months ago

LGTM label has been added.

Git tree hash: 044d51c9bf689090c9eb8b5089fbfc289248f4c4