Datasets:
Rewrite dataset card in English
Browse files
README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
pretty_name:
|
| 3 |
language:
|
| 4 |
-
- id
|
| 5 |
- en
|
| 6 |
license: other
|
| 7 |
size_categories:
|
|
@@ -20,21 +19,31 @@ tags:
|
|
| 20 |
- yaml
|
| 21 |
- solidity
|
| 22 |
---
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
| Berkas | Rekaman | Isi |
|
| 31 |
|---|---:|---|
|
| 32 |
-
| `data/challenge_fix.jsonl` | 83 |
|
| 33 |
-
| `data/reference.jsonl` | 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
| 38 |
|
| 39 |
```python
|
| 40 |
from datasets import load_dataset
|
|
@@ -45,18 +54,15 @@ data = load_dataset("json", data_files={
|
|
| 45 |
})
|
| 46 |
```
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
## Batas label
|
| 51 |
-
|
| 52 |
-
Juice Shop menyediakan beberapa alternatif code-fix dan file yang berakhiran `_correct`. Label hanya menyatakan bahwa upstream menandai satu alternatif sebagai benar dalam challenge tersebut. Alternatif lain diberi label `not_marked_correct`, **bukan** otomatis “vulnerable”; solusi challenge juga bukan jaminan keamanan universal. Penjelasan berasal dari metadata `.info.yml`, dan tidak ada CWE yang direka untuk sampel.
|
| 53 |
-
|
| 54 |
-
Berkas OpenZeppelin adalah referensi komponen library, bukan contoh rentan, bukan aplikasi lengkap, dan bukan audit sistem yang mengintegrasikannya.
|
| 55 |
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
-
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: "Curated Secure-Coding Dataset: OWASP Juice Shop and OpenZeppelin"
|
| 3 |
language:
|
|
|
|
| 4 |
- en
|
| 5 |
license: other
|
| 6 |
size_categories:
|
|
|
|
| 19 |
- yaml
|
| 20 |
- solidity
|
| 21 |
---
|
| 22 |
+
# Curated Secure-Coding Dataset: OWASP Juice Shop and OpenZeppelin
|
| 23 |
|
| 24 |
+
This release contains **88 records** for secure-code review and code-fix research: **83 OWASP Juice Shop challenge records** across 33 challenge groups (71 TypeScript and 12 YAML), plus **5 Solidity reference records** from OpenZeppelin Contracts v5.7.0.
|
| 25 |
|
| 26 |
+
## Files and splits
|
| 27 |
|
| 28 |
+
| File | Records | Contents |
|
|
|
|
|
|
|
| 29 |
|---|---:|---|
|
| 30 |
+
| `data/challenge_fix.jsonl` | 83 | TypeScript and YAML candidate/fix records from OWASP Juice Shop code-fix challenges. |
|
| 31 |
+
| `data/reference.jsonl` | 5 | Solidity library components from OpenZeppelin Contracts v5.7.0. |
|
| 32 |
+
|
| 33 |
+
The `split` field uses `challenge_fix` and `reference` to identify these two record groups. These are **not** conventional train, validation, or test partitions.
|
| 34 |
+
|
| 35 |
+
## Sources and selection
|
| 36 |
+
|
| 37 |
+
- **OWASP Juice Shop:** Selected first-party TypeScript and YAML code-fix challenge material with accompanying challenge metadata. The source is pinned to [commit `c9f99228d9d56afb5f5ca7925376292f7fa44b13`](https://github.com/juice-shop/juice-shop/tree/c9f99228d9d56afb5f5ca7925376292f7fa44b13). Challenge explanations and source paths are retained with the records.
|
| 38 |
+
- **OpenZeppelin Contracts:** Five Solidity components from [version v5.7.0](https://github.com/OpenZeppelin/openzeppelin-contracts/tree/v5.7.0): `ERC20.sol`, `Ownable.sol`, `AccessControl.sol`, `ReentrancyGuard.sol`, and `Pausable.sol`.
|
| 39 |
+
|
| 40 |
+
Each record includes source and provenance metadata. The `MANIFEST.json` file records dataset totals and SHA-256 checksums for the JSONL files.
|
| 41 |
|
| 42 |
+
## Record format
|
| 43 |
|
| 44 |
+
Each JSONL record contains: `id`, `source`, `task_type`, `domain`, `language`, `instruction`, `input`, `output`, `split`, `labels_json`, and `provenance_json`. The label and provenance fields preserve structured challenge labels and source details.
|
| 45 |
+
|
| 46 |
+
To load the files locally with the `datasets` library:
|
| 47 |
|
| 48 |
```python
|
| 49 |
from datasets import load_dataset
|
|
|
|
| 54 |
})
|
| 55 |
```
|
| 56 |
|
| 57 |
+
## Label interpretation and limitations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
- In the Juice Shop records, an upstream `*_correct` solution is labeled as marked correct for its challenge. Other selected alternatives are labeled as not marked correct by that challenge; this does **not** assert that an alternative is vulnerable.
|
| 60 |
+
- Challenge labels are specific to their upstream exercises. They are not a universal security guarantee, and the reference components are not vulnerability labels or application audits.
|
| 61 |
+
- The challenge records do not have an independent train/test split. Related records from the same challenge group should not be treated as independent evaluation examples.
|
| 62 |
+
- The OpenZeppelin records are library-component references, not complete applications or labeled safe/unsafe examples.
|
| 63 |
|
| 64 |
+
## Licensing and attribution
|
| 65 |
|
| 66 |
+
The selected OWASP Juice Shop files at the pinned source commit are covered by the upstream MIT license. The selected OpenZeppelin files identify MIT licensing in their source headers. The corresponding license texts are included as `LICENSES/OWASP-JUICE-SHOP-MIT.txt` and `OPENZEPPELIN-MIT.txt`. Retain the applicable copyright and permission notices when redistributing the corresponding code.
|
| 67 |
|
| 68 |
+
No single license is asserted for every file in this repository. Review the relevant source and per-record provenance before reusing or redistributing material. See the [OWASP Juice Shop license at the pinned commit](https://raw.githubusercontent.com/juice-shop/juice-shop/c9f99228d9d56afb5f5ca7925376292f7fa44b13/LICENSE) and the [OpenZeppelin v5.7.0 source](https://github.com/OpenZeppelin/openzeppelin-contracts/tree/v5.7.0).
|