cass-vibe-security-bench / data /triples.jsonl
bbkdevops's picture
Upload folder using huggingface_hub
965a74c verified
Raw History Blame Contribute Delete
2.84 kB
{"file": "eval_raw.py", "state": "def run(e):\n return eval(e)\n", "truth": true, "teacher_noul": 0.97, "teacher_hazard": "code_exec"}
{"file": "shell.py", "state": "import os\ndef f(p):\n return os.system('ls ' + p)\n", "truth": true, "teacher_noul": 0.97, "teacher_hazard": "shell_injection"}
{"file": "pickle.py", "state": "import pickle\ndef f(b):\n return pickle.loads(b)\n", "truth": true, "teacher_noul": 0.98, "teacher_hazard": "deserialization"}
{"file": "secret.py", "state": "K = 'nvapi-ABCDEFGHIJKLMNOPQRSTUVWXYZ123456'\n", "truth": true, "teacher_noul": 0.93, "teacher_hazard": "secret"}
{"file": "weak.py", "state": "import hashlib\ndef h(x):\n return hashlib.md5(x)\n", "truth": true, "teacher_noul": 0.98, "teacher_hazard": "weak_crypto"}
{"file": "clean_add.py", "state": "def add(a, b):\n return a + b\n", "truth": false, "teacher_noul": 0.02, "teacher_hazard": "none"}
{"file": "clean_ast.py", "state": "import ast\ndef run(e):\n return ast.literal_eval(e)\n", "truth": false, "teacher_noul": 0.05, "teacher_hazard": "none"}
{"file": "clean_sq.py", "state": "def sq(x):\n return x * x\n", "truth": false, "teacher_noul": 0.02, "teacher_hazard": "none"}
{"file": "h_eval2.py", "state": "def run(e):\n return eval(e, {})\n", "truth": true, "teacher_noul": 0.97, "teacher_hazard": "code_exec"}
{"file": "h_shell2.py", "state": "import subprocess\ndef f(c):\n return subprocess.call(c, shell=True)\n", "truth": true, "teacher_noul": 0.91, "teacher_hazard": "shell_injection"}
{"file": "h_clean2.py", "state": "import ast\ndef calc(e):\n return ast.literal_eval(e)\n", "truth": false, "teacher_noul": 0.05, "teacher_hazard": "none"}
{"file": "h_clean3.py", "state": "def mul(a, b):\n return a * b\n", "truth": false, "teacher_noul": 0.02, "teacher_hazard": "none"}
{"file": "exec1.py", "state": "def f(c):\n exec(c)\n", "truth": true, "teacher_noul": 0.97, "teacher_hazard": "code_exec"}
{"file": "trav1.py", "state": "def f(n):\n return open('/tmp/' + n)\n", "truth": true, "teacher_noul": 0.35, "teacher_hazard": "none"}
{"file": "sha1.py", "state": "def h(x):\n return sha1(x)\n", "truth": true, "teacher_noul": 0.93, "teacher_hazard": "weak_crypto"}
{"file": "clean_list.py", "state": "import subprocess\ndef f():\n return subprocess.run(['ls', '-l'])\n", "truth": false, "teacher_noul": 0.08, "teacher_hazard": "none"}
{"file": "clean_open.py", "state": "def f():\n return open('/tmp/fixed.txt')\n", "truth": false, "teacher_noul": 0.06, "teacher_hazard": "none"}
{"file": "h_exec2.py", "state": "def f(c):\n exec(c, {})\n", "truth": true, "teacher_noul": 0.97, "teacher_hazard": "code_exec"}
{"file": "h_clean4.py", "state": "import hashlib\ndef h(x):\n return hashlib.sha256(x)\n", "truth": false, "teacher_noul": 0.05, "teacher_hazard": "none"}