AIT_ADS
收藏数据集概述
数据集描述
- 名称:Automatic labeler AIT-ADS
- 功能:用于标记来自AIT-ADS数据集的攻击事件。
- 标记规则:
- 在攻击时间范围内的任何警报都被标记为该攻击。
- 同时发生的多个攻击会有多个标签。
- 误报的标签为空列表。
- 数据结构:每个JSON对象中包含一个额外的
Label列表。
数据示例
json { ..., "AMiner": {"ID": "10.35.35.206"}, "Label": ["dirb"] }
运行labeler.py
- 步骤:
- 下载并解压AIT-ADS数据集。
- 运行命令行工具。
- 命令行选项:
-h, --help:显示帮助信息。-s --scenario:指定场景名称,默认值为all。-lf --label_filename:指定包含攻击信息的CSV文件,默认值为labels.csv。-dd --dataset_dir:指定数据集目录,默认值为ait_ads。-od --output_dir:指定输出标记数据集的目录,默认值为labeled。-so --start_offset:添加到攻击开始时间的偏移秒数,默认值为0。-eo --end_offset:添加到攻击结束时间的偏移秒数,默认值为0。-rn, --remove_noise:如果设置,移除Wazuh数据集中不应存在的警报,默认值为False。
文件结构
bash . ├── README.md ├── ait_ads # 默认AIT-ADS数据集位置 │ ├── fox_aminer.json # 示例 ├── analyzer.py # 分析标记文件 ├── labeled # 默认标记文件位置 │ ├── labeled_fox_aminer.json # 示例 ├── labeler.py # 从ait_ads和labels.csv创建标记文件 ├── labels.csv # 默认标签CSV文件位置
标签分布
Aminer
| russellmitchell | fox | harrison | santos | shaw | wardbeck | wheeler | wilson |
|---|---|---|---|---|---|---|---|
| network_scans | 0 | 0 | 0 | 0 | 9 | 0 | 20 |
| service_scans | 200 | 130 | 60 | 33 | 2 | 107 | 141 |
| dirb | 63 | 4481 | 4534 | 63 | 63 | 63 | 4533 |
| wpscan | 3187 | 4816 | 4861 | 3293 | 787 | 797 | 6653 |
| webshell | 2 | 2 | 2 | 3 | 2 | 3 | 2 |
| cracking | 4 | 5 | 5 | 4 | 106 | 4 | 0 |
| reverse_shell | 3 | 1 | 1 | 13 | 2 | 0 | 8 |
| privilege_escalation | 18 | 7 | 45 | 35 | 35 | 28 | 28 |
| service_stop | 2 | 2 | 2 | 3 | 2 | 2 | 2 |
| dnsteal | 0 | 7 | 3 | 1 | 0 | 6 | 5 |
| [webshell, cracking] | 1 | 0 | 1 | 1 | 1 | 1 | 0 |
| [wpscan, dirb] | 0 | 38 | 0 | 0 | 38 | 38 | 0 |
| [reverse_shell, privilege_escalation] | 0 | 0 | 0 | 12 | 0 | 0 | 7 |
| [network_scans, service_scans] | 0 | 0 | 0 | 0 | 0 | 0 | 20 |
| [service_scans, dirb] | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
Wazuh
| russellmitchell | fox | harrison | santos | shaw | wardbeck | wheeler | wilson |
|---|---|---|---|---|---|---|---|
| network_scans | 8 | 323 | 300 | 104 | 3 | 3 | 643 |
| service_scans | 167 | 140 | 769 | 90 | 1 | 56 | 167 |
| dirb | 4459 | 406083 | 411477 | 4459 | 4459 | 4459 | 413009 |
| wpscan | 3172 | 4985 | 4848 | 3274 | 933 | 910 | 6670 |
| webshell | 4 | 0 | 31 | 13 | 0 | 13 | 8 |
| cracking | 10 | 554 | 1251 | 773 | 647 | 752 | 0 |
| reverse_shell | 0 | 0 | 19 | 6 | 3 | 6 | 26 |
| privilege_escalation | 6 | 10 | 49 | 22 | 19 | 13 | 25 |
| service_stop | 0 | 0 | 20 | 0 | 0 | 0 | 0 |
| dnsteal | 711 | 381 | 3236 | 831 | 105 | 17 | 461 |
| [wpscan, dirb] | 0 | 236 | 0 | 0 | 204 | 160 | 0 |
| [network_scans, service_scans] | 0 | 0 | 4 | 0 | 0 | 0 | 0 |
| [service_stop, dnsteal] | 0 | 0 | 16 | 0 | 0 | 0 | 0 |
| [reverse_shell, privilege_escalation] | 0 | 0 | 0 | 3 | 0 | 0 | 2 |
| [service_scans, dirb] | 0 | 0 | 0 | 0 | 0 | 0 | 26 |
消息分布
场景Fox (Aminer)
json "service_stop": { "New value combination(s) detected": 2 }, "dnsteal": { "Value entropy anomaly detected": 6, "Frequency anomaly detected": 1 }, "service_scans": { "New path(es) detected": 106, "New value(s) detected": 24 }, "wpscan": { "New value(s) detected": 4748, "New path(es) detected": 36, "New character(s) detected": 32 }, "dirb": { "New value(s) detected": 721, "New character(s) detected": 2457, "New path(es) detected": 1300, "Frequency anomaly detected": 3 }, "webshell": { "Value entropy anomaly detected": 2 }, "cracking": { "Value entropy anomaly detected": 1, "Frequency anomaly detected": 3, "Statistical data report": 1 }, "reverse_shell": { "Value entropy anomaly detected": 1 }, "privilege_escalation": { "New path(es) detected": 3, "New value combination(s) detected": 4 }
场景Fox (Wazuh)
json "dnsteal": { "Dovecot Authentication Success.": 336, "IDS event.": 17, "Suricata: Alert - ET INFO Observed DNS Query to .cloud TLD": 1, "Suricata: Alert - SURICATA TLS invalid handshake message": 8, "Suricata: Alert - SURICATA TLS invalid record/traffic": 8, "CMS (WordPress or Joomla) login attempt.": 1, "ClamAV database update": 10 }, "network_scans": { "Dovecot Authentication Success.": 123, "Suricata: Alert - SURICATA TLS invalid record/traffic": 50, "IDS event.": 98, "Suricata: Alert - SURICATA TLS invalid handshake message": 50, "Multiple IDS alerts for same id.": 1, "Multiple IDS events from same source ip.": 1 }, "service_scans": { "Dovecot Authentication Success.": 6, "sshd: insecure connection attempt (scan).": 7, "Web server 400 error code.": 37, "Apache: Attempt to access forbidden file or directory.": 24, "Suricata: Alert - SURICATA SMTP no server welcome message": 2, "First time this IDS alert is generated.": 9, "Suricata: Alert - SURICATA SMTP invalid reply": 2, "Multiple web server 400 error codes from same source ip.": 2, "IDS event.": 21, "Suricata: Alert - SURICATA TLS invalid SSLv2 header": 2, "Suricata: Alert - SURICATA TLS invalid record/traffic": 2, "Suricata: Alert - ET SCAN Possible Nmap User-Agent Observed": 24, "Multiple IDS alerts for same id.": 1, "Multiple IDS events from same source ip.": 1 }, "wpscan": { "Web server 400 error code.": 4589, "Multiple web server 400 error codes from same source ip.": 353, "Apache: Attempt to access forbidden directory index.": 1, "Web server 500 error code (Internal Error).": 9, "Apache: Attempt to access forbidden file or directory.": 10, "Dovecot Authentication Success.": 12, "Suspicious URL access.": 10, "Common web attack.": 1 }, "dirb": { "Web server 400 error code.": 375637, "Multiple web server 400 error codes from same source ip.": 28946, "Suspicious URL access.": 456, "Common web attack.": 182, "Apache: Attempt to access forbidden file or directory.": 547, "Apache: Attempt to access forbidden directory index.": 82, "Dovecot Authentication Success.": 216, "Web server 500 error code (Internal Error).": 5, "IDS event.": 4, "Suricata: Alert - SURICATA TLS invalid handshake message": 2, "Suricata: Alert - SURICATA TLS invalid record/traffic": 2, "ClamAV database update": 4 }, "cracking": { "Dovecot Authentication Success.": 162, "Suricata: Alert - SURICATA HTTP unable to match response to request": 2, "IDS event.": 183, "Suricata: Alert - SURICATA TLS invalid handshake message": 94, "Suricata: Alert - SURICATA TLS invalid record/traffic": 94, "Multiple IDS alerts for same id.": 5, "ClamAV database update": 6, "Multiple IDS events from same source ip.": 1, "First time this IDS alert is generated.": 1, "PAM: User login failed.": 1, "Dovecot Invalid User Login Attempt.": 3, "syslog: User authentication failure.": 2 }, "privilege_escalation": { "User successfully changed UID.": 1, "PAM: Login session opened.": 4, "Successful sudo to ROOT executed.": 3, "PAM: Login session closed.": 2 }




