Skip to content

Red team binary vault jakub - #4

Merged
Jacob-dot-bit merged 2 commits into
mainfrom
Red-Team-Binary-Vault-jakub
Jul 20, 2026
Merged

Red team binary vault jakub#4
Jacob-dot-bit merged 2 commits into
mainfrom
Red-Team-Binary-Vault-jakub

Conversation

@Jacob-dot-bit

Copy link
Copy Markdown
Owner

No description provided.

Jacob-dot-bit and others added 2 commits July 20, 2026 07:58
Les flags/licence ne sont plus codés en dur dans gen_secret.py (dépôt public).
Ils proviennent désormais, par priorité : variables d'env / build-args, puis
un fichier setup/challenge.env gitignoré, sinon des placeholders inoffensifs.

- gen_secret.py : résolution env > challenge.env > placeholder (+ warning)
- challenge.env.example : modèle à copier en challenge.env (gitignoré)
- Dockerfile : ARG LICENSE/FLAG1/FLAG2/XOR_KEY passés à gen_secret.py
- docker-compose.yml : build.args depuis l'environnement
- ADMIN_DEPLOYMENT.md : provisionnement des flags + rappel de rotation
- .gitignore : ignore challenge.env

Aligné avec docs/commit-plan.md ("ne pas committer les flags"). Chaîne
compile+exploit revérifiée avec des flags fournis par challenge.env.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- README : table des challenges corrigée (VAULT-9 ajouté, numérotation par
  équipe, statuts réels) au lieu de l'ancienne liste obsolète.
- .env.example : modèle de variables (CTFd, plugin conteneurs) sans secrets,
  mentionné dans docs/commit-plan.md mais absent jusqu'ici.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 20, 2026 06:49
@Jacob-dot-bit
Jacob-dot-bit merged commit 6b7924b into main Jul 20, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the VAULT-9 (Red Team) challenge to avoid storing sensitive values (license/flags) in the repository by generating them at Docker build time from environment/build args or a gitignored challenge.env, and documents the new workflow.

Changes:

  • Replace hardcoded license/flags in gen_secret.py with resolution from env vars / setup/challenge.env / safe placeholders.
  • Wire Docker build + compose to pass optional build args for secrets and add an example challenge.env.example.
  • Update documentation and top-level README to reflect the new challenge inventory and secret-provisioning steps.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
README.md Updates the challenges list to include the Binary Vault challenge and folder naming scheme.
challenges/3-Red-Team-Binary-Vault/setup/gen_secret.py Loads license/flags from env or challenge.env, falling back to placeholders and generating build artifacts.
challenges/3-Red-Team-Binary-Vault/setup/challenge.env.example Adds a template file for providing per-challenge secrets outside git.
challenges/3-Red-Team-Binary-Vault/docs/ADMIN_DEPLOYMENT.md Documents how to provide/rotate secrets for builds without committing them.
challenges/3-Red-Team-Binary-Vault/Dockerfile Adds ARGs and runs secret generation from setup/ during image build.
challenges/3-Red-Team-Binary-Vault/docker-compose.yml Adds build args wiring from the shell environment for local builds.
challenges/3-Red-Team-Binary-Vault/.gitignore Attempts to ignore the secrets file and build artifacts for this challenge.
.env.example Adds a repository-level environment template and notes per-challenge secret handling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +3
# Secrets reels du challenge -- ne JAMAIS committer (voir challenge.env.example)
challenge.env

build:
context: .
# Optionnel : surcharge les secrets via l'environnement du shell.
# Sinon, gen_secret.py lit setup/challenge.env (voir .env.example).
Comment thread .env.example

# --- Plugin conteneurs (CTFdDockerContainersPlugin) ---
# Hote Docker expose aux instances de challenges
DOCKER_HOSTNAME=100.118.132.76
Jacob-dot-bit added a commit that referenced this pull request Jul 20, 2026
Jacob-dot-bit added a commit that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants