• No results found

A Linux Kernel Auditing Tool for Host-Based Intrusion Detection

N/A
N/A
Protected

Academic year: 2021

Share "A Linux Kernel Auditing Tool for Host-Based Intrusion Detection"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

A Linux Kernel Auditing Tool for Host-Based Intrusion

Detection

William A. Maniatty,

Adnan Baykal

, Vikas Aggarwal,

Joshua Brooks, Aleksandr Krymer and Samuel Maura

(2)

Overview

Security management approaches

• Prevention - slows down attackers

• Detection - alert administrators when attacks occur • Containment - limit damage of a successful attack • Recovery - repair (if feasible) the damage

Where to apply these approaches

• Host based • Network based

Our focus on host-based intrusion detection.

• We needed to generate larger amounts of high quality audit data • This is a lot like debugging, so extend a debugging tool

. We chose Yaghmour and Deganais' Linx Trace Toolkit (LTT) [7])

. Need to observe all system calls

(3)

Instrumentation Design Choices

We instrumented each system call.

We did NOT use wrapper functions for systems calls

• Many tools do this (easy to code, e.g. systrace [4]).

• But tends to cause conicts when using more than one of these tools.

Used conditional compilation and inlining to minimize overhead

Has Useful Related Projects/Features

• RelayFS [6] (we use this) • Flight Recorder

• DProbes [3]

• Kernel Hooks [2]

Allows for native mode tracing

• Allows for tracing on SMP systems (unlike ReVirt [5])

(4)

Architecture Used

... ...

... ...

Off Line Post Processing

Visualizer Trace

Log Analyzer

Kernel Trace Daemon

Log File CPU 0 Log File CPU N−1 Proc Log Rules Database Capture Tree Process Buffer Control and Configuration

User Buffers (CPU N−1) User Buffers (CPU 0) Streaming Data Analyzer Trace Buffers (PE 0)

Trace Buffers (PE N−1) System Calls Trace Logic /proc file system

(5)

Data Management issues

We get a lot of data

• Tracing all system calls on a lightly loaded system gives about 40 GB/24 hours. • We use inline compression (zlib), and get around 95 % size reduction

• Observed run-time slowdown of only 3-5% on I/O intensive tasks.

Support misuse detection (e.g. privilege escalation)

We are looking into mining techniques for our data

• Time series based (currently we are trying wavelet based approaches). • Sequence based.

• Clustering and classication (principle component analysis).

Challenges of mining

• The data is highly dimensional and categorical • This makes clustering hard.

(6)

Instrumentation details

A good audit can log all inputs and results of system calls.

• Including Security credentials

uid_t uid , euid , suid , f s u i d ; gid_t gid , egid , sgid , f s g i d ; i n t ngroups ;

gid_t groups [NGROUPS] ;

kernel_cap_t cap_effective , cap_inheritable , cap_permitted ;

i n t k e e p _ c a p a b i l i t i e s : 1 ; s t r u c t user_struct ∗ user ;

/∗ Other u s e f u l s e c u r i t y r e l a t e d f i e l d s ∗/ i n t did_exec : 1 ;

(7)

Concluding Remarks

• Policy instrumentation needs dierent from auditing

. E.g. Linux Security Modules has user exit style programming and lkms.

. Hooks placed before major changes to kernel state (does not record results).

. Sometimes not invoked (i.e. if parameters fail sanity checks).

. Only security related calls have instrumentation so exploitable calls (e.g. mmap) may

lack hooks

. We are investigating combining LSM (policy) and LTT (audit)

• Virtual Machines provide containment and tamper resistance

. But many users run native mode, and need logging

. Ideally a useful tool should work in BOTH virtual and native mode

• Oers strong misuse detection and response

. Highly detailed ight recorder dumps

• Close coupling of mining and acquisition looks promising

. Begin with traditional clustering, time series and sequence mining

(8)

Bibliography

References

[1] B. Dragovic, K. Fraser, S. Hand, T. Harris, A. Ho, I. Pratt, A. Wareld, P. Barham,

and R. Neugebauer. Xen and the art of virtualization. In Proceedings of the ACM

Symposium on Operating Systems Principles, October 2003.

[2] R. J. Moore. Generalised kernel hooks interface - a high speed call-back mechanism

for the linux kernel. In Proceedings of the UKUUG Linux 2001 Linux Developers'

Conference, Manchester, England, July 2001. On line at

http://www-124.ibm.com/linux/projects/kernelhooks/.

[3] R. J. Moore. A universal dynamic trace for linux and other operating systems. In

Proceedings of the FREENIX Track: 2001 USENIX Annual Technical Conference,

Boston, Massachusetts, USA, June 2001.

(9)

[5] Peter M. Chen Samuel T. King. Backtracking intrusions. In Proceedings of the 19th

ACM Symposium on Operating Systems Principles (SOSP 2003), pages 223236,

Bolton Landing, NY USA, October 2003.

[6] K. Yaghmour. RelayFS: An ecient unied approach for trasmitting data from

kernel to user space. In Proceedings of the Ottawa Linux Symposium 2003, Ottawa,

Ontario, Canada, July 2003. The Linux Symposium's 2003 web page is at

http://www.linuxsymposium.org/2003/.

[7] K. Yaghmour and M. R. Dagenais. Measuring and characterizing system behavior

using kernel-level event logging. In Proc. of the USENIX Annual 2000 Technical

Conference, pages 1326. USENIX, June 2000.

References

Related documents

The export sales exceeded previous year’s and planned sales quantity figures as well.. Source of the increase was export to Ukraine

The thesis also contributes to debates surrounding homelessness policy by identifying implications in relation to: the range and flexibility of the routes through homelessness

 Assess the suitability of the existing institutional and financial framework to support the new vision.  Decide on the best institutional and financial model/ mechanism to

Requires one or more of MSS Host-Based Intrusion Detection Services, MSS Integrated Firewall with Intrusion Protection Service (IPS) Service or MSS Network Intrusion Detection

 Use the standard budget format spreadsheet to create and submit the initial budget and the final budget requests to the SGA Treasurer Blackboard site on time..  Ask for help

A graduate of Electrical Engineering, and now Managing Director and owner of the Uganda It firm Infinity Computers & Communications Company LTD( which previously traded under

“The Marketing team’s request to develop a guide to help find areas for profitable growth, then marry that data with agency appointment strategies, was a clear example of