Skip to content

Unauthenticated nomad instance#158

Open
am0o0 wants to merge 14 commits intogoogle:mainfrom
am0o0:hashicorp-nomad
Open

Unauthenticated nomad instance#158
am0o0 wants to merge 14 commits intogoogle:mainfrom
am0o0:hashicorp-nomad

Conversation

@am0o0
Copy link
Contributor

@am0o0 am0o0 commented Aug 13, 2025

@leonardo-doyensec
Copy link
Contributor

Hello @am0o0.
Thank you for contribution. Can you please implement the testbed using Docker?

Feel free to reach out
~ Leonardo (Doyensec)

@am0o0
Copy link
Contributor Author

am0o0 commented Aug 21, 2025

@leonardo-doyensec Hello 👋
Im not sure about Docker since the Nomad need to have docker installed on the system, I'm not sure how it is possible.

@leonardo-doyensec
Copy link
Contributor

What about https://hub.docker.com/r/hashicorp/nomad?

@am0o0
Copy link
Contributor Author

am0o0 commented Aug 21, 2025

Ok sorry, let me check further.

@am0o0
Copy link
Contributor Author

am0o0 commented Aug 21, 2025

@leonardo-doyensec, I had to use --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:rw switches to run the Nomad. If you have any other solutions, I'd like to learn :)

@giacomo-doyensec
Copy link
Contributor

Hi @am0o0, I got it working without --privileged just like this

docker run --rm -it \
  -v /sys/fs/cgroup:/sys/fs/cgroup:rw \
  -p 4646:4646 \
  hashicorp/nomad:1.10 \
  agent -dev -bind 0.0.0.0 -network-interface='{{ GetDefaultInterfaces | attr "name" }}'

Could you also provide a safe version of the testbed?
Thanks and feel free to reach out!

@am0o0
Copy link
Contributor Author

am0o0 commented Feb 13, 2026

@giacomo-doyensec I appreciate your thorough solution.

@robert-doyensec, I think this PR is ready for review now.

@tooryx tooryx added the tsunami label Feb 18, 2026
@robert-doyensec
Copy link

Hi @am0o0 , sorry for the confusion. I ran into issues confirming the vulnerability with the provided testbed -- it does seem necessary to use --privileged and an exposed docker mount -v /var/run/docker.sock:/var/run/docker.sock when using the docker driver. Additionally, it doesn't seem to work when running on apple silicon due to failure to get the CPU usage. Can you update the README to reflect these, and add a small warning that the container is privileged?

Copy link

@robert-doyensec robert-doyensec left a comment

Choose a reason for hiding this comment

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

Minor changes for clarity

am0o0 and others added 8 commits February 27, 2026 19:55
Co-authored-by: Robert Dick <robert@doyensec.com>
Co-authored-by: Robert Dick <robert@doyensec.com>
Co-authored-by: Robert Dick <robert@doyensec.com>
Co-authored-by: Robert Dick <robert@doyensec.com>
Co-authored-by: Robert Dick <robert@doyensec.com>
Co-authored-by: Robert Dick <robert@doyensec.com>
Co-authored-by: Robert Dick <robert@doyensec.com>
Co-authored-by: Robert Dick <robert@doyensec.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants