StegoRSA

less than 1 minute read

๐Ÿ” StegoRSA

Category Author
๐Ÿ” Cryptography Yahaya Meddy

Challenge Prompt

A message has been encrypted using RSA. The public key is goneโ€ฆ but someone might have been careless with the private key. Can you recover it and decrypt the message?

Download the flag and image.

Problem Type

  • RSA
  • Steganography

Solve

We are given an image of a key and lock. If we run that in Aperiโ€™Solve: 2026-03-28_19-59-02

Down in the Identify section we see some hex in the โ€œCommentโ€ field: 2026-03-28_19-59-44

If we run that hex through CyberChef we get a Private Key: 2026-03-28_20-00-25

Save the private key in a new text file called key.pem.

Then we can use OpenSSL to decyrpt:

1
openssl pkeyutl -decrypt -in flag.enc -out flag.txt -inkey key.pem

That will output the flag to a new file called flag.txt: image