xp new perspectives on the internet, sixth edition— comprehensive tutorial 9 1 security on the...

73
New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 XP Security on the Internet and the Web Security Threats and Countermeasures Tutorial 9

Upload: kellie-simmons

Post on 24-Dec-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

1

XP

Security on the Internetand the Web

Security Threats and Countermeasures

Tutorial 9

Page 2: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

2

XPObjectives

• Understand the basics of security: secrecy, integrity, and necessity.

• Understand what hackers and crackers can do and why they do it.

• Learn about the dangers of online crime, warfare, and terrorism.

• Investigate how to protect copyrighted materials that are published on the Internet.

Page 3: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

3

XPObjectives

• Understand Web client threats and countermeasures.

• Learn about online communication channel threats and countermeasures.

• Find out how to get more information and current updates about online security.

Page 4: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

4

XPUnderstanding Security Basics:Secrecy, Integrity, and Necessity

• Security is broadly defined as the protection of assets from unauthorized access, use, alteration, or destruction.

• Physical security includes tangible protection devices, such as locks, alarms, fireproof doors, security fences, safes or vaults, and bombproof buildings.

• Protection of assets using non-physical means is called logical security.

• Logical security may also be broadly called computer security.

Page 5: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

5

XPUnderstanding Security Basics:Secrecy, Integrity, and Necessity

• Any act or object that endangers an asset is known as a threat.

• Countermeasure is the general name for a procedure, either physical or logical, that recognizes, reduces, or eliminates a threat.

• Countermeasures can recognize and manage threats or they can eliminate them.

• An individual or organization can ignore threats that are deemed low risk and less likely to occur when the cost to protect against the threat exceeds the value of the protected asset.

Page 6: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Risk Management Model

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

6

Page 7: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

7

XPUnderstanding Security Basics:Secrecy, Integrity, and Necessity

• To implement a good security scheme, you identify the risk, determine how you will protect the affected asset, and calculate the cost of the resources you can allocate to protect the asset.

• Computer security can be classified into several categories:

Secrecy

Integrity

Necessity

Page 8: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

8

XPUnderstanding Security Basics:Secrecy, Integrity, and Necessity

• Secrecy prevents unauthorized data disclosure and ensures the authenticity of the data’s source.

• Integrity prevents unauthorized data modification.

• Necessity prevents data delays (slowing down the transmission of data) or denials (preventing data from getting to its destinations.

• Internet users and businesses with Web sites need to take appropriate countermeasures in each of these three categories to protect themselves and the computers they use to connect to the Internet.

Page 9: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

9

XPSecrecy and Encryption

• Encryption: the process of coding information using a mathematical-based program and a secret key to produce a string of characters that is unreadable.

• Decryption: the process of reversing encrypted text is called.

• Cipher text: encrypted information.

• Plain text: unencrypted information.

• Cryptography: the study of ways to secure information.

Page 10: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

10

XPSecrecy and Encryption

• Private-key encryption (symmetric encryption): uses a single key that is known by the sender

and receiver the key might be a password or a number

generated by a special device works well in a highly controlled environment.

Page 11: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Private-key (Symmetric) Encryption

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

11

Page 12: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

12

XPSecrecy and Encryption

• Public-key encryption (asymmetric encryption):

uses a public key and a private or secret key

the public key is known to everyone

the private or secret key is known only to the person who owns both keys

each person has a private key that is secret and a public key that is shared with other users

messages encrypted with a private key must be decrypted with the public key, and vice versa

Page 13: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Public-key (Asymmetric) Encryption

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

13

Page 14: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

14

XPSecrecy and Encryption

• Encryption is considered to be weak or strong based on its algorithm and the number of characters in the encryption key.

• Algorithm: a formula or set of steps to solve a particular problem.

• Strong keys: keys that are 128 bits long are called.

• Most browsers use 128-bit encryption when they are in secure mode, which is also called strong encryption.

Page 15: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

15

XPIntegrity

• An integrity threat occurs when an unauthorized party has the chance to alter data while it is being transferred over the Internet or while it is stored on a computer.

• Man-in-the-middle exploit: when an e-mail message is intercepted and its contents are changed before it is forwarded to its original destination.

• The most visible integrity threats have been from Trojan horses, viruses, and worms that attack computers and the programs they run.

Page 16: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

16

XPIntegrity

• Trojan horse: a small program hidden inside another program claims to be a legitimate program that accomplishes some task

when, in fact, it causes harm when the user accesses or downloads the program in which it is hidden

when you execute the program you thought you downloaded (or received via e-mail as an attachment), it secretly launches a separate Trojan horse program, which quietly does its damage.

• Antivirus software programs and firewalls cannot guarantee that your computer is protected from this type of attack.

• Be careful not to execute a file that you did not request and download software only from trusted sources.

Page 17: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

17

XPIntegrity

• Worm: a self-replicating program usually hidden within another file and

then sent as an e-mail attachment can replicate itself on a computer or server, but it cannot infect

other files• Viruses can spoof the From line of an e-mail message using the

name of someone you know.• The default filename view setting in Windows hides the filename

extension. • Many computer security experts recommend that users change this

default setting in Windows when it is possible so you can tell if a file is an executable program.

Page 18: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

18

XPIntegrity

• Antivirus software can prevent the spread of viruses, worms, and Trojan horses by blocking them from being downloaded from the server.

• Two vendors that provide a full range of antivirus products are Symantec and McAfee.

Page 19: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

19

XPIntegrity

• The best defenses against Trojan horses, viruses, and worms are the following:

display Windows filename extensions computers so that you can determine the type of each file you download.

avoid opening attachments that you did not expect (even if they are from senders that are known and trusted)

install antivirus programs

keep those antivirus programs updated regularly

Page 20: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

20

XPNecessity

• Necessity occurs when a cracker uses a program to disrupt normal computer processing or, possibly, to deny processing entirely.

• Packet flooding attack (denial of service (DoS) attack):

occurs when a cracker bombards a server or other computer with messages in an attempt to consume the network’s bandwidth resources

works by sending such a large number of messages to a Web server that it cannot answer properly

Page 21: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

21

XPNecessity

• Distributed denial of service (DDoS) attack: the perpetrator uses a large number of computers that each

launch a DoS attack on one Web server at the same time most DDoS attacks are launched after the attacking computers

are infected with Trojan horse programs. Each Trojan horse is coded to open and launch a DoS attack at exactly the same date and time

zombies: computers “hijacked” by a Trojan horse used to help a DDoS attack

• A company can defend its Web server from DoS and DDoS attacks by adding a filter to its Internet connection between the Web server and the router that connects it to the Internet.

Page 22: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

22

XPOnline Crime, Warfare, and Terrorism

• Most people who use the Internet are honest, hard-working people who use the technology for legitimate purposes.

• Unfortunately, some people use the Internet for all manner of illegal and unethical purposes.

• It is important to know about these uses because that knowledge can help prevent such use or limit the damage caused.

Page 23: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

23

XPHackers, Crackers, and Script Kiddies

• Cracker: a technologically skilled person who uses his or her skills to obtain unauthorized entry into computers or networks of computers. damage the system’s software, or even do harm to the system’s hardware.

• Computer forensics experts (ethical hackers): computer professionals hired to break into client computers and probe the computers to locate information that can be used in legal proceedings.

Page 24: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

24

XPHackers, Crackers, and Script Kiddies

• Hacker: a dedicated programmer who enjoyed writing

complex code that tested the limits of technology computer professionals consider being called a

hacker a compliment; the media and the general public often use the term to describe those who use their skills for ill purposes

the terms white hat hacker and black hat hacker make the distinction between those who use their skills for good and those who use their talents to commit illegal acts.

Page 25: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

25

XPHackers, Crackers, and Script Kiddies

• Virus tool kits: script-writing programs that allow novices to create

their own viruses, worms, and Trojan horses

menu-driven tools that give almost anyone the ability to generate troublesome programs without the need to write a single line of code

• Script kiddies: a derisive term coined by crackers who have programming skills to describe people who use virus tool kits.

Page 26: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

26

XPOnline Theft, Identity Theftand the Ethics of Privacy

• An increasing amount of personal information is stored on the Web by other parties, such as banks, credit card issuers, credit reporting agencies, physician’s offices, hospitals, and government agencies.

• As more companies store valuable information on computers that are connected to the Internet, opportunities for theft of that information increase.

• This is especially true when companies lose control of the data they collect on their customers (and other people).

Page 27: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

27

XPOnline Theft, Identity Theftand the Ethics of Privacy

• Social Security number• Driver’s license number• Credit card numbers• CW2 numbers (the three- or

four-digit security code printed on a credit card)

• Passwords (or PINs)• Credit reports• Date of birth

• ATM (or debit) card numbers• Telephone calling card

numbers• Mortgage (or other loan)

information• Telephone numbers• Home address• Employer address

The kinds of personal information that criminals most want to obtain include:

Page 28: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

28

XPOnline Theft, Identity Theftand the Ethics of Privacy

• Identity theft: a type of crime in which a thief steals a person’s entire credit record and then uses the victim’s personal information to open bank accounts, new credit cards, and buy expensive goods on credit.

• By the time the victim finds out that his or her identity has been stolen, the thief is long gone with the cash and the goods.

• If you are the victim of identity theft, you must act quickly to contact the credit reporting agencies, every financial institution at which you have an account, and the issuer of every credit card you hold.

Page 29: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

29

XPOnline Extortion

• Some perpetrators threaten to launch DoS attacks against a company unless a “fee” is paid; many smaller companies simply pay the extortionists and do not even report the crime.

• Other perpetrators break into a company’s systems, steal confidential information, and then threaten to release the information unless they are paid.

• Smaller companies are easier targets because they generally do not have strong security in place, but larger organizations are not immune to these attacks.

Page 30: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

30

XPOther Online Crimes

• Enforcing laws against distribution of pornographic material online in the United States has been difficult.

a difficult question arises regarding which community standards might apply to the sale

international transactions raise even more difficult questions about which laws should determine the legality of the sale

The U.S. Supreme Court has ruled that state and local courts can draw the line based on local community standards

Page 31: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

31

XPOther Online Crimes

• A similar issue arises in the case of online gambling.

If people in California use their computers to connect to an offshore gambling site, it is unclear where the gambling activity occurs.

Several states have passed laws that specifically outlaw Internet gambling, but the ability of those states to enforce laws that limit Internet activities is not yet clear.

The U.S. Federal government has outlawed all online gambling activities by its citizens, but enforcement is difficult and the constitutionality of such laws has not been tested.

Page 32: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

32

XPOrganized Crime Online

• Organized crime (racketeering): unlawful activities conducted by a highly organized, disciplined association for profit.

• The Internet has opened new opportunities for organized crime.

• Large criminal organizations can be efficient perpetrators of identity theft because they can exploit large amounts of personal information (obtained, for example, from a cracker who broke into a company’s Web server) quickly and efficiently.

• These criminal organizations often sell or trade information that they cannot use immediately to other organized crime entities around the world.

Page 33: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

33

XPOnline Espionage, Warfare, and Terrorism

• Industrial espionage: a type of spying in which countries attempt to gain information

from private businesses to capture intellectual property that can be taken home and used in industries there

when this information is stored in computers that are connected to the Internet or when it is transmitted via the Internet, it can become the target of online espionage efforts

• Many Internet security experts believe that we are at the dawn of a new age of terrorism and warfare that could be carried out or coordinated through the Internet.

Page 34: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

34

XPCopyright & Intellectual Property Threats and Countermeasures

• Safeguarding copyright and intellectual property rights are also security issues.

• Intellectual property threats are a large problem due to the Internet and the relative ease with which one can use existing material without the owner’s permission.

It is very simple to reproduce an exact copy of anything you find on the Internet.

Many people are naïve or unaware of copyright restrictions that protect intellectual property.

Page 35: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

35

XPCopyright & Intellectual Property Threats and Countermeasures

• Digital watermark: a process that inserts a digital pattern containing copyright information into a digital image, animation, or audio or video file.

• Steganography:

a process that hides an encrypted message within different types of files

can be used to add copyright information to different types of files

Page 36: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

36

XPWeb Client Security

• A good place to start applying security principles in on PCs connected to the Internet (Web clients).

• There are specific security threats and countermeasures for Web clients, the communication channel that connects Web clients to Web servers, and the Web servers themselves.

Page 37: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

37

XPActive Content: Java, JavaScript, and ActiveX

• Active content: programs that travel with applications to a browser and execute on the user’s computer.

• Java applet: a program written in the Java programming language that could execute and consume a computer’s resources.

• JavaScript program: a program that could execute on the user’s computer and can run without being compiled.

Page 38: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

38

XPActive Content: Java, JavaScript, and ActiveX

• ActiveX components:

Microsoft’s technology for writing small applications that perform some action in Web pages; these components have full access to a computer’s file system.

only work in Internet Explorer and other browsers that use the Internet Explorer code base in some way.

Firefox, which does not use any part of the Internet Explorer code base, will not run a beneficial ActiveX component, nor can it be attacked by a malicious ActiveX component

Page 39: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

39

XPManaging Cookies

• A cookie is a small text file that a Web server creates and stores on your computer’s hard drive.

• Clickstream: the links you click while visiting the Web site

• A cookie might store information about your clickstream, the products you purchase, or personal information that you provide to the site.

• Some cookies are removed automatically when you leave a Web site (a session-only cookie).

Page 40: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

40

XPManaging Cookies

• Many Web sites use cookies to make their sites easier to navigate.

• A cookie is not a program and it can only store information that you provide to the Web site that creates it.

• Sometimes you provide the data openly, and at other times, the cookie might silently record your behavior at a Web site.

• Only the Web site that stored the cookie on your hard drive can read it, and it cannot read other cookies on your hard drive or any other file on your computer.

Page 41: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

41

XPManaging Cookies

• Cookies can represent a security threat for some users, especially those who access the site from a public computer.

• Internet users can control the storage of cookies on their computer’s hard drive by changing their browser’s settings.

• The best way to prevent another user from gaining access to information is to make sure that you do not leave an electronic trail to its path.

• Internet Explorer stores cookies in the C:\Windows\Cookies folder.

• Firefox stores cookies in a file named cookies.txt on the user’s hard drive.

Page 42: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Managing Cookies in Internet Explorer

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

42

Page 43: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Managing Cookies in Firefox

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

43

Page 44: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

44

XPWeb Bugs

• Web bug (clear GIF or transparent GIF): a small (one pixel), hidden graphic on a Web page or in an e-mail message that is designed to work in conjunction with a cookie to obtain information about the person viewing the page or e-mail message and to send the information to a third party.

• When the user loads the Web page that contains this code, the browser downloads the hidden graphic. This process can identify your IP address, the Web site you last visited, and other information about your use of the site in which the clear GIF file has been embedded and record it in the cookie file.

Page 45: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Web Bugs

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

45

HTML document containing a Web bug

Web page containing a Web bug

Page 46: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

46

XPAdware and Spyware: Ethical Issues

• Adware: a general category of software that includes advertisements to help pay for the product in which they appear.

• In many freeware and shareware programs, adware provides opportunities for developers to offer software at little or no cost to the user.

• Adware usually does not cause any security threats because the user is aware of the ads and the parties responsible for including them are clearly identified in the programs.

Page 47: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

47

XPAdware and Spyware: Ethical Issues

• Spyware: a category of adware in which the user has little control over or knowledge of the ads and other monitoring features it contains.

• Spyware occurs in situations where a developer has sold ads to a third party or embedded other features in the program.

• A Web bug is an example of spyware because the clear GIF and its actions are hidden from the user.

Page 48: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

48

XPAdware and Spyware: Ethical Issues

• One way to protect computers from the potential privacy violations created by cookies, Web bugs, and spyware is to set Web browsers to block third-party cookie files.

• There are many good shareware programs that erase spyware from your computer.

• These programs, sometimes called ad blockers, search for files written by known spyware.

Page 49: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

49

XPFirewalls

• Firewall: a software program or hardware device that controls access between two networks, such as a local area network and the Internet or the Internet and a computer.

• Port: like a door on a computer, it permits traffic to leave and enter a computer. When the port is closed, traffic can’t leave or enter the computer.

• Port scan: occurs when one computer tests all or some of the ports of another computer to determine whether its ports are open, closed, or stealth.

Page 50: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Basic Web Client Firewall Architecture

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

50

Page 51: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

51

XPFirewalls

• Most firewalls prevent traffic from entering the network, but firewalls can also prevent data from leaving the network.

This is useful for controlling the activities of hidden programs that are designed to compromise the security of a computer.

When you install a new program on your computer, a firewall that provides outgoing protection will notify you if and when the new program tries to access the Internet.

Page 52: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

52

XPFirewalls

• Until the recent increase in the number of users with broadband connections to the Internet, corporations used hardware firewalls almost exclusively.

• Some firewall software programs are available for free or at a very low cost so they are become popular with other types of users.

• Some antivirus programs and Internet suites include basic firewall protection.

Page 53: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

53

XPCommunication Channel Security

• Encryption is an important part of maintaining security over information that is sent via the Internet.

• Practical uses of encryption require authentication and identification.

Page 54: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

54

XPAuthentication and Digital Certificates

• Authentication: a general term for the process of correctly verifying the identify of a person or a Web site.

• Digital certificate: an encrypted and password-protected file that contains sufficient information to authenticate and prove a person’s or organization’s identity.

• Certificate authority: a trusted third party that verifies the digital certificate holder’s identity and issues the certificate.

Page 55: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

55

XPAuthentication and Digital Certificates

• A digital certificate contains the following:

the certificate holder’s name, address, and e-mail address

a special key that “unlocks” the digital certificate, thereby verifying the certificate’s authenticity

the certificate’s expiration date or validity period

the certificate authority

Page 56: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

56

XPAuthentication and Digital Certificates

• A digital certificate is an electronic equivalent of an identification card.

• Digital ID (personal certificate): used to identify a person to other people and to Web sites that are set up to accept digital certificates.

• Digital ID: an electronic file that you purchase from a certificate authority and install into a program that uses it, such as an e-mail program or a Web browser.

Page 57: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

57

XPProtecting E-Mail Messages

• To help maintain the integrity of an e-mail message, you can send the message through a message digest function program (hash code function program) to produce a number called a message authentication code (MAC).

• After it receives the MAC, the e-mail program sends the message and matching MAC together to the recipient.

• The recipient’s e-mail program recomputes the message’s MAC and compares the computed MAC to the received MAC.

• If they match, the content of the message is unaltered. If they do not match, then the message cannot be trusted.

Page 58: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Producing a MAC for a Message

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

58

Page 59: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

59

XPProtecting E-Mail Messages

• To be useful, the message digest function must exhibit the following characteristics:

It must be impossible or costly to reverse the MAC and produce the original message.

The MAC should be random

The MAC must be unique to the message

• You can also protect outgoing e-mail messages with the Secure/Multipurpose Internet Mail Extensions (S/MIME) specification, which when combined with a person’s digital ID provides authentication and encryption to e-mail messages.

Page 60: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

60

XPPhishing Attacks

• Phishing: an attack in which thieves “fish” for information.

Thieves send e-mail messages to people telling them that their account data at a bank, credit card company, or other company has been compromised.

The e-mail message asks the recipients to click a link to go to a Web site and verify the account information.

The link is to a spoofed Web site (a Web site that only looks like it belongs to the correct business).

If the recipient enters personal information in a form on the Web site, the thieves can steal that information.

Page 61: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

61

XPPhishing Attacks

• The links in phishing e-mails are usually disguised.

• One common way to disguise the real URL is to use the “@” sign, which causes the Web server to ignore all characters that precede the “@” and use only the characters that follow

• E-mail links can include JavaScript code that is invisible in most e-mail clients; the link looks like it is going one place, but in fact it directs the mail somewhere else.

Page 62: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

62

XPWeb Server Security

• Just as digital certificates help protect data sent from one individual to another, they can help protect data sent from and received by a Web server as it performs its task of delivering Web pages to site visitors.

• Web sites account for the largest percentage of digital certificates in use.

Page 63: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

63

XPDigital Certificates for Web Servers

• Server certificate (SSL Web server certificate): authenticates a Web site for its users so the user can be confident that the Web site is genuine and not an imposter.

• Server certificate also ensures that the transfer of data between a user’s computer and the server with the certificate is encrypted so that it is both tamperproof and free from being intercepted.

Page 64: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Processing a Web Server Digital Certificate

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

64

Page 65: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

65

XPDigital Certificates for Web Servers

• User identification: the process of identifying yourself to a computer.

• Most computer systems implement user identification with user names and passwords; the combination of a user name and password is sometimes called a login.

• To help keep track of their login information for different computers and Web sites, some people use a program called a password manager, which stores login information in an encrypted form on their computer.

Page 66: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

66

XPDigital Certificates for Web Servers

• Crackers can run programs that create and enter passwords from a dictionary or a list of commonly used passwords.

• Brute force attack: occurs when a cracker uses a program to enter character combinations until the system accepts a user name and password, thereby gaining access to the system.

• User authentication: the process of associating a person and his identification with a very high level of assurance.

Page 67: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

67

XPSecure Sockets Layer (SSL)

• Secure Sockets Layer (SSL): a widely used protocol that acts as a separate layer or “secure channel” on top of the TCP/IP Internet protocol.

• SSL provides a security handshake when a browser and the Web page to which it is connected want to participate in a secure connection.

• Web pages secured by SSL have URLs that begin with https:// instead of http://.

Page 68: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

Secure State Indicators

Internet Explorer

Firefox

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

68

Page 69: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

69

XPSecure Sockets Layer (SSL)

• SSL creates a public-key pair so that it can safely transmit data using a private key.

• The private key is encrypted using public-key encryption and is sent to the browser. Using the private key protects the remainder of the information transfer between the browser and the Web site.

• Session keys: a public-key pair created by SSL during a browser session.

when the user leaves the secure Web site, the browser discards the session keys.

session keys exist only during a single, active session between a browser and server.

Page 70: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

70

XPStaying Current with Internet and Web Security

• CERT Coordination Center:

a federally funded research center operated by the Software Engineering Institute at Carnegie Mellon University

originally known as the Computer Emergency Response Team

primary goal is to publish alerts, advisories, and vulnerability reports about current and future Internet security problems it detects and to coordinate communication between software experts

also works to increase awareness of security problems and issues and to help individuals and organizations improve the security of their computer systems.

Page 71: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

71

XPStaying Current with Internet and Web Security

• SANS Institute:

many companies belong to the SANS Institute

it sponsors computer security training and research programs

its Web site includes the Internet Storm Center and other resources that contain current information on emerging online security issues

Page 72: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

72

XPSummary

• There are different types of computer security threats and some countermeasures that you can take to prevent them.

• There are copyright issues related to the information you locate and use on the Internet.

Page 73: XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 9 1 Security on the Internet and the Web Security Threats and Countermeasures

New Perspectives on The Internet, Sixth Edition—Comprehensive Tutorial 9

73

XPSummary

• Specific security threats arise on the Internet when it is used as a communication channel.

• Other threats on computers arise when they are used as Web clients or as Web servers.

• You should use the security information presented in this tutorial to create a safe environment in which to enjoy the Web’s many resources.