Network intrusion / netflow
Network intrusion / netflow is a free synthetic dataset of 2 tables and 20,500 rows, released under CC0. All 2 key relationships join with no orphans, and 4 questions come with the SQL that answers them.
500 hosts and 20,000 labeled flows, where a port scan, a DDoS flood, and a brute-force attempt each carry the real statistical signature their MITRE ATT&CK technique actually leaves in traffic.
A protocol column and an is_attack flag with no statistical relationship between them doesn't help test an IDS. A port scan is a single bare TCP SYN swept across a wide, largely non-repeating spread of ports. A DDoS is a wide fan-in of distinct sources converging on one or two targets, each flow tiny. DNS exfiltration is forced onto real UDP/port 53 transport but with an oversized payload. Brute force is repeated short flows against the same few attacker/target pairs on SSH or RDP. Each of those signatures is generated here, not just labeled, grounded in the ID2T / UNSW-NB15 construction methodology and four named MITRE ATT&CK technique IDs.
- network security
- intrusion detection
- netflow
- MITRE ATT&CK
- IDS
Explore
Every table, profiled
Each column's type, spread, empties and most common values, measured from the CSVs in the download. Switch to the first rows to see the data exactly as it sits in the file.
flows.csv
20,000 rows · 12 columns · 2 foreign keys
- benign80%
- port_scan12%
- brute_force3.0%
- ddos3.0%
- dns_exfiltration2.0%
- TCP71%
- UDP25%
- ICMP4.1%
- benign80%
- malicious20%
Keys
Every join resolves
2 foreign keys, 40,000 references checked against the table each one points at. None points at a row that does not exist.
flows
- src_host_idhosts.host_id20,000 rows checked0 orphans
- dst_host_idhosts.host_id20,000 rows checked0 orphans
Checks
What we checked
- port_scan: 100% single-packet, 40-60 byte frames on 2,348 flows (a bare SYN, no reply)
- port_scan hosts hit 469 distinct ports on average vs 9.8 for an ordinary benign host
- ddos: 289 distinct sources converge on exactly 2 destinations (593 flows)
- dns_exfiltration: 100% UDP/port 53, averaging 179 bytes/packet vs 80 for this file's own benign DNS traffic (410 flows)
- brute_force: 100% TCP on port 22 or 3389, averaging 34 flows per attacker/target pair vs 1.1 for benign traffic (610 flows)
- no flow implies an impossible sub-40-byte-per-packet frame, across all 20,000 flows
- 0 orphaned foreign keys joining flows to hosts
The same checks ship in the zip as INTEGRITY.txt, so you can rerun them in any SQL engine. How we verify
Questions, answered
Worth asking it
Each answer is the query's result on these exact files. Open one for its SQL and rows, then check your own query against it.
1Can a detection rule tell a port scan's single-packet SYN spread from ordinary traffic?A scanning source touches 469.2 distinct ports, a benign one 9.8; 100% of scan flows are a single packet.
with f as ( select attack_cat, count(*) as flows, round(100 * avg(case when packet_count = 1 then 1.0 else 0 end), 1) as single_packet_pct, round(avg(byte_count), 1) as avg_bytes from flows group by attack_cat ), p as ( select attack_cat, round(avg(ports), 1) as ports_per_source from ( select attack_cat, src_host_id, count(distinct dst_port) as ports from flows group by attack_cat, src_host_id ) s group by attack_cat ) select f.attack_cat, f.flows, f.single_packet_pct, f.avg_bytes, p.ports_per_source from f join p on p.attack_cat = f.attack_cat order by f.single_packet_pct descattack_cat flows single_packet_pct avg_bytes ports_per_source port_scan 2,348 100 50.1 469.2 ddos 593 27.2 143.8 1.3 benign 16,039 0.1 20,514.3 9.8 dns_exfiltration 410 0 620.6 1 brute_force 610 0 632.5 2 2Does a DDoS rule catch the fan-in signature (many sources, few targets) rather than just high volume?DDoS: 289 sources on 2 destinations at 2.1 packets a flow.
select attack_cat, count(*) as flows, count(distinct src_host_id) as sources, count(distinct dst_host_id) as destinations, round(1.0 * count(distinct src_host_id) / count(distinct dst_host_id), 1) as sources_per_destination, round(avg(packet_count), 1) as packets_per_flow from flows group by attack_cat order by sources_per_destination descattack_cat flows sources destinations sources_per_destination packets_per_flow ddos 593 289 2 144.5 2.1 dns_exfiltration 410 8 3 2.7 3.5 port_scan 2,348 5 2 2.5 1 brute_force 610 6 3 2 6 benign 16,039 160 500 0.3 30.3 3Is a DNS exfiltration query's payload size actually distinguishable from a normal lookup?On port 53, exfiltration averages 179.3 bytes a packet against 80.7 for normal lookups.
-- DNS flows only: UDP to port 53. select attack_cat, count(*) as flows, round(avg(1.0 * byte_count / packet_count), 1) as avg_bytes_per_packet, round(percentile_cont(0.05) within group (order by 1.0 * byte_count / packet_count), 1) as p5_bytes_per_packet, round(percentile_cont(0.95) within group (order by 1.0 * byte_count / packet_count), 1) as p95_bytes_per_packet from flows where protocol = 'UDP' and dst_port = 53 group by attack_cat order by avg_bytes_per_packet descattack_cat flows avg_bytes_per_packet p5_bytes_per_packet p95_bytes_per_packet dns_exfiltration 410 179.3 130 233.7 benign 604 80.7 43.5 132.3 ddos 191 70.1 43 97 4How concentrated are brute-force attempts on the same attacker/target pair vs benign traffic?Brute force averages 33.9 flows per attacker and target, benign traffic 1.1.
select attack_cat, count(*) as pairs, round(avg(flows), 1) as flows_per_pair, max(flows) as most_flows_on_one_pair from ( select attack_cat, src_host_id, dst_host_id, count(*) as flows from flows group by attack_cat, src_host_id, dst_host_id ) p group by attack_cat order by flows_per_pair descattack_cat pairs flows_per_pair most_flows_on_one_pair port_scan 10 234.8 250 brute_force 18 33.9 46 dns_exfiltration 24 17.1 30 ddos 405 1.5 5 benign 14,548 1.1 4
Every query runs on the files in the download as they are. ANSWERS.sql holds all of them; run it in DuckDB from the dataset's folder.
Use it
Take it, or make one shaped like yours
Rebuild it byte for byte
pip install misata curl -O https://raw.githubusercontent.com/rasinmuhammed/misata/main/examples/network_intrusion_netflow.py python -c "from network_intrusion_netflow import build, verify; t = build(n_hosts=500, n_flows=20000, seed=13); verify(t)"
This dataset builds each attack category's packet/byte/port signature from its MITRE ATT&CK technique rather than a per-column declared distribution, so it ships as a runnable script rather than a schema.yaml a bare misata generate could regenerate honestly.
Your own tables, your own numbers
Describe the data you need in Studio and get connected tables with the totals you state, profiled like this and checked before you download.
Premium datasets
All premiumCard spending each month, debit and credit
2,500 US households at five banks and seven card issuers, two years
Five banks' raw statement lines, with every label behind them
Answer key
- description
- merchant_name
- category
- +6 more
- Rows
- 7,627,186
- Tables
- 14
- Checks
- 50 of 50
Free previewProfile and previewGross sales by month, 2024 against 2025
One online retailer, 30,377 customers, six markets, two years
Two years of an online store's orders, payments, returns and refunds, reconciled to the cent
- Rows
- 436,126
- Tables
- 7
- Checks
- 44 of 44
Free preview15-question projectProfile and previewMRR at each month's end
One SaaS company, 3,431 accounts, three years
Three years of one company's MRR, deals, customers, billing and support
- Rows
- 208,956
- Tables
- 12
- Checks
- 55 of 55
Free preview17-question projectProfile and preview
Related free datasets
All 9- Retail star schemaA dimensional model you can actually practise joins on: one fact table, four dimensions, 47,051 rows, every join resolving and every total known.47,051 rows · 5 tables
- Ecommerce storefrontA year of orders across five joined tables, with best sellers, heavy buyers, a real Q4 peak and totals that reconcile to the cent.49,493 rows · 5 tables
- B2B SaaS subscription analyticsAccounts, seats, MRR, churn and support load, where company size actually drives the plan.42,240 rows · 5 tables
- Credit risk portfolio3,000 borrowers and 4,200 commercial loans, where a credit rating actually predicts whether the loan defaults, at the rate S&P's own data says it should.7,200 rows · 2 tables
- Contact center queueing (Erlang C)4 queues, 2,400 half-hour intervals over a full business month, where agents_staffed is what Erlang C (1917) says is actually required to clear each queue's own SLA target, not a plausible-looking number.2,404 rows · 2 tables
- Clinical trial: sites, patients, visits and adverse eventsTwo trials across nine sites: enrolment, scheduled visits, dosing, lab biomarkers and graded adverse events, all in the right order.22,496 rows · 7 tables
Fully synthetic. No real person, company or transaction is represented, and no production data was read to make it. CC0: use it anywhere, no attribution needed.

