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

event for detecting Terminal shell inside container. #98

Open
h4l0gen opened this issue Mar 12, 2024 · 7 comments
Open

event for detecting Terminal shell inside container. #98

h4l0gen opened this issue Mar 12, 2024 · 7 comments

Comments

@h4l0gen
Copy link
Contributor

h4l0gen commented Mar 12, 2024

Motivation
We have one stable rule in default-rules Terminal inside container. I feel it would be great to have an event about it in event-generator.

Feature
adding an event of detecting terminal shell inside container.

Alternatives

Additional context

@h4l0gen
Copy link
Contributor Author

h4l0gen commented Mar 12, 2024

/assign @leogr @alacuku @jasondellaluce I want to discuss this event . I feel that we need this event for detecting terminal shell. Please provide your thoughts on it.

@leogr
Copy link
Member

leogr commented Mar 14, 2024

The difficulty of generating this event resides in the "container" part. Currently, the event generator does not have a means to launch a container. So, there's no simple way to generate this event (unless the event-generator is already running in a container).

@FedeDP @LucaGuerra any idea?

@h4l0gen
Copy link
Contributor Author

h4l0gen commented Mar 14, 2024

Yes @leogr , actually i opened this issue to discuss on ways to create this event, with you. I am working on finding some ideas on this. Currently am trying to find some way with using proc.tty

@h4l0gen
Copy link
Contributor Author

h4l0gen commented Mar 28, 2024

Hii @leogr @FedeDP @jasondellaluce @alacuku I want to propose an idea for spawning container functionality in event-generator using docker go API. As a member of this club, I worked on project Gasper in SDSLabs (student run technical club in IIT Roorkee).

  1. Gasper can create container like this
  2. It can delete containers too . (we can use it to delete container after event execution)
  3. It can execute command inside container.
  4. It can returns the logs from a docker container too.

This tool have MIT license too as per CNCF requirement.

we can manipulate this tool as per requirement of event-generator, by using this we have one additional functionality for event-generator and events for rules which requires container.

Please provide your thoughts regarding this idea.

Thank You!!

@FedeDP
Copy link
Contributor

FedeDP commented Mar 28, 2024

Well as far as i can see, that tool just leverages docker go client library, just like eg: driverkit does.
I see no point in depending on gasper when we can just directly use the docker library.

@h4l0gen
Copy link
Contributor Author

h4l0gen commented Mar 28, 2024

@FedeDP, yes, depending on Gasper is not useful. I provided it as an example of how I am considering implementing this change.

@poiana
Copy link

poiana commented Jun 29, 2024

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

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

No branches or pull requests

4 participants