Conceptio › Archive › arXiv CS
arXiv CS open access

ProcReverser: Multi-Agent Black-Box Microarchitectural Reverse Engineering for Processor Vulnerability Analysis

Guanqi Lyu et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
cryptographycybersecurityprivacysecurity
When processor implementation details are unavailable, black-box microarchitectural reverse engineering helps security researchers identify hardware conditions related to security vulnerabilities. However, this process requires substantial manual effort to design experiments, develop test programs,
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

ProcReverser: Multi-Agent Black-Box Microarchitectural Reverse Engineering for Processor Vulnerability Analysis Guanqi Lyu1 , Decheng Qiu1 , Guangyang Zhang1 , Fei Zhao1 , Zhaojun Lu1 , Jiaji He1 , and Yongqiang Lyu1,2 1

arXiv:2611.20827v1 [cs.CR] 16 Nov 2026

2

Tianjin University, Tianjin, China Tsinghua University, Beijing, China

Abstract—When processor implementation details are unavailable, black-box microarchitectural reverse engineering helps security researchers identify hardware conditions related to security vulnerabilities. However, this process requires substantial manual effort to design experiments, develop test programs, and analyze results for each processor. We present ProcReverser, a multi-agent system that automates this process. ProcReverser uses execution feedback to improve experimental plans and test programs and identifies microarchitectural properties from measurements. We develop a comprehensive suite of property identification tasks focused on hardware mechanisms relevant to Spectreclass attacks, covering speculative execution, branch prediction, memory dependence, and cache behavior. We evaluate ProcReverser on the XuanTie C910, the gem5 RISC-V O3 CPU model, and the SiFive P550. ProcReverser achieves Pass@1 and Pass@5 scores of 81.3% and 93.8%, respectively, on C910, and 83.0% and 100.0% on gem5 O3. On the SiFive P550, ProcReverser further characterizes microarchitectural properties covered by the proposed task suite. These findings highlight the potential of automated microarchitectural reverse engineering to support processor vulnerability analysis and defense evaluation. Index Terms—microarchitectural reverse engineering, RISC-V, hardware security, multi-agent systems, large language model

I. I NTRODUCTION Assessing potential processor vulnerabilities requires understanding how a target processor behaves under conditions relevant to attacks and defenses. Even processors with the same instruction set architecture (ISA) may differ in branch prediction, speculative execution, and the handling of microarchitectural state. These differences affect both the conditions required for attacks and the effectiveness of mitigations [1]. When implementation details are unavailable, blackbox microarchitectural reverse engineering uses software experiments to infer hardware properties from observable behavior [2], [3]. Such experiments often demand substantial manual effort [4]. Researchers must design tests for each property, write and debug programs, establish controls, adapt measurements to available processor interfaces, and interpret the results. Moving tests to another processor may require changes to assumptions, measurement methods, and decision criteria [2], [3]. Even changes in a processor’s internal configuration can affect the results. Consequently, experiments often need to be redesigned and validated for each target. We present ProcReverser, a multi-agent system for black-box processor microarchitectural reverse engineering. Given a property to identify and access to a target processor’s execution interface, its agents design and review experiments, generate test programs, diagnose execution failures, and analyze measurements. ProcReverser uses execution feedback to refine experimental plans and programs, then infers properties from measured behavior. We also incorporate a mandatory evidence-checking mechanism, termed Discriminative Revalidation (DR). Each reported conclusion includes supporting This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

measurements and test conditions, allowing researchers to examine its basis and scope. Studies on RISC-V processor security have highlighted the importance of validating security properties on individual processor implementations. In 2018, the RISC-V Foundation stated that no RISC-V chips announced at the time were susceptible to Spectre or Meltdown [5]. Spectre showed that instructions executed on a mispredicted path can leave observable microarchitectural effects even when their results are discarded [6]. More recently, Gerlach et al. demonstrated multiple Spectre attacks on the XuanTie C910/C920 and SiFive P550 and evaluated mitigations [1]. They also noted that until a dedicated speculation barrier extension with architectural guarantees is standardized and supported in hardware, reliable Spectre mitigations must be tested on each processor implementation [1]. This need for processor-specific testing motivates systematic identification of the hardware properties that determine attack feasibility and mitigation effectiveness. As RISC-V processors and their configurations evolve, these properties and the validity of earlier findings must be checked again. The growing use of RISC-V in robotics, servers, and large language model (LLM) inference further motivates such analysis. SpacemiT reported its K3 chip in a humanoid robot [7], [8]. V-Seek optimized LLM inference on the server-class Sophon SG2042 [9]. SiFive and AMD demonstrated LLM inference on the BigSky development platform, with a RISC-V host processor and GPU acceleration [10]. As RISC-V platforms support increasingly complex workloads, identifying hardware properties relevant to processor vulnerabilities and checking mitigation effectiveness on real processors become more important. Motivated by the hardware conditions required for Spectre-class attacks, we construct 26 security-relevant property identification tasks covering speculative execution, branch prediction, memory dependence, and cache behavior. We evaluate ProcReverser on two commercial RISC-V processors, the XuanTie C910 and SiFive P550, and the configurable gem5 RISC-V O3 CPU model. On C910, we check identification correctness using public implementation information and prior experimental findings [1], [11]. On gem5 O3, we vary internal settings while hiding them from the agents to test adaptation to configuration changes. On P550, we test whether ProcReverser can adapt its experiments to another commercial processor and identify its microarchitectural properties. Together, the three platforms allow us to assess identification correctness, configuration adaptation, crossprocessor generalization, and the supporting experimental evidence. Our main contributions are as follows. 1) Automated black-box microarchitectural reverse engineering. We develop an experimental workflow in which five agent roles turn processor microarchitectural property questions into executable experiments and use measurements from target pro-

Property Question

ProcReverser

e.g., Does this CPU support SMT?

Stage 1: Experiment design Stage 2: Program execution

User

Stage1

Property Report

e.g., No SMT support

Stage 3: Evidence review

CPU & Interface Setup

Revise before execution (if needed) Pass

Task

DR (registration)

Generate plan

Designer

Revise (if needed)

cessors to produce evidence-backed property reports, reducing manual effort in microarchitectural reverse engineering. 2) A task suite for transient-execution security assessment. We construct 26 property identification tasks covering speculative execution, branch prediction, memory dependence, and cache behavior, providing a common set of test questions for comparing processor implementations. 3) Cross-platform generalization. We evaluate ProcReverser on the XuanTie C910, gem5 O3, and SiFive P550 to assess its identification accuracy and adaptability. The results demonstrate its ability to generalize across different processor implementations and adapt to varying microarchitectural configurations.

Reviewer

Revise

Stage2

SSH Connection Remote executor

Errors

Diagnostician

Target CPU

Generator

Repair Suggestions

Stage3

II. R ELATED W ORK A. Processor Security and Per-Implementation Validation Gerlach et al. show that Spectre attack conditions and mitigation effectiveness depend on the implementation of commercial outof-order RISC-V processors, motivating validation on each target processor [1]. RISCover uses user-space differential testing to detect architectural security vulnerabilities in closed-source RISC-V processors [12]. WhisperFuzz uses RTL state transitions to detect timing vulnerabilities. DejaVuzz combines dynamic swappable memory with differential information-flow tracking to detect transient-execution vulnerabilities [13], [14]. B. Measurement-Based Microarchitectural Reverse Engineering uops.info, nanoBench, and PALMED provide instruction characterization, low-overhead microbenchmarking, and runtime-based resource modeling, respectively [15]–[17]. Other studies infer the behavior of individual microarchitectural mechanisms. CacheQuery learns cache replacement policies from hardware measurements. SSBench automatically characterizes memory-dependence predictors across architectures, including RISC-V. Chen et al. reverse-engineer conditional branch predictors in Apple Firestorm and Qualcomm Oryon [2]–[4]. C. Automated Side-Channel Discovery and Black-Box Security Modeling ABSynthe uses black-box experiments to synthesize side-channel attacks, and Osiris generates and tests instruction sequences to discover timing channels [18], [19]. Revizor detects violations of speculation contracts, TREVEX identifies anomalous transient data flows, and malcos synthesizes instruction-centric leakage contracts from black-box observations [20]–[22]. D. Agent-Assisted Hardware Experiments and Security Analysis uGen combines retrieval augmentation, multi-agent collaboration, and execution feedback to generate and adapt microarchitectural attack proofs of concept [23]. COVERT uses reference RTL and compilation and simulation feedback to generate test programs for hardware Trojan detection [24]. SCAgent applies LLM-assisted reasoning, verification, and data analysis to operating-system sidechannel analysis [25]. Related efforts apply agents to hardware design and verification. SV-LLM supports SoC security verification, MARC uses RTL and design documentation for vulnerability detection and confirmation, and LASSO uses formal-verification feedback to improve securityproperty and assertion generation [26]–[28]. Endukuri et al. combine ISA knowledge, RTL analysis, and execution-based validation to generate RISC-V verification stimuli [29]. CHIA and Agentic Architect

Evidence Admitted

DR (evidence check)

Analyst

Property report

Fig. 1. ProcReverser’s experimental workflow. Solid arrows show the main workflow. Dashed arrows show feedback paths for error reporting, repair, and revision.

use agents for simulator alignment, hardware research workflows, and microarchitectural design optimization [30], [31]. These studies provide a methodological foundation for automated hardware experiments. ProcReverser applies a multi-agent workflow to black-box microarchitectural reverse engineering. It automates experiment design, adaptation, and analysis to reduce the need for sustained expert involvement in per-processor testing. We evaluate this workflow on security-relevant property identification tasks across RISC-V processors. III. M ETHODOLOGY A. Experimental Workflow As shown in Fig. 1, the workflow has five agent roles across three stages. Stage 1 (Experiment design). The Designer turns the property question into an experimental plan with hypotheses, controls, and quantitative decision criteria. The Reviewer checks whether the plan is feasible on the target and can distinguish competing explanations. Plans that need revision return to the Designer. When DR is enabled, the approved plan is registered before execution. Stage 2 (Program execution). The Generator implements the plan, and the remote executor runs the test on the target and returns measurements and execution feedback. The Diagnostician examines the source code, compiler messages, execution logs, and failed checks to recommend repairs to the Generator. Stage 3 (Evidence review). When DR is enabled, it checks the raw measurements against the registered plan before passing admitted evidence to the Analyst. The Analyst then writes the property report. The Designer may propose up to 10 primary plan versions per task attempt. If the initial execution of a plan fails, the Generator may repair and retry the program up to 10 times based on the Diagnostician’s recommendations. B. Task Definition and Property Set ProcReverser takes as input a property question, the required output fields, and the execution interface of the target processor. It outputs a property statement and supporting measurement evidence. Fig. 2 shows an example input.

C. Discriminative Revalidation

Fig. 2. Example input for the C5 task. TABLE I S ECURITY- RELEVANT MICROARCHITECTURAL PROPERTY TASKS ID Property task

ID

P1 Cache-signal suppression by tested instructions and transient-window type P2 Store-loop cycle overhead of tested barriers P3 Barrier effectiveness at tested instruction spacings P4 Cache-signal suppression from non-counter CSR reads R1 RAS capacity in return addresses R2 RAS overwrite on overflow and fallback when empty R3 Privilege-related predictor tagging and partitioning R4 Direction-predictor state persistence across address spaces or process switches R5 Direction-predictor state decay under time or branch interference R6 Branch-history dependence of direction prediction R7 BTB capacity by level or target configuration R8 Branch-history parameters and observable dependence R9 Predictor indexing, aliasing, and cross-context interference

R10 BTB entry insertion and update behavior W1 Transient-execution window length under tested triggers W2 Effects of tested instruction layouts on transient windows C1 Availability of user-mode timing and counter interfaces C2 Available observation channels and cache-maintenance operations C3 Cache capacity and organization of characterized levels C4 SMT support per physical core C5 Presence of a memory-dependence predictor C6 Hardware data prefetching enablement and observed behavior C7 Cross-core cache sharing (L2/LLC) F1 Enablement of tested branch-prediction components S1 Post-fault transient cache traces S2 Software control and observed clearing of predictor state

Property task

RAS (return address stack), BTB (branch target buffer), CSR (control and status register), SMT (simultaneous multithreading), LLC (last-level cache). P1 (P550). The nine user-mode candidates are fence with rw,rw, r,r, r,w, w,r, w,w, i,i, or iorw,iorw, plus fence.tso and fence.i.

We construct the property set based on the key microarchitectural conditions underlying major Spectre attacks. For Spectre-PHT, Spectre-BTB, Spectre-RSB, and Spectre-STL, the set includes tasks that measure conditional branch prediction, indirect branch target prediction, return address prediction, and memory-dependence prediction and speculative store bypass, respectively. The tasks also cover crosscontext state persistence, speculation windows, cache observation conditions, and speculation-control mechanisms [1], [6], [32]. These tasks cover speculative execution, branch prediction, memory dependence, and cache behavior. They systematically characterize the conditions needed to trigger attacks, influence microarchitectural state, execute instructions transiently, and observe cache traces. They also support analysis of mitigation applicability and measurement validity. Table I groups the 26 tasks by measurement target and experimental purpose. Each task ID consists of a group letter followed by a within-group index. Group P measures the effects of instructions on speculative execution, group R measures predictor behavior and structure, and group W measures speculation windows. Group C examines observation interfaces, caches, and memory accesses, group F examines predictor enablement, and group S examines other transient phenomena and whether software can clear predictor state.

During testing of the multi-agent system, we observed that, once experiments yield analyzable data, the Analyst may adopt an interpretation of the observations while overlooking the controls or repeat measurements needed to distinguish alternative causes. Without further validation, the system may therefore present a potentially incorrect conclusion based on insufficient evidence as definitive. Recent studies have begun to enforce evidence requirements within agent execution frameworks: AgInt uses its harness to check evidence and control answer submission [33], whereas A-Harness triggers targeted retries in response to evidence gaps [34]. Building on these evidenceguided agent workflows, we implement Discriminative Revalidation (DR) within ProcReverser to determine whether experimental measurements support the registered property hypotheses and to trigger targeted retests when evidence is insufficient. DR is implemented in Python and integrated into the agent workflow. It consists of four steps. Step 1 (Registration). The Designer specifies candidate explanations, the comparisons needed to distinguish them, the predicted outcomes, and the quantitative decision criteria. After the Reviewer approves the plan, DR registers these predictions and sends the plan back to the Designer if different property answers have indistinguishable predictions. Step 2 (Data comparison). After execution, DR computes the registered comparisons directly from the raw samples in each batch and evaluates each batch separately against the prespecified criteria. Step 3 (Targeted revision). If a required comparison is missing or a program-level check fails, DR sends the specific gap to the Diagnostician, who recommends a repair to the Generator. If the available evidence still supports competing property answers or contradicts all registered explanations, DR returns the unresolved comparisons to the Designer for additional measurements or a revised experiment. Step 4 (Evidence admission). DR admits the evidence only when the validity checks pass, all required comparisons yield clear outcomes, and all retained explanations imply the same property answer. The Analyst uses the admitted evidence to produce the property report. IV. E XPERIMENTAL S ETUP Agent environment. ProcReverser’s agents run on a local Windows 11 Pro computer with an Intel Core Ultra 7 265K processor and 32 GB of RAM. We implement ProcReverser using Python 3.13.5, LangChain 1.4.2, and LangGraph 1.2.12. LangChain provides rolespecific prompts, context management, and tool calling. LangGraph coordinates role handoffs, conditional branches, and iterative execution through a state graph [35], [36]. All agents call Zhipu AI’s GLM-5.3-Flash via its API, with reasoning_effort set to high [37]. Experimental platforms. We use two hardware development boards and one configurable simulation platform. The Sipeed Lichee Pi 4A uses a T-Head TH1520 SoC with four 64-bit RISC-V XuanTie C910 cores [38]. The SiFive HiFive Premier P550 uses an ESWIN EIC7700X SoC with four 64-bit out-of-order SiFive P550 cores [39]. We use the RISC-V O3 CPU model in gem5 25.1.0.1 and configure its out-of-order pipeline, branch predictors, and cache system to construct simulated targets that can run RISC-V test programs [40], [41]. Remote execution and cluster environment. The local controller interacts with the target platforms through a unified execution interface. For both development boards, the executor connects to the

onboard Linux system via SSH, uploads the test program source code via SCP, compiles and runs the programs on the board, and retrieves compiler output, exit statuses, execution logs, and structured measurement results. For gem5, the executor connects to the cluster login node via SSH, and Slurm 24.05.1 schedules simulation jobs on compute nodes. Each node used in the experiments runs x86-64 Linux, has two 52-core processors, and is configured in Slurm with approximately 1 TB of memory. The executor uses Zig 0.16.0 on the cluster to cross-compile RISC-V test programs, then runs gem5 and retrieves the measurement results. The agents use execution feedback to revise experimental plans and test programs. Platform roles and evaluation settings. On C910, we compare inferred properties with publicly available OpenC910 RTL details and prior empirical findings applicable to the target implementation to verify structural parameters and behavioral interpretations [1], [11]. In gem5, we vary the target configuration and withhold configuration files, implementation source code, and reference answers from the agents. With the language model, agent workflow, and task definitions fixed, we assess whether the system can adapt its experiments based on execution feedback and whether its identification results track changes in the target configuration. On P550, we assess whether the system can adapt to different prediction behaviors, measurement interfaces, and execution conditions and produce property reports for commercial hardware. C910 and P550 use GCC 12 and GCC 13.3.0, respectively, with the compilation flags -O2 -Wall -Wextra. Each reference task receives five independent attempts.

TABLE II C910 REFERENCE ANSWERS . ID

Load/store fault tests. Read-ordering fences, fence.i, and counter CSR reads suppress the cache signal. fence w,w, fence.tso, and lr.d do not. [C] R1 RAS capacity: 12 entries. [A,B,C] R2 Overflow: circular overwrite. Underflow tests: no BTB fallback or straight-line speculation. [B,C] R3 RAS/Ind-BTB: privilege tags. BHT: no explicit ASID/privilege index key. [B] R4 PHT training crosses address spaces. [C] R6 Branch history contributes to direction indexing. [B] R7 L0BTB: 16 entries. [B] R8 22-bit global history with slicing and XOR folding. [B] R9 Core-local history in finite index mappings. PHT training crosses address spaces. [B,C] R10 BTB: refill-buffer updates, with tag[2:1] selecting write enables. [B] W1 Window (instructions): null-pointer fault ∼60, immediate bounds ∼7, delayed bounds/indices ∼61. [C] C2 User-mode cache flushing and Flush+Reload are available. [C] C3 L1I/L1D: each 64 KiB, two ways, 64 B lines. L1I is VIPT with FIFO updates. L1D is PIPT. [A,B,D] C4 No SMT. [C] C7 Four cores with private L1I/L1D and a shared 1 MiB L2. [D] S2 M-mode MCOR (0x7c2) controls invalidation of BHT, Ind-BTB, and BTB (including L0BTB). [A,B] Sources. [A] User manual (June 27, 2024) [42]. [B] OpenC910 RTL b91c909 [11]. [C] Gerlach et al. (measurements) [1]. [D] Sipeed [38]. TABLE III R EFERENCE ANSWERS FOR 20 GEM 5 O3 TASKS .

V. R ESULTS AND A NALYSIS A. Reference Tasks and Scoring To assess identification correctness against independent references, we establish separate scoring sets for C910 and gem5 RISC-V O3 from the common inventory of 26 tasks. For C910, applicable public RTL, user manuals, prior empirical studies, and board documentation provide references for 16 tasks. For O3, implementation source code and the actual configurations of individual target instances provide references for 20 tasks. Tables II and III summarize the scoring tasks and reference answers for C910 and O3, respectively. We exclude the remaining six gem5 O3 tasks from correctness scoring because their reference answers cannot be established from simulator configurations alone. Some require additional controlled experiments to calibrate program- and measurement-dependent outcomes. To ensure fair and reliable evaluation, we score only tasks with independently verifiable reference answers. Each scoring task receives five independent attempts using the same tools and model settings. Reference answers and implementation information used for scoring are withheld from the agents. An attempt passes if its final conclusion matches the corresponding reference answer in Table II for C910 or Table III for gem5 O3. Let N denote the number of scoring tasks for a platform, and let ci denote the number of successful attempts among the five for task i. We compute PN N 1 X i=1 ci Pass@1 = , Pass@5 = 1[ci > 0]. (1) 5N N i=1 For C910 and O3, N is 16 and 20, respectively. Metrics are calculated separately for each platform. B. Identification Correctness Figs. 3 and 4 show five independent attempts on the C910 and gem5 O3 reference task sets, respectively. Each column represents a task, and each row represents an independent attempt. Dark blue

Independent reference answer

P1

ID

Reference configuration and behavior

P4

fcsr, fflags, and frm reads suppress the cache signal from wrong-path loads in the tested SE branch window. R1 RAS: 8 entries in the baseline, 16 in the alternate instance. R2 Overflow: overwrites the oldest entry. Underflow: stale address or empty slot. If empty, keep the BTB target if present, else fall through. R3 LocalBP has no partitioning by privilege level. R4 LocalBP state persists across same-core process switches. R5 LocalBP counters do not decay with time alone. R6 LocalBP indexes by PC alone. R7 BTB: 512 entries in SE, 4096 in FS. R8 TournamentBP uses 13 history index bits (0x1FFF). R9 LocalBP: same index, shared counter. BTB: a new tag at the same index replaces the old entry. R10 BTB updates on eligible taken-branch corrections. C1 SE: counter CSRs and clocks work. FS: rdcycle traps. rdtime and clock_gettime work. C2 cbo.flush executes at valid addresses in SE and FS. C3 L1D: 64 KiB, four ways, 64 B lines. C4 One hardware thread per core. C5 StoreSet memory-dependence prediction is present. C6 Prefetch triggers off in the baseline. No requests issued. C7 Two cores have private L1s and a shared 2 MiB L2. F1 Enabled: direction, direct/indirect target, and return prediction. S2 No full clearing of trained direction state observed after fence.i (1/8/64 times), fence rw,rw, or nop in SE/FS. In FS, yield and sleep caused partial disturbance. Note. SE (syscall emulation), FS (full-system simulation).

indicates an outcome satisfying the success criterion in Section V-A, whereas gold indicates an outcome that does not pass scoring. For C910, 65 of the 80 attempts across 16 tasks pass scoring, yielding a Pass@1 of 81.3%. Fifteen tasks succeed at least once within five attempts, yielding a Pass@5 of 93.8%. For O3, 83 of the 100 attempts across 20 tasks pass scoring, yielding a Pass@1 of 83.0%. All 20 tasks succeed at least once, yielding a Pass@5 of 100.0%. These metrics describe performance on the respective

Fig. 3. Identification outcomes for the 16 C910 reference tasks. A1–A5 denote five independent attempts; each cell represents one scored task attempt.

Fig. 4. Identification outcomes for the 20 gem5 O3 reference tasks. A1–A5 denote five independent attempts; each cell represents one scored task attempt. TABLE IV A BLATION OF ROLE SPECIALIZATION AND DR. Configuration

C910

O3

Mean cost

Pass@1 Pass@5 Pass@1 Pass@5 Plans Exec. Tokens (M) Single agent 17.5% 37.5% 18.0% 40.0% Single agent + DR 22.5% 50.0% 25.0% 45.0% Five roles 68.8% 87.5% 72.0% 90.0% Five roles + DR 81.3% 93.8% 83.0% 100.0%

7.06 75.09 7.83 47.66 4.44 40.36 5.66 22.55

3.34 2.87 13.11 12.88

Note. Means are computed over all task attempts per configuration across C910 and gem5 O3. Exec. counts program execution attempts. Tokens (M) counts input and output tokens combined, in millions.

platform-specific reference task sets. The per-task outcomes further reveal differences in identification stability. On C910, W1 fails in all five attempts, whereas R7–R10 each succeed in three attempts. On O3, R10 succeeds in only one attempt. Repeated attempts improve task coverage, but some predictor and speculation-window tasks still exhibit repeated failures. C. Mechanism Ablation We evaluate four configurations by running ProcReverser’s fiverole workflow and a single-agent baseline, each with and without DR. The single agent performs all duties in one context, while the five-role system distributes them among the Designer, Reviewer, Generator, Diagnostician, and Analyst. All configurations use the same initial information, measurement tools, output requirements, and limits on primary plan versions and repair retries specified in Section III-A. We impose no token budget limits, and all attempts terminate normally upon completing their respective workflows and return results. When enabled, DR follows the same procedure in both systems. We perform five independent attempts for each of the 16 C910 tasks and 20 gem5 O3 tasks and apply the scoring criteria in Section V-A. Table IV reports the results. Effect of role specialization. With and without DR, the fiverole configuration achieves higher Pass@1 and Pass@5 than the

corresponding single-agent configuration on both C910 and gem5 O3. Without DR, Pass@1 rises from 17.5% to 68.8% on C910 and from 18.0% to 72.0% on O3. Across all task attempts on both platforms, the five-role configurations use fewer plan versions on average and make 46.3%–52.7% fewer program execution attempts, while consuming approximately 3.9–4.5 times as many tokens as their single-agent counterparts. The gains in identification success and target-side execution come at a higher model inference cost. Effect of DR. Enabling DR increased the observed Pass@1 and Pass@5 for both agent organizations on both platforms. In the fiverole configuration, Pass@1 increased by 12.5 percentage points on C910 (95% CI [6.25, 21.25]) and by 11.0 percentage points on gem5 O3 (95% CI [4.00, 18.00]). We computed 95% confidence intervals using 10,000 paired bootstrap resamples of tasks within each platform, preserving the results with and without DR for each resampled task. Across both platforms, enabling DR was associated with 36.5% and 44.1% fewer mean program execution attempts for the singleagent and five-role configurations, respectively, without increasing their mean token consumption. This may reflect fewer Generator and Diagnostician iterations. Case study of DR. We use the C6 hardware prefetching task in gem5 O3 to show how DR identifies a missing comparison, directs a targeted retest, and checks whether the resulting evidence supports a conclusion. The Designer specified two measurements: comparing the cost of sequential and shuffled scans, and checking whether a probe cache line left untouched during training was already cached at its first access. The first version of the program returned only scan timings. The sequential and shuffled scans took 6.91 and 15.78 cycles per cache line, respectively. With DR disabled, ProcReverser ran three rounds of diagnosis and program repair to check whether the timing gap persisted. It increased the number of scans, adjusted the working-set size, and changed the shuffle seed in successive rounds. All three rounds returned only scan timings. The Analyst ultimately misinterpreted the persistent timing gap as evidence of hardware prefetching. With DR enabled, DR checked the raw samples against each preregistered comparison before the Analyst reviewed the results. The first run returned scan timings for both conditions but lacked samples from the first access to the probe line after sequential and shuffled training. The DR report identified the missing comparison, and the workflow routed the task to diagnosis. The Generator then added the required probe sampling. In the discovery phase, each condition was tested in 200 trials, yielding three cache hits after sequential training and two after shuffled training. A separate confirmation batch yielded two and three hits, respectively. Both batches met the preregistered criterion for no detection, which required a probe hit rate of at most 5% in each condition. The Analyst submitted the conclusion that no hardware prefetching was detected under the tested access patterns. D. Configuration Adaptation and P550 Property Identification To examine ProcReverser’s adaptability across configurations and processors, we present two case studies: RAS depth identification under two concealed gem5 O3 configurations and hardware prefetching characterization on SiFive P550. We further summarize the results of all 26 property tasks on P550. Return address stack identification under configuration changes. The agent system autonomously designed a nested-call experiment with multiple call sites, progressively increasing the call depth and measuring the cost of returns. As shown in Fig. 5(a), the change point in return cost shifts to a greater call depth as RAS

(b) 100

300

First-access hit rate (%)

Cycles / traversal

(a) RAS = 8 RAS = 16

200 100 0

0

8

16

24

Call depth

32

+64 B (asc.) −64 B (desc.) 77.9 76.7

75 50 25 4.4 4.4

0

Shuffled

Ordered

Training order

Fig. 5. (a) RAS depth identification on gem5 O3. (b) Hardware prefetching characterization on P550. Error bars indicate 95% confidence intervals for the mean hit rates. TABLE V P ROPERTY CHARACTERIZATION RESULTS ON S I F IVE P550. ID

Measured conclusion

P1

All nine user-mode barriers listed in Table I showed attenuation of the measured cache signal in both memory-dependence and fault-triggered windows. P2 In a store loop, each execution of fence r,w, fence w,w, and fence.i added about 3, 10, and 46 cycles, respectively. fence rw,rw, fence r,r, fence w,r, and fence.tso each added about 13 cycles. P3 fence.i suppresses the fault-window cache channel at tested spacings of 0–16 instructions. P4 fcsr reads do not suppress the tested fault window. R1 16-entry RAS. R4 Same-core direction-prediction state persists across processes. R5 No half-decay with up to 256 sleep calls (200 µs requested each) or 1.024M interfering branches. R6 Prediction uses history at tested distances up to 128 branches. R8 Observed history-dependence window: 168–183 branch distances. R9 Histories distinguishable at the same PC. Cross-process same-PC training interferes. R10 Mispredictions fall after repeated execution. W1 Branch window is about one instruction when the branch operands are immediately available. W2 No reproducible large layout effect with 0, 4, 8, 16, 32, 44, 60, or 128 bytes of leading padding. C1 perf counts cycles. User-mode rdcycle/rdinstret trap. C2 L1 set-conflict, direction-prediction, data-TLB, and cross-core last-level cache channels available. User-mode cbo.flush traps. C3 L1D ∼32 KiB. Shared last-level cache ∼4 MiB. C4 No SMT. C5 Memory-dependence prediction present. C6 Bidirectional prefetching detected. C7 Four cores share the last-level cache. L2 sharing undetermined. F1 Conditional branch direction prediction was enabled. S1 Post-fault loads leave observable transient cache traces. S2 Tested fence.i, branch flooding, and sleep-based switches do not restore cold predictor state. Undetermined: R2, R3, R7.

capacity increases. Two-segment linear fits place the change points at approximately 7.65 and 15.75, yielding capacity estimates of 8 and 16 entries, respectively, consistent with the configured capacities of the two gem5 O3 instances. Hardware prefetching identification. ProcReverser designed and conducted a first-access experiment on the SiFive P550 at strides of +64 and −64 B. Ordered and shuffled training accessed the same cache lines and ended on the same line. The system then timed the first access to a candidate line that had not been demand-accessed

during training. It set a 153-cycle hit threshold using hot- and coldcache measurements from separate calibration runs. Each of the 20 confirmation batches included 512 trials per direction and training condition. Across the two directions, mean hit rates were 99.54%– 99.66% for hot-cache controls and at most 0.01% for cold-cache controls. Fig. 5(b) shows mean first-access hit rates of 77.9% (ascending) and 76.7% (descending) after ordered training, versus 4.4% in both directions after shuffled training. The respective differences were 73.5 and 72.3 percentage points (95% CIs [72.6, 74.3] and [71.3, 73.2]), supporting bidirectional hardware prefetching on the P550. Table V summarizes the results of 26 property tasks on P550. ProcReverser reports property conclusions for 23 tasks, while R2, R3, and R7 remain undetermined due to insufficient evidence. Some conclusions are partial, covering the subproperties supported by the available measurements. These results characterize the processor’s observable microarchitectural behavior and provide references for assessing side-channel attack conditions and evaluating potential defenses. VI. D ISCUSSION AND L IMITATIONS Limitations. Our evaluation is limited to RISC-V and covers two commercial processors, the XuanTie C910 and SiFive P550, as well as the configurable gem5 RISC-V O3 CPU model. The results show that ProcReverser adapts to different RISC-V implementations and configurations. Its applicability to processors implementing other ISAs, such as Arm and x86, remains to be evaluated. Some properties may remain undetermined when target-side measurement signals are weak or when the results provide insufficient evidence to distinguish competing explanations. All experimental configurations use the same language model. Controlled experiments are needed to assess how model choice affects experimental design and property identification accuracy. The ablation study also shows that agent role specialization reduces the number of target-side program executions and increases model inference costs. Practical applications. When processor implementation details are unavailable, ProcReverser can use black-box measurements to test hardware conditions relevant to transient-execution risks. It integrates experiment design, test program generation, failure diagnosis, and evidence analysis into a single workflow, reducing the need for sustained expert involvement in per-processor testing. Each property report documents the conclusion, supporting measurements, and test conditions. These reports help researchers decide which hardware properties warrant further validation and under what conditions to evaluate mitigations, thereby providing an experimental basis for processor vulnerability analysis. Future work. We plan to evaluate ProcReverser’s generalization on more commercial processors, including different microarchitectural implementations of the same ISA and processors implementing other ISAs such as Arm and x86. We will also explore new agent design methods for microarchitectural reverse engineering and compare the performance of different language models and agent collaboration strategies. VII. C ONCLUSION We presented ProcReverser, a multi-agent system for black-box microarchitectural reverse engineering to support processor vulnerability analysis. It uses execution feedback to refine experiments and Discriminative Revalidation (DR) to enforce evidence checks and trigger targeted retests when evidence is insufficient, improving identification accuracy. ProcReverser achieves Pass@1 and Pass@5

scores of 81.3% and 93.8% on the XuanTie C910, and 83.0% and 100.0% on gem5 RISC-V O3, respectively. On the SiFive P550, the system identifies microarchitectural properties in 23 of the 26 tasks. These results show that ProcReverser can identify securityrelevant microarchitectural properties across the evaluated processors and configurations while providing supporting measurements and experimental conditions. These capabilities provide an experimental basis for analyzing the hardware conditions underlying Spectreclass vulnerabilities, assessing the applicability of mitigations, and supporting further processor vulnerability analysis. R EFERENCES [1] L. Gerlach, M. Bognar, D. Weber, M. Schwarz, and J. Van Bulck, “Spectre on RISC-V silicon: Attacks and defenses on commercial outof-order processors,” in Proc. 35th USENIX Security Symp., 2026, pp. 5335–5354. [2] P. Vila, P. Ganty, M. Guarnieri, and B. Köpf, “CacheQuery: Learning replacement policies from hardware caches,” in Proc. ACM SIGPLAN Conf. Program. Lang. Design Implementation (PLDI), 2020, pp. 519– 532, doi: 10.1145/3385412.3386008. [3] J. Chen, P. Qu, and Y. Zhang, “Dissecting conditional branch predictors of Apple Firestorm and Qualcomm Oryon for software optimization and architectural analysis,” arXiv:2411.13900, 2024. [4] C. Liu et al., “SSBench: Automated characterization of memory dependence predictors on modern CPUs,” in Proc. 53rd ACM/IEEE Annu. Int. Symp. Comput. Archit. (ISCA), 2026, pp. 1750–1765, doi: 10.1109/ISCA66397.2026.00127. [5] RISC-V International, “RISC-V International statement on Spectre and Meltdown (2018),” Jan. 15, 2018. [6] P. Kocher et al., “Spectre attacks: Exploiting speculative execution,” in Proc. IEEE Symp. Security and Privacy (SP), 2019, pp. 1–19, doi: 10.1109/SP.2019.00002. [7] SpacemiT, “Key Stone K3.” Accessed: Oct. 25, 2026. [Online]. Available: https://www.spacemit.com/products/keystone/k3 [8] SpacemiT, “SpacemiT progress update (April 2026),” May 7, 2026 (in Chinese). Accessed: Oct. 25, 2026. [Online]. Available: https://forum. spacemit.com/t/topic/1166 [9] J. J. Poveda Rodrigo, M. A. Hamdi, C. Koenig, A. Burrello, D. Jahier Pagliari, and L. Benini, “POSTER: V-Seek: Optimizing LLM reasoning on a server-class general-purpose RISC-V platform,” in Proc. 22nd ACM Int. Conf. Comput. Frontiers (CF), 2025, pp. 224–225, doi: 10.1145/3719276.3727954. [10] SiFive, “SiFive and AMD collaborate to optimize AMD ROCm on RISC-V datacenter servers,” Sept. 15, 2026. Accessed: Oct. 25, 2026. [Online]. Available: https://www.sifive.com/press/ sifive-amd-rocm-riscv-datacenter-servers [11] XUANTIE-RV, “OpenXuantie—OpenC910 Core,” GitHub repository. Accessed: Oct. 26, 2026. [Online]. Available: https://github.com/ XUANTIE-RV/openc910 [12] F. Thomas et al., “RISCover: Automatic discovery of user-exploitable architectural security vulnerabilities in closed-source RISC-V CPUs,” in Proc. ACM SIGSAC Conf. Comput. Commun. Security (CCS), 2025, pp. 3326–3340, doi: 10.1145/3719027.3765141. [13] P. Borkar et al., “WhisperFuzz: White-box fuzzing for detecting and locating timing vulnerabilities in processors,” in Proc. 33rd USENIX Security Symp., 2024, pp. 5377–5394. [14] J. Xu et al., “DejaVuzz: Disclosing transient execution bugs with dynamic swappable memory and differential information flow tracking assisted processor fuzzing,” in Proc. 30th ACM Int. Conf. Archit. Support Program. Lang. Oper. Syst. (ASPLOS), vol. 3, 2025, pp. 64–80, doi: 10.1145/3676642.3736115. [15] A. Abel and J. Reineke, “uops.info: Characterizing latency, throughput, and port usage of instructions on Intel microarchitectures,” in Proc. 24th Int. Conf. Archit. Support Program. Lang. Oper. Syst. (ASPLOS), 2019, pp. 673–686, doi: 10.1145/3297858.3304062. [16] A. Abel and J. Reineke, “nanoBench: A low-overhead tool for running microbenchmarks on x86 systems,” in Proc. IEEE Int. Symp. Perform. Anal. Syst. Softw. (ISPASS), 2020, pp. 34–46, doi: 10.1109/ISPASS48437.2020.00014. [17] N. Derumigny et al., “PALMED: Throughput characterization for superscalar architectures,” in Proc. IEEE/ACM Int. Symp. Code Gener. Optim. (CGO), 2022, pp. 106–117, doi: 10.1109/CGO53902.2022.9741289.

[18] B. Gras, C. Giuffrida, M. Kurth, H. Bos, and K. Razavi, “ABSynthe: Automatic blackbox side-channel synthesis on commodity microarchitectures,” in Proc. Netw. Distrib. Syst. Security Symp. (NDSS), 2020, doi: 10.14722/ndss.2020.23018. [19] D. Weber, A. Ibrahim, H. Nemati, M. Schwarz, and C. Rossow, “Osiris: Automated discovery of microarchitectural side channels,” in Proc. 30th USENIX Security Symp., 2021, pp. 1415–1432. [20] O. Oleksenko, C. Fetzer, B. Köpf, and M. Silberstein, “Revizor: Testing black-box CPUs against speculation contracts,” in Proc. 27th ACM Int. Conf. Archit. Support Program. Lang. Oper. Syst. (ASPLOS), 2022, pp. 226–239, doi: 10.1145/3503222.3507729. [21] D. Weber, F. Thomas, L. Trampert, R. Zhang, and M. Schwarz, “TREVEX: A black-box detection framework for data-flow transient execution vulnerabilities,” in Proc. IEEE Symp. Security and Privacy (SP), 2026, pp. 676–695, doi: 10.1109/SP63933.2026.00135. [22] E. Moreno et al., “Automated template-free synthesis of instructioncentric leakage contracts for black-box CPUs,” arXiv:2607.15118, 2026. [23] D. R. Dipta, T. Tiemann, E. Marin, T. Eisenbarth, and B. Gulmezoglu, “uGen: An agentic framework for generating microarchitectural attack PoCs,” arXiv:2605.15503, 2026. [24] M. Hasan, S. Paria, S. Bhunia, and T. Hoque, “COVERT: Trojan detection in COTS hardware via statistical activation of microarchitectural events,” in Proc. Design, Autom. Test Eur. Conf. (DATE), 2026, pp. 1–7, doi: 10.23919/DATE69613.2026.11539495. [25] Z. Xu, Z. Wang, Y. Sun, and X. Wang, “Rethinking side-channel analysis: Automated discovery and analysis of side-channel leakage with LLM-assisted agents,” arXiv:2605.17406, 2026. [26] D. Saha et al., “SV-LLM: An agentic approach for SoC security verification using large language models,” arXiv:2506.20415, 2025. [27] Z.-Q. Rui, X. Ling, F.-Z. Cao, T.-Y. Luo, and J.-Z. Wu, “MARC: Multiagent collaborative approach for early detection of hardware security vulnerabilities,” Ruan Jian Xue Bao/Journal of Software, vol. 37, no. 6, pp. 2370–2389, 2026 (in Chinese), doi: 10.13328/j.cnki.jos.007618. [28] D. R. Ankireddy, S. Paria, A. Dasgupta, S. Ray, and S. Bhunia, “LASSO: LLM-aided security property generation for assertion-based SoC verification,” in Proc. ACM/IEEE 7th Symp. Mach. Learn. CAD (MLCAD), 2025, pp. 1–10, doi: 10.1109/MLCAD65511.2025.11189178. [29] K. S. Endukuri, N. Matus, and R. Govindaradjou, “LLM-driven multiagent framework for automated RISC-V verification stimulus generation,” poster presented at RISC-V Summit Europe, June 2026. [30] A. Cui et al., “CHIA: An open-source framework for principled, agentic AI-driven hardware/software co-design research,” arXiv:2606.27350v3, 2026. [31] V. Kypriotis, A. Blasberg, A. Moiras, and D. Skarlatos, “Agentic Architect: An agentic AI framework for architecture design exploration and optimization,” arXiv:2604.25083v2, 2026. [32] C. Canella et al., “A systematic evaluation of transient execution attacks and defenses,” in Proc. 28th USENIX Security Symp., 2019, pp. 249–266. [33] Y. He, Y. Wang, S. Cui, A. Sengupta, and M. K. Ramanathan, “Agentic interpretation: Harness-governed evidence construction for software agents,” arXiv:2610.23996v1, 2026. [34] H. Huang, J. Shi, Y. Li, and Y. Chen, “Affordance agent harness: Verification-gated skill orchestration,” arXiv:2605.00663v2, 2026. [35] LangChain, Inc., “Agents,” LangChain Documentation. Accessed: Oct. 25, 2026. [Online]. Available: https://docs.langchain.com/oss/ python/langchain/agents [36] LangChain, Inc., “LangGraph overview,” LangChain Documentation. Accessed: Oct. 25, 2026. [Online]. Available: https://docs.langchain. com/oss/python/langgraph/overview [37] Z.ai, “GLM-5.3-Flash/FlashX—Overview,” Z.AI Developer Document. Accessed: Oct. 25, 2026. [Online]. Available: https://docs.z.ai/guides/ vlm/glm-5.3-flash [38] Sipeed, “Lichee Pi 4A,” Sipeed Wiki. Accessed: Oct. 26, 2026. [Online]. Available: https://wiki.sipeed.com/hardware/en/lichee/th1520/lp4a.html [39] SiFive, “HiFive Premier P550.” Accessed: Oct. 26, 2026. [Online]. Available: https://www.sifive.com/development-platforms/ hifive-premier-p550 [40] J. Lowe-Power et al., “The gem5 simulator: Version 20.0+,” arXiv:2007.03152, 2020. [41] gem5, “Out of order CPU model.” Accessed: Oct. 26, 2026. [Online]. Available: https://www.gem5.org/documentation/general_docs/ cpu_models/O3CPU [42] T-Head, XuanTie C910 User Manual (OpenC910), June 27, 2024 (in Chinese). OpenC910 repository, commit b91c909.

Related documents

Record · ID 1680281 · SHA-256 4ab0b852fd19b102
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive