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

vdk-plugins: introduced vdk-audit plugin #1221

Merged
merged 16 commits into from
Oct 10, 2022

Conversation

mivanov1988
Copy link
Contributor

Currently, the VDK users have the ability to execute any kind of system commands through the data job. This increases the risk to the system as data jobs contain arbitrary user code.

Visibility into the actions provides opportunities for test frameworks, logging frameworks, and security tools to monitor and optionally limit actions taken by the runtime.
This plugin provides the ability to audit and potentially limit user actions. In order to reduce the attack surface, we will limit the user actions related to the interaction with the system like os commands (e.g. os.system("ls")). Also, to have a better understanding of what precisely the job does, we will log not permitted job actions. The plugin is based on the Python Audit Hook and you can find more information here - https://peps.python.org/pep-0578/.

Testing Done: local job execution and unit tests

Signed-off-by: Miroslav Ivanov miroslavi@vmware.com

mivanov1988 and others added 4 commits October 5, 2022 17:32
Visibility into the actions provides opportunities for test frameworks, logging
frameworks, and security tools to monitor and optionally limit actions taken by the
runtime.

This plugin provides the ability to audit and potentially limit user actions. In
order to have a better understanding of what precisely the job does, we will log not permitted
job actions. It is based on the Python Audit Hook - https://peps.python.org/pep-0578/.

Testing Done: local job execution and unit tests

Signed-off-by: Miroslav Ivanov miroslavi@vmware.com
Visibility into the actions provides opportunities for test frameworks, logging
frameworks, and security tools to monitor and optionally limit actions taken by the
runtime.

This plugin provides the ability to audit and potentially limit user actions. In
order to have a better understanding of what precisely the job does, we will log not permitted
job actions. It is based on the Python Audit Hook - https://peps.python.org/pep-0578/.

Testing Done: local job execution and unit tests

Signed-off-by: Miroslav Ivanov miroslavi@vmware.com
Visibility into the actions provides opportunities for test frameworks, logging
frameworks, and security tools to monitor and optionally limit actions taken by the
runtime.

This plugin provides the ability to audit and potentially limit user actions. In
order to have a better understanding of what precisely the job does, we will log not permitted
job actions. It is based on the Python Audit Hook - https://peps.python.org/pep-0578/.

Testing Done: local job execution and unit tests

Signed-off-by: Miroslav Ivanov miroslavi@vmware.com
Visibility into the actions provides opportunities for test frameworks, logging
frameworks, and security tools to monitor and optionally limit actions taken by the
runtime.

This plugin provides the ability to audit and potentially limit user actions. In
order to have a better understanding of what precisely the job does, we will log not permitted
job actions. It is based on the Python Audit Hook - https://peps.python.org/pep-0578/.

Testing Done: local job execution and unit tests

Signed-off-by: Miroslav Ivanov miroslavi@vmware.com
@antoniivanov
Copy link
Collaborator

Let's name the plugin vdk-audit? Hook is a specific single method that is implemented. A plugin is a collection of hooks implemented together to solve a common problem. At least that's the differentiation in the terms that I want to establish.

And while I understand that this is referring to PEP 578 audit hooks, I still think vdk-audit is clear enough and I will be grateful if you change it

Copy link
Collaborator

@murphp15 murphp15 left a comment

Choose a reason for hiding this comment

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

This is a really cool feature.

@mivanov1988 mivanov1988 changed the title vdk-plugins: introduced vdk-audit-hook plugin vdk-plugins: introduced vdk-audit plugin Oct 7, 2022
Copy link
Collaborator

@antoniivanov antoniivanov left a comment

Choose a reason for hiding this comment

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

LGTM.

@mivanov1988 mivanov1988 merged commit 675d8aa into main Oct 10, 2022
@mivanov1988 mivanov1988 deleted the person/miroslavi/audit-hook-plugin branch October 10, 2022 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants