Abstract
Refactorings constitute an effective means to improve quality and maintainability of evolving object-oriented programs. Search-based techniques have shown promising results in finding optimal sequences of behavior-preserving program transformations that (1) maximize code-quality metrics and (2) minimize the number of changes. However, the impact of refactorings on extra-functional properties like security has received little attention so far. To this end, we propose as a further objective to minimize the attack surface of programs (i.e., to maximize strictness of declared accessibility of class members). Minimizing the attack surface naturally competes with applicability of established MoveMethod refactorings for improving coupling/cohesion metrics. Our tool implementation is based on an EMF meta-model for Java-like programs and utilizes MOMoT, a search-based model-transformation framework. Our experimental results gained from a collection of real-world Java programs show the impact of attack surface minimization on design-improving refactorings by using different accessibility-control strategies. We further compare the results to those of existing refactoring tools.
| Originalsprog | Engelsk |
|---|---|
| Titel | International Conference on Fundamental Approaches to Software Engineering (FASE) : Lecture Notes in Computer Science |
| Udgivelsessted | Cham, Switzerland |
| Forlag | Springer Nature Switzerland |
| Publikationsdato | 2018 |
| Sider | 38–55 |
| ISBN (Trykt) | 978-3-319-89362-4 |
| ISBN (Elektronisk) | 978-3-319-89363-1 |
| DOI | |
| Status | Udgivet - 2018 |
| Udgivet eksternt | Ja |