Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
User Journal

Journal Journal: Security suggestions

Security suggestions gleaned from the comments in this article:

Unix:
  • recompile the kernel without suport for loadable modules
  • not having dev tools installed on your servers (quite often source root kits require them)
  • keeping copies of /bin and /usr/bin on some ro media (either a CD or on a seperate server mounted ro), and checking them ageinst you're working copies regularly.
  • running chkrootkit :-)
  • -Mount / ro. You need to set up seperate space for /tmp and /var (not to mention /home) but this will defeat 99% of the automated root kits, of course,
  • if the attacker gets in personnally, all bets are off...
  • Its fairly easy to put a module in Linux using /proc/kmem even if modules are disabled.
  • Run the services chrooted
  • Run pound in front of your web server / web services
  • Use a file integrity checker
  • if you're running BSD, set kern.securelevel to 1 or 2 [to prevent loading new modules]
  • Phrack guide to loading modules sneakily
  • ... tripwire ...

    Oh, and don't forget to mention that you should run tripwire from a known-secure system (a Knoppix CD, for instance) at least once in a while. Indeed, if your system is infested by a good rootkit, it could itself so well that it would play back a phony, made to look innocent contents of any files that it had infected.

    Same goes for lsmod, ps and other tools (it is however very rare that a rootkit is so thorough as to hide itself from all tools. Most often an rpm -q --verify -a finds the nasties). But if you're really paranoid, run your tripwire and rpm --verify from an external system, not from within the one you want to examine.

Windows:

  • Shameless plug: I've written a script that should be able to help find any rootkits that are listening on tcp/udp on windows. Heres the link
  • RootkitRevealer is your friend.
  • I recently cleaned a machine infected with a rootkit that was NOT detected with Rootkit Revealer. The virus loaded itself via the HKLM/Soft/MS/Windows/Run key, as usual, but it didn't show on regedit nor elsewhere, and the Rootkit Revealer did not detect the "missing" key. The only way to see and remove it was to boot with a WinPE CD.
  • Oh, here's a useful tip for people.. there is a cheaper alternative to WinPE.. BartPE [nu2.nu], it requires Windows XP to build the bootable cd but in terms of usefulness it's a nice little life saver. Can also be extended with Ultimate Boot CD (UBCD) [ubcd4win.com].
  • re you sure it wasn't just hidden by the buffer issue thats known to exist in regedit.exe? zipzappromos does this, as well as a number of others. No rootkit, just an exploit in an OS flaw
  • Strider Ghostbuster, [microsoft.com], a Microsoft developed technique for detecting all persistant and stealthy rootkits .
  • And that's why you apply a few simple security measures, such as denying LocalSystem access to CMD.EXE and other powerful utilities via NTFS permissions. You can do this to bring LocalSystem down to a level lower than Administrator, and virtually nothing breaks if you do it with a little bit of forethought. Yes, it takes a little bit of work to do the initial planning, but once it's done you script it and bingo. And there are plenty of examples on websites of sample lockdowns plus the scripts (using XCACLS.EXE, typically). Take those examples and customize them to your environment as needed -- you've saved yourself a whole load of the initial work.

    You can open up these permissions on a system-by-system basis if really necessary, or even better just set applications that support it to use named service accounts. Cuts out a huge number of vulnerabilities.

    You can secure a Windows system, and it's really pretty easy to do a lot of these things. You just have to know a bit of what you're doing and be prepared to put in the work. That's the biggest flaw in most MS administration shops: people who shouldn't be admins get lulled into a false sense of security because there's a pretty GUI and they don't understand what's going on behind the scenes.

General:

  • There's an easy answer: restrict what root can do [nsa.gov]. Other things that generally will help include:

    Use a "default deny" policy for *everything*

    Use secure OSes (OpenBSD is probably a good choice if you can't or don't want to use SElinux)

    Keep up with patches

    Ensure that evidence can't (easily) be tampered with (for example, use a remote, dedicated host for syslogging)

    Monitor your logs efficiently; in particular, employ a filter that allows you to suppress messages that are just noise (security-wise, that is) but that shows every log line it does not recognise (there are also filters which will try to do the reverse, but that means you'll risk overlooking important messages)

    Use hardware protection when available (for example, some (?) SCSI disks can be write-protected with a jumper setting - turn it on for the disks you have your /boot and / partitions on; if yours can't, boot from CD)

    Try to actively detect anomalies (for example, use Snort, tripwire and similar tools)

    Perform penetration tests yourself

    Be paranoid - none of your systems should trust any of the other just because they *your* systems

    That's some general advice I can think of right now. None of it is specific to rootkits, of course, but if you do things right, then you most likely won't ever get bitten by something bad - and if you still do, you'll at least be able to keep the damage to a minimum and also find out afterwards just what led to the compromise in the first place.
User Journal

Journal Journal: Why Yahoo can't beat Google

Ever tried to search through comments in Yahoo Groups? It only lets you search a few hundred at a time. Isn't Yahoo supposed to be a search engine company or something? Maybe they should hire Google to index their stuff.
User Journal

Journal Journal: Densha Otoko

I have been following Densha Otoko recently. A friend in Tokyo tells me that people are starting to copy the "nerd style" of the main character. Two observations:
  1. Despite so much material for it, the Japanese are not that good at 'comedy of manners.' The best exception to this the movie Tampopo. But perhaps any culture that could create Iron Chef is incapable of true comedy of manners. (The secret of Iron Chef that the American version lacks is that while it is light-hearted in certain ways, the core really is serious. In the last episode the winner sobs unfeignedly on the shoulder of his opponent after the announcement. His opponent fought with two large photographs of his dead parents out in the audience box seats.)
  2. The popularity of Densha Otoko is surprising. At heart, maybe every Japanese really is otaku. Some are just better at feigning normal than others.
User Journal

Journal Journal: Boost.MultiIndex

Someone on the C++ moderated newsgroup mentioned Boost.MultiIndex as one of the more interesting new ideas to show up in C++ recently. It looks rather interesting so far.
User Journal

Journal Journal: Idiots need software too

Just posted this here.

Yeah, damn Microsoft for making software that just works without forcing the user to read the manual or learn anything.

The fact is that half the population has a sub-100 IQ. Those people will never grasp Linux in its current form. The solution is certainly not telling them to go and learn something -- they went through years of schooling without managing that. The solution is making software that an idiot can use and making software that an idiot can't break. Microsoft has done the first of these. Linux fails at both.
User Journal

Journal Journal: Panspermia

Why are there so many idiots willing to spout that Panspermia nonsense? It is batshit crazy. Its one purpose appears to be making Intelligent Design seem less crazy. Every argument that I've seen in its favor starts off with nuttery.

There is no reason that Earth should not be the first, second, and third place to look for the orginal self-replicators. And once you have self-replicators, evolution takes care of the rest.
User Journal

Journal Journal: Windows OneCare

I just installed Windows OneCare beta. It's very nice, and works well with limited user accounts. Only the administrator can let apps through the firewall, of course, but "Run As" makes that reasonably easy. (It'll be nice once Microsoft makes it easier for apps to ask for the admin password to do things like Macs and a lot of Linux distros do. On the other hand, Microsoft's way is probably more slightly more secure at the moment.)

The backup utility should come default with Windows, however. I haven't tried the OneCare method yet, but I wonder if you'll be able to restore data after canceling the service? I hope so.
Slashdot.org

Journal Journal: Improving Slashdot Moderation 1

I have a few suggestions for how Slashdot should improve moderation:
  • Reduce the value of positive moderations for the earliest posts and increase the value of positive moderations made to later posts. The highest rated comments aren't generally the best comments. They're the first comments.
  • Allow anybody to "rate" a comment once it gets to +5 This allows the best +5s to be picked out from the pile.
  • Remove the Flamebait moderation. I've never seen this one used correctly.
User Journal

Journal Journal: IQ truth gets -1'ed 5

To update my last entry, a good discussion was started by the post, but it got driven down to -1 one pretty quickly. As usual, the IQ deniers had no actual support for any of their positions. I've argued with both IQ-deniers and creationists, and I have to say that the creationists come off as more reasonable. Every once and a while they'll try to support what they say with some small piece of evidence rather than wishful thinking.
User Journal

Journal Journal: Slashdot needs a Journals page 1

Slashdot does not have any sort of Journals homepage. It needs something like what Kuro5hin does with diaries.

You can get nearly the same sort of functionality by using search, however. Therefore I've updated by sig to this: Recent Slashdot journals by all users

Since the chance of the editors adding the Journal section is slim to none, please feel free to whore this link around if you want. I don't keep a journal, but there are slashdotters who post some intelligent stuff in their own.

Slashdot Top Deals

In any problem, if you find yourself doing an infinite amount of work, the answer may be obtained by inspection.

Working...