I am doing project on intrusion detection system. I am using JPCAP library to capture packet. Using JPCAP I am able to construct basic features of TCP Connections mentioned in KDD 99 dataset(e.g. Duration, protocol_type, Service, Source port, destination port). I want to construct content features like "hot indicators, num_failed_logins, su_attempted, is_hot_login, is_guest_login". And time based features like "count, serror_rate,rerror_rate, same service rate".
So please give me any hint about constructing such features from live traffic.