Week 6 - Wednesday.  What did we talk about last time?  Exam 1  Before that?  Program security  Non-malicious flaws.

Slides:



Advertisements
Similar presentations
Higher Computing Computer Systems S. McCrossan Higher Grade Computing Studies 8. Supporting Software 1 Software Compatibility Whether you are doing a fresh.
Advertisements

Thank you to IT Training at Indiana University Computer Malware.
CSE331: Introduction to Networks and Security Lecture 32 Fall 2002.
Week 6 - Friday.  What did we talk about last time?  Viruses and other malicious code.
Computer Viruses and Worms* *Referred to slides by Dragan Lojpur, Zhu Fang at Florida State University.
 Application software consists of programs designed to make users more productive and/or assist with personal tasks.  Growth of internet simplified.
1 Anti Virus vs virus System i-Specific Anti-Virus Product Ali ameen al said.
Chapter 3 (Part 1) Network Security
Telnet and FTP. Telnet Lets you use the resources of some other computer on the Internet to access files, run programs, etc. Creates interactive connection.
Unit 18 Data Security 1.
ITMS Information Systems Security 1. Malicious Code Malicious code or rogue program is the general name for unanticipated or undesired effects in.
________________ CS3235, Nov 2002 Viruses Adapted from Pfleeger[Chap 5]. A virus is a program [fragment] that can pass on malicious code [usually itself]
Chapter 14 Computer Security Threats Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Pertemuan 05 Malicious Software Matakuliah: H0242 / Keamanan Jaringan Tahun: 2006 Versi: 1.
Copyright © Clifford Neuman - UNIVERSITY OF SOUTHERN CALIFORNIA - INFORMATION SCIENCES INSTITUTE USC CSci530 Computer Security Systems Lecture.
CSE331: Introduction to Networks and Security Lecture 31 Fall 2002.
1 Computer Viruses (and other “Malicious Programs) Computer “Viruses” and related programs have the ability to replicate themselves on an ever increasing.
1 Malicious Logic CSSE 490 Computer Security Mark Ardis, Rose-Hulman Institute March 25, 2004.
R. FRANK NIMS MIDDLE SCHOOL A BRIEF INTRODUCTION TO VIRUSES.
Computer security virus, hacking and backups. Computer viruses are small software programs that are designed to spread from one computer to another.
Henric Johnson1 Chapter 10 Malicious Software Henric Johnson Blekinge Institute of Technology, Sweden
Video Following is a video of what can happen if you don’t update your security settings! security.
1 Chap 10 Malicious Software. 2 Viruses and ”Malicious Programs ” Computer “Viruses” and related programs have the ability to replicate themselves on.
Chapter 15: Security (Part 1). The Security Problem Security must consider external environment of the system, and protect the system resources Intruders.
Malicious Code Brian E. Brzezicki. Malicious Code (from Chapter 13 and 11)
The Utility Programs: The system programs which perform the general system support and maintenance tasks are known as utility programs. Tasks performed.
Understanding and Troubleshooting Your PC. Chapter 12: Maintenance and Troubleshooting Fundamentals2 Chapter Objectives  In this chapter, you will learn:
CSCE 201 Attacks on Desktop Computers: Malicious Code Hardware attacks.
Threat to I.T Security By Otis Powers. Hacking Hacking is a big threat to society because it could expose secrets of the I.T industry that perhaps should.
Administrator Protect against Malware by: Brittany Slisher and Gary Asciutto.
Virus and Antivirus Team members: - Muzaffar Malik - Kiran Karki.
Lecture 14 Overview. Program Flaws Taxonomy of flaws: – how (genesis) – when (time) – where (location) the flaw was introduced into the system 2 CS 450/650.
CHAPTER 14 Viruses, Trojan Horses and Worms. INTRODUCTION Viruses, Trojan Horses and worm are malicious programs that can cause damage to information.
1 Higher Computing Topic 8: Supporting Software Updated
1 Chap 10 Virus. 2 Viruses and ”Malicious Programs ” Computer “Viruses” and related programs have the ability to replicate themselves on an ever increasing.
CSCE 522 Lecture 12 Program Security Malicious Code.
Administrative: Objective: –Tutorial on Risks –Phoenix recovery Outline for today.
Malicious Code By Diana Peng. What is Malicious Code? Unanticipated or undesired effects in programs/program parts, caused by an agent with damaging intentions.
Chapter 10 Malicious software. Viruses and ” Malicious Programs Computer “ Viruses ” and related programs have the ability to replicate themselves on.
What is computer virus? Computer virus refers to a program which damages computer systems and/or destroys or erases data files.
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 25 – Virus Detection and Prevention.
Viruses Hackers Backups Stuxnet Portfolio Computer viruses are small programs or scripts that can negatively affect the health of your computer. A.
Understanding Computer Viruses: What They Can Do, Why People Write Them and How to Defend Against Them Computer Hardware and Software Maintenance.
Security CS Introduction to Operating Systems.
Computer security virus, hacking and backups. Computer viruses are small software programs that are designed to spread from one computer to another.
Malicious Software.
VIRUS.
n Just as a human virus is passed from person from person, a computer virus is passed from computer to computer. n A virus can be attached to any file.
Computer Systems Viruses. Virus A virus is a program which can destroy or cause damage to data stored on a computer. It’s a program that must be run in.
Computer virus Speaker : 蔡尚倫.  Introduction  Infection target  Infection techniques Outline.
Computer Security Threats CLICKTECHSOLUTION.COM. Computer Security Confidentiality –Data confidentiality –Privacy Integrity –Data integrity –System integrity.
W elcome to our Presentation. Presentation Topic Virus.
Types of Computer Malware. The first macro virus was written for Microsoft Word and was discovered in August Today, there are thousands of macro.
Week 6 - Monday.  What did we talk about last time?  Quantum cryptography  Non-malicious program errors.
MALICIOUS SOFTWARE Rishu sihotra TE Computer
Page 1 Viruses. Page 2 What Is a Virus A virus is basically a computer program that has been written to perform a specific set of tasks. Unfortunately,
Malicious Programs (1) Viruses have the ability to replicate themselves Other Malicious programs may be installed by hand on a single machine. They may.
COMPUTER VIRUSES ….! Presented by: BSCS-I Maheen Zofishan Saba Naz Numan Sheikh Javaria Munawar Aisha Fatima.
Virus Infections By: Lindsay Bowser. Introduction b What is a “virus”? b Brief history of viruses b Different types of infections b How they spread b.
Antivirus Software Technology By Mitchell Zell. Intro  Computers are vulnerable to attack  Most common type of attack is Malware  Short for malicious.
SYSTEM SECURITY & ANTIVIRUS Chapter - 4 1Dr. BALAMURUGAN MUTHURAMAN.
COMPUTERVIRUSES MALICIOUS CODES  Malicious code: It is an undesired program or part caused by an agent intent to damage.  Agent is Writer or Distributor.
Computer Viruses Author: Alyse Allen.
CHAPTER 3 PROGRAM SECURITY.
Viruses and Other Malicious Content
Viruses, Malicious Code, & Other Nasty Stuff
WHAT IS A VIRUS? A Computer Virus is a computer program that can copy itself and infect a computer A Computer Virus is a computer program that can copy.
Chap 10 Malicious Software.
Chap 10 Malicious Software.
Crisis and Aftermath Morris worm.
Presentation transcript:

Week 6 - Wednesday

 What did we talk about last time?  Exam 1  Before that?  Program security  Non-malicious flaws

Ted Bushong

 Obviously, it’s a problem  It’s very difficult to stop  You never really know what’s getting installed on your computer  You’re downloading thousands of files from the Internet every day  Even if you had the source code for every program, could you catch all the dangerous stuff?  Malicious code has been around since at least 1970

 Malicious code (or a rogue program) is our blanket term for any code that has undesirable effects that were intentionally designed  The agent is the person who writes the code  A virus is a program that can replicate itself and add malicious code to nonmalicious programs  A transient virus runs when its host program is running  A resident virus lives in memory and can be active anytime

 Terminology is inconsistent  Popular culture tends to call everything a virus  Sometimes we will too, but here are some other terms:  Almost all of these are, by definition, Trojan horses  Worms differ from viruses primarily because they spread across networks Type Characteristics Virus Attaches itself to a program and propagates copies of itself to other programs Trojan horse Contains unexpected, additional functionality Logic bomb Triggers action when condition occurs Time bomb Triggers action when specified time occurs Trapdoor Allows unauthorized access to functionality Worm Propagates copies of itself through a network Rabbit Replicates itself without limit to exhaust resources

 A virus is not dangerous unless it is active  Just having an infected file on your hard drive won’t cause a problem unless it is accessed  But files get opened all the time  Programs call other programs  Just previewing files can be dangerous  programs open attachments automatically  How do these viruses infect code?

 A virus can be designed so that it starts running before the real program does  Machine code for the virus is inserted before the machine code for the beginning of the program  After the virus runs, it transfers control to the real program  The real program runs as if nothing happened  This kind of virus is easy to write  It is also relatively easy to catch for antivirus software Program Code Virus Code + Program Code Virus Code

 Another possibility is viruses that surround a program, gaining control before and after execution  The code may not be at the beginning and end of the executable, but that’s how the control flow works  Viruses can also be spread throughout the code Program Code Virus Code + Program Code Virus Code A Virus Code B Program Code Virus Code + Infected Program Code

 According to the book, the most common form of virus is a document virus  A document virus is an infected document (instead of an executable file)  Nevertheless, the macros that can be stored in Word, Excel, Access, and other similar complex documents are powerful enough to cause just as much damage as any other virus

 If you are making a virus, the following characteristics are ideal:  Hard to detect  Difficult to destroy or deactivate  Spreads infection widely  Capable of reinfecting its host or other programs  Easy to create  Machine and OS independent  It’s difficult to make a virus that meets all these criteria

 Many viruses will be executed just once  This could be on running a pirated (and infected) file  One of the most common avenues of attack is through an attachment

 The boot sector is the part of a hard drive that says what code to load to start your OS  The details are technical, but a boot sector virus is one that is stored in the chain of code that starts up your whole computer  A virus that can start this early can circumvent or disable antivirus  It has complete control over your system  It is also not obvious from the file system

 Some programs start up and then never really die  They are low level parts of the OS that need to keep running  Sometimes called TSR (terminate and stay resident)  Because these programs are always running, they are an attractive home for a virus  Even if you delete the original infected file, the memory resident virus can replace it

 As with everything in security, the assumption is that attackers do not play by the rules  A virus does not have to live where we expect it to  A few other places that are sensible:  Applications  Libraries  Compilers (infect programs as you create them)  Antivirus software

 Ken Thompson's seminal paper Reflections on Trusting Trust:  He added a backdoor to the Unix login program  Too easy to trace, so he added a backdoor to the C compiler to insert the backdoor in any program called login  Too easy to trace, so he added a backdoor in the compiler compiler to insert code that would insert the backdoor in any program called login  And so on, and so on…  You can’t trust anything you didn’t completely create yourself  Some amount of trust is necessary

 Viruses are difficult to detect, but we can still classify them by the way they change code or the way they execute  We call these tell-tale signs a signature  Antivirus programs work by searching for certain signatures in code

 At simplest, this is just a particular string of code in the binary  Often this code is at the beginning of a program so that it gets control immediately  Craftier viruses will put themselves other places that get jumped to early in execution  An antivirus program can check:  The size of a file  The functioning of the code compared to some standard  It can look for suspicious execution patterns (weird JUMP commands)  The program against a hash digest for the program

 Viruses are also suspicious because of the way they execute  The virus should:  Spread infection  Avoid detection  Cause harm  How do these behaviors look like normal programs?  How do they look abnormal?  It’s not easy to tell…

 Because virus scanners try to match strings in machine code, virus writers design polymorphic viruses that change their appearances  No-ops, code that doesn’t have an impact on execution, can be used for simple disguises  Clever viruses can break themselves apart and hide different parts in randomly chosen parts of code  Similar to code obfuscation  Advanced polymorphic viruses called encrypting viruses encrypt parts of themselves with randomly chosen keys  A scanner would have to know to decrypt the virus to detect it  Virus scanners cannot catch everything

Virus EffectVirus Cause Attach to executable program  Modify file directory  Write to executable program file Attach to data or control file  Modify directory  Rewrite data  Append to data  Append data to self Remain in memory  Intercept interrupt by modifying interrupt handler address table  Load self in nontransient memory area Infect disks  Intercept interrupt  Intercept OS system call  Modify system file  Modify ordinary executables Conceal self  Intercept system calls  Classify self as hidden file Spread infection  Infect boot sector  Infect system program  Infect ordinary program  Infect data ordinary program reads Prevent deactivation  Activate before deactivating program  Store copy to reinfect after deactivation

 It is impossible to prevent infection entirely  Some guidelines:  Use only commercial software acquired from reliable, well-established vendors  Test all new software on an isolated computer  Open attachments only when you know them to be safe  Make a recoverable system image and store it safely  Make and retain backup copies of executable system files  Use virus detectors regularly and update them daily

 Viruses can infect only Microsoft Windows systems  Viruses can modify hidden and read-only files  Viruses can appear only in data files or only in programs  Viruses spread only on disks or only through  Viruses cannot remain in memory after a power cycle  Viruses can be malevolent, benign, or benevolent False True False True, but so what? True

 The Brain virus is one of the oldest known  It changed the label of disks it attacked to “BRAIN”  It was written by two brothers from Pakistan  It copies itself to the boot sector in MS-DOS  It rewrites the system interrupt for disk reading so that it controls reads  If you try to look at the boot sector, it will lie to you about what’s there  Anytime it sees an uninfected disk, it infects it  It doesn’t otherwise do anything malicious

 In 1988 Robert Morris, a Cornell graduate student, wrote an worm that infected a lot of the Internet that existed at that time  Serious connectivity issues happened because of the worm and because people disconnected uninfected system  He claimed the point was the measure the size of the Internet  The worm’s goal: 1. Determine where it could spread to 2. Spread its infection 3. Remain undiscovered

 It tried to find user accounts on the host machine  It tried 432 common passwords and compared their hash to the list of password hashes  Ideally, this list should not have been visible  It tried to exploit a bug in the fingerd program (using a buffer overflow) and a trapdoor in the sendmail mail program  Both were known vulnerabilities that should have been patched

 Once a target was found, the worm would send a short loader program to the target machine  The program (99 lines of C) would compile and then get the rest of the virus  It would use a one-time password to talk to the host  If the host got the wrong password, it would break connection  This mechanism was to prevent outsiders from gaining access to the worm’s code

 Any errors in transmission would cause the loader to delete any code and exit  As soon as the code was successfully transmitted, the worm would run, encrypt itself, and delete all disk copies  It periodically changed its name and process identifier so that it would be harder to spot

 The worm would ask machines if they were already infected  Because of a flaw in the code, it would reinfect machines 1 out of 7 times  Huge numbers of copies of the worm started filling infected machines  System and network performance dropped  Estimates of the damage are between $100,000 and $97 million  Morris was fined $10,000 and sentenced to 400 hours of community service  The CERT was formed to deal with similar problems

 Code Red appeared in 2001  It infected a quarter of a million systems in 9 hours  It is estimated that it infected 1/8 of the systems that were vulnerable  It exploited a vulnerability by creating a buffer overflow in a DLL in the Microsoft Internet Information Server software  It only worked on systems running an MS web server, but many machines did by default

 The original version of Code Red defaced the website that was being run  Then, it tried to spread to other machines on days 1-19 of a month  Then, it did a distributed denial of service attack on whitehouse.gov on days  Later versions attacked random IP addresses  It also installed a trap door so that infected systems could be controlled from the outside

 Targeted malicious code  Exam 1 post-mortem

 Read Sections 3.3, 3.4, and 3.5  Finish Project 1  Due Friday!