juice-shop/multi-juicer
À propos
Host and manage multiple Juice Shop instances for security trainings and Capture The Flags
Sécurité et confidentialitéProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalRunning CTFs and Security Trainings with OWASP Juice Shop is usually quite tricky, Juice Shop just isn't intended to be used by multiple users at a time. Instructing everybody how to start Juice Shop on their own machine works ok, but takes away too much valuable time.
MultiJuicer gives you the ability to run separate Juice Shop instances for every participant on a central kubernetes cluster, to run events without the need for local Juice Shop instances.
What it does:
- dynamically creates new Juice Shop instances when needed
- runs on a single domain, comes with a LoadBalancer sending the traffic to the participants Juice Shop instance
- a neat little leaderboard showing the progress of all participants
- a handy admin page for managing instances
- backup and auto apply challenge progress in case of Juice Shop container restarts
- cleanup old & unused instances automatically
For a detailed description of the architecture and individual components, see the Architecture Documentation.
👉 New to MultiJuicer? See the visual walkthrough for how participants register, get their JuiceShop instances and how the scores are tracked on the scoreboard.
Installation
MultiJuicer runs on kubernetes, to install it you'll need helm
helm install multi-juicer oci://ghcr.io/juice-shop/multi-juicer/helm/multi-juicer
See production notes for a checklist of values you'll likely need to configure before using MultiJuicer in proper events.
To setup MultiJuicer with support for the JuiceShop v20+ AI/LLM realted challenges, see AI/LLM configuration guide
Installation Guides for specific Cloud Providers / Environments
Generally MultiJuicer runs on pretty much any kubernetes cluster, but to make it easier for anybody who is new to kubernetes we got some guides on how to setup a kubernetes cluster with MultiJuicer installed for some specific Cloud providers.
Customizing the Setup
You got some options on how to setup the stack, with some option to customize the JuiceShop instances to your own liking. You can find the default config values under: helm/multi-juicer/values.yaml
Download & Save the file and tell helm to use your config file over the default by running:
helm install -f values.yaml multi-juicer ./multi-juicer/helm/multi-juicer/
To customize the theming of the JuiceShop instances and the MultiJuicer UI (theme, logo, enabled challenges, ...), see the JuiceShop customization guide.
Optional Pages
The MultiJuicer UI includes optional pages suited to different kinds of events. The Score Overview and the CTF View are enabled by default, the Class Progress has to be configured first. Depending on whether you are running a training, a university lecture, a workshop or a CTF, you may want to disable some of them. Disabled pages are removed from the navigation and redirect to the start page when opened directly.
Score Overview

Shows a ranked list of all teams with their scores and number of solved challenges, with detail pages for each team and challenge. Disabling the Score Overview also disables these detail pages.
To disable it, set config.views.scoreOverview.enabled to false:
config:
views:
scoreOverview:
enabled: false
CTF View

The CTF view shows a 3D globe on which each challenge is represented by a country. Once a team is the first to solve a challenge, its country is filled with that team's pattern. This view is mostly intended to be displayed on a projector or large screen, but can also be used as a regular score overview page.
To disable it, set config.views.ctf.enabled to false:
config:
views:
ctf:
enabled: false
Class Progress

Shows which team has solved which of the challenges picked for a training or lecture, organized in named groups, e.g. one group per week or topic.
To enable it, set config.views.classProgress.enabled to true and list the challenge groups:
config:
views:
classProgress:
enabled: true
groups:
- name: "Week 1"
challenges: [scoreBoardChallenge, localXssChallenge, loginAdminChallenge]
- name: "Week 2"
challenges: [loginJimChallenge, forgedFeedbackChallenge]
- name: "Bonus"
challenges: [nullByteChallenge]
The keys of all challenges are listed under /multi-juicer/api/challenges.
Deinstallation
helm delete multi-juicer
FAQ
How much compute resources will the cluster require?
To be on the safe side calculate with:
- 1GB memory & 1CPU overhead, for MultiJuicer itself
- 384MB & 0.1CPU * number of participants / teams, for the individual JuiceShop Instances
The numbers above reflect the default resource limits. These can be tweaked, see: Customizing the Setup
How many users can MultiJuicer handle?
There is no real fixed limit. (Even thought you can configure one 😉) The custom LoadBalancer, through which all traffic for the individual Instances flows, can be replicated as much as you'd like. You can also attach a Horizontal Pod Autoscaler to automatically scale the LoadBalancer.
Why a custom LoadBalancer?
There are some special requirements which we didn't find to be easily solved with any pre build load balancer:
- Restricting the number of users for a deployment to only the members of a certain team.
- The load balancers cookie must be save and not easy to spoof to access another instance.
- Handling starting of new instances.
If you have awesome ideas on how to overcome these issues without a custom load balancer, please write us, we'd love to hear from you!
Why a separate kubernetes deployment for every team?
There are some pretty good reasons for this:
- The ability delete the instances of a team separately. Scaling down safely, without removing instances of active teams, is really tricky with a scaled deployment. You can only choose the desired scale not which pods to keep and which to throw away.
- To ensure that pods are still properly associated with teams after a pod gets recreated. This is a non problem with separate deployment and really hard with scaled deployments.
- The ability to embed the team name in the deployment name. This seems like a stupid reason but make debugging SOOO much easier, with just using
kubectl.
How to manage JuiceShop easily using kubectl?
You can list all JuiceShops with relevant information using the custom-columns feature of kubectl.
$ kubectl get -l app.kubernetes.io/name=juice-shop -o custom-columns="TEAM:metadata.labels.team,SOLVED-CHALLENGES:metadata.annotations.multi-juicer\.owasp-juice\.shop/challengesSolved,LAST-REQUEST:metadata.annotations.multi-juicer\.owasp-juice\.shop/lastRequestReadable" deployments
TEAM SOLVED-CHALLENGES LAST-REQUEST
foobar 3 Wed May 4 2042 18:14:22 GMT+0000 (Coordinated Universal Time)
team-42 0 Wed May 4 2042 18:14:30 GMT+0000 (Coordinated Universal Time)
the-empire 0 Wed May 4 2042 18:14:46 GMT+0000 (Coordinated Universal Time)
Where did this project come from
The project start at iteratec, a german based software development company, to run their security trainings for their own developers and their clients. The project was then open sourced in 2019 and donated to the OWASP organisation / the OWASP Juice Shop project in 2023.
Talk with Us!
You can reach us in the #project-juiceshop channel of the OWASP Slack Workspace. We'd love to hear any feedback or usage reports you got. If you are not already in the OWASP Slack Workspace, you can join via this link
Explorer des projets similaires
Chargement…