Taming the beasts… aka suricata blueprint
-
I just found an issue and would like some input (Really need a vacation soon..).
So, in regards to the block-lists, I use floating rules instead of interface specific rules. (pfblocker)
All good and well, be it I use a couple of white-lists also (generated by a whois cron job, or just plain manual).For example : I have a Google white-list to allow both gmail, google dns, the bunch. General floating rules for both directions.
BUT, if I apply the "Apply the action immediately on match." my NAT rules are completely ignored. So forget forwarding a match in the whitelist floating rule to an exchange server internally.Causing the very nice result of not a single Gmail message getting delivered anymore.
Using the white-list in the specific interfaces will have no use, since the block lists floating rules will always take priority.
So, any other solution except for changing all floating rules to interface specifics? Be it manually or pfblocker.*edit
to be specific. I just want to whitelist the whole list I create. Not start with specific port ranges. -
I just found an issue and would like some input (Really need a vacation soon..).
So, in regards to the block-lists, I use floating rules instead of interface specific rules. (pfblocker)
All good and well, be it I use a couple of white-lists also (generated by a whois cron job, or just plain manual).For example : I have a Google white-list to allow both gmail, google dns, the bunch. General floating rules for both directions.
BUT, if I apply the "Apply the action immediately on match." my NAT rules are completely ignored. So forget forwarding a match in the whitelist floating rule to an exchange server internally.Causing the very nice result of not a single Gmail message getting delivered anymore.
Using the white-list in the specific interfaces will have no use, since the block lists floating rules will always take priority.
So, any other solution except for changing all floating rules to interface specifics? Be it manually or pfblocker.*edit
to be specific. I just want to whitelist the whole list I create. Not start with specific port ranges.Can you please post your rules? It's not very clear what's happening. Are you using pfblocker as aliases + floating rules?
NAT rules shouldn't be just ignored. Think of NAT as the "final" stepping stone. NAT should be the last thing that a packet sees coming out of an interface. Even if it is explicitly passed, it only goes up to the interface if it's going to be NATed. If the interface has any NATing applied to it, that packet must follow that.
-
jflsakfja,
I see the pull request has gone in for Suricata 2. Plan to start a new thread and refresh the beast taming blueprint with updates or just update this thread?
I'm excited to get v2 for sure. Besides the core areas of improvement, the sig management and log output abilities are going to be great!
-
A lot of changes are coming, and that will take a while to properly test and document them. What I'm planning to do is a separate thread where we all discuss the useless rules, and come up with bare minimum disablesid files that (hopefully) everybody that installs suricata/snort will use. Imagine not having to go through my list and disable all those rules ;)
I also plan to post instructions on tweaking suricata preprocessor settings, and maybe get The Company to release our permanently banned list. We just recently peaked at nearly 15K suricata banned hosts, that gives us a whole lot of intelligence on certain IP ranges (interesting fact: Microsoft (yes THAT Microsoft) has a subnet dedicated to remotely scanning hosts). This list already contains a whole lot of hosts, and I'm currently working on figuring out a way to get suricata to ignore the packets from that list, so that we don't waste processing on those (the hosts are already blocked by pfsense, but the copy of the packets still has to pass through suricata and get processed). There is a way to set the packet "forwarder" to ignore certain packets, but I didn't have the time to mess with it. Keeping track of a 4 million IP list takes a lot of head scratching :o (we have a /11 in that list).
There is also an extremely thin chance of The Company actually releasing our custom rules. The only thing stopping us from doing so isn't that they are proprietary, it's the fact that the vast majority of so called "security experts" will be out of job if we do release them. We had to clear up our blocked suricata hosts recently (IPv6 bug) and within an hour they had already added 200 blocked hosts.
So many things to do, so few years to do them in. I envy elves for living a few centuries.
-
A copy+paste from the list:
emerging-ftp > all except:
2101377 GPL FTP wu-ftp bad file completion attempt <<< breaks filezilla
2101378 GPL FTP wu-ftp bad file completion attempt with brace <<< breaks filezilla
A copy paste from ET's RSS:[–-] Removed rules: [–-]
…snipped...
2101377 – GPL FTP wu-ftp bad file completion attempt (ftp.rules)
2101378 – GPL FTP wu-ftp bad file completion attempt with brace (ftp.rules)Someone actually listened to me? It brings tears to my eyes :'(. Now go do the same for the rest of the rules ;D
EDIT: Updated the list and removed those rules to keep it clean
-
While I don't have anything to do with MS, I have done some work on infrastructure for such probe systems for other companies. They are all "Whitehat" but I don't know that I agree with all of it. MS has a significant whitehat probe deployment and they often make the news with botnet take downs due to it.
Realistically, if there was a way to get a consumer friendly version of what's explained in this thread in a box folks could just install at home, the probe networks would have nothing to do. I have wondered if a decent ISP couldn't make a fair profit by deploying managed consumer firewalls based on stuff like this. They all want to give away anti-virus but that's a crap bandaide that has little real impact.
Then I talk to those that have MACs or something and think they are all secure because those companies told them they were since they don't run Windows.
Back on topic. I hope to spend some more quality time with the 2 release and certainly will be following this thread and maybe offering more than peanut gallery commentary.
-
While I don't have anything to do with MS, I have done some work on infrastructure for such probe systems for other companies. They are all "Whitehat" but I don't know that I agree with all of it. MS has a significant whitehat probe deployment and they often make the news with botnet take downs due to it.
Realistically, if there was a way to get a consumer friendly version of what's explained in this thread in a box folks could just install at home, the probe networks would have nothing to do. I have wondered if a decent ISP couldn't make a fair profit by deploying managed consumer firewalls based on stuff like this. They all want to give away anti-virus but that's a crap bandaide that has little real impact.
Then I talk to those that have MACs or something and think they are all secure because those companies told them they were since they don't run Windows.
Back on topic. I hope to spend some more quality time with the 2 release and certainly will be following this thread and maybe offering more than peanut gallery commentary.
Whitehat has its limits, as far as I'm concerned. For example you don't go around scanning every single webserver out there if its vulnerable to a certain exploit. There is nothing whitehat about that. Would you want a stalker documenting your daily life in public for the purpose of "observing how people live their daily lives"? With detailed public notes about when you come home and leave for work? No, what you would want is that your neighbor called you up and said that car with number plates X has parked in front of your house, people got out and had a look peeking through windows taking notes, then took a couple of pictures before getting in the car and going away.
The traffic we've seen from Microsoft is remotely scanning for RDP, among other more "interesting" stuff (eg. privileged>privileged traffic, technically bad traffic). Other than to exploit a vulnerability in RDP, there is absolutely no reason to remotely scan for that. What, is someone trying to tell me Microsoft wants to know how many are running RDP? Or will they contact me if they find I am running RDP on the Internet and tell me I'm a bad boy and slap me on the wrist? Come no guys, defending the moon landing is one thing, defending observed traffic coming from a (barring NSA ties) respectable corporation is another.
I'm sure those hosts have nothing to do with Microsoft and due to certain cosmic events have ended up in one of Microsoft's subnets. I also understand that nobody on the Internet has observed this traffic originating from them, and no person (dead or alive) has alerted them to it. In the end, it's likely due to a number of misconfigured hosts. There is also the high likelyhood that it's spoofed traffic and the attacker has chosen that particular subnet, without an endorsment, support and/or otherwise help from Microsoft Corporation and/or any of its partners.
cough
Whitehat, spoofed or otherwise, if I don't have a use for that particular subnet (no services I need, no services they need) it's getting blocked. And the best thing is I didn't do it. The machine told me to :D
-
I wasn't defending the activity, just mentioning that I'm aware that certain probe networks and infrastructures exists. The stuff you've seen from MS subnets is nearly certain to not be from their probe systems. All of these that I've had experience with are buried in a ton of shell companies and fake registrations to hide the originating sources.
I'd guess what you've seen is either due to hosted/cloud systems, spoofed IPs, or even compromised systems within their networks.
-
In that case they are violating IANA and/or regional registry IP assignment rules. The subnet was DA (Directly Allocated) to Microsoft. That means that ONLY Microsoft can use that subnet, NOT assign it to their customers. For further reassignments, the IPs need to be AP (Assigned Portable). Can I have that IP now that they have a reason to take it away from Microsoft? :P Pretty please with cherry on top?
-
Good luck with that. I've seen large chunks of IPv4 rotting away in allocations for a long time and no one has ever been abel to pry them lose.
-
As far as I can tell, there have been recent cases where regionals did exactly that. They reclaimed wasted IPv4 space, since it's far easier to waste a couple of years legally pursuing a decision in a court to reclaim them, than to go ahead and enable IPv6. Not saying that I'll reclaim IPs from Microsoft, I'm saying that it's not impossible to do it.
-
I'm ready for IPv4 to die really. I took my first IPv6 class in the late 90s and I've been pushing for adoption every since. It's been my experience that FUD has prevented more IPv6 than any technical reason.
-
I'm ready for IPv4 to die really. I took my first IPv6 class in the late 90s and I've been pushing for adoption every since. It's been my experience that FUD has prevented more IPv6 than any technical reason.
What, no +1000 button on this forum? ;)
Exactly. Personally I'm in a position where I'm dealing with the provider side of things. If I don't enable it, ISPs have no reason to enable it. I enable IPv6 for all my clients (where applicable) so at least I'm doing my part for it. It's exactly like you said, there is no technical reason not to enable it, it's just 60 year old sysadmins have a fear for large numbers. It's exactly the same thing as IPv4, but with more characters in an address, nothing more.
Queue the "but what about ISP routers not supporting IPv6, switches, ETHERNET CABLES NOT SUPPORTING IPv6!" crowd. Every single device out there in production use that is lvl2 or lower, can handle IPv6. If anyone disagrees, please file your resignation first thing tomorrow morning. There are a lot of new people out there just dieing to get your job.
-
I do provider infrastructure and lots of them are still on the "Wait and see" fence for IPv6. I've shown them how easy it is to run dual stack and they still just don't get it. I'm a gray beard myself and numbers are my friends. :)
-
I agree with you. Things aren't going to change though, because instead of the regionals doing their part and giving out all the remaining IPs and be done with it, they are hoarding them whispering "My preciooooouuusssss". If there is no IP shortage, you aren't forced to move to IPv6. If all the addresses are taken, and you want to bring up a new network, you are forced to go to IPv6.
All OSes these days are already shipping ready for IPv6. As long as the router understands IPv6, there is NOTHING stopping you from actually using IPv6. Switches? lvl2=>IPv6. WIFI APs? lvl2=>IPv6. Bridged modems? lvl2=>IPv6. Routed modems (like DSL modems)? majority is already able to do it.
Just guessing, but I'd say that 80% of the equipment out there is IPv6 capable, it's just the "sysadmins" (just quoting, if I start calling them names, I'll fill the entire post) can't be bothered with it.
The cycle is this:
Website > ISP > client > ISP > Website
As long as 1 of the 3 has access to new IPv4s, the other 2 will not be bothered to make the transition. What needs to be done is google, facebook and twitter stop using IPv4s and start using IPv6 exclusively. That would trigger a few (million) angry calls from clients, which would force ISPs to be bothered with it. But since we are living in a greed-driven society, that will never happen, and we are back to zero.
-
I agree with you both of you… I work for a major MSO in the states who over the last year has deployed IPv6 to almost every market.. Expect, the customer facing support folks don't officially support it. The norm, the engineers deploy something but forget to let the support know about it. I can't speak for all OSs but Windows 7 prefers IPv6 over IPv4. With that being said, pretty much most of the major sites I go to are routing IPv6: facebook, yahoo, google. I guess in one way, this MSO is trying to get IPv6 out there; at least ready before it is required by all.
-
@Cino: Yeap, seen that too. A certain ISP in Cyprus (don't want to point any fingers :o) has enabled IPv6 internally but is just refusing to enable it on their customer side. I can even tell you their answer if you ask for it: "IPv6?!?! I've spent 30 years in the telecom industry and I've never heard of it. Oh, we are actually using it? Well due to incompatibility with our customer modems, we can't currently offer it to our customers." When escalating to the department manager here is his response: "No, he didn't mean we can't use it, er… I'm sure it was a misunderstanding. It's just that having to change the settings on the modem takes a lot of time. Imagine having to do that for all our customers."
Translating both of their responses to normal talk: "We don't actually talk to other departments because we can't be bothered extending our arm to pick up the phone unless the customer is paying us several hundreds of thousands of €/month".
And yes, it's an actual story, not about IPv6, about them adding an IP to their ACL after 15 months of constant DoS attacks. Complements to the attacker's upstream for gulp going as far as ACTUALLY CHANGING the attacker's IP. Because everyone in the IT industry (from the person wiping the floors, to the CEOs) knows that changing an IP simply fixes the problem. I feel so special for them to finally do this for me! ::)
What actually gets on my nerves is that there are persons with far greater knowledge and will to work than the 60 year olds infesting the IT industry. Persons that are currently starving without a job because the idiots are sworn to occupy the positions until all that's left of them is their skeletons strapped to their chairs. If you do point out this fact, they get mad at you for some reason...
-
LOL, I love the way you write man!!
At the company I work for, we dont have that problem with people stuck to the old ways of doing things in IT…. Usually they end up with a package if they can't adapt to the ever changing corporate borg. Or they find themselves with a handset in Tech Support with Customer Service.
I was having an issue on how the modem was handing out the IPv6 prefix, luckily for me I have contacts that work on that side of the house... Couple hours later my /56 was working great at home... Before doing this tho, I asked the Tech Support Teir 3 folks that handle customer calls first.. Yeah its not supported but there is going to be a pilot test rolling out soon, do you want to be part of it?... I told them, Yeah man, but IPv6 addresses are already being handed out to the modems right now are we speak... He didn't believe until I showed a screenshot of my computer IP settings.... We have some awesome tools that were develop in-house to troubleshoot modem issues but they haven't been updated yet to include IPv6. Wouldn't surprise me if that programmer left the company
-
Another deleted rule 2012688 !!! That's 3 rules out of my list in a week. Someone is being naughty and reading my list ;). Keep it up guys, with this pace we'll go through the entire list by next year's end.
-
Ars Technica has a good article about IPv6 adoption up. We were running IPv6 is labs in the early 2ks and it continues to run heavily in the labs. I can enable services rapidly and easily for IPv6 on ADCs and run dual stack with keeping the backend IPv4 but still, interest remains low.
Good to see some of the rules getting addressed. I need to review the ones I've disabled to determine what's wrong with them. So much stuff to do, so little stuff I get paid to do. :)