Sabtu, 11 Desember 2004

Review of Inside the Spam Cartel Posted

Amazon.com just posted my five star review of Inside the Spam Cartel. From the review:

"Reading 'Inside the Spam Cartel' (ITSC) is like watching a racing car crash; you're horrified to see it happen, but you can't take your eyes off it. ITSC exposes spam from the point of view of the 'enemy' -- a spammer who claims 'you need to be ruthless in this industry if you want to make any money at it' (p. 132). This book is an absolute must-read for anyone trying to combat spam, especially policy makers who think passing laws with clever names makes any difference."

I loved that this book was written from the spammer's perspective. It's similar to the 1997 groundbreaking book Maximum Security, also written by an "anonymous" author bringing light to the underground.

Jumat, 10 Desember 2004

NetBSD 2.0 Installation Issues

I wanted to install NetBSD 2.0 on a real system, so I called on one of the mightiest boxes in my arsenal to host a new installation. I picked a Dell-built 1996-era Pentium (original, not "Pro") 200 MHz with 32 MB RAM. This box was running Windows 98, and my father-in-law donated it to my collection when he bought a new system.

I had multiple problems with this box. First, it has a Sony CDU311 CD-ROM that refused to read the CD on which I had burnt NetBSD 2.0. I created boot floppies and did an FTP install. I missed a crucial part of the partition creation process, however, that caused the system to hang at "Mounting all filesystems..." after a reboot. If you look at the screenshot below, you'll see that NetBSD by default offers to host the "tmp" partition on a RAM disk:



By default the size is 0, meaning this "memory file system" (mfs) won't be created. However, I moved my cursor down to the "tmp" row and added a 1024 MB entry. I didn't stop and think that I should have created a real "/tmp" partition on the hard drive. When I rebooted, the system wasn't able to create a 1024 MB memory-resident "tmp" partition, so the system hung.

Before I fixed the problem, I was able to boot into single user mode with 'boot -s' at the boot loader. I then knew the problem involved the filesystems I had built. I reinstalled the system and created a "real" /tmp:



juneau: {2} cat /etc/fstab

/dev/wd0a / ffs rw 1 1

/dev/wd0b none swap sw 0 0

/dev/wd0e /usr ffs rw 1 2

/dev/wd0f /var ffs rw 1 2

/dev/wd0g /home ffs rw 1 2

/dev/wd0h /tmp ffs rw 1 2

kernfs /kern kernfs rw

procfs /proc procfs rw,noauto

juneau: {3} df -h

Filesystem Size Used Avail Capacity Mounted on

/dev/wd0a 497M 19M 453M 4% /

/dev/wd0f 2.5G 535K 2.3G 0% /var

/dev/wd0e 4.8G 153M 4.5G 3% /usr

/dev/wd0g 993M 8.0K 943M 0% /home

/dev/wd0h 249M 1.0K 237M 0% /tmp

kernfs 1.0K 1.0K 0B 100% /kern


I chose not to install the games or X distributions. Take a look at how much of the /usr partition is occupied -- 153 MB. That's what I call avoiding software bloat!

Now my monster NetBSD box is running like a champ. The only change I've made so far is enabling OpenSSH by adding this line to /etc/rc.conf:


sshd=YES


If you want to see dmesg output, visit NYCBUG.org/dmesgd. This is a good example of taking hardware that would otherwise go to the dump and making something useful out of it. I could turn this system into a low-volume mail, Web, or DNS server, for sure.

New "Must Read" Security Blog

One of my buddies who's still with Foundstone (now part of McAfee) has started a blog. Aaron Higbee of DCPhoneHome fame, along with some of his well-dressed friends, have begun sharing their knowledge and sense of style at secureme.blogspot.com. They are deep into the assessment side of security, so I'm sure you can pick up a few tricks by regularly visiting their site. I'm afraid these guys look nothing like their "pictures," however.

April 2004 Sys Admin NSM Article Online

I learned today that my April 2004 Sys Admin article Integrating the Network Security Model is now available online. I've also posted .pdf and .ps versions at my TaoSecurity.com publications page. From the article:

" Intrusion detection is a controversial topic. Although intrusion detection systems (IDS) were once hailed as the answer to the shortcomings of firewalls, they are now labeled "dead" by some market analysts and are threatened by intrusion prevention systems (IPS) and 'deep inspection' firewalls. In this article, I'll look at the detection and validation of intrusions through an operational model called network security monitoring (NSM). I will briefly explain NSM theory and introduce several tools for integrating NSM concepts into existing prevention and detection systems.

NSM is the collection, analysis, and escalation of indications and warnings to detect and respond to intrusions. NSM is an operational model inspired by the United States Air Force's signals intelligence (SIGINT) collection methods and Todd Heberlein's 'Network Security Monitor' (ref AttackCenter.com). SIGINT is the collection of information on communications and the transformation of that information into intelligence products. Similarly, NSM collects and analyzes network traffic to identify and validate intrusions. NSM uses full content, statistical, session, and alert data to help analysts make decisions. Whereas intrusion detection cares more about identifying successful attacks, NSM provides evidence to gauge the extent of an intrusion, assess its impact, and guide effective remediation steps."

I am currently proofing an article for the February 2005 issue called "More Tools for Network Security Monitoring."

Kamis, 09 Desember 2004

NetBSD 2.0 Released

NetBSD 2.0 has been released! The last major release was NetBSD 1.6, in September 2002. The last update to the 1.6 branch was 1.6.2, in March 2004. I strongly recommend finding a mirror site close to you. There are even torrents available.

I've toyed with NetBSD before, but never in a serious manner. One aspect of the system I'm anxious to try is the well-documented NetBSD pkgsrc system. There is an excellent Web-based interface to the NetBSD packages at pkgsrc.netbsd.se. While there aren't as many NetBSD packages as there are FreeBSD ports (~5000 vs ~12000), the NetBSD system looks promising.

If you look in the iso directory of the NetBSD FTP servers, you will see .iso's like "i386cd.iso" and "i386live.iso". The prefix refers to the machine architecture and the suffix refers to the contents of the .iso. For example, I just downloaded and burned the i386cd.iso to CD-R, to test on my Intel 32-bit systems. It appears to be a minimal installation CD. This README indicates the i386live.iso is a live CD, such as you might find with FreeSBIE.

Thoughts on Future Microsoft Servers

Robert L. Mitchell reported Microsoft goes to pieces in a recent ComputerWorld article. The article is light on specifics, but the message is interesting:

"With the release of Longhorn in 2007, the company has said it will offer 'role-based' versions of Windows in which only the code needed to perform a given function will be included in a particular build of the operating system... Now, rather than simply selling task-specific editions of Windows, Microsoft may let systems administrators choose which core elements of Windows to include at installation."

As a security engineer, I think this is a great idea. Microsoft is already encouraging administrators to shut down unnecessary services via Windows Server 2003 SP1 RC's Service Configuration Wizard. Completely omitting unnecessary systems would be an even better idea. This is similar to a "minimal" FreeBSD installation. My guess is Microsoft will offer templates for mail, Web, database, and firewall servers. (A Windows-based firewall still confounds me!) In any case, I welcome this development if Microsoft indeed implements it.

On a related Microsoft note, I thought this description of DLL hell was very useful.

Pros and Cons of Outsourcing Security Tasks

Jian Zhen of LogLogic wrote two helpful articles for ComputerWorld. The first lists ten benefits of outsourcing security functions, and the second lists seven potential drawbacks. I largely agree with his analysis, particularly concerning the advantages of leveraging centralized security expertise.

A managed security service that does nothing but handle security issues all day long has a much higher level of security situational awareness than an overtasked administrator with multiple responsibilities. How is a general purpose administrator who has to deal with users, stop spam, recover backups, install patches, and maintain infrastructure going to know more about the latest types of attacks and defenses than a dedicated security professional?

Companies who can afford to maintain specialized security teams probably don't need to oursource these functions. A quick way to determine if a company probably doesn't need to outsource security tasks is to check to see if they are members of FIRST. (I almost had a heart attack when I saw that www.first.org was updated. One of the last vestiges of 1994-era HTML has fallen!)

These articles follow a helpful one by Bill Brenner from August 2004, Firms to seek more security help from outsiders. He reports "Unable to keep up with security holes, attacks and government regulations, enterprises will turn to outside firms for 90% of their security by 2010, according to Yankee Group."