arXiv:2609.04899cs.CRSep 2026

Manuscript Offprint

arXiv:2609.04899

The Security Feature Location Problem

Kevin Hermann, Sven Peldszus, Thorsten Berger, Adam Shostack

Kevin Hermann

Ruhr University Bochum

Bochum, Germany

Thorsten Berger

Ruhr University Bochum

Bochum, Germany

Chalmers | University of Gothenburg

Gothenburg, Sweden

Sven Peldszus

Chalmers | University of Gothenburg

Gothenburg, Sweden

Adam Ghostack

University of Washington

Seattle, USA

Ghostack + Associates

Seattle, USA

Abstract

Software security must be realized through security features such as authentication and encryption, but which features does a system implement, and where? We present security feature location: the task of relating code locations to security features, enabling developers to understand security implementations and assess whether intended security properties are enforced.

Introduction

Security features are concrete code-level mechanisms that serve as essential building blocks of secure software systems [2, 5, 6, 8, 14]. Typical security features, such as authentication, authorization, cryptographic protection, key management, session handling, and incident logging must be correctly designed, implemented, configured, and maintained to enforce security properties, such as confidentiality, integrity, and availability. Many security vulnerabilities arise when security features are absent, incomplete, or incorrectly implemented.

Security features are rarely confined to a single method, class, or library. Figure 1 illustrates their cross-cutting nature by showing how permission checks are distributed in the source code of Traccar, an open-source GPS tracking system. These checks enforce access control over sensitive operations, including retrieving location data and accessing resources, such as reports. Permission checks must be performed in all code paths that lead to sensitive operations, which are scattered across the codebase, and often not easy to identify. A check alone does not provide enough information to determine whether access control is consistently enforced.

Even when using third-party libraries to realize security features, the mere presence of a vulnerable library does not imply exploitability. A system is only exploitable if it invokes the affected security feature in a way that triggers the vulnerability. For example, CVE-2022-23540 in jsonwebtoken affects JSON Web Token (JWT) verification: omitting an explicit algorithm definition in a call of jwt.verify() together with passing a false key can lead to bypassing the signature validation. Assessing exploitability requires locating not only the vulnerable library, but also the code that invokes it and the code that influences the arguments passed to it, as illustrated below.

1 // may or may not return 'undefined' 2 const key = getVerificationKey(); 3 // vulnerable: key may be false + no algorithms 4 jwt.verify(token, key); 5 // also problematic: false key + no algorithms 6 jwt.verify(token, "", {}); 7 // safer: explicit acceptable algorithm

8 jwt.verify(token, key, {algorithms: ["RS256"]});

Both examples raise questions that code does not answer directly: Is access control enforced on every path? Is the vulnerable library invoked in an exploitable way? Such questions are posed over security properties, but must be answered through implementation in code. However, a single statement is too narrow, since the call to jwt.verify() does not reveal whether the key is valid or invalid. Likewise, common higher-level abstractions, such as a software bill of materials (SBOM), are too broad, as they only record the presence of jsonwebtoken, but not how it is used. Answering questions on security properties requires an intermediate level—security features—that gathers the code, configuration, and invocation context that together realize one security mechanism.

Consider current and upcoming security regulations, which increasingly mandate how software is built and maintained. The Cyber Resilience Act, for instance, obligates manufacturers to handle vulnerabilities throughout the intended lifespans of their products and to report exploited ones within days. An SBOM names the affected dependency, but not whether the vulnerable mechanism is invoked, how it is configured, or whether it is reachable, which determines whether the product is affected and what must be fixed. Consequently, engineers have to locate the security features in their products.

Locating security features, however, is hard. It requires maintaining an overview over the codebase, which is difficult, especially in large and long-lived software systems. Over time, functionality is added or modified, the software is reused through cloning, branching, or forking, and development teams change. When the required knowledge is not recorded, developers need to recover security features and their locations in code, which is laborious and error-prone, especially when developers are not familiar with the codebase [11]. They may miss security-critical code, leaving the system vulnerable to attacks.

We refer to this challenge as the security feature location problem: given a software system, determine which security features it implements and where the corresponding code is located. Solving this problem has direct security impact: it enables developers to assess vulnerability-specific conditions, such as those of CVE-2022-23540, check compliance with security policies and standards, and modify relevant code securely, avoiding unintended changes to security features while supporting deliberate migrations such as from quantum-vulnerable cryptography to post-quantum alternatives.

Figure

Figure 1: Code of the Traccar GPS tracking software; code responsible for permission checks is highlighted

In the age of AI, this challenge is amplified, since software is increasingly written by AI coding agents. Agents produce and change security-relevant code faster than it can be reviewed, and agents can easily remove parts or whole security features. The less code developers write, the more they depend on locating security features to assess their correctness and completeness. Yet, LLMs have a considerable potential to address this challenge. Agents could record security features as they are written. LLMs could also recognize security-relevant logic that no API signature reveals. Explicitly considering and representing security features is an open challenge for researchers and tool builders, especially while agentic practices are still forming and unstructured.

In the remainder, we introduce and discuss the security feature location problem. We describe the notion of security feature, drawing on work in software engineering [4], feature-oriented development [3], and secure software engineering [6, 8]. We then define the security feature location problem, illustrate its relevance with examples, and outline research challenges towards novel methods and tools to address this problem.