Traditionally, all anti-virus programs and IPS systems work using signature-based techniques. However, this doesn't help much to prevent zero-day attacks.
Therefore, what can be done to prevent zero-day attacks?
|
Traditionally, all anti-virus programs and IPS systems work using signature-based techniques. However, this doesn't help much to prevent zero-day attacks. Therefore, what can be done to prevent zero-day attacks? |
|||||||||||||
|
|
I think you acknowledge an interesting sys-admin truth there, which is that
This is just a basic truth of maths and probability, that for any non-zero probability of an event. The event eventually happens... So the 2 golden rules for reducing the impact of this "eventually hacked" event are these;
Silver Rules are also good. Use the tools available. (It's highly unlikely that you can do as well as the guys who are security experts, so use their talents to protect yourself.)
|
|||||||||||||||
|
Whitelist, don't blacklistYou're describing a blacklist approach. A whitelist approach would be much safer. An exclusive club will never try to list everyone who can't come in; they will list everyone who can come in and exclude those not on the list. Similarly, trying to list everything that shouldn't access a machine is doomed. Restricting access to a short list of programs/IP addresses/users would be more effective. Of course, like anything else, this involves some trade-offs. Specifically, a whitelist is massively inconvenient and requires constant maintenance. To go even further in the tradeoff, you can get great security by disconnecting the machine from the network. |
|||||||
|
Detection is Easier (and More Reliable) Than PreventionBy definition you cannot prevent a zero day attack. As others have pointed out, you can do a lot to reduce the impact of a zero day attack, and you should, but that is not the end of the story. Let me point out that in addition, you should devote resources to detecting when an attack has occurred, what the attacker did, and how the attacker did it. Comprehensive and secure logging of all activities that a hacker might undertake will both make it easier to detect an attack and, more importantly, determine the damage done and remediation required to recover from the attack. In many financial services contexts, the cost of security in terms of delays and overhead in executing transactions is so high that it makes more sense to focus resources on detecting and reversing fraudulent transactions rather than to take extensive measures designed to prevent them in the first place. The theory is that no amount of measures will be 100% effective, so the detection and reversal mechanisms need to be built anyway. Moreover, this approach has withstood the test of time. |
|||||||||
|
|
Zero day doesn't mean that signature is not known. It means that there's no patch available to users of software, that closes vulnerability. So IPS is useful to protect from exploiting zero-day vulnerabilities. But you should not rely only on it. Create and follow a solid security policy, harden your servers, update software, and always have a 'Plan B' |
|||
|
|
|
Grsecurity or SELinux are good in helping to prevent 0 day attacks by hardening the kernel. Quote from website "Only grsecurity provides protection against zero-day and other advanced threats that buys administrators valuable time while vulnerability fixes make their way out to distributions and production testing. " |
|||
|
|
|
If you are using Apache, modules such as mod_security can help you prevent common attack vectors. With mod_security you can
... and much, much more. Of course, using a complex module like mod_security it's quite possible to also block your actual clients, and on the server side mod_security adds some overhead. It's also mandatory to keep your server software updated and to make sure you have disabled each and every module & daemon you won't use. Tight firewall policies are a must and in many cases additional security enhancements such as SELinux or grsecurity might stop the attack. But, whatever you do, the bad guys are very patient, very creative and very skilled. Have a detailed plan what to do when you get hacked. |
|||
|
|
|
I'd like to add a few bronze rules:
|
|||
|
|
|
A bloated machine with a huge security suite often makes mediocre PC's into dinosaurs and quad Cores into ordinary old pcs. I have fixed enough ( thousands) to understand that is mostly true. If you understand nothing is 100% security and the cost of performance drops exponentially as security while probability of infection only drops linear fashion. Most results when I stopped looking at comparisons were 90% max on a real world test of thousands of risks, meaning 10% of the infections were undetected or too late. while PC latency had increased 200 to 900%. OSX has an ideal situation where it essential is no better in security but the risks of attack were smaller due to being smaller targets with only 4% of market-share in non-phone/pad products in 2010. That will change but I wont change my philosophy of keeping my OS clean, lean & mean. I do the same for XP and Win7. I have a hige arsenal of repair tools but only need one app to fix everyone who gets infected and it only takes 10 to 20 minutes not hours or days. My methods that work;
Some may take exception to this partial list off the top of my head, but I save time securing my PC and operating in a lean environment. Regular audits to confirm my security are done at night prove my worry free practise is justified. I still have a thousand HJT logs, combofix.txt logs and Runscanner logs to support my opinions of cures and better security/ performance balance.
All for now. Tony Stewart EE since 1975. |
|||
|
|