MalCodeAI: Autonomous Vulnerability Detection and Remediation via Language Agnostic Code Reasoning
Jugal Gajjar, Kamalasankari Subramaniakuppusamy, and Noha El Kachach

TL;DR
MalCodeAI is an AI-driven, language-agnostic system that autonomously detects and remediates software vulnerabilities across multiple programming languages, enhancing security with high accuracy and developer-friendly explanations.
Contribution
This paper introduces MalCodeAI, a novel multi-stage AI pipeline that combines code decomposition and semantic reasoning for autonomous vulnerability detection and remediation across 14 languages.
Findings
Achieved validation loss of 0.397 in code summarization phase.
Achieved validation loss of 0.199 in vulnerability detection and remediation.
High developer approval scores for usefulness and interpretability.
Abstract
The growing complexity of cyber threats and the limitations of traditional vulnerability detection tools necessitate novel approaches for securing software systems. We introduce MalCodeAI, a language-agnostic, multi-stage AI pipeline for autonomous code security analysis and remediation. MalCodeAI combines code decomposition and semantic reasoning using fine-tuned Qwen2.5-Coder-3B-Instruct models, optimized through Low-Rank Adaptation (LoRA) within the MLX framework, and delivers scalable, accurate results across 14 programming languages. In Phase 1, the model achieved a validation loss as low as 0.397 for functional decomposition and summarization of code segments after 200 iterations, 6 trainable layers, and a learning rate of 2 x 10^(-5). In Phase 2, for vulnerability detection and remediation, it achieved a best validation loss of 0.199 using the same number of iterations and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
