Securing the creative code: an investigation into the security aspects of AI-generated code

dc.contributor.advisorAzmain, Md. Aquib
dc.contributor.authorHasan, Md. Nayeemul
dc.contributor.authorMahmood, Shoeb
dc.contributor.authorIslam, Jarin
dc.contributor.authorZaman, Mahbuba
dc.date.accessioned2026-01-08T05:28:56Z
dc.date.available2026-01-08T05:28:56Z
dc.date.issued2025-11
dc.descriptionCataloged from PDF version of thesis.
dc.descriptionIncludes bibliographical references (pages 80-83).
dc.descriptionThis thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science and Engineering, 2025.
dc.description.abstractAI-generated code has massive potential but this evolving technology also presents significant security concerns. This study investigates generative AI code and its security. It explores vulnerabilities inherent in AI-generated code and investigates methods to detect its vulnerability. This research analyzes the security implications of various Static Application Security Testing tools and generative AI models, identifies common vulnerabilities, and proposes practical solutions to audit and identify vulnerabilities. This study proposes an LLM that have been fine-tuned with a contextual dataset that is made up of SAST tool results. The proposed LLM is a 7B-Parameter fine-tuned Code Llama that has achieved a promising F1-Score of 0.42 and Recall of 0.72 in identifying vulnerabilities on unseen data. This study aims to contribute to the development of secure and creative coding practices in the era of AI-powered development.
dc.identifier.otherID 22101622
dc.identifier.otherID 21101120
dc.identifier.otherID 22101768
dc.identifier.otherID 21101152
dc.identifier.otherhttps://dspace.bracu.ac.bd/server/api/core/items/99f4bbf1-132e-4e62-8610-50d73c24351f
dc.identifier.urihttp://hdl.handle.net/10361/27411
dc.language.isoen
dc.publisherBRAC University
dc.sourceBRAC University Institutional Repository
dc.subjectLarge language models
dc.subjectCode generation
dc.subjectAI-generated code
dc.subjectArtificial intelligence
dc.subjectVulnerability classification
dc.subjectCyber security
dc.titleSecuring the creative code: an investigation into the security aspects of AI-generated code
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Thumbnail Image
Name:
22101622, 21101120, 22101768, 21101152_CSE.pdf
Size:
1.28 MB
Format:
Adobe Portable Document Format