I3FS: an In-Kernel Integrity Checker and Intrusion Detection File System Swapnil Patil, Anand Kashyap, Gopalan Sivathanu, and Erez Zadok Stony Brook University

I3FS: an In-Kernel Integrity Checker and Intrusion Detection File System Swapnil Patil, Anand Kashyap, Gopalan Sivathanu, and Erez Zadok Stony Brook University

I3FS: An In-Kernel Integrity Checker and Intrusion Detection File System Swapnil Patil, Anand Kashyap, Gopalan Sivathanu, and Erez Zadok Stony Brook University Appears in the proceedings of the 18th USENIX Large Installation System Administration Conference (LISA 2004) Abstract System administrators must stay alert to protect their systems against the effects of malicious intrusions. In Today, improving the security of computer systems this process, the administrators must first detect that an has become an important and difficult problem. Attack- intrusion has occurred and that the system is in an in- ers can seriously damage the integrity of systems. At- consistent state. Second, they have to investigate the tack detection is complex and time-consuming for sys- damage done by attackers, like data deletion, adding in- tem administrators, and it is becoming more so. Current secure Trojan programs, etc. Finally, they have to fix integrity checkers and IDSs operate as user-mode utili- the vulnerabilities to avoid future attacks. These steps ties and they primarily perform scheduled checks. Such are often too difficult and hence machines are mostly re- systems are less effective in detecting attacks that hap- installed and then reconfigured. Our work does not aim pen between scheduled checks. These user tools can be at preventing malicious intrusions, but offers a method easily compromised if an attacker breaks into the sys- of notifying administrators and restricting access once tem with administrator privileges. Moreover, these tools an intrusion has happened, so as to minimize the effects result in significant performance degradation during the of attacks. Our system uses integrity checking to detect checks. and identify the attacks on a host, and triggers damage Our system, called I3FS, is an on-access integrity control in a timely manner. checking file system that compares the checksums of files in real-time. It uses cryptographic checksums to In our approach, given that a host system has been detect unauthorized modifications to files and performs compromised by an attack, we aim at limiting the dam- necessary actions as configured. I3FS is a stackable file age caused by the attack. An attacker that has gained ad- system which can be mounted over any underlying file ministrator privileges could potentially make changes to system (like Ext3 or NFS). I3FS’s design improves over the system, like modifying system utilities (e.g., /bin the open-source Tripwire system by enhancing the func- files or daemon processes), adding back-doors or Tro- tionality, performance, scalability, and ease of use for jans, changing file contents and attributes, accessing administrators. We built a prototype of I3FS in Linux. unauthorized files, etc. Such file system inconsistencies Our performance evaluation shows an overhead of just and intrusions can be detected using Tripwire [9, 10, 22]. 4% for normal user workloads. Tripwire is one of the most popular examples of user mode software that can detect file system inconsisten- 1 Introduction cies using periodic integrity checks. There are three dis- In the last few years, security advisory boards have ob- advantages of any such user-mode system: (1) it can be served an increase in the number of intrusion attacks on tampered with by an intruder; (2) it has significant per- computer systems [2]. Broadly, these intrusions can be formance overheads during the integrity checks; and (3) categorized as network-based or host-based intrusions. it does not detect intrusions in real-time. Our work uses Defense against network-based attacks involves increas- the Tripwire model for the detection of changes in the ing the perimeter security of the system to monitor the state of the file system, but does not have these three network environment, and setting up firewall rules to disadvantages. This is because our integrity checking prevent unauthorized access. Host-based defenses are component is in the kernel. deployed within each system, to detect attack signatures In this paper we describe an in-kernel approach to or unauthorized access to resources. We developed a detect intrusions through integrity checks. We call our host-based system which performs integrity checking at system I3FS (pronounced as i-cubed FS), which is an the file system level. It detects unauthorized access, ma- acronym for In-kernel Integrity checker and Intrusion licious file system activity, or system inconsistencies, detection File System. Our in-kernel system has two and then triggers damage control in a timely manner. major advantages over the current user-land Tripwire. 1 First, on discovering any failure in integrity check, I3FS tionality on top of existing file systems, as can be seen immediately blocks access to the affected file and no- in Figure 1. With no modification to the lower level file tifies the administrator. In contrast, Tripwire checks system, a stackable file system operates between the vir- are scheduled by the administrator, which could leave tual file system (VFS) and another file system. I3FS in- a larger time-period open for multiple attacks and can tercepts file system calls and normally passes them to potentially cause serious damage to users and their data. the lower level file system; however, I3FS also injects its Second, I3FS is implemented inside the kernel as a load- integrity checking operations and based on return values able module. We believe that the file system provides the to system calls, it affects the behavior that user applica- most well-suited hooks for security modules because it tions see. is one level above the persistent storage and most intru- When designing I3FS, we aimed at offering a good sions would cause file system activity. balance between security and performance. We offer In addition to providing these advantages over Trip- configurable options that allow administrators to tailor wire, our system is implemented as a stackable layer the features of I3FS to their site needs, trading off func- such that it can be stacked on top of any file system. tionality for performance. For example, we can use stacking over NFS to provide a network-wide secure file system as well. Finally, it User Process is easier to compromise user-level tools (like Tripwire) open() User than instrumenting successful attacks at the kernel level. We used a stackable file system template generated by sys_open() FiST [28] to build an integrity checking layer which in- vfs_open() 3 tercepts calls to the underlying file system. I FS uses Virtual File System (VFS) Kernel cryptographic checksums to check for integrity. It stores the security policies and the checksums in four different i3fs_open() in-kernel Berkeley databases [8]. During setup, the ad- ministrator specifies detection policies in a specific for- mat, which are loaded into the I3FS databases. File sys- I3FS tem specific calls trigger the integrity checker to com- Result Cache Policy Cache pare the checksums for files that have an associated pol- icy. Based on the results, the action is logged and ac- cess is allowed or denied for that file. Thus, our system design uses on-access, real-time intrusion detection to PolicyDB DataDB MetaDB AccessDB restrict the damage caused by an intrusion attack. The rest of the paper is organized as follows. Sec- tion 2 outlines the design goals and architecture of I3FS. ext3_open() Section 3 discusses the implementation specifics and key operations of I3FS. Section 4 presents the evaluation of File System (Ext3) the system. Section 5 discusses related work. We con- clude in Section 6 and discuss future directions. Figure 1: I3FS Architecture 2 Design 2.1 Threat Model Checksumming using hash functions is a common way 3 of ensuring data integrity. Recently, the use of crypto- I FS is primarily aimed at detecting the following: graphic hash functions has become a standard in Internet • Malicious replacement of vital files such as the applications and protocols. Cryptographic hash func- ones in the /bin directory. Attackers could re- tions map strings of different lengths to short fixed size place programs such as ls and ps with Trojans, results. These functions are generally designed to be col- without the knowledge of the system administra- lision resistant, which means that finding two strings that tors. These kind of attacks can be tracked and pre- have the same hash result is impractical. In addition to vented through I3FS by setting up appropriate poli- basic collision resistance, functions like MD5 [19] and cies for important files. SHA1 [4] also offer randomness, unpredictability of the • Unauthorized modification of data by an eaves- output, etc. In I3FS, we use MD5 for computing check- dropper in the network, in the case of remote file sums. systems, where the client file system communicates We have designed I3FS as a stackable file system [26]. with the disk over an insecure network. File system stacking is a technique to layer new func- • Corruption of disk data due to hardware errors. In- 2 expensive disks such as IDE disks silently corrupt integrity check failures are logged in the I3FS sys- data stored in them due to magnetic interference tem. or transient errors. These errors cannot always be • -g GRANULARITY specifies whether the check- detected by normal file systems. I3FS can notify summing is done on a per page basis or for the the administrator about disk corruption if there is a entire file at once. The available granularity op- suitable policy associated with the file. tions are PER PAGE or WHOLE FILE. PER PAGE is useful for mostly-random file access patterns, and 2.2 Policies WHOLE FILE is useful for mostly sequential small- The two main goals we considered when designing the file access patterns. policies for I3FS were versatility and ease of use. The • -f FREQ is an integer value that determines the policy syntax provided by I3FS is similar to the user frequency of integrity checks.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    12 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us