Host Integrity Monitoring Using Osiris and Samhain
nazarijo (Jose Nazario) writes "When you arrive to work one morning, you find that your coworker's workstation
is acting funny. A quick forensic examination reveals it's been compromised
and used to scan the network for more vulnerabilities. When did this
happen, and where else is this going on in you domain? With a host
integrity monitoring solution, you'll be a lot further along at answering
those questions than piecing it all together after the fact. And you
can accomplish this with two freeware tools, as described in Host
Integrity Monitoring Using Osiris and Samhain, a new book from
Syngress Publishing." Read on for the rest of Nazario's review.
Host Integrity Monitoring Using Osiris and Samhain
author
Brian Wotring, with Bruce Potter and Rainer Wichmann
pages
450
publisher
Syngress
rating
8
reviewer
Jose Nazario
ISBN
1597490180
summary
Use freeware tools to ensure your site's security is intact
Host integrity monitoring is the process by which system and network administrators validate and enforce the security of their systems. This can be a complex suite of approaches, tools, and methodologies, and it can be as simple as looking at loggin output. In the past, tools like Tripwire were used to check the configurations on hosts. The freeware version of this tool was limited in its manageability, which was available mainly in the commercial version.
Tools like Osiris and Samhain came along to fill the gap and have since evolved into mature projects themselves. Like any existing software tool out there, any new book should be evaluated not only on its own but also in he context of the existing documentation. Both Osiris and Samhain have decent amounts of documentation available already (Samhain seems to have a larger user documentation repository online than the Osiris tool does), and the book contributes to these docs quite well.
Host Integrity Monitoring shows you how to set up these tools and put them into production on Windows, UNIX, and OS X. Wotring's writing is fairly good, and his examples are usually pretty clear. The pace of the material is good, and there's not a whole lot of domain-specific expertise beyond system administration skills required to make use of the book. At times some of the formatting of the text gets in the way, but that's trivial compared to the quality of writing (which is pretty good).
Overall the material in the book is decent. The book opens with an overview of what host integrity monitoring is, why you should use it, and some of the basic premises. Then it goes on to discuss Samhain and Osiris, starting with their basic installation and then on to their advanced usage. They differ enough that each project merits its own pieces of documentation, even though they're similar in spirit. You'll learn how to schedule scans, integrate with other tools like Swatch, and in general administer a site installation.
The author of the book, Brian Wotring, is more familiar with Osiris than he is with Samhain, and it shows. More material (100 pages) is devoted to using Osiris than is given to Samhain (60 pages), which is to be expected. The coverage of both is sufficient, though, and fills the major parts of the book.
There are three major strengths to this book over the existing docs. The first is seeing not just the tools themselves covered but also the threats they cover in place. The second is having the two tools covered side by side, allowing you to see how to accomplish the same task with each. And thirdly, there are two appendices that are true gems of this book. The first covers how to get your Linksys Linux based AP device monitored using the Osiris tool, which isn't a small feat. The second is how to write your own modules for Osiris and Samhain, for which this appears to be the only documentation for Osiris (Samhain's website has a How To on writing modules). Again, these add value to the book over the freely available documentation.
I would have liked to have seen the chapters devoted specifically to Osiris and Samhain, chapters 6 (Osiris) and 7 (Samhain) broken up into two or three chapters covering their installation and use. The length of these chapters can make finding some material difficult at times. I would have also have liked to see the use of the "bold is input, normal text is output" technical book convention. In many examples finding the user input text can be challenging.
Host Integrity Monitoring Using Osiris and Samhain is not only about these tools but about how to accomplish host integrity monitoring on the cheap (since the code is freely available). While you can find docs on each project, this book complements those docs nicely and provides a nicely wrapped package about how to get the most out of each tool. If you've been thinking about how to ensure that no one is tampering with your system, these tools, and this book, should definitely make your solutions list.
You can purchase Host Integrity Monitoring Using Osiris and Samhain from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
Host integrity monitoring is the process by which system and network administrators validate and enforce the security of their systems. This can be a complex suite of approaches, tools, and methodologies, and it can be as simple as looking at loggin output. In the past, tools like Tripwire were used to check the configurations on hosts. The freeware version of this tool was limited in its manageability, which was available mainly in the commercial version.
Tools like Osiris and Samhain came along to fill the gap and have since evolved into mature projects themselves. Like any existing software tool out there, any new book should be evaluated not only on its own but also in he context of the existing documentation. Both Osiris and Samhain have decent amounts of documentation available already (Samhain seems to have a larger user documentation repository online than the Osiris tool does), and the book contributes to these docs quite well.
Host Integrity Monitoring shows you how to set up these tools and put them into production on Windows, UNIX, and OS X. Wotring's writing is fairly good, and his examples are usually pretty clear. The pace of the material is good, and there's not a whole lot of domain-specific expertise beyond system administration skills required to make use of the book. At times some of the formatting of the text gets in the way, but that's trivial compared to the quality of writing (which is pretty good).
Overall the material in the book is decent. The book opens with an overview of what host integrity monitoring is, why you should use it, and some of the basic premises. Then it goes on to discuss Samhain and Osiris, starting with their basic installation and then on to their advanced usage. They differ enough that each project merits its own pieces of documentation, even though they're similar in spirit. You'll learn how to schedule scans, integrate with other tools like Swatch, and in general administer a site installation.
The author of the book, Brian Wotring, is more familiar with Osiris than he is with Samhain, and it shows. More material (100 pages) is devoted to using Osiris than is given to Samhain (60 pages), which is to be expected. The coverage of both is sufficient, though, and fills the major parts of the book.
There are three major strengths to this book over the existing docs. The first is seeing not just the tools themselves covered but also the threats they cover in place. The second is having the two tools covered side by side, allowing you to see how to accomplish the same task with each. And thirdly, there are two appendices that are true gems of this book. The first covers how to get your Linksys Linux based AP device monitored using the Osiris tool, which isn't a small feat. The second is how to write your own modules for Osiris and Samhain, for which this appears to be the only documentation for Osiris (Samhain's website has a How To on writing modules). Again, these add value to the book over the freely available documentation.
I would have liked to have seen the chapters devoted specifically to Osiris and Samhain, chapters 6 (Osiris) and 7 (Samhain) broken up into two or three chapters covering their installation and use. The length of these chapters can make finding some material difficult at times. I would have also have liked to see the use of the "bold is input, normal text is output" technical book convention. In many examples finding the user input text can be challenging.
Host Integrity Monitoring Using Osiris and Samhain is not only about these tools but about how to accomplish host integrity monitoring on the cheap (since the code is freely available). While you can find docs on each project, this book complements those docs nicely and provides a nicely wrapped package about how to get the most out of each tool. If you've been thinking about how to ensure that no one is tampering with your system, these tools, and this book, should definitely make your solutions list.
You can purchase Host Integrity Monitoring Using Osiris and Samhain from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
"Samhain" (pronounced "SAOW-an") is "November" in Irish.
Drill baby drill - on Mars
I had to look them up:
Osiris
Samhain
Samhuinn/ Samhain - Celtic Quarter Day: "The Samhuinn Festival serves the seasonally opposite role to Beltane. It was the Celtic New Year, although its practice far precedes the Celtic culture. It marked the end of summer and the time to bring herds in from summer pastures to lowland fields and enclosures for protection. With the signs of approaching winter, it is understandable that the festival should have a strong association with death. The trees are bare and the land barren of the earlier vegetation - nature itself seems to be dying.
Thus it was believed that this was the night of the dead - a time for the spirits of the departed from the previous year to pay one last visit to their relatives before departing for the other-world forever. Also taking advantage of this closeness between the land of the living and the dead were the mischievous and malevolent spirits of the underworld, and measures had to be taken to protect against their pranks. Thus evolved the tradition of modern Hallowe'en to wear masks - originally to disguise oneself against the unwanted attentions of spirits and faeries.
Another Samhuinn tradition was a market fair held in the nearest trading centre. This was a chance to settle business, to trade livestock and produce of the autumn and to revel with friends for one last time before the winter conditions made travel too difficult. Amongst the entertainments were the Goloshan Plays. The main theme of these ancient narratives was the battle between light and dark, summer and winter. The two characters fight to the death, winter overcoming summer as inevitably as the seasons, but the medicine-man steps in to revive the summer figure, thus ensuring the return of spring and light."
but don't like the Slashdot whore link: Clickey
"A door is what a dog is perpetually on the wrong side of" - Ogden Nash
While that's clearly a last-line-of-defense sort of thing, it's certainly a welcome feature. I assume that Linux has a similar mechanism, although I haven't personally used it.
Dewey, what part of this looks like authorities should be involved?
Mac OS X does indeed retain the BSD user-immutable and system-immutable flags. For example, the command
sudo chflags schg filename is completely effective on a Mac, requiring either a sudo shutdown +0 command or a reboot into Mac OS 9, where the file can then be unlocked from the Get Info window.
Similar functionality can be had in Linux with the lcap command--after making a file immutable, simply remove the CAP_LINUX_IMMUTABLE capability to prevent further modification until the next reboot. For added security, add this to an early init script.
Making files immutable is not the only option in this realm, however. It's often usefl to mark log files as append-only, for example.
This is an old BSD 4.4 FFS feature, IIRC, and a great one. Solaris has a similar thing too.
Rebooting and resetting attribs is only possible if the attacker can change one of the programs executed (or utilised) before the runlevel goes out of single user. Consequently if you plan to use this feature serously, you need to examine and protect every file AND DEVICE (/dev/hd* etc) that is read before going into multiuser mode, and their dependants.
This isn't actually as bad as it seems for an already tight system.
This feature also makes patching usually require a reboot, as you can live-patch, obviously.
It's well worth the effort for multiuser systems, at sites with dodgy users like students, and anywhere where jails/chroot are used, to protect the integrity of the jailed/chrooted files.