Welcome to the upgraded BRAC University Institutional Repository. We are currently organizing collections after a recent system upgrade. Homepage category counters may temporarily show lower numbers while syncing, but over 27,000 repository items remain safe and accessible. Please use the search bar to find theses, scholarly outputs, and institutional documents.

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

bracu.degree.levelUndergraduate
bracu.type.groupStudent Works
datacite.rightsOpen Access
dc.contributor.advisorAzmain, Md. Aquib
dc.contributor.authorHasan, Md. Nayeemul
dc.contributor.authorMahmood, Shoeb
dc.contributor.authorIslam, Jarin
dc.contributor.authorZaman, Mahbuba
dc.contributor.departmentDepartment of Computer Science and Engineering
dc.date.accessioned2026-01-08T05:28:56Z
dc.date.available2026-01-08T05:28:56Z
dc.date.copyright2025
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.en_US
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.en_US
dc.description.degreeBachelor of Science in Computer Science and Engineering
dc.description.statementofresponsibilityMd. Nayeemul Hasan
dc.description.statementofresponsibilityShoeb Mahmood
dc.description.statementofresponsibilityJarin Islam
dc.description.statementofresponsibilityMahbuba Zaman
dc.format.extent94 pages
dc.identifier.otherID 22101622
dc.identifier.otherID 21101120
dc.identifier.otherID 22101768
dc.identifier.otherID 21101152
dc.identifier.urihttp://hdl.handle.net/10361/27411
dc.language.isoenen_US
dc.publisherBRAC Universityen_US
dc.rightsBRAC University theses are protected by copyright. They may be viewed from this source for any purpose, but reproduction or distribution in any format is prohibited without written permission.
dc.subjectLarge language modelsen_US
dc.subjectCode generationen_US
dc.subjectAI-generated codeen_US
dc.subjectArtificial intelligenceen_US
dc.subjectVulnerability classificationen_US
dc.subjectCyber securityen_US
dc.subject.lcshNatural language processing (Computer science).
dc.subject.lcshArtificial intelligence--Computer programs.
dc.subject.lcshComputer software--Development.
dc.subject.lcshComputer security.
dc.subject.lcshComputer software--Reliability.
dc.subject.lcshSoftware architecture.
dc.subject.lcshSoftware engineering.
dc.subject.lcshGenerative artificial intelligence.
dc.titleSecuring the creative code: an investigation into the security aspects of AI-generated codeen_US
dc.typeThesisen_US

Files

Original bundle

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

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: