mlsanityData to 14 Oct 2026

Towards Secure Program Partitioning for Smart Contracts with LLM's In-Context Learning

arXiv 2502.14215 ↗First posted 20 Feb 2025cs.SE cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Smart contracts are highly susceptible to manipulation attacks due to the leakage of sensitive information. Addressing manipulation vulnerabilities is particularly challenging because they stem from inherent data confidentiality issues rather than straightforward implementation bugs. To tackle this by preventing sensitive information leakage, we present PartitionGPT, the first LLM-driven approach that combines static analysis with the in-context learning capabilities of large language models (LLMs) to partition smart contracts into privileged and normal codebases, guided by a few annotated sensitive data variables. We evaluated PartitionGPT on 18 annotated smart contracts containing 99 sensitive functions. The results demonstrate that PartitionGPT successfully generates compilable, and verified partitions for 78% of the sensitive functions while reducing approximately 30% code compared to function-level partitioning approach. Furthermore, we evaluated PartitionGPT on nine real-world manipulation attacks that lead to a total loss of 25 million dollars, PartitionGPT effectively prevents eight cases, highlighting its potential for broad applicability and the necessity for secure program partitioning during smart contract development to diminish manipulation vulnerabilities.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 19 of its 90 references that are in the map. First posted on arXiv 20 Feb 2025.

Builds on

19 of 90 references.

References · 19

  1. 2019Slither: A Static Analysis Framework For Smart Contractscited by 89
  2. 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
  3. 2018Securify: Practical Security Analysis of Smart Contractscited by 61
  4. 2024PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generationcited by 37
  5. 2018ContractFuzzer: Fuzzing Smart Contracts for Vulnerability Detectioncited by 32
  6. 2022SoK: Decentralized Finance (DeFi) Attackscited by 28
  7. 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 28
  8. 2021SoK: Decentralized Finance (DeFi)cited by 23
  9. 2020sFuzz: An Efficient Adaptive Fuzzer for Solidity Smart Contractscited by 19
  10. 2018Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attackscited by 17
  11. 2024ACFIX: Guiding LLMs with Mined Common RBAC Practices for Context-Aware Repair of Access Control Vulnerabilities in Smart Contractscited by 15
  12. 2024Compiler generated feedback for Large Language Modelscited by 9
7 more
  1. 2018Ekiden: A Platform for Confidentiality-Preserving, Trustworthy, and Performant Smart Contract Executioncited by 7
  2. 2024SmartInv: Multimodal Learning for Smart Contract Invariant Inferencecited by 6
  3. 2021DeFiRanger: Detecting Price Manipulation Attacks on DeFi Applicationscited by 5
  4. 2024Demystifying Invariant Effectiveness for Securing Smart Contractscited by 4
  5. 2021sGUARD: Towards Fixing Vulnerable Smart Contracts Automaticallycited by 3
  6. 2019Precise Attack Synthesis for Smart Contractscited by 2
  7. 2019Smart Contract Repaircited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.