Lock up your servers!
Posted on 29 Jun 2006 at 12:18
Ian Wrigley and Simon Brock discuss how to keep your systems safe and secure from attacks
Keeping safe
Scanning your machines for vulnerabilities is a good line of defence, but another aspect of your security precautions must be to know when one of your machines has been hacked. Sometimes, of course, it's easy to tell; for example, if all your data has gone and your website is replaced by a big black screen with "You've been Haxx0r3d", that's a strong clue. However, many - perhaps most - attackers are far more discreet nowadays, because their intention is either to copy information secretly or to use your machine as a staging point for hacking others, so they won't want you to know they've been there.
Some basic techniques you can use include running commands such as ls -alrt /bin or ls -alrt /etc, which scan your /bin and /etc directories respectively, and give you a list of all files in reverse order of when they were created or modified, with the most recent files at the bottom of the list. If you do that and discover, for instance, that your /etc/passwd file was last modified yesterday, but you know you haven't added a new user to the system for weeks, you should start to worry. But hackers are getting more and more sophisticated and many rootkits now include software that ensures the file dates don't get changed, and to counteract that you need to use an intrusion-detection system such as Tripwire or Osiris.
Tripwire has been around for years, and again exists in both open-source and commercial versions. When you first run the program, it creates a set of "fingerprints" for all your key files (as defined by you when you configured it), which are generated by inspecting the files and computing a unique checksum value based on file size, modification date and file contents. You store these fingerprints onto some read-only medium such as a protected floppy disk or a CD-ROM, and on each subsequent run of Tripwire it will compare the current fingerprint for each file with its "known good" fingerprint and report any discrepancies. The algorithm by which these fingerprints are generated ensures even a single byte change in a file will result in a different fingerprint, so you should take any reported change seriously.
The only problem we've had with Tripwire - and this would go for any similar program - is that, of course, automatic system updates always result in files being altered, so Tripwire will continually be nagging that those files have been modified. For this reason, it's vital that you keep your "known good" fingerprints up to date. Otherwise, you'll be faced with an ever-growing list of false-positives, you'll no longer remember which have been changed by legitimate updates and, therefore, you won't spot those that have changed as the result of malicious behaviour. Likewise, you need to be quite choosy when it comes to telling Tripwire which files to monitor: for example, log files should never be included, because by definition they change from minute to minute.
Osiris performs a similar function to Tripwire, but it can easily be set up to monitor multiple machines from a single server. A Management Console on the server communicates with Scan Agents on each of the machines you want to monitor and, in a similar way to Tripwire, stores information about the file system based on those files you told it you want monitored. If a change occurs, Osiris can email you with information about what's changed and when. Osiris works on both Windows and Linux/Unix, and source is available, along with Windows binaries.
From around the web
advertisement
- Why virtualisation hasn't slowed the growth of data
- How to make Google AdWords work for your business
- The curse of sloppily written software
- Paying for your crimes with Bitcoin
- Behind the scenes: tech support for Formula 1
- The security risk of fat fingers
- Why Windows Phone 7 isn't quite ready for business
- When will Microsoft stop fiddling with Windows 8?
- Flash down the pan?
- Metro Style apps vs desktop applications
- Chrome's shine getting lost in translation
- BytePac: the cardboard hard disk enclosure
- How tech loosens our grip on reality
- Hokum watch: Safer Internet Day
- Why I'm deleting Adobe from my PC
- Prepare to be patronised: it's Safer Internet Day
- Dear Sony, Samsung and every other tech company in the world: stop trying to be Apple
- Will Apple's Final Cut Pro X update placate the pros?
- Smartr Contacts for iPhone review
- Switching to Office 365's Outlook Web App
- VeriSign slammed for security breach cover-up
- SAP willing to share HANA with Oracle
- Why using a tablet could harm your health
- New RIM boss: no need for drastic change
- RIM founders fall on their swords
- Slow economy helps boost Red Hat revenue by 23%
- Google+ pages get multiple admins
- One in five companies lack card industry compliance
- Oil industry warns hacking attacks could kill
- British workers fear email monitoring
advertisement

