
The paradigm shift towards Open Science has emphasized the need for Findable, Accessible, Interoperable, and Reusable (FAIR) data. However, for research to be truly reproducible, the software used to analyze this data must adhere to similar standards of quality. This paper investigates the structural and security characteristics of modern scientific software within the “move-the-algorithm-to-the-data” paradigm. We present a methodology and a microservice-based tool, developed within the RAISE project, an EU-funded initiative building privacy-preserving infrastructure for scientific data analysis, designed to assess the maintainability and security of research software before execution on sensitive datasets. By utilizing the RAISE infrastructure as a primary source of real-world research code, we conducted a large-scale empirical study of 253 Python-based scripts across diverse scientific domains. Our results reveal that scientific scripting is structurally homogeneous across disciplines, indicating that maintainability challenges are universal rather than domain specific. However, security exposure is strongly correlated with the application domain, scripts in the Health/Medicine sector exhibit a disproportionately high frequency of critical vulnerabilities. Furthermore, computational methodology acts as the primary driver of infrastructure performance, with Machine Learning tasks showing significantly higher resource demands and execution variability. These findings underscore the necessity of context-aware quality gates in distributed scientific infrastructures to ensure the security, reproducibility, and sustainability of Open Science.
Automated unit test generation using Large Language Models (LLMs) has shown promise for widely used programming languages such as Java and Python. It may further benefit legacy systems lacking a test base, and the investigation of less widespread legacy languages remains relevant as many companies still operate systems built on them. We develop a modular workflow combining static code analysis, multi-stage prompt engineering with business logic extraction, automated error analysis, and iterative test-fix cycles for legacy systems, evaluated by pass rates, coverage, and repair effectiveness. We evaluate our approach on four productive IBM Perl repositories (186 functions) and three CPAN distributions (139 functions) using two open-source LLMs: Llama-3.3-70B-Instruct and Mistral-Small-3.1-24B-Instruct-2503. A key methodological contribution is a defensive eval wrapper that records a crash in the code under test as a failed assertion rather than terminating the run. A git-diff mode enables selective test generation for changed functions, supporting incremental maintenance workflows. The larger model achieves initial pass rates of 66–82
Stack overflow vulnerabilities pose severe security threats, potentially leading to program crashes, data breaches, and significant financial losses. Attackers exploit these vulnerabilities to execute attack techniques such as Return-Oriented Programming (ROP), Jump-Oriented Programming (JOP), and Structured Exception Handler (SEH) exploitation. This paper introduces StackLoc, a CodeBERT-BiLSTM framework for detecting and localizing stack overflow vulnerabilities at the source code level. First, StackLoc generates differential (diff) files from vulnerable samples and their corresponding patched versions, enabling automated annotation and localization of vulnerable code fragments. Next, StackLoc employs a code-slicing mechanism that integrates focus windows and context windows to extract vulnerability-related semantic information, thereby providing more accurate contextual representations for feature learning. By integrating CodeBERT with a bidirectional long short-term memory (BiLSTM) network, StackLoc encodes code fragments into semantic vector representations, modeling bidirectional semantic dependencies and enhancing its ability to capture contextual structures and vulnerability-related patterns. As a result, StackLoc improves the performance of stack overflow vulnerability detection while maintaining high localization accuracy. To evaluate StackLoc, extensive experiments are conducted on the CWE-121 stack overflow vulnerability dataset, including parameter analysis, ablation studies, and comparisons with representative source code-based detection methods. The experimental results demonstrate that StackLoc achieves the best recall and F1-score among the compared baselines while maintaining competitive accuracy and precision. Furthermore, the window-based prediction and visualization framework of StackLoc supports vulnerability region highlighting and improves the interpretability of detection results.
Blockchain-based smart contracts are difficult to test because explicit expected outputs are often unavailable, creating an oracle problem. Metamorphic testing addresses this problem by checking necessary relations between related executions, but existing approaches often depend on manually designed, contract-specific metamorphic relations (MRs) and provide limited support for MR selection. This paper proposes MPSC, a parameter-driven metamorphic testing approach for smart contracts. MPSC uses an LLM-assisted, human-in-the-loop process to identify externally perturbable mutable parameters, constructs MRs from these parameters, and optimizes the MR set using mutation score and Jaccard-based MR difference. It also presents 38 structured MRs as illustrative examples and practical references for future smart-contract testing. MR violations are treated as candidate vulnerabilities, and only manually validated candidates are reported as confirmed vulnerabilities. Experiments on five Solidity contracts achieve an average per-MR mutation score of 83.70
Digital twins (DTs) are based on a set of DT properties that are the fundamental characteristics that determine how a DT represents, reflects, memorizes, and interacts with its physical counterpart within a specific usage context. The DT properties are the cornerstone to provide DTs with higher quality. Despite the increasing adoption of Multi-Agent Systems (MAS) in DT development, there is a lack of structured guidance on how agent design can support the development of these DT properties. This paper addresses this gap by proposing a catalogue of agent design patterns tailored to support the reflection, memorization and entanglement properties of a DT. Each pattern is aligned with established design patterns in MAS literature. Decision models are also introduced to guide practitioners in selecting appropriate patterns based on the essential aspects of each property. The proposed patterns and design models were applied in a real-world case study involving the design of a DT to manage study sessions for children with ADHD, illustrating their applicability in a case study. The results support the feasibility and utility of our catalogue of design patterns for the development of the selected DT properties that are relevant to provide DT with quality characteristics.