The Threat Landscape is changing rapidly but at the same time the weaknesses of an IT infrastructure that are exploited by hackers to get in, as well as the attack life cycles, so kind of the methodology used by the hacker, are actually mostly the same. So in this video we will have a quick look at these weaknesses and then I will show you step by step a real-life case on how easy it is to infiltrate an enterprise network. If this is your first time here I'm Lars from Consigas, we call ourselves the Palo Alto Networks experts because the next generation firewall is our passion. It's what we do all day, every day, migrating firewalls, providing managed services and most important implementing security best practices. When I started to work with this box in 2010 nearly anyone knew about Palo Alto Networks, but as an engineer I felt that this solution will change the world of cyber security. And yes, today we know it did big time, because it's one of the few security solutions that can truly secure your network. However there's a caveat! You need to set it up the right way in order to be effective, because while it's awesome it's not a magic box! So over the years we became professional services partners for Palo Alto Networks as well as one of the few Elite authorized training centers (eATC). After working in the field for so many years, and being a trainer, I would like to share my experience with you! Over the next couple of weeks and months we'll release new videos and core concepts explaining the fundamental workings of the next generation firewall, starting with the trade landscape and deployment methods, NAT, App-ID, SSL decryption, VPNs and many more! Follow us on LinkedIn, YouTube or Twitter to stay up to date! Now let's have a look how device gets compromised. First of all the thing what we need to distinguish is servers and end-user devices. If we look at our data center, it is always special, because here we run a service like a web page for instance, and now this means that the user, (well it doesn't really matter if the users inside of network, or on the Internet) can send data to your application which has to be processed by it. This is important because it means that if a hacker finds out about the bug in your software, he knows the vulnerability which can be exploited, and he can send data to your application (eg. the application processes) and now with processing the data there's then a malfunction, the exploit and now the hacker effectively gets your piece of software, in your data center, to do something which was not originally intended or programmed to do. That's the exploit and the risk for an exploit in the data center, we will always have, because as long as you can have software we're gonna software bugs, and some of these bugs are exploitable by hackers. That's the specific risk of a data center hosting a service. The end user device, or a device operated by an end user is different, because in most cases it doesn't really run a service, so here what a hacker has to do, is actually trick the user to initiate the communication to the hacker. Now this sounds complicated, but obviously we know with social engineering this is always possible, and this is something where I often see IT people making their life a little bit too easy by just blaming the user. "Oh stupid user!" or "How could he have clicked on the link?", "Why did you open this file?" It's obvious right now it's not that easy right because we have to realize that social engineering attacks these days really use techniques of psychology. Take this example for instance: So put yourself into the shoes of an accountant, ok? As an accountant it's a day-by-day work that you receive such a payment advice, so you kind of deal with this. And now the hacker, what he does, first of all, he creates a situation of uncertainty. You receive the email, use a bit of a strange invoice format that you're not aware of, the company you don't know, but now you're an accountant and you have financial responsibility to deal with this, you cannot just ignore it! And now comes something into play from psychology that they call "the need for closure". You're a busy accountant, you know you need to you know you cannot just ignore you you want to close the matter what's what do you do well I can call IT, but they're really slow right? And again, I'm busy, I want to just get get it done so let's just open the file, what can happen? So, we open the file and then there's a message: "Sensitive content hidden for security reasons, click to enable" We click and boom obviously macro kicks and infects the PC with malware If you take the example of RSA, you know who RSA is? The big security company with these security dual-factor authentication tokens. They are one of the biggest security company in the world and their intellectual property got stolen because one contractor opened up an email which was correctly put into the anti-spam folder. Now it's very easy to blame this guy right? But if from a big company data gets stolen because one guy opened up an email something else must be wrong. This is what we have to realize right? An attack these days it's not just one thing! It's a step-by-step process. The hacker has to go through multiple steps successfully in order to kind of to put actions on objectives at the end: to compromise or do whatever he wants to do. Lockheed Martin coined the phrase "cyber kill chain", we talked about "cyber attack-lifecycle" but the name doesn't really matter. The important thing here is to realize it's a chain of events: means the user is only one single element of it, and there are loads of other opportunities which we have as IT security to basically stop the attack. Now I'm gonna go through an example and I use a specific symbol where actually the attack was done through an end user device, simply because the end user device in most cases is also the entrance actually then to your data center. In our specific example, there was a user going to news web page. This was an actual real example from from a customer that we had some time ago, and here we can say this was legitimate traffic, because news is usually allowed by most companies but now as part of the web page there was an advertisement, and as part of this advertisement, the user downloaded a flash file. So, flash isn't something unusual, but this was a malicious flash file which now exploited a vulnerability in the PC, which then in the background, without users knowledge, instructed the PC to go out to the internet, and download another executable, a malware's malicious executable file. These two steps are really important. Let's go back and look at them again. First of all, the hacker now uses this flash file. The flash file, very important, is a data file, like a PDF like a Word document, and it means that it was a data file, it cannot run on its own. It always needs an existing piece of software on the user's machine which can be opened. Hackers like to use data files, because guess what? We can't really block them. You cannot block PDF, flash, I mean, there are some security practitioners out there who tell you: block flash, it's really insecure! These are the same people who told you five years ago: you have to block Java. But guess what? As long as we're gonna have software which has a lot of functionality, the software as such has a high threat surface, and we'll always have bugs which are exploitable. This is something which it's not gonna go away.. and again for hackers these data files are very attractive, because once they find a vulnerability in this in the software, it's pretty easy for them to get files into the company, like this. Now the PC gets exploited and you might ask: Why does it now need to go out to the internet to download another executable? It already was successfully exploiting some vulnerability. That's right! But, an exploit always has limits! Remember it's called APT (advanced persistent threat), and hackers always try to gain persistence on a PC. The problem with an exploit is that in most cases, it's very noisy! When you exploit a vulnerability of a piece of software, usually the software goes crashing. So it creates a lot of noise and logs and everything, not really good for persistence! At the same time you cannot do everything, There are some exploits with which we can even get shell access to a device, and that's pretty cool right? But it's still limited because you cannot do advanced stuff. like kill Like, keylogging for instance. For the hacker to do everything he wants to do, in most cases, the flash (the exploit) is only kind of a middle step to then instruct the device to go out to the internet, download another executable file, and this malicious executable this is now the real malware taking full control of the PC. This is now also the first step where in theory antivirus should block the attack. But antivirus, these days, isn't really working anymore, simply because antivirus only blocks known threats or known malware. Known is defined based on a signature, and changing a signature of a file is very simple. Hackers use crypto for instance to re-encrypt files. Can even go to a stage where every time you download a file it's getting re-encrypted and was this every time you download, it has a new signature. So then this methodology of antivirus to block what we already know is bad, simply does not work! The malware now goes onto the PC so and now it is taking control. First thing usually what malware has is something what we call a rootkit, where the malware embeds itself very deeply into the operating system, and with this, if you later look as an admin at the PC, you're not gonna see any logs, no services, no nothing. So it's really completely stealthy. With this also if your antivirus maybe gets updated, so let's say you have a new attack, and then you antivirus company tells you: Oh yeah, we blocked this attack! We blocked this malware! But they did not block it when it came out, so let's say maybe they blocked it a day after. But if you already got infected then the antivirus software will still not find it because now the malware is already embedded into the system. So it's kind of useless! That's why when we see cases where PCs got infected with malware, we always tell customers to re-image the PC, and even with re-imaging sometimes you have to be careful. Anyway, so now we're at a stage where a device is infected with malware, but that's not the end of the world, it's kind of half way through the attack, because you know this infection can happen in numerous other ways, maybe through email, through USB sticks or whatever, but we have now a malware infected machine inside of the net, which again, is not the end of the world. Now what the malware tries to do is establish a command control channel to the hackers C&C server, meaning that the hacker wants to get communication channel to the malware infected PCto get control of it, to instruct it to do whatever he wants it to do. The hacker has a couple of challenges: first of all there are some security products in place like maybe firewall, and the proxy, but then the malware infected PC needs to know the IP address of its command and control server, and obviously this IP address is changing all the time because servers are taken down by law enforcement or for whatever reason, rand hackers are pretty clever here, they build big peer-to-peer networks of command and control infrastructure which is really difficult to take down. So even law-enforcement has real challenges with this sometimes. The challenges for hacker exist still that the malware infected PC needs to know at least the first IP address of the first live command and control server. For this hackers usually use DNS. With this you know they for instance include an algorithm into the malware and based on this algorithm the hacker knows that tomorrow the malware infected PC will try to resolve a DNS entry like beefbread.com just as an example. So what happens? The malware infected PC will send a DNS query to your DNS server, and your DNS server sends it out to the internet. Guess what? DNS server doesn't have any security, the firewall sees a DNS request and will let it go through, and now the response is coming back with the very valuable detail is on the malware infected PC, the IP address. Let's say this is a secure Network, so all communication has to go to the company's proxy. The request is now sent to the proxy server but instead of using the domain, the malware now uses the IP address, kind of like an IP domain, to send a request like this to the proxy so first of all it's HTTPS, so it's encrypted and even if it's decrypted and the the proxy sees the URL, the domain is an IP. A lot of legitimate applications use IP domains so that's not something special. Maybe the proxy has antivirus but that's not a virus. Even a very sophisticated IPS system would have trouble identifying this because a query like this "search question mark and a long hash behind it", a lot of legitimate application use this as well. The message goes to C&C server and now we have a perfectly nice communication channel established through all your common security elements that a company. So firewall, proxy, antivirus, all the stuff is there but unfortunately pretty useless against this attack. By the way if you're interested in security best practices for Palo Alto Networks, then check out the blog on our webpage. Here is the best practice section and you can download this worksheet with over 120 best practices for the next-generation firewall and very soon we will also launch the security best practice training with a lot of videos explaining all of these security best practices in detail. So if you're interested then sign up to our mailing list and we will let you know as soon as this free training is available.