Mohammad Ghafari

Mohammad Ghafari

Auto-generated profile, based on publicly available information

Mohammad Ghafari

TU Clausthal, Germany

Research Focus & Metrics

Academic Career Length

19Years (2008-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
1 October 2018 in Journal of Systems and Software
Verified
Journal Article
Closed access
LML. Merino
L. Merino
MGM. Ghafari
M. Ghafari
CAC. Anslow
C. Anslow
ONO. Nierstrasz
O. Nierstrasz

14 December 2018 in Empirical Software Engineering
Verified
Journal Article
Closed access
PDF file
PGPascal Gadient
Pascal Gadient
MGMohammad Ghafari
Mohammad Ghafari
PFPatrick Frischknecht
Patrick Frischknecht
ONOscar Nierstrasz
Oscar Nierstrasz

18 June 2024
Verified
Conference Paper
Open access
AKArya Kavian
Arya Kavian
MKMohammad Mehdi Pourhashem Kallehbasti
Mohammad Mehdi Pourhashem Kallehbasti
SKSajjad Kazemi
Sajjad Kazemi
EFEhsan Firouzi
Ehsan Firouzi
MGMohammad Ghafari
Mohammad Ghafari
Many developers rely on Large Language Models (LLMs) to facilitate software development. Nevertheless, these models have exhibited limited capabilities in the security domain. We introduce LLMSecGuard, a framework to offer enhanced code security through the synergy between static code analyzers and LLMs. LLMSecGuard is open source and aims to equip developers with code solutions that are more secure than the code initially generated by LLMs. This framework also has a benchmarking feature, aimed at providing insights into the evolving security attributes of these models.

1 May 2017
Verified
Conference Paper
Closed access
HOHaidar Osman
Haidar Osman
ACAndrei Chis
Andrei Chis
CCClaudio Corrodi
Claudio Corrodi
MGMohammad Ghafari
Mohammad Ghafari
ONOscar Nierstrasz
Oscar Nierstrasz
Exception handling allows developers to deal with abnormal situations that disrupt the execution flow of a program. There are mainly three types of exceptions: standard exceptions provided by the programming language itself, custom exceptions defined by the project developers, and third-party exceptions defined in external libraries. We conjecture that there are multiple factors that affect the use of these exception types. We perform an empirical study on long-lived Java projects to investigate these factors. In particular, we analyze how developers rely on the different types of exceptions in throw statements and exception handlers. We confirm that the domain, the type, and the development phase of a project affect the exception handling patterns. We observe that applications have significantly more error handling code than libraries and they increasingly rely on custom exceptions. Also, projects that belong to different domains have different preferences of exception types. For instance, content management systems rely more on custom exceptions than standard exceptions whereas the opposite is true in parsing frameworks.

21 July 2025 in Computers & Security
Verified
Journal Article
Open access
ARArgianto Rahartomo
Argianto Rahartomo
LMLeonel Merino
Leonel Merino
MGMohammad Ghafari
Mohammad Ghafari

8 December 2017 in Journal of Software: Evolution and Process
Verified
Journal Article
Closed access
PDF file
LMLeonel Merino
Leonel Merino
MGMohammad Ghafari
Mohammad Ghafari
ONOscar Nierstrasz
Oscar Nierstrasz