wwe123 commited on
Commit
f3954a3
·
verified ·
1 Parent(s): 8cf71c0

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +53 -0
README.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Benign and Malicious PowerShell Scripts
3
+ task_categories:
4
+ - text-classification
5
+ tags:
6
+ - powershell
7
+ - cybersecurity
8
+ - malware-detection
9
+ - static-analysis
10
+ - code-obfuscation
11
+ - abstract-syntax-tree
12
+ size_categories:
13
+ - 10K<n<100K
14
+ ---
15
+
16
+ # Benign and Malicious PowerShell Scripts
17
+
18
+ ## Dataset summary
19
+
20
+ This dataset contains **30,595 high-quality PowerShell scripts** for binary benign/malicious classification and static-analysis research. It includes both unobfuscated and heavily obfuscated PowerShell, with obfuscation techniques including—but not limited to—multiple encoding schemes.
21
+
22
+ All published samples were validated as parseable with Microsoft's official PowerShell parser, `System.Management.Automation.Language.Parser`, and can be converted into a PowerShell abstract syntax tree (AST) without executing the script.
23
+
24
+ > **Safety warning:** This dataset contains potentially malicious PowerShell code. Treat every sample as untrusted. Do not execute samples on a host system. Use isolated, non-production environments and static-analysis tooling only.
25
+
26
+ ## 中文简介
27
+
28
+ 本数据集包含 **30,595 份高质量 PowerShell 脚本**,覆盖良性与恶意两类样本,适用于二分类、静态分析、恶意代码检测、混淆识别及基于 AST 的研究。
29
+
30
+ 数据中包含大量高质量混淆样本,混淆方式包括但不限于多种编码方式。所有公开样本均已验证能够通过微软官方 PowerShell 解析器 `System.Management.Automation.Language.Parser` 成功解析并提取抽象语法树(AST),无需执行脚本。
31
+
32
+ > **安全提示:** 数据集中可能包含恶意代码。请将所有样本视为不可信内容,不要直接执行;建议仅在隔离、非生产环境中进行静态分析。
33
+
34
+ ## Key characteristics
35
+
36
+ - **Task:** binary classification of PowerShell scripts
37
+ - **Content:** benign and malicious `.ps1` files
38
+ - **Total samples:** 30,595
39
+ - **Obfuscation:** includes multiple encoding and other PowerShell obfuscation techniques
40
+ - **Syntax quality:** every sample is parseable by the official PowerShell AST parser
41
+ - **Representation:** one script per file, organized by numeric label
42
+ - **Source split traceability:** original split, shard, and row identifiers are retained in filenames
43
+
44
+ ## Dataset structure
45
+
46
+ The downloadable archive is `ast_ps1_by_label.tar.gz` (approximately 5.21 GB / 4.85 GiB compressed) and expands to:
47
+
48
+ The dataset uses the following label convention:
49
+
50
+ | Directory | Label | Samples |
51
+ |---|---|---:|
52
+ | `0/` | Benign | 15,173 |
53
+ | `1/` | Malicious | 15,422 |