PDA

View Full Version : Lessons from the front line...


TJworld
November 30th, 2005, 05:08 AM
Looking over these forums occassionally, and especially seeing the signatures listing enough software to fill a truck, I do worry that many people are losing the joy of surfing and straight-forward use of the 'net.

It seems to me the agenda is set by many large commercial vested interests and so-called security experts making unknowledgeable users fear attacks and infections of various sorts in order to get us to spend money on bloated and resource-hungry software requiring tens of megabytes un-necessarily, that also gets in the way of what I want to do today.

I have been using the Internet since the late 1980's intensively and have never been compromised by network attack nor had systems infected by virus or spyware - unless I was testing in a lab environment. According to the experts thats apparently through luck rather than judgement.

It all comes down to common sense measures.

Don't download software that has dubious pedigree - resist the what-if urge unless you have an isolated PC to do such things.
Use a web browser that will not execute code without your permission (e.g. Mozilla Firefox), or turn such features off (in IE, disable Browser Helper Objects (BHOs) and disable ActiveX.
Employ an email server that can detect and reject connections from suspicious servers before email is delivered into your network (e.g. Netwinsite's Surgemail)
Use an email application that will deal with messages as pure text (which is that they are) with the option to view embedded HTML versions only when you've satisfied yourself as to the contents (e.g. Mozilla Thunderbird)
If you're using Windows don't do your day-to-day work with an account that has Administrator privileges.


I don't want to sound holier-than-thou, but I do want to encourage people to realise that if they follow some basic steps they do not need to spend a great deal of money nor worry endlessly about the issue.

I'm a deep-down dirty hacker techy type working with Windows and Linux network systems in business, research & development, software development and leisure use. I spend a lot of my time downloading and testing new software, as well as trawling the 'net looking in odd corners for interesting tid-bits, so I go places where there's more risk.

Adminstrator Permissions
This is probably the biggest single change users (especially home-users) could make to protect themselves. In stand-alone settings Windows XP by default puts the users in the Adminstrators group, which allows them to do anything. This means any rogue software they inadvertently download and execute will run with those privileges.

Make your regular account part of the Users group, which doesn't have privileges to install software. Use another (Administrators group) account for installing software or managing systems, or have a script that temporarily adds your account to the Adminstrators group, or else use the Run As... option to run particular programs with elevated privileges.

Firewalls
A recent corporate change I made brings the whole bloatware / money / functionality issue into sharp relief.

My businesses have relied on Internet access and have predominantly used Windows for desktop and back-office where the focus was on main-stream non-technical customers.

So we adopted Microsoft-style responses... Microsoft's Internet Security Accelerator (ISA Server) 2000 and 2004. Through-out the time we used and mostly recommended it I hated the thing with a passion because it got in the way and prevented many of the more creative things we needed to use the net for.

Last year ISA Server 2004 was getting particularly annoying - unbelievably it is not possible to create a simple server-publishing rule where the server service (web server, say) is on the same PC as ISA Server.
I also discovered it silently installed SQL Server in the background to store logs and fairly took over a dual-CPU server's memory and CPU cycles.

There are other more subtle issues like it blocking RPC and epmapper traffic even when its policy said it wasnt, but thats getting techy.

Anyhow... I was getting increasingly fed up with being told you can't do that by the software and, when I talked to Microsoft Private Support, by the supposedly intelligent technical support staff.

I knew what I wanted all along - something like Linux IPtables where the packet filter/firewall works with me, not against me.

Without much hope of escaping this feeling of being stiffled I decided to look around and somehow discovered IDRC's (now Third Brigade) CHX-I 2.x suite and it was, in many ways, a perfect moment.

In all the MS Windows world it was the first time I'd found something that would do what I wanted easily, without fuss, without taking over most of a PC, and without telling me I wasn't allowed to do something!

Now, with a few simple rules, I can protect individual PCs or entire networks (packet filters), intercept and manipulate the data as it comes in and goes out (payload filters), trigger reactions to events to open and close ports only when necessary (triggers), and log as little or as much as I need depending on circumstances without needing a bloody great database!

And all that from a few hundred kilobytes of well-crafted code.

Whats even better from my perspective is, in email conversations with one of the guys that developed CHX and owned IDRC (Rares Stefan) it appears they intend making the core code open-source at some point after 3.0 release!

Thats the kind of action that creates respect as well as confidence in a product, where peer-review of key security code is possible, other developers (like me) can contribute code, and generally the product gets the benefit of thousands of individual techies looking over it.

It also means I can develop vertical-market extensions on the common core for particular issues I face, and contribute that code back to the community.

Email
On the subject of love-hate with Microsoft server software... next up is Microsoft Exchange Server 2000 and 2003.

I spent many hundreds of frustrating hours over the years trying to ensure this beast kept things ticking. The most annoying part was being unable, despite spending a lot of money on external add-on software, to block the mountains of spam most corporates receive.

Like many email servers it suffers from a major failing - it will accept email before deciding it is spam. So it will allow the spammers to eat up server resources and cause headaches for the IT guys later, because unravelling a corrupted Exchange database is not something I'd wish on anyone.

Then along came Netwinsite's Surgemail. Talk about a revalation! Out-of-the-box it reduced spam problems by 95%, simply by using some common-sense measures like SPF as well as an intelligent spam filter called ASpam. It also has an integrated virus-scanner that gives me confidence, although once the ASpam engine has rejected so much the anti-virus rarely has anything to do.
Its managed via an easy-to-understand web interface and with integrated web-mail, POP3 IMAP4, it makes providing email service a pleasure not a pain once more.

In Summary
A few simple measures can save you spending thousands, and give you more flexibilty and confidence in the solutions. Don't go for the biggest or the loudest or the most marketed... on those criteria I'd never have discovered CHX, and it is in my opinion the single best change I ever made.

When in doubt, remember what the definition of an expert is... An ex is a has-been, and a spurt is a drip under pressure :P

Don't let the buggers get you down
-----
TJ.

Dave-54321
November 30th, 2005, 06:00 AM
-{ Quote: "
Whats even better from my perspective is, in email conversations with one of the guys that developed CHX and owned IDRC (Rares Stefan) it appears they intend making the core code open-source at some point after 3.0 release!
" }-

If CHX went open-source that would be AMAZING!

Arup
November 30th, 2005, 08:58 AM
I agree, CHX is truly an amazing product, in today's age of un-necessary bloat which draw a thin line between suite and firewall, even though CHX is not going open source by any means, it would remain to be free for personal use. The new version 3.0 promises so many goodies, primarily among them, the Trigger feature just like a router, CHX is exactly like a software equivalent of a router, almost as unobtrusive and bug free.

TJworld
November 30th, 2005, 11:41 AM
A quote from an email of 30th June 2005, from Rares Stefan to me:
-{ Quote: "But too much talking on my part. I will send you the link to the latest beta binaries by Friday. (hopefully - we can also go open source sometime this year)" }-

Arup
November 30th, 2005, 12:47 PM
Yep, the word is hopefully, would be good if they do so but its still free for home use.

TJworld
November 30th, 2005, 01:26 PM
Open-source freedom doesn't mean zero-cost!

In my opinion valuable things should never be given away free... it leads to expectations of something-for-nothing, especially in the digital world.

Being able to independently assess it's fitness-for-purpose and quality, and contribute to its continued development in areas where the development team might not want to go, or have the resources to do so, is far more important.

It gives users freedom of action in the event the original developers move on to other things, or the company decides for commercial reasons to cease development or support of a product.

Paranoid2000
November 30th, 2005, 03:47 PM
-{ Quote: "Looking over these forums occassionally, and especially seeing the signatures listing enough software to fill a truck, I do worry that many people are losing the joy of surfing and straight-forward use of the 'net.

It seems to me the agenda is set by many large commercial vested interests and so-called security experts making unknowledgeable users fear attacks and infections of various sorts in order to get us to spend money on bloated and resource-hungry software requiring tens of megabytes un-necessarily, that also gets in the way of what I want to do today." }-A good security application should provide two things - protection from one or more "threats" and control over some aspect of your system. So firewalls protect from incoming attacks but also give you control over what programs send data out - process protection software restricts what malware can do but also lets you decide what Windows can run. There are a number of "poor" security apps that don't give you control ("nanny state computing") but most people posting here seem to gravitate to the better ones.

On top of that, much of the "joy of surfing" now depends on users filtering traffic. Spam, animated/floating adverts, blinking text, Flash bandwidth killers, popups and popunders and intrusive information gathering have all become far too frequent an ocurrence so taking steps to improve security (locking down browser options as you have mentioned, but also using ad/web filtering) can be key to a better online experience. I have zero tolerance for most advertising (and will spend 10 minutes knocking up a custom filter in Proxomitron to kill any that slip through if I think the website is too good to boycott) but thanks to judicious use of security applications, I see virtually none and haven't seen an unsolicited popup for a couple of years now.

So yes, there are bad applications and overly-fearful users - but the consequences of over-securing a system are rarely as bad as under-securing one. It is also likely that malware authors will use ever more creative means of spreading their wares, making "safe hex" harder and increasing the need for third-party security tools.

TJworld
November 30th, 2005, 06:41 PM
I guess it depends on which kind of person you are... is the glass half-full, or half-empty?

Me... I leave the car unlocked when I go into town and trust people not to mess with it, but if they do, boy!, they better be ready for some trouble because in some respects that good ole You-Esss-of-Aye boy GeeDbl-U is right about shock and awe ;D

But after all its only a computer, its not like its real life... and of course you do back-up everthing... you do, don't you? ::)

Arup
November 30th, 2005, 08:29 PM
-{ Quote: "Open-source freedom doesn't mean zero-cost!

In my opinion valuable things should never be given away free... it leads to expectations of something-for-nothing, especially in the digital world.

" }-


So very true, free means no respect, we humans like to pay because of our vanity, then suffer and defend our expenditure, no matter how bad, I am an eternal leech so I use all freebies and so far, they all run great.

TJworld
November 30th, 2005, 08:32 PM
The payment need not be monetary, it can be in-kind.

Thats the whole point of open-source... you can pay by helping improve extend or support the package - sometimes that form of payment is more valuable than meer money.

Arup
November 30th, 2005, 10:40 PM
TJworld,

Are you behind a router and then using CHX as a second filter?

TJworld
November 30th, 2005, 10:49 PM
CHX-I is the primary and secondary filter.

CHX is on the Internet servers, on the LAN/Internet gateway, and on internal LAN workstations and servers.

Having them all monitored via a central MMC makes management and monitoring so easy, and gives a great overview of network activity.

Often-times I'll see someone abusing one of the servers and instantly add their IP/range to the pre-defined IP list "Unwanted Visitors", then refresh each CHX instance from the centrally-stored list, and the 'visitor' is no more.

(I run a modified tcpview.exe from SysInternals that monitors real-time connections to multiple PCs).

Arup
November 30th, 2005, 10:53 PM
Very good, I bridged my router and use CHX as I do P2P and avoid all the hassles of routers like choking on heavy use with P2P etc. Also much safer as I don't have to do port forwarding or triggering and my speeds are higher in bridged mode with CHX than router mode, also CHX offers far better protection.

TJworld
November 30th, 2005, 10:57 PM
What I particularly like about CHX-I is, with a trivial script, I can synchronise the packet-filter rules between CHX-I and Linux IPtables so management of both can be done from the one MMC.

Arup
November 30th, 2005, 11:02 PM
The new CHX with payload and http stream promises to be even more intersting, it also has other protocol protection as well.

TJworld
November 30th, 2005, 11:18 PM
Indeed, I'm very impressed with it so far. There is a lot that could be done to extend it too, which is why I hope they do decide to take it open-source.

One of my current projects is an object-aware network monitor that pulls together real-time data from CHX, tcpview, filemon, and server logs to give IT managers a clear picture of who is accessing what, and how.

Doing this over an entire network gives one a great deal of insight into potential vulnerabilities, and using this information to instantly impose restrictions via CHX-I has great potential.

For example, with traffic-shaping I can have a trigger that detects too many connections to a particular resource (a streaming media source, say) and automatically throttles it - either for a single visitor or a group.

Likewise it can detect someone attempting to do a wget of an entire site - taking a copy of it - and if that is against policy impose restrictions on that visitor such as limiting the number of concurrent connections, the bandwidth, or the number of files they can access per visit.

Using triggers HTML requests that breach policy can be redirected to a page that explains why the visitor is being restricted.

Another use: if a port-scan is detected the IP can be instantly blocked across all servers, and a Real-time Black List DNS server can be updated with the IP of the scanner. This has great potential for sharing and actively blocking IPs of machines that are compromised and being used by trojans.

TJworld
November 30th, 2005, 11:28 PM
Something that shouldn't be overlooked from CHX-I 2.x, is the Network Address Translation (NAT) module.

Its fantastic to have the degree of control it gives, and it makes using Windows Networking just like Linux.

On Linux I have IPtables port-forwarding MASQ rules to redirect all outgoing requests to port 80 (i.e; web browsing) to the local Squid caching proxy server port.

With the CHX-I NAT module and the NT version of Squid, the same redirection rule is easy to set up. No longer do the internal web clients need to be configured to use a proxy - as far as they are concerned they're directly connecting.

When the NAT module see's connections outgoing to port 80 it redirects to the local Squid port and takes advantage of local caching.

This simple set-up entirely replaced the need for ISA Server and reduced the resource requirement substantially and most of all, since making the change, the amount of time spent managing the firewall/cache has been reduced significantly.

Mrkvonic
December 1st, 2005, 02:30 AM
Hurllo,
TJ, you are talking about a level of knowledge and skill a bit above the average user. What you suggest requires a fair level of confidence to use and write scripts and conglomerate various apps into a powerful formula.
But your general idea is completely true.
People live in fear and are governed by gut feelings. Most people will run either too many or too few security applications.
Apart from people who LIKE to tweak and play with security, after all it's just another hobby like duck hunting or bdsm clubbing, most users go head over heels, missing the true meaning of computer security.
With a bit of thinking, it's enough to run firewall and anti-virus and an non-MS browser to practice reasonably safe internet life.
To mention simplicity, here are the few things I have found valuable over the last years:
Proxomitron web filter - a great little thing. Reinforced with filters, like Kye-U or Gripen package, Proxomitron not only kills ads, it also removes exploits and vulnerabilities from web pages. I have tested Proxomitron against tests on Secunia and found it fully capable of neutralizing the unpatched exploits in browsers.
Configuring your own router - without router.
Take two computers or more and inter-connect them, then configure a home network using Internet Connection Sharing. This done, turn off the firewall at any of the computers and head for the tests at grc or sygate. All ports closed. The gateway computer is a router now.
Firefox browser with extensions - not only will it run faster, it can be impregnated to be safer and less cluttered. Two of the most powerful extensions are Adblock and Noscript. Adblock is a sort of Proxomitron-like addition to Firefox, whereas Noscript is a customizable console for java and javascript.
Bart PE bootable Windows CD - very handy. It can be used to recover from disasters, including failed OS and malware. The disk, strengthened by drivers and plugins that turn it into Ultimate Boot CD for Windows, contains dozens of good applications, including anti-virus and anti-malware, disk diagnostics, repair, imaging and backup, burning, Firefox browser and more and more. Unlike Linux disks, Bart PE can write to NTFS drives. This can allow anyone to save their data even if Windows virtually gets wiped out.
Small simple things, yet so mighty.
Cheers,
Mrk

TJworld
December 1st, 2005, 03:04 AM
um... hate to ask but... whats an anti-virus program? :P

Yup, thats right, I don't run one :)

Like you say it comes down to what you know... if you know the pedigree of executable content, or have the tools to analyse it before it is allowed to execute, then its unlikely that a hidden payload will get through.

I have a directory crammed full of trojans, viri, and various software impregnated with malicious payloads that I've downloaded but none of it is a threat because none of it will be executed.

After a simple hex-editor exploration of a few of these to get a 'feel' for what they look like its not hard to spot the malicious from the innocent.
Anything that feels the need to obscure its content using encryption is banned right away, closely followed by anything that has an imports list that makes calls to Windows kernel-functions it has no business with.

Even the most neophite users, when shown these things in simple terms they can relate to, quickly develop the basic instincts of safe and successful hacking.

When you give the power and feeling of control back to the user, through education, its wonderful to see them blosoom.

Notok
December 1st, 2005, 03:36 AM
That's great, but most users don't have the time or inclination to learn such things. Most of the users I encounter would rather pay me the money to set them up with a few well placed apps so they can proceed with other, somtimes more important, things. Computers are often tools of work or leisure. Work isn't going to leave room for that kind of thing, and that kind of learning is not leisure to anyone that's not a geek. Nobody's going to doubt that what you're suggesting works, but I don't think you suggestion is a viable solution for all. There's always that balance between time and money, no matter what you are looking at.

TJworld
December 1st, 2005, 03:49 AM
I think you missed the point of my article... its not about being a geek or not, its about letting people know they can be in charge of their own destiny, and don't need to feel the degree of fear / anxiety the focus on intrusion / infection generally seems to cause.

Too few people that know whats what speak up for common-sense, or encourage users to get out there and explore... I couldn't phrase it better than Paranoid2000 when he (she?) called it nanny-state computing.

The nanny-state in all things is an insidious malaise and for the 'net in particular - something that can inspire creativity and be so wonderfully educational and entertaining - it has the potential to undermine what the Internet is - an organised anarchy of ideas and expression.

deviladvocate
December 1st, 2005, 03:53 AM
Looks like the same argument going on here in the DSL Broadband Reports (http://www.dslreports.com/forum/remark,14907071).

Unlike over here though, there is a marked preference for fewer if not zero use of apps. Probably reflects the generally higher skill level of the people there than here I guess.

Happy Bytes
December 1st, 2005, 05:19 AM
-{ Quote: "Probably reflects the generally higher skill level of the people there than here I guess." }-

huh? :o

BlueZannetti
December 1st, 2005, 06:38 AM
-{ Quote: "After a simple hex-editor exploration of a few of these to get a 'feel' for what they look like its not hard to spot the malicious from the innocent.
Anything that feels the need to obscure its content using encryption is banned right away, closely followed by anything that has an imports list that makes calls to Windows kernel-functions it has no business with.

Even the most neophite users, when shown these things in simple terms they can relate to, quickly develop the basic instincts of safe and successful hacking.

When you give the power and feeling of control back to the user, through education, its wonderful to see them blosoom." }-TJworld,

While I agree with absolutely everything you say for a subset of advanced users, when you start to talk about a simple hex-edit exploration, we start to part company. If you believe that typical, mainstream users - in other words, the vast bulk of the PC using community - or in your words neophyte users, are equipped to pick up a hex editor and go from there, you are sadly miscalibrated on the knowledge base of an average PC user, even those users frequenting sites like this. I'm certain a reasonable but small fraction of the users that frequent this site could follow your advice and be absolutely fine. I also believe that the vast majority can't.

That should be the primary lesson from the front line. A secondary lesson, perhaps more in line with your thoughts, is that undisciplined heaping of a large number of realtime security applications onto a PC, applications that the user simply doesn't understand, is certainly not the answer either.

Blue

deviladvocate
December 1st, 2005, 09:38 AM
-{ Quote: "huh? :o" }-

Oh sorry.

With certain exceptions like the security vendors types who are here to hawk their wares of course. But I'm talking about the typical member. They seem to have more IT pros (not necessarly out and out security guys more like system admin types) while here we have more people here of the home user types even the 'experienced' ones who find using command line a novelty.

deviladvocate
December 1st, 2005, 09:59 AM
-{ Quote: "
That should be the primary lesson from the front line. A secondary lesson, perhaps more in line with your thoughts, is that undisciplined heaping of a large number of realtime security applications onto a PC, applications that the user simply doesn't understand, is certainly not the answer either.

Blue" }-

I don't think that even if you do "understand" (whatever that means) the application it gives you a license to load up a ton of software. :)

I guess the question is how much is "a large number of realtime security". My observation is that over here 4-5 isn't considered large and many people run closer to 6-10 once you factor in privacy stuff or if you desire backuping just in case.

In fact if I look at the answers you give Blue, it seems at least 4 is necessary. Most likely 5 if you run two for the last entry. And all this is on top of a hardware router.

1. AV
2. AT with good memory scanner
3. Firewall
4. Process/file/registry guard/monitor/protection :)

And for some people, this might even understate matters since some of the entries 1-4 overlap with others. People trying to run KAV 6 full on with online armor, appdefend .

Then again there are people who are minimists running around trying to prove they can surivive only with shadowuser. Oh well.

Mrkvonic
December 1st, 2005, 10:00 AM
-{ Quote: "Oh sorry.

With certain exceptions like the security vendors types who are here to hawk their wares of course. But I'm talking about the typical member. They seem to have more IT pros (not necessarly out and out security guys more like system admin types) while here we have more people here of the home user types even the 'experienced' ones who find using command line a novelty." }-

Hi,
Devil, you don't have to be so fiendish. :)
People here want to help, that's the most important thing. Whether their advice is valid or not - well whoever listens should decide. Btw, could you give me:
Your opinion of what a minimalistic setup should be?
Your opinion of what a good setup should be?
How about my router-which-is-not-a-router-solution? Isn't that simple and beautiful?
Mrk

deviladvocate
December 2nd, 2005, 06:02 AM
-{ Quote: "Hi,
Devil, you don't have to be so fiendish. :)
People here want to help, that's the most important thing. Whether their advice is valid or not - well whoever listens should decide. Btw, could you give me:
Your opinion of what a minimalistic setup should be?
Your opinion of what a good setup should be?
How about my router-which-is-not-a-router-solution? Isn't that simple and beautiful?
Mrk" }-

"Your" solution to use a spare PC as a router is a well known idea, though any people who do so prefer to run linux with ipchains because it's lighter, more robust and can be locked down more easily and completely than a windows box.

In many ways it's similar to using a NAT router, which is after all running linux for firmware. The main advantage of hardware routers is that it's simple, robust and simplicity means it is less likely to have flaws for people to exploit.

Your solution should try to mimick the same virtues. So the most important thing is that you should strip down the PC that is acting as the NAT router, and lock it down as much as possible. if you do not do this, it can be exploited the same as any PC. Remember the fact that it is used to do NAT does not in any way confer it any magical defensive powers. Do not in any circumstance use it to surf, or do work. Keep it as simple and basic as possible.

You might know all this already, but then again you might not.

Arup
December 2nd, 2005, 07:45 AM
Routers are fine till you hit their limitation, all medium range routers have limited memory space, what this does is that when you need multiple connection and speed, say for example, running a P2P app, majority of low and mid range routers choke on that and start dropping connections when their NAT table goes full, same with their SPI firewall, ACL full and off goes your P2P connection. Otherwise, routers are the best thing to happen to the broadband world, average users without it and an improperly set firewall would be totally vulnerable, take for example, Zone Alarm, when first installed, it will ask the average Joe if sever access is to be granted to MS Task at 1025, most would panic and say yes, now if the same were to happen with a Trojan or Key Logger, think about that, few newbies or first time firewall users know what is a server right or an inbound connection, this is where NAT routers come in really handy.

Mrkvonic
December 2nd, 2005, 09:20 AM
-{ Quote: ""Your" solution to use a spare PC as a router is a well known idea, though any people who do so prefer to run linux with ipchains because it's lighter, more robust and can be locked down more easily and completely than a windows box.

In many ways it's similar to using a NAT router, which is after all running linux for firmware. The main advantage of hardware routers is that it's simple, robust and simplicity means it is less likely to have flaws for people to exploit.

Your solution should try to mimick the same virtues. So the most important thing is that you should strip down the PC that is acting as the NAT router, and lock it down as much as possible. if you do not do this, it can be exploited the same as any PC. Remember the fact that it is used to do NAT does not in any way confer it any magical defensive powers. Do not in any circumstance use it to surf, or do work. Keep it as simple and basic as possible.

You might know all this already, but then again you might not." }-

Hi,
Cheers!
I agree about the Linux box. Some time ago I contemplated the idea of an old P2 acting as a server but eventually did not go forth with it. I do use dual boot with Linux, though.
But since this thread is obviously aimed at Windows users, what would you suggest a Windows user do? I think the idea was to show that you can have reasonable security without going head over heels with programs and more programs and more programs. Similar to the El Cheapo router and Windows firewall threads at dslbroadbands. I think this is what the author intended.
Would you suggest anything else?
Mrk