Search arXiv⌕ Search

arXiv subjects

HaiQuan Wang

Publications and source records attributed to HaiQuan Wang.

2 recordsLinked to original sources

Blocked Is Not Fixed: Validating C/C++ Spatial Out-of-Bounds Patches with Counterexamples and Runtime Evidence

Accepting security patches solely because the original proof-of-vulnerability (PoV) input no longer crashes admits incomplete fixes with residual paths, yet our empirical study shows only 14.3% of refutation rationales from LLM vulnerability verifiers are source-grounded. We formulate patch acceptance as selective prediction with abstention and present Assay, a recompilation-free validator for interprocedural C/C++ spatial out-of-bounds patches. Unlike fuzzing (which struggles with structured formats and makes no acceptance decisions) and review methods trusting model refutations, Assay confines the LLM to input generation in isolated containers while retaining host-side adjudication. It uses binary debug and linkage metadata to deterministically locate unprotected high-risk call sites, then runs two isolated sessions with reachability feedback to synthesize replayable residual counterexamples. Any input reliably crashing the fixed build at the target sink yields an incomplete-fix verdict; otherwise, the host decides acceptance versus abstention from runtime evidence (baseline PoV differential validation, patch-line coverage, exploration steps, and candidate function entry). On 42 patch pairs from 24 unseen projects with official PoVs, PoV replay admits all incomplete fixes (100.0% false acceptance rate, FAR) and 12 CPU-hours of seeded fuzzing detects 15.4%, whereas Assay averages 76.9% detection, 12.8% FAR, and 69.0% valid-patch acceptance (zero false positives). Without official PoVs, Assay averages 71.8% detection, 2.6% FAR, and 58.6% acceptance (zero false positives), outperforming static/review baselines (15.4%-46.2% FAR) and a patch-aware coding agent (61.5% detection, 23.1% FAR), with single-run FAR <= 7.7% across four open-weight model families. On 17 recent pairs (2024-2026) without PoVs, Assay detects 75.0% of incomplete fixes and discovers four unfixed upstream zero-days.

cs.CR↗

Focus on What Matters: Fisher-Guided Adaptive Multimodal Fusion for Vulnerability Detection

Software vulnerability detection can be formulated as a binary classification problem that determines whether a given code snippet contains security defects. Existing multimodal methods typically fuse Natural Code Sequence (NCS) representations extracted by pretrained models with Code Property Graph (CPG) representations extracted by graph neural networks, under the implicit assumption that introducing an additional modality necessarily yields information gain. Through empirical analysis, we demonstrate the limitations of this assumption: pretrained models already encode substantial structural information implicitly, leading to strong overlap between the two modalities; moreover, graph encoders are generally less effective than pretrained language models in feature extraction. As a result, naive fusion not only struggles to obtain complementary signals but can also dilute effective discriminative cues due to noise propagation. To address these challenges, we propose a task-conditioned complementary fusion strategy that uses Fisher information to quantify task relevance, transforming cross-modal interaction from full-spectrum matching into selective fusion within a task-sensitive subspace. Our theoretical analysis shows that, under an isotropic perturbation assumption, this strategy significantly tightens the upper bound on the output error. Based on this insight, we design the TaCCS-DFA framework, which combines online low-rank Fisher subspace estimation with an adaptive gating mechanism to enable efficient task-oriented fusion. Experiments on the BigVul, Devign, and ReVeal benchmarks demonstrate that TaCCS-DFA delivers up to a 6.3-point gain in F1 score with only a 3.4% increase in inference latency, while maintaining low calibration error.

cs.SE↗