Docsity

Malware Lecture Note - Computer Security | CSE 543, Study notes of Computer Science

Partial preview of the text

Download Malware Lecture Note - Computer Security | CSE 543 and more Study notes Computer Science in PDF only on Docsity!

CSE 543 - Computer Security

Lecture 9 - Malware

September 25, 2007

URL: http://www.cse.psu.edu/~tjaeger/cse543-f07/

The Morris Worm

Robert Morris, a 23 doctoral student from Cornell

Wrote a small (99 line) program

November 3rd, 1988

Simply disabled the Internet

How it did it

Reads /etc/password, they tries the obvious choices and dictionary, /usr/dict words

Used local /etc/hosts.equiv, .rhosts, .forward to identify hosts that are related

• Tries cracked passwords at related hosts (if necessary)

• Uses whatever services are available to compromise other hosts

Scanned local interfaces for network information

Covered its tracks (set is own process name to sh, prevented accurate cores, re-forked itself)

Are those vulnerabilities a problem today?

What was the problem with the threat model at the
time of the Morris worm?
Which of these vulnerabilities are still a problem
today?

Have we fixed the threat model?

Buffer Overflows

One means by which the bad
guys take over a host

install root kits

use as SPAM bots

use as zombies

launch other attacks

There are many attacks, but
this is most prevalent
It all starts with some
programmer mistake

e.g., bad software TEXT DATA HEAP STACK 0x000.... 0xfff....

CSE497b Introduction to Computer and Network Security - Spring 2007 - Professor Jaeger Page Defenses

  • “Canary” on the stack
    • Random value placed between the local vars and the return address
    • If canary is modified, program is stopped
    • Will this address the “basic” buffer overflow?
  • Alternative:
    • Non-executable stack
  • Are we done? 7 Local Var Buffer Local Var Return Address Func Parameters Previous Function CANARY

CSE497b Introduction to Computer and Network Security - Spring 2007 - Professor Jaeger Page Code Injection

  • So, the problem is solved then? 8

Commercial System Defenses

Buffer overflow prevention is now common
Linux

StackGuard

Non-executable stack

Address space randomization (for the stack)

Windows Vista

Data execution prevention

Address space randomization (for all code)

Change local variable order on stack

Verify exception handlers

Function pointer obfuscation

Other Ways to Gain Entry

Unfortunately, there are still lots of attack paths...
Email Attachments

Many viruses

Web

Cross-site scripting, Javascript, flawed plug-ins

Trojan horse

What does that free program do?

Others?

Botnets

A set of infected systems under the control of one
authority

Usually, to distribute spam

Purpose of compromise has changed...

• Bots may implement antivirus

Estimated: 10 million bots

Botmasters trade/sell resources