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

flow_idprimary key
unique on every row
20,000 distinctno empties
src_host_idforeign key
points to hosts.host_id
450 distinctno empties
dst_host_idforeign key
points to hosts.host_id
500 distinctno empties
start_timedate
Jun 2026Jun 2026
2026-06-01 to 2026-06-07no empties
attack_catcategory
  • benign
    80%
  • port_scan
    12%
  • brute_force
    3.0%
  • ddos
    3.0%
  • dns_exfiltration
    2.0%
5 valuesno empties
protocolcategory
  • TCP
    71%
  • UDP
    25%
  • ICMP
    4.1%
3 valuesno empties
src_portnumber
1,33765,186
mean 33,193median 33,3241,025 to 65,532no empties
dst_portnumber
21log scale62,419
mean 4,494median 8015 to 65,497no empties
packet_countnumber
1188
mean 24.75median 151 to 573no empties
byte_countnumber
40155,145
mean 16,494median 7,834.540 to 644,944no empties
duration_msnumber
1log scale27,169
mean 2,010.9median 7261 to 110,780no empties
labelcategory
  • benign
    80%
  • malicious
    20%
2 valuesno empties

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_id0 orphans
  • dst_host_idhosts.host_id0 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.

  1. 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 desc
    attack_catflowssingle_packet_pctavg_bytesports_per_source
    port_scan2,34810050.1469.2
    ddos59327.2143.81.3
    benign16,0390.120,514.39.8
    dns_exfiltration4100620.61
    brute_force6100632.52
  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 desc
    attack_catflowssourcesdestinationssources_per_destinationpackets_per_flow
    ddos5932892144.52.1
    dns_exfiltration410832.73.5
    port_scan2,348522.51
    brute_force6106326
    benign16,0391605000.330.3
  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 desc
    attack_catflowsavg_bytes_per_packetp5_bytes_per_packetp95_bytes_per_packet
    dns_exfiltration410179.3130233.7
    benign60480.743.5132.3
    ddos19170.14397
  4. 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 desc
    attack_catpairsflows_per_pairmost_flows_on_one_pair
    port_scan10234.8250
    brute_force1833.946
    dns_exfiltration2417.130
    ddos4051.55
    benign14,5481.14

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 premium
  • Card 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 preview
  • Gross 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 preview
  • MRR 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

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.