News for hackers. Stuff that matters.
Re:What You Get After Running an SSH Honeypot for 30 Days by laktak on Sunday June 16, 2024 @02:55AM (#40695189)
What does `echo -e "\x6F\x6B"` do?
Re:What You Get After Running an SSH Honeypot for 30 Days by ggambetta on Sunday June 16, 2024 @03:18AM (#40695275)
If you say it 3 times in front of a mirror, it summons Stallman
Re:What You Get After Running an SSH Honeypot for 30 Days by moffkalast on Sunday June 16, 2024 @05:26AM (#40695789)
With or without the swords?
Re:What You Get After Running an SSH Honeypot for 30 Days by withinboredom on Sunday June 16, 2024 @06:09AM (#40695943)
Only one way to find out!
Re:What You Get After Running an SSH Honeypot for 30 Days by pompompurin on Sunday June 16, 2024 @06:59AM (#40696133)
Haha
Re:What You Get After Running an SSH Honeypot for 30 Days by zh3 on Sunday June 16, 2024 @03:29AM (#40695325)
It prints "ok" and shows they got in (it relies just on a shell, nothing else).
Re:What You Get After Running an SSH Honeypot for 30 Days by lucianbr on Sunday June 16, 2024 @04:35AM (#40695598)
Why not do 'echo "ok"'?
Re:What You Get After Running an SSH Honeypot for 30 Days by kynetic on Sunday June 16, 2024 @05:53AM (#40695892)
As shown by someone having to ask what it does, it obscures what it does.
Re:What You Get After Running an SSH Honeypot for 30 Days by lucianbr on Sunday June 16, 2024 @10:04AM (#40697160)
Doesn't seem terribly useful. I mean it only obscures that it prints "ok". If you're looking at the logs, you probably already figured out someone is attacking you, and if you didn't, seeing "echo ok" will not help you figure it out.

If the only thing the command does is "obscure what it does", then the only thing it obscures is "obscure what it does". I guess there's no requirement that whoever writes these scripts is a genuis.

Re:What You Get After Running an SSH Honeypot for 30 Days by Retr0id on Sunday June 16, 2024 @10:59AM (#40697567)
People writing malware generally don't want to deploy it on honeypots, because then they're handing their payload (and other tradecraft) directly to analysts.

So often the first stage is an attempt at honeypot detection, or more broadly, device fingerprinting.

A bad honeypot might not even run a real /bin/sh, and this detects that right off the bat.

Re:What You Get After Running an SSH Honeypot for 30 Days by lucianbr on Wednesday June 19, 2024 @10:55AM (#40728898)
That makes a lot more sense than "it obscures the obscure thing it does to obscure itself".
Re:What You Get After Running an SSH Honeypot for 30 Days by ynoxinul on Sunday June 16, 2024 @03:23AM (#40695299)
This look like a simple test to see if remote command execution works.
Re:What You Get After Running an SSH Honeypot for 30 Days by spc476 on Sunday June 16, 2024 @03:31AM (#40695335)
It echos "ok".
Re:What You Get After Running an SSH Honeypot for 30 Days by Mxrtxn on Sunday June 16, 2024 @03:26AM (#40695311)
Prints out `ok`
Re:What You Get After Running an SSH Honeypot for 30 Days by raverbashing on Sunday June 16, 2024 @04:19AM (#40695534)
Maybe I should create a honeypot where cat, echo, sed, and curl/wget all drop random bytes in all commands they execute

Would be fun

Re:What You Get After Running an SSH Honeypot for 30 Days by thesnide on Sunday June 16, 2024 @05:13AM (#40695731)
Better would be to just subtly change the output...

Like do a +1 on the byte every 7 bytes. Bonus to do it only on every 7 printable chars.

And you can even do A/B testing on the constant 7.

Re:What You Get After Running an SSH Honeypot for 30 Days by gpvos on Sunday June 16, 2024 @07:00AM (#40696141)
Tests whether `echo` supports the `-e` option.