Skip to content
Ananda Technologies Pvt. Ltd.
  • M.Tech
  • AI & ML
  • Python
  • In build

Code Vulnerability Detection · M.Tech Project

Code Graph Neural Network Fused with Pretrained Code Embeddings and Line Highlighting

Code vulnerability detection M.Tech project with source code: C functions become code property graphs, a gated GNN and a pretrained code encoder are fused to flag risky functions and highlight suspect lines. Includes thesis and IEEE paper.

Platform
AI & ML + Python
Thesis delivery
3–5 days, for you
1-on-1 setup
AnyDesk / Meet
Support
Till your viva

About this project

FULL PROJECT TITLE

Code Vulnerability Detection M.Tech Project: Code Graph Neural Network Fused with Pretrained Code Embeddings and Line Highlighting

Use this title in your synopsis and report.

Code vulnerability detection M.Tech project with source code: C functions become code property graphs, a gated GNN and a pretrained code encoder are fused to flag risky functions and highlight suspect lines. Includes thesis and IEEE paper.

About the code vulnerability detection M.Tech project

A single unchecked buffer or a missing bounds check in C code can open a door for attackers. Manual review is slow and rule-based scanners raise many false warnings. This code vulnerability detection M.Tech project studies a sharper question: if a model reads both the structure of a function and the meaning of its identifiers and API calls, does it find vulnerable functions more reliably, and can it point to the lines that caused the alarm?

Research behind it

Base paper. Tensor-based gated graph neural network for automatic vulnerability detection in source code, Software Testing, Verification and Reliability, Wiley, 2023. It treats code as several graphs with node features and joins them in a tensor-based gated graph neural network (TensorGNN) that gives function-level embeddings, evaluated on seven C and C++ corpora with 13 vulnerability types.

Research gap. Node features come from simple token embeddings, so the knowledge of pretrained code language models is not used. The output is a function-level label with no hint of where the problem lies. The rare vulnerable class gets no dedicated loss.

Proposed system and novelty. Each function is parsed into a code property graph with syntax, control flow and data flow edges. Node features come from a small pretrained code encoder instead of random embeddings. A gated GNN reads the graph while a second branch reads the whole-function embedding, and an attention gate learns how much to trust each branch. Node scores are mapped back to source lines, and focal loss is compared with balanced sampling.

Models compared. TF-IDF with Logistic Regression and Random Forest, a BiLSTM on tokens, a fine-tuned text-only code model and the base TensorGNN rebuilt on Devign. The ablation tests graph only, text only and fused, syntax edges against all edges, random against pretrained node features, and cross-entropy against focal loss.

A related security topic with a very different input is the prompt injection and jailbreak detection project for LLM apps.

How it works

  • C functions from the Devign benchmark are parsed once and their graphs are cached.
  • Each node gets an embedding from the pretrained code encoder.
  • The graph branch and the function branch are fused by the attention gate.
  • The model returns a risk score and the vulnerable or safe label.
  • Node scores are traced back to lines and shown as a colour scale.

Users and modules

The developer pastes or uploads C code, reads the verdict and risk score, studies the highlighted lines and graph preview, and keeps a history of scans with PDF reports. The admin manages users, uploads model versions, tunes the risk threshold and views scan statistics and the experiment page. Graph building and inference run on a CPU laptop; fine-tuning the code encoder and full GNN training are done once on a free cloud GPU notebook.

What you get

  • Phase 1 Research: Literature survey of 15-20 learning-based vulnerability papers; Base paper (Wiley STVR, 2023) with research gap and novelty; Devign data study with function and label EDA; Problem statement and objectives; Synopsis and Phase-1 report.
  • Phase 2 Implementation: Flask web app with developer and admin panels; Code property graph builder with cached graphs; Pretrained code embeddings as node features; Baselines: TF-IDF models, BiLSTM, text-only code model, base TensorGNN; Proposed gated GNN and embedding fusion with line highlighting; MySQL database and trained models.
  • Results: Accuracy, precision, recall, F1 and AUC; Top-k line hit rate on a hand-checked sample; Ablation: branches, edge types, node features, loss; Imbalance study: focal loss vs balanced sampling; results.xlsx and all graphs in high resolution.
  • Thesis and paper: Thesis written for you (about 90 pages); IEEE conference paper draft; Journal paper draft; Publication guide.
  • Reviews, viva and support: PPTs for Review 1, Review 2 and final viva; Viva book with 50+ questions; A1 poster and project diary; Demo and code walkthrough videos; 1-on-1 setup, 2 revisions and support till viva.

Who can use this project

It suits M.Tech and M.E. students of CSE and IT who want a software security dissertation built on graph learning. It also covers searches for code vulnerability detection using deep learning, a gated graph neural network project or a CodeBERT vulnerability detection project.

Who can take it

M.Tech CSE and M.Tech IT students who need a complete dissertation: research, working project, thesis and paper.

Your thesis stays unique

  • Different title variant for every student
  • Thesis and paper written fresh for you
  • Checked against all earlier copies
  • Same college, same year never repeated

Research behind it

Function-Level Source Code Vulnerability Detection by Fusing Code Graph Neural Networks with Pretrained Code Embeddings and Line-Level Explanation

BASE PAPER

Tensor-based gated graph neural network for automatic vulnerability detection in source code

Jia Yang, Ou Ruan, JiXin Zhang

Software Testing, Verification and Reliability, Wiley, 2023

DOI link Free copy

EXISTING SYSTEM

Rule-based scanners raise many false alarms, and text models lose program structure. A recent tensor-based gated GNN reads several code graphs but uses plain token embeddings for nodes and returns only a function-level label.

PROPOSED SYSTEM

Each C function becomes a code property graph whose nodes carry embeddings from a small pretrained code encoder. A gated GNN branch and a whole-function embedding branch are joined by an attention gate, focal loss handles the rare vulnerable class, and node scores are mapped back to highlight suspect lines.

RESEARCH GAP

  • Node features come from simple token embeddings; meaning learned by pretrained code language models is not used.
  • The model gives a function-level label only and does not point to the lines behind the decision.
  • The class imbalance of real projects, with few vulnerable functions, is not handled with a dedicated loss or sampling study.
  • The model is not tested on a different public benchmark split by project.

NOVELTY

  • Code property graph per function with node features from a pretrained code encoder instead of random token embeddings.
  • Fusion of a gated graph neural network branch and a pretrained code-embedding branch through a learned attention gate.
  • Line-level explanation by mapping node attention and gradient scores back to source lines.
  • Comparison of focal loss and class-balanced sampling for the imbalanced vulnerable class.

What you get

25 items, in the order you need them during M.Tech. This project is being built: the free abstract is ready now, and our team delivers everything below after you book.

Phase 1 Research

  • Literature survey of 15-20 learning-based vulnerability papers
  • Base paper (Wiley STVR, 2023) with research gap and novelty
  • Devign data study with function and label EDA
  • Problem statement and objectives
  • Synopsis and Phase-1 report

Phase 2 Implementation

  • Flask web app with developer and admin panels
  • Code property graph builder with cached graphs
  • Pretrained code embeddings as node features
  • Baselines: TF-IDF models, BiLSTM, text-only code model, base TensorGNN
  • Proposed gated GNN and embedding fusion with line highlighting
  • MySQL database and trained models

Results

  • Accuracy, precision, recall, F1 and AUC
  • Top-k line hit rate on a hand-checked sample
  • Ablation: branches, edge types, node features, loss
  • Imbalance study: focal loss vs balanced sampling
  • results.xlsx and all graphs in high resolution

Thesis and paper

  • Thesis written for you (about 90 pages)
  • IEEE conference paper draft
  • Journal paper draft
  • Publication guide

Reviews, viva and support

  • PPTs for Review 1, Review 2 and final viva
  • Viva book with 50+ questions
  • A1 poster and project diary
  • Demo and code walkthrough videos
  • 1-on-1 setup, 2 revisions and support till viva

Included free with this project

1-on-1 setup session on AnyDesk or Google Meet

After you buy, we schedule a session at a time that suits you. Our developer installs the complete project on your own laptop, runs it with you and explains it — so you can present it with confidence.

  1. 1

    Pick a time

    We call or WhatsApp you to fix the slot

  2. 2

    We install it

    Full setup on your system over AnyDesk

  3. 3

    We explain it

    Flow, modules and database on Google Meet

Modules inside

14 working modules — each one is explained in the report.

  • Developer: register, login and open the code scanner
  • Developer: paste a C function or upload a .c file
  • Developer: vulnerable or safe verdict with a risk score
  • Developer: suspicious lines highlighted with a colour scale
  • Developer: graph preview of the parsed function
  • Developer: scan history with filters and a PDF scan report
  • Developer: notification when a large file scan finishes
  • Analytics page: scans per week and share of risky functions
  • Admin: dashboard with users, scans and risky function count
  • Admin: manage developers and their scan records
  • Admin: upload and switch model versions
  • Admin: model comparison page (TF-IDF, BiLSTM, text model, base GNN, proposed)
  • Admin: settings for risk threshold and number of highlighted lines
  • Profile, change password and notifications for every role

Want an extra module or a change?

We can add the features your guide asked for. Tell us what to change and get a quote on WhatsApp.

Customise this project

Technology used

Built with
Python 3.11, Flask (blueprints), Jinja2Open-source C parser for syntax, control flow and data flow graphsPyTorch and PyTorch Geometric for the gated graph neural networkHugging Face transformers with a small pretrained code encoderscikit-learn for TF-IDF baselines and metricsMySQL (XAMPP) with PyMySQLBootstrap 5, Chart.js and a local code highlighterJupyter Notebook and Google Colab for training
Documents
Project abstract (2 pages, Word and PDF), Synopsis (Word and PDF), Phase-1 report (Word and PDF), Thesis / dissertation written for you (Word and PDF, about 90 pages), IEEE conference paper draft (Word), Journal paper draft (Word), Publication guide, Review 1, Review 2 and final viva PPTs, Viva book with 50+ questions and answers, A1 poster (PDF and PPTX), Project diary / logbook and guide meeting record, Setup guide with first-run checklist (Word and PDF), Project explanation with code walkthrough, Demo video and code walkthrough video

How buying works

  1. 1

    Read the free abstract

    Show it to your guide first

  2. 2

    Book on WhatsApp

    Sign in and tap Book

  3. 3

    Our team calls you

    Price, timeline and your details

  4. 4

    Project built for you

    Code, results and videos

  5. 5

    Thesis and paper

    Written with your details

  6. 6

    1-on-1 setup

    Installed and explained

How to run it

An overview — the full guide comes with the project, and we help you if anything doesn’t start.

  1. 1Install Python 3.11 (tick "Add to PATH") and XAMPP; start MySQL in XAMPP.
  2. 2Extract the project ZIP to a short path such as D:\MTech\.
  3. 3Open phpMyAdmin, create the database mtech_codevuln and import Database\mtech_codevuln.sql.
  4. 4Check config.py (default XAMPP user root with an empty password).
  5. 5Double-click Web_App\code_vulnerability_detection\run.bat: it creates the virtual environment and installs the requirements the first time.
  6. 6The browser opens at http://127.0.0.1:5000; log in with the demo accounts from README.txt.
  7. 7Trained models are already in the models folder, so no training is needed for the demo.
  8. 8Full steps with screenshots and the first-run checklist are in SETUP_GUIDE.pdf.

Questions about Code Vulnerability Detection M.Tech…

What is the Devign data and which base paper is rebuilt?

Devign holds about 27,000 C functions from FFmpeg and QEMU, each labelled vulnerable or not by security experts, with fixed splits in CodeXGLUE. The base paper is the 2023 Wiley TensorGNN study, rebuilt as a baseline.

Will my thesis match another student's thesis?

No. Every student gets a separate title variant and a different model change or graph setting, and the thesis is written new. It is checked against older copies of this project and must remain under 10% match.

What do I show my guide in Review 1, Review 2 and the final review?

First the survey, dataset EDA, the graph extraction design and a graph preview of one function. Next the TF-IDF, BiLSTM and text-model baselines with the rebuilt TensorGNN and a working paste-and-scan flow. Last the fused model with line highlighting, the ablation and imbalance tables and the full demo.

Can the scanner check Java or Python code too?

The trained model reads C and C++ functions, because Devign contains C code. Other languages need a matching parser and labelled data, which is listed as future work.

How are the highlighted lines checked for correctness?

A small hand-checked sample of vulnerable functions is used. For each one we test whether the real faulty line appears among the top few lines the model marks.

Code Vulnerability Detection M.Tech… is "in build" — what does that mean?

The free abstract is ready now; the code, model and results are being built. Sign in and tap Book this project on WhatsApp: our team calls you, confirms the price and timeline, and delivers the project, thesis, papers and PPTs with your details.

Do I need a GPU or to train the model?

No. The trained model comes with the project. We install and run it on your own laptop in the free 1-on-1 setup session.

My university needs its own thesis format.

Upload your university format in the details form after you pay. Your thesis is written in that format.

Can I see something before buying?

Yes. Sign in and download the free abstract from this page, and check it with your guide first. All sales are final.

Can you publish the paper for me?

You get IEEE conference and journal format drafts and a publication guide with a journal list. Submitting and publishing is done by you and your guide; we do not promise acceptance.

Similar projects

All AI & ML projects →
M.TechIn buildAI & ML40% OFF

Network Intrusion Detection M.Tech Project: Hybrid Chi-Square and Mutual Information Filter with XGBoost-RFE and SHAP

Network intrusion detection M.Tech project with source code: rank-fused Chi-square and mutual information filtering, XGBoost-driven RFE and cost-sensitive XGBoost detect attacks on CIC-IDS2017 and UNSW-NB15, with SHAP reasons. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
M.TechIn buildAI & ML40% OFF

Sleep Apnea Detection M.Tech Project: Matrix Profile ECG Features with a Lightweight CNN-Attention Model and Severity Scoring

Sleep apnea detection M.Tech project with source code: matrix profile distance features and RR-interval series feed a light CNN with channel attention that marks apnea minutes in single-lead ECG and grades each night. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
M.TechIn buildAI & ML40% OFF

Parkinson's Disease Detection M.Tech Project: Calibrated Late Fusion of Voice Features and Smartphone Spiral Drawing on Android

Parkinson's disease detection M.Tech project with source code: an Android app records a sustained vowel and a finger-drawn spiral, and calibrated late fusion of XGBoost voice and MobileNetV3 spiral models gives a screening score. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
None of these fit your topic?Send your idea — we build it and share the quote first.Request custom project

Get Code Vulnerability Detection M.Tech… for your submission

Leave your details and a counsellor will call to confirm your branch, any changes your guide needs, and how you want to pay.