CIT 380: Securing Computer SystemsSlide #1 CIT 380: Securing Computer Systems Rootkits.

Slides:



Advertisements
Similar presentations
COEN 250 Computer Forensics Unix System Life Response.
Advertisements

Rootkits CIS 413 This presentation is an amalgam of presentations by Mark Michael, Randy Marchany and Ed Skoudis. I have edited and added material. Dr.
16/03/2009Igor Neri - Sicurezza Informatica1/34 Rootkit: Analysis, Detection and Protection Igor Neri Sicurezza Informatica – Prof. Bistarelli.
Using Nagios for Intrusion detection Miguel Cárdenas Montes Elio Pérez Calle Francisco Javier Rodríguez Calonge.
1 Future Technologies Group Shane Canon, canon at nersc dot govSummer Linux Kernel Class Root Kit Protection and Detection Shane Canon October
ROOTKIT VIRUS by Himanshu Mishra Points to be covered Introduction History Uses Classification Installation and Cloaking Detection Removal.
Hacker, Cracker?! Are they the same? No!!! Hacker programmers intensely interested in the arcane and recondite workings of any computer operating system.
Rootkits.
Windows Security and Rootkits Mike Willard January 2007.
電腦攻擊與防禦 The Attack and Defense of Computers Dr. 許 富 皓.
1 電腦攻擊與防禦 The Attack and Defense of Computers Dr. 許 富 皓.
Vijay krishnan Avinesh Dupat  Collection of tools (programs) that enable administrator-level access to a computer or computer network.  The main purpose.
Jai, 2004 Incident Response & Computer Forensics Chapter 6 Live Data Collection from Unix Systems Information Networking Security and Assurance Lab National.
ROOT KITS. Overview History What is a rootkit? Rootkit capabilities Rootkits on windows OS Rootkit demo Detection methodologies Good tools for detection.
Information Networking Security and Assurance Lab National Chung Cheng University Live Data Collection from Unix Systems.
Guide to Operating System Security Chapter 2 Viruses, Worms, and Malicious Software.
Internet Relay Chat Chandrea Dungy Derek Garrett #29.
Linux Networking and Security Chapter 10 File Security.
VMM Based Rootkit Detection on Android Class Presentation Pete Bohman, Adam Kunk, Erik Shaw.
1 Chap 10 Malicious Software. 2 Viruses and ”Malicious Programs ” Computer “Viruses” and related programs have the ability to replicate themselves on.
Securing Operating Systems Chapter 10. Security Maintenance Practices and Principles Basic proactive security can prevent many problems Maintenance involves.
By, Anish Shanmugasundaram Yashwanth Sainath Jammi.
Hands-On Microsoft Windows Server 2008
Rootkits Brent Boe Vasanthanag Vasili.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
CIT 380: Securing Computer SystemsSlide #1 CIT 380: Securing Computer Systems Scanning.
Rootkits. EC-Council The Problem  Microsoft Corp. security researchers are warning about a new generation of powerful system-monitoring programs, or.
Vijay Krishnan Avinesh Dupat. A rootkit is software that enables continued privileged access to a computer while actively hiding its presence from administrators.
Administrator Protect against Malware by: Brittany Slisher and Gary Asciutto.
1 CSCD 434 Winter 2013 Lecture 10 Attacks and More Attacks Root kits.
CIS 450 – Network Security Chapter 15 – Preserving Access.
CIS 450 – Network Security Chapter 16 – Covering the Tracks.
Securing Operating Systems Rootkits - TAPTI SAHA.
CIT 380: Securing Computer SystemsSlide #1 CIT 380: Securing Computer Systems Backdoors and Rootkits.
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.
LINUX ROOTKITS Chirk Chu Chief Security Officer University of Alaska Statewide System Information Technology Services.
CSC 382: Computer SecuritySlide #1 Firewalls. CSC 382: Computer SecuritySlide #2 Single Host Firewall Simplest type of firewall—one host acts as a gateway.
Mathieu Castets October 17th,  What is a rootkit?  History  Uses  Types  Detection  Removal  References 2/11.
Rootkits. Agenda Introduction Definition of a Rootkit Types of rootkits Existing Methodologies to Detect Rootkits Lrk4 Knark Conclusion.
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.
VMM Based Rootkit Detection on Android Class Presentation Pete Bohman, Adam Kunk, Erik Shaw.
Rootkits What are they? What do they do? Where do they come from?
CIT 380: Securing Computer SystemsSlide #1 CIT 380: Securing Computer Systems Network Monitoring.
RootKit By Parrag Mehta OUTLINE What is a RootKit ? Installation Types How do RootKits work ? Detection Removal Prevention Conclusion References.
What is a port The Ports Collection is essentially a set of Makefiles, patches, and description files placed in /usr/ports. The port includes instructions.
Hacking Windows 9X/ME. Hacking framework Initial access physical access brute force trojans Privilege escalation Administrator, root privileges Consolidation.
CIT 380: Securing Computer SystemsSlide #1 CIT 380: Securing Computer Systems Backdoors and Rootkits.
Instructor: Dr. Harold C. Grossman Student: Subhra S. Sarkar
Rootkits, Backdoors, and Trojans ECE 4112 – Lab 5 Summary – Spring 2006 Group 9 Greg Sheridan Terry Harvey Group 10 Matthew Bowman Laura Silaghi Michael.
COEN 250 Computer Forensics Unix System Life Response.
Changes in Computer Security Will You Be Better Off?
CIT 380: Securing Computer SystemsSlide #1 CIT 380 Securing Computer Systems Threats.
VMM Based Rootkit Detection on Android
Lecture 5 Rootkits Hoglund/Butler (Chapters 1-3).
CIT 380: Securing Computer SystemsSlide #1 CIT 380: Securing Computer Systems Scanning.
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,
Securing a Host Computer BY STEPHEN GOSNER. Definition of a Host  Host  In networking, a host is any device that has an IP address.  Hosts include.
I have edited and added material.
Rootkit A rootkit is a set of tools which take the ability to access a computer or computer network at administrator level. Generally, hackers install.
Backtracking Intrusions
Chap 10 Malicious Software.
I have edited and added material.
CSC 382/582: Computer Security
Rootkits Jonathan Hobbs.
Hiding Malware Rootkits
Linux Security.
Chap 10 Malicious Software.
Attacks and More Attacks
Crisis and Aftermath Morris worm.
Presentation transcript:

CIT 380: Securing Computer SystemsSlide #1 CIT 380: Securing Computer Systems Rootkits

CIT 380: Securing Computer SystemsSlide #2 Topics Rootkits –User-mode Rootkits –Kernel Rootkits –Detecting Rootkits –Recovery from a Rootkit

CIT 380: Securing Computer SystemsSlide #3 What is a rootkit? Collection of attacker tools installed after an intruder has gained access –Log cleaners –File/process/user hiding tools –Network sniffers –Backdoor programs

CIT 380: Securing Computer SystemsSlide #4 Rootkit Goals 1.Remove evidence of original attack and activity that led to rootkit installation. 2.Hide future attacker activity (files, network connections, processes) and prevent it from being logged. 3.Enable future access to system by attacker. 4.Install tools to widen scope of penetration. 5.Secure system so other attackers can’t take control of system from original attacker.

CIT 380: Securing Computer SystemsSlide #5 Concealment Techniques Remove log and audit file entries. Modify system programs to hide attacker files, network connections, and processes. Modify logging system to not log attacker activities. Modify OS kernel system calls to hide attacker activities.

CIT 380: Securing Computer SystemsSlide #6 Installation Concealment Use a subdirectory of a busy system directory like /dev, /etc, /lib, or /usr/lib Use dot files, which aren’t in ls output. Use spaces to make filenames look like expected dot files: “. “ and “.. “ Use filenames that system might use –/dev/hdd (if no 4 th IDE disk exists) –/usr/lib/libX.a (libX11 is real Sun X-Windows) Delete rootkit install directory once installation is complete.

CIT 380: Securing Computer SystemsSlide #7 Attack Tools Network sniffer –Including password grabber utility Password cracker Vulnerability scanners Autorooter –Automatically applies exploits to host ranges DDOS tools

CIT 380: Securing Computer SystemsSlide #8 History of Rootkits 1989: Phrack 25 Black Tie Affair: wtmp wiping. 1994: Advisory CA about SunOS rootkits. 1996: Linux Rootkits (lrk3 released.) 1997: Phrack 51 halflife article: LKM-based rootkits 1998: Silvio Cesare’s kernel patching via kmem. 1999: Greg Hoglund’s NT kernel rootkit paper

History of Rootkits 2005: Sony ships CDs with rootkits that hide DRM and spyware that auto-installs when CD played. 2006: SubVirt rootkit moves real OS to a VM. CIT 380: Securing Computer SystemsSlide #9

CIT 380: Securing Computer SystemsSlide #10 Rootkit Types User-mode Rootkits –Binary Rootkits replace user programs. Trojans: ls, netstat, ps Trojan backdoors: login, sshd. –Library Rootkits replace system libraries. Intercept lib calls to hide activities and add backdoors. Kernel Rootkits –Modify system calls/structures that all user-mode programs rely on to list users, processes, and sockets. –Add backdoors to kernel itself.

CIT 380: Securing Computer SystemsSlide #11 Binary Rootkits Install trojan-horse versions of common system commands, such as ls, netstat, and ps to hide attacker activities.. Install programs to edit attacker activity from log and accounting files. Install trojan-horse variants of common programs like login, passwd, and sshd to allow attacker continued access to system. Install network sniffers.

CIT 380: Securing Computer SystemsSlide #12 Linux Root Kit (LRK) v4 Features chsh Trojaned! User->r00t crontab Trojaned! Hidden Crontab Entries du Trojaned! Hide files fix File fixer! ifconfig Trojaned! Hide sniffing inetd Trojaned! Remote access linsniffer Packet sniffer! login Trojaned! Remote access ls Trojaned! Hide files netstat Trojaned! Hide connections passwd Trojaned! User->r00t ps Trojaned! Hide processes rshd Trojaned! Remote access sniffchk Program to check if sniffer is up and running syslogd Trojaned! Hide logs tcpd Trojaned! Hide connections, avoid denies top Trojaned! Hide processes wted wtmp/utmp editor! z2 Zap2 utmp/wtmp/lastlog eraser!

CIT 380: Securing Computer SystemsSlide #13 Linux Root Kit (LRK) v4 Trojans ifconfig – Doesn’t display PROMISC flag when sniffing. login – Allows login to any account with the rootkit password. If root login is refused on your terminal login as "rewt". Disables history logging when backdoor is used. ls – Hides files listed in /dev/ptyr. All files shown with 'ls -/' if SHOWFLAG enabled. passwd – Enter your rootkit password instead of old password to become root. ps – Hides processes listed in /dev/ptyp. rshd – Execute remote commands as root: rsh -l rootkitpassword host command syslogd – Removes log entries matching strings listed in /dev/ptys.

CIT 380: Securing Computer SystemsSlide #14 Binary Rootkit Detection Use non-trojaned programs –ptree is generally uncompromised –tar will archive hidden files, the list with -t –lsof is also generally safe –Use known good tools from CD-ROM. File integrity checks –tripwire, AIDE, Osiris –rpm –V –a –Must have known valid version of database offline or attacker may modify file signatures to match Trojans.

CIT 380: Securing Computer SystemsSlide #15 Library Rootkits t0rn rootkit uses special system library libproc.a to intercept process information requested by user utilities. Modify libc –Intercept system call data returning from kernel, stripping out evidence of attacker activities. –Alternately, ensure that rootkit library providing system calls is called instead of libc by placing it in /etc/ld.so.preload

CIT 380: Securing Computer SystemsSlide #16 Kernel Rootkits Kernel runs in supervisor processor mode –Complete control over machine. Rootkits modify kernel system calls –execve modified to run Trojan horse binary for some programs, while other system calls used by integrity checkers read original binary file. –setuid modified to give root to a certain user. Advantage—Stealth –Runtime integrity checkers cannot see rootkit changes. –All programs impacted by kernel Trojan horse. –Open backdoors/sniff network without running processes.

CIT 380: Securing Computer SystemsSlide #17 Types of Kernel Rootkits Loadable Kernel Modules –Device drivers are LKMs. –Can be defeated by disabling LKMs. –ex: Adore, Knark Alter running kernel in memory. –Modify /dev/kmem directly. –ex: SucKit Alter kernel on disk.

CIT 380: Securing Computer SystemsSlide #18 Kernel Rootkit Detection List kernel modules –lsmod –cat /proc/modules Examine kernel symbols (/proc/ksyms ) –Module name listed in [] after symbol name.

Kernel Rootkit Detection Check system call addresses –Compare running kernel syscall addresses with those listed in System.map generated at kernel compile. All of these signatures can be hidden/forged. CIT 380: Securing Computer SystemsSlide #19

CIT 380: Securing Computer SystemsSlide #20 Knark Linux-based LKM rootkit Features –Hide/unhide files or directories –Hide TCP or UDP connections –Execution redirection –Unauthenticated privilege escalation –Utility to change UID/GID of a running process. –Unauthenticated, privileged remote execution daemon. –Kill –31 to hide a running process. modhide: assistant LKM that hides Knark from module listing attempts.

CIT 380: Securing Computer SystemsSlide #21 Rootkit Detection Offline system examination –Mount and examine disk using another OS kernel+image. –Knoppix: live CD linux distribution. Computer Forensics –Examine disk below filesystem level. –Helix: live CD linux forensics tool.

CIT 380: Securing Computer SystemsSlide #22 Rootkit Detection Utilities chkrootkit –Detects >50 rootkits on multiple UNIX types. –Checks commonly trojaned binaries. –Examines log files for modifications. –Checks for LKM rootkits. –Use –p option to use known safe binaries from CDROM. carbonite –LKM that searches for rootkits in kernel. –Generates and searches frozen image kernel process structures.

CIT 380: Securing Computer SystemsSlide #23 Detection Countermeasures Hide rootkit in unused sectors or in unused fragments of used sectors. Install rootkit into flash memory like PC BIOS, ensuring that rootkit persists even after disk formatting and OS re-installation.

CIT 380: Securing Computer SystemsSlide #24 Rootkit Recovery Restore compromised programs from backup –Lose evidence of intrusion. –Did you find all the trojans? Backup system, then restore from tape –Save image of hard disk for investigation. –Restore known safe image to be sure that all trojans have been eliminated. –Patch system to repair exploited vulnerability.

CIT 380: Securing Computer SystemsSlide #25 Key Points Backdoors allow intruder into system without using exploit again. Rootkits automatically deeply compromise a system once root access is attained. Rootkits are easy to use, difficult to detect. Don’t trust anything on a compromised system— access disk from a known safe system, like a Knoppix CD. Recovery requires a full re-installation of the OS and restoration of files from a known good backup.

CIT 380: Securing Computer SystemsSlide #26 References 1.Oktay Altunergil, “Scanning for Rootkits,” Silvio Cesare, “Runtime kernel kmem patching,” William Cheswick, Steven Bellovin, and Avriel Rubin, Firewalls and Internet Security, 2 nd edition, Anton Chuvakin, “An Overview of UNIX Rootkits,” iDEFENSE whitepaper, Dave Dittrich, “Rootkits FAQ,” Greg Hoglund and Gary McGraw, Exploiting Software: How to Break Code, Addison-Wesley, Samuel T. King et. al., “SubVirt: Implementing malware with virtual machines”, McClure, Stuart, Scambray, Joel, Kurtz, George, Hacking Exposed, 3 rd edition, McGraw-Hill, Peikari, Cyrus and Chuvakin, Anton, Security Warrior, O’Reilly & Associates, pragmatic, (nearly) Complete Loadable Linux Kernel Modules, Marc Russinovich, “Sony, Rootkits and Digital Rights Management Gone Too Far,” management-gone-too-far.aspx management-gone-too-far.aspx 12.Jennifer Rutkowska, “Red Pill: or how to detect VMM using (almost) one CPU instruction,” Ed Skoudis, Counter Hack Reloaded, Prentice Hall, Ed Skoudis and Lenny Zeltser, Malware: Fighting Malicious Code, Prentice Hall, Ranier Wichman, “Linux Kernel Rootkits,”