Dave's Bit Bucket

Dave Walker's jottings - mostly pertaining to security


20061130 Thursday November 30, 2006

Nintendo Wii brings a new emphasis to "Watch the television!"

It seems some new Wii owners have been getting a little over-enthusiastic with their new toys, and the straps which are supposed to secure the controllers to their wrists during play have been failing in some cases. Unsurprisingly, the main Wii page is now dominated by safety information, about correct wrist strap and controller usage.

More at http://www.wiihaveaproblem.com/.

Here's hoping, for their sake, Nintendo's investment portfolio includes TV manufacturers...

(2006-11-30 10:07:03.0) Permalink Comments [0]

Reinventing "IDS"

I had a rather illuminating discussion with A Really Big Customer a little while back, in the context of a Really Big Project they are working on.

The customer have an issue which states that they are getting worried about "not having an IDS solution on Solaris 10". In terms of IDS, they are typically an ISS shop - they want something agent-based which will do centralised reporting and alerting on perceived usage anomalies.

It turns out that only one IDS vendor - this being Prelude, about whom the customer knew nothing - currently do an agent for Solaris 10. From their perspective, this is "a bit of a bugger".

Now, in my (moderately) humble opinion, there are only three reasons why an organisation would consider having IDS in the first place...

1. Most of the time folk talk to be about IDS, they are working from a mechanistic risk evaluation and mitigation analysis system such as One I Won't Name Here which gets used when designing lots of Government stuff. This approach sometimes takes people down a technology path which might not be appropriate for them, and IDS isn't for everyone.

2. Consider that IDS doesn't actually secure anything - it merely alerts an admin team to its belief that an environment is under attack. I've met a very few folk who want IDS because they have their entire underlying security infrastructure well and truly organised, and want to add IDS as not so much "the icing on the cake" as the "100s and 1000s and the cherry on top".

3. Plain, simple pointy-haired stupidity, usually from some senior manager who just came back from Infosecurity or some other major show with a big wedge of brochures.

I don't find many folk (only two so far) in the situation of 2, and there's a lot more in 1. There's even more folk in 3. Really, IDS is only worth considering if everything else is nailed down properly already.

So, I was fortunate enough to get around a table with some senior geeks in the customer's admin and IDS department, and thrash a few things out in a forum where honesty ruled and political correctness was pretty much left at the door.

Things went roughly like this...

IDS Products

  • Enterasys Dragon is a dead duck - development basically ceased 18 months ago.
  • PrevX Enterprise is very good on Solaris 9 (or it was when I looked at it 18 months ago - it even found a rootkit concealed as a loadable kernel module), however it had issues with false positives around IPMP (reported to PrevX and which they said they would fix), and rather more serious issues around causing nodes in a Sun Cluster to panic. There is supposed to be a Solaris 10 agent coming, but I've yet to hear a peep about it.
  • The customer has prior experience with, and likes, ISS. Unfortunately, I have never rolled my sleeves up and got my hands messy with ISS products. Apparently, ISS have made no commitment on their roadmap to produce a Solaris 10 agent. I suggested that the customer have a word with ISS about this directly, to seek clarification (and also apply an incentive to ISS to do the port).

    We discussed network-based IDS for a while, too. It looks like this technology (especially if it can handle decryption of encrypted streams) is probably off the menu, particularly as a result of the huge level of paranoia around the subject of interception or potential disclosure of cleartext data in the infrastructure's databases. This is a pity, as our N2000 kit would have been really cool to get in here to do said decryption...

    Customer Issues with IDS

    Your typical formal IDS appears to be set on a hair-trigger. For instance, the poor front-line IDS alert analysis guys in the customer's organisation get alerts whenever a webserver or appserver gets manually restarted, because the IDS agent they use on Solaris 9 thinks it's a SYN flood attack.

    Now, there's no remotely conceivable reason why a SYN flood should be seen by a server's live service interfaces when it is presenting a load-balanced service. Any load-balancer worth its salt is smart enough to drop something like a SYN flood right on the floor by default.

    Also, even if you have a physical intrusion by a Bad Guy on a site (which other security measures should catch anyway), what clueless weenie of an attacker is going to try to take a multi-CPU SPARCbox down via something as lightweight as a SYN flood, given that we've sanity-checked for them for years?

    IDS solutions need a lot of configuration to prevent false-positive alerts like this showing up; in fact, "tuning" a traditional IDS feels like taking an undifferentiated instrument so sharp that it can cut daylight, and selectively blunting parts of it with a lump hammer.

    Customer Procedure

    I explored with the guys exactly what it is that they do when they get an IDS alert. After all, if you get an SNMP trap screaming at you that you're being attacked, you have to do something to qualify and act on it, right?

    Given the fragmented nature of their groups, there was a lot more politics and a lot less solid response definition involved that I would have hoped for - as a real killer, the procedure included at least 3 levels of inter-departmental handoff, so there was no single joined-up procedure that was contained within a single person's head. IMHO this is not the way to run an IDS, or any other aspect of system management, for that fact. However, the groups have apparently been re-orged to the point where they are now joined up, so here's hoping that everyone starts talking to eachother sooner rather than later...

    In common with everyone else I've spoken to who is deploying IDS, this customer get a very large number of false positives. In fact, they get more than 2000 reports a day, which are analysed by "eyeball 1.0" and typically reduced to 2 reports a day which may be worth actual investigation. Note that the infrastructure they are working on isn't even live yet - this is all test data and sysadmin activity. I pity them when it all goes live, they will find out what "inundation" really means.

    Other than lack of knowledge about event correlation and root cause analysis software, the main reason why the customer isn't doing this stuff in an automated or semi-automated fashion yet is that they still don't have all their system clocks synchronised to a single, monotonically increasing time source. I believe their top priority has to be to get everything on NTP and UTC.

    Once they have done that, they might find some mileage in looking at Tier-3 Huntsman or e-Security Sentinel, for log and root cause analysis, or letting their perl hackers loose on read-only copies of the logfiles.

    Oh, they aren't using Tripwire either. Or N1SPS. Or the Solaris Security Toolkit (yet). This makes determining by audit process "what their servers are actually set up to do" not so much a real problem as an utter bastard. Trying to deploy an IDS into an infrastructure in an unknown state feels to me like a real exercise in futility, and a lot of hard, ongoing work for no reward. They definitely need to nail the infrastructure down, first!

    Standards - and How to Get Around Them

    As I suspected, the infrastructure security is designed to meet the requirements of a prescriptive recipe. So, let's think laterally here. What does this recipe define as constituting an IDS?

    According to the customer, the given definition of an IDS is "woolly" (which might be a contributor to why the recipe is in the process of being rewritten).

    So, if I define an IDS as being "some software capability which gives realtime reporting on odd or bad stuff happening", then there's a whole bunch of possibilities which can arise.

    In fact, a properly configured Solaris 10 install - along with some analytical stuff at the log aggregation point which a typical system and network management product should be able to handle - could be considered to contain enough functionality to comprise an IDS for this purpose :-).

    Start by privilege-limiting all the services which a host serves up to the network. Compared to most IDS-associated technologies, this also has the benefit of actually tightening the system's security up. I've also sending the customer all the details of restricted privileges within zones (and also Glenn and Darren's excellent BluePrint on priv debugging), so that they may construct per-app zones with limit sets conducive solely to the apps (1 zone per app) running in them.

    If such a configured environment logs any attempt of privilege violation, then this is a guaranteed bona fide hit that "Something Is Going On That Shouldn't Be".

    Use this mechanism to get rid of a lot of false positives, add Solaris-Audit-over-syslog, and you're suddenly really getting somewhere :-).

    Similarly, set ipfilter up in the global zone (as, indeed, you must today) and get it to log anything that isn't expected traffic (ie outside the simple ruleset you've configured it to allow).

    So, once you have tracking of privilege violation attempts, port scanning and other anomalous network traffic, and kernel-level auditing tracking who does what - especially when things are done with legitimately enhanced privileges - you use syslog to shunt it all to a dedicated log gatherer, which also runs some code to look for this kind of behaviour and send appropriate SNMP traps.

    What more would you want in an suitably tuned IDS? :-).

    Seriously - what more would someone be likely to want in an IDS, which is not covered in the above? Could it be put together fairly easily?

    (2006-11-30 07:34:47.0) Permalink Comments [0]

Calendar

« November 2006 »
MonTueWedThuFriSatSun
  
1
2
3
4
5
6
7
10
11
12
13
14
17
18
19
20
21
23
24
25
26
27
28
   
       
Today

RSS Feeds

XML
All
/Cooking
/General
/Java
/Networking
/Security

Search

Links

Innovate on OpenSolaris

  Read via bloglines :
British Blog Directory.


Navigation



Referers

Today's Page Hits: 321