Docsity

Honeypots: Security Tools for Detection and Response, Exams of Operating Systems

Partial preview of the text

Download Honeypots: Security Tools for Detection and Response and more Exams Operating Systems in PDF only on Docsity!

HONEYPOTS REVEALED

Prepared by: Mohamed Noordin Yusuff IT Security Officer Specialist Dip. Info Security, MA. Internet Security Mgmt(Ongoing)

INTRODUCTION

IT Security instantly becomes an issue for anyone who connects their system to the Internet, either via a corporate network, an Internet Service Provider (ISP) from home or wireless device that can be used virtually anywhere when there are wireless access points. Security threats range from hacking intrusions, denial of service attacks to computer worms, viruses and more. We must understand that intrusion to a network or system can never be eliminated but however, can be reduced. Computer crimes are always increasing. Countermeasures are developed to detect or prevent attacks - most of these measures are based on known facts, known attack patterns – as in the military, it is important to know who your enemy is, what kind of strategy he uses, what tools he utilizes and what he is aiming for – by knowing attack strategies, countermeasures can be improved and vulnerabilities can be fixed. 1 Security activities range from keeping intruders out of the network or system, preventing the interception of information sent via the Internet to limiting the spread of and damage caused by computer viruses. Most security professionals understand that the three concepts in IT Security are prevention, detection and respond whereby there is no end-to-end security equipment or solution that can cover two or all the concepts. For example, firewalls and anti-virus would fall under prevention, intrusion detection system and vulnerability scanners under detection and incident response teams would come under respond. Comprehensive security solutions include a mixture of software and hardware components. But however, honeypots fall under two main categories, Detection and Respond. Honeypots have a primary goal, which is to collect as much information as possible on the attack. The honeypot should operate in stealth mode so that the attacker would not know of its presence, as such, the information gathered would give the defenders a considerable advantage to protect and prevent attacks on the production systems.

DEFINITION OF HONEYPOTS AND HOW DOES IT WORK?

(^1) Reto Baumann and Christian Plattner, “White Paper: Honeypots”, 26 February 2002, URL: http://www.inf.ethz.ch/~plattner/pdf/whitepaper.pdf

Honeypots can be broken down into two general categories – production honeypots and research honeypots. 5 A production honeypot is used to assist an organization in protecting its internal IT infrastructure whereas a research honeypot is used to accumulate evidence and information in order to study hackers’ or the blackhat criminal attack patterns and motives. But as mentioned in my earlier paragraphs, honeypots add very little value in prevention – They WILL NOT keeps the blackhat hackers out. The organization still need to depend on their security policies, procedures and best practices such as disabling unused services, patch management, implementing security mechanisms such as firewall, intrusion detection systems, anti-virus and secure authentication mechanisms to keep the blackhat community out of the organization’s IT infrastructure. There is a need to ensure that the production honeypot is properly built, as if it is incorrectly implemented, the hacker can easily get into the honeypot. Production honeypots are valuable to the organization especially commercial, as it helps to reduce or mitigate risk that a specific organization faces. Production honeypots secure the organization by policing its IT environment to identify attacks. These production honeypots are useful in catching hackers with criminal intentions. The implementation and deployment of production honeypots are relatively easier than research honeypots. One of the reasons is that production honeypots have less purpose and require fewer functions. As a result, production honeypots also provide less evidence about hacker’s attack patterns and motives. Using production honeypots, we may know the origin of the hackers such what kind of machine or operating system it uses, which country they are from, the kind of tools they used and the types of exploits the blackhat launches. But, how the hackers interact with each other and how they create their attack weapons might not be revealed from the production honeypot. Production honeypots have less risk. The concept of production honeypots is to let the blackhat community spend time and resource into attacking the honeypots rather than the organization’s production systems. The attacker is tricked, deceived and mislead into attacking the honeypot, thus protecting the organization’s production systems from the attack. But rather than using deception which also contributes little to prevention, organizations should use their time and resources into better securing their IT infrastructure with best security practices and

(^5) As defined by Marty Roesch, creator of Snort

policies. Nowadays, attacks are becoming more automated and creative. Deception fails against two of the most common attack today; automated toolkits and worms – These automated tools will probe, attack, and exploit anything they can find vulnerable. 6 These tools will definitely be used to attack honeypots, and if you have a refrigerator with an IP address, it will be attack too! Research honeypots are complex. They are designed to collect as much information as possible about hackers’ and their activities. Research honeypots are not specifically valuable to an organization. Their primary mission is to research the threats organization may face, such as who the attackers are, how they are organized, what kind of tools they use to attack other systems, and where they obtained those tools. 7 While production honeypots are like the police, research honeypots act as their intelligence counterpart and their mission – To collect information about the blackhat community. From the information gathered by research honeypots, it will help the organization to better understand on the hackers’ attack patterns, motives and how they function. With all these knowledge about potential threats in grasp, the organization can better prepare to arm itself with the necessary defence mechanisms and processes. Research honeypots are also an excellent tool to capture automated attacks as mentioned in the above paragraphs, such as auto-rooters or worms. From research honeypots, organizations can better understand the three important concepts in Security; Prevention, Detection and Respond. But for the organization to better secure its security infrastructure, they should use production honeypots as it is easier to implement and manage. An example of research honeypot is honeynet. To better utilize research honeypots, organization need to provide the blackhat community with real operating systems, protocols and applications for them to communicate with. But, with added role, research honeypots become a disadvantage as it is difficult and complex to implement, higher risk and require skilled personnel with time and effort to manage the honeypot. In this paragraph, the difference between a production honeypot and research honeypot has been distinctly distinguished. It all depends on the objective of an organization on what they actually wants from a honeypot, either for production or

(^6) Lance Spitzner, “Honeypots Definition and Value of Honeypots”, 17 May, 2002, URL: 7 http://www.enteract.com/~lspitz/honeypot.html Lance Spitzner, “Honeypots Tracking Hackers”, 2003, Pearson Education, Inc

Figure 1: Services Running on NFR BackOfficer Friendly

BackOfficer Friendly or BOF is a simple to install, easy to configure, and low maintenance free honeypot solution developed by Marcus Ranum and the folks at Network Flight Recorder – It was designed to run on almost any Windows operating system. 9 BOF could emulate several services limited to FTP, Telnet, SMTP, HTTP, POP3 and IMAP2. This low-interaction honeypots can be easily installed on the system and configured to any of the services specified above. With BOF, this low-interaction honeypot is both easy to deploy and maintain. But to prevent the system from being fully exploited by hackers, the administrator needs to ensure patch management on the host system and to conscientiously monitor the alert mechanisms on BOF. Low-interaction honeypots have the lowest level of risk. The honeypot cannot be used as a launch pad to

(^9) Lance Spitzner, “Honeypots Tracking Hackers”, 2003, Pearson Education, Inc

attack other systems as there is no legitimate operating system for the hacker to interact with.

Figure 2: Unauthorized connection attempts detected on NFR BackOfficer Friendly

this case, worm) was not given any operating system to interact with; it is still an emulated application. This medium-interaction honeypot, though more advanced than the low interaction honeypot comes with itself certain higher risks. It is more complex, time consuming and requires huge effort to build such a honeypot. The personnel who would build this honeypot need to have very good knowledge in protocols and application services. Customization and a significant level of development are required to build such this honeypot as you are actually creating a virtual environment to act as a real operating system. Not only that, the knowledge of security or securing this honeypot by covering up all the security loopholes and vulnerabilities are required. But, we must remember that, as security vulnerabilities, exploits especially zero-day exploit are increasing rapidly in the wild, attackers may still have access to the real operating system, though their access is restricted. Though the risks keep on increasing as the level of honeypots increase, the rewards are bountiful of evidence and information for you to analyse. Homemade honeypots can be classified as a medium-interaction honeypots as they are created by organizations and individuals to accommodate a certain needs. Thus, they are normally built either for production or research purpose. The final and most advanced of honeypots are the high-interaction honeypots. As mentioned earlier, it has been clearly enunciated that as the level of interaction of honeypots increases, the risks and complexity increases, but the rewards also increases. These kinds of honeypots are really time consuming to design, manage and maintain. Among the three types of honeypots, this honeypot possess a huge risk. BUT, the information and evidence gathered for analysis are bountiful. The goal of a high- interaction honeypot is to give the attacker access to a real operating system where nothing is emulated or restricted. 12 In another words, the organization or individual who build this honeypot wants the attacker to gain root or super user access to the machine. This honeypot are normally connected to the Internet round the clock. With this kind oh honeypot, we can learn what are the kind of tools hackers’ use, which country does the hacker normally comes from, what kind of exploits they use, what kind of vulnerabilities they normally look for, their knowledge in hacking and surfing their way through operating systems and how or what the hackers interact about. As the hacker needs to

(^12) Lance Spitzner, “Honeypots Tracking Hackers”, 2003, Pearson Education, Inc

compromise the honeypot to gain root access, and thus have the ability to move his way around the operating system or do whatever he wishes on the machine, this system is NOT SECURE. As a result, this system must be constantly monitored. We must remember that this honeypot have no production value, only research and the value is that it has to be scanned, probed, attacked and compromised. As the level of risks increases, we must ensure that these risks are reduced and mitigated. How? There is a need to place a firewall before the high-interaction honeypot. Because, when the hacker has gained control over that machine, he have exclusive rights to the machine including using that machine to compromise other systems or launch Distributed Denial of Service (DDoS)^13 attacks against other systems. In order to prevent that, rules must be configured on the firewall to allow the attacker to come into the honeypot environment (Allow Incoming Traffic) but block the attacker from going out of the honeypot (Deny Outgoing Traffic). As such designing this architecture and configuring firewall rules require a significant amount of work, time and expertise. Honeynets 14 are an example of high-interaction honeypots.

Low Medium High Degree of Involvement Low Mid High Real Operating System No No Yes Risk Low Mid High Information Gathering Connections Requests All Compromised Wished No No Yes Knowledge to Run Low Low High Knowledge to Develop Low High Mid-High Maintenance Time Low Low Very High Figure 3: Overview of Advantages and Disadvantages of each level of involvement^15

(^13) In DDoS, computers are compromised called zombies. These zombies are used to send huge packets of

14 traffic to targets, thus crashing their servers or PCs, or flooding their bandwidth, denying service. Honeynets are variety of standard systems deployed in controlled environments specifically research 15 purpose. Reto Baumann and Christian Plattner, “White Paper: Honeypots”, 26 February 2002, URL: http://www.inf.ethz.ch/~plattner/pdf/whitepaper.pdf

Depending on the organization’s requirements, there are several different types of honeypot solutions to choose from.

¾ Preventing attacks through deception or deterrence – for example, Specter’s ability to emulate vulnerabilities or give warning messages. ¾ Detecting attacks, acting as a burglar alarm. Almost all of the honeypots excel at this. ¾ Responding to attacks, collecting data and evidence of an attacker’s activities. ManTrap is an excellent way for your organization to figure out how an attacker broke in. ¾ Researching attackers’ tools, tactics and motives – for example, capturing payloads of worms, new exploits or covert communication methods. Homemade honeypots, ManTrap, and Honeynets are valuable in these areas. 17

As mentioned in the paragraphs above, determining the interaction level of a honeypot is very important. The higher the involvement and interaction from the honeypot, the more information and evidence can be studied and learned. But we must remember; the higher the interaction and complexity of the honeypot, the greater the risk is. Apart from determining the interaction level, the organization has to figure out whether to purchase a commercial honeypot or develop it in house. For commercial honeypots, it will be much easier to install, configure, deploy, manage and maintain, but commercial honeypots are normally very expensive. Commercial honeypots are normally managed by administrators with less skills and knowledge, and possibly via the administrative graphical user interface (GUI). Commercial honeypots come with many different functions and utilities. Some of them could be viewing of logs and executive or management reports, monitor attacks in “real-time”, pager and hand phone alerts. For honeypots developed in-house or homemade honeypots, the one thing that an organization really saves is cost. It is really a lot cheaper to build a honeypot in-house rather than purchasing a commercial honeypot. One disadvantage on homemade honeypots is that it requires a considerable amount of effort and time to implement it.

(^17) Lance Spitzner, “Honeypots Tracking Hackers”, 2003, Pearson Education, Inc

Another disadvantage is that a honeypot built in-house requires one with good skill and knowledge to manage it. But what really makes a homemade really beneficial is that it is not limited to customization and configuration. The organization can tailor the honeypot to whatever configuration they want and comfortable with. For example, a commercial honeypot could only listen to default ports such as FTP, HTTP, SMTP and TELNET, but an organization or enterprise could configure or customize the honeypot to listen to all the above-mentioned ports, high ports, and even emulate any vulnerabilities that they feel required. Lastly, we need to determine what kind of operating system the honeypot should run on, either Windows or Unix. This actually depends on the capability of the organization, whether they are more comfortable technically with Windows or Unix. This reason prevents any accidental misconfiguration on the honeypot or operating system. The organization must take into consideration that Windows-based honeypots are easier to manage and maintain rather than a Unix-based honeypots. Thus, basically it is really up to the discretion of an organization on what kind of operating system or honeypots they should use how they should implement and who to manage it. Organization also should use their discretion on how many honeypots they wish to deploy. If an organization has a large-scale IT infrastructure with segregated networks, they may want to consider having more than one honeypot. Because, if an organization uses production honeypots for their network, they would need different honeypots to protect their segregated networks. Another discretionary move an organization should consider before deploying honeypots is cost. Having more honeypots would require more budgets and more time to build them. The organization should also think of resources to manage these honeypots because too many honeypots may engulf them with a lot of information and very little time to manage the honeypots. The organization need to be very specific on their goals in implementing the honeypot. But for research purpose, it would be recommended that the organization deploy one or two honeypots as contrary to production honeypots, research honeypots have very little value. Besides, similar information can be gathered from either of the research honeypots. With regards to the placement of honeypots, it must be deployed in an ideal location. If the organization wants to detect hackers entering their private network, they may like to place the honeypot in their intranet environment. But if they are more concern

The honeypot should be installed with VMWARE Workstation. VMWARE allows the honeypot to run multiple operating system such as Windows 2000, Unix and Linux. By doing this, the organization is actually building a honeynet-type honeypot. Honeynets are one of the high-involvement honeypots. By having different systems with different applications, the organization can learn different tools and tactics used by hackers. The organization is able to accurately profile specific blackhat trends and signature. All systems placed within the honeynets are standard production systems. These are real systems and applications. Nothing is emulated nor is nothing done to make the system less secure. The risks and vulnerabilities discovered within a honeynet is the same that exist in many organizations today. The primary aim of a honeynet is to gather information about threats that exist. New tools can be discovered, attack patterns can be determined and attacker motivations are studied. In a honeynet, it is good to place a firewall such as Checkpoint NG before the honeypot for access control; to allow only legitimate traffic into the honeynet so as not to overwhelm the honeypot. Apart from VMWARE, the honeypot could also be installed with tools such as SPECTER, BackOfficer Friendly or Mantrap. Furthermore, by configuring the firewall to prevent outgoing traffic, the attacker will get trapped in the honeynet once they managed to penetrate into the internal network. The honeypots in the honeynet are meant to be probed and attacked. By doing so, it could be used to gather information on the proceedings of attackers who are attacking the internal network of systems and their deployed tools. Once attacked, and if gathering information is the primary objective, no other security mechanism is comparable to a honeypot. The honeypots in the honeynet will definitely collect high volume of data, showing network activity and what the hacker do once they are inside the system.

Figure 5: Typical network diagram of a Honeynet

The above diagram consists of a honeynet being deployed in an enterprise environment. There is a firewall to capture incoming and outgoing traffic which also provides Network Address Translation or NAT. The syslog PC would gather information for incoming traffic and commands executed by the hacker who is entering into the network. The PC which contains the honeypot would have honeypot software such as BackOfficer Friendly, Mantrap or Specter to gather all necessary information with regards to the hackers’ motives. The honeypot would be installed with VMWARE Workstation which would then be able to run multiple operating systems such as Windows 2000, Linux and Unix. This typical network diagram of a honeynet will be very useful if deployed in an enterprise environment.

VALUE OF HONEYPOTS

As mentioned and explained in the above paragraphs, honeypots have many different values especially when defining between production and research honeypots for prevention, detection and response. As mentioned, production honeypots are used to help reduce risk and diverting hackers from attacking the production systems whereas a research honeypot is used to collect as much information and evidence as possible about the blackhat community. The latter may not bring any value on security to the organization but it sure helps an organization to understand the hacking techniques and tools used by hackers, attack patterns, how the blackhat community communicate with

Internet Internal

F/W

Honeypot Syslog PC

Switch

The reason why the organization’s honeypot was never compromised before and malicious activity had never been captured is because of the investments the organization made in ensuring the latest security technologies such as encryption, access controls, authentication had been in place. Honeypots also have their disadvantages. Honeypots only capture and detect attacks targeted at itself only. If an attacker penetrates into the organization and attacks other production systems, the honeypot will not pick up any activity. Especially, if the attacker has identified the honeypot, he or she can avoid that system, penetrate the organization’s network and attack other innocent production systems. In worst case scenario, the attacker can even spoof the other production systems in the network and use them to attack the honeypot. Organization need to ensure that they do not reveal the true identity of the honeypot. Because once known, the attacker can easily avoid the honeypot. For example, if the honeypot is meant to emulate a Windows server, but instead it contains characteristics and behaviours of a Unix server, the attacker would suspect this misconfiguration to be a honeypot. Organization must ensure that the honeypot is correctly implemented as wrongly-implemented honeypots can pose a high security risk. Especially, if the honeypot is attacked or silently compromised, it can be used to harm other systems in the organization, or worst, systems in other organizations. For example, the attacker can make use the systems including the honeypot in Organization A to launch a Distributed Denial of Service attack to systems in Organization B. Organization must never replace any security equipment for a honeypot, but instead honeypots work hand-in-hand with security equipments.

LEGAL ASPECTS OF HONEYPOTS

Different countries may have different laws and regulations against honeypot technology. Even, there might be laws that limit certain honeypot implementations. Depending on the purpose and objectives of the honeypot, they might infringe certain legal rights. For example, is the honeypot meant to detect and prevent hackers, or are you trying to gather information on certain hackers’ terrorists groups and sell this information to a third party? This may be a bogus assumption but where law is concern, it may have certain impact on

bilateral relations between countries. Another example, if a honeypot gets compromised and was used to launch a Distributed Denial of Service attack to another organization, who shall be at fault? The organization or the hacker? Or is there a hacker, and not a worm or an unauthorized script activated by an inside? This is another area to consider which may pose legal complications. Apart from governments’ regulations, there must be some sort of an acceptable use policy clearly stated in an organization’s privacy and security policy on honeypot implementations and usage. Another example will be recording of keystrokes and communications. Does the organization’s user privacy and security policy allow the recording of users’ keystrokes and communications, including that of outsiders entering the organization’s network? This breach may cost an organization tons of money during a civil suit. Before an organization implement and deploy a honeypot in their organization, they should seek professional legal advice from their lawyers on the matter to prevent any unnecessary future legal claims. Three main legal issues of concern with respect to honeypots are privacy, entrapment, and liability. 19 For privacy, there is a need to pinpoint if the use of the honeypot invades users’ privacy including those attackers that hacked the honeypot. And, if so, how much information can or cannot be captured? As stated in above paragraphs, does the organization have the right to capture keystrokes and record users’ communication? Dependant on the interaction level of a honeypot, they record different amount of activities. A low-interaction honeypot mainly captures small amount of information such as source and type of attack whereas a high-interaction honeypot capture attacker’s communications such as chat programs or emails. Ultimately, it becomes a question on how can all these amount of information be captures without infringing any legal statutes? Secondly, there is a need to know how entrapment applies to honeypot technology? Organizations and individuals feel that honeypots should never be deployed due to implications on entrapment. Entrapment only applies if a law enforcement officer or government agency induces a person to commit a criminal act for the purpose of subsequent criminal prosecution. But if the honeypot is operated by a private or commercial organization, this law is void. For liability, there is also a need to know if the organization that deploy the honeypot will be held liable if the honeypot was

(^19) Lance Spitzner, “Honeypots Tracking Hackers”, 2003, Pearson Education, Inc