Perceived versus Actual Security in Web Applications: A Comparative Analysis of Human-Developed and Large Language Model (LLM)-Generated ApplicationsShow others and affiliations
2026 (English)Independent thesis Basic level (degree of Bachelor), 12 credits / 18 HE credits
Student thesis
Abstract [en]
Web applications are critical for modern digital services, traditionally requiring sub-stantial effort and expertise from human developer teams to ensure robust security andfunctionality. Recently, Large Language Models (LLMs) have emerged as powerful toolsto accelerate this development process, though concerns regarding the security of the gen-erated code persist. This thesis investigates the viability of one of these models by com-paring a peer-to-peer rental web application built by a human developer team with anLLM-generated equivalent.Applying a design science approach, the study evaluates actual security via static anal-ysis and penetration testing, perceived security through user tests and surveys amongLinköping University students, and development effort by contrasting work hours withLLM costs. Results indicate that both technical security knowledge and practical secure-development expertise are important for producing a secure web application. The findingsalso suggest that user perceptions of security are influenced not only by visible design cuesbut also by features such as authentication and single sign-on.Overall, the thesis shows that LLMs can support web application development, butthey do not yet replace the need for human oversight when security is a critical require-ment.
Abstract [sv]
Webbapplikationer är avgörande för moderna digitala tjänster och har traditionelltsett krävt omfattande insatser och expertis från mänskliga utvecklingsteam för att säk-erställa robust säkerhet och funktionalitet. På senare tid har Stora Språkmodeller (LLM:er)vuxit fram som kraftfulla verktyg för att påskynda denna utvecklingsprocess, även omdet kvarstår bekymmer gällande säkerheten hos den genererade koden. Denna uppsatsundersöker användbarheten hos en av dessa modeller genom att jämföra en peer-to-peer-webbapplikation för uthyrning, byggd av ett mänskligt utvecklarteam, med en LLM-genererad motsvarighet.Genom att tillämpa en design science-metodik utvärderar studien den faktiska säker-heten via statisk analys och penetrationstestning, den upplevda säkerheten genom använ-dartester och enkäter bland studenter vid Linköpings universitet, samt utvecklingsinsatsengenom att kontrastera arbetstimmar mot LLM-kostnader. Resultaten indikerar att bådeteknisk säkerhetskunskap och praktisk erfarenhet av säker utveckling är viktiga för attproducera en säker webbapplikation. Studiens fynd tyder även på att användarnas upp-fattning om säkerhet påverkas, inte bara av synliga designval, utan också av funktionersom autentisering och single sign-on.Sammantaget visar uppsatsen att LLM:er kan ge stöd i utvecklingen av webbapplika-tioner, men att de ännu inte ersätter behovet av mänsklig granskning när säkerhet är ettkritiskt krav.
Place, publisher, year, edition, pages
2026. , p. 70
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-225260ISRN: LIU-IDA/LITH-EX-G--2026/007--SEOAI: oai:DiVA.org:liu-225260DiVA, id: diva2:2075325
Subject / course
Computer Engineering
Presentation
(English)
Supervisors
Examiners
2026-06-222026-06-182026-06-22Bibliographically approved