Resumen: This paper proposes a model-driven approach for the security modelling and analysis of blockchain based protocols. The modelling is built upon the definition of a UML profile, which is able to capture transaction-oriented information. The analysis is based on existing formal analysis tools. In particular, the paper considers the Tweetchain protocol, a recent proposal that leverages online social networks, i.e., Twitter, for extending blockchain to domains with small-value transactions, such as IoT. A specialized textual notation is added to the UML profile to capture features of this protocol. Furthermore, a model transformation is defined to generate a Tamarin model, from the UML models, via an intermediate well-known notation, i.e., the Alice &Bob; notation. Finally, Tamarin Prover is used to verify the model of the protocol against some security properties. This work extends a previous one, where the Tamarin formal models were generated by hand. A comparison on the analysis results, both under the functional and non-functional aspects, is reported here too. Idioma: Inglés DOI: 10.1007/s11416-022-00444-z Año: 2023 Publicado en: Journal of computer virology and hacking techniques 19, 1 (2023), 17-32 ISSN: 2263-8733 Factor impacto CITESCORE: 4.0 - Computer Science (miscellaneous) (Q2) - Computational Theory and Mathematics (Q2) - Hardware and Architecture (Q2) - Software (Q3)