MCP
WL

Weidi Luo

23 papers in the library · Same-name authors told apart using DBLP

Papers

23
AutoRedClaw: Automated Red-Teaming for Claw-Style Agents
Hao LiTongyan HuWeidi LuoShanghao ShiXiaogeng LiuAiden SuhYulong CaoNing ZhangWilliam YeohYevgeniy VorobeychikChaowei Xiao
AutoRedClaw is an automated red-teaming framework for persistent, claw-style agents like OpenClaw, whose poisoned configuration files, memory, and skills create recurring threats across sessions. It generates end-to-end attacks alongside execution environments, combining strict quality-checking with execution-based validation and task-driven environment construction to ensure realism at low cost. Organized by risk categories, strategies, stages, and surfaces, it achieves attack rates above 30% at under $0.10 per successful sample. Its outputs form RedClaw-Bench, 330 cases yielding higher attack success rates than prior benchmarks across seven harnesses and four frontier models.
arXivarXiv · · October 19, 2026
0
Your Harness is Not Secure: Benchmarking Real-world Threat of Command Line Interface Agent
Weidi LuoQiming ZhangTianyu LuXiaogeng LiuBin HuChiu Hung ChunSiyuan MaYizhe ZhangXusheng XiaoYinzhi CaoZhen XiangChaowei Xiao
Command-line interface (CLI) agents powered by large language models (LLMs) can interpret natural-language requests, plan multi-step tasks, execute shell commands, and modify files and system state. As these agents are increasingly used for operating-system (OS) workflows, it is important to evaluate whether they can be misused to carry out security-relevant operations. Existing benchmarks often lack an attacker-knowledge model grounded in tactics, techniques, and procedures (TTPs), provide limited coverage of end-to-end kill chains, rely on simplified single-host environments, or use LLM-as-a-judge for success evaluation. We introduce ADVCLI, an MITRE ATT CK-aligned benchmark for evaluating OS-level misuse risks of CLI agents in a controlled multi-host sandbox. ADVCLI contains 140 tasks: 40 direct malicious requests, 74 TTP-based tasks, and 26 end-to-end kill chains. Each task is paired with deterministic hard-coded verification protocols that check whether the requested OS-level effect is realized. We evaluate seven CLI Agents and products built on nine foundation models, including ReAct, OpenClaw, OpenAI Agent SDK, Claude Code, Gemini CLI, Cursor CLI, and Cursor IDE. Results show that current CLI frequently proceed beyond refusal and can complete a non-negligible fraction of malicious OS-level tasks, especially when requests include TTP-style attacker knowledge. ADVCLI provides a reproducible testbed for evaluating these risks and for developing stronger safety mechanisms for tool-using CLI agents in the future.
ACL AnthologyACL Anthology · October 2026
0
Complex Problem Solving in Large Language Models: A Statistical Control Survey and Diagnostic Framework
Jiazhang CaiTao Wang…Weidi Luo
This survey frames complex problem solving (CPS) in large language models as a sequential estimation-and-decision problem over a latent solution state. A controller maintains a belief about an unobserved solution trajectory, updates it from noisy intermediate evidence, and decides when to commit, verify, branch, roll back, or abstain to minimize expected loss. The framework organizes existing methods around five components (state representation, transition structuring, validation, search/rollback, uncertainty) and introduces the diagnostic concept of control mismatch, where interventions are effective only when they target the specific error or uncertainty type underlying an observed failure.
arXivarXiv · · September 17, 2026
2
0
Agent MechSuits: Mechanistic Subspace Safety Steering for Multi-Turn CLI Agents
Weidi LuoQiming ZhangYihao QuanMingyu JinJie CaiChaowei XiaoJingcheng NiuZhen Xiang
This paper investigates multi-turn CLI agent safety from an internal, white-box perspective and proposes Agent MechSuits, a defense framework that performs runtime safety detection and representation-level mitigation. Unlike external guardrails, it detects harmful execution states from step-level hidden representations and mitigates unsafe behavior by intervening in a 10-dimensional subspace within a single layer. The authors also introduce the Mechanistic Agent Safety (MAS) benchmark of annotated multi-turn trajectories across 194 tasks with LLaMA-3.1-8B, Qwen-2.5-7B, and Gemma-2-9B. Experiments show strong detection performance, preliminary evidence of lookahead risk anticipation, and substantially reduced harmful actions.
arXivarXiv · · June 21, 2026
1
2
Your Cursor is Not Secure: Command Line Interface Agent Can Expose Realistic Risks Through Tactics, Techniques, and Procedures
Weidi LuoQiming ZhangTianyu LuXiaogeng LiuBin HuCHIU Hung ChunSiyuan MaYizhe ZhangXusheng XiaoYinzhi CaoZhen XiangChaowei Xiao
This paper presents AdvCLI, the first benchmark for LLM-powered command-line interface (CLI) agents aligned with real-world TTPs in the MITRE ATT&CK Enterprise Matrix. It contains 140 tasks—40 direct malicious, 74 TTP-based, and 26 end-to-end kill chains—evaluated in a multi-host sandbox with hard-coded scoring to avoid LLM-as-a-judge bias. Tests of six mainstream CLI agents across nine foundation LLMs reveal critical security vulnerabilities, underscoring the need for stronger alignment defenses.
OpenReviewOpenReview · May 9, 2026
0
8
Agent MechSuits : Mechanistic Subspace Safety Steering for Multi-Turn CLI Agents
Weidi LuoQiming ZhangJie CaiMingyu JinYihao QuanChaowei XiaoJingcheng NiuZhen Xiang
Existing guardrails cannot finely control multi-turn CLI agents during execution, and mechanistic interpretability safety work has largely stayed in single-turn or jailbreak-style QA settings. Agent MechSuits addresses this from an internal, white-box perspective: it detects harmful execution states from step-level hidden representations and mitigates unsafe behavior by intervening in a 10-dimensional subspace within a single layer, unlike conventional external guardrails. The authors also introduce the Mechanistic Agent Safety (MAS) benchmark of comprehensively annotated multi-turn execution trajectories across 194 tasks using LLaMA-3.1-8B, Qwen-2.5-7B, and Gemma-2-9B. Experiments show strong safety detection, support for lookahead risk anticipation, and substantially reduced harmful agent actions.
OpenReviewOpenReview · · May 1, 2026
0
Cooking Up Risks: Benchmarking and Reducing Food Safety Risks in Large Language Models
Weidi LuoXiaofei WenTenghao HuangHao LiHongyi WangZhen XiangChaowei XiaoKristina GligorićMuhao Chen
The paper introduces FoodGuardBench, an FDA-grounded benchmark with 2,124 malicious seed questions, 16,992 jailbreak variants across eight attack strategies, and 1,000 benign questions spanning five food-safety risk categories. Across twelve LLMs, mean overall attack success rate (ASR) is 25.51%, while per-model maximum averages 60.59%, showing single-attack testing underestimates risk. General-purpose guardrails attain only 55.80% detection accuracy with 96.25% benign utility. Fine-tuning on FoodGuardBench yields FoodGuard-4B, a food-safety-specific guardrail achieving 97.64% out-of-distribution accuracy while maintaining high benign utility.
arXivarXiv · · April 1, 2026
0
2
Your Harness is Not Secure: Benchmarking Real-world Threat of Command Line Interface Agent
Weidi LuoQiming ZhangTianyu LuXiaogeng LiuBin HuHung-Chun ChiuSiyuan MaYizhe ZhangXusheng XiaoYinzhi CaoZhen XiangChaowei Xiao
AdvCLI is an MITRE ATT&CK-aligned benchmark for evaluating OS-level misuse risks of command-line interface agents powered by LLMs. It contains 140 tasks (direct malicious requests, TTP-based tasks, and end-to-end kill chains) with deterministic verification protocols. Evaluation of seven agents built on nine foundation models shows that current CLI agents frequently complete malicious tasks, especially those involving TTP-style attacker knowledge, highlighting the need for stronger safety mechanisms.
arXivarXiv · · October 8, 2025
0
8
Doxing via the Lens: Revealing Location-related Privacy Leakage on Multi-modal Large Reasoning Models
Weidi LuoTianyu LuQiming ZhangXiaogeng LiuBin HuYue ZhaoJieyu ZhaoSong GaoPatrick McDanielZhen XiangChaowei Xiao
This paper identifies a new privacy risk in multi-modal large reasoning models (MLRMs): adversaries can infer users' geolocation, such as home addresses, from user-generated images like private selfies. The authors formalize a three-level privacy risk framework, introduce DoxBench, a dataset of 500 real-world images across 6 categories, and evaluate 13 MLRMs/MLLMs, finding most outperform non-expert humans at geolocation inference. They attribute this to strong reasoning from visual clues with internal world knowledge and reliance on privacy-related visual clues without suppression. They also propose GeoMiner, a collaborative attack framework to demonstrate real-world feasibility.
OpenReviewOpenReview · · September 11, 2025
0
Computer-Use Agent Frameworks Can Expose Realistic Risks Through Tactics, Techniques, and Procedures
Weidi LuoQiming ZhangTianyu LuXiaogeng LiuCHIU Hung ChunSiyuan MaBin HuYizhe ZhangXusheng XiaoYinzhi CaoZhen XiangChaowei Xiao
We introduce AdvCUA, the first benchmark aligned with MITRE ATT&CK Enterprise Matrix tactics, techniques, and procedures (TTPs) for computer-use agent (CUA) frameworks. It comprises 140 tasks—40 direct malicious, 74 TTP-based, and 26 end-to-end kill chains—evaluated in a multi-host enterprise OS sandbox via hard-coded judgment. Testing five mainstream CUAs on eight LLMs, the highest average attack success rate reached 69.59% on TTP tasks, showing current frontier CUAs inadequately cover OS security threats and may enable inexperienced attackers to mount complex intrusions.
OpenReviewOpenReview · September 1, 2025
0
0
Alignment and Safety in Large Language Models: Safety Mechanisms, Training Paradigms, and Emerging Challenges
Haoran LuLuyang Fang…Weidi Luo
This survey covers alignment techniques for large language models (LLMs). It characterizes a fundamental trade-off between core alignment objectives, showing that supervised fine-tuning enables basic instruction-following, while preference-based methods like Direct Preference Optimization (DPO) offer more flexible alignment with nuanced human intent. The survey also discusses evaluation frameworks and highlights limitations such as reward misspecification and scalable oversight, concluding with open problems in oversight, value pluralism, robustness, and continuous alignment.
arXivarXiv · · July 25, 2025
0
37
AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection
Weidi LuoShenghong DaiXiaogeng LiuSuman BanerjeeHuan SunMuhao ChenChaowei Xiao
AGrail is a lifelong guardrail for LLM-based agents that detects both task-specific risks (defined by administrators) and systemic risks (threats to confidentiality, integrity, or availability). It achieves adaptive safety check generation, effective optimization, and flexible tool compatibility. Experiments show strong performance against both risk types and transferability across different agent tasks.
ACL AnthologyACL Anthology · · July 2025
0
Disentangling Memory and Reasoning Ability in Large Language Models
Mingyu JinWeidi LuoSitao ChengXinyi WangWenyue HuaRuixiang TangWilliam Yang WangYongfeng Zhang
The paper proposes a new inference paradigm for large language models that separates memory recall from reasoning by introducing two special tokens, `memory` and `reason`, which guide the model to distinguish between knowledge retrieval and reasoning steps. This decomposition improves performance on utility benchmarks and enhances interpretability, allowing users to identify error sources and refine model responses.
ACL AnthologyACL Anthology · July 2025
0
95
Doxing via the Lens: Revealing Location-related Privacy Leakage on Multi-modal Large Reasoning Models
Weidi LuoTianyu LuQiming ZhangXiaogeng LiuBin HuYue ZhaoJieyu ZhaoSong GaoPatrick McDanielZhen XiangChaowei Xiao
This paper identifies a new privacy risk in multi-modal large reasoning models (MLRMs): adversaries can infer sensitive geolocation details, such as a user's home address, from user-generated images. The authors propose a three-level visual privacy risk framework to categorize images by contextual sensitivity for location inference. They introduce DoxBench, a dataset of 500 real-world images, and evaluate 11 MLRMs, showing these models consistently outperform non-expert humans in geolocation inference, lowering the barrier for attackers. The vulnerability stems from MLRMs leveraging visual clues with internal knowledge without suppression mechanisms. A collaborative attack framework, GeoMiner, is also proposed.
arXivarXiv · · April 27, 2025
0
20
Dynamic Guided and Domain Applicable Safeguards for Enhanced Security in Large Language Models
Weidi LuoHe CaoZijing LiuYu WangAidan WongBin FengYuan YaoYu Li
With the extensive deployment of Large Language Models (LLMs), ensuring their safety has become increasingly critical. However, existing defense methods often struggle with two key issues: (i) inadequate defense capabilities, particularly in domain-specific scenarios like chemistry, where a lack of specialized knowledge can lead to the generation of harmful responses to malicious queries. (ii) over-defensiveness, which compromises the general utility and responsiveness of LLMs. To mitigate these issues, we introduce a multi-agents-based defense framework, Guide for Defense (G4D), which leverages accurate external information to provide an unbiased summary of user intentions and analytically grounded safety response guidance. Extensive experiments on popular jailbreak attacks and benign datasets show that our G4D can enhance LLM’s robustness against jailbreak attacks on general and domain-specific scenarios without compromising the model’s general functionality.
ACL AnthologyACL Anthology · April 2025
0
AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection
Weidi LuoShenghong DaiXiaogeng LiuSuman BanerjeeHuan SunMuhao ChenChaowei Xiao
AGrail is a lifelong guardrail for LLM agents that mitigates both task-specific and systemic risks. It adaptively generates and optimizes safety checks, and supports flexible tool integration. Experiments show it achieves strong performance against these risks and transfers effectively across different agent tasks.
arXivarXiv · · February 17, 2025
0
123
Auto-Prompt Generation is Not Robust: Prompt Optimization Driven by Pseudo Gradient
Zeru ShiZhenting WangYongye SuWeidi LuoHang GaoFan YangRuixiang TangYongfeng Zhang
PertBench is a benchmark that systematically evaluates the robustness of automatic prompt generation methods by applying a wide range of input perturbations. Based on the observation that even minor prompt modifications cause significant output differences, the authors propose PGO, a gradient-free framework that uses perturbation types as pseudo-gradient signals to guide LLMs in producing more robust prompts. Experiments show PGO consistently outperforms prior methods in maintaining performance under noisy and perturbed conditions.
arXivarXiv · · December 24, 2024
0
2
Dynamic Guided and Domain Applicable Safeguards for Enhanced Security in Large Language Models
Weidi LuoHe CaoZijing LiuYu WangAidan WongBing FengYuan YaoYu Li
G4D is a multi-agent defense framework that counters jailbreak attacks on large language models (LLMs) without sacrificing general utility. It produces an unbiased summary of user intent and safety response guidance by retrieving accurate external information. Evaluated on popular jailbreak attacks and benign datasets, G4D improved robustness in both general and domain-specific scenarios (e.g., chemistry) while avoiding the over-defensiveness that harms normal functionality.
arXivarXiv · · October 23, 2024
0
12
Prompt Injection Benchmark for Foundation Model Integrated Systems
Jiongxiao WangPeiran LiSiyuan MaPeiran WangXiaogeng LiuJiashuo SunYiming LiangTian XiaYu WangWeidi LuoChaowei Xiao
The paper introduces FSPIB, a benchmark for prompt injection in foundation-model-integrated systems. It addresses two gaps in existing benchmarks: inadequate coverage of non-text modalities (code, web pages, vision) and lack of dynamic, adversarial evaluation. FSPIB provides comprehensive dimensions—task modalities, threat categories, attack and defense algorithms—set in interactive, extensible environments. Analysis of baselines reveals prevalent vulnerabilities and limited effectiveness of current defenses, underscoring the need for further mitigation research.
OpenReviewOpenReview · September 28, 2024
0
0
Visual-RolePlay: Universal Jailbreak Attack on MultiModal Large Language Models via Role-playing Image Character
Siyuan MaWeidi LuoYu WangXiaogeng Liu
Visual-RolePlay (VRP) is a novel jailbreak attack on Multimodal Large Language Models (MLLMs). Unlike prior structure-based attacks that merely convert harmful text into image format, VRP introduces role-playing by using a Large Language Model to generate detailed descriptions of high-risk characters, then creating corresponding images. When paired with benign role-play instruction texts, these images mislead MLLMs into generating malicious responses by enacting characters with negative attributes. Extended to a universal setup, VRP outperforms the strongest baseline, Query relevant and FigStep, by an average Attack Success Rate (ASR) margin of 14.3% across models.
arXivarXiv · · May 25, 2024
0
103
JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attacks
Weidi LuoSiyuan MaXiaogeng LiuXiaoyu GuoChaowei Xiao
JailBreakV-28K is a benchmark to test whether jailbreak techniques that succeed on large language models (LLMs) also transfer to multimodal LLMs (MLLMs). It contains 28,000 test cases built from 2,000 malicious queries, using 20,000 text-based prompts from LLM attacks and 8,000 image-based inputs from MLLM attacks. Evaluating 10 open-source MLLMs shows a high attack success rate for transferred text-based attacks, indicating that MLLMs inherit alignment vulnerabilities from their text-processing component.
arXivarXiv · · April 3, 2024
0
307
JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attacks
Weidi LuoSiyuan MaXiaogeng LiuXiaoyu GuoChaowei Xiao
JailBreakV-28K, introduced in this paper, is the first benchmark assessing how well jailbreak techniques effective on large language models (LLMs) transfer to multimodal LLMs (MLLMs). Built from 2,000 malicious queries, it contains 20,000 text-based prompts from advanced LLM attacks and 8,000 image-based inputs from recent MLLM attacks, totaling 28,000 test cases. Evaluating 10 open-source MLLMs, the authors report a high Attack Success Rate for transferred text attacks, exposing a critical vulnerability in MLLMs' text-processing abilities and urging future alignment research for both textual and visual inputs.
OpenReviewOpenReview · · March 22, 2024
0
Reviving the Context: Camera Trap Species Classification as Link Prediction on Multimodal Knowledge Graphs
Vardaan PahujaWeidi LuoYu GuCheng-Hao TuHong-You ChenTanya Berger-WolfCharles StewartSong GaoWei-Lun ChaoYu Su
This paper formulates camera-trap species classification as link prediction in a multimodal knowledge graph (KG), enabling the integration of heterogeneous context such as time, location, and biological knowledge. By transforming the task into predicting the relationship between an image and a species node in the KG, the framework uses structured context to improve out-of-distribution generalization. It achieves competitive performance on the iWildCam2020-WILDS and Snapshot Mountain Zebra datasets and enhances sample efficiency for under-represented species.
arXivarXiv · · December 31, 2023
0
8
Frequent collaborators
Chaowei Xiao (15)
Xiaogeng Liu (13)
Zhen Xiang (11)
Qiming Zhang (8)
Siyuan Ma (8)
Tianyu Lu (6)
Bin Hu (6)
Yizhe Zhang (4)
Xusheng Xiao (4)
Yinzhi Cao (4)
Yu Wang (4)
Mingyu Jin (3)