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

Slurm Exposed REST API Detector #496

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Conversation

lanced00m
Copy link
Contributor

@lanced00m lanced00m commented Jun 6, 2024

#423
google/security-testbeds#98
I wrote this plugin based on this which has been merged recently with minimal changes as many as possible.

@tooryx tooryx linked an issue Jul 26, 2024 that may be closed by this pull request
@tooryx tooryx added the Contributor main The main issue a contributor is working on (top of the contribution queue). label Aug 6, 2024
Copy link
Collaborator

@lokiuox lokiuox left a comment

Choose a reason for hiding this comment

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

Hey @lanced00m, thank you for your contribution!

I'm reviewing your plugin and I confirm it works correctly. I left a few comments on things that could be improved. Also, please update the first message with the link of the new testbed PR (google/security-testbeds#98)

Comment on lines 3 to 7
This detector checks for exposed slurm REST API daemon by running an arbitrary command.

Ref:

- https://slurm.schedmd.com/rest.html
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please clarify here that the vulnerable configuration involves a reverse proxy to the API that does not check authentication and that the default REST API is secure.

Reference:

community/detectors/slurm_exposed_rest_api/build.gradle Outdated Show resolved Hide resolved
community/detectors/slurm_exposed_rest_api/build.gradle Outdated Show resolved Hide resolved
lanced00m and others added 16 commits November 27, 2024 17:45
…oogle/tsunami/plugins/detectors/rce/SlurmExposedRestApiDaemonDetector.java

Co-authored-by: Savio Sisco <[email protected]>
…oogle/tsunami/plugins/detectors/rce/SlurmExposedRestApiDaemonDetector.java

Co-authored-by: Savio Sisco <[email protected]>
…oogle/tsunami/plugins/detectors/rce/SlurmExposedRestApiDaemonVuLnDetectorTest.java

Co-authored-by: Savio Sisco <[email protected]>
…oogle/tsunami/plugins/detectors/rce/SlurmExposedRestApiDaemonVuLnDetectorTest.java

Co-authored-by: Savio Sisco <[email protected]>
…oogle/tsunami/plugins/detectors/rce/SlurmExposedRestApiDaemonVuLnDetectorTest.java

Co-authored-by: Savio Sisco <[email protected]>
…oogle/tsunami/plugins/detectors/rce/SlurmExposedRestApiDaemonVuLnDetectorTest.java

Co-authored-by: Savio Sisco <[email protected]>
…oogle/tsunami/plugins/detectors/rce/SlurmExposedRestApiDaemonVuLnDetectorTest.java

Co-authored-by: Savio Sisco <[email protected]>
…oogle/tsunami/plugins/detectors/rce/SlurmExposedRestApiDaemonDetector.java

Co-authored-by: Savio Sisco <[email protected]>
…oogle/tsunami/plugins/detectors/rce/SlurmExposedRestApiDaemonDetector.java

Co-authored-by: Savio Sisco <[email protected]>
@lanced00m
Copy link
Contributor Author

@lokiuox, thank you for your comprehensive review! All issues are solved now, so you can check the PR again.

Copy link
Collaborator

@lokiuox lokiuox left a comment

Choose a reason for hiding this comment

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

Hey @lanced00m, here's just a few more minor things to fix, then the plugin's good to go.

Copy link
Collaborator

@lokiuox lokiuox left a comment

Choose a reason for hiding this comment

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

LGTM - Approved
@maoning we can merge this and google/security-testbeds#98

Reviewer: Savio, Doyensec
Plugin: Slurm Exposed Rest API Detector
Drawbacks: None.

@lokiuox lokiuox added the lgtm label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor main The main issue a contributor is working on (top of the contribution queue). lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AI PRP: Request Slurm Exposed UI & API
3 participants