A malicious contract does not need to break EVM semantics to mislead an auditor. In a controlled study, Timo Schefold placed owner-controlled fund-transfer paths inside purpose-built vault contracts, then modified the bytecode and surrounding strings to frustrate language models performing first-pass security analysis. The attacker-controlled surface was…
Inspect the ClaimsCase · DiggingBeagle record
The Deception Delta: synthetic fund-drain contracts mislead AI bytecode auditors
An ACM CCS 2026-accepted study tested 22 models against synthetic EVM contracts designed to deceive raw-bytecode analysis. Author-reported drain detection fell from 41.0% on controls to 21.0% on deceptive contracts, and some models recognized fund extraction but rationalized it as safe.
Controlled adversarial evaluation of one-shot, raw-bytecode-only LLM forensic triage. Thirteen synthetic EVM contracts (nine deception vectors, four controls), 22 models, six prompt strategies, 8,528 analyzable non-refusal runs. No deployed malicious contracts, real victims or observed on-chain theft. All performance figures are author-reported benchmark results, not independently reproduced production incident rates.
Assessment profile
Assessment method- Setting
- evaluation
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- not applicable
- AI role
- AGAINST AI
Basis and provenance
The evaluated model outputs demonstrate attack-induced analytical misclassification and rationalization in an author-reported synthetic benchmark, not exploitation of deployed contracts or an independently reproduced production AI service. The detailed accepted paper gives sample sizes, scoring, test provenance, falsifiable artifacts and checks partly independent of its LLM judge; one expert supplied 50 calibration labels and some drain paths lack dedicated full ERC-20 execution tests. The companion archive was not directly accessible, so evidence grade B reflects inspectable primary methodology and explicit limits, not independent experimental replication. No actual theft, victim damage, operational breach or meaningful comparable monetary impact was measured, leaving impact_band null. This is a controlled research evaluation, not a specific patched production vulnerability, hence remediation_status not_applicable. Thornton is a contrasting source-code task rather than corroboration of the numeric delta.
Assessed Oct 9, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-DD-STUDY-DESIGN · CLM-DD-OBSERVED-GAP · CLM-DD-RATIONALIZATION · CLM-DD-DETECTION-ACCOUNTING · CLM-DD-GROUNDTRUTH-CAVEAT · CLM-DD-NO-CHAIN-EXPLOIT · CLM-DD-ANALYST-BOUNDARY · CLM-DD-CONTRAST-SOURCE-COMMENTS · The Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2 · ACM CCS 2026 accepted-papers list naming The Deception Delta · Can Adversarial Code Comments Fool AI Security Reviewers: large-scale empirical study
At a glance
The operational risk arises when a model report crosses from evidence about bytecode into authority over investigative triage. The modeled adversary supplies a contract runtime containing functional privileged-extraction logic, deceptive structure, fake audit context or instruction-like strings. The analyst model reads it as evidence and may miss the path…
Read the implicationsNo independent reproduction of the published artifact, model responses, judging labels or EVM suite was performed in this ResearchSession. The study has no deployed attack samples, so effectiveness against real adversaries and the prevalence of analyst-targeted contract deception on chain are unknown. The 50 human calibration labels came from a single…
Limits and uncertaintyFull account
A malicious contract does not need to break EVM semantics to mislead an auditor. In a controlled study, Timo Schefold placed owner-controlled fund-transfer paths inside purpose-built vault contracts, then modified the bytecode and surrounding strings to frustrate language models performing first-pass security analysis. The attacker-controlled surface was the contract runtime itself: hex-encoded bytecode, including human-readable strings and function structure, was submitted to models as data for interpretation. A bad outcome for the simulated analyst was a missed extraction path or a reassuring safety assessment despite the ability to describe the path. No public blockchain or actual funds were involved.
The September 12 arXiv submission was corrected on October 6, 2026 to match the accepted ACM CCS 2026 version. The primary matrix contains 22 models, nine deceptive drains, four controls, six prompts, five repetitions per cell and 8,528 analyzable responses. Models received only a single hex-encoded EVM runtime without source, on-chain transactions, storage contents, execution tools or follow-up questions. The researchers built the contracts adaptively with Claude Opus as a generation assistant and attack target, then froze bytecode and ran local checks. This synthetic benchmark measures robustness against designed camouflage, not the base rate of scams in deployed DeFi applications.
The reported detection result is 41.0% on two non-deceptive drain controls versus 21.0% on the nine deceptive vectors, a gap of 20.0 percentage points with a 95% bootstrap interval for the magnitude of 17.2 to 22.8 points. Structural techniques were most disruptive: a five-function settlement chain, selector XOR masking combined with indirect recipient storage, and dynamically loaded transfer parameters all forced the analyst to reconstruct privileged fund flows rather than rely on descriptive names. The two hardest individual vectors were detected in 2.3% and 3.5% of scored outputs, but the strength of this conclusion is bounded by the specific models, prompts, contracts and labeling scheme.
The distinctive result is rationalization. In synthetic vault HV-3b, an embedded fake audit explanation describes a drain as normal settlement accounting. Some models trace the transfer, note the balance-clearing operation, and still judge it benign. Thus the paper codes 49.4% of HV-3b outputs as mechanism detections, but 62.9% of those detections are rationalizations rather than correct alarm verdicts. Counting a rationalized answer as successful detection is defensible for measuring recognition but unsafe for measuring whether an investigator would be reassured. The authors explicitly report that recoding rationalized outputs as missed increases the aggregate gap to 23.9 points. The phenomenon is not simply obeying an injected system command: an artifact can bias interpretation even when the model identifies the technical behavior.
Two contracts also carried instructions embedded as bytecode strings. In the reported data, 292 of 656 false-negative analyses mention those instructions while overlooking the actual drain. The defensive instruction to ignore embedded commands did not systematically help under the six tested prompts. That matters for security-auditor workflows: recognizing hostile text and reconstructing unauthorized token transfers are separate tasks, and a successful first check cannot substitute for the second.
Measurement is not free of caveats. The authors used an LLM judging pipeline with one expert labeling 50 calibration responses; a subset of models served both as analysis subjects and judges, although selector-match and risk-rating checks corroborated the aggregate trend without using judges. The 71 local tests also require exact interpretation: seven involve predecessor variants, the HV-1 token-call selector is nonstandard and cannot drain a normal ERC-20, and HV-PI/HV-PI2 have no standalone EVM tests. The claimed ground truth is therefore documented and qualified, not an independently rerun formal proof of every route. The linked Zenodo archive could not be inspected in this session.
A separate source-code pilot changes the conclusion materially: across 240 drain-bearing runs within a smaller eight-model, eight-contract subset, detection improved from 41.7% with bytecode to 97.9% with source. This is evidence that representation and independently recoverable execution semantics matter, not proof that source-aware tools are universally accurate. The paper reports that ordinary Slither and Mythril runs separately did not identify its composed drains, while also not testing comprehensive trace-based, source-assisted or human-in-the-loop pipelines. The practical boundary is to treat one-shot model explanation as triage, then demand a separately reconstructed privileged fund-flow path before accepting a benign verdict.
Timeline
- Sep 12, 2026Event type unspecified
First arXiv submission
The Deception Delta version 1 is submitted to arXiv.
- Oct 6, 2026Event type unspecified
Corrected ACM CCS-aligned version released
arXiv v2 is posted; authors describe it as corrected to match the ACM version.
Claims & evidence
CLM-DD-CALIBRATIONThe authors used an LLM-as-judge workflow calibrated against 50 cases labeled by one domain expert, and reported two separate judge-independent checks of model responses. Selector mention dropped by 11.4 percentage points and ratings of at least 3/5 dropped by 6.5 points between controls and deceptive vectors, corroborating direction but not equaling the main detection metric.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Sections 4.3 Human calibration and decision rule, Validation layers and limitations; Section 5.2 Judge-independent checks
CLM-DD-OBSERVED-GAPIn the authors' calibrated evaluation, mechanism detection fell from 41.0% on the two drain-bearing controls C1 and C3 to 21.0% across the nine deceptive drain vectors: a 20.0-percentage-point reduction, with a reported 95% contract-stratified run-level bootstrap interval of 17.2 to 22.8 percentage points for the decrease.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Section 5.1 The Deception Effect, first paragraph and confidence-interval method; Section 4.3 verdict mapping
CLM-DD-PROMPT-LIMITAdding warnings to ignore instructions embedded in the bytecode had no consistent aggregate advantage in the tested prompts: the investigation pair changed by -0.1 percentage point and the neutral pair by +1.2 points on deceptive vectors; prompt changes moved some individual models in opposing directions.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Section 5.6 Guard instructions offer no aggregate benefit; Framing effects are weak
CLM-DD-STUDY-DESIGNSchefold evaluated 22 language models from seven providers on 13 synthetic contracts, comprising nine adversarial-deception vectors and four controls, across six prompt strategies and five planned repetitions per model-contract-prompt cell. Of 8,580 planned runs, 8,528 were analyzable non-refusals; 36 were pending and 16 were runtime-labeled refusals.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Sections 3.2-3.3 and 4.1 Experimental Design, paragraphs stating 22 models, 13 contracts, six prompts, 8,580 planned and 8,528 analyzable
CLM-DD-RATIONALIZATIONOn synthetic vault HV-3b, models sometimes correctly describe the concealed fund-transfer mechanism and then call it benign after accepting fake audit or accounting explanations. The paper reports 49.4% mechanism-detection under its coding, but 62.9% of those counted as detected are rationalized rather than correct harmfulness warnings.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Sections 4.3 Inputs and outcome taxonomy and 5.3 Table 3 HV-3b row; Section 5.4 Rationalization paragraphs
CLM-DD-SOURCE-BOUNDARYA separate exploratory matched source-code subset found 100/240 (41.7%) drain detections from raw bytecode versus 235/240 (97.9%) from source across eight models, eight contracts and one prompt. This subset is not part of the principal 13-contract bytecode-only matrix and does not test complete decompiler-assisted or agent toolchains.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Section 5.2 Input and construction boundary checks, source-code subset; Section 6 Limitations
CLM-DD-ANALYST-BOUNDARYThe attacker in the paper controls the content and structure of a synthetic unverified EVM contract that a defender model receives as a hex-encoded runtime in a one-shot risk assessment without source, chain history, storage state, tools or dialogue. The demonstrated failure is misleading triage output, not an observed model-tool privilege escalation or a real financial incident. The paper discusses suppression of escalation or mistaken investigative attribution as possible downstream consequences, not measured outcomes.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Sections 3.1 Threat Model, paragraphs defining adversary, analyst inputs and possible attribution errors; 4.1 Experimental Design; 6 Implications for LLM-based bytecode forensics
CLM-DD-NO-CHAIN-EXPLOITThe study contracts were purpose-built for controlled research and were never deployed on a public blockchain; the results do not demonstrate a live victim, theft, compromised deployed contract, or prevalence of this mechanism among real-world contracts.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Introduction final paragraph; Section 6 Limitations; Appendix B Ethical Considerations
CLM-DD-GROUNDTRUTH-CAVEATThe authors report 71 passing local Foundry tests and 13 selector checks, but acknowledge coverage limits: seven tests address predecessor contracts outside the 13-contract matrix; HV-1 uses a nonstandard token-call selector that cannot drain a standard ERC-20; and the two prompt-injection vectors have no dedicated EVM tests, although their bytecode selectors were checked.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Section 3.4 Ground Truth Verification, paragraphs on HV-1, predecessor tests, prompt-injection vectors and selector checks
CLM-DD-ARTIFACT-DISCLOSUREAppendix A of the paper links a Zenodo research artifact said to include synthetic contract code and bytecode, judge and model outputs, labels, and analysis scripts; this research did not independently download or execute that archive.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Appendix A Open Science, Artifacts and Access subsections, Zenodo DOI
CLM-DD-MODEL-HETEROGENEITYThe reported detection rate on deceptive contracts varied from 0% to 75.6% across evaluated models. Five model configurations from two providers exceeded 50%; Claude Opus with thinking reached 75.6% and GPT-5.2 improved from 30.7% to 51.5% with thinking, whereas the Anthropic within-family reasoning differences were small or negative. The 0% floor model often failed to engage with bytecode and should not be interpreted as evidence of deception alone.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Section 5.5 Model Performance, Table 4, paragraphs on floor-tier model and matched reasoning comparisons
CLM-DD-REVISION-ACCEPTANCEThe paper was first submitted to arXiv on September 12, 2026, revised October 6 as v2 to match the published ACM version, and is listed as accepted for ACM CCS 2026; the conference is scheduled for November 15-19, 2026.supported
Basis: direct observation
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
arXiv v2 HTML header and arXiv abstract page submission history; CCS proceedings banner
- supportsACM CCS 2026 accepted-papers list naming The Deception Deltaprimary disclosure
Accepted papers listing, row "The Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics"
CLM-DD-STRUCTURAL-FAILURESThe paper reports 11.1% aggregate detection for structural deception, compared with 37.7% for string-based deception and 29.3% for embedded-instruction deception. Detection on the hardest structural contracts HV-4b and HV-3 is 2.3% and 3.5%, respectively, under the evaluated raw-bytecode protocol.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Sections 5.1 and 5.3, Table 3 and paragraphs describing structural, string and instruction-injection vectors
CLM-DD-DETECTION-ACCOUNTINGThe headline detection rate explicitly counts rationalized responses as detected because the mechanism was recognized, even though those responses are unsafe as forensic recommendations. Recoding rationalized outputs as missed increases the reported aggregate deception effect to a 23.9-percentage-point detection gap.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Section 4.3 binary verdict mapping; Section 5.2 Verdict and judge sensitivity, rationalized-to-fn sensitivity result
CLM-DD-INERT-BYTECODE-DECOYIn the HV-PI2 synthetic test, a conversational prompt-injection string asks the auditor to reconsider the input while benign GreenHope C2 runtime is embedded as inert bytes returned by an unused getReferenceContract() function. That embedded code is not a second deployed contract; it is attacker-controlled decoy data inside the contract under analysis.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Section 3.3 Deception Vectors, Prompt injection subsection, HV-PI2 (Social Engineering) paragraph
CLM-DD-INJECTION-DISTRACTIONAcross 656 false-negative responses on the two embedded-instruction vectors, the study finds 292 (44.5%) that nevertheless mention or quote the instruction injection. Recognizing hostile instructions therefore did not imply identifying the independent malicious drain in those model responses.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Section 5.6 Failure modes on prompt-injection vectors, sentence reporting 292 of 656 false negatives
CLM-DD-CONTRAST-SOURCE-COMMENTSA separate study by Scott Thornton tested eight models on 100 vulnerable source-code samples across Python, JavaScript and Java, obtaining 9,366 primary evaluations. It reported small, statistically non-significant effects from adversarial comments (McNemar exact p > 0.21). This is a contrast, not an independent replication of Deception Delta: Thornton evaluates comments over visible conventional vulnerabilities, whereas Schefold evaluates end-to-end deceptive EVM contract bytecode without source or execution tools.supported
Basis: reported finding
- supportsCan Adversarial Code Comments Fool AI Security Reviewers: large-scale empirical studyprimary disclosure
arXiv abstract and HTML Sections 4 Methodology, 5.2 Adversarial Comments Produce Small, Non-Significant Effects; eight models, 100 samples, 9,366 primary evaluations, McNemar p > 0.21
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Sections 2.3 Adversarial Attacks on LLMs (comparison to Thornton), 3.1 Threat Model, and 5.2 Input and construction boundary checks
CLM-DD-STRUCTURED-CHECKLIST-TRADEOFFThe structured Prompt F produced 32 primary-judge true positives and 45 hallucinations on HV-3b, whereas the other five prompt variants produced 2 to 9 hallucinations each on that vector. The authors describe a tradeoff: requiring concrete mechanisms can reduce vague rationalization while increasing invented mechanisms, so checklist prompting is not by itself a validated fix.supported
Basis: reported finding
- supportsThe Deception Delta: Adversarial Evaluation of LLM-Based Smart Contract Bytecode Forensics, corrected arXiv v2primary disclosure
Section 5.4 Rationalization, paragraph beginning "Prompt design interacts strongly with rationalization"; Section 5.6 Prompt F tradeoff
Implications
The operational risk arises when a model report crosses from evidence about bytecode into authority over investigative triage. The modeled adversary supplies a contract runtime containing functional privileged-extraction logic, deceptive structure, fake audit context or instruction-like strings. The analyst model reads it as evidence and may miss the path or recognize it but attribute harmless intent, producing a reassuring risk assessment. If a human or automated queue treats that verdict as sufficient, a suspected owner-controlled drain might not receive further scrutiny, and investigator attribution could be misdirected. Those downstream decisions were scenario assumptions, not harms measured in the synthetic experiment.
Use distinct fields for the privileged fund-flow path, whether that path was actually reconstructed, provenance of any external safety claim, and the final risk judgment. Reject fake audit assertions as independent proof, but also do not conflate ordinary owner-governance risks with a demonstrated extraction path, as benign control C4 shows. Prompt F's increased true positives and hallucinations illustrate why requiring detailed answers is not itself equivalent to checking their accuracy. Independent reconstruction against source, execution traces or specialized flow analysis is a reasoned control direction, not a defense whose production effectiveness this paper established.
The observation does not automatically extend to source-aware code review: Schefold's exploratory source-code subset performs much better, and Thornton's independent source-review benchmark did not find significant effects from adversarial comments under a different threat model. Retain both as boundaries on interpretation, not as interchangeable detection rates. The evaluated models, contracts and prompts were controlled research samples; none were deployed to steal funds.
Controls and mitigations
- Treat unverified bytecode strings, audit attestations and explanatory comments as untrusted input; never accept them as independent evidence of benign behavior.
- Before relying on a benign audit conclusion, reconstruct who can initiate privileged fund flows, what values and recipients are loaded dynamically, and whether the transfer can execute in an appropriate controlled environment.
- Use source and deployment artifacts, traces or specialized fund-flow tooling where available, retaining human oversight and explicit confidence bounds; this study did not validate a complete production defense stack.
Unknowns and contradictions
- No independent reproduction of the published artifact, model responses, judging labels or EVM suite was performed in this ResearchSession.
- The study has no deployed attack samples, so effectiveness against real adversaries and the prevalence of analyst-targeted contract deception on chain are unknown.
- The 50 human calibration labels came from a single expert; independent multi-expert labeling is not established.
- The paper excludes full multi-turn, decompiler-in-the-loop, on-chain context and tool-augmented analyst systems from its central performance claim.
- Some local EVM check coverage does not directly exercise every studied contract or standard ERC-20 transfer path; per-vector evidence must retain these qualifications.
- Contract vectors were developed adaptively against Claude Opus, creating possible construction bias despite provider-exclusion and held-out checks.
Sources and citation
Material revision history
- Oct 9, 2026 · Published version · first publication · revision 111