NSL - KDD IDS Sample Dataset

0 Duration Protocol Type Service Flag Src Bytes Dst Bytes Land Wrong Fragment Urgent Hot Num Failed Logins Logged In Num Compromised Root Shell Su Attempted Num Root Num File Creations Num Shells Num Access Files Num Outbound Cmds Is Hot Logins Is Guest Login Count Srv Count Serror Rate Srv Serror Rate Rerror Rate Srv Rerror Rate Same Srv Rate Label Score
0 tcp ftp_data SF 491 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 0 0 1 0 0 150
1 udp other SF 146 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 13 123 6 1 1 0 1 0 0 150
2 tcp private S0 0 232 199 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 5 0.2 0.2 0 0 1 0 0 0


Feature Description


Duration

Description: Length of time duration of the connection

Type: Continuous
Value Type: Integers
Range: 0 - 54451


Protocol Type

Description: Protocol used in the connection

Type: Categorical
Value Type: String


Service

Description: Destination networ service used

Type: Categorical
Value Type: String


Flag

Description: Status of the connection - Normal or Error

Type: Categorical
Value Type: String


Src Bytes

Description: Number of data bytes transferred from source to destination in single connection

Type: Continuous
Value Type: Integers
Range: 0 - 1379963888


Dst Bytes

Description: Number of data bytes transferred from source to destination in single connection

Type: Continuous
Value Type: Integers
Range: 0 - 309937401


Land

Description: If source and destination IP addresses and port numbers are equal then, this variable takes value 1 else 0

Type: Binary
Value Type: Integers


Wrong Fragment

Description: Total number of wrong fragments in this connection

Type: Discrete
Value Type: Integers


Urgent

Description: Number of urgent packtes in this connection. Urgent packets are packets with the urgent bit activated

Type: Discrete
Value Type: Integers


Hot

Description: Number of "hot" indicators inn this content such as: entering a system directory, creating programs and executing programs

Type: Continuous
Value Type: Integers
Range: 0 - 101


Num Failed Logins

Description: Count of failed login attempts

Type: Continuous
Value Type: Integers
Range: 0 - 4


Logged In

Description: Login Status : 1 if successfully logged in else 0

Type: Binary
Value Type: Integers


Num Compromised

Description: Number of "compromised" conditions

Type: Continous
Value Type: Integers
Range: 7479


Root Shell

Description: 1 if root shell is obtained else 0

Type: Binary
Value Type: Integers


Su Attempted

Description: 1 if "su root" command attempted or used else 0

Type: Discrete (Dataset contains '2' value
Value Type: Integers
Range: 0 - 2


Num Root

Description: Number of "root" accesses or number of operatins performed as a root in the connection

Type: Continuous
Value Type: Integers
Range: 0 - 7468


Num File Creations

Description: Number of file creation operations in the connection

Type: Continuous
Value Type: Integers
Range: 0 - 100


Num Shells

Description: Number of shell prompts

Type: Continuous
Value Type: Integers
Range: 0 - 2


Num Access Files

Description: Number of operations on access control files

Type: Continuous
Value Type: Integers
Range: 0 - 9


Num Outbound Cmds

Description: Number of outbound commands in an ftp session

Type: Continuous
Value Type: Integers
Range: 0


Is hot Logins

Description: 1 if the login belongs to the "hot" list i.e., root or admin else 0

Type: Binary
Value Type: Integers
Range: 0 - 1


Is Guest Login

Description: 1 if the login is a "guest" login; else 0

Type: Binary
Value Type: Integers
Range: 0 - 1


Count

Description: Number of connections to the same destination host as the current connection in the past two seconds

Type: Discrete
Value Type: Integers
Range: 0 - 511


Srv Count

Description: Number of connections to the same service (port number) as the current connection in the past two seconds

Type: Discrete
Value Type: Integers
Range: 0 - 511


Serror Rate

Description: The percentage of connections that have activated the flag (4) s0, s1, s2 or s3, among the connections aggregated in count(23)

Type: Discrete
Value Type: Floats (hundredths of decimal
Range: 0 - 1


Srv Serror Rate

Description: The percentage of connections that have activated the flag (4) s0, s1, s2 or s3, among the connections aggregated in srv_count (24)

Type: Discrete
Value Type: Floats (hundredths of decimal
Range: 0 - 1


Rerror Rate

Description: The percentage of connections that have activated the flag (4) REJ, among the connections aggregated in count (23)

Type: Discrete
Value Type: Floats (hundredths of decimal
Range: 0 - 1


Srv Rerror Rate

Description: The percentage of connections that have activated the flag (4) REJ, among the connections aggregated in srv_count (24)

Type: Discrete
Value Type: Floats (hundredths of decimal
Range: 0 - 1


Same Srv Rate

Description: The percentage of connections that were to the same service, among the connections aggregated in count (23)

Type: Discrete
Value Type: Floats (hundredths of decimal
Range: 0 - 1


Diff Srv Rate

Description: The percentage of connections that were to different services, among the connections aggregated in count (23)

Type: Discrete
Value Type: Floats (hundredths of decimal
Range: 0 - 1


Srv Diff Host Rate

Description: The percentage of connections that were to different destination machines among the connections aggregated in srv_count (24)

Type: Discrete
Value Type: Floats (hundredths of decimal
Range: 0 - 1


Dst Host Count

Description: Number of connections having the same destination host IP address

Type: Discrete
Value Type: Integers
Range: 0 - 255


Dst Host Srv Count

Description: Number of connections having the same port number

Type: Discrete
Value Type: Integers
Range: 0 - 255


Dst Host Same Srv Rate

Description: The percentage of connections that were to different services, among the connections aggregated in dst_host_count (32)

Type: Discrete
Value Type: Floats (hundredths of a decimal)
Range: 0 - 1


Dst Host Diff Srv Rate

Description: The percentage of connections that were to different services, among the connections aggregated in dst_host_count (32)

Type: Discrete
Value Type: Floats (hundredths of a decimal)
Range: 0 - 1


Dst Host Same Src Port Rate

Description: The percentage of connections that were to the same source port, among the connections aggregated in dst_host_srv_count (33)

Type: Discrete
Value Type: Floats (hundredths of a decimal)
Range: 0 - 1


Dst Host Srv Diff Host Rate

Description: The percentage of connections that were to different destination machines, among the connections aggregated in dst_host_srv_count (33)

Type: Discrete
Value Type: Floats (hundredths of a decimal)
Range: 0 - 1


Dst Host Serror Rate

Description: The percentage of connections that have activated the flag (4) s0, s1, s2 or s3, among the connections aggregated in dst_host_count (32)

Type: Discrete
Value Type: Floats (hundredths of a decimal)
Range: 0 - 1


Dst Host Srv Serror Rate

Description: The percent of connections that have activated the flag (4) s0, s1, s2 or s3, among the connections aggregated in dst_host_srv_count (33)

Type: Discrete
Value Type: Floats (hundredths of a decimal)
Range: 0 - 1


Dst Host Rerror Rate

Description: The percentage of connections that have activated the flag (4) REJ, among the connections aggregated in dst_host_count (32)

Type: Discrete
Value Type: Floats (hundredths of a decimal)
Range: 0 - 1


Dst Host Srv Rerror Rate

Description: The percentage of connections that have activated the flag (4) REJ, among the connections aggregated in dst_host_srv_count (33)

Type: Discrete
Value Type: Floats (hundredths of a decimal)
Range: 0 - 1


Label

Description: Classification of the traffic input

Type: Categorical
Value Type: Strings


Score

Description: Difficulty level

Type: Discrete
Value Type: Integers
Range: 0 - 21