Cybersecurity Datasets:
7. Intrusion Detection Evaluation Dataset (CIC-IDS2017)

Intrusion Detection Systems (IDSs) and Intrusion Prevention Systems (IPSs) are the most important defense tools against the sophisticated and ever-growing network attacks. Due to the lack of reliable test and validation datasets, anomaly-based intrusion detection approaches are suffering from consistent and accurate performance evolutions.

Our evaluations of the existing eleven datasets since 1998 show that most are out of date and unreliable. Some of these datasets suffer from the lack of traffic diversity and volumes, some do not cover the variety of known attacks, while others anonymize packet payload data, which cannot reflect the current trends. Some are also lacking feature set and metadata.

CICIDS2017 dataset contains benign and the most up-to-date common attacks, which resembles the true real-world data (PCAPs). It also includes the results of the network traffic analysis using CICFlowMeter-V3 with labeled flows based on the time stamp, source, and destination IPs, source and destination ports, protocols and attack (CSV files).

Generating realistic background traffic was our top priority in building this dataset. We have used our proposed B-Profile system (Sharafaldin, et al. 2016) to profile the abstract behavior of human interactions and generates naturalistic benign background traffic. For this dataset, we built the abstract behaviour of 25 users based on the HTTP, HTTPS, FTP, SSH, and email protocols.

The data capturing period started at 9 a.m., Monday, July 3, 2017 and ended at 5 p.m. on Friday July 7, 2017, for a total of 5 days. Monday is the normal day and only includes the benign traffic. The implemented attacks include Brute Force FTP, Brute Force SSH, DoS, Heartbleed, Web Attack, Infiltration, Botnet and DDoS. They have been executed both morning and afternoon on Tuesday, Wednesday, Thursday and Friday.

In our recent dataset evaluation framework (Gharib et al., 2016), we have identified eleven criteria that are necessary for building a reliable benchmark dataset. None of the previous IDS datasets could cover all of the 11 criteria. In the following, we briefly outline these criteria:

Complete Network configuration: A complete network topology includes Modem, Firewall, Switches, Routers, and presence of a variety of operating systems such as Windows, Ubuntu and Mac OS X.

Complete Traffic: By having a user profiling agent and 12 different machines in Victim-Network and real attacks from the Attack-Network.

Labelled Dataset: Section 4 and Table 2 show the benign and attack labels for each day. Also, the details of the attack timing will be published on the dataset document.

Complete Interaction: As Figure 1 shows, we covered both within and between internal LAN by having two different networks and Internet communication as well.

Complete Capture: Because we used the mirror port, such as tapping system, all traffics have been captured and recorded on the storage server.

Available Protocols: Provided the presence of all common available protocols, such as HTTP, HTTPS, FTP, SSH and email protocols.

Attack Diversity: Included the most common attacks based on the 2016 McAfee report and CAPEC standard, such as Web based, Brute force, DoS, DDoS, Infiltration, Heart-bleed, Bot and Scan covered in this dataset.

Heterogeneity: Captured the network traffic from the main Switch and memory dump and system calls from all victim machines, during the attacks execution.

Feature Set: Extracted more than 80 network flow features from the generated network traffic using CICFlowMeter and delivered the network flow dataset as a CSV file. See our PCAP analyzer and CSV generator.

MetaData: Completely explained the dataset which includes the time, attacks, flows and labels in the published paper.

Dataset Detail:

Day, Date, Description, Size (GB):
Monday, Normal Activity, 11.0G
Tuesday, attacks + Normal Activity, 11G
Wednesday, attacks + Normal Activity, 13G
Thursday, attacks + Normal Activity, 7.8G
Friday, attacks + Normal Activity, 8.3G

Victim and attacker networks information:


DNS+ DC Server:

Outsiders (Attackers network)
- Kali:
- Win:, 70, 71

Insiders (Victim network)
- Web server 16 Public:,
- Ubuntu server 12 Public:,
- Ubuntu 14.4, 32B:
- Ubuntu 14.4, 64B:
- Ubuntu 16.4, 32B:
- Ubuntu 16.4, 64B:
- Win 7 Pro, 64B:
- Win 8.1, 64B:
- Win Vista, 64B:
- Win 10, pro 32B:
- Win 10, 64B:
- MAC:

Monday, July 3, 2017:
Benign (Normal human activities)
Tuesday, July 4, 2017:
Brute Force
FTP-Patator (9:20 – 10:20 a.m.)
SSH-Patator (14:00 – 15:00 p.m.)

Attacker: Kali,
Victim: WebServer Ubuntu, (Local IP:

NAT Process on Firewall:
Attack: -> (Valid IP of the Firewall) -> ->
Reply: -> -> ->

Wednesday, July 5, 2017:
DoS / DDoS
DoS slowloris (9:47 – 10:10 a.m.)
DoS Slowhttptest (10:14 – 10:35 a.m.)
DoS Hulk (10:43 – 11 a.m.)
DoS GoldenEye (11:10 – 11:23 a.m.)

Attacker: Kali,
Victim: WebServer Ubuntu, (Local IP192.168.10.50)

NAT Process on Firewall:
Attack: -> (Valid IP of the Firewall) -> ->
Reply: -> -> ->

Heartbleed Port 444 (15:12 - 15:32)
Attacker: Kali,
Victim: Ubuntu12, (Local IP192.168.10.51)

NAT Process on Firewall:
Attack: -> (Valid IP of the Firewall) -> ->
Reply: -> -> ->

Thursday, July 6, 2017:
Web Attack – Brute Force (9:20 – 10 a.m.)
Web Attack – XSS (10:15 – 10:35 a.m.)
Web Attack – Sql Injection (10:40 – 10:42 a.m.)

Attacker: Kali,
Victim: WebServer Ubuntu, (Local IP192.168.10.50)
NAT Process on Firewall:
Attack: -> (Valid IP of the Firewall) -> ->
Reply: -> -> ->

Infiltration – Dropbox download
Meta exploit Win Vista (14:19 and 14:20-14:21 p.m.) and (14:33 -14:35)
Attacker: Kali,
Victim: Windows Vista,

Infiltration – Cool disk – MAC (14:53 p.m. – 15:00 p.m.)
Attacker: Kali,
Victim: MAC,

Infiltration – Dropbox download
Win Vista (15:04 – 15:45 p.m.)
First Step:
Attacker: Kali,
Victim: Windows Vista,

Second Step (Portscan + Nmap):
Victim: All other clients

Friday, July 7, 2017: Morning
Botnet ARES (10:02 a.m. – 11:02 a.m.)
Attacker: Kali,
Victims: Win 10, + Win 7, + Win 10, + Win 8, + Vista,

Port Scan:
Firewall rule on (13:55 – 13:57, 13:58 – 14:00, 14:01 – 14:04, 14:05 – 14:07, 14:08 - 14:10, 14:11 – 14:13, 14:14 – 14:16, 14:17 – 14:19, 14:20 – 14:21, 14:22 – 14:24, 14:33 – 14:33, 14:35 - 14:35)

Firewall rules off (sS 14:51-14:53, sT 14:54-14:56, sF 14:57-14:59, sX 15:00-15:02, sN 15:03-15:05, sP 15:06-15:07, sV 15:08-15:10, sU 15:11-15:12, sO 15:13-15:15, sA 15:16-15:18, sW 15:19-15:21, sR 15:22-15:24, sL 15:25-15:25, sI 15:26-15:27, b 15:28-15:29)

Attacker: Kali,
Victim: Ubuntu16, (Local IP:

NAT Process on Firewall:
Attacker: -> (Valid IP of the Firewall) ->

DDoS LOIT (15:56 – 16:16)
Attackers: Three Win 8.1, - 71
Victim: Ubuntu16, (Local IP:

NAT Process on Firewall:
Attackers:, 70, 71 -> (Valid IP of the Firewall) ->

The CICIDS2017 dataset consists of labeled network flows, including full packet payloads in pcap format, the corresponding profiles and the labeled flows ( and CSV files for machine and deep learning purpose ( are publicly available for researchers. If you are using our dataset, you should cite our related paper which outlining the details of the dataset and its underlying principles:
- Iman Sharafaldin, Arash Habibi Lashkari, and Ali A. Ghorbani, “Toward Generating a New Intrusion Detection Dataset and Intrusion Traffic Characterization”, 4th International Conference on Information Systems Security and Privacy (ICISSP), Portugal, January 2018

You can download this dataset from here.
Researchers named among top researchers for Canada 150
The cybersecurity Research and Academic Leadership award, Canada 2019
The cybersecurity academic award, Canada 2017