Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
id: string
file: string
language: string
input_format: string
expected_rules: list<item: string>
child 0, item: string
expected_cwes: list<item: string>
child 0, item: string
vulnerable_lines: list<item: int64>
child 0, item: int64
owasp_benchmark_ref: string
content_preview: string
line_count: int64
to
{'id': Value('string'), 'file': Value('string'), 'language': Value('string'), 'expected_rules': List(Value('string')), 'expected_cwes': List(Value('string')), 'vulnerable_lines': List(Value('int64')), 'owasp_benchmark_ref': Value('string'), 'content_preview': Value('string'), 'line_count': Value('int64')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1816, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
id: string
file: string
language: string
input_format: string
expected_rules: list<item: string>
child 0, item: string
expected_cwes: list<item: string>
child 0, item: string
vulnerable_lines: list<item: int64>
child 0, item: int64
owasp_benchmark_ref: string
content_preview: string
line_count: int64
to
{'id': Value('string'), 'file': Value('string'), 'language': Value('string'), 'expected_rules': List(Value('string')), 'expected_cwes': List(Value('string')), 'vulnerable_lines': List(Value('int64')), 'owasp_benchmark_ref': Value('string'), 'content_preview': Value('string'), 'line_count': Value('int64')}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1869, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
id string | file string | language string | expected_rules list | expected_cwes list | vulnerable_lines list | owasp_benchmark_ref string | content_preview string | line_count int64 |
|---|---|---|---|---|---|---|---|---|
bench-wp-001 | wordpress_vulnerable_plugin.php | php | [
"WP-NONCE-001",
"WP-SQL-001",
"WP-XSS-001",
"WP-DESER-001",
"WP-UPLOAD-001",
"WP-CAP-001",
"WP-CSRF-001"
] | [
"CWE-352",
"CWE-89",
"CWE-79",
"CWE-502",
"CWE-434",
"CWE-862"
] | [
7,
12,
13,
14,
17,
18,
21,
24
] | OWASP-Benchmark-v1.2-injection | <?php
/**
* Vulnerable WordPress plugin endpoint — demo sample for SecureDiff AI.
* DO NOT use in production.
*/
add_action('wp_ajax_update_settings', 'my_plugin_update_settings');
function my_pl | 30 |
bench-js-001 | express_dom_xss.js | javascript | [
"JS-XSS-002",
"JS-SECRET-001",
"JS-FETCH-001",
"JS-PROTO-001",
"JS-EVAL-001"
] | [
"CWE-79",
"CWE-798",
"CWE-319",
"CWE-1321",
"CWE-95"
] | [
3,
7,
12,
16,
23
] | OWASP-Benchmark-v1.2-xss | // Vulnerable Express-style frontend handler — demo sample for SecureDiff AI.
const API_KEY = "sk-live-abc123xyz789secretkey";
function renderProfile(userInput) {
const container = document.getEle | 27 |
bench-py-001 | flask_api_vulnerable.py | python | [
"PY-CMD-001",
"PY-CMD-002",
"PY-YAML-001",
"PY-PICKLE-001",
"PY-PATH-001",
"PY-SQL-001",
"PY-CRYPTO-001"
] | [
"CWE-78",
"CWE-502",
"CWE-22",
"CWE-89",
"CWE-328"
] | [
13,
18,
23,
28,
33,
37,
41
] | OWASP-Benchmark-v1.2-injection | """Vulnerable Flask-style API handler — demo sample for SecureDiff AI."""
import hashlib
import os
import pickle
import subprocess
import yaml
from flask import request
def run_report():
user_ | 43 |
- Downloads last month
- 34