News for hackers. Stuff that matters.
Re:Securing Ubuntu by agwa on Sunday January 20, 2013 @12:18PM (#5087424)
What makes /dev/shm a better hiding place than /tmp or /var/tmp?
Re:Securing Ubuntu by _b8r0 on Sunday January 20, 2013 @01:19PM (#5087614)
In automated exploitation (e.g. scanning for common classes of web vulnerabilities) /dev/shm is better because it doesn't touch the disk filesystem. It's also not an obvious place people use on a regular basis (as opposed to /tmp) so (some) people are less likely to look for things in there.

/tmp sometimes uses tmpfs which is also memory based, but not always and you won't know until you're in /tmp.

Re:Securing Ubuntu by WestCoastJustin on Sunday January 20, 2013 @04:20PM (#5088288)
/dev/shm is a better hiding place than /tmp or /var/tmp because if someone notices something weird on a server their instinct might to be power it off or reboot it. A power cycle will wipe /dev/shm since it is memory backed storage. Lots of places will remove the network, power off the machine, and disk image the affected server for later analysis.
Re:Securing Ubuntu by anthonyb on Monday January 21, 2013 @02:49AM (#5090417)
/tmp is also normally cleared on a reboot.
Re:Securing Ubuntu by lloeki on Monday January 21, 2013 @07:57AM (#5091249)
More precisely, it should not be relied on being persistent across reboots, vs /var/tmp which can be.