Skip to content
/ RUU Public

Intrusion Detection System based on User Behavior

Notifications You must be signed in to change notification settings

YiyangQian/RUU

Repository files navigation

RUU

Assignments of course Intrusion Detection System at Columbia University given by Professor Salvatore Stolfo. Work of this project is based on paper Active Authentication using File System Decoys and User Behavior Modeling: Results of a Large Scale Study.

Workflow

  1. Assumption: Intruders have got permissions to the system, but not familiar with the environment.
  2. Log Collection: I defined three classes for collecting log WindowSensor, FileSensor and ProcessSensor in window_sensor.py, file_sensor.py and process_sensor.py. Examples of how to use them were included in each file.
  3. Feature Extraction: Actions in 1 min is taken as one instance, and 9 features were selected(number of process_created, process_deleted, window_top, window_leave, file_modified file_created, file_deleted, directory_created, directory_deleted). Parser class is defined for parsing three different log files, and parse them into a 2-D array with these features.
  4. Model: the process of building a GMM model is included in model.py.
  5. Result: I have asked two friends to use my laptop for around 40 mins, and their log files are stranger_log.txt and stranger2_log.txt. I have ploted the score of loglikelyhood generated by them as following:

Training data

Validate data

Stranger1 data

Stranger2 data

As shown in these histagrams, the model seems not be able to fully distinguish a stranger and me. The reason I think is that my friends have very similar user behaviors. For example, we are used to spend long time on Chrome and video websites. Thus the frequencies would not differ too much.

  1. Future Work:
    • add decoys
    • try other models
    • mock attacker behaviors

About

Intrusion Detection System based on User Behavior

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published