Adding a endpoint for each eop card and to the card browser
This feature will be part of Google Summer of code 2026. Please ensure you read the following to ensure you are able to participate: https://owasp.org/www-community/initiatives/gsoc/gsoc2026
The Solution
Similarly to cornucopia, we should add an endpoint for each EoP card and have a browsable EOP deck. A feature like that has been asked for through OWASP Threat Dragon in order to integrate threat modeling card games into Threat Dragon. This will make it easier to increase adoption when doing threat modeling using card games.
Additional context
Each of the cards in the EoP game should be browsable from here: https://cornucopia.owasp.org/cards and from here: http://cornucopia.owasp.org/edition/eop
Like done here:
http://cornucopia.owasp.org/edtion/webapp
and here:
http://cornucopia.owasp.org/cards/VE2
The code that needs to be changed can be found here:
- https://github.com/OWASP/cornucopia/tree/master/cornucopia.owasp.org/src/routes/cards
- https://github.com/OWASP/cornucopia/blob/master/cornucopia.owasp.org/src/routes/edition/%5Bedition%5D/%5Bcard%5D/%5Bversion%5D/%5Blang%5D/%2Bpage.svelte
- https://github.com/OWASP/cornucopia/blob/master/cornucopia.owasp.org/src/routes/edition/%5Bedition%5D/%5Bcard%5D/%5Bversion%5D/%2Bpage.svelte
- https://github.com/OWASP/cornucopia/blob/master/cornucopia.owasp.org/src/routes/edition/%5Bedition%5D/%5Bcard%5D/%2Bpage.svelte
- https://github.com/OWASP/cornucopia/blob/master/cornucopia.owasp.org/src/routes/edition/%5Bedition%5D/%2Bpage.svelte
- https://github.com/OWASP/cornucopia/blob/master/cornucopia.owasp.org/src/routes/cards/%2Bpage.svelte
The source for the cards (description and card values) are available here: https://github.com/OWASP/cornucopia/blob/master/source/eop-cards-5.0-en.yaml
Once it is done, it should work like for the website edition:
https://cornucopia.owasp.org/cards/AZ2
You may need to add some dummy yaml pages under a folder called eop-cards-5.0-en here: https://github.com/OWASP/cornucopia/tree/master/cornucopia.owasp.org/data/cards
The YAML does not need to be filled out.
The graphics can be found here: https://github.com/adamshostack/eop/tree/master We prefer the use of svg to minimize the site load, if possible, but there is already images and css for eop generated and available at: https://github.com/OWASP/cornucopia/blob/1bfa5cf9f5ccf96a8c709adbf051f1624ee6e765/copi.owasp.org/assets/css/cards.scss#L500
The EoP cards should also be accessible through the API that OWASP Threat Dragon uses: /api/cre/[edition] /[lang]/
This is the full overview over the html routes:
/edition/[edition]/[card]/[version]/[en] /edition/[edition]/[card]/[version] /edition/[edition]/[card] /edition/[edition] /cards/[card]
In addition you have the json api which gives you:
/lang/[edition]/[version] /cre/[edition]/[lang] /cre/[edition]/[lang]
@sydseter Can you assign this to me ?
@immortal71 This one is meant for GSOC
@sydseter Thanks for the clarification !! I’m surprise I had no idea cornucopia is participating in GSoC but I am happy,I am wanted work on project with Cornucopia so it is good orportunity for me too!! I have 1 pr merge and 2-3 pr in progress (waiting for your suggestion as I have updated them as per u suggested ) ,I have no clue what to do for prep ? Would you prefer that this work is kept for the selected GSoC contributor and that I focus on other issues in the meantime or should I start working on a small proof-of-concept for the EoP card endpoints (based on the existing cards routes and YAML). Can you tell me what will be better ?
Hi @sydseter , I am particularly motivated to contribute to OWASP because of its mission to advance secure software development practices through open collaboration. Card-based threat modeling frameworks such as Cornucopia and EoP lower the barrier to structured security thinking, and improving their accessibility directly contributes to practical, real-world security adoption. Through this GSoC project, I aim not only to deliver the technical feature but also to contribute maintainable, well-structured improvements aligned with OWASP’s long-term architectural vision.
Hi @sydseter,
I understand this issue is intended for GSoC 2026, so I won’t start implementing anything here directly.
I’m very interested in the architectural direction for EoP card endpoints and how they integrate with the existing card browser and YAML structure.
If helpful, I’d be happy to:
Help document the current routing structure
Review related smaller issues
Or contribute to preparatory work that doesn’t interfere with the planned GSoC scope
Just let me know what would be most useful at this stage. 🙂
Hi @sydseter, Among 3 projects ~ I'm planning to submit a GSoC proposal for #1322 (EoP Card Browser). I have 7 merged PRs in Cornucopia and a solid understanding of the codebase.
Could you share any specific expectations or constraints for this project that I should include in my proposal?
Hi @sydseter, I'm planning to submit a GSoC 2026 proposal for #1322 (EoP Card Browser). I have 7 merged PRs in Cornucopia and a solid understanding of the codebase. My planned approach:
-Parse eop-cards-5.0-en.yaml as the card data source -Extend existing routes in src/routes/cards and src/routes/card/[edition] to support EoP endpoints -Add dummy YAML pages under data/cards/eop-cards-1.0-en -Use existing SVGs from the adamshostack/eop repo and hook into the existing cards.scss (line 500) for styling -Make each card browsable at /card/eop and /cards/[eop-card-id] mirroring the existing webapp edition structure
Does this align with org vision? Are there any constraints or priorities I should factor into my proposal?
Hi! I’ve been digging into the Cornucopia codebase to get a better handle on how the card endpoints are structured.
From what I can see, DeckService handles loading based on the editions defined in the latests and decks arrays. Right now, it looks like only webapp, mobileapp, and companion are explicitly listed there. However, I noticed the repo already has the source/eop-cards-5.0-*.yaml files ready to go.
It seems like the loading mechanism is already set up to potentially support these EoP cards if the edition is just integrated into that supported decks list.
I’m still looking into how the routing and card browser interact with DeckService, but I wanted to check if the intended direction for #1322 is to:
Extend the deck loading to include the eop edition.
Expose endpoints like /card/eop/{card_id} to match the existing card routes.
I'd appreciate any guidance on the preferred architecture before I dive deeper!
Keep in mind that there is currently an API used by OWASP Threat Dragon. The documentation for the API is available at: https://cornucopia.owasp.org/api/docs
Part of this task will be to create the api. The eop-mappings-5.0.yaml should be populated with the individual cards, and in the same way as with the Website App edition, it should have the stride and stride_print attribute added for each card: https://github.com/OWASP/cornucopia/blob/master/source/webapp-mappings-3.0.yaml#L19
Part of the story is also to add scaffolding for each of the cards in https://github.com/OWASP/cornucopia/tree/master/cornucopia.owasp.org/data/cards
A folder called eop-cards-5.0-en needs to be created, and inside it, a folder for each of the cards. Each of the card folders will have an explanation.md and a technical-note.md
The explanation.md is structured like this:
## Scenario: <name>'s ... scenario
### Example
## Threat Modeling
### STRIDE
### What can go wrong?
### What are we going to do about it?
The individual card pages will be available at cornucopia.owasp.org in the same way as for the Website App edition.
The data for the individual card pages will be added to cornucopia.owasp.org/data/cards/eop-cards-5.0-en not cornucopia.owasp.org/data/cards/eop-cards-1.0-en
I previously wrote that wrong.
@immortal71 I don't have the answer to that. The decision lies with the GSoc leaders at the OWASP Foundation.
@sydseter IF U have to recomend according to priorities ,which would u recommend me ?? (I know diff project required diff skill but I just wanna know which project of cournucopia has highest priority according to u ?
I have merged 8-9 pr I am confident on code base now and am about to start creating purposal but still not sure about which project to select, any recommendation or suggestion ??, will be really helpful @sydseter
Thanks for the clarification!
That helps a lot. From what I understand now, the work for #1322 would involve a few connected parts:
• Populating eop-mappings-5.0.yaml with the individual cards and the stride / stride_print attributes similar to the WebApp edition
• Adding the scaffolding under cornucopia.owasp.org/data/cards/eop-cards-5.0-en with folders for each card containing explanation.md and technical-note.md
• Extending the existing routing so the cards become browsable from /card/eop and /cards/{id}
• Exposing the EoP cards through the API used by OWASP Threat Dragon
I'll continue exploring how the WebApp edition wires these pieces together so the EoP implementation can follow the same structure.
Thanks again for the guidance!
Thanks for clarifying, @sydseter , that clears up the questions I had around the mapping scope and URL structure. Good to know about the 5.0 folder naming and the API docs too. Will factor all of this into the proposal.
I would like to add one more task. For this task, you also need to make sure there is a «more info» link in the same way as with website app and mobile app when playing EoP on copi.owasp.org This means that the urls created for EoP at copi.owasp.org needs to be added to eop-mappings-5.0.yaml and used to setup the links for Copi.
Thanks for the clarifications earlier!
I’ve been exploring the codebase further and also worked on a small fix related to version handling (#2672 ).
I’m continuing to study the routing, mapping, and API layers for the EoP integration and incorporating these learnings into my proposal.
I listed some more endpoints that is relevant to the story. No worries if you missed it. It’s not essential that you have code examples in your proposal. We also renamed /card to /edition a while back. I forgot to update that here. If you are proposing creating that endpoint, that’s fine. I won’t hold you to it. It’s now found under /edition .
Hello @sydseter,
I’ve already submitted my proposal, so I wanted to ask whether it would be better to update it to reflect these changes or leave it as it is. In any case, I’ll make sure to align with the current /edition endpoints and related updates during the implementation phase if selected.
Can you please clarify this to me?
I’ve submitted my proposal for the EoP card integration and I’m continuing to explore the mapping and API parts of the implementation.
I’m currently looking into how mapping data is consumed in the API layer — just wanted to confirm if there are any constraints I should keep in mind while extending it for EoP.
Not really, that are details, really.