Skip to main content

Sniffing and spoofing



Sniffing and spoofing are security threats that target the lower layers of the networking infrastructure supporting applications that use the Internet. Users do not interact directly with these lower layers and are typically completely unaware that they exist. Without a deliberate consideration of these threats, it is impossible to build effective security into the higher levels. Sniffing is a passive security attack in which a machine separate from the intended destination reads data on a network. The term “sniffing” comes from the notion of “sniffing the ether” in anEthernet network and is a bad pun on the two meanings of the word “ether.” Passive security attack are those that do not alter the normal flow of data on a communication link or inject data into the link.
Spoofing is an active security attack in which one machine on the network masquerades as a different machine. As an active attack, it disrupts the normal flow of data and may involve injecting data into the communications link between other machines. This masquerade aims to fool other machines on the network into accepting the impostor as an original, either to lure the other machines into sending it data or to allow it to alter data. The meaning of “spoof” here is not “a lighthearted parody,” but rather “a deception intended to trick one into accepting as genuine something that is actually false.” Such deception can have grave consequences because notions of trust are central to many networking systems. Sniffing may seem innocuous (depending on just how sensitive and confidential you consider the information on your network), some network security attacks use sniffing as a prelude to spoofing. Sniffing gathers sufficient information to make the deception believable.
IP Spoofing and Sniffing
Sniffing is the use of a network interface to receive data not intended for the machine in which the interface resides. A variety of types of machines need to have this capability. A token-ring bridge, for example, typically has two network interfaces that normally receive all packets traveling on the media on one interface and retransmit some, but not all, of these packets on the other interface. Another example of a device that incorporates sniffing is one typically marketed as a “network analyzer.” A network analyzer helps network administrators diagnose a variety of obscure problems that may not be visible on any one particular host. These problems can involve unusual interactions between more than just one or two machines and sometimes involve a variety of protocols interacting in strange ways.
Devices that incorporate sniffing are useful and necessary. However, their very existence implies that a malicious person could use such a device or modify an existing machine to snoop on network traffic. Sniffing programs could be used to gather passwords, read inter-machine e-mail, and examine client-server database records in transit. Besides these high-level data, lowlevel information might be used to mount an active attack on data in another computer system.
Sniffing: How It Is Done
In a shared media network, such as Ethernet, all network interfaces on a network segment have access to all of the data that travels on the media. Each network interface has a hardware-layer address that should differ from all hardware-layer addresses of all other network interfaces on the network. Each network also has at least one broadcast address that corresponds not to an individual network interface, but to the set of all network interfaces. Normally, a network interface will only respond to a data frame carrying either its own hardware-layer address in the frame’s destination field or the “broadcast address” in the destination field. It responds to these frames by generating a hardware interrupt to the CPU. This interrupt gets the attention of the operating system, and passes the data in the frame to the operating system for further processing.
Note: The term “broadcast address” is somewhat misleading. When the sender wants to get the attention of the operating systems of all hosts on the network, he or she uses the “broadcast address.” Most network interfaces are capable of being put into a “promiscuous mode.” In promiscuous mode, network interfaces generate a hardware interrupt to the CPU for every frame they encounter, not just the ones with their own address or the “broadcast address.” The term “shared media” indicates to the reader that such networks broadcast all frames—the frames travel on all the physical media that make up the network.
At times, you may hear network administrators talk about their networking trouble spots— when they observe failures in a localized area. They will say a particular area of the Ethernet is busier than other areas of the Ethernet where there are no problems. All of the packets travel through all parts of the Ethernet segment. Interconnection devices that do not pass all the frames from one side of the device to the other form the boundaries of a segment. Bridges, switches, and routers divide segments from each other, but low-level devices that operate on one bit at a time, such as repeaters and hubs, do not divide segments from each other. If only low-level devices separate two parts of the network, both are part of a single segment. All frames traveling in one part of the segment also travel in the other part.
The broadcast nature of shared media networks affects network performance and reliability so greatly that networking professionals use a network analyzer, or sniffer, to troubleshoot problems. A sniffer puts a network interface in promiscuous mode so that the sniffer can monitor each data packet on the network segment. In the hands of an experienced system administrator, a sniffer is an invaluable aid in determining why a network is behaving (or misbehaving) the way it is. With an analyzer, you can determine how much of the traffic is due to which network protocols, which hosts are the source of most of the traffic, and which hosts are the destination of most of the traffic. You can also examine data traveling between a particular pair of hosts and categorize it by protocol and store it for later analysis offline. With a sufficiently powerful CPU, you can also do the analysis in real time.
Most commercial network sniffers are rather expensive, costing thousands of dollars. When you examine these closely, you notice that they are nothing more than a portable computer with an Ethernet card and some special software. The only item that differentiates a sniffer from an ordinary computer is software. It is also easy to download shareware and freeware sniffing software from the Internet or various bulletin board systems.
The ease of access to sniffing software is great for network administrators because this type of software helps them become better network troubleshooters. However, the availability of this software also means that malicious computer users with access to a network can capture all the data flowing through the network. The sniffer can capture all the data for a short period of time or selected portions of the data for a fairly long period of time. Eventually, the malicious user will run out of space to store the data—the network I use often has 1000 packets per second flowing on it. Just capturing the first 64 bytes of data from each packet fills up my system’s local disk space within the hour.
Note: Esniff.c is a simple 300-line C language program that works on SunOS 4.x. When run by the root user on a Sun workstation, Esniff captures the first 300 bytes of each TCP/IP connection on the local network. It is quite effective at capturing all usernames and passwords entered by users for telnet, rlogin, and FTP.
TCPDump 3.0.2 is a common, more sophisticated, and more portable Unix sniffing program written by Van Jacobson, a famous developer of high-quality TCP/IP software. It uses the libpcap library for portably interfacing with promiscuous mode network interfaces. The most recent version is available via anonymous FTP toftp.ee.lbl.gov.
NetMan contains a more sophisticated, portable Unix sniffer in several programs in its network management suite. The latest version of NetMan is available via anonymous FTP to ftp.cs.curtin.edu.au in the directory /pub/netman. EthDump is a sniffer that runs under DOS and can be obtained via anonymous FTP fromftp.eu.germany.net in the directory /pub/networking/inet/ethernet/.
Warning: On some Unix systems, TCPDump comes bundled with the vendor OS. When run by an ordinary, unprivileged user, it does not put the network interface into promiscuous mode. With this command available, a user can only see data being sent to the Unix host, but is not limited to seeing data sent to processes owned by the user. Systems administrators concerned about sniffing should remove user execution privileges from this program.
Sniffing: How It Threatens Security
Sniffing data from the network leads to loss of privacy of several kinds of information that should be private for a computer network to be secure. These kinds of information include the following:
  • Passwords
  • Financial account numbers
  • Private data
  • Low-level protocol information
The following subsections are intended to provide examples of these kinds.
Sniffing Passwords
Perhaps the most common loss of computer privacy is the loss of passwords. Typical users type a password at least once a day. Data is often thought of as secure because access to it requires a password. Users usually are very careful about guarding their password by not sharing it with anyone and not writing it down anywhere.
Passwords are used not only to authenticate users for access to the files they keep in their private accounts but other passwords are often employed within multilevel secure database systems. When the user types any of these passwords, the system does not echo them to the computer screen to ensure that no one will see them. After jealously guarding these passwords and having the computer system reinforce the notion that they are private, a setup that sends each character in a password across the network is extremely easy for any Ethernet sniffer to see. End users do not realize just how easily these passwords can be found by someone using a simple and common piece of software.
Sniffing Financial Account Numbers
Most users are uneasy about sending financial account numbers, such as credit card numbers and checking account numbers, over the Internet. This apprehension may be partly because of the carelessness most retailers display when tearing up or returning carbons of credit card receipts. The privacy of each user’s credit card numbers is important. Although the Internet is by no means bulletproof, the most likely location for the loss of privacy to occur is at the endpoints of the transmission. Presumably, businesses making electronic transactions are as fastidious about security as those that make paper transactions, so the highest risk probably comes from the same local network in which the users are typing passwords.
However, much larger potential losses exist for businesses that conduct electronic funds transfer or electronic document interchange over a computer network. These transactions involve the transmission of account numbers that a sniffer could pick up; the thief could then transfer funds into his or her own account or order goods paid for by a corporate account. Most credit card fraud of this kind involves only a few thousand dollars per incident.
Sniffing Private Data
Loss of privacy is also common in e-mail transactions. Many e-mail messages have been publicized without the permission of the sender or receiver. Remember the Iran-Contra affair in which President Reagan’s secretary of defense, Caspar Weinberger, was convicted. A crucial piece of evidence was backup tapes of PROFS e-mail on a National Security Agency computer. The e-mail was not intercepted in transit, but in a typical networked system, it could have been. It is not at all uncommon for e-mail to contain confidential business information or personal information. Even routine memos can be embarrassing when they fall into the wrong hands.
Sniffing Low-Level Protocol Information
Information network protocols send between computers includes hardware addresses of local network interfaces, the IP addresses of remote network interfaces, IP routing information, and sequence numbers assigned to bytes on a TCP connection. Knowledge of any of this information can be misused by someone interested in attacking the security of machines on the network. See the second part of this chapter for more information on how these data can pose risks for the security of a network. A sniffer can obtain any of these data. After an attacker has this kind of information, he or she is in a position to turn a passive attack into an active attack with even greater potential for damage.

Comments

Popular posts from this blog

ഫെയ്‌സ്ബുക്ക് മെസഞ്ചറില്‍ ഇനി ശബ്ദസന്ദേശങ്ങള്‍ ടെക്സ്റ്റാക്കി അയക്കാം

ഫെയ്‌സ്ബുക്ക് മെസഞ്ചറില്‍ ഇനി ശബ്ദം ടെക്സ്റ്റ് മെസേജായി (Voice to Text) അയയ്ക്കാം. ഇതിനൊപ്പം വോയ്‌സ് മെസേജും ഉപയോക്താവിന് കേള്‍ക്കാന്‍ സൗകര്യമുണ്ടാകും. തിരക്കിട്ട സമയങ്ങളില്‍ വോയ്‌സ് മേസേജ് കേള്‍ക്കാന്‍ സമയമില്ലാത്തവര്‍ക്ക് ഉപകാരപ്രദമാകുന്നതാണ് പുതിയ ഫീച്ചര്‍. ഫെയ്‌സ്ബുക്ക് മെസഞ്ചര്‍ വഴി വോയ്‌സ് മെസേജ് അയയ്ക്കുന്നതിന് മുന്നോടിയായി, ശബ്ദസന്ദേശം റിക്കോര്‍ഡ് ചെയ്യാന്‍ മൈക്രോഫോണ്‍ ഐക്കണില്‍ ടാപ്പ് ചെയ്യണം. നിങ്ങള്‍ മെസേജ് അയച്ചുകഴിഞ്ഞാല്‍, ഫെയ്‌സ്ബുക്ക് ആ ശബ്ദസന്ദേശം ടെക്സ്റ്റാക്കി മാറ്റും. വോയ്‌സ് മെസേജിനരികിലുള്ള ഐക്കണില്‍ ടാപ്പ് ചെയ്താല്‍, ശബ്ദസന്ദേശത്തെ ടെക്സ്റ്റില്‍ കാട്ടിത്തരും. സ്പീച്ച് റിക്കഗ്നിഷന്‍ കമ്പനിയായ Wit.ai യെ ഫെയ്‌സ്ബുക്ക് അടുത്തയിടെ സ്വന്തമാക്കിയിരുന്നു. ഇവരുടെ സാങ്കേതികവിദ്യയുടെ അടിസ്ഥാനമാക്കിയാണ് ഫെയ്‌സ്ബുക്ക് മെസഞ്ചറിലെ പുതിയ ഫീച്ചര്‍ വന്നിരിക്കുന്നതെന്നാണ് നിരീക്ഷകര്‍ പറയുന്നത്. പുതിയ ഫീച്ചര്‍ ഇപ്പോള്‍ പരീക്ഷണാടിസ്ഥാനത്തിലാണ്. അധികം വൈകാതെ ഏവര്‍ക്കും ലഭിക്കും. ശബ്ദസന്ദേശം നല്‍കുന്നയാളുടെ ഉച്ഛാരണം, സംസാര രീതി, സംസാര വ്യക്തത തുട

വെര്‍ടു – ആറരലക്ഷം രൂപക്ക് ഒരു ആന്‍ഡ്രോയ്ഡ് സ്മാര്‍ട്ട്‌ ഫോണ്‍ – ഇപ്പോള്‍ ഇന്ത്യയിലും

എത്ര ലക്ഷവും മുടക്കി ആഡംബര സാദനങ്ങള്‍ വാങ്ങാന്‍ ആളുകള്‍ ഉണ്ടാകും. ഇയൊരു ചിന്തയാണ് വെര്‍ടു എന്ന പേരില്‍ വിലകൂടിയ മൊബൈല്‍ ഫോണ്‍ ശ്രേണി അവതരിപ്പിക്കാന്‍ നോക്കിയയ്ക്ക് പ്രചോദനമായത്. അങ്ങനെ 1998 ല്‍ ആദ്യ വെര്‍ടു ഫോണ്‍ പിറവിയെടുത്തു. ഇന്ദ്രനീലക്കല്ലുകൊണ്ടു കൊത്തിയുണ്ടാക്കിയ കീപാഡും വിലയേറിയ ടൈറ്റാനിയം ലോഹം കൊണ്ട് നിര്‍മിച്ച ബോഡിയുമെല്ലാമുളള വെര്‍ടുവിനെ പണക്കാര്‍ക്ക് പെട്ടെന്നിഷ്ടമാകുകയും ചെയ്തു. പിന്നീടങ്ങോട്ട് ലോകമെങ്ങുമുളള പണച്ചാക്കുകളുടെ കൈയിലെ സ്റ്റാറ്റസ് സിംബലായി വെര്‍ടു മൊബൈല്‍ ഫോണ്‍ മാറി. ഇപ്പോഴിതാ ടി.ഐ. എന്ന സ്മാര്‍ട്‌ഫോണ്‍ മോഡലുമായി വെര്‍ടു ഇന്ത്യയിലുമെത്തിയിരിക്കുന്നു. 6,49,990 രൂപയാണ് വെര്‍ടു ടി.ഐയ്ക്ക് ഇന്ത്യയിലെ വില. 2012 ല്‍ സാമ്പത്തികപ്രതിസന്ധി കാരണം വെര്‍ടുവിന്റെ 90 ശതമാനം ഓഹരികളും നോക്കിയ വിറ്റഴിച്ചു, പക്ഷെ കമ്പനി ഇപ്പോഴും നല്ല രീതിയില്‍ നടക്കുന്നുണ്ട്. കോടീശ്വരന്‍മാര്‍ ഏറെയുള്ള ഗള്‍ഫ് രാജ്യങ്ങളും റഷ്യയുമാണ് വെര്‍ടുവിന്റെ പ്രധാനവിപണി. മാസങ്ങള്‍ കൂടുമ്പോള്‍ ഓരോ മോഡലിറക്കി ആഡംബരവിപണിയിലെ തങ്ങളുടെ സാന്നിധ്യം

USB versions

USB 1.1: Released in August 1998, this is the first USB version to be widely adopted (the original version 1.0 never made it into consumer products). It has a top speed of 12Mbps (though in many cases only performs at 1.2Mbps). It's largely obsolete. USB 2.0: Released in April 2000, it has a max speed of 480Mbps in Hi-Speed mode, or 12Mbps in Full-Speed mode. It currently has the max power out put of 2.5V, 1.8A and is backward-compatible with USB 1.1. USB 3.0: Released in November 2008, USB 3.0 has the top speed of 5Gbps in SuperSpeed mode. A USB 3.0 port (and connector) is usually colored blue. USB 3.0 is backward-compatible with USB 2.0 but its port can deliver up to 5V, 1.8A of power. USB 3.1: Released in July 26, 2013, USB 3.1 doubles the speed of USB 3.0 to 10Gbps (now called SuperSpeed+ or SuperSpeed USB 10 Gbps), making it as fast as the original Thunderbolt standard. USB 3.1 is backward-compatible with USB 3.0 and USB 2.0. USB 3.1 has three power profiles (according to