Skip to content

Author

Nuno Laranjeiro

2 papers indexed here

We haven’t gathered this author’s papers yet. Follow them and we’ll fetch their work.

Not the right person? Other researchers publish under this name.

Open access 2026

Testing the Robustness of IoT Messaging Middleware: A Case Study Using Rules and Large Language Models

The Internet of Things (IoT) allows the inter-connection of objects, equipped with specialized hardware and software, in complex networked systems designed to fulfill business goals. IoT is frequently supported by asynchronous messaging middleware, which must operate correctly even in the presence of invalid or malicious data. While prior research has examined the robustness of asynchronous applications, the assessment of the corresponding middleware is relatively scarce with known studies pointing it out as being mostly robust, at least when using traditional techniques. In this paper, we assess the robustness of messaging middleware (i.e., ActiveMQ Classic 6.1.5, RabbitMQ 4.0.5) designed for IoT systems and that implement typical IoT communication protocols (i.e., MQTT 3.1.1, STOMP 1.2, AMQP 1.0) in the following two ways: i) we generate test cases using traditional robustness testing techniques; and ii) we use three off-the-shelf large language models (i.e., gemma3_12b, qwen2.5-coder_32b, mistral-small3.2) to generate test cases by using three distinct prompts. Results show that message brokers are highly robust, whereas client libraries are the weakest link, failing more often with invalid inputs, typically by forwarding known invalid messages to lower layers. The models increased fault diversity, especially for security-oriented faults, but did not consistently outperform rule-based testing, matching it at an equal test budget and surpassing it in 3 of 6 scenarios only when combining multiple roles, i.e., using a larger cumulative number of tests.

Bruno Jesus, Fernando Aires, Nuno Laranjeiro · 0 citations
#artificial intelligence Preprint Sep 2026

Automated Vulnerability Injection in Smart Contracts Using Large Language Models

Assessing vulnerability detection tools for smart contracts requires datasets with known ground truth, yet such datasets are scarce and difficult to build by hand. We propose an approach that uses Large Language Models (LLMs) to automatically inject vulnerabilities into Solidity smart contracts, and demonstrate it in a case study targeting 49 vulnerability types from OpenSCV. Injected contracts are validated through a multi-step pipeline checking compilation, execution, business logic, and the presence of the intended vulnerability. Applied to real-world contracts from SmartBugs, LLMs generate nearly 1,000 candidate variants; after deduplication and validation, 32 confirmed vulnerable contracts spanning 25 vulnerability types survive (a 16.58% survival rate). Surviving contracts concentrate in structurally simpler targets and vulnerability types with localized syntactic patterns. We report practical challenges including LLMs'non-determinism and the difficulty of preserving contract semantics. We then use the validated contracts to assess three static analyzers, revealing complementary and incomplete coverage profiles. Results show that LLM-based vulnerability injection is feasible, while exposing key limitations in scalability and diversity.

Luca Migliaccio, Roberto Natella, N. Ivaki et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.