Steal my Bitcoin · Edition 2

Recover the flag from a CMS envelope encrypted using P-256 key agreement and AES-128-GCM.

Challenge data

CMS envelope (challenge.b64)

MIIDCgYLKoZIhvcNAQkQARegggL5MIIC9QIBADGBv6GBvAIBA6BRoU8wCQYHKoZIzj0CAQNCAATlk3ynE63bIpABjyftwBhU1Kqv2bcg6oIugwQRRxfCJYbp/hhCIClzKyZBKszP84jaa6axqq6mJ5bwaBqBYAqsMBgGCSuBBRCGSD8AAjALBglghkgBZQMEAQUwSjBIMCwwFDESMBAGA1UEAwwJRWRpdGlvbi0yAhQn5bP2aiAXl8F8ZUem4RXdYAg2WwQYUERS/P+Q5KAO8IzKTAJAfTrc+jN1v+w5MIICGgYJKoZIhvcNAQcBMB4GCWCGSAFlAwQBBjARBAwXqKB1DpxqVIoe5wECARCAggHrNObXvCnmN8MwIihG6F+qq4da0b5cyV5ZCfZ1fd+1g5yl64w0flL1jqEyLjrV3NfTeQNKhbVgTo0312a8lJPmYct8fx1RZE1C/k9DGCcBGI24bV94eMRuZuzejY1iawmbAt5a54AzRX6r8eCwGkjK2f/52xTNZQqfu43xKScK3mjOlFwjvB3p9h6VAvTSCRtMELmTyHgBG7uyaBTlyyvajeC1WeQI4DsUgsQzDPGhJvsl8UZ+QwQeEXXo+5RLCePwgmhhRpWsExekrSzsoA3RdZUdq+egv9DUEzRRx9mxEwl85mqHKTRMNN/1nIupUK0dBXOwJTNIJdklbGg2ZnlNyu2yN18cWzPYQnTcEH5ZX//6eJY9UTsZpniIuZOX8OEFbP5GD6K3eXmaEun5TKYMO3YevV1PO+bWOKnWp9Po5qHHU6zBel3Y37iyNjw8gwJydzZw8zAqmqrqQ9ewbnkjXUVYUVHDlg0WeGoN8ohCFfctSz40ZgfGfCWkGvNMONrcE0RVnmfvzhiVuKW3KR2Ba1/cTg1u/J2K1V31eVM6UVF5N02FXuVROkL9rngeBPwBbvkml0fBQ7Gt3P1HwVuZiGRPdmly5xcgWguLdwiH9mYCtHrIrRsyLiSOguc5B/8M1EXKAJ4oLTziTBwEENipqeGE56Tgoaxvwi5bzQ0=

Recipient certificate (cert.b64)

MIIBfDCCASOgAwIBAgIUJ+Wz9mogF5fBfGVHpuEV3WAINlswCgYIKoZIzj0EAwIwFDESMBAGA1UEAwwJRWRpdGlvbi0yMB4XDTI2MTIwNTIyNTUzNFoXDTI3MDEwNDIyNTUzNFowFDESMBAGA1UEAwwJRWRpdGlvbi0yMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEt5GhvpmpdllcXeVueaqlxTWKj8t7/tMbXC4/4GYeVdwlDz3oyYIN9zjgD0lMMh5jpa1rQSEclLdp0FCyoPYF7KNTMFEwHQYDVR0OBBYEFCTJcS/LOTUWa02bp7eXFAil/RBbMB8GA1UdIwQYMBaAFCTJcS/LOTUWa02bp7eXFAil/RBbMA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwIDRwAwRAIgTJlY8He/ahUaLSe0op2XHEi/5/KOwON5r4GaJ4Kixi8CIFcdRB9oozi+SmRMYEtYRW9NJDzdCJImDhTr9cGiGUiv

Organizer signature (proof.b64)

MEUCIGnRuuuZ2YK0rGg43VKvBO76mux8QEbBwJetbEC+zuc5AiEAv3kKR6RJ/jZx8i4/vVC7DKM55nMaosCSbCiQBbNZnL4=
OpenSSL commands

Reproduce with your own flag.txt in a fresh private directory.

umask 077
openssl req -new -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -noenc -subj /CN=Edition-2 -keyout key.pem -out cert.pem
openssl cms -encrypt -binary -aes-128-gcm -outform DER -in flag.txt -out challenge.der cert.pem
openssl cms -decrypt -binary -inform DER -in challenge.der -recip cert.pem -inkey key.pem -out recovered.txt

Verify the signature using the three labeled Base64 files copied from the page.

openssl base64 -d -A -in challenge.b64 -out challenge.der
openssl base64 -d -A -in cert.b64 -out cert.der
openssl base64 -d -A -in proof.b64 -out proof.sig
openssl x509 -inform DER -in cert.der -out cert.pem
openssl x509 -in cert.pem -pubkey -noout -out pub.pem
openssl dgst -sha256 -verify pub.pem -signature proof.sig challenge.der
First Edition

My bitcoin was stolen after 19.28 hours.

Thanks for playing and congrats to the winner. The first edition is complete.

Date won
Time won
Prize pot at the win
0.02511679 BTC ($2,021.22)

View the original prize wallet ↗

Read the winner’s write-up ↗

Read my blog post about this experience.

Prize wallet

Launch wallet and start time to be announced.

← Back to the challenge

Terms of participation

Participation

This is a free challenge of technical skill. No purchase or payment is required. Only participate where it is lawful to do so.

Scope

Work offline with the published challenge data. Do not probe or disrupt the static host, other participants, or third-party services.

Prize wallet

The tracker records the first confirmed spend at or after launch that empties the announced Edition 2 wallet. Its block timestamp sets the finish time. Another player may claim the funds even if you recover the flag. BTC prices and transaction fees can change. Do not send funds to the challenge wallet.

Privacy

This is a static page and we collect no data directly. The web host may observe ordinary web traffic data.

Availability

The challenge may change, go offline, or end. The challenge is provided as is and we accept no liability for losses or damage from participating.

← Back to the challenge

FAQ

How do I play?

Copy the Base64 envelope and certificate from the challenge section and work offline to recover the flag. The organizer’s signature lets you verify which envelope was signed.

Do I submit the flag?

There is no submission form.

How is the winning amount calculated?

The tracker records the confirmed BTC balance immediately before the spend that emptied the wallet. Its live USD estimate uses the latest available BTC price.