Malicious Software CIS 4361 Eng. Hector M Lugo-Cordero, MS Feb. 2012.

Slides:



Advertisements
Similar presentations
Computer Security Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Chapters 14 and 15 Operating Systems: Internals and Design Principles,
Advertisements

Lecture: Malicious Code CIS 3360 Ratan K. Guha. Malicious Code2 Overview and Reading Assignments Defining malicious logic Types Action by Viruses Reading.
Lecture 13 Malicious Software modified from slides of Lawrie Brown.
Cryptography and Network Security Chapter 19 Fourth Edition by William Stallings.
Karlstad University Malware Ge Zhang Karlstad Univeristy.
Lecture 14 Malicious Software (cont) modified from slides of Lawrie Brown.
Malware Ge Zhang Karlstad Univeristy. Focus What malware are Types of malware How do they propagate How do they hide How to detect them.
Chapter 14 Computer Security Threats
Cryptography and Network Security Malicious Software Third Edition by William Stallings Lecturer: Dr. Saleem Alzoubi.
Chapter 14 Computer Security Threats Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Malicious Software programs exploiting system vulnerabilities known as malicious software or malware program fragments that need a host program e.g. viruses,
1 Pertemuan 05 Malicious Software Matakuliah: H0242 / Keamanan Jaringan Tahun: 2006 Versi: 1.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Copyright © Clifford Neuman - UNIVERSITY OF SOUTHERN CALIFORNIA - INFORMATION SCIENCES INSTITUTE USC CSci530 Computer Security Systems Lecture.
Guide to Operating System Security Chapter 2 Viruses, Worms, and Malicious Software.
Cryptography and Network Security Chapter 21
By:Tanvi lotliker TE COMPUTER
Henric Johnson1 Chapter 10 Malicious Software Henric Johnson Blekinge Institute of Technology, Sweden
Logical Security threats. Logical security Protects computer-based data from software-based and communications- based threats.
Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 7 – Malicious Software.
Malicious Software Malicious Software Han Zhang & Ruochen Sun.
1 Ola Flygt Växjö University, Sweden Malicious Software.
1 Chap 10 Malicious Software. 2 Viruses and ”Malicious Programs ” Computer “Viruses” and related programs have the ability to replicate themselves on.
Network and Internet Security SYSTEM SECURITY. Virus Countermeasures Antivirus approach ◦Ideal solution: Prevention ◦Not allowing the virus to infect.
Malicious Code Brian E. Brzezicki. Malicious Code (from Chapter 13 and 11)
BY ANDREA ALMEIDA T.E COMP DON BOSCO COLLEGE OF ENGINEERING.
Data Security and Encryption (CSE348) 1. Lecture # 27 2.
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.
VIRUSES - Janhavi Naik. Overview Structure Classification Categories.
1 Chapter 19: Malicious Software Fourth Edition by William Stallings Lecture slides by Lawrie Brown (Modified by Prof. M. Singhal, U of Kentucky)
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.
Virus Detection Mechanisms Final Year Project by Chaitanya kumar CH K.S. Karthik.
Chapter 11 Malicious Software
Viruses and Related Threats. 2 Summary  have considered:  various malicious programs  trapdoor, logic bomb, trojan horse, zombie  viruses  worms.
Fourth Edition by William Stallings Adapted form lecture slides by Lawrie Brown.
Chapter 10 Malicious software. Viruses and ” Malicious Programs Computer “ Viruses ” and related programs have the ability to replicate themselves on.
Countering Kernel Rootkits with Lightweight Hook Protection Presented by: Hector M Lugo-Cordero, MS CAP 6135 March 24, 2011.
For any query mail to or BITS Pilani Lecture # 1.
Week 10-11c Attacks and Malware III. Remote Control Facility distinguishes a bot from a worm distinguishes a bot from a worm worm propagates itself and.
Viruses a piece of self-replicating code attached to some other code – cf biological virus both propagates itself & carries a payload – carries code to.
Malicious Software.
Chapter 19 – Malicious Software What is the concept of defense: The parrying of a blow. What is its characteristic feature: Awaiting the blow. —On War,
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.
Advanced Anti-Virus Techniques
Cryptography and Network Security Chapter 19 Fourth Edition by William Stallings Lecture slides by Lawrie Brown.
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.
CSEN 1001 Computer and Network Security Amr El Mougy Mouaz ElAbsawi.
Prof. Wenguo Wang Network Information Security Prof. Wenguo Wang Tel College of Computer Science QUFU NORMAL UNIVERSITY.
By Thomas Pantone Cosc 380.  A virus is a type of malware that self replicates after being executed and inserts itself into other programs, data files,
Protecting Computers From Viruses and Similarly Programmed Threats Ryan Gray COSC 316.
Cosc 4765 Antivirus Approaches. In a Perfect world The best solution to viruses and worms to prevent infected the system –Generally considered impossible.
Company LOGO Malicious SW By Dr. Shadi Masadeh 1.
MALWARE.
LECTURE 6 MALICIOUS SOFTWARE
Malicious Software.
Viruses and Other Malicious Content
BINF 711 Amr El Mougy Sherif Ismail
NET 311 Information Security
Chap 10 Malicious Software.
Chap 10 Malicious Software.
Malicious Software Slide Set #5 Textbook Chapter 6 Clicker Questions
Malicious Software programs exploiting system vulnerabilities
Introduction to Internet Worm
Presentation transcript:

Malicious Software CIS 4361 Eng. Hector M Lugo-Cordero, MS Feb. 2012

Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 7 – Malicious Software Most Slides are From

Malicious Software  programs exploiting system vulnerabilities  known as malicious software or malware program fragments that need a host program program fragments that need a host program e.g. viruses, logic bombs, and backdoorse.g. viruses, logic bombs, and backdoors independent self-contained programs independent self-contained programs e.g. worms, botse.g. worms, bots replicating or not replicating or not  sophisticated threat to computer systems

Malware Terminology  Virus  Worm  Logic bomb  Trojan horse  Backdoor (trapdoor)  Mobile code  Auto-rooter Kit (virus generator)  Spammer and Flooder programs  Keyloggers  Rootkit  Zombie, bot

Viruses  piece of software that infects programs modifying them to include a copy of the virus modifying them to include a copy of the virus so it executes secretly when host program is run so it executes secretly when host program is run  specific to operating system and hardware taking advantage of their details and weaknesses taking advantage of their details and weaknesses  a typical virus goes through phases of: dormant dormant propagation propagation triggering triggering execution execution

Virus Structure  components: infection mechanism - enables replication infection mechanism - enables replication trigger - event that makes payload activate trigger - event that makes payload activate payload - what it does, malicious or benign payload - what it does, malicious or benign  prepended / postpended / embedded  when infected program invoked, executes virus code then original program code  can block initial infection (difficult)  or propogation (with access controls)

Virus Structure

Compression Virus

Virus Mutation  From Szor and Ferrie, “Hunting for Metamorphic”

Virus Classification  boot sector  file infector  macro virus  encrypted virus  stealth virus  polymorphic virus  metamorphic virus

Macro Virus  became very common in mid-1990s since platform independent platform independent infect documents infect documents easily spread easily spread  exploit macro capability of office apps executable program embedded in office doc executable program embedded in office doc often a form of Basic often a form of Basic  more recent releases include protection  recognized by many anti-virus programs

Viruses  more recent development  e.g. Melissa exploits MS Word macro in attached doc exploits MS Word macro in attached doc if attachment opened, macro activates if attachment opened, macro activates sends to all on users address list sends to all on users address list and does local damage and does local damage  then saw versions triggered reading  hence much faster propagation

Virus Countermeasures  prevention - ideal solution but difficult  realistically need: detection detection identification identification removal removal  if detect but can’t identify or remove, must discard and replace infected program

Anti-Virus Evolution  virus & antivirus tech have both evolved  early viruses simple code, easily removed  as become more complex, so must the countermeasures  generations first - signature scanners first - signature scanners second - heuristics second - heuristics third - identify actions third - identify actions fourth - combination packages fourth - combination packages

Generic Decryption  runs executable files through GD scanner: CPU emulator to interpret instructions CPU emulator to interpret instructions virus scanner to check known virus signatures virus scanner to check known virus signatures emulation control module to manage process emulation control module to manage process  lets virus decrypt itself in interpreter  periodically scan for virus signatures  issue is long to interpret and scan tradeoff chance of detection vs time delay tradeoff chance of detection vs time delay

Digital Immune System

Behavior-Blocking Software

Worms  replicating program that propagates over net using , remote exec, remote login using , remote exec, remote login  has phases like a virus: dormant, propagation, triggering, execution dormant, propagation, triggering, execution propagation phase: searches for other systems, connects to it, copies self to it and runs propagation phase: searches for other systems, connects to it, copies self to it and runs  may disguise itself as a system process  concept seen in Brunner’s “Shockwave Rider”  implemented by Xerox Palo Alto labs in 1980’s

Morris Worm  one of best know worms  released by Robert Morris in 1988  various attacks on UNIX systems cracking password file to use login/password to logon to other systems cracking password file to use login/password to logon to other systems exploiting a bug in the finger protocol exploiting a bug in the finger protocol exploiting a bug in sendmail exploiting a bug in sendmail  if succeed have remote shell access sent bootstrap program to copy worm over sent bootstrap program to copy worm over

Worm Propagation Model

Recent Worm Attacks  Code Red July 2001 exploiting MS IIS bug July 2001 exploiting MS IIS bug probes random IP address, does DDoS attack probes random IP address, does DDoS attack consumes significant net capacity when active consumes significant net capacity when active  Code Red II variant includes backdoor  SQL Slammer early 2003, attacks MS SQL Server early 2003, attacks MS SQL Server compact and very rapid spread compact and very rapid spread  Mydoom mass-mailing worm that appeared in 2004 mass-mailing worm that appeared in 2004 installed remote access backdoor in infected systems installed remote access backdoor in infected systems

Worm Technology  multiplatform  multi-exploit  ultrafast spreading  polymorphic  metamorphic  transport vehicles  zero-day exploit

Worm propagation process  Find new targets IP random scanning IP random scanning Compromise targets  Exploit vulnerability  Trick users to run malicious code -- Spam Newly infected join infection army Dr Zou’s CAP6135 class

05:29:00 UTC, January 25, 2003 [from Moore et al. “The Spread of the Sapphire/Slammer Worm”]

30 Minutes Later [from Moore et al. “The Spread of the Sapphire/Slammer Worm”] Size of circles is logarithmic in the number of infected machines

Worm Countermeasures  overlaps with anti-virus techniques  once worm on system A/V can detect  worms also cause significant net activity  worm defense approaches include: signature-based worm scan filtering signature-based worm scan filtering filter-based worm containment filter-based worm containment payload-classification-based worm containment payload-classification-based worm containment threshold random walk scan detection threshold random walk scan detection rate limiting and rate halting rate limiting and rate halting

reCaptchas  Generate a question easy to be answered by a human, hard by machines Text spelling Text spelling Image association Image association Audio/visual mixture Audio/visual mixture Semantic/Analogy questions (e.g. which does not belong) Semantic/Analogy questions (e.g. which does not belong)  Google provides access to its reCaptcha implementation

reCaptchas by Example

Proactive Worm Containment

Viruses vs. Worms VIRUS  Propagates by infecting other programs  Usually inserted into host code (not a standalone program) WORM  Propagates automatically by copying itself to target systems  Is a standalone program Sometime it is hard to distinguish virus or worm

Bots  program taking over other computers  to launch hard to trace attacks  if coordinated form a botnet  characteristics: remote control facility remote control facility via IRC/HTTP etcvia IRC/HTTP etc spreading mechanism spreading mechanism attack software, vulnerability, scanning strategyattack software, vulnerability, scanning strategy  various counter-measures applicable

Rootkits  set of programs installed for admin access  malicious and stealthy changes to host O/S  may hide its existence subverting report mechanisms on processes, files, registry entries etc subverting report mechanisms on processes, files, registry entries etc  may be: persisitent or memory-based persisitent or memory-based user or kernel mode user or kernel mode  installed by user via trojan or intruder on system  range of countermeasures needed

Example of Rootkit (TDL4)  From the Rootkit.Win32.TDSS family  Installs in Master Boot Record  Runs before the Operating System  Blocks programs from running  Delivers advertisements  Google redirects  Keeps a copy of payload in MBR so it can be reinstalled  Best way to get rid of it is by replacing the MBR  Previous versions (infecting drivers) could be removed with TDSSKiller from Kasperry group

Rootkit System Table Mods

Traditional Defense Approaches  Analyzing rootkits behaviors Examples: Panorama, HookFinder, K-Tracer Examples: Panorama, HookFinder, K-Tracer  Search common symptoms on infected computers Examples: Copilot, SBCFI, VMwatcher Examples: Copilot, SBCFI, VMwatcher  Preserve kernel code integrity Examples: SecVisor, Patagonix, NICKLE Examples: SecVisor, Patagonix, NICKLE Can be bypassed by return-oriented rootkits Can be bypassed by return-oriented rootkits Hijack function pointers or return addressesHijack function pointers or return addresses Utilize kernel code snippetsUtilize kernel code snippets

Summary  introduced types of malicous software incl backdoor, logic bomb, trojan horse, mobile incl backdoor, logic bomb, trojan horse, mobile  virus types and countermeasures  worm types and countermeasures  bots  rootkits