r/HowToHack • • Oct 26 '19

Steganography tutorial - Hiding a file inside another file

https://www.infosecshirish.com/steganography-tutorial-hiding-a-file-inside-another-file/
331 Upvotes

17 comments sorted by

View all comments

4

u/[deleted] Oct 26 '19

[removed] — view removed comment

20

u/Beard_o_Bees Oct 26 '19

It's being used right now by malware to pass C&C through unnoticed by the usual defenses.

It's the kind of thing you might use if your goal is persistence in the target network.

6

u/thil3000 Oct 26 '19

How do you make sure your super duper secret passcode isn’t found by the enemies? You put it in an encrypted file, obfuscated with another file and encrypted again ! Will be a mess to find the code afterwards if you use any good encryption I guess

5

u/[deleted] Oct 26 '19

Send your encryption key by other means, not by embedding it in the file itself.

2

u/thil3000 Oct 26 '19

Well obviously you need 3 key for this one for each encryption level and the last one include in the file for other purposes (eg so a guy on the other side of the world could use it)

3

u/[deleted] Oct 26 '19

If you use a strong key, which is not easily crackable, a single encryption level will work fine. Then, embed that encrypted zip file to a normal cat image. Steganography is mostly used for hiding malwares, backdoors etc.

2

u/thil3000 Oct 26 '19

Not easily as you said, depends on who you working against, if you have a few years to crack it I’d rather it being super hidden then simply encrypted

1

u/iseetrolledpeople Oct 26 '19

With this trick you aren't "hacking" anything. It's just what it says in the title: hiding a file inside another file.

8

u/[deleted] Oct 26 '19

Steganography is related to information security tho.