Dataset card: composition, tasks, metrics, construction; link to the code repository
Browse files
README.md
CHANGED
|
@@ -1,3 +1,100 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
pretty_name: Launder-Bench
|
| 4 |
+
language:
|
| 5 |
+
- code
|
| 6 |
+
tags:
|
| 7 |
+
- code
|
| 8 |
+
- provenance
|
| 9 |
+
- plagiarism-detection
|
| 10 |
+
- code-clone-detection
|
| 11 |
+
- coding-agents
|
| 12 |
+
- benchmark
|
| 13 |
+
size_categories:
|
| 14 |
+
- 1K<n<10K
|
| 15 |
---
|
| 16 |
+
|
| 17 |
+
# Launder-Bench
|
| 18 |
+
|
| 19 |
+
**Can repository-level agentic code laundering be detected?**
|
| 20 |
+
|
| 21 |
+
Launder-Bench evaluates whether repository provenance remains recoverable after a coding agent reconstructs a real
|
| 22 |
+
repository from behavioral specifications with the source hidden, while preserving its tested behavior. Every
|
| 23 |
+
released rewrite passed execution-based acceptance gates; labels follow provenance paths, not surface similarity.
|
| 24 |
+
|
| 25 |
+
- **Code and full data pipeline:** [github.com/HuieL/Launder-Bench](https://github.com/HuieL/Launder-Bench)
|
| 26 |
+
(source and reference collection, agentic rewriting, behavioral verification, task construction, detector
|
| 27 |
+
evaluation).
|
| 28 |
+
- **Status:** this card describes the release; the data files will be added to this repository.
|
| 29 |
+
|
| 30 |
+
## Composition
|
| 31 |
+
|
| 32 |
+
| Component | Size | Description |
|
| 33 |
+
| --- | ---: | --- |
|
| 34 |
+
| Source repositories | 282 | pinned real projects: 199 Python, 83 Java (URL, commit, snapshot date) |
|
| 35 |
+
| Same-domain references | 1,244 | measured independent repositories per source, TF-IDF similarity < 0.35 (median 0.076) |
|
| 36 |
+
| Launder-Pair | 1,128 | 4 verified rewrites per source, each with its reference neighborhood |
|
| 37 |
+
| Launder-Attr | 229 | one query per source with 5 measured references, over 20 fixed candidates |
|
| 38 |
+
| Control tier | 150 / 30 | random, unselected Pair / Attr instances over 3 axes |
|
| 39 |
+
|
| 40 |
+
Rewriting axes: py→js, py→py, java→java, java→js. The release is the full verified set; no detector-informed or
|
| 41 |
+
difficulty-based selection defines it.
|
| 42 |
+
|
| 43 |
+
## Tasks
|
| 44 |
+
|
| 45 |
+
**Launder-Pair — pairwise provenance detection.** Given repositories (R<sub>q</sub>, R<sub>c</sub>), decide whether
|
| 46 |
+
they share a source ancestor.
|
| 47 |
+
|
| 48 |
+
| Relation | Label | Meaning |
|
| 49 |
+
| --- | :---: | --- |
|
| 50 |
+
| source–rewrite | + | direct provenance |
|
| 51 |
+
| rewrite–rewrite | + | shared provenance through the same source |
|
| 52 |
+
| rewrite–independent | − | matched purpose, no provenance path (central hard negative) |
|
| 53 |
+
| rewrite–unrelated | − | neither matched purpose nor provenance |
|
| 54 |
+
|
| 55 |
+
**Launder-Attr — source attribution.** Rank a fixed set of 20 distinct candidates that contains the true source
|
| 56 |
+
exactly once (its 5 measured references are the hard alternatives; language-matched distractors complete the set).
|
| 57 |
+
A detector may abstain.
|
| 58 |
+
|
| 59 |
+
**Metrics.** AUROC and best F1 for pairwise discrimination; band-calibrated TPR/FPR; tie-aware Rank@1 and calibrated
|
| 60 |
+
attribution. The source-specific reference band is β<sub>d</sub>(s) = max over the source's references N of
|
| 61 |
+
d(R<sub>s</sub>, N); calibrated attribution credits the true source only when it is ranked first and its score exceeds
|
| 62 |
+
that band. A source-absent diagnostic removes the true source from the candidate set.
|
| 63 |
+
|
| 64 |
+
## Construction
|
| 65 |
+
|
| 66 |
+
Rewrites are produced by Codex CLI 0.144.5 with GPT-5.6-Sol (GLM-5.3 and DeepSeek-V4.1-Flash in the backbone
|
| 67 |
+
ablation). Each stage is a separate headless session: a decompose session writes a bottom-up unit manifest, the source
|
| 68 |
+
is hidden, each unit is rewritten in isolation from its own specification and its dependencies' interfaces, and a
|
| 69 |
+
compose session assembles the units and iterates against the behavioral oracle until every golden case passes. A
|
| 70 |
+
second cycle re-decomposes the composed repository, and a critic removes surviving source-chosen tokens. Three
|
| 71 |
+
recipes are released: full contract, external vocabulary and critic.
|
| 72 |
+
|
| 73 |
+
A rewrite is accepted only if the source harness yields at least 5 successful cases, the rewrite reproduces at least
|
| 74 |
+
half of the successful golden outputs exactly with overall conformance ≥ 0.5, its conformance adapter stays thin
|
| 75 |
+
(≤ half of the artifact's tokens), and its size is judged against min(original tokens, 11,000).
|
| 76 |
+
|
| 77 |
+
## Contents of a release instance
|
| 78 |
+
|
| 79 |
+
- the rewritten repository and its conformance adapter (excluded from scoring);
|
| 80 |
+
- the source's conformance cases and golden traces;
|
| 81 |
+
- the pinned source manifest and the reference neighborhood;
|
| 82 |
+
- the Pair relations or the fixed Attr candidate list, with axis and recipe.
|
| 83 |
+
|
| 84 |
+
## Limitations and responsible use
|
| 85 |
+
|
| 86 |
+
Behavioral validity is oracle-covered rather than whole-program equivalence. Reference repositories are empirical
|
| 87 |
+
controls, not certificates of legal or historical independence. Source repositories are third-party projects under
|
| 88 |
+
their own licenses; the benchmark records technical derivation and does not determine legal ownership or license
|
| 89 |
+
compliance.
|
| 90 |
+
|
| 91 |
+
## Citation
|
| 92 |
+
|
| 93 |
+
```bibtex
|
| 94 |
+
@inproceedings{launderbench2027,
|
| 95 |
+
title = {Launder-Bench: Can Repository-Level Agentic Code Laundering Be Detected?},
|
| 96 |
+
author = {Anonymous},
|
| 97 |
+
booktitle = {Under review},
|
| 98 |
+
year = {2026}
|
| 99 |
+
}
|
| 100 |
+
```
|