Docsity

System Security Lecture 7: Malicious Software, Study notes of Communication

Partial preview of the text

Download System Security Lecture 7: Malicious Software and more Study notes Communication in PDF only on Docsity!

ENTS 689i

Part II: System Security

Lecture 7: Malicious software

Today's Class

  • Attacker overview
  • Types of malware
  • Malware techniques
  • Malware mitigation
  • Trust and challenges
  • Exam and HW questions

Attacker profiles

  • Attackers have different tools/skills
    • Download and use tools (“script kiddies”)
    • Modify/implement known techniques
    • Develop/use advanced toolsets
  • Attackers have different motivations
    • Financial
    • Political
    • Ideological
    • Reputation or ego

5

Lifecycle of attack

vulnerability discovery payload injection target reconnaissance exploit deployment exploit development attacker control

7

Malware functionality

  • Malware can do many different things
    • Like any other program
    • Depends on privilege level at which it runs
    • We will discuss some common ones
  • Hiding: remain on system undetected
    • Can be passive or active
    • “hiding in the noise”
    • builtin hidden file features
    • rootkit techniques, OS modification
    • Antivirus subversion

8

  • Reconnaissance: collect user/system info
    • Harvest email/IP addresses of new targets
    • Keystroke logging
    • Packet sniffing
    • Password cracking
    • Check if vulnerable to later stages of attack
    • Commonly associated with spyware
  • Attack: target other systems
    • Use one machine as a stepping stone
    • Decreases chance of detection/attribution

Malware functionality

Malware functionality

  • Data destruction: remove or modify data
    • Might delete critical system files
    • Or user data
    • Variant: encrypt/remove user data for ransom
  • Data distribution/storage
    • Use compromised server as control node
    • Warez servers: illegal/stolen content

Trojan horse

  • Appears to do something good or expected
  • Has unexpected or hidden functionality
  • Frequently performs much/all of the anticipated functionality
  • Common examples:
    • Sysadmin tools, e.g., ls, ps, lsmod
    • Screen savers, games, user “toy” programs
    • Email attachments

Document Virus

  • Commonly delivered via email
    • “Check out this important file”
  • Many programs have rich content features
  • Embed many types of functionality
  • Problem enhanced by auto launchers
    • Open by file extension
    • Open by file content/magic headers
  • Also can use program macro languages
    • Programspecific series of repeatable steps

14

Boot Virus

  • Modifies computer boot/load sequence
  • Typical boot process:
    • BIOS > boot loader > OS kernel > programs
  • What if we load virus before kernel?
  • Doesn't give OS chance to check/prevent installation
  • Most loaders don't verify before loading
  • Typical installation: replace boot section
  • Can also happen at firmware level

Spyware

  • Generally, software that collects user info
  • May include many forms of collection
    • Keystroke logging
    • Tracking user web viewing
    • Collecting critical identification info
    • Email address harvesting
  • (^) Many ways to install, very hard to remove
  • Adware: force user's attention to products
    • Comes included with some downloads

Rootkit

  • Provides stealth and persistence
  • Refers to ability to maintain “root” privilege
  • Typically involves some form of hiding
    • Files, processes, network connection
  • Frequently includes backdoor for reentry
  • Can occur at user or kernel level

Software trust

  • How do we know which software to trust?
  • Given to us by our friend?
    • Where did he or she get it?
  • Created by a trustworthy vendor?
    • Software can still have accidental bugs
  • Downloaded from public web site?
  • How do we know what a program does?
    • All of the files it reads/writes
    • All of the packets it sends and to whom

Software trust

  • Hard to know what program should do
  • Particularly difficult to identify all required access permissions
  • Moving same code into new environments can change access requirements
  • Two key trust questions:
    • What software is running on my own machine?
    • Can remote party trust other end of session?