Docsity

Understanding Malware & Microsoft's Response: Types & Precautions - Prof. David M. Nicol, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Understanding Malware & Microsoft's Response: Types & Precautions - Prof. David M. Nicol and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Malware and Exploit Enabling

Code

Information Assurance

CS461/ECE

Reading Material

• Security in Computing: 3.1-2.

• Ken Thompson and Trojans

  • http://www.ece.cmu.edu/~ganger/712.fall02/p

apers/p761-thompson.pdf

  • Worm Anatomy and Model

http://portal.acm.org/citation.cfm?id=

• Smashing the Stack for Fun and Profit

http://insecure.org/stf/smashstack.html

Why Do We Care?

• SANS Top 20 Internet Security

Vulnerabilities

  • http://www.sans.org/top20/

• Broad issues very similar year in and year

out

Zero Day Exploit

• An exploit that has no patch available

• Time between exploit discovery and wide

activation shrinking

• Malware developer has trade-off in launch

tactics

  • Big splash but faster discovery
  • Reduced attack rate but longer undiscovered

Malicious Code

• Set of instructions that cause a site’s

security policy to be violated

• Often leveraging an inadvertent flaw

(design or implementation)

  • To propagate/install on target
  • To cause harm on target

Malware Summary

Code type Characteristics Virus Attaches itself to program and copies to other programs Trojan Horse Contains unexpected, additional funtionality 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 Netbot Trapdoor programs orchestrated through control channel (IRC) Root Kit Hooks standard OS calls to hide data

Thompson's Trojan Compiler

• Detect it is compiling “login” program

  • Add “bug” to accept fixed password

• Problem:

  • Easily seen in code review

• Solution:

  • Add second bug activated when compiling

compiler itself

  • Then remove bugs from source

Key Loggers and Spyware

• Gather information from computer

  • Send back to the central office

• From key loggers can gather

  • Passwords
  • Confidential communication
  • Keep track of your kids/employees

• From spyware can gather

  • Web browsing habits
  • Gather marketing information

Sony Player DRM and Rootkits

  • Bad press for Sony 2005
    • Mark Russinovich's original observations http://blogs.technet.com/markrussinovich/archive/ 5/10/31/sony-rootkits-and-digital-rights-management- gone-too-far.aspx#comments
    • A timeline
      • http://www.boingboing.net/2005/11/14/sony_anticustomer_te. html
  • To ensure that copy protection is not evaded install rootkit to hide the protection code - Available for other attackers to use - Uninstallable - Uses CPU and memory - Not adequately noted in EULA

Virus Operation

• Virus Phases:

  • Dormant: Waiting on trigger event
  • Propagation: Replicating to programs/disks
  • Triggering: By event to execute payload
  • Execution: Executing payload

• Details usually Machine/OS specific

  • Exploits different features or weaknesses

Virus Attachment

  • A Virus can attach itself to a program or to data by
    • Appending itself to either the beginning or end of either source code or assembly, so it is activated when the program is run
    • Integrate itself into the program, spread out code
    • Integrate into data: executable text macro, scripting
    • Macros and email attachments
  • An activated virus may:
    • Cause direct or immediate harm
    • Run as a memory resident program (TSR, daemon, or service)
    • Replace or relocate boot sector programs, start at system start- up

Macro Viruses

  • Macro code attached to some data file
    • Interpreted rather than compiled
    • Platform independent
  • Interpreted by program using the file
    • E.g., Word/Excel macros
    • Esp. using auto command and command macros
    • Often automatically invoked
  • Blurs distinction between data and program files

making task of detection much harder

  • Classic trade-off: “ease of use” vs “security”

Basic Precautions

• Don’t import untrusted programs

  • Who can you trust?
  • Viruses have been found in commercial

shrink-wrap software

  • Standard download sites have been corrupted
    • Check MD5 hashes

• Scan for viruses, install anti-virus software

• Update anti-virus software regularly

Signature Scanning

• Early viruses had characteristic code

patterns known as signatures

• Create a database of patterns, search

files for patterns (McAffee)

• Use data-mining, learning, feature

extraction etc. to look for disguised or

obfuscated patterns

• Can only scan for known signatures