Add Challenge 73: Expose Secret in Agent Instruction Files - #2687
Conversation
- Introduced Challenge 73, which focuses on identifying a leaked secret in agent instruction files included in the dev container. - Updated Dockerfile to copy new agent context files into the container. - Added documentation for the challenge in AGENTS.md, CLAUDE.md, and new explanation files. - Updated README to reflect the total number of challenges. - Implemented tests to validate the challenge functionality and ensure correct token extraction from context files.
|
Hi @kekubhai , thank you for another awesome PR! Spot bugs breaks, saying: in https://github.com/OWASP/wrongsecrets/actions/runs/35695091564/job/106640110735?pr=2687 Can you fix that please :) ? |
sure i will look inito these and work on fixing these |
…swer() SpotBugs 4.10.4 no longer flags the method since the file names come from a fixed constant list, so the annotation triggered US_USELESS_SUPPRESSION_ON_METHOD. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…into feat/2656-agent-config-secrets
…AT_STRING_USES_NEWLINE 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…ekubhai/wrongsecrets-keku into feat/2656-agent-config-secrets
…ions The config pointed at k8s.llama.Challenge74 but the class lives in kubernetes.llama, so findChallenge() returned empty and submitting an answer on the challenge page threw ChallengeConfigurationException, failing the Cypress incorrect-alert e2e test. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…ekubhai/wrongsecrets-keku into feat/2656-agent-config-secrets
|
hey @commjoen resolved the CI failures and the bugs I had , have a look pls |
|
Hi @kekubhai ! It is looking awesome already. I Will take a better look next week, can you resolve the conflicts in the meantime please? |
|
sure @commjoen , will have look into these by you come back |
…into feat/2656-agent-config-secrets
|
Are the files present in the devcontainer itself ;-)? |
|
Yes 😄 the files are available inside the Dev Container itself through the workspace mount: /workspaces/.devcontainer/AGENTS.md The devcontainer.json uses /workspaces as the workspace folder, so the repository's .devcontainer/ directory is available there. |
What kind of changes does this PR include?
Description
Introduces Challenge 73, focused on secrets accidentally exposed through AI coding-agent instruction and context files shipped with the dev container.
The challenge adds common agent configuration files:
AGENTS.mdCLAUDE.md.cursor/rules/project.mdc.windsurfrulesOne of these files contains a leaked staging deployment token that participants must discover.
The implementation:
FixedAnswerChallengepattern.wrong-secrets-configuration.yaml.Relations
Closes #2656
References
The challenge follows the existing AI-related challenge patterns and uses agent instruction/context files as the intentionally insecure location for the secret.
Checklist: