The Gold Bug is an annual DEF CON puzzle hunt, focused on cryptography, run by the Crypto & Privacy Village.
Nothing special here - just a basic crossword.
We are given a crossword puzzle.
Note that there are numbers to the right of each clue, along with a series of numbers at the bottom. The number of numbers at the bottom matches the number of clues in the puzzle so it seems each number may correspond to one clue in some way.
If we try filling in words in the crossword puzzle, we notice the intersection areas don't match up. For example, using GEM
for 5-down and SPORE
for 8-across leads to a conflict between E
and R
in the overlapping area. A different approach seems to be needed.
Note the challenge description seems to state this to be a basic crossword. Through experimentation, we find that interpreting the answer word as some base number and converting it to the base of the number written to the right of the clue gives us a new word in English. We can find the new English words for all clues and fill out the puzzle, finding the base number we are interpreting the initial answer word as via brute-force using online base conversion tool or scripts to speed up the process.
The final solved puzzle looks as below:
Here are the initial words and the new words, along with the base numbers that they were interpreted as/converted to:
Now we need to work with the numbers at the bottom of the puzzle:
Given that the number of numbers at the bottom match the number of clues, it seems each number would correspond to a number in the clue.
Note that we haven't used the base numbers used to interpret the initial words that we found via trial/error anywhere:
Interpreting both as base 36, and finding the differences gives us some plaintext in leetspeak - H4X0RI5Y0UR0Y4L8LU3
:
The answer to the challenge seems to be royalblue
which works!
Solution: royalblue
The virology lab is having trouble keeping its samples straight. It seems the swabs have been swapped.
We are given 4 different groups of text.
Starting with the 1st group of words, we find that they seem to be words that represent well-known computer malware, so we can fill them in:
The second and third group of words don't seem to represent any known English words however.
We can decrypt the fourth group using quipqiup.
Ciphertext:
Plaintext:
If we look into the substitution mappings, we can notice they are in pairs:
Perhaps the pair of letters filled in from each row from the first group serve as substitution mappings to decrypt the second group?
Based on the substitution mappings of the first group (missing letters from each row):
We can decrypt the second group of words!:
These seem to be words based on cryptography. We can fill in the missing letters:
Similar to how we decrypted the ciphertexts in the second group, we can use the substitution mappings from the second group to decrypt the third group of words.
Substitution mapping for the second group (missing letters from each line):
Decrypting the third group of words gives us:
These seem to be words based on human viruses. We can fill in the missing letters:
Finally, getting the substitution mapping from the third group gives us:
This matches the substitution mappings from the fourth group! So it seems the intended solution was to use these to decrypt the fourth group ciphertext.
Comment from puzzle setter: Exactly!
Going back to what the fourth group ciphertext decrypted to:
We need to look back at our work and find bigrams taken in threes.
We use dcode.fr's bigrams frequency analysis tool for each of the decrypted words in the first 3 groups.
Note that we should select the by sliding/overlapping (ABCDEF => AB,BC,CD,DE,EF)
option in the Bigrams Parameters section so all bigrams in each row can be taken into account.
Computing the frequencies for the 1st group of words (STUXNET, CRYPTOLOCKER, etc.), we find 5 bigrams that appear 3 times:
For the 2nd group of words (CRYPTOLOGY, BOOLEAN LOGIC, etc.), we find 4 bigrams that appear 3 times:
For the 3rd group of words (SAGIYAMA, PUUMALA, etc.), we find 3 bigrams that appear 3 times:
For the 4th group of words (HARK! TAKE A…THREES), we find 3 bigrams that appear 3 times:
Observing all the bigrams that appear 3 times together:
Note that we may be able to form a word by taking one bigram from each group.
We can get TO
from the 1st group, OL
from the 2nd group, MA
from the 3rd group, and RK
from the 4th group to spell TOOLMARK
.
Submitting this as the answer works!
Solution: toolmark
Unfortunately, the order is a bit off.
We are given a large number and the prime factorization of a number:
Factoring the large number 14697688090486313344041676760459967385
using factordb, we find the number nicely factors to small prime numbers:
The following key hints were released for this challenge:
It seems we need to find the differences ("gaps") of the factors in order. However, since they are all primes, we may get more interesting results if we consider the position of each prime number in the prime number line.
First, we need to find what number prime each prime number in the factorization is (i.e. 2 is the 1st prime, 3 is the 2nd prime, etc.): Then, we find the differences between each number. We can write a script to do this:
Running the script, we get:
Note that if we put the numbers in the differences array together (9961185281972758
) and try factoring, the factorization doesn't give good small factors. Since the first factor was a 5
(3rd prime number), we may need to add a 3
(3-0 = 3
) at the start of the differences array. This gives the number 39961185281972758
.
Factoring 39961185281972758
, we get the following factors:
Based on the hints, it seems we need to convert these to ASCII and possibly shift the factors around to a new order. Note that 67 => C, 79 => O, 83 => S, 65 => A, 77 => M, 80 => P, 69 => E if we convert the decimals to ASCII. 2 and 857 don't seem to be convertible but if we make 2 go to the end of 857, we get 8572 => 85,72 => U and H.
Thus, we have the following ASCII characters:
Unscrambling the letters to form a word, we get CAMPHOUSE
which works as the answer!
Solution: camphouse
Comment from puzzle setter: The additional info 2x97x13781
was meant to signal to you the order to take the primes before converting to ASCII. 2x97x13781 = 2673514
which suggests taking the 2nd prime (67
) then the 6th prime (6577
), etc. That would have given you CAMPEOUHS
which was still a bit off from CAMPHOUSE
.
Who am I? Where am I? How deep do I go?
PSA: Please remember there is at least one R in quaRantine:
Run, Read, Rotate, and Relax… in some order.
And don't forget to wash your hands!
We are given a base64 encoded string:
Decoding it as a file, we find that we get a gzip archive:
Extracting the gzip archive, we find there is a text file containing some ciphertext:
Decoding the ciphertext as ROT-13, we get the plaintext:
This seems to be numbers explicitly written out. We can convert this to numeric form:
Given that there are non-digit characters such as A
,B
, etc. in the number, it seems to be a hex string.
Decoding the string as hex, we find another ciphertext:
We can decrypt this ciphertext using the Vigenere cipher, finding the key through trial and error based on the resulting plaintext using Cryptii's online decoder. If we assume the plaintext for PHW
is THE
, we get the key was
. We can assume the next characters may be washyourhands
based on the challenge description. Through further deduction, we can recover the entire key to be washyourhandsoftenwithsoapandwaterforatleasttwentyseconds
, and the resulting plaintext:
Googling "mapuche warrior with knives for hands", we find the answer that we want to be Galvarino
.
Solution: galvarino
Be careful, the third rail is life
We are given 3 different graphics that look like DNA.
Notice that there seems to be 6 different colors used total for all the rectangles in each graphic:
We can open the PDF in GIMP and using the Color Picker tool, find the hex color codes for each color:
Based on the color codes, we can find the names for each color:
Note that each of the color names start with either A,T,G,C, the symbols for the 4 bases used in DNA codons.
We can convert the 3 graphics to represent codons based on the colors:
Converting the codons to alphabetic form based on DNA codon table, we get:
The challenge description seems to hint at usage of railfence cipher. Decrypting SLECTEIPEEDERFNNMNLAI
with the railfence cipher using 3 rails, we get plaintext!:
SIMPLE NEEDLE CRAFT NINE
seems to imply that the answer to this challenge is a 9-letter word that means "simple needlecraft". We can use tools such as OneLook to find such words and submit to BBS until we find our desired answer: plainwork
.
Solution: plainwork
Comment from puzzle setter: Many folks were thrown by a red herring in the visual, specifically the size of the dots. This was initially intended to be a repeated pattern (if you tesselate the pattern, it repeats smnoothly), but we didn't end up using it that way. Also, this flag was particularly hard to find - looking up the flag gave a clear definition, but searching simple needlecraft
did not yield this word.
This is a meta puzzle - it solves the overall Goldbug puzzle hunt once you have the other solutions. It will be hard to complete without the other puzzle solutions.
We are given the following ciphertext:
We can convert these characters to alphabetic form using a Python script:
This gives us:
ABCDEFABGFHIJ JDAKLH MDFFHB NOPQ RSOIH NDILOBM FSHNH TAUUIHNT JDAKEH ND BGANHDANV JDA FSEDR AT FROPH EHRWNT JDAKEH VANF IAPQJ OFKN GBDFSHE LOEANV BDF PDLOXPCYT
Comment from puzzle setter: This is the Gold Bug cipher! You didn't need to perform cryptographic analysis to decode this.
Now we can use quipqiup to decrypt the ciphertext (taking into account punctuation):
UNFORTUNATELY YOU'VE GOTTEN SICK WHILE SOLVING THESE PUZZLES. YOU'RE SO NAUSEOUS, YOU THROW UP TWICE (EW!). YOU'RE JUST LUCKY IT'S ANOTHER VIRUS, NOT COVID-19.
It seems the answer to this puzzle is related to a human virus.
Given this is the meta puzzle, we may need to use the answers from the prior puzzle to help find the answer for this challenge:
royalblue
toolmark
camphouse
galvarino
plainwork
If we interpret each answer as an anagram, using online anagram solver, we notice we can find virus-related words for royalblue
and galvarino
.
royalblue
: rubella
(oy
left)galvarino
: variola
(ng
left)To find the virus-related words hidden in the remaining answers, we use ViralZone's human viruses table for a list of virus names:
plainwork
: norwalk
(pi
left)toolmark
: mokola
(tr
left)camphouse
: machupo
(se
left)Now, taking all of the remaining letters (oy
,ng
,pi
,tr
,se
), we try using these as an anagram and solving for a word. Using online anagram solver, we get the word serotyping
which seems to be a virus-related word. Submitting this as the answer works!
Solution: serotyping