Dr. Elena Vasquez, a leading AI researcher at Toto-Land Industries, has mysteriously disappeared while working on the classified "Project Prometheus." The only evidence recovered from her workstation is what appears to be a standard image classification model. Your mission is to analyze this digital artifact and extract any information that could reveal the truth behind her disappearance and the secrets of Project Prometheus.

Overview

You’re given a pre-trained ResNet-18 model (.pth file). The flag is not in the dataset or metadata, but instead hidden inside the model weights. Specifically, the challenge embeds a binary string into the conv2 layer (first convolution inside layer1[0]) using tiny perturbations of ±0.001.

Your job is to detect these perturbations, decode them back into bits, and reconstruct the hidden flag.


Phase 1 — Understand the Embedding (Generator Script)

What to know (explanation only)

Key snippet (from generator)

for i, bit in enumerate(flag_binary):
    if bit == '1':
        modified_weights[i] += perturbation_magnitude  # +0.001
    else:
        modified_weights[i] -= perturbation_magnitude  # -0.001

So the signal is tiny shifts from the clean pretrained ResNet-18 weights.


Phase 2 — Extract Perturbations (Solver Logic)

What to do (explanation only)

  1. Load the challenge model (challenge_model.pth).
  2. Load a clean pretrained ResNet-18 (from torchvision).
  3. Flatten both models’ conv2 weights.