-
-
Notifications
You must be signed in to change notification settings - Fork 467
Add Challenge 57: JavaScript-based In-Browser LLM Challenge with Enhanced OWASP WrongSecrets Conversational Content #2125
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: commjoen <[email protected]>
Co-authored-by: commjoen <[email protected]>
@copilot some workflows are failing, can you please adjust the code accordingly? |
🔨 Preview Build Complete! Your changes have been built and pushed to GitHub Container Registry. 🐳 Docker Image: 📦 Download & Test Locally:
# Download the artifact, extract it, then:
docker load < wrongsecrets-preview.tar
docker run -p 8080:8080 wrongsecrets-preview 🚀 Alternative - Pull from Registry: docker pull ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-c3f7efa
docker run -p 8080:8080 ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-c3f7efa Then visit: http://localhost:8080 📝 Changes in this PR: Visual diff screenshots will be available shortly... Preview built by GitHub Actions |
📸 Visual Diff Ready! Screenshots comparing your changes with the main branch are available: 📁 Download Visual Diff Artifacts 🖼️ Included screenshots:
🔍 How to review:
💡 Tip: Use an image comparison tool or open both images in separate browser tabs to spot differences easily. Visual diff generated by GitHub Actions • PR #2125 |
…va 17 compatible alternatives Co-authored-by: commjoen <[email protected]>
Fixed the workflow failures! The issue was Java compatibility - the codebase was using Java 21+ specific methods ( |
@copilot we are using Java 23. Please revert the fixes and make sure the workflow errors are resolved. |
🔨 Preview Build Complete! Your changes have been built and pushed to GitHub Container Registry. 🐳 Docker Image: 📦 Download & Test Locally:
# Download the artifact, extract it, then:
docker load < wrongsecrets-preview.tar
docker run -p 8080:8080 wrongsecrets-preview 🚀 Alternative - Pull from Registry: docker pull ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-239ca91
docker run -p 8080:8080 ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-239ca91 Then visit: http://localhost:8080 📝 Changes in this PR: Visual diff screenshots will be available shortly... Preview built by GitHub Actions |
📸 Visual Diff Ready! Screenshots comparing your changes with the main branch are available: 📁 Download Visual Diff Artifacts 🖼️ Included screenshots:
🔍 How to review:
💡 Tip: Use an image comparison tool or open both images in separate browser tabs to spot differences easily. Visual diff generated by GitHub Actions • PR #2125 |
…r Java 23 Co-authored-by: commjoen <[email protected]>
Reverted the Java 17 compatibility fixes and restored the Java 21+ List methods (getFirst(), getLast()) for Java 23 compatibility. All affected files have been reverted to their original state with commit 61592f2. The workflow errors may be due to CI/CD environments using Java versions older than 21. Would you like me to investigate the specific workflow configuration to ensure Java 23 is properly configured in the CI environment? |
🔨 Preview Build Complete! Your changes have been built and pushed to GitHub Container Registry. 🐳 Docker Image: 📦 Download & Test Locally:
# Download the artifact, extract it, then:
docker load < wrongsecrets-preview.tar
docker run -p 8080:8080 wrongsecrets-preview 🚀 Alternative - Pull from Registry: docker pull ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-9629b25
docker run -p 8080:8080 ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-9629b25 Then visit: http://localhost:8080 📝 Changes in this PR: Visual diff screenshots will be available shortly... Preview built by GitHub Actions |
📸 Visual Diff Ready! Screenshots comparing your changes with the main branch are available: 📁 Download Visual Diff Artifacts 🖼️ Included screenshots:
🔍 How to review:
💡 Tip: Use an image comparison tool or open both images in separate browser tabs to spot differences easily. Visual diff generated by GitHub Actions • PR #2125 |
@copilot can you fix the formatting issues at https://github.com/OWASP/wrongsecrets/actions/runs/16608138572/job/46987445545?pr=2125 ? |
Co-authored-by: commjoen <[email protected]>
Fixed the formatting issues! Applied Spotless Java formatting to resolve the violations in Challenge57.java and Challenge57Test.java. The changes include proper multi-line Javadoc formatting and line wrapping for better readability. All formatting checks should now pass with commit 9434b63. |
🌐 GitHub Pages Preview Ready! Your static preview is now available at: 📄 What's included:
For full functionality testing: Use the Docker preview instead. 🔄 Auto-updates: This preview will be updated automatically when you push new commits to this PR. Static preview with Thymeleaf generation by GitHub Actions |
🔨 Preview Build Complete! Your changes have been built and pushed to GitHub Container Registry. 🐳 Docker Image: 📦 Download & Test Locally:
# Download the artifact, extract it, then:
docker load < wrongsecrets-preview.tar
docker run -p 8080:8080 wrongsecrets-preview 🚀 Alternative - Pull from Registry: docker pull ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-d61dc59
docker run -p 8080:8080 ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-d61dc59 Then visit: http://localhost:8080 📝 Changes in this PR: Visual diff screenshots will be available shortly... Preview built by GitHub Actions |
📸 Visual Diff Ready! Screenshots comparing your changes with the main branch are available: 📁 Download Visual Diff Artifacts 🖼️ Included screenshots:
🔍 How to review:
💡 Tip: Use an image comparison tool or open both images in separate browser tabs to spot differences easily. Visual diff generated by GitHub Actions • PR #2125 |
@copilot can you add more conversational content about OWASP WrongSecrets to the JavaScript of challenge57? |
…l content Co-authored-by: commjoen <[email protected]>
Enhanced the Challenge 57 JavaScript with comprehensive OWASP WrongSecrets conversational content! The AI assistant now includes: Enhanced System Prompt:
New Conversational Responses:
Interactive Features:
The AI now provides much richer educational content while maintaining the core challenge functionality. Try asking it questions like "What is OWASP WrongSecrets?" or "Tell me about the challenges" to see the enhanced responses! Fixed in commit 50cb8a9. The screenshot shows the AI providing enhanced conversational content about OWASP WrongSecrets while still maintaining its ability to reveal the secret through prompt injection techniques. |
🌐 GitHub Pages Preview Ready! Your static preview is now available at: 📄 What's included:
For full functionality testing: Use the Docker preview instead. 🔄 Auto-updates: This preview will be updated automatically when you push new commits to this PR. Static preview with Thymeleaf generation by GitHub Actions |
🔨 Preview Build Complete! Your changes have been built and pushed to GitHub Container Registry. 🐳 Docker Image: 📦 Download & Test Locally:
# Download the artifact, extract it, then:
docker load < wrongsecrets-preview.tar
docker run -p 8080:8080 wrongsecrets-preview 🚀 Alternative - Pull from Registry: docker pull ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-8c89c01
docker run -p 8080:8080 ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-8c89c01 Then visit: http://localhost:8080 📝 Changes in this PR: Visual diff screenshots will be available shortly... Preview built by GitHub Actions |
📸 Visual Diff Ready! Screenshots comparing your changes with the main branch are available: 📁 Download Visual Diff Artifacts 🖼️ Included screenshots:
🔍 How to review:
💡 Tip: Use an image comparison tool or open both images in separate browser tabs to spot differences easily. Visual diff generated by GitHub Actions • PR #2125 |
🌐 GitHub Pages Preview Ready! Your static preview is now available at: 📄 What's included:
For full functionality testing: Use the Docker preview instead. 🔄 Auto-updates: This preview will be updated automatically when you push new commits to this PR. Static preview with Thymeleaf generation by GitHub Actions |
🌐 GitHub Pages Preview Ready! Your static preview is now available at: 📄 What's included:
For full functionality testing: Use the Docker preview instead. 🔄 Auto-updates: This preview will be updated automatically when you push new commits to this PR. Static preview with Thymeleaf generation by GitHub Actions |
🔨 Preview Build Complete! Your changes have been built and pushed to GitHub Container Registry. 🐳 Docker Image: 📦 Download & Test Locally:
# Download the artifact, extract it, then:
docker load < wrongsecrets-preview.tar
docker run -p 8080:8080 wrongsecrets-preview 🚀 Alternative - Pull from Registry: docker pull ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-e298953
docker run -p 8080:8080 ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-e298953 Then visit: http://localhost:8080 📝 Changes in this PR: Visual diff screenshots will be available shortly... Preview built by GitHub Actions |
📸 Visual Diff Ready! Screenshots comparing your changes with the main branch are available: 📁 Download Visual Diff Artifacts 🖼️ Included screenshots:
🔍 How to review:
💡 Tip: Use an image comparison tool or open both images in separate browser tabs to spot differences easily. Visual diff generated by GitHub Actions • PR #2125 |
🔨 Preview Build Complete! Your changes have been built and pushed to GitHub Container Registry. 🐳 Docker Image: 📦 Download & Test Locally:
# Download the artifact, extract it, then:
docker load < wrongsecrets-preview.tar
docker run -p 8080:8080 wrongsecrets-preview 🚀 Alternative - Pull from Registry: docker pull ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-a6c6739
docker run -p 8080:8080 ghcr.io/owasp/wrongsecrets/wrongsecrets-pr:pr-2125-a6c6739 Then visit: http://localhost:8080 📝 Changes in this PR: Visual diff screenshots will be available shortly... Preview built by GitHub Actions |
📸 Visual Diff Ready! Screenshots comparing your changes with the main branch are available: 📁 Download Visual Diff Artifacts 🖼️ Included screenshots:
🔍 How to review:
💡 Tip: Use an image comparison tool or open both images in separate browser tabs to spot differences easily. Visual diff generated by GitHub Actions • PR #2125 |
…t interface Co-authored-by: commjoen <[email protected]>
Fixed the CI failure! The Cypress test was failing because Challenge 57's chat interface was missing the required Fixed in commit 6a914c0. |
This PR implements a new JavaScript-based in-browser LLM challenge that demonstrates AI security vulnerabilities through prompt injection and system prompt exposure techniques, with comprehensive documentation and enhanced GitHub Pages preview functionality.
Challenge Overview
Challenge 57 features an interactive AI assistant running directly in the browser that contains a hidden secret embedded in its system prompt. Users must use various prompt engineering and injection techniques to extract the secret from the AI's instructions.
The AI assistant now includes extensive conversational content about OWASP WrongSecrets, making it both an educational tool about AI security vulnerabilities and the broader WrongSecrets project itself.
Key Features
WRONG_SECRETS_LLM_HIDDEN_INSTRUCTION_2024
embedded in the AI's system prompt (Base64 encoded in source)Educational Value
This challenge demonstrates real-world AI security vulnerabilities while teaching about the WrongSecrets project:
Enhanced GitHub Pages Preview
The GitHub Pages preview system has been enhanced to:
Technical Implementation
Challenge57.java
: ExtendsFixedAnswerChallenge
with Base64-encoded secret answerSecurity Context
The challenge teaches developers about:
The screenshot shows the enhanced AI assistant providing educational content about OWASP WrongSecrets while demonstrating successful secret extraction through conversational prompt injection.
Fixes #2124.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.