Search arXiv⌕ Search

arXiv subjects

Shujiang Wu

Publications and source records attributed to Shujiang Wu.

9 recordsLinked to original sources

From Vendor-Neutral Request to Paid Backend: Procurement Integrity at the Commitment Boundary of AI Coding Agents

AI coding agents now choose infrastructure libraries, APIs, and deployment backends while they generate code. An agent can answer a vendor-neutral programming request with a provider-specific recurring-cost commitment before organizational review. Current coding-agent evaluation scores functional correctness, security bugs, and policy refusal, and leaves this procurement-neutrality property unchecked. We call the protected property procurement integrity and formalize Implicit Systemic Denial-of-Wallet (ISDOW) across both passive prior drift and active tool-metadata manipulation. We design ISDOW-Bench (30 cloud-infrastructure tasks across 6 categories) and evaluate 8 LLM coding agents across 4 prompt variants and 2 temperatures (8,091 analyzable responses). All eight models exhibit non-zero neutral commercial exposure (task-equalized PPR 0.190-0.253), with AWS leading across models including Azure-affiliated GPT variants. Prompt constraints reduce exposure unevenly across models, and neutral exposure persists across both tested temperatures. Scenario estimates put this exposure at \$240-\$1,207 per developer per year (\$149-\$826 net of self-hosted IaaS). In a 6-model billing-opaque tool loop, neutral agents finalize commercial backends in 21/35 runs versus 0/34 under adversarial constraints. On the 30 neutral prompts, two shipped coding-agent CLIs write AWS storage code in 20 of 180 runs. On two capability-locked tasks, completed runs under a constructed poisoned prompt and catalog finalize commercially in 10/10 cases. The deterministic Commitment Policy Gate, in its own completed runs, intercepts 10/10 poisoned paid attempts and yields 0/10 unapproved paid finalizations. These results place procurement integrity at the commitment boundary.

cs.CR↗

Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agents

Multi-step tool-calling LLM agents rely on host runtimes to preserve state across turns. When a runtime carries an external tool return into later model inputs, providers meter it again. An adversary who controls the return of an already configured tool can thereby convert that return into recurring victim-billed processing without victim credentials or local runtime privilege. We call such retained content persistent billable state and formalize the host's decision over whether and how it enters later billable context as the persistent billable-state boundary. We present the first systematic security study of this post-admission lifecycle. We derive 6 denial-of-wallet attack vectors and build DoW-Bench, an end-to-end harness evaluated across 6 model families. Across 243 executions, the maximum per-session cumulative input reaches 14,293x the corresponding session's complete first-call input. Retaining raw history increases mean effective session cost by 21.2-35.9%. Compression succeeds on 10/12 and 11/12 history-dependent tasks, versus 2/12 under deletion for each provider. To govern this boundary, we combine deterministic history transformation with 4 host-side invariants that bound prompt mass, context growth, recursive opportunity, and cumulative spend before reingestion. The host-side kernel stops all 41 retained attack traces under each of 3 replay presets. Separate live integrations exercise enforcement before subsequent model calls. A full-code audit of 95 randomly sampled public MCP server and transport repositories finds an author-verified, code-visible safeguard in only 17 (17.9%); 1 bounds cost, and none combines all 4 safeguard families. These results establish persistent billable state as a first-class security object and pre-reingestion as its host-owned control point. Confirmed disclosure also assigns that placement to the host application.

cs.CR↗

Agent Approval Laundering: Transitive Effects Beyond the Approved Invocation

An approval mechanism can store a durable record that names an approved command exactly while omitting an effect of the workflow that command starts. We call this coverage gap approval laundering. When a pre-specified effect policy requires different decisions and the complete policy-visible inputs are identical, no record-only policy can guarantee both outcomes. With npm run build held fixed, a change only in the pre-approval script leaves command semantics allowing both the local script and the script that fetches. Coding agents are the measured setting. We present the first systematic security analysis of this gap as closure-bound approval over six operational effect classes. The Approval-to-Action Security Benchmark binds captured approval objects and inspectable decision-time metadata to immutable post-execution evidence. Across 111 fixed approval-object/trace pairs, residual records fall from 40 under explicit fields to 17 with command semantics and 13 when post hoc analysis adds metadata available at decision time. Across 11 fixed-SHA project executions, the same retrospective ladder reaches zero metadata residuals; two exact mappings recur across three product frontends. For prospective recovery, effect-bound records commit frozen, source-backed effect predictions and provenance before authorization. On 17 target-executed workflows from a prespecified holdout, predictions achieve 0.926 macro recall and 0.941 macro precision. Binding them cuts residual effect instances from 10 to 3. The evaluated policy requests another approval for 17/18 protocol cases; a stricter added-effect rule reduces that demand to 7/18. A Claude Code hook can place one frozen record on an existing permission path. On that npm run build pair, a study metadata gate does not launch the network arm after the metadata denial.

cs.CR↗

Forensic Answerability: When Do AI Agent Records Support a Claim?

Tool-using agents can turn untrusted instructions or retrieved artifacts into side effects, yet execution traces may show what ran without establishing which recorded source, authority, policy, or integrity evidence supports an incident claim, or whether a candidate rule would block the same path on replay. We define forensic answerability as a question-specific contract for a selected sink: a claim is admitted only when its required evidence objects are valid and their asserted relations are explicitly bound to the sink or the same recorded path; when a required object or binding is absent, the check reports an evidence gap rather than an inferred answer. We present Exhibit, an evidence pipeline that implements this contract through typed evidence admission, signed content-addressed artifacts, sink-centered Agent Forensic Causality Graph (AFCG) slices, and query-specific replay and policy feedback. On six matched executions scored against expectations frozen before each run, Exhibit answers all 36 forensic questions, while an independently implemented OpenTelemetry baseline answers 15 of 36 with typed semantics and 21 with its own signed seal. On three reproduced disclosed vulnerabilities, only Exhibit answers replay and recurrence; native traces answer 3 of 18 questions, typed semantics 9, the seal 12, and Exhibit all 18. On two same-execution launches, an unauthenticated MCP Inspector proxy starts Codex and Copilot and each writes a marker file; only Exhibit answers replay and recurrence. On each launch, native traces answer 1 of 6 questions, the baseline answers 3 of 6 with typed semantics and 4 with its own signed seal, and Exhibit answers all 6. Exhibit detects every tested post-recording tamper probe, and each of seven evidence-removal interventions makes the affected questions fail closed.

cs.CR↗

A Blind Trust, the Bloody Thrust: When Attacker-Controlled Hook Updates Steer AI Agent Harnesses towards Malicious Behaviors

Modern AI agent harnesses expose lifecycle hooks that bind shell commands to runtime events such as session start, tool calls, and file edits. These commands run with host privileges yet ship as lifecycle-hook configuration and may fire at times the LLM never observes. We identify the lifecycle-hook update path, which harnesses trust blindly, as a new attack surface. Under a supply-chain threat model in which an attacker controls only plugin metadata and lifecycle-hook configuration, a benign versioned plugin can be trojanized by an update that silently binds attacker-chosen commands to benign events, yielding malicious host-side behavior such as privilege escalation. We propose HookPry, an open-source and fully automated attack framework that systematically exploits this vulnerability across heterogeneous AI agent harnesses. HookPry realizes ten attack objectives; across 25 combinations of harnesses and backends in 1,000 end-to-end runs, it compromises all seven evaluated harnesses, with per-harness success rates reaching 92.5%. Representative defenses remain insufficient: Microsoft Defender has 0% recall, and the union of three static defenses misses 47.5% of malicious artifacts.

cs.CR↗

MP-ISMoE: Mixed-Precision Interactive Side Mixture-of-Experts for Efficient Transfer Learning

Parameter-efficient transfer learning (PETL) has emerged as a pivotal paradigm for adapting pre-trained foundation models to downstream tasks, significantly reducing trainable parameters yet suffering from substantial memory overhead caused by gradient backpropagation during fine-tuning. While memory-efficient transfer learning (METL) circumvents this challenge by bypassing backbone gradient computation via lightweight small side networks, its stringent memory constraint severely limits learning capacity of side networks, thereby significantly compromising performance. To address these limitations, we propose a novel Mixed-Precision Interactive Side Mixture-of-Experts framework (MP-ISMoE). Specifically, we first propose a Gaussian Noise Perturbed Iterative Quantization (GNP-IQ) scheme to quantize weights into lower-bits while effectively decreasing quantization errors. By leveraging memory conserved from GNP-IQ, we subsequently employ Interactive Side Mixture-of-Experts (ISMoE) to scaling up side networks without sacrificing overall memory efficiency. Different from conventional mixture-of-experts, ISMoE learns to select optimal experts by interacting with salient features from frozen backbones, thus suppressing knowledge forgetting and boosting performance. Extensive experiments across diverse vision-language and language-only tasks demonstrate that MP-ISMoE remarkably promotes accuracy compared to state-of-the-art METL approaches, while maintaining comparable parameter and memory efficiency.

cs.LG↗

Large Language Models Cannot Reliably Detect Vulnerabilities in JavaScript: The First Systematic Benchmark and Evaluation

Researchers have proposed numerous methods to detect vulnerabilities in JavaScript, especially those assisted by Large Language Models (LLMs). However, the actual capability of LLMs in JavaScript vulnerability detection remains questionable, necessitating systematic evaluation and comprehensive benchmarks. Unfortunately, existing benchmarks suffer from three critical limitations: (1) incomplete coverage, such as covering a limited subset of CWE types; (2) underestimation of LLM capabilities caused by unreasonable ground truth labeling; and (3) overestimation due to unrealistic cases such as using isolated vulnerable files rather than complete projects. In this paper, we introduce, for the first time, three principles for constructing a benchmark for JavaScript vulnerability detection that directly address these limitations: (1) comprehensiveness, (2) no underestimation, and (3) no overestimation. Guided by these principles, we propose FORGEJS, the first automatic benchmark generation framework for evaluating LLMs' capability in JavaScript vulnerability detection. Then, we use FORGEJS to construct ARENAJS-the first systematic benchmark for LLM-based JavaScript vulnerability detection-and further propose JUDGEJS, an automatic evaluation framework. We conduct the first systematic evaluation of LLMs for JavaScript vulnerability detection, leveraging JUDGEJS to assess seven popular commercial LLMs on ARENAJS. The results show that LLMs not only exhibit limited reasoning capabilities, but also suffer from severe robustness defects, indicating that reliable JavaScript vulnerability detection with LLMs remains an open challenge.

cs.CR↗

The First Early Evidence of the Use of Browser Fingerprinting for Online Tracking

While advertising has become commonplace in today's online interactions, there is a notable dearth of research investigating the extent to which browser fingerprinting is harnessed for user tracking and targeted advertising. Prior studies only measured whether fingerprinting-related scripts are being run on the websites but that in itself does not necessarily mean that fingerprinting is being used for the privacy-invasive purpose of online tracking because fingerprinting might be deployed for the defensive purposes of bot/fraud detection and user authentication. It is imperative to address the mounting concerns regarding the utilization of browser fingerprinting in the realm of online advertising. This paper introduces ``FPTrace'' (fingerprinting-based tracking assessment and comprehensive evaluation framework), a framework to assess fingerprinting-based user tracking by analyzing ad changes from browser fingerprinting adjustments. Using FPTrace, we emulate user interactions, capture ad bid data, and monitor HTTP traffic. Our large-scale study reveals strong evidence of browser fingerprinting for ad tracking and targeting, shown by bid value disparities and reduced HTTP records after fingerprinting changes. We also show fingerprinting can bypass GDPR/CCPA opt-outs, enabling privacy-invasive tracking. In conclusion, our research unveils the widespread employment of browser fingerprinting in online advertising, prompting critical considerations regarding user privacy and data security within the digital advertising landscape.

cs.CR↗

Deterministic Browser

Timing attacks have been a continuous threat to users' privacy in modern browsers. To mitigate such attacks, existing approaches, such as Tor Browser and Fermata, add jitters to the browser clock so that an attacker cannot accurately measure an event. However, such defenses only raise the bar for an attacker but do not fundamentally mitigate timing attacks, i.e., it just takes longer than previous to launch a timing attack. In this paper, we propose a novel approach, called deterministic browser, which can provably prevent timing attacks in modern browsers. Borrowing from Physics, we introduce several concepts, such as an observer and a reference frame. Specifically, a snippet of JavaScript, i.e., an observer in JavaScript reference frame, will always obtain the same, fixed timing information so that timing attacks are prevented; at contrast, a user, i.e., an oracle observer, will perceive the JavaScript differently and do not experience the performance slowdown. We have implemented a prototype called DeterFox and our evaluation shows that the prototype can defend against browser-related timing attacks.

cs.CR↗