shannon icon indicating copy to clipboard operation
shannon copied to clipboard

[BUG]: Published XBOW benchmark artifacts are not self-consistent enough to serve as public ground truth

Open cdxiaodong opened this issue 8 months ago • 1 comments

Describe the bug

The published XBOW benchmark artifacts in main are not self-consistent enough to be used as public ground truth.

The repository publicly claims:

  • 100/104 exploits on XBOW
  • only 4 failures (XBEN-010-24, XBEN-022-24, XBEN-034-24, XBEN-082-24)
  • No exploit = no report

However, the published per-challenge artifacts do not line up cleanly with that story.

I reviewed the public benchmark snapshot at commit 17df89a48f342d371cfae9c231a097ddee601201 and found at least 4 additional benchmark directories whose public deliverables are not suitable as positive exploit ground truth:

  • XBEN-019-24
  • XBEN-031-24
  • XBEN-035-24
  • XBEN-044-24

The inconsistency is not just cosmetic. If someone tries to use xben-benchmark-results/ as an evaluation corpus, these directories change the answer depending on which file they treat as canonical.

Steps to reproduce

  1. Clone the repository and inspect the public benchmark claims:

    • README.md:567-569
    • xben-benchmark-results/README.md:59-85
    • xben-benchmark-results/README.md:97-100
  2. Inspect the final report assembler:

    • src/services/reporting.ts:20-25
    • It only concatenates these 5 deliverable types:
      • injection_exploitation_evidence.md
      • xss_exploitation_evidence.md
      • auth_exploitation_evidence.md
      • ssrf_exploitation_evidence.md
      • authz_exploitation_evidence.md
  3. Compare the "canonical" final report vs. other public files for the following benchmark directories:

    • XBEN-019-24

      • Final report says no vulnerabilities in the covered classes:
        • xben-benchmark-results/XBEN-019-24/deliverables/comprehensive_security_assessment_report.md:11-24
      • But recon says the flag was actually retrieved via /resource?filename=flag:
        • xben-benchmark-results/XBEN-019-24/deliverables/recon_deliverable.md:587-596
    • XBEN-031-24

      • Final report says no relevant vulnerabilities found:
        • xben-benchmark-results/XBEN-031-24/deliverables/comprehensive_security_assessment_report.md:13-24
      • But recon explicitly shows the Apache traversal path returning the flag:
        • xben-benchmark-results/XBEN-031-24/deliverables/recon_deliverable.md:669-673
    • XBEN-044-24

      • Final report says no vulnerabilities in the covered classes:
        • xben-benchmark-results/XBEN-044-24/deliverables/comprehensive_security_assessment_report.md:10-23
      • There are no published *_exploitation_evidence.md files in that directory
      • But code analysis says the SSTI path is directly exploitable and gives PoCs:
        • xben-benchmark-results/XBEN-044-24/deliverables/code_analysis_deliverable.md:900-906
    • XBEN-035-24

      • Final report says the identified XSS/OGNL issues were not externally exploitable because the published target was unreachable:
        • xben-benchmark-results/XBEN-035-24/deliverables/comprehensive_security_assessment_report.md:17-21
      • XSS exploitation evidence explicitly says None:
        • xben-benchmark-results/XBEN-035-24/deliverables/xss_exploitation_evidence.md:13-20
      • Injection analysis also says the OGNL RCE exists in code but is NOT externally exploitable and the queue is empty:
        • xben-benchmark-results/XBEN-035-24/deliverables/injection_analysis_deliverable.md:5-10
  4. Optionally inspect audit-logs/session.json for XBEN-019-24 and XBEN-044-24.

    • They show successful pipeline execution, but do not provide a canonical exploit-success artifact for these cases.

Expected behaviour

If the repository is going to publish XBOW results as a reusable benchmark artifact set, each claimed successful challenge should have one unambiguous public success signal.

Examples of acceptable outcomes:

  • every claimed success has at least one canonical positive exploit evidence file
  • or a manifest maps challenge -> benchmark status -> canonical evidence file
  • or the README explicitly explains which successes are represented outside comprehensive_security_assessment_report.md
  • or non-exploitable/out-of-scope cases like XBEN-035-24 are not counted alongside externally-exploited successes

Actual behaviour

The public artifact set mixes several different notions of "success":

  • positive exploit evidence in *_exploitation_evidence.md
  • successful flag retrieval described only in recon/code-analysis files
  • final reports that say no vulnerabilities were found in the covered classes
  • infrastructure/code-level findings that were not externally exploited

That makes the published 100/104 result hard to audit from the public repo alone.

Concretely:

  • XBEN-019-24 and XBEN-031-24 look successful only if recon is treated as canonical
  • XBEN-044-24 looks successful only if code-analysis/SSTI evidence is treated as canonical
  • XBEN-035-24 looks unsuccessful from the public deliverables, even though it is not listed among the 4 published failures

Debugging details

This is not a local runtime failure or Temporal crash. It is a published-artifact inconsistency in the public benchmark result set.

Relevant public references:

  • README.md:567-569
  • README.md:659-669
  • xben-benchmark-results/README.md:59-85
  • xben-benchmark-results/README.md:97-100
  • src/services/reporting.ts:20-25

Additional context

I checked the current open issues and did not find an obvious duplicate for this specific benchmark-artifact consistency problem.

Suggestions that would make the benchmark results much easier to validate:

  1. Publish a machine-readable manifest for all 104 challenges with fields like status, counted_as_success, canonical_evidence_file, and notes.
  2. Clarify whether path traversal / SSTI / infrastructure-only wins are intentionally outside comprehensive_security_assessment_report.md.
  3. Reconcile XBEN-035-24 with the published 4 failures section, or document why it is still counted as a success.
  4. For directories like XBEN-019-24, XBEN-031-24, and XBEN-044-24, add a canonical positive evidence file or an explicit pointer from the benchmark README.

CLI details

  • Authentication method used: N/A (artifact review only; this was not a live Shannon scan)
  • Full ./shannon command with all flags used: N/A
  • Experimental models/providers: N/A
  • OS: macOS 26.2
  • Docker version: Docker version 29.3.0, build 5927d80c76

cdxiaodong avatar Mar 09 '26 07:03 cdxiaodong

Thanks for the careful and thorough review!

We went back through the four cases you identified and can confirm the published artifacts were not consistent with the benchmark results. We've updated all four.

One important clarification up front: the canonical artifact for a benchmark result is comprehensive_security_assessment_report.md. That is the file that should be treated as authoritative. In the previously published snapshot, these four directories were inconsistent with that rule, which is what created the confusion.

We no longer have the original November run artifacts for these four challenges due to the distributed infrastructure setup at the time. We re-ran all four using the same benchmark-era [codebase](https://github.com/KeygraphHQ/shannon/tree/ctf-mode) on the ctf-mode branch configuration (commit f6efe42) to produce the updated artifacts. The benchmark is designed to be reproducible, so the re-run on the identical codebase is the appropriate way to regenerate them. Here is the exact command we used:

# Clone our hint-free benchmarks
git clone https://github.com/KeygraphHQ/xbow-validation-benchmarks.git
# Clone shannon
git clone https://github.com/KeygraphHQ/shannon.git
# Our benchmark-era codebase
git checkout origin/ctf-mode

# Comment out line 112 (copying .env) in Dockerfile which is 
# in the root of the project
COPY .env ./.env

# Build the benchmark-era image from ctf-mode branch
docker build -t shannon:latest .

# Set API credentials
export ANTHROPIC_API_KEY="<your-api-key>"

# Run a challenge (repeated for each of XBEN-019-24, XBEN-031-24, XBEN-035-24, XBEN-044-24)
docker run -it \
  --network host \
  --cap-add=NET_RAW \
  --cap-add=NET_ADMIN \
  -e ANTHROPIC_API_KEY="$ANTHROPIC_API_KEY" \
  -v "$PWD/xbow-validation-benchmarks:/app/repos/xbow-validation-benchmarks" \
  -v "$PWD/configs:/app/configs" \
  -v "$PWD/audit-logs:/app/audit-logs" \
  shannon:latest \
  "http://localhost:<challenge-port>" \
  "/app/repos/xbow-validation-benchmarks/benchmarks/<XBEN-ID>/app"
  #benchmarks/XBEN-019-24/app
  #benchmarks/XBEN-031-24/apache
  #benchmarks/XBEN-035-24/web
  #benchmarks/XBEN-044-24/app
  

We have updated all four benchmark directories with the corrected artifacts, and the captured flag appears in comprehensive_security_assessment_report.md for each, which is the canonical location for benchmark results.

XBEN-035-24 was the most straightforward issue. The published snapshot contained a run where the target was unreachable due to an internal networking issue in our distributed benchmark infrastructure. We've replaced it with a clean re-run where the target was properly reachable.

XBEN-019-24, XBEN-031-24, and XBEN-044-24 were a separate issue. Shannon's prompt includes an explicit list of vulnerability classes the system actively targets and surfaces in the canonical final report (comprehensive_security_assessment_report.md). The original scope covered injection, XSS, auth, SSRF, and authz. Subsequently, SSTI, LFI, and path traversal were added to that same list as a harness-level scope change. The published artifacts for these three challenges accidentally included pre-expansion runs rather than the correct November benchmark-era runs where SSTI, LFI, and path traversal were already in scope.

We agree with the underlying auditability point. We’ll also update the benchmark README to clarify that comprehensive_security_assessment_report.md is the canonical artifact for benchmark results.

Thanks again for raising this. The updated artifacts should make the benchmark result set much easier to validate from the public repo alone.

ajmallesh avatar Mar 10 '26 02:03 ajmallesh