Replication Package for "Generating Mitigations for Downstream Projects to Neutralize Upstream Library Vulnerability"

Read full text Summarise with VIRAT
Authors: Zirui Chen
Cited by: 0

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

LUMEN Reproduction Guide This repository contains the main LUMEN pipeline (Methodology/), the C++ variant (Methodology-cpp/), the evaluation scripts under workspace/, and the auxiliary servers under reproduce/. 1. Configure the conda lumen environment Create and activate the environment first: conda create -n lumen python=3.11 -yconda activate lumen This repository now ships a requirements.txt exported directly from the current lumen environment. After activating lumen, install or synchronize dependencies with: pip install -r requirements.txt If you later update the lumen environment and want to refresh the lockfile, re-export it with: conda run -n lumen python -m pip freeze > requirements.txt You also need the local toolchain used by the pipeline: Maven in PATH Git in PATH Java 8 / 11 / 17 installed locally If your JDK locations are not discovered automatically, export JAVA8_HOME, JAVA11_HOME, and JAVA17_HOME If Joern needs a separate Java 11 runtime, export JOERN_JAVA_HOME The datasets checked out under: Dataset/ Dataset_with_exploit/ All scripts now resolve paths relative to the repository root by default. If you want to override the root explicitly, export: export MITIGATION_BASE_DIR=/path/to/this/repo For non-interactive runs, it is recommended to export the LLM settings in advance (Methodology-abalation/main.py Dataset/vulnerability_input_all.json is our dataset): export LUMEN_BASE_URL=https://your-llm-endpoint/v1export OPENAI_API_KEY=YOUR_KEYexport LUMEN_MODEL=gpt-5.2-2025-12-11 If you do not export LUMEN_BASE_URL, OPENAI_API_KEY, or MITIGATION_BASE_DIR, the main runners will ask you to enter them manually at runtime. 2. Run LUMEN on a dataset JSON The default input file is Dataset/vulnerability_input.json. Each item is a JSON object like: { "cve_id": "CVE-2023-24163", "project_name": "027-springboot-el-framework", "vulnerable_api": "cn.hutool.extra.expression.ExpressionUtil.eval(String expression, Map context)", "group_id": "cn.hutool", "artifact_id": "hutool-all", "jdk_version": 8} Recommended workflow: Copy Dataset/vulnerability_input.json to a smaller custom file if you only want to run a subset. Keep only the target cases you want to execute. Run the main pipeline with that JSON. Examples: conda activate lumenpython Methodology/main.py conda activate lumenpython Methodology/main.py Dataset/vulnerability_input.json conda activate lumenpython Methodology/main.py /path/to/your_cases.json Important output locations: Main generation output: result///... Selected best patches used by evaluation: result_best//mitigated// Ablation output: result-abalation//// If you need the ablation pipeline: python Methodology-abalation/main.py Dataset/vulnerability_input_all.json v7_all_strategies 3. Verification servers for exploit reproduction Some exploit-based validations require the auxiliary servers under reproduce/servers/. 3.1 Start the HTTP attack server From the repository root: cd reproduce/servers/attackpython remote.py By default this serves on port 8080 and writes requests to reproduce/servers/attack/log.txt. Optional overrides: export ATTACK_HTTP_PORT=8080export ATTACK_LOG_FILE=/tmp/lumen-attack.logpython reproduce/servers/attack/remote.py 3.2 Start marshalsec and expose 8080 -> 1389 Build marshalsec once if needed: cd reproduce/servers/marshalsecmvn -DskipTests package Then start the LDAP reference server on 1389, pointing it to the HTTP server on 8080: cd reproduce/servers/marshalsecjava -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar \ marshalsec.jndi.LDAPRefServer "http://127.0.0.1:8080/#Exploit" 1389 This is the setup used when the vulnerable target performs an LDAP lookup on ldap://127.0.0.1:1389/... and fetches the remote class from the HTTP server on http://127.0.0.1:8080/. 4. Run the evaluation scripts 4.1 Exploit-based auto evaluation Single case: conda activate lumenpython workspace/auto_evaluation/auto_eval_repro.py \ --cve-id CVE-2022-1471 \ --project-name 284_Trident All cases: conda activate lumenpython workspace/auto_evaluation/run_all_auto_eval.py Useful filters: python workspace/auto_evaluation/run_all_auto_eval.py --only-cve CVE-2022-1471python workspace/auto_evaluation/run_all_auto_eval.py --start-at CVE-2022-1471/284_Trident Outputs: Per-case results: workspace/auto_evaluation/results/ Summary: workspace/auto_evaluation/summary.json 4.2 Function-level evaluation Evaluate the functional tests on result_best: conda activate lumenpython workspace/function_auto_evaluation_best/evaluate_best_function_tests.py \ --cve-id CVE-2023-24163 \ --project-name 027-springboot-el-framework Run all function-level evaluations: conda activate lumenpython workspace/function_auto_evaluation_best/run_all_best_function_tests.py Outputs: Per-case results: workspace/function_auto_evaluation_best/results/ Summary: workspace/function_auto_evaluation_best/summary.json If you want to run the separate functionality-review stage from result_best, use: conda activate lumenpython Methodology/functionality_module/run_from_result_best.py Its summaries are written under workspace/functionality_runner/summaries/. 4.3 EvoSuite evaluation By default the EvoSuite evaluator uses reproduce/evosuite-1.2.0.jar. If your jar is elsewhere, export: export EVOSUITE_JAR=/path/to/evosuite-1.2.0.jar Run the batch evaluator: conda activate lumenpython workspace/evosuite_auto_evaluation_best/run_best_evosuite_eval.py Or use the wrapper script: conda activate lumenbash workspace/evosuite_auto_evaluation_best/run_all_best_evosuite_eval.sh Outputs: Per-case results: workspace/evosuite_auto_evaluation_best/results/ Summary: workspace/evosuite_auto_evaluation_best/summary.json

Fields of Study & Subjects

Software Engineering Research Security and Verification in Computing Web Application Security Vulnerabilities

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
2 April 2026
Language
EN