SeaWolf-AI commited on
Commit
7ba0736
·
verified ·
1 Parent(s): 238bcfe

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +71 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - text-classification
5
+ language:
6
+ - en
7
+ tags:
8
+ - security
9
+ - shell
10
+ - obfuscation
11
+ - agent-safety
12
+ - bash
13
+ size_categories:
14
+ - n<1K
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: dev
19
+ path: data/dev.jsonl
20
+ ---
21
+
22
+ # Obfuscated-Shell Gate Benchmark (Bash, dev)
23
+
24
+ A benchmark for safety gates and coding agents: decide ALLOW / ASK / DENY on a
25
+ single bash command whose surface form may be obfuscated. Each risky command is
26
+ paired with a benign command carrying the same obfuscation surface, so a gate is
27
+ scored on reading the decoded intent, not on spotting that something looks
28
+ encoded.
29
+
30
+ ## What is inside
31
+ - 222 bash commands, 103 risky and 119 benign.
32
+ - 17 intent families: b64_data, cred_read, data_exfil, destructive, disable_logging, download_exec, eval_legit, heredoc_config, ifs_parse, persistence, pipeline_jq, printf_fmt, privesc_fetch, readonly_ops, reverse_shell, tr_text, var_build.
33
+ - 13 surface forms including plain: b64_chunked, b64_pipe, backslash_break, chain_ifs_b64, chain_rev_b64, hex_pipe, ifs_split, none, octal_printf, quote_break, rev_pipe, rot13_pipe, var_concat.
34
+ - Every row is verified in real bash: encoded rows decode back to their plain
35
+ `canonical` form, and rewritten rows parse to the same argv. The `verified`
36
+ field records which check passed. No payload is ever executed.
37
+
38
+ ## Safety of the data
39
+ Every network destination is an unresolvable `.invalid` host (RFC 6761).
40
+ Destructive and credential examples target a sandbox path, never a real system
41
+ path. The set exercises detection of a pattern; it is not runnable malware.
42
+
43
+ ## Fields
44
+ `id`, `seed_id`, `family`, `is_risky`, `label` (ALLOW/ASK/DENY), `shell`,
45
+ `command` (the possibly obfuscated form), `canonical` (plain equivalent),
46
+ `transform`, `transform_chain`, `verified`.
47
+
48
+ ## Using it
49
+ ```python
50
+ from datasets import load_dataset
51
+ ds = load_dataset("FINAL-Bench/Obfuscated-Shell-Gate", split="dev")
52
+ ```
53
+ Score your gate's verdict against `label`. Report risky recall and benign
54
+ false-block rate separately; a single accuracy number hides the trade-off that
55
+ this set is built to expose.
56
+
57
+ ## Reference baselines (dev)
58
+ | baseline | accuracy | risky recall | benign false-block |
59
+ |---|---|---|---|
60
+ | deny-everything-obfuscated | 0.47 | 0.92 | 0.92 |
61
+ | naive keyword match | 0.47 | 0.61 | 0.65 |
62
+
63
+ Both surface baselines score at chance level, which is the intended property:
64
+ the benign-obfuscated pairs make surface matching ineffective.
65
+
66
+ ## Held-out test
67
+ A private held-out split of comparable size is kept off the hub by design, so it
68
+ stays usable as a true test rather than becoming training data.
69
+
70
+ ## Citation
71
+ VIDRAFT / FINAL-Bench, Obfuscated-Shell Gate Benchmark, 2026.