1 Intrusion Detection Auditing, Watermarking Dec 7, 2006 Lecture 10 IS 2150 / TEL 2810 Introduction to Security.

Slides:



Advertisements
Similar presentations
Intrusion Detection Systems (I) CS 6262 Fall 02. Definitions Intrusion Intrusion A set of actions aimed to compromise the security goals, namely A set.
Advertisements

Access Control Methodologies
1 Cryptography and Network Security Third Edition by William Stallings Lecturer: Dr. Saleem Al_Zoubi.
Intrusion Detection Systems and Practices
Report on Intrusion Detection and Data Fusion By Ganesh Godavari.
1 Auditing CSSE 490 Computer Security Mark Ardis, Rose-Hulman Institute May 3, 2004.
This work is supported by the National Science Foundation under Grant Number DUE Any opinions, findings and conclusions or recommendations expressed.
1 Intrusion Detection CSSE 490 Computer Security Mark Ardis, Rose-Hulman Institute May 4, 2004.
In the last part of the course we make a review of selected technical problems in multimedia signal processing First problem: CONTENT SECURITY AND WATERMARKING.
Lesson 13-Intrusion Detection. Overview Define the types of Intrusion Detection Systems (IDS). Set up an IDS. Manage an IDS. Understand intrusion prevention.
Intrusion detection Anomaly detection models: compare a user’s normal behavior statistically to parameters of the current session, in order to find significant.
May 27, 2004ECS 235Slide #1 Waterfall Life Cycle Model Requirements definition and analysis –Functional and non-functional –General (for customer), specifications.
seminar on Intrusion detection system
Intrusion Detection Systems. Definitions Intrusion –A set of actions aimed to compromise the security goals, namely Integrity, confidentiality, or availability,
Host Intrusion Prevention Systems & Beyond
Intrusion Detection Systems CS391. Overview  Define the types of Intrusion Detection Systems (IDS).  Set up an IDS.  Manage an IDS.  Understand intrusion.
Lecture 11 Intrusion Detection (cont)
Department Of Computer Engineering
Building Survivable Systems based on Intrusion Detection and Damage Containment Paper by: T. Bowen Presented by: Tiyseer Al Homaiyd 1.
INTRUSION DETECTION SYSTEMS Tristan Walters Rayce West.
FIREWALL TECHNOLOGIES Tahani al jehani. Firewall benefits  A firewall functions as a choke point – all traffic in and out must pass through this single.
D ATABASE S ECURITY Proposed by Abdulrahman Aldekhelallah University of Scranton – CS521 Spring2015.
Network and Active Directory Performance Monitoring and Troubleshooting NETW4008 Lecture 8.
Information Systems CS-507 Lecture 40. Availability of tools and techniques on the Internet or as commercially available software that an intruder can.
1 Kyung Hee University Prof. Choong Seon HONG Network Control.
Intrusion Detection Presentation : 1 OF n by Manish Mehta 01/24/03.
1 IS 2150 / TEL 2810 Introduction to Security James Joshi Associate Professor, SIS Lecture 11 Nov 22, 2011 Intrusion Detection, Firewalls & VPN Auditing.
Key Words: File systems, Steganography, Encrypted Communications, RAID, Information Hiding, Intelligence, Instagram, flickr Original can be found at:
Data and its manifestations. Storage and Retrieval techniques.
1 IS 2150 / TEL 2810 Introduction to Security James Joshi Associate Professor, SIS Lecture 10 Nov 06, 2012 Intrusion Detection, Firewalls & VPN Auditing.
Event Management & ITIL V3
Digital Forensics Dr. Bhavani Thuraisingham The University of Texas at Dallas Lecture #8 Computer Forensics Data Recovery and Evidence Collection September.
Digital image processing is the use of computer algorithms to perform image processing on digital images which is a subfield of digital signal processing.
Report on Intrusion Detection and Data Fusion By Ganesh Godavari.
IS 2150 / TEL 2810 Introduction to Security James Joshi Associate Professor, SIS Presented by Nathalie Baracaldo Lecture 3 Sept 18, 2013 Intrusion Detection,
Chapter 5: Implementing Intrusion Prevention
Intrusion Detection (ID) Intrusion detection is the ART of detecting inappropriate, incorrect, or anomalous activity There are two methods of doing ID.
1 Intrusion Detection Auditing, Watermarking Dec 7, 2006 Lecture 10 IS 2150 / TEL 2810 Introduction to Security.
Intrusion Detection System (IDS). What Is Intrusion Detection Intrusion Detection is the process of identifying and responding to malicious activity targeted.
1 Chapter 9 Intruders. 2 Outline Intruders –Intrusion Techniques –Password Protection –Password Selection Strategies –Intrusion Detection Statistical.
Unix Security Assessing vulnerabilities. Classifying vulnerability types Several models have been proposed to classify vulnerabilities in UNIX-type Oses.
Cryptography and Network Security Sixth Edition by William Stallings.
Intrusion Detection Systems Paper written detailing importance of audit data in detecting misuse + user behavior 1984-SRI int’l develop method of.
INTRODUCTION TO BIOMATRICS ACCESS CONTROL SYSTEM Prepared by: Jagruti Shrimali Guided by : Prof. Chirag Patel.
CS526: Information Security Chris Clifton November 25, 2003 Intrusion Detection.
Role Of Network IDS in Network Perimeter Defense.
Lecture 15 Page 1 CS 236 Online Evaluating Running Systems Evaluating system security requires knowing what’s going on Many steps are necessary for a full.
Approaches to Intrusion Detection statistical anomaly detection – threshold – profile based rule-based detection – anomaly – penetration identification.
1 IS 2150 / TEL 2810 Introduction to Security James Joshi Associate Professor, SIS Lecture 12 April 10, 2013 Intrusion Detection, Firewalls & VPN Auditing.
Unit 2 Personal Cyber Security and Social Engineering Part 2.
Chapter 29: Program Security Dr. Wayne Summers Department of Computer Science Columbus State University
Lecture 2 Page 1 CS 236 Online Security Policies Security policies describe how a secure system should behave Policy says what should happen, not how you.
Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 17 – IT Security.
Lecture 19 Page 1 CS 236 Online 6. Application Software Security Why it’s important: –Security flaws in applications are increasingly the attacker’s entry.
Auditing 서강대학교 문현석.
Ch.22 INTRUSION DETECTION
hongseok Lee, chaeyoung lee SE lab.
Outline Introduction Characteristics of intrusion detection systems
IS 2150 / TEL 2810 Introduction to Security
A Real-time Intrusion Detection System for UNIX
Waterfall Life Cycle Model
Lesson 16-Windows NT Security Issues
Intrusion Detection Systems
Chapter 29: Program Security
Intrusion Detection.
6. Application Software Security
Chapter 21: Auditing Overview What is auditing?
Presentation transcript:

1 Intrusion Detection Auditing, Watermarking Dec 7, 2006 Lecture 10 IS 2150 / TEL 2810 Introduction to Security

2 Intrusion Detection/Response Characteristics of systems not under attack: 1. Actions of users/processes conform to statistically predictable patterns 2. Actions of users/processes do not include sequences of commands to subvert security policy 3. Actions of processes conform to specifications describing allowable actions – Denning: Systems under attack fail to meet one or more of these characteristics

3 Intrusion Detection Idea: Attack can be discovered by one of the above being violated Problem: Definitions hard to make precise Automated attack tools Designed to violate security policy Example: rootkits: sniff passwords and stay hidden Practical goals of intrusion detection systems: Detect a wide variety of intrusions (known + unknown) Detect in a timely fashion Present analysis in a useful manner Need to monitor many components; proper interfaces needed Be (sufficiently) accurate Minimize false positives and false negatives

4 IDS Types: Anomaly Detection Compare characteristics of system with expected values report when statistics do not match Threshold metric: when statistics deviate from normal by threshold, sound alarm E.g., Number of failed logins Statistical moments: based on mean/standard deviation of observations Number of user events in a system Time periods of user activity Resource usages profiles Markov model: based on state, expected likelihood of transition to new states If a low probability event occurs then it is considered suspicious

5 Anomaly Detection: How do we determine normal? Capture average over time But system behavior isn’t always average Correlated events Events may have dependencies Machine learning approaches Training data obtained experimentally Data should relate to as accurate normal operation as possible

6 IDS Types: Misuse Modeling Does sequence of instructions violate security policy? Problem: How do we know all violating sequences? Solution: capture known violating sequences Generate a rule set for an intrusion signature But won’t the attacker just do something different? Often, no: kiddie scripts, Rootkit, … Alternate solution: State-transition approach Known “bad” state transition from attack (e.g. use petri-nets) Capture when transition has occurred (user  root)

7 Specification Modeling Does sequence of instructions violate system specification? What is the system specification? Need to formally specify operations of potentially critical code trusted code Verify post-conditions met

8 IDS Systems Anomaly Detection Intrusion Detection Expert System (IDES) – successor is NIDES Network Security MonitorNSM Misuse Detection Intrusion Detection In Our Time- IDIOT (colored Petri-nets) USTAT? ASAX (Rule-based) Hybrid NADIR (Los Alamos) Haystack (Air force, adaptive) Hyperview (uses neural network) Distributed IDS (Haystack + NSM)

9 IDS Architecture Similar to Audit system Log events Analyze log Difference: happens real-time - timely fashion (Distributed) IDS idea: Agent generates log Director analyzes logs May be adaptive Notifier decides how to handle result GrIDS displays attacks in progress Host 1 Agent Host 1 Agent Host 1 Agent Notifier Director

10 Where is the Agent? Host based IDS watches events on the host Often uses existing audit logs Network-based IDS Packet sniffing Firewall logs

11 IDS Problem IDS useless unless accurate Significant fraction of intrusions detected Significant number of alarms correspond to intrusions Goal is Reduce false positives Reports an attack, but no attack underway Reduce false negatives An attack occurs but IDS fails to report

12 Intrusion Response Incident Prevention Stop attack before it succeeds Measures to detect attacker Example: Jailing (als0 Honepots) Make attacker think they are succeeding and confine to an area Intrusion handling Preparation for detecting attacks Identification of an attack Contain attack Eradicate attack Recover to secure state Follow-up to the attack - Punish attacker

13 Containment Passive monitoring Track intruder actions Eases recovery and punishment Constraining access Downgrade attacker privileges Protect sensitive information Why not just pull the plug? Example: Honepots

14 Eradication Terminate network connection Terminate processes Block future attacks Close ports Disallow specific IP addresses Wrappers around attacked applications

15 Follow-Up Legal action Trace through network Cut off resources Notify ISP of action Counterattack Is this a good idea?

16 Auditing

17 What is Auditing? Logging Recording events or statistics to provide information about system use and performance Auditing Analysis of log records to present information about the system in a clear, understandable manner

18 Auditing goals/uses User accountability Damage assessment Determine causes of security violations Describe security state for monitoring critical problems Determine if system enters unauthorized state Evaluate effectiveness of protection mechanisms Determine which mechanisms are appropriate and working Deter attacks because of presence of record

19 Problems What to log? looking for violations of a policy, so record at least what will show such violations Use of privileges What do you audit? Need not audit everything Key: what is the policy involved?

20 Audit System Structure Logger Records information, usually controlled by parameters Analyzer Analyzes logged information looking for something Notifier Reports results of analysis

21 Logger Type, quantity of information recorded controlled by system or program configuration parameters May be human readable or not If not, usually viewing tools supplied Space available, portability influence storage format

22 Example: RACF Security enhancement package for IBM’s MVS/VM Logs failed access attempts, use of privilege to change security levels, and (if desired) RACF interactions View events with LISTUSERS commands

23 Example: Windows NT Different logs for different types of events System event logs record system crashes, component failures, and other system events Application event logs record events that applications request be recorded Security event log records security-critical events such as logging in and out, system file accesses, and other events Logs are binary; use event viewer to see them If log full, can have system shut down, logging disabled, or logs overwritten

24 Windows NT Sample Entry Date:2/12/2000Source:Security Time:13:03Category:Detailed Tracking Type:SuccessEventID:592 User:WINDSOR\Administrator Computer:WINDSOR Description: A new process has been created: New Process ID: Image File Name: \Program Files\Internet Explorer\IEXPLORE.EXE Creator Process ID: User Name:Administrator FDomain:WINDSOR Logon ID:(0x0,0x14B4c4) [would be in graphical format]

25 Analyzer Analyzes one or more logs Logs may come from multiple systems, or a single system May lead to changes in logging May lead to a report of an event Using swatch to find instances of telnet from tcpd logs: /telnet/&!/localhost/&!/*.site.com/ Query set overlap control in databases If too much overlap between current query and past queries, do not answer Intrusion detection analysis engine (director) Takes data from sensors and determines if an intrusion is occurring

26 Notifier Informs analyst, other entities of results of analysis May reconfigure logging and/or analysis on basis of results May take some action

27 Examples Using swatch to notify of telnets /telnet/&!/localhost/&!/*.site.com/mail staff Query set overlap control in databases Prevents response from being given if too much overlap occurs Three failed logins in a row disable user account Notifier disables account, notifies sysadmin

28 Designing an Audit System Essential component of security mechanisms Goals determine what is logged Idea: auditors want to detect violations of policy, which provides a set of constraints that the set of possible actions must satisfy So, audit functions that may violate the constraints Constraint p i : action  condition

29 Example: Bell-LaPadula Simple security condition and *-property S reads O  L(S) ≥ L(O) S writes O  L(S) ≤ L(O) To check for violations, on each read and write, must log L(S), L(O), action (read, write), and result (success, failure) Note: need not record S, O! In practice, done to identify the object of the (attempted) violation and the user attempting the violation

30 Implementation Issues Show non-security or find violations? Former requires logging initial state as well as changes Defining violations Does “write” include “append” and “create directory”? Multiple names for one object Logging goes by object and not name Representations can affect this (if you read raw disks, you’re reading files; can your auditing system determine which file?)

31 Syntactic Issues Data that is logged may be ambiguous BSM: two optional text fields followed by two mandatory text fields If three fields, which of the optional fields is omitted? Solution: use grammar to ensure well- defined syntax of log files

32 Example Grammar entry: date host prog [ bad ] user [ “from” host ] “to” user “on” tty date: daytime host: string prog: string “:” bad: “FAILED” user: string tty: “/dev/” string Log file entry format defined unambiguously Audit mechanism could scan, interpret entries without confusion

33 More Syntactic Issues Context Unknown user uses anonymous ftp to retrieve file “/etc/passwd” Logged as such Problem: which /etc/passwd file? One in system /etc directory One in anonymous ftp directory /var/ftp/etc, and as ftp thinks /var/ftp is the root directory, /etc/passwd refers to /var/ftp/etc/passwd

34 Log Sanitization U set of users, P policy defining set of information C(U) that U cannot see; log sanitized when all information in C(U) deleted from log Two types of P C(U) can’t leave site People inside site are trusted and information not sensitive to them C(U) can’t leave system People inside site not trusted or (more commonly) information sensitive to them Don’t log this sensitive information

35 Logging Organization Top prevents information from leaving site Users’ privacy not protected from system administrators, other administrative personnel Bottom prevents information from leaving system Data simply not recorded, or data scrambled before recording (Cryptography)

36 Reconstruction Anonymizing sanitizer cannot be undone No way to recover data from this Pseudonymizing sanitizer can be undone Original log can be reconstructed Importance Suppose security analysis requires access to information that was sanitized?

37 Issue Key: sanitization must preserve properties needed for security analysis If new properties added (because analysis changes), may have to resanitize information This requires pseudonymous sanitization or the original log

38 Example Company wants to keep its IP addresses secret, but wants a consultant to analyze logs for an address scanning attack Connections to port 25 on IP addresses , , , , , Sanitize with random IP addresses Cannot see sweep through consecutive IP addresses Sanitize with sequential IP addresses Can see sweep through consecutive IP addresses

39 Generation of Pseudonyms 1. Devise set of pseudonyms to replace sensitive information Replace data with pseudonyms that preserve relationship Maintain table mapping pseudonyms to data 2. Use random key to encipher sensitive datum and use secret sharing scheme to share key Used when insiders cannot see unsanitized data, but outsiders (law enforcement) need to (t, n) –threshold scheme : requires t out of n people to read data

40 Application/Systems Logging Applications logs made by applications Applications control what is logged Typically use high-level abstractions such as: su: bishop to root on /dev/ttyp0 Does not include detailed, system call level information such as results, parameters, etc. Log system events such as kernel actions Typically use low-level events Does not include high-level abstractions such as loading libraries (as above)

41 Contrast Differ in focus Application logging focuses on application events, like failure to supply proper password, and the broad operation (what was the reason for the access attempt?) System logging focuses on system events, like memory mapping or file accesses, and the underlying causes (why did access fail?) System logs usually much bigger than application logs Can do both, try to correlate them

42 Design A posteriori design Need to design auditing mechanism for system not built with security in mind Goal of auditing Detect any violation of a stated policy Focus is on policy and actions designed to violate policy; specific actions may not be known Detect actions known to be part of an attempt to breach security Focus on specific actions that have been determined to indicate attacks

43 Detect Violations of Known Policy Goal: does system enter a disallowed state? Two forms State-based auditing Look at current state of system Transition-based auditing Look at actions that transition system from one state to another

44 State-Based Auditing Log information about state and determine if state is allowed Assumption: you can get a snapshot of system state Snapshot needs to be consistent Non-distributed system needs to be quiescent

45 Transition-Based Auditing Log information about action, and examine current state and proposed transition to determine if new state would be disallowed Note: just analyzing the transition may not be enough; you may need the initial state Tend to use this when specific transitions always require analysis (for example, change of privilege)

46 Watermarking

47 Digital Watermarking A digital pattern or signal is inserted into an image Can serve as a digital signature Can identify the intended recipient (unique to each copy) Can identify document source (common to multiple copies)

48 Watermarking Watermarked image is transformed image Original image remains intact, recognizable Persistent in viewing, printing and re-transmission and dissemination Contrast to fingerprinting and encryption In digital fingerprinting, original file remains but a new file is created that describes the original file (e.g., checksum in Tripwire) Encryption transforms an image to an unrecognizable image

49 Watermarking Visible watermarks Similar to physical counterpart (digitally stamped!) Invisible watermarks Useful as for identifying the source, author, owner, distributor or authorized consumer Permanently, unalterably mark the image Also used for tracing images in the event of their illicit distribution Unique watermark for each buyer

50 Visible vs Invisible Watermarks Purposevisibleinvisible validation of intended recipient-Primary non-repudiable transmission-Primary deterrence against theftPrimary Secondary diminish commercial value without utility Primary discourage unauthorized duplicationPrimarySecondary digital notarization and authenticationSecondaryPrimary identify sourcePrimarySecondary

51 Requirements of Watermarks To protect intellectual property Watermark must be difficult or impossible to remove, at least without visibly degrading the original image Watermark must survive image modifications An invisible watermark should be imperceptible so as not to affect the experience of viewing Watermarks should be easily detectable by the proper authority

52 Watermarking techniques For image Spatial domain watermarking Simplest: flip the lowest order bit of chosen pixels Superimpose a watermark Color separation – watermark in only one color band - Picture cropping can be used to eliminate some spatial watermark Frequency domain watermarking Use Fast Fourier Transform – alter the values of chosen frequencies Watermarks will be dispersed spatially (cropping or spatial technique will not defeat it)

53 Watermarking for Text Text-line coding Text lines of a document page are shifted imperceptibly up or down Word-shift coding Spacing between words in a line text is altered Character coding E.g., endline at the top of a letter, say “t” is extended

54 Steganography Art of hiding information in the midst of irrelevant data This is NOT cryptography Useful to hide the existence of secret communication

55 Example of Steganography (Text – page 48) Dear George, Greetings to all at Oxford. Many thanks for your letter and for the summer examination package. All entry forms and fees forms should be ready for final dispatch to the syndicate by Friday 20 th or at the latest I am told by the 21 st. Admin has improved here though there is room for improvement still; just give us all two or three more years and we will really show you! Please don’t let these wretched 16+ proposals destroy your basic O and A pattern. Certainly this sort of change, if implemented immediately, would bring chaos. Sincerely yours,