<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Enrico Frumento on Medium]]></title>
        <description><![CDATA[Stories by Enrico Frumento on Medium]]></description>
        <link>https://medium.com/@enrico-frumento?source=rss-22fff0e9dc6a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tOnCG4M2_X4zRZLo-sitaQ.jpeg</url>
            <title>Stories by Enrico Frumento on Medium</title>
            <link>https://medium.com/@enrico-frumento?source=rss-22fff0e9dc6a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:18:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@enrico-frumento/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Skill deterministiche, server MCP e modelli locali: un’architettura per sistemi custom con gli LLM]]></title>
            <link>https://enrico-frumento.medium.com/skill-deterministiche-server-mcp-e-modelli-locali-unarchitettura-per-sistemi-custom-con-gli-llm-3e0a0c2bf123?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e0a0c2bf123</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[architecture-skills]]></category>
            <category><![CDATA[mcp-client]]></category>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 15:24:03 GMT</pubDate>
            <atom:updated>2026-11-17T15:24:03.875Z</atom:updated>
            <content:encoded><![CDATA[<p>Enrico Frumento — Cybersecurity Research Lead — Cefriel</p><h3>Perché le skill da sole non bastano più</h3><p>A parte il prompting, istruire una LLM, cioè un grande modello linguistico come quelli che usiamo in chat, si può fare in fretta, usando le cosiddette skill. Le skill sono insiemi di istruzioni ripetibili, dati e codice. Sono oggetti relativamente complessi nei quali semantica e codice convivono, che vengono attivati esplicitamente (tramite il comando /) o implicitamente, in modi definiti nel cosiddetto frontmatter. Esiste ormai anche uno standard per creare skill supportate da vari LLM (<a href="https://agentskills.io/home">https://agentskills.io/home</a>). Creare una skill è oggi relativamente semplice; le stesse LLM aiutano.</p><p>La difficoltà, però, sta altrove: la scelta dell’architettura su cui appoggiare il sistema, quando i compiti diventano complessi, è cruciale. Una skill, in questi casi, rivela alcuni problemi. Il primo è che si tratti di un oggetto che, se generato da un LLM, presenta allucinazioni in compiti complessi, di solito difficilmente individuabili. Difficilmente individuabili perché una skill di solito lavora in autonomia fino alla consegna dell’elaborato finale. Inoltre, spesso le skill fanno eseguire alla LLM parti che non sono di ragionamento e che un codice (es. Python) eseguirebbe meglio e più velocemente. Inoltre, proprio la capacità di una skill di eseguire una procedura complessa rende opaco il modello di accesso ai dati della LLM. Spesso la skill accede ai dati sbagliati senza potersene rendere conto.</p><p>Le skill, da sole, quindi, a volte non bastano. Servono soluzioni alternative per rendere deterministiche le skill e alleggerirne il compito</p><p>In altre parole, una skill è un insieme di istruzioni e regole, scritte per essere riutilizzate, che il modello segue per svolgere un compito preciso. Se il compito è semplice, le istruzioni bastano. Se è complesso, alla skill servono due cose che le istruzioni non possono fornire: dati affidabili, che si trovano nei documenti e nelle basi dati dell’organizzazione, e un modo per trattarli che ne protegga la riservatezza.</p><p>L’obiettivo è avere skill complesse che non approssimano, cioè lavorano sui dati reali e non su una ricostruzione plausibile, accedono ai dati giusti e non a discrezione della LLM e mantengono un minimo di privacy. Per ottenerlo considero vincente un’architettura a due strati. Nello strato superiore l’LLM lavora con skill deterministiche, che portano le regole e il sapere dell’organizzazione. In quello inferiore un server MCP raccoglie i dati. MCP sta per Model Context Protocol, il protocollo che consente a un modello di collegarsi a fonti di dati e a strumenti esterni. Dietro il server operano poi vari modelli piccoli e locali, ciascuno con un ruolo diverso, che preparano i dati prima che arrivino al modello principale. Una pipeline complessa che dal data gathering, passa al cleaning o all’aggregazione con l’aiuto di LM locali prima di affidare al ragionamento incorporato dalla skill quello che rimane.</p><p>L’articolo segue questo ordine: prima i due strati, il percorso di una richiesta e un’interazione tipica, poi le skill, i modelli piccoli, l’accesso ai dati, gli utenti e la sicurezza, infine un esempio pubblico e ciò che tutto questo comporta per un’organizzazione. È scritto perché lo capisca anche chi non conosce ancora skill e MCP, senza togliere i dettagli tecnici a chi li usa già.</p><h3>Come lavorano insieme i due strati</h3><p>I due strati sono separati perché svolgono compiti diversi. L’LLM, con le sue skill, decide che cosa fare con le informazioni: applica la logica di business, la logica operativa e il sapere degli esperti. In altre parole la skill raccoglie e formalizza il sapere di alto livello. Il server MCP porta quelle informazioni all’LLM e alle sue skill, nella forma giusta e con le protezioni necessarie. La Figura 1 mostra l’insieme: in alto l’LLM con le skill e il codice che le accompagna, sotto il server MCP e, dietro di lui, i modelli locali che lavorano sulla base informativa, cioè sui documenti e sulle basi dati dell’organizzazione.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*tXV_g5yu62QkeEAfcBhiLQ.png" /><figcaption><em>Figura 1. Architettura a due strati: l’LLM con le skill e il codice, il server MCP e, dietro l’MCP, i modelli locali che lavorano sulla base informativa.</em></figcaption></figure><p>Per vedere come i pezzi si incastrano conviene seguire una richiesta. Prendo come base informativa un insieme di documenti e di basi dati.</p><ol><li>L’utente scrive una domanda nella chat di un client LLM, cioè del programma con cui conversa con il modello.</li><li>La skill applica la propria logica e chiede al server MCP i dati che le servono. Per farlo il server MCP deve essere progettato per spiegare alla LLM che tipo di servizi offre.</li><li>Il server li cerca nella base informativa e li fa pre-aggregare ai piccoli modelli che stanno dietro di lui: uno, per esempio, legge un documento scansionato, un altro cerca in più lingue.</li><li>Prima che i dati arrivino al modello, un privacy filter oscura le informazioni sensibili. Ad esempio usando il modello locale OPF, OpenAI Privacy Filter.</li><li>Il modello riceve soltanto il risultato elaborato dai modelli locali e risponde. Gli estratti estesi dei documenti, se servono all’utente, glieli mostra uno snippet HTML locale inserito dentro la chat per rendere visibili i dati all’utente ma non al modello LLM.</li></ol><p>La sequenza è semplificata, ma ne indica la logica di fondo: ogni passaggio toglie al modello principale un lavoro che non gli compete o un dato che non deve vedere. Un caso reale la rende più concreta.</p><h3>Un’interazione tipica, passo per passo</h3><p>Lo schema che segue è quello che ho implementato più volte, descritto in forma generale: una skill specializzata, un server MCP che dà accesso a più fonti e, in chiusura, una seconda skill dedicata all’analisi e alla visualizzazione dei dati. Immaginiamo un analista che chieda, in chat, quanti incidenti informatici di un certo tipo sono stati segnalati in un paese nell’ultimo anno e come si distribuiscono per settore. Le fonti sono diverse, pubbliche, ciascuna con il proprio formato.</p><ol><li>La skill classifica la richiesta. Distingue le domande su un singolo caso da quelle di tendenza, che chiedono conteggi nel tempo e distribuzioni. Questa è di tendenza. Il primo smistamento lo fa il codice; il modello interviene solo quando la formulazione è ambigua. Il modello LLM di fatto interpreta la richiesta narrativa dell’utente e la converte in richieste di dati per il server MCP.</li><li>La skill interroga il server MCP, che mette a disposizione strumenti per cercare nelle fonti per parola chiave, per paese o per settore. Eventualmente per dati vecchi il server MCP gestisce una sua cache locale.</li><li>Il codice MCP normalizza i record. I risultati arrivano con formati diversi: uno script li riporta a uno schema comune, con la data e ciò che essa indica, per esempio la pubblicazione della segnalazione o l’evento stesso, il tipo di dato e la provenienza, e un altro elimina i duplicati e applica i filtri per paese e periodo. Sono operazioni che non richiedono giudizio, e infatti non le svolge il modello.</li><li>Un controllo deterministico decide se la risposta è completa. Prima che la skill risponda, uno script verifica la copertura delle fonti rilevanti ed è l’unico a poter dichiarare conclusa la ricerca. Se una fonte non risponde, questo non equivale a «nessun risultato»: la risposta deve dichiarare che la copertura è incompleta.</li><li>La parte di codice della skill esegue operazioni di stato, verifica se quanto chiesto è stato ricevuto, gestisce un ledger locale alla skill, togliendo ancora una volta token al ragionamento dove non è necessario.</li><li>Il modello scrive la risposta. Qui serve il giudizio: sintetizzare i numeri e dichiarare che cosa si sta contando, perché una segnalazione pubblicata da una fonte non equivale a un fatto verificato. In fondo alla risposta compare una tabella con lo stato di ogni fonte, costruita sulle verifiche eseguite in quella sessione.</li><li>In chiusura, se serve, interviene la seconda skill. Quando l’analista chiede grafici o un cruscotto, questa skill prende i dati raccolti, propone un piano di lavoro, chiede l’approvazione umana nei passaggi sostanziali e consegna il risultato in un file separato, nel formato scelto dall’utente, non dentro la conversazione.</li></ol><p>Dall’esempio si ricavano tre indicazioni di carattere generale. La decisione sulla completezza non spetta al modello, perché è un controllo che il codice esegue in modo ripetibile. Una fonte che non risponde non è una fonte che non trova nulla, e la risposta deve dirlo. La visualizzazione è un passaggio distinto, richiesto solo quando serve.</p><p>L’esempio mette in luce il ruolo della skill, del codice che contiene e dei server MCP. In questo caso le fonti sono pubbliche: la protezione dei dati descritta più avanti pesa di più quando la base informativa contiene documenti riservati, ed è lì che il lavoro dei modelli locali diventa decisivo. Le sezioni che seguono spiegano i singoli pezzi, partendo dall’alto. Un vantaggio immediato di questa architettura è che il tutto viene visto dall’utente come una normale skill, gli scambi di dati sottostanti sono trasparenti, ed il risultato è ripetibile anche con casi complessi, e sostanzialmente molto meno soggetto ad allucinazioni.</p><h3>Primo strato: l’LLM con le skill</h3><p>Il primo strato è quello in cui il sistema capisce che cosa gli viene chiesto e che cosa deve fare. Lo rendono possibile le skill, che implementano la semantica, cioè il significato operativo del sistema: che cosa vuol dire, per quella organizzazione, rispondere correttamente a una richiesta. Nella semantica confluiscono quattro ingredienti. La logica di business raccoglie le regole dell’attività; la logica operativa, il modo in cui il lavoro si svolge; l’expertise umana è il sapere degli esperti, tradotto in regole che il modello può applicare; i prompt socratici sono istruzioni che guidano il ragionamento attraverso domande, invece di dettare la risposta.</p><p>Le skill di questo strato sono deterministiche, cioè meno aleatorie. Un modello linguistico, lasciato a sé, può rispondere in modi diversi a una stessa richiesta, e dove il lavoro non richiede giudizio, quella variabilità è soltanto un rischio. Il rimedio è la divisione del lavoro. Al modello spetta ciò che richiede interpretazione: leggere la richiesta, valutare gli indizi, formulare ipotesi, scrivere. Al codice spetta ciò che deve essere esatto e ripetibile, come un calcolo, un criterio di accettazione o un formato fisso. Il passaggio di consegne dal modello al codice si chiama handoff, e il codice fa parte della skill stessa, Di fatto viene eseguito da una disposable VM istanziata dalla LLM stessa. Ne derivano maggiore ripetibilità e meno token spesi, cioè meno unità di testo da far elaborare al modello.</p><p>Il caso di studio del mio articolo <a href="https://medium.com/@enrico-frumento/tecniche-di-prompting-a-verifica-deterministica-il-caso-studio-di-una-skill-di-geolocalizzazione-3f5619e06acb">Tecniche di prompting a verifica deterministica: il caso studio di una skill di geolocalizzazione per immagini</a> applica questo principio. Data una fotografia, la skill deve stabilire dove è stata scattata. Il modello guarda l’immagine, riconosce gli indizi, come insegne, architettura o paesaggio (e qui serve un modello LLM multimediale), e formula le ipotesi (e qui serve ragionamento). Il codice, però, calcola distanze e direzioni, stabilisce quale controllo conviene eseguire per primo, verifica se un’ipotesi può essere dichiarata «forte» e disegna il cruscotto finale con lo stesso layout. Tra le condizioni per dichiarare «forte» un luogo c’è il confronto con l’ipotesi concorrente più vicina; se non è superato, il risultato resta indeterminato, il che è preferibile a un falso positivo plausibile. Il codice, in altre parole, libera la LLM da compiti di “segreteria” ed organizzazione dei dati.</p><h3>Secondo strato: il server MCP e i modelli dietro di lui</h3><p>Il secondo strato ha il compito di portare al primo i dati giusti. Il server MCP raccoglie i dati dalle fonti e li consegna all’LLM e alle sue skill. Fin qui è lo schema consueto. La parte interessante è ciò che sta dietro il server: vari piccoli language model (LM), ciascuno con un ruolo diverso.</p><p>Li chiamo locali perché possono girare su un laptop o nell’infrastruttura dell’organizzazione (on-premises), usando strumenti pensati per eseguire i modelli in locale. Il loro compito è preparare i dati prima che arrivino al modello principale. Il modello principale, invece, può girare in locale o in remoto: l’architettura non dipende da questa scelta, anche se, come visto all’inizio, per le skill più complesse un LLM locale farebbe fatica.</p><p>Ogni modello risponde a una domanda diversa su come trovare, leggere e proteggere i dati. Ecco i principali.</p><ul><li>Gli embedding trasformano i testi in rappresentazioni numeriche, così da poterli cercare per somiglianza di significato e non solo per parole identiche (ad esempio usando un classico algoritmo k-nn o il recente <a href="https://imbalanced-learn.org/stable/references/generated/imblearn.under_sampling.EditedNearestNeighbours.html">e-nn</a>.</li><li>Lo stemming associa tra loro parole della stessa famiglia, riconducendole alla stessa radice: «fattura», «fatture» e «fatturazione», per esempio, vengono trovate insieme da una stessa ricerca.</li><li>I modelli multilingue consentono di interrogare i dati senza dipendere dalla lingua in cui sono scritti i documenti.</li><li>I modelli OCR, piccoli e usati solo se necessari, leggono il testo contenuto in immagini e in documenti scansionati.</li><li>Il privacy filter è un modello che riconosce i dati personali e le informazioni sensibili e li oscura prima che vengano consegnati al modello principale. Riduce il rischio e non lo elimina: per questo lavora insieme all’autenticazione e alla visualizzazione locale del dato, descritte più avanti.</li><li>Le ontologie locali, quando esistono, descrivono in modo strutturato i concetti di un dominio e le relazioni tra di essi. Non sono modelli, ma accompagnano i modelli.</li></ul><p>Il risultato di questo lavoro è ciò che arriva al modello principale. Non sono i documenti nella loro interezza, ma i dati già cercati, letti e ripuliti dai modelli locali. È un punto che riprendo nella sezione sulla sicurezza.</p><h3>Dove gira il server e come si protegge l’accesso</h3><p>Il server MCP può essere esposto in due modi, a seconda di dove si trovano i dati. Il primo è HTTPS con OAuth o authorization bearer (una specie di autenticazione via token): HTTPS protegge la comunicazione in rete e OAuth è il protocollo con cui un servizio concede a un altro l’accesso ai dati senza condividere la password. Serve quando il server deve essere raggiunto attraverso la rete. Il secondo è stdio, adatto quando la base dati è locale, cioè si trova sul computer dell’utente o in una risorsa condivisa della rete interna: il client avvia il server come processo sulla macchina dell’utente e dialoga con lui attraverso i canali standard di input e output.</p><p>In entrambi i casi, l’MCP deve essere sviluppato a dovere, con strati di autenticazione, poiché interagisce direttamente con i dati. L’esempio pubblico che descrivo più avanti usa un token bearer nel trasporto HTTP, oltre a stdio.</p><h3>Due tipi di utente</h3><p>Con i due strati e i modelli locali al loro posto, resta da vedere chi usa il sistema e per che cosa. Gli utenti sono di due tipi, con bisogni molto diversi.</p><p>Il primo è l’utente che interagisce con il modello in chat. Per lui i dati diventano «parlanti»: la parte discorsiva la mette il modello, ma i dati su cui lavora arrivano direttamente dalla fonte, tramite l’MCP, senza passare da fonti intermedie o eterogenee. Di norma, questo utente non ha bisogno di cruscotti; quando ne ha bisogno, li ottiene al momento della richiesta. Questo già cambia parecchio il modo di interagire con i dati: ci siamo abituati nel tempo ad usare dashboard complesse e molto articolate, ma tendenzialmente fisse. In questo modo i dati diventano parlanti, perché l’utente, con l’architettura che stiamo descrivendo, riesce a instaurare un’interazione conversazionale con le fonti dati.</p><p>Il secondo è l’utente lato dati, cioè chi si occupa della base dati. Con una console di amministrazione locale si consolida la base dati locale dell’MCP, cioè quella su cui il server opera.</p><h3>Sicurezza: il dato lo vede l’utente, non il modello</h3><p>Capita che l’utente abbia bisogno di visualizzare estratti ampi dei documenti, mentre il modello non debba visualizzarli. Quando i dati trattati dal server lo richiedono, nella chat del client LLM si inseriscono in locale degli snippet HTML, cioè piccoli blocchi di pagina web, che mostrano all’utente gli estratti estesi dei documenti senza passarli al modello. Il modello vede soltanto il risultato elaborato dai modelli locali dell’MCP. L’accorgimento è nato per ragioni pratiche: evitare di esporre al modello porzioni ampie dei documenti e funziona anche come una soluzione attenta alla privacy.</p><p>La Figura 2 riassume il flusso. L’utente e il modello dialogano in chat; il server MCP restituisce al modello solo i risultati dei modelli locali e, tramite uno snippet HTML, mostra all’utente gli estratti estesi. In basso, l’utente lato dati lavora sulla base informativa tramite la console di amministrazione.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*ztvFO6XPgOcWhzR7NzFQjQ.png" /><figcaption><em>Figura 2. Flusso dei dati: utente LLM, modello, server MCP e utente lato dati.</em></figcaption></figure><p>Questa misura non lavora da sola. Insieme al privacy filter e agli strati di autenticazione dell’MCP permette di mantenere un minimo di privacy: ogni protezione riduce l’esposizione dei dati e nessuna, da sola, la azzera.</p><h3>Un esempio pubblico: MCP-Calibre</h3><p>Un esempio di questo approccio è pubblico: il server <a href="https://github.com/jumpifequal/mcp-calibre">MCP-Calibre</a>, che ho reso disponibile insieme all’articolo su Medium citato sopra. Mostra la parte MCP dell’architettura applicata a una raccolta di documenti.</p><p>Calibre è un programma per gestire raccolte di e-book. MCP-Calibre è un server MCP in sola lettura che trasforma una raccolta di questo tipo in una base informativa interrogabile. Espone i metadati, la ricerca full-text (sul testo completo) con l’algoritmo di ordinamento BM25 su EPUB, PDF, MOBI e LIT, la lettura per capitolo o per pagina e le evidenziazioni.</p><p>Dal punto di vista tecnico, legge direttamente da SQLite, il database di Calibre, e per questo funziona anche con Calibre aperto. Per la ricerca usa un indice incrementale FTS5, il modulo di ricerca full-text di SQLite. Supporta la comunicazione tramite stdio e Streamable HTTP, cioè i due trasporti descritti sopra, con autenticazione bearer. È pensato prima di tutto per Windows, ma è multipiattaforma. Nel backend, incorpora modelli locali di stemming e di OCR.</p><h3>Cosa significa per un’organizzazione</h3><p>Per un’organizzazione, il problema tecnico è portare nel sistema il proprio sapere e collegarlo ai propri dati, senza perdere il controllo su ciò che il modello vede. L’LLM con le skill porta il sapere; il server MCP lo collega alla base informativa, composta da documenti e basi dati; il privacy filter, la visualizzazione locale del dato e l’autenticazione controllano che cosa arriva al modello e a chi.</p><p>Riprendendo l’obiettivo di partenza, a oggi è il modo più efficace che conosco per avere skill complesse che lavorano sui dati reali e mantengono un minimo di privacy.</p><p>Due limiti vanno dichiarati. Le protezioni descritte riducono l’esposizione dei dati e nessuna la azzera: per questo la configurazione del privacy filter è decisiva e va verificata sui propri documenti e nelle proprie lingue prima di affidargli dati sensibili. Inoltre, l’architettura non produce risultati da sola: richiede una base informativa da collegare e competenze scritte per il compito, e l’intero processo va seguito con altrettanta cura.</p><p>Conoscere l’architettura, però, non basta: bisogna saperla applicare in un contesto aziendale professionale. Ciascun elemento descritto qui, dall’autenticazione alla console di amministrazione, va progettato per il contesto in cui il sistema opera.</p><h3>Riferimenti</h3><p>• <a href="https://medium.com/@enrico-frumento/tecniche-di-prompting-a-verifica-deterministica-il-caso-studio-di-una-skill-di-geolocalizzazione-3f5619e06acb">Tecniche di prompting a verifica deterministica: il caso studio di una skill di geolocalizzazione per immagini</a></p><p>• <a href="https://github.com/jumpifequal/mcp-calibre">MCP-Calibre</a>, server MCP in sola lettura per Calibre, GitHub</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e0a0c2bf123" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deterministically Verified Prompting Techniques: A Case Study on an Image Geolocation Skill]]></title>
            <link>https://enrico-frumento.medium.com/deterministically-verified-prompting-techniques-a-case-study-on-an-image-geolocation-skill-c5d49eefe0ca?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5d49eefe0ca</guid>
            <category><![CDATA[writing-prompts]]></category>
            <category><![CDATA[ai-assisted-programming]]></category>
            <category><![CDATA[geoguessr]]></category>
            <category><![CDATA[prompt-crafting]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 15:10:18 GMT</pubDate>
            <atom:updated>2026-09-08T15:16:09.611Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article uses an image geolocation skill as a case study to illustrate a set of prompting techniques designed to make a language model’s behaviour verifiable, not merely plausible. The value of the skill lies not in its ability to guess a location, but in the principles that govern it: broad exploration of the hypothesis space before any convergence, a clean separation between what is observed and what is inferred, independent verification of every candidate, the explicit use of uncertainty as a legitimate state (not a failure to be concealed), and structural resistance to the cognitive shortcuts a language model tends to take when the plausible answer is easier than the verified one.</em></p><p><em>One principle runs through all the others: avoiding premature narrative lock-in. The narrative state — the story the model is building to explain the image — must never retroactively alter the evidentiary state. Observations already collected remain fixed: they are not rewritten to make the conclusion the model is heading towards more elegant or more convenient. Where language alone is not enough to guarantee this discipline, the skill enforces it with deterministic support written in Python, which checks, validates or rejects the model’s output rather than simply trusting what it claims to have done.</em></p><h3>1 Introduction</h3><p>I built a skill that takes a single photograph as input, stripped of EXIF (the geolocation data smartphones embed in photos), and has to deduce where it was taken. It is an LLM skill: instructions, Python scripts and verification rules that guide a general-purpose language model to behave like a professional geoguesser. It is called <strong>geo-osint-locator</strong> (link at the end of the article) and is freely downloadable. Geolocation here serves to illustrate prompting techniques and executable checks applied to the model’s behaviour<a href="#_ftn1">[1]</a>.</p><p>The reason I chose this problem is what it reveals about how an AI reasons when it lacks certain information, not geolocation itself. An LLM asked “where was this photo taken” tends to answer with the first plausible impression: it sees hills and cypress trees and answers “Tuscany”. It is aesthetic pattern recognition dressed up as reasoning, and it is exactly the kind of shortcut that, in a forensic context, produces false positives. The challenge, then, is to build a skill that, through suitable prompting techniques, operates repeatably, with deterministic checks, without treating a similarity suggested by training data as evidence.</p><p>This article follows a precise path: it first explains why geolocation is a severe test bed for an AI, then goes into detail on how I structured the skill to impose a deductive process rather than similarity-based recognition, then dwells on a more general problem — verifying that the model actually does what it claims to do — and finally shows the results on five representative cases, chosen specifically to stress different aspects of the pipeline.</p><h3>2 The Problem: Geolocating an Image Without Metadata</h3><p>Anyone who has played GeoGuessr knows: the game is a process of elimination, not instant recognition. You rule out one place after another by observing the angle of the sun, the colour of the asphalt, the shape of the kilometre markers, the direction of traffic, the vegetation at the roadside — and getting it wrong through surface similarity remains the most common error even among experienced players.</p><p>An LLM faces the same task with a structural disadvantage: it can produce a plausible answer without having verified it. Faced with a building with red-brick arches, it will find almost any city associated with red-brick arches in its training distribution plausible, and will propose it with the same syntactic confidence it would use to answer a question it actually knows the answer to. The problem is the absence of a mechanism that forces the model to distinguish between “this detail is compatible with many places” and “this detail exists in only one place” — not a lack of knowledge.</p><p>On top of this comes a conversational anchoring bias: if Lombardy was discussed earlier in the chat, the model tends to propose Lombardy again even for a new, ambiguous image, because that context is still present in the conversation, not because the image justifies it. Finally, an AI with no explicit stopping criterion tends to always answer, even when the evidence is insufficient: the option to declare uncertainty has to be made explicit in the process, without assuming the model will always choose it when it would be appropriate.</p><p>Similarity mistaken for identity, conversational anchoring, and reluctance to declare uncertainty: these are the three problems at the heart of the skill I built; geolocation is the case study that makes them visible and measurable. The rest of the article describes how each one translates into a concrete constraint in the pipeline.</p><h3>2.1 A Note on the Use of Python in Skills</h3><p>When people say a skill “contains Python”, it is tempting to imagine a clean separation: on one side the instructions written in the prompt, which the model interprets; on the other, the code, which is executed. For the LLM, however, the boundary lies elsewhere.</p><p>Natural-language instructions, Python fragments, YAML, JSON and tool results all reach the model as sequences of tokens. The LLM has learned to recognise these forms and can therefore produce syntactically plausible Python, but recognising code and continuing it correctly is not the same as executing it.</p><p>Execution happens when the external infrastructure steps in. If an output is interpreted as a tool call, or as code to be handed off to a runtime, it is processed by a component with its own rules: an interpreter, a virtual machine or a dedicated service. That is where Python acquires its operational semantics.</p><p>A simple example makes the difference clear. 2 + 2, for the LLM, is a sequence that can be recognised and manipulated linguistically. Passed to a Python interpreter, it instead becomes an operation whose result is determined by the rules of the language. That result is then returned to the model as new available information.</p><p>This distinction also changes how it is best to think about skills. Adding Python does not turn part of the LLM into an actual deterministic engine: it allows certain operations to be delegated to external components that can apply formally defined procedures, while the model continues to handle the interpretive and generative side. In practice, this means delegating to code the tasks that require determinism, leaving the LLM the interpretive part.</p><p>This is where the value of Python in a skill mainly lies. A rule entrusted only to the instructions remains something the model has to interpret and try to comply with. When the same rule can be translated into a check run by an external component, it becomes verifiable in a far more concrete way. Python is therefore one of the means by which a skill can move certain operations from probabilistic generation to procedures that are actually executed. Methodologically, this architecture lends itself to being read as a form of event-driven programming: the model produces requests or states, the runtime executes deterministic procedures and returns results that can trigger the next step.</p><h3>3 Skill Architecture</h3><p>I structured geo-osint-locator as a five-stage pipeline, each with a precise task and a verifiable exit criterion. The underlying rule, which runs through every stage, is that every geographic claim must rest on observed or actually verified evidence, never on a generic similarity. The figure below offers an overview before going into the details of each stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*obDADV2rWp-LkmPu" /><figcaption>Figure 1. Overview of the complete pipeline, from image input to final verdict.</figcaption></figure><p>The five stages are input and firewall, micro-forensics, scene fingerprint, cross-verification, and scoring and output. They form a path in which isolation rules, gathered clues and evaluated hypotheses feed the following steps. The simplified sequence diagram in Figure 2 shows the same flow from another angle: who talks to whom, and in what order, when the orchestrator (the model) delegates to the individual Python scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*QHaZMVIZ-2bZgNhb5LHIlg.png" /><figcaption>Figure 2. Simplified sequence diagram of the orchestration between the model, the Python tools and the verification cycle.</figcaption></figure><h3>3.1 The General Rule</h3><p>I quickly discarded the single-agent model that autonomously decides every step of the investigation: in practice it produces context overflow, narrative bias that rewrites facts to make them consistent with a conclusion already chosen, and performative compliance — that is, the appearance of a check that was never actually carried out. Figure 3 compares the two models: on the left, the mega-agent that orchestrates everything on its own, with no boundary between what it decides and what it executes; on the right, the hybrid v5 architecture, where Python deterministically routes file I/O, deduplication and state transitions, and the LLM’s semantic judgement is confined to a bounded, verifiable core. For complex workflows, the rule I have set myself is to hand mechanical routing to Python and bounded semantic judgement to the LLM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*q59DB0zIbNBHUwlyfw8J5A.png" /><figcaption>Figure 3. Comparison between conventional prompting and an architecture with deterministic verification.</figcaption></figure><p>The general rule for the structural compression of a skill is the one shown in Figure 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*1b-k8mVyOb_XGGVUqTgl0g.png" /><figcaption>Figure 4. The problem: context bloat in skills and how to resolve it through Python code.</figcaption></figure><p>The table below summarises the criteria I use to decide what to implement in Python and what to leave to the LLM’s judgement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ILzeCkr_Q86c-1NPv8xGcQ.png" /></figure><p>It is worth spelling out the security principle that governs this division of labour, because it is less obvious than it seems. I use the concept of the hostile host as a design analogy: I treat the language model as a source of untrusted input for the scripts that run the checks. An LLM can lie, hallucinate or simply get things wrong with no intention of doing so, but for a Python script receiving a file path, an inferred coordinate, or the claim “I have verified this clue”, the distinction between a good-faith error and malicious input is irrelevant: in both cases, the value received remains untrusted until the code has validated it independently.</p><p>Three operating rules for every helper in the skill follow from this, summarised in Figure 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*zfhMqhuVYj_3CApZx44wtQ.png" /><figcaption>Figure 5. The Hostile Host principle applied to Python code executed by an LLM inside a skill.</figcaption></figure><p>In other words:</p><ul><li><strong>Validate and Reject</strong>: Helpers must explicitly validate inputs/invariants and fail safely on anomalies. Never trust the LLM’s assertions.</li><li><strong>Proportionate DevSecOps</strong>: Apply canonical paths, timeouts and atomic writes EXCLUSIVELY in line with the helper’s actual risk surface.</li><li><strong>No Risky Primitives</strong>: Dynamic execution, shell interpolation and insecure deserialisation are strictly prohibited unless natively required.</li></ul><h3>3.2 Geographic Firewall and Micro-forensics</h3><p>The first stage does not yet look at the image: it enforces an isolation rule. Every new photograph is a case in its own right, and anything discussed earlier in the conversation (places already proposed, user corrections, geographic areas mentioned) becomes a FORBIDDEN_PRIOR, information that cannot contribute to any score, any must-have or any tie-break. The test I use to enforce this rule on the model is an explicit counterfactual: before proposing a candidate, the model must ask itself, “would I generate this hypothesis if this were the first image in the conversation?” If the answer is no, the candidate is CONTEXT_ANCHORED and must be discarded, however convincing it seems.</p><p>Only at this point does the skill start reading the image, and it does so by first looking for high-information-density regions: signs, plates, shop fronts, coats of arms, commemorative plaques, road codes. Each region is assigned a priority (VERY_HIGH, HIGH, MEDIUM, LOW), and priority regions are processed through three progressive zoom passes (a context crop, a tight crop, a maximum useful enlargement) before text is declared unreadable. This is where the skill’s first Python script comes in, image_geometry.py, which performs cropping, zooming and tiling deterministically: the code makes the requested cropping and enlargement operations exact. Interpreting the details thus obtained remains up to the model, and can still be wrong.</p><p>The skill also keeps three reading categories separate: the characters actually observed, the word inferred from those characters, and the search hypothesis built on the inferred word. Keeping them distinct prevents a plausible inference (“P?R?S” read as “PARIS”) from later being treated as if it were data observed with certainty — a transcription error of one’s own uncertainty that happens easily when the model is allowed to summarise its own intermediate steps on its own.</p><h3>3.3 Scene Fingerprint, CoVE and Killer Checks</h3><p>When micro-forensics does not produce a direct identifier (the most common case), the skill has to reconstruct the location’s identity from indirect clues. It then builds a set of 8–20 clues, classified into three families: natural (coastline, terrain, vegetation, light), infrastructural (road geometry, poles, signage, barriers) and architectural (massing, openings, materials, towers, staircases). Clues are ranked by geographic priority: a unique, legible identifier is worth more than a generic symbol, which is worth more than an unsupported stylistic similarity; from this follow a set of must-haves, whose absence or contradiction can on its own reject a candidate, and nice-to-haves, which reinforce but can never save an already-rejected candidate.</p><p>With this set of clues the skill generates the first candidates, and for each one opens a cross-verification phase, referred to here as CoVE (Chain of Verification), with 3–6 checks across different types of evidence: text reading, façade geometry, street layout, skyline, vegetation, comparison with maps or satellite imagery. Distinguishing types of clue, however, is not enough on its own to establish source independence: two crops of the same sign do not count as two pieces of evidence, they count as a single piece of evidence seen twice — a distinction I take directly from investigative practice, where corroboration only counts if the sources do not share the same origin. The same rule applies to spatial relationships between two elements: if I record that the rose window is above the portal and that it is also aligned with it, I am describing the same pair of objects from two different linguistic angles, not two independent channels.</p><p>For each candidate I then define one or two killer checks: a check designed to falsify that candidate, not to confirm it. The skill classifies every killer check into three specificity levels: UNIQUE, if it isolates the candidate from any serious alternative; DISCRIMINATIVE, if it is sufficient to rule out the closest competitor; GENERIC, if it is compatible with too many other places to count as decisive evidence. Only the first two levels can authorise a definitive identification. This is the point where I most often saw the model get it wrong in preliminary testing: it proposes details — such as a red-tiled roof or a generic coastline — as “decisive evidence” when they are in fact compatible with hundreds of other places. Forcing the model to explicitly label the specificity of every piece of evidence reduced this error in preliminary testing.</p><h3>3.4 The Guard Against Salient-Feature Dominance</h3><p>Even when killer checks are well calibrated, there remains an attention error distinct from all those described so far: the model tends to anchor on the most eye-catching detail in the frame — a bell tower, a statue, a monumental sign — and stop looking at the rest of the scene once it has found a convincing hook. The skill enforces that a salient element cannot on its own authorise STRONG when the rest of the image still contains verifiable geometry: skyline, street alignment, the layout of secondary buildings, terrain orientation. The candidate must explain the scene as a complete configuration, not as a collection of clues isolated around the single most photogenic element; if the salient element matches but the rest of the configuration remains unverified, the maximum permitted status is PLAUSIBLE, not STRONG.</p><p>This is, again, a general prompting technique rather than a domain-specific detail: a language model, like a distracted observer, tends to stop at the first convincing recognition. Requiring it to account for at least three independent levels of the scene, where visible, before authorising a confirmation, reduces the risk of false positives built on a single recognisable detail.</p><h3>3.5 The Guard Against False Precision</h3><p>A complementary problem concerns precision, not specificity: a language model naturally produces invented numbers in an authoritative tone even when it has no basis for calculating them. When scene geometry allows the camera position to be inferred — camera side, shooting direction, the ordering of foreground and background, the orientation of the coastline or road — the skill explicitly forbids inventing exact bearings, heights or coordinates from a single image. Instead it imposes coarse states: COMPATIBLE, INCOMPATIBLE, ND. If the geometry requires a physically impossible camera position for the proposed candidate, the state becomes INCOMPATIBLE and blocks STRONG, regardless of how many other clues appear to converge.</p><p>This too is a reusable prompting rule: when a model lacks the elements for a precise estimate, it is better to force it into a coarse but verifiable category than to let it produce a plausible but false number. False precision is hard to expose precisely because it looks more rigorous than an honest qualitative judgement.</p><p>Finally, two equally recurring evidence-reading errors remain: how to treat an absence rather than a presence, and how not to be guided by a location’s popularity rather than by the facts visible in the image.</p><h3>3.6 The Guard on Negative Evidence and Popularity Bias</h3><p>There is a logical error language models make with particular ease, distinct from the three described at the start: treating “I do not see X in the image” as equivalent to “X is absent”. It is a plausible but wrong logical leap whenever the photograph’s viewpoint might simply not include X. To block it, before using an absence as evidence against a candidate, the skill requires expected visibility to be classified into three states, as shown in Figure 6: if the element should be VISIBLE from that viewpoint and is not there, it is a genuine contradiction (MAJOR_MISMATCH); if it is POSSIBLY_OCCLUDED or OUT_OF_FRAME, the absence does not count as evidence in either direction (ND, no penalty). This is a prompting technique in its own right: explicitly separating “observed absence” from “absence explainable by scene geometry”, rather than letting the model make the same inference implicitly and inconsistently from one case to the next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*3pv293xh6fQOFGj10d5ddg.png" /><figcaption>Figure 6. Guard on negative evidence: expected visibility determines whether an absence counts as evidence.</figcaption></figure><p>A second bias, distinct but equally insidious, concerns popularity: a location that is heavily photographed, widely cited and heavily represented in training data tends to “win” in the model’s reasoning even when a less well-known location better explains the specific clues in the image. The rule I apply here, shown again in Figure 7, is direct: an abundance of search results is not geographic evidence. The score can never reward a candidate for being well documented online or familiar to the model; it can only reward it for physical evidence matching the observed details. A monumental candidate and an anonymous farmhouse compete on equal footing, if the latter has the right geometry and the former does not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*oi_-Ik1f2_-Yx6pgkJTvVw.png" /><figcaption>Figure 7. The anti-bias guard: an abundance of results online is not geographic evidence.</figcaption></figure><h3>3.7 Falsifying the Closest Competitor</h3><p>Once the cross-verification phase is complete, the most important step remains — and also the one with the greatest practical payoff: no candidate can become STRONG simply by accumulating compatible clues. Before declaring an identification, the model must identify the most plausible geographic competitor (a different location that would explain the same main clues equally well) and subject it to a differential test whose expected outcome diverges between the leading candidate and the competitor. Only if the competitor is rejected, or if no serious competitor exists after a targeted search, can the leader be promoted.</p><p>This flips an LLM’s default heuristic, which tends to ask “is this place compatible with the image?” instead of “is this place more compatible than any plausible alternative?” The first question can produce false positives when several similar places exist. The second makes the comparison with alternatives explicit, though without guaranteeing they have been correctly identified and evaluated; the skill enforces this comparison before assigning a final score.</p><h3>3.8 Scoring, the STRONG Threshold, and Discriminative Reordering</h3><p>At this point every surviving candidate has gone through micro-forensics, CoVE, killer checks and competitor falsification: the numerical score is the synthesis of this entire path, not a judgement in its own right. It runs from 0 to 100 and is made up of four blocks: critical must-haves are worth up to 50 points, independent cross-verification up to 25, killer checks up to 10, and secondary clues up to 15. A single critical contradiction (CRITICAL FAIL) rejects the candidate regardless of the overall score: a high score never compensates for a wrong structural detail.</p><p>Exact identification of a location is authorised only when all of the following conditions hold together: a score of at least 80, every critical must-have satisfied, at least two independent verification channels passed, at least one killer check with UNIQUE or DISCRIMINATIVE specificity, no unresolved structural contradiction, and the closest competitor rejected or absent. It is a deliberately strict threshold: I would rather the skill answer INDETERMINATE than produce a plausible false positive.</p><p>One final step, discriminative reordering, corrects a subtle error that the raw score alone does not resolve: a candidate supported by many generic clues (similar skyline, similar climate, similar vegetation) can outscore, on the raw score, a candidate supported by fewer but highly specific clues (a unique courtyard geometry, a partial inscription). Here too I preferred not to rely on the model’s implicit judgement of what counts as a “strong” clue, and instead turned the criterion into an explicit formula, summarised in Figure 8: for each positive clue, contribution = discrimination weight (from 1, generic, to 4, unique) multiplied by quality weight (from 0.3, uncertain, to 1.0, certain) multiplied by persistence weight (from 0.4 for a transient detail, such as a parked car or a weather condition, to 1.0 for a structural element such as façade geometry or street alignment, expected to remain unchanged for decades). A candidate’s discriminative density is the sum of these contributions divided by the number of clues used. The average limits the advantage gained purely from the number of clues, but depends on the weights assigned to each one. Before producing the final ranking, the skill explicitly checks whether the second or third candidate achieves a higher discriminative density than the first.</p><p>This is an example of a workflow design pattern I reused several times in this skill: when a judgement risks depending on the model’s aesthetic intuition, I prefer to break it down into explicit numerical factors and enforce the calculation. The formula makes the calculation auditable, while the quality of the assessment still depends on how the factors are assigned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*i3XChNSwZzaiJJS0iy-okQ.png" /><figcaption>Figure 8. Discriminative contribution formula and candidate reordering by evidence density.</figcaption></figure><h3>3.9 The Missing Link: The Active Verification Loop</h3><p>One case remains that the preceding rules do not resolve on their own: what happens when, on the first pass, no candidate reaches the STRONG threshold? The skill does not stop and does not guess: it enters a loop in which it selects the next test, runs it, updates the candidates’ status and repeats, until STRONG is reached or the available tests are exhausted. This is the rectangle labelled “loop” in the sequence diagram in Figure 2.</p><p>Test priority is defined by an explicit formula, shown in Figure 9:</p><p>Value = (elimination power × reliability × independence) / execution cost.</p><p>The model must calculate this ratio for every candidate test and choose the one with the highest value: a cheap but less decisive test can therefore take priority over a more costly, more discriminating one, if its ratio of estimated benefit to cost is higher. This is an orchestration rule rather than a geographic one: instead of asking the model “which check would you run now?” — a question that tends to produce a plausible but not necessarily optimal answer — the skill forces it to express the choice as an explicit cost-benefit ratio.</p><p>Only once the loop has genuinely been exhausted — not at the first difficulty — is a single clarifying question to the user permitted: never a generic question, but the question calculated to maximise the same expected information gain used in the loop, such as “do you remember whether the place was near the sea?” rather than a questionnaire.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*LPPnopLsKg8LyNTuQLWqWA.png" /><figcaption>Figure 9. Formula for selecting the next test in the active verification loop.</figcaption></figure><h3>4 Deterministic Validation and Preventing Performative Compliance</h3><p>All the architecture described so far assumes that the model genuinely follows these steps, and does not merely narrate them. This is where I ran into the most insidious problem in the whole project, and it has nothing to do with geography: it concerns the model’s reliability in reporting its own steps. An LLM left free to describe its own verification process in natural language tends to produce what I call performative compliance: it claims to have run a check, describes a plausible result, but in fact has done nothing. It is the textual equivalent of a checklist filled in out of habit rather than genuine verification.</p><p>The solution I adopted treats the model as untrusted input with respect to the execution layer, exactly as one would treat a user’s input in a web application exposed to the internet. Every pipeline state transition (end of micro-forensics, hypothesis generation, cross-verification, final scoring) is encoded by the model into a structured YAML file and passed to a dedicated Python script that validates it. If the YAML file is incomplete, does not conform to the schema, or violates one of the invariants the script can check, the script rejects it and the model has to redo it. Only once validation passes can the process move on to the next stage.</p><p>This mechanism works because it moves conformance and invariant checking, wherever it can be verified mechanically, from the model to the code. It does not make content true simply because it passes validation; it does, however, prevent the process from advancing when a formalised condition is not met. In practice, the skill contains around ten Python scripts (crop and zoom handling, distance and bounding-box calculation using the Haversine formula, querying Nominatim and Overpass for geographic corroboration, ranking clues by their eliminating power, rendering the final verdict<a href="#_ftn2">[2]</a>) which together act as a set of deterministic helpers internal to the skill: the model orchestrates, the code executes, validates and passes the results back to the model.</p><p>The use of these external tools also follows a precise rule, and it is another orchestration rule worth isolating: a Nominatim or Overpass match is an additional clue to be verified against the image, not an automatic confirmation. If the skill treated an API’s output as absolute truth, it would silently inherit every ambiguity or inaccuracy in the underlying geographic database; treating it instead as one piece of evidence among others forces it to go through the same physical corroboration cycle as any other clue.</p><p>For the most critical phases — those in which a candidate is definitively promoted or rejected — I added a SHA-256 digest of the results produced. Comparing it with the original digest makes it possible to detect a subsequent modification of the results, provided the reference is kept and the comparison is actually carried out. The guarantee therefore also depends on protecting the reference digest and on the rules that mandate the check.</p><p>The same principle also guides the final step, verdict rendering: the final dashboard must report the decisions already validated in the earlier phases. The content of individual cards changes from one case to another, while the layout stays fixed. To prevent the introduction of further judgements, the content must be bound to the validated state: the fixed layout alone does not provide this guarantee. To round out the picture, I included a dedicated regression test suite in the skill, run on every feature addition: a skill that grows without regression tests degrades silently, exactly like a codebase without automated tests.</p><h3>5 Table of Adopted Prompting Principles</h3><p><strong>Table of principles</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N3Omglf97pgSb2V_e5fg5Q.png" /></figure><h3>6 Experimental Results</h3><p>I tested the skill on five examples chosen specifically to stress different aspects of the pipeline just described: the presence or absence of direct identifiers, ambiguity between generic architectural class and specific instance, and handling uncertainty around historical material. The first four examples follow the same structure (challenge, evidence, output produced by the skill, result and commentary); the fifth gathers a series of tests on GeoGuessr. The tests were run with two systems, which produced results that were not entirely alike: <strong>ChatGPT Sol 5.6 medium and Claude Sonnet 5 medium</strong>. All screenshots refer to ChatGPT. The skill also has network access. I did not include Gemini in the tests because, at the time of testing, no equivalent support for the skills used here was available. The tests were conducted in September 2026.</p><h3>6.1 Example 1: Converging Clues and a High Score</h3><p><strong>Challenge: </strong>verify that, in the presence of strongly converging clues, the skill still runs the full verification cycle instead of accepting the first compatible candidate.</p><p><strong>Evidence: </strong>a photo of the parabolic curve on the old Monza racetrack (Figure 10). In this case there is no text, but the elements that allow the image to be identified are clear: a yellow stripe on the ground, a steep road camber, iron guardrails and the trees of a park around it. The image is recognisable, and this allows us to observe whether the AI follows the steps the skill imposes even when it can already formulate a plausible candidate. The test does not isolate the contribution of knowledge learned during training.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*kE0DDoLZKQEcW3pi9TL4Bg.png" /><figcaption>Figure 10. Input image, example 1.</figcaption></figure><p><strong>Output: </strong>the skill autonomously extracted and classified the set of clues shown in Figure 11, separating critical must-haves from secondary clues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*SyBdV8N9RxKMvSY5-krUNg.png" /><figcaption>Figure 11. Scene features extracted and labelled by the skill.</figcaption></figure><p><strong>Result and commentary: </strong>the final verdict (Figure 12) reaches a score of 98/100 with STRONG status and no surviving competitor; it therefore reports an outcome consistent with the stated criteria. Verifying the falsification cycle was run in full also requires examining the intermediate steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*M_E6gefAEiHfgOfR5m834w.png" /><figcaption>Figure 12. Final verdict dashboard, example 1.</figcaption></figure><h3>6.2 Example 2: No Textual Identifiers, Search Guided by the Scene Fingerprint</h3><p><strong>Challenge: </strong>verify the skill’s behaviour when the image contains no legible direct identifier.</p><p><strong>Evidence: </strong>a tree-lined avenue with no text apart from a generic sign at the back of the photo, and a bench (Figure 13). In this case the image could easily belong to any European park. I expect the AI to recognise the Italian road sign and the type of trees present. The autumn photo might differ from the many photos of the same corner of the park taken in other seasons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*GMUZ9TFpfs8S_qhHbmXzeA.png" /><figcaption>Figure 13. Input image, example 2.</figcaption></figure><p><strong>Output: </strong>the extracted scene fingerprint (Figure 14) nonetheless produced infrastructural clues (avenue geometry, tree layout, street furniture) sufficient to guide a targeted online search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*m5Tb0v7Zn13_0nVbnsgaEQ.png" /><figcaption>Figure 14. Infrastructural clues extracted by the skill.</figcaption></figure><p><strong>Result and commentary: </strong>the leader stays at PLAUSIBLE level, not STRONG (Figure 15): the skill explicitly declares the absence of an unambiguous match instead of forcing an unsupported confirmation. Despite this, the result is correct. The AI reaches this result by autonomously consulting numerous catalogues of photos of Italian parks and finds the image that shares the same characteristics as the one supplied.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*TAS8BXrrrjIi4V4GPwX_Jw.png" /><figcaption>Figure 15. Final verdict dashboard, example 2.</figcaption></figure><h3>6.3 Example 3: Ambiguity Between a Generic Architectural Class and a Specific Instance</h3><p><strong>Challenge: </strong>verify that the skill does not confuse belonging to a typological class (a Lombard cascina, or farmhouse) with identifying a specific building.</p><p><strong>Evidence: </strong>a courtyard with a cantilevered external staircase, an orange wing and a brick wing (Figure 16. In this case, signs, plates, text and the like are completely absent. What remains distinctive are the colours and style of the cascina, typical of Lombardy, and the presence of a few uncommon markers (the shape of the courtyard, the presence of the staircase).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*KESer8tWHeFdKD_9jRm0yQ.png" /><figcaption>Figure 16. Input image, example 3.</figcaption></figure><p><strong>Output: </strong>the model explicitly states the risk of a taxonomic shortcut before proceeding with verification. The model proposes the Lombard cascina style as an indication of class, but states that this is not enough to identify the property. The quoted output documents this distinction; on its own it does not allow the contribution of training data to be reconstructed.</p><p><em>The dangerous shortcut is calling this “a Lombardy cascina”: the architecture supports that class, but not a specific property. I’ll test the courtyard’s strongest fingerprints — the orange residential wing with cantilevered exterior stair — against actual venues.</em></p><p><strong>Result and commentary: </strong>the verdict (Figure 17) confirms a single STRONG candidate after falsifying two geometrically similar competitors, both rejected on architectural grounds. What is interesting is that, during the process, the skill accesses a site of photos of Lombard cascine used for parties and weddings and, after several attempts, identifies a photo of the same cascina, virtually identical, from which it extracts the same features: staircase, courtyard shape, colours, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*SE8NTAV6l7EZc6MhKJFFmQ.png" /><figcaption>Figure 17. Final verdict dashboard, example 3.</figcaption></figure><h3>6.4 Example 4: A Historical Photograph, an Altered Context, Reconstruction by Symmetry</h3><p><strong>Challenge: </strong>simultaneously stress the inference of missing details and the handling of uncertainty, on an image from the 1960s whose context has changed profoundly since.</p><p><strong>Evidence: </strong>a church with a bell tower with four clocks, a conical spire, an octagonal drum, and a baroque façade (Figure 18). I expect the skill to guide the AI to extract the features of the church in shot and check whether it understands that some elements are hidden (for example, this church has four clocks).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*OIaSxHMzbRtg_1XlbeoCKw.png" /><figcaption>Figure 18. Input image, example 4.</figcaption></figure><p><strong>Output: </strong>the AI forms the hypothesis of four clocks on the tower and starts looking for documented matches of this kind. The skill isolates the discriminating combination and proceeds by successive elimination of hypotheses. It starts from an initial hypothesis in Friuli, before moving on to Sardinia or Liguria:</p><p><em>The test has ruled out Porcia and Aviano: façades and towers do not match. The Friuli hypothesis is also losing weight; the masonry and elevation appear more compatible with central-southern or insular Italy.</em></p><p><strong>Result and commentary: </strong>the verification cycle runs out without reaching STRONG; the user’s hint (“Liguria, province of Imperia, perhaps the 1950s–1960s”) allows final convergence on Santa Maria Maddalena at San Lorenzo al Mare (Figure 19), with an explicit caveat regarding the tip of the bell tower, which differs from the one seen today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*8zBhzqMTOt-3mhtpFAasLQ.png" /><figcaption>Figure 19. Final verdict dashboard, example 4.</figcaption></figure><h3>6.5 Example 5: GeoGuessr Testing</h3><p>The most easily controlled tests for this article were run on the GeoGuessr platform, which offers some free challenges using images taken from Google Street View. Here, compared with the previous tests, the work is obviously made easier by the presence of numerous pieces of text. In this case, the skill manages to pinpoint the coordinates of the shot. Accuracy is on the order of a few tens of metres. The usefulness of the OpenStreetMap servers, which made it possible to match the street geometry, is also worth noting.</p><p>During the experiments, I started to wonder whether the LLM might have pre-emptively geolocated my requests to Italy, because it knows I am an Italian user. For this very reason, I ran some experiments on the GeoGuessr site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*d03wSX0YxiMKi8XXR82mrA.png" /><figcaption>Figure 20. An image taken from GeoGuessr.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*Gy9A2kxaEzqiJYqNrQjTKg.png" /><figcaption>Figure 21. Result of the skill’s assessment.</figcaption></figure><p>I tested twenty images taken from the game, for which the correct answer is known with certainty at the end of the round, and in this sample the skill identified all of them correctly.</p><h3>6.6 End-to-End Comparison Between Systems</h3><p>I ran the same experiments with ChatGPT Sol 5.6 medium and Claude Sonnet 5 medium. The comparison concerns the model, multimodal capabilities and available tools taken together. In the cases described, ChatGPT obtained better results; the screenshots shown refer to that system. With Claude I observed the following outcomes:</p><ul><li>Example 1 — identified on the first attempt</li><li>Example 2 — was unable to identify it in any way, even after I specified that the park was in Milan.</li><li>Example 3 — Claude correctly identified the cascina as belonging to a Piedmontese/Lombard context, but then asked for help, unable to proceed further. My hint was simply “Lombardy”. Even then it failed to find the right cascina. In the case observed, ChatGPT managed to proceed by associating the cascina with weddings and using a wedding-venue site.</li><li>Example 4 — in this case I helped Claude in the same way I helped ChatGPT, by telling it: “Liguria, province of Imperia, perhaps the 1950s–1960s”, but I did not get the result I had hoped for.</li><li>Example 5 — Claude managed to identify every example supplied</li></ul><p>These outcomes should be read alongside the execution conditions and the hints provided for each case.</p><p>There is also an important limitation, stated by Claude itself, which affected the results: <em>“I was unable to retrieve the actual image of the sanctuary (the Wikimedia Commons domains were not reachable from my fetch tool), so I could not carry out a direct pixel-by-pixel visual comparison”.</em></p><p>This point deserved closer examination. I therefore started a direct comparison between Claude and ChatGPT regarding their respective limitations, which brought out an interesting point whose degree of public documentation I am not aware of.</p><p>In this specific case, Claude described its own web_fetch tool as subject to a per-domain policy: commons.wikimedia.org was available only in cache-only mode. In this configuration, the tool could reuse content already returned by search or already cached, but could not perform a live retrieval of the requested URL. Claude itself specified that this was a client-side error, not a block returned by Wikimedia. Repeating the check with ChatGPT, by contrast, the system managed to search for and open the Wikimedia Commons pages needed for the comparison, including the photographic asset.</p><p>The difference observed concerns the outcome of retrieving resources in that session. The explanation that the toolchains applied different rules to the same domain is consistent with what Claude reported, but requires confirmation from the tools’ actual messages. It is not possible to infer the internal architecture of the two products from this test, nor to conclude that ChatGPT has arbitrary HTTP access or that Claude is always restricted on Wikimedia and other sites. In the case reported, Claude stated that it could not complete a verification step that ChatGPT did complete.</p><p>OpenAI’s public documentation makes this reading plausible, since it explicitly distinguishes between live web search and search based on indexed or cached content, available under different configurations. The restriction observed in Claude therefore belongs to a class of constraints that can also exist in other systems; what changes is the point at which the constraint is applied and which resources remain reachable in a given session. Claude’s proposed explanation of the design rationale for cache-only mode, however, remains a hypothesis: from the error message alone it is not possible to establish whether the cause is a security choice, a crawling choice, a media-handling choice, or something else.</p><p>To interpret the comparison, the pipeline’s points of failure need to be distinguished. If a candidate is not verified because the model reasons poorly, the problem lies in the inferential process; if it is not verified because the tool cannot retrieve the required source, the failure is instrumental. From the user’s point of view the outcome is the same either way: the pipeline does not reach the required evidence. For a skill like geo-osint-locator, which bases its verdict on independent verification of hypotheses, the actual availability of search and fetch tools therefore becomes an integral part of the measured performance. The results reported here do not, however, make it possible to isolate the respective contributions of reasoning, browsing and image analysis to the overall difference observed.</p><h3>7 Conclusions</h3><p>From this experiment, I take away three observations that go beyond the specific case of geolocation.</p><p>The first is that designing skills for an LLM borrows heavily from software engineering (pipelines, states, validation, regression testing), but applies it to material that behaves fundamentally differently from traditional code: a language model can fail by producing a plausible, wrong answer without generating an explicit error, and it is precisely this plausibility that makes the problem interesting from an engineering standpoint.</p><p>The second is that a DevSecOps mindset applies well even outside the strict perimeter of information security. Treating the model’s output as untrusted input, validating it with deterministic code, and logging a digest at critical stages: these are practices born to defend systems against external attackers, but here they serve to defend the reasoning process from a collaborator with no malicious intent, only a structural tendency to be overconfident. The rules described in this article fall into two groups. Some have a counterpart in a script that checks them mechanically, not merely in an instruction the model promises to follow. Others (for example, reading expected visibility, resisting popularity bias, the humility of treating an external match as a clue rather than proof, and not double-counting spatial relationships) remain instead entrusted to language: that is where performative compliance can still hide without any code gate noticing.</p><p>The third is that this kind of scaffolding (an orchestration layer sitting above the LLM) evolves alongside the underlying model, rather than replacing it. The current quality of models and tools makes automatically validated state diagrams and dedicated verification scripts for every transition practical. Designing skills this way, closer to systems engineering than to prompt writing, remains the most interesting takeaway from the whole experiment. From this perspective, a skill is a hybrid artefact: natural language, declarative structures, code and tool calls coexist within the same flow, but acquire operational semantics in different components. The boundary between prompting and programming thus becomes less a separation of syntax and more a separation of verifiable responsibilities.</p><p><strong>The skill is freely downloadable from GitHub: </strong><a href="https://github.com/jumpifequal/geo-osint-locator-skill"><strong>https://github.com/jumpifequal/geo-osint-locator-skill</strong></a></p><p><a href="#_ftnref1">[1]</a> <a href="https://simonw.substack.com/p/watching-o3-guess-a-photos-location">Watching o3 guess a photo’s location is surreal, dystopian and wildly entertaining</a></p><p><a href="#_ftnref2">[2]</a> The Haversine formula calculates the distance between two points on the Earth’s surface from latitude and longitude, accounting for the planet’s curvature. Nominatim is OpenStreetMap’s geocoding service, converting a place name into coordinates and vice versa. Overpass is the API that queries the OpenStreetMap database for specific elements (buildings, roads, points of interest) within a bounded area.</p><p><em>This paper was originally written by hand and formally revised via AI</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5d49eefe0ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tecniche di prompting a verifica deterministica: il caso studio di una skill di geolocalizzazione…]]></title>
            <link>https://enrico-frumento.medium.com/tecniche-di-prompting-a-verifica-deterministica-il-caso-studio-di-una-skill-di-geolocalizzazione-3f5619e06acb?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f5619e06acb</guid>
            <category><![CDATA[prompt-crafting]]></category>
            <category><![CDATA[writing-prompts]]></category>
            <category><![CDATA[geoguessr]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[ai-assisted-programming]]></category>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 13:36:59 GMT</pubDate>
            <atom:updated>2026-09-08T13:36:59.245Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tecniche di prompting a verifica deterministica: il caso studio di una skill di geolocalizzazione per immagini</h3><p><em>Questo articolo usa una skill di geolocalizzazione di immagini come caso di studio per illustrare un insieme di tecniche di prompting pensate per rendere il comportamento di un modello linguistico verificabile, non solo plausibile. Il valore della skill non sta nella capacità di indovinare un luogo, ma nei principi che la governano: un’esplorazione ampia dello spazio delle ipotesi prima di qualunque convergenza, la separazione netta tra ciò che viene osservato e ciò che viene inferito, la verifica indipendente di ogni candidato, l’uso esplicito dell’incertezza come stato legittimo (non come fallimento da nascondere) e una resistenza strutturale alle scorciatoie cognitive che un modello linguistico tende a prendere quando la risposta plausibile è più facile di quella verificata.</em></p><p><em>Un principio attraversa tutti gli altri: evitare il blocco narrativo prematuro. Lo stato narrativo, la storia che il modello sta costruendo per spiegare l’immagine, non può mai modificare retroattivamente lo stato dell’evidenza. Le osservazioni già raccolte restano fisse: non vengono riscritte per rendere più elegante o più comoda la conclusione a cui il modello sta arrivando. Dove il linguaggio da solo non basta a garantire questa disciplina, la skill la impone con un supporto deterministico scritto in Python, che controlla, valida o respinge l’output del modello invece di limitarsi a fidarsi di ciò che dichiara di aver fatto.</em></p><h3>1 Introduzione</h3><p>Ho costruito una skill che prende in ingresso una singola fotografia, priva di EXIF (i dati di geolocalizzazione che gli smartphone inseriscono negli scatti fotografici), e deve dedurre dove è stata scattata. Si tratta di una skill per LLM: istruzioni, script Python e regole di verifica che guidano un modello linguistico generico a comportarsi come un geoguesser professionista. Il nome è <strong>geo-osint-locator</strong> (link a fondo articolo) ed è liberamente scaricabile. La geolocalizzazione serve qui a illustrare tecniche di prompting e controlli eseguibili applicati al comportamento del modello<a href="#_ftn1">[1]</a>.</p><p>Il motivo per cui ho scelto questo problema è quello che rivela sul modo in cui un’AI ragiona quando le mancano informazioni certe, non la geolocalizzazione in sé. Un LLM a cui si chiede “dove è stata scattata questa foto” tende a rispondere con la prima impressione plausibile: vede colline e cipressi e risponde “Toscana”. È un riconoscimento di pattern estetici travestito da ragionamento ed è esattamente il tipo di scorciatoia che, in un contesto forense, produce falsi positivi. La sfida è quindi costruire una skill che, con tecniche di prompting adeguate, operi in modo ripetibile, con controlli deterministici, senza trattare come prova una somiglianza suggerita dai dati di addestramento.</p><p>Questo articolo segue un percorso preciso: prima spiega perché la geolocalizzazione è un banco di prova severo per un’AI, poi entra nel dettaglio di come ho strutturato la skill per imporre un processo deduttivo invece di un riconoscimento per somiglianza, quindi si sofferma su un problema più generale, verificare che il modello faccia davvero ciò che dichiara di fare, e infine mostra i risultati su cinque casi rappresentativi, scelti apposta perché mettono alla prova aspetti diversi della pipeline.</p><h3>2 Il problema: geolocalizzazione di un’immagine senza metadati</h3><p>Chi ha giocato a GeoGuessr lo sa: il gioco è un lavoro di eliminazione, non di riconoscimento immediato. Si esclude un posto dopo l’altro osservando l’inclinazione del sole, il colore dell’asfalto, la forma dei paletti chilometrici, il verso di guida, la vegetazione ai bordi della strada, e sbagliare per somiglianza superficiale resta l’errore più comune anche tra i giocatori esperti.</p><p>Un LLM affronta lo stesso compito con uno svantaggio strutturale: può produrre una risposta plausibile senza averla verificata. Davanti a un edificio con archi in mattoni rossi troverà plausibile quasi qualunque città associata ad archi in mattoni rossi nella sua distribuzione di addestramento, e la proporrà con la stessa sicurezza sintattica con cui risponderebbe a una domanda di cui conosce davvero la risposta. Il problema è l’assenza di un meccanismo che obblighi il modello a distinguere fra “questo dettaglio è compatibile con molti posti” e “questo dettaglio esiste in un solo posto”, non l’assenza di conoscenza.</p><p>A questo si aggiunge un bias di ancoraggio conversazionale: se in una chat precedente si è parlato di Lombardia, il modello tende a riproporre la Lombardia anche davanti a un’immagine nuova e ambigua, perché quel contesto è ancora presente nella conversazione, non perché l’immagine lo giustifichi. Infine, un’AI senza un criterio esplicito di arresto tende a rispondere sempre, anche quando l’evidenza è insufficiente: la possibilità di dichiarare incertezza va resa esplicita nel processo, senza presumere che il modello la scelga sempre quando sarebbe opportuno.</p><p>Somiglianza scambiata per identità, ancoraggio conversazionale, riluttanza a dichiarare incertezza: sono questi i tre problemi al centro della skill che ho costruito; la geolocalizzazione è il caso di studio che li rende visibili e misurabili. Il resto dell’articolo descrive come ciascuno si traduce in un vincolo concreto della pipeline.</p><h3>2.1 Una nota sull’uso di Python nelle Skill</h3><p>Quando si dice che una skill contiene Python, è facile immaginare una separazione netta: da una parte le istruzioni scritte nel prompt, che il modello interpreta; dall’altra il codice, che viene eseguito. Per l’LLM, però, il confine passa altrove.</p><p>Istruzioni in linguaggio naturale, frammenti di Python, YAML, JSON e risultati degli strumenti arrivano tutti al modello come sequenze di token. L’LLM ha imparato a riconoscere queste forme e può quindi produrre Python sintatticamente plausibile, ma riconoscere del codice e continuarlo correttamente non equivale a eseguirlo.</p><p>L’esecuzione avviene quando interviene l’infrastruttura esterna. Se un’uscita viene interpretata come una chiamata a uno strumento o come codice da affidare a un runtime, viene elaborata da un componente dotato di regole proprie: un interprete, una macchina virtuale o un servizio dedicato. È lì che Python acquista la sua semantica operativa.</p><p>Un esempio semplice chiarisce la differenza. 2 + 2, per l’LLM, è una sequenza che può essere riconosciuta e manipolata linguisticamente. Passata a un interprete Python, diventa invece un’operazione il cui risultato è determinato dalle regole del linguaggio. Quel risultato viene poi restituito al modello come nuova informazione disponibile.</p><p>Questa distinzione cambia anche il modo in cui conviene pensare alle skill. Inserire Python non trasforma una parte dell’LLM in un motore deterministico vero e proprio: permette di delegare alcune operazioni a componenti esterni che possono applicare procedure formalmente definite, mentre il modello continua a occuparsi della parte interpretativa e generativa. In pratica si tratta di delegare al codice i compiti che richiedono determinismo, lasciando all’LLM la parte interpretativa.</p><p>Il valore di Python in una skill sta soprattutto qui. Una regola affidata soltanto alle istruzioni resta qualcosa che il modello deve interpretare e cercare di rispettare. Quando la stessa regola può essere tradotta in un controllo eseguito da un componente esterno, diventa verificabile in modo molto più concreto. Python è quindi uno dei mezzi con cui una skill può spostare alcune operazioni dalla generazione probabilistica a procedure realmente eseguite. Metodologicamente, questa architettura si presta a essere letta come una forma di programmazione a eventi: il modello produce richieste o stati, il runtime esegue procedure deterministiche e restituisce risultati che possono innescare il passo successivo.</p><h3>3 Architettura della skill</h3><p>Ho strutturato geo-osint-locator come una pipeline a cinque stadi, ciascuno con un compito preciso e un criterio di uscita verificabile. La regola di fondo, che attraversa ogni stadio, è che ogni affermazione geografica deve poggiare su un’evidenza osservata o effettivamente verificata, mai su una somiglianza generica. La figura seguente ne offre una visione d’insieme, prima di entrare nel dettaglio di ciascun stadio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*AfXNv0Vv58jAuaMQVjGSlA.png" /><figcaption>Figura 1. Panoramica della pipeline completa, dall’ingresso dell’immagine al verdetto finale.</figcaption></figure><p>I cinque stadi sono ingresso e firewall, micro-forensics, impronta della scena, verifica incrociata, punteggio e output. Formano un percorso in cui le regole di isolamento, gli indizi raccolti e le ipotesi valutate alimentano i passaggi successivi. Il diagramma di sequenza semplificato in Figura 2 mostra lo stesso flusso da un’altra angolazione: chi parla con chi, e in quale ordine, quando l’orchestratore (il modello) delega ai singoli script Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*cMtf4_BCado37B3QSx66ug.png" /><figcaption>Figura 2. Diagramma di sequenza semplificato dell’orchestrazione fra modello, strumenti Python e ciclo di verifica.</figcaption></figure><h3>3.1 La regola generale</h3><p>Ho scartato presto il modello dell’agente unico che decide autonomamente ogni passaggio dell’indagine: nella pratica produce overflow di contesto, bias narrativo che riscrive i fatti per renderli coerenti con una conclusione già scelta, e compliance performativa, cioè l’apparenza di un controllo mai davvero eseguito. La Figura 3 mette a confronto i due modelli: a sinistra il mega-agente che orchestra tutto da solo, senza un confine fra ciò che decide e ciò che esegue; a destra l’architettura ibrida della v5, dove Python instrada in modo deterministico file I/O, deduplicazione e transizioni di stato, e il giudizio semantico dell’LLM resta confinato a un nucleo delimitato e verificabile. Per i workflow complessi, la regola che mi sono dato è affidare a Python il routing meccanico e all’LLM il giudizio semantico delimitato.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*6v7KJDxhG3vH71Ex_JNOKg.png" /><figcaption>Figura 3. Confronto fra prompting convenzionale e architettura con verifica deterministica.</figcaption></figure><p>La regola generale per la compressione strutturale di una skill è quella rappresentata in Figura 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6t8aqpW_PzaKvwKcCy542w.png" /><figcaption>Figura 4. Il problema: Context Bloat nelle skill e come risolverlo tramite codice Python.</figcaption></figure><p>La tabella seguente riassume i criteri con cui scelgo cosa implementare in Python e cosa lasciare al giudizio dell’LLM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BtTD2_5-zA3N4r798JCJIg.png" /></figure><p>Vale la pena esplicitare il principio di sicurezza che governa questa divisione dei compiti, perché è meno scontato di quanto sembri. Uso il concetto di hostile host come analogia progettuale: tratto il modello linguistico come una fonte di input non fidati per gli script che eseguono le verifiche. Un LLM può mentire, allucinare o semplicemente sbagliare senza alcuna intenzione di farlo, ma per uno script Python che riceve un percorso di file, una coordinata dedotta o l’affermazione “ho verificato questo indizio”, la distinzione fra errore in buona fede e input malevolo è irrilevante: in entrambi i casi il valore ricevuto resta non fidato finché il codice non lo ha validato autonomamente.</p><p>Ne derivano tre regole operative per ogni helper della skill, riassunte in Figura 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*LJLjMIns01rSm2LNn51BeQ.png" /><figcaption>Figura 5. Il principio di Hostile Host applicato al codice Python eseguito da un LLM dentro una skill.</figcaption></figure><p>In altre parole:</p><ul><li><strong>Validare e Respingere</strong>: Gli helper devono validare esplicitamente input/invarianti e fallire in modo sicuro sulle anomalie. Non fidarsi mai delle asserzioni dell’LLM.</li><li><strong>DevSecOps Proporzionato</strong>: Applicare path canonici, timeout e scritture atomiche ESCLUSIVAMENTE in base alla reale superficie di rischio dell’helper.</li><li><strong>Nessuna Primitiva Rischiosa</strong>: Esecuzione dinamica, interpolazione shell e deserializzazione insicura sono severamente vietate se non nativamente richieste.</li></ul><h3>3.2 Firewall geografico e micro-forensics</h3><p>Il primo stadio non guarda ancora l’immagine: impone una regola di isolamento. Ogni nuova fotografia è un caso a sé, e tutto ciò che è stato discusso in precedenza nella conversazione (luoghi già proposti, correzioni dell’utente, aree geografiche menzionate) diventa un FORBIDDEN_PRIOR, un’informazione che non può contribuire a nessun punteggio, a nessun must-have, a nessun tie-break. Il test che uso per far rispettare questa regola al modello è un controfattuale esplicito: prima di proporre un candidato, il modello deve chiedersi “genererei questa ipotesi se questa fosse la prima immagine della conversazione?”. Se la risposta è no, il candidato è CONTEXT_ANCHORED e va scartato, per quanto sembri convincente.</p><p>Solo a questo punto la skill comincia a leggere l’immagine, e lo fa cercando prima le regioni ad alta densità informativa: cartelli, targhe, insegne, stemmi, placche commemorative, codici stradali. Ogni regione riceve una priorità (VERY_HIGH, HIGH, MEDIUM, LOW) e le regioni prioritarie vengono elaborate con tre passaggi di zoom progressivo (un ritaglio di contesto, un ritaglio stretto, un ingrandimento massimo utile) prima di dichiarare un testo illeggibile. Qui entra in gioco il primo script Python della skill, image_geometry.py, che esegue crop, zoom e tiling in modo deterministico: il codice rende esatte le operazioni di ritaglio e ingrandimento richieste. L’interpretazione dei dettagli così ottenuti resta affidata al modello e può comunque essere errata.</p><p>La skill mantiene inoltre tre categorie di lettura separate: i caratteri effettivamente osservati, la parola dedotta da quei caratteri, e l’ipotesi di ricerca costruita sulla parola dedotta. Tenerle distinte evita che un’inferenza plausibile (“P?R?S” letto come “PARIS”) venga poi trattata come se fosse un dato osservato con certezza: un errore di trascrizione della propria incertezza che capita facilmente quando si lascia che il modello riassuma da solo i propri passaggi intermedi.</p><h3>3.3 Impronta della scena, CoVE e killer check</h3><p>Quando la micro-forensics non produce un identificatore diretto (il caso più comune), la skill deve ricostruire l’identità del luogo a partire da indizi indiretti. Costruisce allora un ventaglio di 8–20 indizi, classificati in tre famiglie: naturali (costa, rilievi, vegetazione, luce), infrastrutturali (geometria stradale, pali, segnaletica, barriere) e architettonici (volumi, aperture, materiali, torri, scale). Gli indizi sono ordinati per priorità geografica: un identificatore unico leggibile vale più di un simbolo generico, che vale più di una somiglianza stilistica non supportata; da qui derivano un insieme di must-have, la cui assenza o contraddizione può da sola respingere un candidato, e di nice-to-have, che rafforzano ma non possono mai salvare un candidato già respinto.</p><p>Con questo insieme di indizi la skill genera i primi candidati, e per ciascuno apre una fase di verifica incrociata, qui indicata come CoVE (Chain of Verification), con 3–6 controlli su diversi tipi di evidenza: lettura testuale, geometria della facciata, layout stradale, skyline, vegetazione, confronto con mappe o immagini satellitari. Distinguere i tipi di indizi non basta, però, a stabilire l’indipendenza delle fonti: due ritagli della stessa insegna non contano come due prove, contano come una prova sola vista due volte, una distinzione che riprendo direttamente dalla pratica investigativa, dove la corroborazione vale solo se le fonti non condividono la stessa origine. La stessa regola vale per le relazioni spaziali fra due elementi: se registro che il rosone è sopra il portale e che è anche allineato con esso, sto descrivendo la stessa coppia di oggetti da due angolazioni linguistiche diverse, non due canali indipendenti.</p><p>Per ogni candidato definisco poi uno o due killer check: una verifica pensata per falsificare quel candidato, non per confermarlo. La skill classifica ogni killer check in tre livelli di specificità: UNIQUE, se isola il candidato da qualsiasi alternativa seria; DISCRIMINATIVE, se è sufficiente a escludere il concorrente più prossimo; GENERIC, se è compatibile con troppi altri luoghi per contare come prova decisiva. Solo i primi due livelli possono autorizzare un’identificazione definitiva. È il punto in cui ho visto il modello sbagliare più spesso nei test preliminari: propone come “prova decisiva” dettagli, come un tetto in tegole rosse o una linea costiera generica, che in realtà sono compatibili con centinaia di altri luoghi. Costringere il modello a etichettare esplicitamente la specificità di ogni prova ha ridotto questo errore nei test preliminari.</p><h3>3.4 La guardia contro la dominanza del tratto saliente</h3><p>Anche quando i killer check sono ben calibrati, resta un errore di attenzione distinto da tutti quelli descritti finora: il modello tende ad ancorarsi al dettaglio più vistoso dell’inquadratura, come un campanile, una statua o un’insegna monumentale, e a smettere di guardare il resto della scena una volta trovato un aggancio convincente. La skill impone che un elemento saliente non possa da solo autorizzare STRONG quando il resto dell’immagine contiene ancora geometria verificabile: skyline, allineamento stradale, disposizione degli edifici secondari, orientamento del terreno. Il candidato deve spiegare la scena come configurazione completa, non come una collezione di indizi isolati attorno al singolo elemento più fotogenico; se l’elemento saliente combacia ma il resto della configurazione resta non verificato, lo stato massimo consentito è PLAUSIBLE, non STRONG.</p><p>È di nuovo una tecnica di prompting generale più che un dettaglio del dominio: un modello linguistico, come un osservatore distratto, tende a fermarsi al primo riconoscimento convincente. Obbligarlo a spiegare almeno tre livelli indipendenti della scena, quando sono visibili, prima di autorizzare una conferma, riduce il rischio di falsi positivi costruiti su un solo dettaglio riconoscibile.</p><h3>3.5 La guardia contro la falsa precisione</h3><p>Un problema complementare riguarda la precisione, non la specificità: un modello linguistico produce con naturalezza numeri inventati ma dal tono autorevole anche quando non ha alcuna base per calcolarli. Quando la geometria della scena permette di dedurre da dove è stata scattata la foto — lato della camera, direzione di ripresa, ordine tra primo piano e sfondo, orientamento della costa o della strada -, la skill vieta esplicitamente di inventare bearing esatti, altezze o coordinate da una singola immagine. Impone invece stati grezzi: COMPATIBLE, INCOMPATIBLE, ND. Se la geometria richiede una posizione della camera fisicamente impossibile per il candidato proposto, lo stato diventa INCOMPATIBLE e blocca STRONG, indipendentemente da quanti altri indizi sembrino convergere.</p><p>Anche questa è una regola di prompting riutilizzabile: quando un modello non ha gli elementi per una stima precisa, è meglio costringerlo a una categoria grossolana ma verificabile piuttosto che lasciargli produrre un numero plausibile e falso. La falsa precisione è difficile da smascherare proprio perché sembra più rigorosa di un giudizio qualitativo onesto.</p><p>Restano infine due errori di lettura dell’evidenza altrettanto ricorrenti: come trattare un’assenza invece di una presenza, e come non lasciarsi guidare dalla popolarità di un luogo invece che dai fatti visibili nell’immagine.</p><h3>3.6 La guardia sull’evidenza negativa e sul bias di popolarità</h3><p>C’è un errore logico che i modelli linguistici commettono con particolare naturalezza, ed è distinto dai tre descritti in apertura: trattare “non vedo X nell’immagine” come se fosse equivalente a “X è assente”. È un salto logico plausibile ma sbagliato ogni volta che il punto di vista della fotografia potrebbe semplicemente non includere X. Per bloccarlo, prima di usare un’assenza come prova contraria la skill obbliga a classificare la visibilità attesa in tre stati, come mostrato in Figura 6: se l’elemento dovrebbe essere VISIBLE da quel punto di vista e non c’è, è una contraddizione reale (MAJOR_MISMATCH); se è POSSIBLY_OCCLUDED o OUT_OF_FRAME, l’assenza non vale come prova in nessuna direzione (ND, nessuna penalità). È una tecnica di prompting a sé: separare esplicitamente “assenza osservata” da “assenza spiegabile dalla geometria della scena”, invece di lasciare che il modello faccia la stessa inferenza implicitamente e in modo incoerente da un caso all’altro.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*rFlLE9E-GQ8t7cEAB-KIqA.png" /><figcaption>Figura 6. Guardia sull’evidenza negativa: la visibilità attesa determina se un’assenza conta come prova.</figcaption></figure><p>Un secondo bias, distinto ma altrettanto insidioso, riguarda la popolarità: un luogo molto fotografato, molto citato e molto presente nei dati di addestramento tende a “vincere” nel ragionamento del modello anche quando un luogo meno noto spiega meglio gli indizi specifici dell’immagine. La regola che applico qui, ripresa in Figura 7, è diretta: l’abbondanza di risultati di ricerca non è evidenza geografica. Il punteggio non può mai premiare un candidato per essere ben documentato in rete o per essere familiare al modello; può premiarlo solo per evidenza fisica corrispondente ai dettagli osservati. Un candidato monumentale e una casa colonica anonima competono alla pari, se la seconda ha la geometria giusta e la prima no.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*5UB-IR1-xFShkxtbuBgV6w.png" /><figcaption>Figura 7. La guardia anti-bias: l’abbondanza di risultati in rete non è evidenza geografica.</figcaption></figure><h3>3.7 La falsificazione del concorrente più prossimo</h3><p>Superata la fase di verifica incrociata, resta il passaggio più importante e anche quello con il ritorno pratico maggiore: nessun candidato può diventare STRONG semplicemente accumulando indizi compatibili. Prima di dichiarare un’identificazione, il modello deve individuare il concorrente geografico più plausibile (un luogo diverso che spiegherebbe altrettanto bene gli stessi indizi principali) e sottoporlo a un test differenziale il cui esito atteso diverge tra il candidato leader e il concorrente. Solo se il concorrente viene respinto, o se non esiste un concorrente serio dopo una ricerca mirata, il leader può essere promosso.</p><p>Questo capovolge l’euristica di default di un LLM, che tende a chiedersi “questo posto è compatibile con l’immagine?” invece di “questo posto è più compatibile di qualsiasi alternativa plausibile?”. La prima domanda può produrre falsi positivi quando esistono più luoghi simili. La seconda rende esplicito il confronto con le alternative, pur senza garantire che siano state individuate e valutate correttamente; la skill impone questo confronto prima di assegnare un punteggio finale.</p><h3>3.8 Punteggio, soglia STRONG e riordino discriminativo</h3><p>A questo punto ogni candidato superstite ha attraversato micro-forensics, CoVE, killer check e falsificazione del concorrente: il punteggio numerico è la sintesi di tutto questo percorso, non un giudizio a sé. Va da 0 a 100 ed è composto da quattro blocchi: i must-have critici pesano fino a 50 punti, la verifica incrociata indipendente fino a 25, il killer check fino a 10, gli indizi accessori fino a 15. Una singola contraddizione critica (CRITICAL FAIL) respinge il candidato indipendentemente dal punteggio complessivo: un punteggio alto non compensa mai un dettaglio strutturale sbagliato.</p><p>L’identificazione esatta di un luogo è autorizzata solo quando tutte le seguenti condizioni sono vere insieme: punteggio almeno 80, ogni must-have critico superato, almeno due canali di verifica indipendenti passati, almeno un killer check con specificità UNIQUE o DISCRIMINATIVE, nessuna contraddizione strutturale irrisolta e il concorrente più prossimo respinto o assente. È una soglia deliberatamente rigida: preferisco che la skill risponda INDETERMINATE piuttosto che produrre un falso positivo plausibile.</p><p>Un ultimo passaggio, il riordino discriminativo, corregge un errore sottile che il punteggio grezzo da solo non risolve: un candidato sostenuto da molti indizi generici (skyline simile, clima simile, vegetazione simile) può superare in punteggio grezzo un candidato sostenuto da pochi indizi ma altamente specifici (una geometria unica di cortile, un’iscrizione parziale). Anche qui ho preferito non affidarmi al giudizio implicito del modello su cosa conti come indizio “forte”, e ho reso il criterio una formula esplicita, riassunta in Figura 8: per ogni indizio positivo, contributo = peso di discriminazione (da 1, generico, a 4, unico) moltiplicato per il peso di qualità (da 0.3, incerto, a 1.0, certo) moltiplicato per il peso di persistenza (da 0.4 per un dettaglio transitorio, come un’auto parcheggiata o una condizione meteo, a 1.0 per un elemento strutturale come la geometria di una facciata o l’allineamento di una strada, destinato a restare invariato per decenni). La densità discriminativa di un candidato è la somma di questi contributi divisa per il numero di indizi usati. La media limita il vantaggio dovuto al solo numero di indizi, ma dipende dai pesi assegnati a ciascuno. Prima di produrre la classifica finale, la skill verifica esplicitamente se il secondo o terzo candidato ottenga una densità discriminativa maggiore del primo.</p><p>È un esempio di progettazione del workflow che ho riutilizzato più volte in questa skill: quando un giudizio rischia di dipendere dall’intuizione estetica del modello, preferisco scomporlo in fattori numerici espliciti e imporre il calcolo. La formula rende controllabile il calcolo, mentre la qualità della valutazione dipende anche da come vengono assegnati i fattori.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*WJ9UKW0sB8MHZ-SCI1vB0A.png" /><figcaption>Figura 8. Formula di contributo discriminativo e riordino dei candidati per densità di evidenza.</figcaption></figure><h3>3.9 L’anello mancante: il loop di verifica attiva</h3><p>Resta un caso che le regole precedenti, da sole, non risolvono: cosa succede quando, al primo giro, nessun candidato raggiunge la soglia STRONG? La skill non si ferma e non indovina: entra in un ciclo in cui seleziona il test successivo, lo esegue, aggiorna lo stato dei candidati e ripete, fino a raggiungere STRONG oppure a esaurire i test disponibili. È questo il rettangolo etichettato “loop” nel diagramma di sequenza di Figura 2.</p><p>La priorità dei test è definita da una formula esplicita, mostrata in Figura 9:</p><p>Valore = (potere di eliminazione × affidabilità × indipendenza) / costo di esecuzione.</p><p>Il modello deve calcolare questo rapporto per ogni test candidato e scegliere quello con il valore più alto: un test economico ma poco decisivo può quindi avere priorità su uno più costoso e discriminante, se il suo rapporto fra beneficio stimato e costo è maggiore. È una regola di orchestrazione più che una regola geografica: invece di chiedere al modello “quale controllo faresti ora?”, domanda che tende a produrre una risposta plausibile ma non necessariamente ottimale, la skill lo obbliga a esprimere la scelta come rapporto costo-beneficio esplicito.</p><p>Solo quando il ciclo si è effettivamente esaurito — e non alla prima difficoltà — è ammessa un’unica domanda di chiarimento all’utente: mai una domanda generica, ma la domanda calcolata per massimizzare lo stesso guadagno informativo atteso usato nel loop, come “ricordi se il posto era vicino al mare?” invece di un questionario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*lvBbXL90bnpI8rEa80ulHw.png" /><figcaption>Figura 9. Formula di selezione del test successivo nel ciclo di verifica attiva.</figcaption></figure><h3>4 Validazione deterministica e prevenzione della compliance performativa</h3><p>Tutta l’architettura descritta finora presuppone che il modello segua davvero questi passaggi, e non si limiti a raccontarli. È qui che ho incontrato il problema più insidioso di tutto il progetto, e non riguarda la geografia: riguarda l’affidabilità del modello nel riportare i propri stessi passaggi. Un LLM lasciato libero di descrivere il proprio processo di verifica in linguaggio naturale tende a produrre quella che chiamo compliance performativa: dichiara di aver eseguito un controllo, descrive un risultato plausibile, ma nei fatti non ha eseguito nulla. È l’equivalente testuale di una checklist compilata per abitudine invece che per verifica reale.</p><p>La soluzione che ho adottato tratta il modello come un input non fidato rispetto al livello di esecuzione, esattamente come si tratterebbe l’input di un utente in un’applicazione web esposta a internet. Ogni transizione di stato della pipeline (fine della micro-forensics, generazione delle ipotesi, verifica incrociata, punteggio finale) viene codificata dal modello in un file YAML strutturato e passata a uno script Python dedicato che la valida. Se il file YAML è incompleto, non conforme allo schema o viola uno degli invarianti controllabili dallo script, lo script lo respinge e il modello deve rifarlo. Solo quando la validazione passa, il processo può proseguire allo stadio successivo.</p><p>Questo meccanismo funziona perché sposta dal modello al codice il controllo di conformità e degli invarianti che possono essere verificati meccanicamente. Non rende vero un contenuto solo perché supera la validazione; impedisce però che il processo avanzi quando una condizione formalizzata non è soddisfatta. In pratica, la skill contiene una decina di script Python (gestione di crop e zoom, calcolo di distanze e bounding box con la formula di Haversine, interrogazione di Nominatim e Overpass per i riscontri geografici, ranking degli indizi in base al loro potere di eliminazione, rendering del verdetto finale<a href="#_ftn2">[2]</a>) che insieme si comportano come un insieme di helper deterministici interni alla skill: il modello orchestra, il codice esegue, valida e passa i risultati al modello.</p><p>Anche l’uso di questi strumenti esterni segue una regola precisa, ed è un’altra regola di orchestrazione che vale la pena isolare: un riscontro di Nominatim o di Overpass è un indizio addizionale da verificare contro l’immagine, non una conferma automatica. Se la skill trattasse l’output di un’API come verità assoluta, erediterebbe silenziosamente ogni ambiguità o imprecisione del database geografico sottostante; trattandolo invece come un’evidenza fra le altre, lo costringe a passare per lo stesso ciclo di corroborazione fisica di qualunque altro indizio.</p><p>Per le fasi più critiche, quelle in cui un candidato viene promosso o respinto definitivamente, ho aggiunto un digest SHA-256 dei risultati prodotti. Il confronto con il digest originario consente di rilevare una modifica successiva dei risultati, purché il riferimento sia conservato e il confronto venga effettivamente eseguito. La garanzia dipende quindi anche dalla protezione del digest di riferimento e dalle regole che impongono la verifica.</p><p>Lo stesso principio guida anche l’ultimo passaggio, il rendering del verdetto: la dashboard finale deve riportare le decisioni già validate nelle fasi precedenti. Il contenuto delle singole card cambia da un caso all’altro, mentre il layout resta fisso. Per evitare l’introduzione di giudizi ulteriori, il contenuto deve essere vincolato allo stato validato: la sola fissità del layout non offre questa garanzia. A completare il quadro, ho incluso nella skill una suite di regression test dedicata, eseguita a ogni aggiunta di funzionalità: una skill che cresce senza test di regressione degrada silenziosamente, esattamente come un codebase senza test automatici.</p><h3>5 Tabella dei principi di prompting adottati</h3><p><strong>Tabella dei principi</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EciTb-f95O6-GIDGwby_AQ.png" /></figure><h3>6 Risultati sperimentali</h3><p>Ho verificato la skill su cinque esempi scelti apposta per mettere alla prova aspetti diversi della pipeline appena descritta: presenza o assenza di identificatori diretti, ambiguità di classe architettonica, gestione dell’incertezza su materiale storico. I primi quattro esempi seguono la stessa struttura (sfida, prova, output prodotto dalla skill, risultato e commento); il quinto raccoglie una serie di prove su GeoGuessr. I test sono stati eseguiti con due sistemi, che hanno prodotto risultati non del tutto analoghi: <strong>ChatGPT Sol 5.6 medium e Claude Sonnet 5 medium</strong>. Tutti gli screenshot si riferiscono a ChatGPT. La skill ha inoltre accesso alla rete. Non ho incluso Gemini nei test perché, al momento delle prove, non era disponibile un supporto equivalente alle skill usate qui. I test sono stati condotti a settembre 2026.</p><h3>6.1 Esempio 1: indizi convergenti e punteggio elevato</h3><p><strong>Sfida: </strong>verificare che, in presenza di indizi fortemente convergenti, la skill esegua comunque il ciclo completo di verifica invece di accettare il primo candidato compatibile.</p><p><strong>Prova: </strong>foto della curva parabolica del vecchio circuito dell’autodromo di Monza (Figura 10). In questo caso mancano scritte, ma gli elementi che permettono di identificare l’immagine sono chiari: striscia gialla a terra, forte inclinazione della strada, guardrail in ferro e alberi di un parco intorno. L’immagine è riconoscibile e consente quindi di osservare se l’AI esegue i passi imposti dalla skill anche quando può già formulare un candidato plausibile. Il test non isola il contributo delle conoscenze apprese durante l’addestramento.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*kE0DDoLZKQEcW3pi9TL4Bg.png" /><figcaption>Figura 10. Immagine di input, esempio 1.</figcaption></figure><p><strong>Output: </strong>la skill ha estratto e classificato autonomamente l’insieme di indizi mostrato in Figura 11, separando must-have critici da indizi accessori.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*SyBdV8N9RxKMvSY5-krUNg.png" /><figcaption>Figura 11. Caratteristiche della scena estratte ed etichettate dalla skill.</figcaption></figure><p><strong>Risultato e commento: </strong>il verdetto finale (Figura 12) raggiunge un punteggio di 98/100 con stato STRONG e nessun concorrente sopravvissuto; riporta quindi un esito coerente con i criteri dichiarati. Per verificare l’esecuzione completa del ciclo di falsificazione occorre esaminare anche i passaggi intermedi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*M_E6gefAEiHfgOfR5m834w.png" /><figcaption>Figura 12. Dashboard di verdetto finale, esempio 1.</figcaption></figure><h3>6.2 Esempio 2: assenza di identificatori testuali, ricerca guidata dall’impronta di scena</h3><p><strong>Sfida: </strong>verificare il comportamento della skill quando l’immagine non contiene alcun identificatore diretto leggibile.</p><p><strong>Prova: </strong>viale alberato privo di scritte, a parte un cartello generico, in fondo alla foto, e una panchina (Figura 13). In questo caso l’immagine potrebbe tranquillamente appartenere a qualsiasi parco europeo. Mi aspetto che l’AI riconosca il cartello stradale italiano e il tipo di alberi presenti. La foto autunnale potrebbe differire dalle numerose foto dello stesso angolo del parco, in altre stagioni.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*GMUZ9TFpfs8S_qhHbmXzeA.png" /><figcaption>Figura 13. Immagine di input, esempio 2.</figcaption></figure><p><strong>Output: </strong>l’impronta di scena estratta (Figura 14) ha comunque prodotto indizi infrastrutturali (geometria del viale, disposizione degli alberi, arredo urbano) sufficienti a orientare una ricerca mirata in rete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*m5Tb0v7Zn13_0nVbnsgaEQ.png" /><figcaption>Figura 14. Indizi infrastrutturali estratti dalla skill.</figcaption></figure><p><strong>Risultato e commento: </strong>il leader resta a livello PLAUSIBLE, non STRONG (Figura 15): la skill dichiara esplicitamente l’assenza di un riscontro univoco invece di forzare una conferma non supportata. Nonostante ciò, il risultato è corretto. L’AI arriva a questo risultato consultando autonomamente numerosi cataloghi di foto di parchi italiani e trova l’immagine che contiene le stesse caratteristiche di quella fornita.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*TAS8BXrrrjIi4V4GPwX_Jw.png" /><figcaption>Figura 15. Dashboard di verdetto finale, esempio 2.</figcaption></figure><h3>6.3 Esempio 3: ambiguità di classe architettonica generica e istanza specifica</h3><p><strong>Sfida: </strong>verificare che la skill non confonda l’appartenenza a una classe tipologica (una cascina lombarda) con l’identificazione di un edificio specifico.</p><p><strong>Prova: </strong>cortile con scala esterna a sbalzo, ala arancione e ala in mattoni (Figura 16). In questo caso mancano completamente indicazioni, cartelli, scritte ecc. Ciò che rimane caratteristico sono i colori e lo stile della cascina, tipicamente lombardi, e la presenza di alcuni marcatori poco comuni (la forma del cortile, la presenza della scala).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*KESer8tWHeFdKD_9jRm0yQ.png" /><figcaption>Figura 16. Immagine di input, esempio 3.</figcaption></figure><p><strong>Output: </strong>il modello dichiara esplicitamente il rischio di scorciatoia tassonomica prima di procedere alla verifica. Il modello propone lo stile delle cascine lombarde come indicazione di classe, ma dichiara che non basta a identificare la proprietà. L’output citato documenta questa distinzione; da solo non permette di ricostruire il contributo dei dati di addestramento.</p><p><em>The dangerous shortcut is calling this “a Lombardy cascina”: the architecture supports that class, but not a specific property. I’ll test the courtyard’s strongest fingerprints — the orange residential wing with cantilevered exterior stair — against actual venues.</em></p><p><strong>Risultato e commento: </strong>il verdetto (Figura 17) conferma un unico candidato STRONG dopo la falsificazione di due concorrenti geometricamente simili, entrambi respinti su base architettonica. La cosa interessante è che, durante il processo, la skill accede a un sito di foto di cascine lombarde usate per feste e matrimoni e, dopo alcuni tentativi, identifica una foto della stessa cascina, praticamente identica, dalla quale estrae le stesse caratteristiche: scala, forma del cortile, colori, ecc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*SE8NTAV6l7EZc6MhKJFFmQ.png" /><figcaption>Figura 17. Dashboard di verdetto finale, esempio 3.</figcaption></figure><h3>6.4 Esempio 4: fotografia storica, contesto alterato, ricostruzione per simmetria</h3><p><strong>Sfida: </strong>mettere sotto pressione contemporaneamente l’inferenza di dettagli mancanti e la gestione dell’incertezza, su un’immagine degli anni Sessanta il cui contesto è oggi profondamente cambiato.</p><p><strong>Prova: </strong>chiesa con campanile a quattro orologi, cuspide conica, tamburo ottagonale, facciata barocca (Figura 18). Mi aspetto che la skill guidi l’AI ad estrarre le caratteristiche della chiesa inquadrata e verificare se capisce che alcuni elementi sono nascosti (ad esempio gli orologi di questa chiesa sono quattro).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*OIaSxHMzbRtg_1XlbeoCKw.png" /><figcaption>Figura 18. Immagine di input, esempio 4.</figcaption></figure><p><strong>Output: </strong>l’AI formula l’ipotesi di quattro orologi sulla torre e inizia a cercare riscontri documentati di questo tipo. La skill isola la combinazione discriminante e procede per eliminazione di ipotesi per approssimazioni successive. Parte da un’iniziale ipotesi nel Friuli, per passare poi alla Sardegna o alla Liguria:</p><p><em>Il test ha escluso Porcia e Aviano: facciate e torri non coincidono. Anche l’ipotesi Friuli sta perdendo peso; la muratura e il prospetto sembrano più compatibili con l’Italia centro-meridionale o insulare.</em></p><p><strong>Risultato e commento: </strong>il ciclo di verifica si esaurisce senza raggiungere STRONG; il suggerimento dell’utente (“Liguria, provincia di Imperia, anni Cinquanta-Sessanta forse”) permette la convergenza finale su Santa Maria Maddalena a San Lorenzo al Mare (Figura 19), con riserva esplicita sulla terminazione del campanile, diversa da quella odierna.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*8zBhzqMTOt-3mhtpFAasLQ.png" /><figcaption>Figura 19. Dashboard di verdetto finale, esempio 4.</figcaption></figure><h3>6.5 Esempio 5: test su GeoGuessr</h3><p>I test più controllabili per questo articolo li ho fatti sul portale GeoGuessr, che offre alcune sfide gratuite con immagini tratte da Google Street View. Qui il lavoro, rispetto ai test precedenti, è ovviamente facilitato dalla presenza di numerose scritte. In questo caso, la skill riesce a individuare le coordinate dello scatto. La precisione è dell’ordine di una decina di metri. Interessante anche l’utilità dei server di OpenStreetMap, che hanno permesso di fare il match con la geometria stradale.</p><p>Durante gli esperimenti mi è venuto il dubbio che l’LLM abbia potuto geolocalizzare preventivamente le mie richieste in Italia, perché sa che sono un utente italiano. Proprio per questo ho fatto alcuni esperimenti sul sito GeoGuessr.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*d03wSX0YxiMKi8XXR82mrA.png" /><figcaption>Figura 20. Un’immagine presa da GeoGuessr</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*Gy9A2kxaEzqiJYqNrQjTKg.png" /><figcaption>Figura 21. Risultato della valutazione da parte della skill</figcaption></figure><p>Ho testato venti immagini prelevate dal gioco, in cui la risposta corretta è nota con certezza a fine round e, in questo campione, la skill le ha identificate tutte correttamente.</p><h3>6.6 Confronto end-to-end fra sistemi</h3><p>Ho condotto gli stessi esperimenti con ChatGPT Sol 5.6 medium e Claude Sonnet 5 medium. Il confronto riguarda modello, capacità multimodali e strumenti disponibili nel loro insieme. Nei casi descritti ChatGPT ha ottenuto risultati migliori; gli screenshot riportati si riferiscono a questo sistema. Con Claude ho osservato i seguenti esiti:</p><ul><li>Esempio 1 — individuato al primo colpo</li><li>Esempio 2 — non è riuscito a individuarlo in alcun modo, anche se ho specificato che il parco era a Milano.</li><li>Esempio 3 — Claude ha correttamente individuato la cascina come appartenente al contesto piemontese/lombardo, ma poi ha chiesto aiuto non riuscendo a proseguire. Il mio suggerimento è stato un semplice “Lombardia”. Neanche in questo caso però è riuscito a trovare la cascina giusta. Nel caso osservato, ChatGPT è riuscito a proseguire associando la cascina ai matrimoni e usando un sito di location per matrimoni.</li><li>Esempio 4 — in questo caso ho aiutato Claude come ho fatto con ChatGPT dicendogli: “Liguria, provincia di Imperia, anni Cinquanta-Sessanta forse”, ma non ho ottenuto il risultato sperato.</li><li>Esempio 5 — Claude è riuscito ad individuare ogni esempio fornito</li></ul><p>Gli esiti vanno letti insieme alle condizioni di esecuzione e agli aiuti riportati per ciascun caso.</p><p>Inoltre, c’è un limite importante, dichiarato da Claude stesso, che ha inciso sui risultati: <em>“non sono riuscito a recuperare l’immagine reale del santuario (i domini Wikimedia Commons non sono raggiungibili dal mio tool di fetch), quindi non ho potuto fare il confronto visivo pixel-per-pixel diretto”.</em></p><p>Questo elemento meritava un approfondimento. Ho quindi avviato un confronto diretto fra Claude e ChatGPT sulle rispettive limitazioni, da cui è emerso un elemento interessante, di cui non conosco il grado di documentazione pubblica.</p><p>Nel caso specifico, Claude ha descritto il proprio tool web_fetch come soggetto a una policy per dominio: commons.wikimedia.org risultava disponibile solo in modalità cache-only. In questa configurazione il tool poteva riutilizzare contenuti già passati dalla ricerca o presenti in cache, ma non effettuare il recupero live dell’URL richiesto. Lo stesso Claude ha precisato che si trattava di un errore lato client, non di un blocco restituito da Wikimedia. Ripetendo il controllo con ChatGPT, invece, il sistema è riuscito a cercare e ad aprire le pagine di Wikimedia Commons necessarie al confronto, compresa la risorsa fotografica.</p><p>La differenza osservata riguarda l’esito del recupero delle risorse in quella sessione. La spiegazione secondo cui le toolchain applicavano regole diverse allo stesso dominio è compatibile con quanto riportato da Claude, ma richiede riscontro nei messaggi effettivi degli strumenti. Non è possibile dedurre da questo test l’architettura interna dei due prodotti, né concludere che ChatGPT disponga di accesso HTTP arbitrario o che Claude sia sempre limitato su Wikimedia e altri siti. Nel caso riportato, Claude ha dichiarato di non poter completare un passaggio di verifica che ChatGPT ha eseguito.</p><p>La documentazione pubblica di OpenAI rende plausibile questa lettura perché distingue esplicitamente tra ricerca web live e ricerca basata su contenuti indicizzati o memorizzati in cache, disponibili in configurazioni diverse. La restrizione osservata in Claude appartiene quindi a una classe di vincoli che può esistere anche in altri sistemi; cambia il punto in cui il vincolo viene applicato e quali risorse restano raggiungibili in una determinata sessione. La spiegazione proposta da Claude sul motivo progettuale della modalità cache-only, invece, resta un’ipotesi: dal solo messaggio di errore non si può stabilire se la causa sia una scelta di sicurezza, di crawling, di gestione dei media o altro.</p><p>Per interpretare il confronto occorre distinguere i punti di arresto della pipeline. Se un candidato non viene verificato perché il modello ragiona male, il problema è nel processo inferenziale; se non viene verificato perché il tool non può recuperare la fonte necessaria, il fallimento è strumentale. Dal punto di vista dell’utente l’esito resta comunque lo stesso: la pipeline non arriva alla prova richiesta. Per una skill come geo-osint-locator, che basa il proprio verdetto sulla verifica indipendente delle ipotesi, la disponibilità effettiva degli strumenti di ricerca e fetch diventa quindi parte integrante della prestazione misurata. I risultati riportati non consentono però di isolare il contributo del ragionamento, della navigazione e dell’analisi delle immagini alla differenza complessiva osservata.</p><h3>7 Conclusioni</h3><p>Da questo esperimento porto a casa tre osservazioni che vanno oltre il caso specifico della geolocalizzazione.</p><p>La prima è che progettare skill per un LLM eredita moltissimo dall’ingegneria del software (pipeline, stati, validazione, test di regressione), applicata però a un materiale che si comporta in modo fondamentalmente diverso dal codice tradizionale: un modello linguistico può fallire producendo una risposta plausibile e sbagliata, senza generare un errore esplicito, ed è proprio questa plausibilità a rendere il problema interessante da un punto di vista ingegneristico.</p><p>La seconda è che la mentalità DevSecOps si applica bene anche al di fuori del perimetro della sicurezza informatica in senso stretto. Trattare l’output del modello come input non fidato, validarlo con codice deterministico, registrarne un digest nelle fasi critiche: sono pratiche nate per difendere sistemi da attaccanti esterni, ma qui servono a difendere il processo di ragionamento da un collaboratore che non ha intenzioni malevole, ha solo una tendenza strutturale a essere troppo sicuro di sé. Le regole descritte in questo articolo si dividono in due gruppi. Alcune hanno un corrispettivo in uno script che le verifica meccanicamente, non in un’istruzione che il modello promette di rispettare. Altre (ad esempio la lettura della visibilità attesa, la resistenza al bias di popolarità, l’umiltà nel trattare un riscontro esterno come indizio e non come prova, il mancato doppio conteggio delle relazioni spaziali) restano invece affidate al linguaggio: è lì che la compliance performativa può ancora nascondersi senza che nessun gate di codice se ne accorga.</p><p>La terza è che questo tipo di impalcatura (un layer di orchestrazione sopra l’LLM) evolve insieme al modello sottostante, non lo sostituisce. La qualità attuale dei modelli e degli strumenti rende praticabili diagrammi di stato validati automaticamente e script di verifica dedicati per ogni transizione. Progettare skill in questo modo, più vicino all’ingegneria dei sistemi che alla scrittura di prompt, resta il punto più interessante di tutto l’esperimento. Da questo punto di vista, una skill è un artefatto ibrido: linguaggio naturale, strutture dichiarative, codice e chiamate agli strumenti convivono nello stesso flusso, ma acquistano semantica operativa in componenti diversi. Il confine fra prompting e programmazione diventa così meno una separazione di sintassi e più una separazione di responsabilità verificabili.</p><p><strong>La skill è scaricabile gratuitamente da GitHub: </strong><a href="https://github.com/jumpifequal/geo-osint-locator-skill"><strong>https://github.com/jumpifequal/geo-osint-locator-skill</strong></a></p><p><a href="#_ftnref1">[1]</a> <a href="https://simonw.substack.com/p/watching-o3-guess-a-photos-location">Watching o3 guess a photo’s location is surreal, dystopian and wildly entertaining</a></p><p><a href="#_ftnref2">[2]</a> La formula di Haversine calcola la distanza tra due punti sulla superficie terrestre a partire da latitudine e longitudine, tenendo conto della curvatura del pianeta. Nominatim è il servizio di geocoding di OpenStreetMap, converte un nome di luogo in coordinate e viceversa. Overpass è l’API che interroga il database di OpenStreetMap per elementi specifici (edifici, strade, punti di interesse) entro un’area delimitata.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f5619e06acb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberAttacks based on personality]]></title>
            <link>https://enrico-frumento.medium.com/cyberattacks-based-on-personality-25aae5e6a8d6?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/25aae5e6a8d6</guid>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 10:30:07 GMT</pubDate>
            <atom:updated>2025-04-10T10:30:07.421Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cyber Attacks based on personality</h3><p>Abusing the human layer of security is probably the most used attack strategy (i.e., social engineering) today and the one that most often decreases the success of a cyber-attack. According to ProofPoint (a leading cybersecurity company), Human Factor Report 2018, “human vulnerabilities are more dangerous to modern organisations than software flaws.”</p><p>A new wave of attack strategies started to emerge recently, thanks to the evolutions of social engineering 2.0. As published in a recent blog post (<a href="https://medium.com/our-insights/social-engineering-an-it-security-problem-doomed-to-get-worst-c9429ccf3330">https://medium.com/our-insights/social-engineering-an-it-security-problem-doomed-to-get-worst-c9429ccf3330</a>), among the unique characteristics of social engineering 2.0, one is special: the high automation of advanced social engineering attacks against a large number of victims. This trend makes social engineering 2.0 a modern mass targeting attack strategy, allowing it to focus on and mould the attacks on single victims.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*_ioaKdTLBSAM7-K9mZ2A1w.png" /></figure><p>This enormous trend led to the evolution of a novel wave of attacks that makes modelling the victims’ personalities their distinguishing element: the attack based on the personality. However, the attacks based on personality are not difficult to model once we move to the domain of humans. At a very high level, the typical sequence of steps seen from the attacked entity (i.e., the human) is the following.</p><ul><li>Advanced OSINT and SNA (Social Network Analysis) to start scraping the digital shadow of an enterprise.</li><li>Perform the segmentation of the enterprise’s asset dataspace and identify the most valuable assets or clusters.</li><li>Analysis of the decisional and behavioural processes internal to the targeted community in order, for example, to acquire the proper linguistic register, to identify the sentiment around specific arguments and their polarisation, etc.</li><li>Identify the key holders of the most valuable assets.</li><li>Identify the Super Targets in the Enterprise (Super Targets is a term derived from criminology and indicates those elements that are, by their nature, more easily than others falling into phishing or scams).</li><li>Personality profiling of the victims is used to acquire information about his/her context (e.g., interest).</li><li>Identification of the cognitive and business processes of the victim(s) to create the correct hook (e.g. language register, hot topics, sentiment analysis, etc.).</li><li>Creation of the attacks around the personality or emotional status (e.g., find the correct moment in time to launch the attack, also using studies such as the following <a href="https://www.weforum.org/agenda/2016/11/why-being-extremely-happy-might-be-a-bad-thing">https://www.weforum.org/agenda/2016/11/why-being-extremely-happy-might-be-a-bad-thing)</a>.</li><li>Setup the hook and the Individual Attack Vector (e.g., an email plus the corresponding landing website in case of phishing). See <a href="https://www.researchgate.net/publication/319047936_Victim_Communication_Stack_VCS_A_flexible_model_to_select_the_Human_Attack_Vector">https://www.researchgate.net/publication/319047936_Victim_Communication_Stack_VCS_A_flexible_model_to_select_the_Human_Attack_Vector</a></li><li>Setup the malware forgery for ad-hoc infection process, using known vulnerabilities or zero-day and browser fingerprinting.</li><li>Setup the operational security (i.e., escape plan of the attacker)</li></ul><p>Looking at the above list of actions, it seems like a typical activity of a Red Team, but this assertion is arguable. Most, if not all, of the steps described can be automated to execute mass attacks and deliver ad-hoc <em>glocalized</em> threats (e.g. geomalware or, generally speaking, context-aware malware). This list of steps makes such attacks a relevant and important subject for the novel defence strategies. From the list of steps listed emerges, in the attack strategies based on personality, the existence of a pattern that is behavioural and tactical rather than syntactical. In other words, there exists one important difference with the classic attack patterns, based on zero days and more or less advanced malware: the repetitive patterns at the technical level are almost inexistent (today, ad-hoc malware attacks involve few victims and copies of the malware, the trend is one victim, one malware). The patterns at the attack plan level are instead often similar.</p><p>As a matter of fact, zero days are increasingly less important in everyday attack strategies and often not required at all (e.g., <a href="https://blog.knowbe4.com/effective-social-engineering-matters-more-than-zero-days">https://blog.knowbe4.com/effective-social-engineering-matters-more-than-zero-days</a>)</p><p>Therefore, the question is how to create a defence solution able to monitor the patterns in the attack plans automatically. This is still an argument for research.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25aae5e6a8d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The relevance of training as a soft mitigation measure: why the existing Capability Maturity Models…]]></title>
            <link>https://enrico-frumento.medium.com/the-relevance-of-training-as-a-soft-mitigation-measure-why-the-existing-capability-maturity-models-89415235ac6f?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/89415235ac6f</guid>
            <category><![CDATA[cybersecurity-awareness]]></category>
            <category><![CDATA[training-courses]]></category>
            <category><![CDATA[cyber-risk]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[intangible-assets]]></category>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Fri, 19 Jan 2024 20:06:25 GMT</pubDate>
            <atom:updated>2024-01-19T20:06:25.809Z</atom:updated>
            <content:encoded><![CDATA[<h3>The relevance of training as a soft mitigation measure: why the existing Capability Maturity Models are not adequately addressing the issue.</h3><h3>Introduction</h3><p>Training of the persons, or better cyber-training, in the organisations is a soft mitigation countermeasure, useful to reduce the cyber risk. Cyber-training has some unique characteristics versus training that needs a broader discussion. It is one of the most effective solutions today because it focuses on the root cause of most security-related incidents: humans. Today, it is a well-known fact that almost 95% of attacks involve humans in the early stages<a href="#_ftn1">[1]</a>. At the same time, it is also a well-known problem that training people with an efficient process and with lasting results (which means having a long retention time and long-lasting behavioural changes) is a challenge<a href="#_ftn2">[2]</a>. How does the HERMENEUT cyber-risk assessment methodology integrate with the desired maturity level of the cyber training strategies and the expected mitigation performances? To answer this question, we need an analysis of the current state of the art in the existing Capability Maturity Models (CMMs), especially those that include training and especially cyber-training.</p><p><strong>During the discussions of the HERMENEUT project, the importance of linking the cyber risk estimations to a proper CMM methodology emerged clearly. However, the existing CMMs have some issues when it comes to training, and a few of them adequately address the issue. Unfortunately, even less (actually almost zero) addresses cyber-security training, which is a particular area of training.</strong></p><h3>What are CMMs and their relation to the HERMENEUT results?</h3><p>As cybercrime creates continuously and rapidly evolving risks, the tools and techniques to defend and recover must evolve and become mature just as rapidly. Today’s cybersecurity training market still misses a scalable, measurable, but most of all, open and accepted <em>maturity model</em>. This methodology helps organisations and their supply chains reach the correct maturity level, which addresses the specific risk maps of organisations at a reasonable cost. <strong>Existing CMMs propose a “one-size-fits-all” training approach that does not fit all the possible specificities of the organisations.</strong></p><p>A good yet brief explanation of Maturity Models is<a href="#_ftn3">[3]</a>: “<em>Maturity models establish a systematic basis of measurement for describing the “as is” state of a process. A process’s maturity can then be compared to management’s expectations or contrasted with the maturity of other similar processes for benchmarking purposes. Insights also can be derived from the model for determining improvement options that help a process to satisfy its intended objectives over time.</em>” CMM and maturity, in general, is a hot topic in today’s industry and, recently, also in cybersecurity processes and eLearning; even if no uniﬁed, formalised, widely-accepted standard exists for training on cybersecurity, there are several separate propositions<a href="#_ftn4">[4]</a>. However, <strong>there are still no fully defined CMM propositions to cover the training in cybersecurity.</strong> CMMs are composed of different elements: (1) levels, (2) components, (3) expectations and (4) supporting tools. A CMM describes process components that lead to better outputs and better outcomes when applied throughout an organisation. A low level of maturity implies a lower probability of success in consistently meeting a specified objective, while a higher level of maturity implies a higher probability of success. The correct maturity level is that level that addresses the specific risk map of the organisation at a cost aligned to the organisation’s expectations and investment priorities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*Bvrj-rW3A7Ptlq8eDrbNMw.png" /></figure><p><strong>The HERMENEUT output directly feeds the CMM model for training because it defines the company’s exposure to cyber risk. As a project and cyber risk evaluation mechanism, HERMENEUT gives the CMM the right metrics and the correct indication of costs and KPIs to define the desired maturity level accurately.</strong></p><h3>Limitations of the existing CMMs</h3><p><strong>Existing CMMs which include training and their problems: </strong>Several training CMMs exist, but their focus is not on cybersecurity training, for example:</p><ul><li>Too general approaches to training: Bloom’s Taxonomy<a href="#_ftn5">[5]</a>, Phillips ROI Process Model<a href="#_ftn6">[6]</a>, Six Sigma<a href="#_ftn7">[7]</a> plus DMAIC<a href="#_ftn8">[8]</a>;</li><li>Addressing training in the Industry context, but too generic or for other types of skills (e.g., management): Carnegie Mellon CMM, CMMI<a href="#_ftn9">[9]</a>, Organisational Project Management Maturity Model (OPM3)<a href="#_ftn10">[10]</a>;</li><li>Vendor-related and not specific for cybersecurity training: Gartner’s eLearning Maturity Model<a href="#_ftn11">[11]</a>, Zeroed-In Technologies<a href="#_ftn12">[12]</a>, Human Capital Contribution Model (HCCM)<a href="#_ftn13">[13]</a>;</li><li>Cybersecurity-related CMMs: do not cover training or cover it as a too generic process: SANS CMM for Endpoint Security<a href="#_ftn14">[14]</a> and Cyber Security CMM<a href="#_ftn15">[15]</a>.</li></ul><p>Generically speaking, therefore, some of the common problems of the existing CMMs (e.g., CMMI, SEI, and Common Criteria) are:</p><ul><li>“One size (mis)fits all”: current approaches concentrate on generic training and/ or eLearning to drive down costs<a href="#_ftn16">[16]</a>;</li><li>The frameworks concentrate on the training processes (often seen as an industrial process that must produce constant quality) rather than readiness outputs and agile processes;</li><li>No assessment methods other than the traditional Q&amp;A (often multiple choice) and attendance assessment rather than readiness level;</li><li>Do not consider the use of the immersive business environment (e.g. nomadic working style) that can overcome the traditional metrics;</li><li>Applicable to single organisations and not to supply chains.</li></ul><p>One of the most evolved CMMs in cybersecurity training is openSAMM<a href="#_ftn17">[17]</a> (including the supporting community, the tools and the stakeholders of OWASP). It avoids the common problems discussed above, being agile, flexible and supported by a complete set of support tools. Unfortunately, it does not deliver a full solution for cybersecurity as it focuses on issues related to secure development, and when dealing with cybersecurity training, it exhibits similar issues<a href="#_ftn18">[18]</a>.</p><h3>Do we need to create a CMM specific for cybersecurity training?</h3><p>Education and training across an organisation are essential aspects of all organisational initiatives for change; the curriculum is usually driven by analysing the opportunities and risks associated with any change plan. Cyber risk is currently generally addressed outside the broader risk register. Still, the consensus within the risk professional community and the more forward-thinking cyber community is that cyber risks will fold into the general risk processes in a relatively short period. Moreover, Cybersecurity training has some unique characteristics compared to training in general:</p><ul><li>Cyber Security Training is one of the few situations where training is not only a method to increase employees’ skills or sustain the business goals, but also a method of defence of the organisation: on the longer term, improved cybersecurity training improves the overall security of the Organisation;</li><li>The metrics used to measure cybersecurity training success effectivelyare different from other training CMM. In particular, it is a form of training that must be applied to every individual in an organisation or across a supply chain, the form of training may be different for different groups but the objectives are common — defence of the organisation / the supply chain. Metrics must be applied to the individual and the organisation (and ideally the supply chain) as a whole and must link to a demonstrable measure of risk reduction.</li></ul><p>A CMM for <strong>training in cybersecurity</strong> is essential because it integrates and extends existing approaches: some of the questions of cybersecurity training are identical to those of general training (e.g., reuse of Bloom’s taxonomy, Legacy of Kirkpatrick or Philips ROI methodology, etc.). Cybersecurity training has specific, and to a degree organisationally relevant, metrics as part of a Capability Maturity Framework that can be specific to an organisation, when driven from the risk assessment. A way to push the existing solutions to another level is a CMM framework for creating, managing and measuring an organisational cybersecurity training program. <strong>An ideal CMM should, therefore, use business and cyber risk-assessment processes, such as that done with HERMENEUT, to specify what a given organisation needs as the desired maturity level and then determine the journey through education and exercises to reach that level.</strong></p><h3>The CMM and the supply-chain role, a still not integrated combo</h3><p><strong>The supply chain has a role in this scenario, too, and its actors should have a maturity level adequate to the cyber risk of the leading organisation. The CMM must, therefore, be applied to supply-chain actors.</strong> However, what is missing from the currently available CMMs are the risk-driven controls, methods and metrics to measure the supply chain, too. The intention is to create consistent expectations across the supply chain, for example, specifying a security baseline or standard in contracts or service level agreements. A source of inspiration on this matter is the Information Assurance Maturity Model (IAMM) developed by CESG and now included in the National Cyber Skills Centre in the UK policies<a href="#_ftn19">[19]</a>.</p><h3>The EU context demands more research.</h3><p>The EU is standardising its education frameworks (e.g., e-CF<a href="#_ftn20">[20]</a> is now a formal standard, EN 16234), with the final aim to adequately and efficiently integrate also the ICT Security workers and employers in the European e-Skills market. Unfortunately, the offering of certified tracks in ICT Security remains underdeveloped. The <strong>European Qualification Framework (eQF)</strong> is following a similar strategy<a href="#_ftn21">[21]</a>, fostering social dialogue to find common sectorial agreements and job-matching approaches between workers and enterprises and establishing governance mechanisms based on continuous improvement and quality labels. Security is still not wholly included in these European frameworks because of the profound and highly dynamic changes in society and cybercrime that impact the qualification profiles of ICT security professionals<a href="#_ftn22">[22]</a>.</p><p>The open challenge is, hence, a more profound rethink of how to integrate cyber-risk estimation solutions (such as HERMENEUT), dedicated maturity level CMMs and soft mitigation strategies.</p><h3>References</h3><p><a href="#_ftnref1">[1]</a> The DOGANA project (<a href="http://www.dogana-project.eu/">www.dogana-project.eu</a>), among others, demonstrated the impact of the human-related attacks within the current cybercrime strategies, see the document “D2.1 The role of Social Engineering in evolution of attacks”</p><p><a href="#_ftnref2">[2]</a> For example, A. Vishwanath, “Why Most Cyber Security Training Fails and What We Can Do About it”, <em>Blackhat.com</em>, 2017. [Online]. Available: <a href="http://ubm.io/2wy8Ugc">http://ubm.io/2wy8Ugc</a>.</p><p><a href="#_ftnref3">[3]</a> J. Rose, “Selecting, Using, and creating Maturity Models: a tool for assurance and consulting engagements”, 2017. [Online]. Available: <a href="http://bit.ly/2wyuWPV">http://bit.ly/2wyuWPV</a>.</p><p><a href="#_ftnref4">[4]</a> H. Wagenstein, “A capability maturity model for training &amp; education. Chapter one: background and rationale”, PMI® Global Congress 2006 — North America, 2006 [Online]. Available: <a href="http://bit.ly/2wyc9Eh">http://bit.ly/2wyc9Eh</a>.</p><p><a href="#_ftnref5">[5]</a> while not a normative system, Bloom’s Taxonomy is highly regarded by many trainers are a mature way to think about educational programs, and should be included then in the total range of resources behind training maturity, <a href="https://cft.vanderbilt.edu/guides-sub-pages/blooms-taxonomy/">https://cft.vanderbilt.edu/guides-sub-pages/blooms-taxonomy/</a></p><p><a href="#_ftnref6">[6]</a> “The ROI methodology”, <a href="http://roiinstitute.net/wp-content/uploads/2014/03/The-ROI-Methodology.pdf">http://roiinstitute.net/wp-content/uploads/2014/03/The-ROI-Methodology.pdf</a></p><p><a href="#_ftnref7">[7]</a> <a href="https://www.isixsigma.com/">https://www.isixsigma.com/</a></p><p><a href="#_ftnref8">[8]</a> DMAIC stands for Define, Measure, Analyse, Improve and Control, and is the core tool used to drive Six Sigma projects.</p><p><a href="#_ftnref9">[9]</a> CMMI Institute, <a href="http://cmmiinstitute.com/">http://cmmiinstitute.com/</a></p><p><a href="#_ftnref10">[10]</a> Ibid. note 7</p><p><a href="#_ftnref11">[11]</a> “People CMM: Quality and Maturity for Workforce Practices”, <a href="http://gtnr.it/2w3SSZ0">http://gtnr.it/2w3SSZ0</a></p><p><a href="#_ftnref12">[12]</a> <a href="http://zeroedin.com/">http://zeroedin.com/</a></p><p><a href="#_ftnref13">[13]</a> See <a href="http://www.cedma-europe.org/newsletter%20articles/KnowledgeAdvisors/KA0603/KAJeffBerk.pdf">http://www.cedma-europe.org/newsletter%20articles/KnowledgeAdvisors/KA0603/KAJeffBerk.pdf</a></p><p><a href="#_ftnref14">[14]</a> Ibid. note 5</p><p><a href="#_ftnref15">[15]</a> Ibid. note 4</p><p><a href="#_ftnref16">[16]</a> As an example, OPM3 has sections dedicated to training, but not specific for cyber security: section 5200 provides Project Management Training and Section 5210 for continuous training in the use of tools, methodology and deployment of knowledge.</p><p><a href="#_ftnref17">[17]</a> <a href="http://www.opensamm.org/">http://www.opensamm.org/</a></p><p><a href="#_ftnref18">[18]</a> For example, this is the definition of training processes in the OpenSAMM Education &amp; Guidance section: “increasing security knowledge amongst personnel in software development through training and guidance on security topics relevant to individual job functions”.</p><p><a href="#_ftnref19">[19]</a> <a href="https://www.ncsc.gov.uk/articles/hmg-ia-maturity-model-iamm">https://www.ncsc.gov.uk/articles/hmg-ia-maturity-model-iamm</a></p><p><a href="#_ftnref20">[20]</a> European e-Competence Framework, <a href="http://www.ecompetences.eu/">http://www.ecompetences.eu/</a></p><p><a href="#_ftnref21">[21]</a> As the first sector-specific implementation of the European Qualifications Framework (EQF), the e-CF fits for application by ICT service, user and supply organisations, multinationals and SMEs, for ICT managers, HR departments and individuals, educational institutions including higher education and private certification providers, social partners, market analysts, policymakers and other organisations in public and private sectors.</p><p><a href="#_ftnref22">[22]</a> Cybercrime is highly multi-disciplinary, and responding to Cyber issues implies cyber tracks that span both technical and human sciences.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89415235ac6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The likelihood of success of a cyber-attack and its relevance within the HERMENEUT model]]></title>
            <link>https://enrico-frumento.medium.com/the-likelihood-of-success-of-a-cyber-attack-and-its-relevance-within-the-hermeneut-model-c9064b676c00?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9064b676c00</guid>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[cyber-risk]]></category>
            <category><![CDATA[intangible-assets]]></category>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Fri, 19 Jan 2024 19:59:14 GMT</pubDate>
            <atom:updated>2024-01-19T19:59:14.466Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Today, the elusiveness of targeted attacks (TAs) [1] and the number of evasion tactics exploited by the ongoing attacks are so significant that monolithic defence strategies are still notefficient. Successful attacks are built to stay under the detection threshold on all the layers of the security (from network to the human layer): e.g., network scanning is usually today a feeble activity, systems’ compromising happens with ad-hoc copies of unique malware, and phishing campaigns are tailored around single humans [2] [3]. Cybercrime is increasingly going in the direction of sophisticated “<strong>low-and-slow</strong>” attacks [4]. The low-and-slow approach involves attackers remaining invisible for as long as possible while stealthily moving from one compromised host to the next without generating regular or predictable network traffic patterns or data exfiltration purposes as they hunt for specific data or system targets. The rapidity of the single attack steps is one crucial element of being stealthy.</p><p>Therefore, The defence paradigms must adapt to this increasingly flexible and feeble scenario, where the usual defence systems based on pattern recognition are no longer useful. For example, a recent report from FireEye cites, “<em>the average time from an email phishing breach to detection is 146 days globally, and a colossal 469 days for the EMEA region. According to the report, “At a basic level, the notion that hackers are rooting around in companies’ networks undetected for 15 months is sobering, as it allows ample opportunity for lateral movement within IT environments.</em>”<em> </em>[5]<em>.</em></p><p>The early detection of the <strong>weak signals of an ongoing attack</strong> is probably the most important challenge in today’s security market. Within this context, one of the most interesting innovative approaches is the ability to analyse an increasing amount of data, with the assistance of Artificial Intelligence (AI), to capture an emerging and unnoticed trend. Cyber Threat Intelligence (CTI) tools are facing this challenge. However, the most problematic issue of CTIs is not only the complexity of the evaluation models but also the potentially uncontrollable divergence of their forecasts. The model is strongly based on the preciseness of the Indicator of Compromise (IoC), whose collection is nowadays regulated through different bodies (mainly European bodies such as the ISACs [6] or crowd-based efforts such as VERIS CDB [7]) and supporting (usually de-facto) standard technologies (STIX being the reference serialisation language [8]). CTIs are also affected by the intrinsic instability of the forecast models, which require efforts to collect the IoCs, elaborate the models and distribute the early alerts. This fact implies a cost model that goes beyond the possibilities of an organisation with low-budget security programs, such as an SME.</p><h3>Context</h3><p>As reported by [9] the current approaches to IT security and risk management tend to underestimate the following key aspects:</p><ul><li>The <strong>human factor</strong> (covering subjective, organisational, societal and economic aspects) in identifying vulnerabilities to cyber-attacks. This aspect is often ignored despite the fact that, as recently demonstrated [2], Social Engineering 2.0 (SE) attacks generate the highest costs in terms of both consequences of and protection against attacks [10] [11].</li><li>The <strong>attacker’s strategy in identifying </strong>vulnerabilities and assets at risk. Modern attacks follow the same business logic as that followed by big companies that involve multidisciplinary competences in the definition process of their strategies and business plans [10] [11] [12]. The same multidisciplinary approach combining engineering, risk assessment, economic, cognitive, behavioural, societal and legal knowledge is needed to address the strategy of professional IT attackers properly.</li><li>The <strong>role of intangible assets</strong> in the quantification of the consequences of cyber-attacks. As reported in [13], “<em>More than half the value of companies worldwide is in intangible assets, such as intellectual property, much of which is stored on computers and could therefore be vulnerable to hackers. That figure could be as high as $37.5 trillion of the $71 trillion in enterprise value of 58,000 companies, according to Brand Finance, a consultancy specializing in valuation of intangible assets”.</em> Moreover, according to [14], more than 70% of attacks target small businesses, and as much as 60% of hacked small and medium-sized businesses go out of business after six months.</li></ul><p>Given the described scenario, HERMENEUT aims to create an inclusive approach to cyber-security cost-benefit analysis. It starts (i) from an integrated assessment of vulnerabilities and their likelihoods and (ii) exploiting an innovative macro- and microeconomic model for intangible costs, ends (iii) with an estimation of the cyber-risks for an organisation or business sector followed by guidelines (iv) on investments, to mitigate the <strong>loss of an enterprise’s integrity</strong>.</p><h3>The likelihood of success of a cyber-attack</h3><p>In the HERMENEUT approach, the risk is equal to the product of likelihood, vulnerability and impact [15]. From a general point of view, the likelihood of success of a cyber-attack is composed of five relevant elements: business plan, commoditisation level, operational security, exposure of the target and human factor. These four elements can be used, together with a proper economic model, to estimate an enterprise’s tangible and intangible risks.</p><ul><li>The <em>business plan</em> of the attacker is typically tied to the ease of monetising the stolen assets. Putting aside a few more specific cyber-attacks conducted for different motivations, the ease of monetisation of a stolen asset is the main driver used in the black market — and thus a motive for performing cyber-attacks. Thus, understanding the attacker’s business plan usually requires monitoring the dynamics of the black market’s selling fluctuations and its interest in specific assets. This monitoring function is already provided by big players in IT security and integrated into current risk estimation approaches<a href="#_ftn1">[1]</a>. Moreover, this element is correlated with the remaining four factors (commoditisation level, operational security, target exposure and human factor). Black-market dynamics are driven by the evolution of attacking tools (e.g., the recent evolution of Shark Ransomware as a Service, see [16]), as well as by the difficulty of stealing valuable assets (e.g. see [17] for a discussion about price fluctuations of Gmail fake accounts in the black market, as a consequence of the hardenings released by Google). HERMENEUT does not concentrate on exploring and evaluating black market dynamics; instead, it concentrates on evaluating the less explored <em>commoditisation level</em>, <em>exposure of target</em> and the <em>human factor</em>.</li><li>The <em>commoditisation level </em>is an approximate measure of how easy it is to launch a cyber-attack against an organisation. This can only be assessed by simulating a cyber-attack against the IT systems from an attacker’s viewpoint. The assumption is that the effort undertaken by a penetration tester to break into a system in a simulated environment is proportional to the effort of a real cyber-attack. The higher the effort of the cyber-attack (e.g. regarding applied competencies and instruments), the higher, in general, its price on the black market. With the evolution of TA, the exploits have become more subtle, and the strategies used are less universal (and thus less identifiable by statistical methods) and more easily adaptable to single victims [6]. A recent example of how the business models of cybercrime evolve, impacting both the commoditisation level and the economic cost models, has been reported by [16]: <em>a new Ransomware-as-a-Service project has sprung up, and the “service providers” are allowing others to use it for free, but take a 20 percent cut out of every ransom that gets paid by the victims</em>. This change in the threat landscape implied a modification of the techniques used to simulate the cyber-attacks to become more adjusted to the reported exploits. HERMENEUT uses a <strong>novel vulnerability assessment methodology to evaluate the commoditization level of the cyber-attacks</strong>.</li><li><em>Operational security,</em> from the attackers’ point of view, refers to the ability to exfiltrate an asset or complete an attack business plan and remain unnoticed or uncaught. This element is connected to the commoditisation level of the black markets mentioned before. The <strong>underground economy </strong>is a loose federation of specialists selling capabilities, services, and resources explicitly tailored to abuse the ecosystem, among which services are used to safely re-sell the stolen services.</li><li><em>Exposure of the target</em> measures how <em>exposed</em> the target is to cyber-attacks. This is essentially the amount and relevance of the information exposed by the victim or other parties on the internet or in general to the outer world (e.g. in social media or unmonitored assets, like open resources or uncontrolled metadata of public documents) that can be directly (ab)used by the attacker to craft more successful cyber-attacks. This not only refers to unleashed assets but, more generally, to information used to improve the effectiveness of the cyber-attacks (e.g., roles of personnel in the organisation, information about activities, locations visited during work hours, etc.), according to the logic and trends of the TA tactics. <strong>HERMENEUT measures the exposure of the target through the indirect estimation of the <em>digital shadow of an institution</em></strong><a href="#_ftn2"><strong><em>[2]</em></strong></a>. That is the portion of the enterprise’s data space which is unintentionally leaked on the Internet by its employees (e.g., employees speaking of work on social media) or directly through digital channels not monitored by the enterprise (e.g., the presence of unofficial support pages in some social media). The extension of the digital shadow is proportional to the enterprise’s exposure.</li><li><em>Human factor</em> measures how the behaviour of individuals, as well as social and organisational problems, indirectly affect the success rate of real-world cyber-attacks, for instance, due to a lack of respect for existing policies or other potentially detrimental behaviour of employees. This also includes user-motivated security incidents, threats of human error by insiders, and the role of human vulnerabilities in successful cyber-attacks. The human factor is another rough measure of the softness of the target, but in contrast to the commoditisation level, it links to an internal point of view. This is evaluated using an internally run assessment, performed using a “grey-box” approach<a href="#_ftn3">[3]</a>, and the vulnerabilities detected are not necessarily all known and abused by real attackers. However, they are a proactive indicator for the enterprise in which cyber-attacks could potentially occur.</li></ul><p>Among these elements, only the quantification of the commoditisation level of the exposure of the target and the human factor can be partially automated and integrated into the HERMENEUT cost-benefit framework. They also represent the most challenging and less explored elements — and, therefore, lead to key innovations delivered by HERMENEUT.</p><h3>Bibliography</h3><p>[1] Trend Micro, “Understanding targeted attacks. What is a targeted attack,” Trend Micro, 24 September 2015. [Online]. Available: <a href="http://tinyurl.com/yanqzk9h.">http://tinyurl.com/yanqzk9h.</a></p><p>[2] DOGANA, “DOGANA Project,” 2018. [Online]. Available: <a href="http://www.dogana-project.eu./">www.dogana-project.eu.</a></p><p>[3] ProofPoint, “Protecting People Report. A quarterly analysis of highly targeted attacks,” ProofPoint, September 2018. [Online]. Available: <a href="https://www.proofpoint.com/sites/default/files/pfpt-us-tr-people-report-summer-2018-180904.pdf.">https://www.proofpoint.com/sites/default/files/pfpt-us-tr-people-report-summer-2018-180904.pdf.</a></p><p>[4] M. Johnson, Cyber crime, security and digital intelligence, London: Routledge, 2016.</p><p>[5] FireEye, “Cyber Threats: A perfect storm about to hit Europe?,” Marsh &amp; MCLennan, 2017. [Online]. Available: <a href="https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/rpt-world-eco-forum.pdf">https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/rpt-world-eco-forum.pdf</a> .</p><p>[6] ENISA, “Information Sharing and Analysis Centres (ISACs): Cooperative models,” 2018. [Online].</p><p>[7] VERIS, “Community Database,” 2018. [Online]. Available: <a href="http://veriscommunity.net/">http://veriscommunity.net/.</a></p><p>[8] STIX, “A structured language for cyber threat Intelligence,” 2018. [Online]. Available: <a href="http://tinyurl.com/ybjgmoc7.">http://tinyurl.com/ybjgmoc7.</a></p><p>[9] B. Ahmed, “Micro — and macroeconomic modelling of intangible cyber-costs,” July 2017. [Online].</p><p>[10] ProofPoint, “The Human Factor — People-centred threats define the landscape,” 2018. [Online]. Available: <a href="https://www.proofpoint.com/sites/default/files/pfpt-us-wp-human-factor-report-2018-180425.pdf.">https://www.proofpoint.com/sites/default/files/pfpt-us-wp-human-factor-report-2018-180425.pdf.</a></p><p>[11] ENISA, “Threat Landscape Report,” 2017. [Online].</p><p>[12] K. Thomas, D. Yuxing Huang, D. Wang, E. Bursztein, C. Grier, T. J. Holt, C. Kruegel, D. McCoy, S. Savage and G. Vigna, “Framing Dependencies Introduced by Underground Commoditization,” in <em>Workshop on the Economics of Information Security (2015)</em>, 2015.</p><p>[13] R. Kerber and S. Jessop, “Asset Managers Urged to Make Cyber Risk Top Priority,” Insurance Journal, 1 September 2015. [Online].</p><p>[14] PAYCHEX, “Creating a Cyber Security Culture in Your Business,” 19 January 2016. [Online].</p><p>[15] FRONTEX, “CIRAM Common Integrated Risk Analysis Model,” Warsaw, 2012.</p><p>[16] L. Abrams, “The shark Ransomware project allows you to create your own customized Ransomware,” 2016. [Online]. Available: <a href="http://www.bleepingcomputer.com/news/security/the-shark-ransomware-project-allows-to-create-your-own-cus.">http://www.bleepingcomputer.com/news/security/the-shark-ransomware-project-allows-to-create-your-own-cus.</a></p><p>[17] R. K. a. S. Jessop, “Asset Managers Urged to Make Cyber Risk Top Priority,” <em>Insurance Journal, </em>September 2015.</p><p>[18] E. Frumento, C. Lucchiari and G. Pravettoni, “Cognitive approach for social engineering,” in <em>DeepSec</em>, Wien, 2010.</p><p><a href="#_ftnref1">[1]</a> For example, refer to HavocScope, <a href="http://www.havocscope.com/">www.havocscope.com</a></p><p><a href="#_ftnref2">[2]</a> Digital shadow [6] is defined as “<em>A digital shadow, a subset of a digital footprint, consists of exposed personal, technical or organisational information that is often highly confidential, sensitive or proprietary. As well as damaging the brand, a digital shadow can leave your organisation vulnerable to corporate espionage and competitive intelligence. Worse still, criminals and hostile groups can exploit a digital shadow to find your organisation’s vulnerabilities and launch targeted cyber-attacks against them</em>”.</p><p><a href="#_ftnref3">[3]</a> Grey-box is a typical way of performing security tests where some insight of the tested systems are known by the testers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9064b676c00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are the consequences of Marriott and Dell data breaches on stock prices and intangible assets?]]></title>
            <link>https://enrico-frumento.medium.com/what-are-the-consequences-of-marriott-and-dell-data-breaches-on-stock-prices-and-intangible-assets-d8052a19a338?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8052a19a338</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[crisis-management]]></category>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Fri, 19 Jan 2024 19:51:57 GMT</pubDate>
            <atom:updated>2024-01-19T19:51:57.304Z</atom:updated>
            <content:encoded><![CDATA[<p>On Friday morning, November 30, 2018, one of the largest hotel chains in the world, <a href="https://marriott.gcs-web.com/news-releases/news-release-details/marriott-announces-starwood-guest-reservation-database-security"><strong>Marriott International, announced one of the largest data breaches in history</strong></a>. The company declared that unknown hackers had compromised the guest reservation database of Starwood Hotels, a subsidiary, and copied and encrypted the personal information, including some banking or credit card details, of <strong>approximately 500 million guests</strong>.</p><p>Two days earlier, on Wednesday, November 28, <a href="https://www.dell.com/learn/us/en/uscorp1/press-releases/2018-11-28-customer-update"><strong>Dell announced that the company was affected by a potential cybersecurity incident</strong></a>. Dell reported that it had detected and prevented unauthorised activity in its network to extract Dell.com customer information, names, email addresses, and hash passwords. The company <strong>did not provide any information on the extent of the incident</strong>, which is still under investigation.</p><p>The two incidents are <strong>not directly related</strong> (although a source reported to Forbes that Marriott was hacked in a former incident probably related to the current event following a mistake by a contracted cybersecurity vendor that <a href="https://www.forbes.com/sites/thomasbrewster/2018/12/03/revealed-marriotts-500-million-hack-came-after-a-string-of-security-breaches/">appears to be SecureWorks, a cybersecurity provider once owned by Dell</a>). Still, there are some <strong>interesting parallels when comparing the preliminary consequences of the two attacks,</strong> especially considering the consequences of the intangibles from the HERMENEUT point of view. Let’s consider, for example, just a few specific <strong>types of intangible asset: reputation, brand and trust in the companies</strong>. These are usually the first intangible assets to be affected after a data breach, followed by the economic impact on stock markets.</p><p><strong>Marriott is a non-technological company whose reputation is an essential asset in the hospitality business</strong>. Marriott’s reputation is built on the quality of its hospitality services, not on its cybersecurity robustness. The cyber resilience of Marriott is a consequence of the importance of their customers’ privacy and can, therefore, be considered from the customer’s perspective as an accessory service. Therefore, monitoring the impact of this breach in the medium and long-term should be of particular interest. This may provide indications of the extent to which <strong>an IT risk affects intangible asset whose value is not IT-related</strong>.</p><p>On the other hand, <strong>Dell is an IT company</strong> that is a recognised brand in the field and <strong>that has a strong cyber security reputation</strong>. For Dell, cyber security is not just a product but the heart of the business and the equation, from the consumer’s point of view, is simple: if the organisation can be hacked, their products can be hacked as well. Although there is no information on how Dell’s network has been disrupted yet, it sounds as if the company has mastered the situation well and professionally overall. This is another interesting case to monitor the impact on intangible assets for an IT company that appears to have handled the incident in a very professional, organised and thoughtful manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*KJmSkqwxOQYWR0N9oJ4tqA.png" /><figcaption><em>Own illustration based on various sources</em></figcaption></figure><p><strong>Political Dimension</strong></p><p>In the immediate aftermath of the release of the Marriott hack in the news, <strong>several U.S. Democratic senators have been calling for stricter privacy laws and substantial fine</strong>s for companies that fail to protect their customers’ data. They criticise that <a href="https://twitter.com/SenBlumenthal/status/1068573740643033088">companies repeatedly fail to prevent the theft of customer data</a> and that the customers ultimately have to pay the high costs of corporate security and privacy reliance. This call for tough sanctions for companies that neglect appropriate security measures is also <strong>a consequence of the GDPR</strong> that came into force in May in the European Union and unfolded an influence that goes far beyond the borders of the EU. Data protection can no longer be left to the goodwill of companies that may or may not invest sufficiently in cybersecurity, as some companies possess millions of records whose theft not only has macroeconomic consequences but also exposes each individual affected to an incalculable threat. <strong>The consequences for Marriott in the EU cannot yet be foreseen</strong>. However, the British information commissioner has already begun <a href="https://www.forbes.com/sites/thomasbrewster/2018/12/03/revealed-marriotts-500-million-hack-came-after-a-string-of-security-breaches/">investigations under the GDPR mandate</a>. So far, little is publicly known about the Dell incident.</p><p><strong>Insurance Dimension</strong></p><p>The<strong> insurance and reinsurance market initiated measures</strong> last week to prepare for the significant data breach and its consequences. Sources in the insurance market have been speculating for a week about the imminent release of a <a href="https://www.reinsurancene.ws/market-expects-sizeable-cyber-loss-from-marriott-hotel-chain-data-breach/">major cyber incident that will have a significant impact on insurers, reinsurers and the industry as a whole</a>. Property Claim Services (PCS) has since confirmed that it has declared the event a “<strong>Global Cyber Industry Loss of Interest</strong>”, meaning that it will monitor and report on its impact in due course, including the resulting industry loss. The reinsurance market will also be affected as <strong>the loss is expected to be substantial</strong>. The insurance market can thus apply the industry loss estimate as input for all cyber industry loss warrants (ILW) or other loss-related risk transfer instruments. Some industry sources estimate that Marriott has between $250 and $350 million in cyber insurance cover — <a href="https://www.reinsurancene.ws/marriott-data-breach-to-be-tracked-as-pcs-global-cyber-loss/">an amount that is expected to be exhausted by the resulting claims</a>. The infrastructure alone, which will be necessary to contact the millions of affected customers, will cause massive costs. Litigation costs and other indemnities will further increase losses as well as the cost of identity protection and account monitoring services. According to Reinsurance News, the reinsurance markets of <strong>Lloyd’s, AIG, AXA XL or Chubb could be affected by this event</strong> as they are specialised in cyber covers. The Marriott hack has the potential to be the largest standalone cyber insurance loss in history. However, it is still too early to speculate about the scale and associated impacts. The next weeks and months will be challenging for Marriott International and the cyber insurance market.</p><p><strong>Financial Dimension</strong></p><p>On the same day of the announcement of the Marriott data breach, <strong>the stock plummeted from $122.8 to $114</strong> — a loss of about 7%. On Monday, December 3, the stock recovered about half of its loss before the end of trading. So far, there are no reliable figures on the expected damage costs, but losses can run into billions of dollars. A <a href="https://www.ibm.com/security/data-breach">recently published study by the Ponemon Institute</a> mandated by IBM <strong>estimates the cost of the loss of 50 million data at $350 million</strong>. The study is based on actual financial losses incurred by eleven companies following major data losses in the past two years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*IXzSo1Y5rGfkAxo_XLA1yw.png" /><figcaption><em>Marriott International Inc. Source: </em><a href="https://markets.ft.com/data"><em>FT NSQ</em></a></figcaption></figure><p>A <strong>class action suit against Marriott</strong> filed only hours after the disclosure of the breach offers a first glimpse of the actual possible costs. The plaintiffs demand the equivalent of $25 for each victim to compensate for costs and damages — which would add up to $12.5 billion for the 500 million victims. The two Oregon-based plaintiffs told a local newspaper that <a href="https://www.zdnet.de/88348671/datenverlust-kostet-marriott-wahrscheinlich-mehrere-milliarden-dollar/">the $25 was an absolute minimum as an expense allowance for blocking a credit card</a>, for example.</p><p>In contrast, <strong>Dell Technologies Inc.’s share</strong> even appreciated slightly the day the cybersecurity incident was announced (1,6%). The stock closed at $104.7 the previous day and closed at $106.42 the day of the announcement (November 28). However, the price movement is rather insignificant and cannot be connected to the incident. As very little information is known so far, and the media have rushed into the Marriott case two days later, <strong>no relevant conclusions can be drawn</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*_Uwj9uUzOlK8h4KBM8vCzw.png" /><figcaption><em>Dell Technologies Inc. Source: </em><a href="https://markets.ft.com/data"><em>FT NYQ</em></a></figcaption></figure><p><strong>Additional Sources:</strong> <a href="https://thehackernews.com/2018/11/marriott-starwood-data-breach.html">500 Million Marriott Guest Records Stolen in Starwood Data Breach</a> (The Hacker News); <a href="https://www.zdnet.com/article/dell-announces-security-breach/">Dell announces security breach</a> (ZD Net).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8052a19a338" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[L’importanza di stimare il rischio cyber e le difficoltà nel farne una stima corretta.]]></title>
            <link>https://enrico-frumento.medium.com/limportanza-di-stimare-il-rischio-cyber-e-le-difficolt%C3%A0-nel-farne-una-stima-corretta-37ace7701b03?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/37ace7701b03</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-risk]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[rischio]]></category>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Fri, 27 May 2022 10:06:23 GMT</pubDate>
            <atom:updated>2022-05-27T10:06:23.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ym0FnHSFuEU2Meng.jpg" /></figure><p>Un recente articolo del <a href="https://www.weforum.org/agenda/2021/05/jobs-of-the-future-year-2030/">World Economic Forum</a> ripreso da La Repubblica <a href="https://www.repubblica.it/tecnologia/2022/05/01/news/lavoro_futuro_world_ecnomic_forum_professioni_digitali-347412251/">“Dieci lavori che hanno (davvero) un futuro”</a> riporta una serie di lavori in forte crescita, legati a trend sociali e non solamente tecnologici, che ridefiniranno gli impieghi entro i prossimi anni.</p><p>Fra i vari ruoli nel settore della cybersecurity, spicca quello del cosiddetto <strong>Cyber Calamity Forecaster</strong> (una sorta di “profeta di sventure” cyber) che è cresciuto del 28% nel primo trimestre 2021. Il ruolo è in realtà utile nella valutazione del rischio cyber, per dare conferma agli indicatori di rischio (i cosiddetti key risk indicators, KRI) e definire quindi la strategica degli interventi di mitigazione. Questo ruolo risponde alla necessità di un esperto che validi le stime del rischio cyber e sappia pesare i pro e i contro di ogni scelta, anticipando i trend del mondo cybercrime. Come vedremo, stimare correttamente e completamente il rischio cyber è difficile se non impossibile. Il ruolo del forecaster è in tal senso utile quindi a compensare le limitazioni dei modelli previsionali di rischio e implementare un vero approccio proattivo alla cybersecurity.</p><h3>Sostenibilità e stime del rischio cyber</h3><p>In generale, le spese dirette e indirette di un attacco cyber sono in costante crescita. Per il mantenimento delle misure di difesa, le aziende si sono trovate a dover fronteggiare un problema composto da differenti variabili: tecnologie, competenze necessarie e costi di gestione. In altre parole, l’azienda si trova a dover operare nell’immediato scelte strategiche di medio periodo per rimanere sicuri, proteggere i dati e la continuità operativa attingendo a tecnologie sostenibili aziendalmente e competenze, recuperabili dal mercato o disponibili internamente. In tempi di crescente incertezza economica e politica, la principale questione di qualsiasi business, ma in particolare di quelli medio piccoli, è come mantenere sostenibile la cybersecurity a fronte di una incrementale aggressività del cybercrime e della crescente fragilità del business. Se per il cybercrime il COVID-19 ha rappresentato una opportunità economica unica e irripetibile, similmente si può dire, in termini geopolitici, della guerra russo-ucraina. Nei fatti il cybercrime ha raggiunto livelli di complessità e rischio del tutto nuovi. Ogni azienda che voglia attenuare il rischio associato a queste crescenti minacce ha bisogno di attivarsi. Allo stesso tempo, però, occorre far sì che la cybersecurity sia “sostenibile”, non in termini energivori e non soltanto in termini economici, ma anche di tecnologie, processi, persone e, soprattutto, in termini di conoscenze.</p><h3>L’impatto sulle stime di rischio cyber</h3><p>La recente pandemia ha accelerato una nuova ondata di cambiamenti tecnologici ed economici dirompenti, con diverse conseguenze — dirette e indirette di lunga durata — sia sugli ecosistemi economici, sui mercati e sulle PA, che sulle Tattiche, Tecniche e Procedure (TTPs) della criminalità informatica. Questo, anche grazie al crescente stato di tensione internazionale attuale, ha moltiplicato gli obiettivi vulnerabili: organizzazioni precedentemente non interessanti per gli attaccanti e lavoratori operanti al di fuori delle aree protette dell’organizzazione (tipicamente in “smart working” mal gestito). In questo quadro generale, le organizzazioni, siano esse micro, medie o piccole imprese o la pubblica amministrazione, devono considerare nuove strategie di difesa efficienti e soprattutto sostenibili. Oggigiorno le PMI e le PA, già sotto pressione economica, “forzate” a progredire rapidamente lungo l’agenda di trasformazione digitale, devono fare i conti anche con il nuovo crimine informatico attivo come mai in precedenza</p><p>In questo contesto è quindi diventato fondamentale avere come driver della cybersecurity il rischio cyber, come guida di tutte le operazioni nel contesto dalla sicurezza informatica.</p><p>Sfortunatamente non c’è una definizione univoca di “rischio cyber”. Questo è principalmente dovuto alla fonte stessa del rischio, il cybercrime, che per sua natura è estremamente dinamico. Altri tipi di rischio, come quello sismico o anche meteorologico, “godono” di modelli previsionali costruiti sulla base di una serie di dati storici stabili e che cambiano con ritmi decisamente inferiori al cybercrime. Viceversa, il cybercrime cambia costantemente pelle e tattiche, mettendo a disposizione al contempo una cronica mancanza di dati per creare modelli stabili.</p><p>Riassumo i principali motivi per i quali il rischio cyber è di difficile stima.</p><ul><li>Gli attacchi arrivano dal nulla e vanno nel nulla, solo le vittime sono note. Un tipico attacco cyber ha tempi di esecuzione nell’ordine di qualche ora massimo, se non pochi minuti, e le evidenze (cioè i dati su cui basare la stima del rischio) spesso sono nascoste sotto strati di tecnologie oppure assenti del tutto.</li><li>La fonte del rischio cambia continuamente, con un ritmo insostenibile per la modellazione. Il cybercrime è forse l’unico contesto informatico ad <strong>evolvere ugualmente a causa di forze esterne </strong>(es., nuove opportunità di attacco, evoluzione di tecnologie ed abitudini) e <strong>forze interne</strong> (es., evoluzione dei piani di business, del contesto economico e dei tool di attacco). I modelli di calcolo del rischio devono affrontare due differenti fonti di rischio derivanti dall’evoluzione interna del cybercrime e dalla creazione di nuove opportunità di attacco nate dalla digitalizzazione dei servizi.</li><li>La maledizione dei dati: i dati sono spesso insufficienti per la creazione di un qualsiasi modello stabile. A sostegno di questa considerazione si pensi che la parte passiva di un attacco dura in media 5 mesi contro 1 ora o meno di esecuzione. La parte passiva che include la preparazione dell’attacco e la raccolta delle informazioni delle vittime è per definizione non identificabile. Solo la parte attiva (l’attacco vero e proprio) può produrre evidenze, ma sempre più spesso è queste evidenze sono troppo specifiche. Gli attacchi sono fortemente modellati intorno alle singole vittime (i.e., highly targeted attacks) e fulminei e producono evidenze con ridotta rilevanza statistica.</li><li>Le organizzazioni e l’impatto dei rischi cyber sono profondamente differenti. Ogni azienda è differente dal punto di vista della maturità dei suoi processi digitali e dell’impatto che un eventuale attacco informatico potrebbe avere. Questo comporta un’estrema difficoltà nella costruzione di modelli di stima del rischio cyber che siano realmente calati nelle singole realtà aziendali.</li><li>L’agenda di trasformazione digitale dei vari business è in rapidissima evoluzione. Il COVID-19 per primo e la guerra Russo-Ucraina successivamente hanno mostrato quanto vera sia questa affermazione. Ogni modello di stima del rischio in generale si basa sulla raccolta di eventi del passato e la loro modellazione. In presenza di discontinuità nel modus operandi della fonte del rischio questi modelli perdono di efficacia.</li><li>Asset tangibili ed intangibili. Recenti stime del <a href="https://www.weforum.org/agenda/2022/03/three-reasons-why-cybersecurity-is-a-critical-component-of-esg/">WEF</a> riportano che il valore intangibile — il valore delle attività che non sono di natura fisica — rappresenta ora il 90% del valore delle attività nelle organizzazioni, essendo più che triplicato nell’indice Standard and Poor’s 500 (S&amp;P 500) negli ultimi 35 anni. Gli attacchi informatici hanno sempre colpito i dati, un tipico asset intangibile, ma si sono recentemente allargati includendo altri tipi di asset (es., il “brand”, la reputazione)<a href="#_ftn1">[1]</a>.</li></ul><p>Per gestire la propria sicurezza informatica, le aziende devono cambiare approccio. Piuttosto che cercare di proteggere ogni singolo computer o sistema dagli attacchi, devono concentrarsi sulla protezione delle risorse critiche, quelle senza le quali l’organizzazione non può operare. Quegli asset che sono cruciali per la vita aziendale.</p><h3>L’influenza dell’elemento umano e della OPSEC nei modelli previsionali di rischio</h3><p>Una delle domande ricorrenti nel campo della stima del rischio cyber è fino a che punto, anche in possesso di tutti i dati e le evidenze del cybercrime, si possa calcolare il rischio cyber. Se, in altre parole, ci siano degli elementi che non possono essere stimati.</p><p>In generale i problemi dei sistemi di stima del rischio cyber possono essere riassunti come segue:</p><ul><li><strong>Trustability delle stime del cyber risk</strong>. Le organizzazioni non si fidano dei rischi così come vengono presentati e si preoccupano del rischio di allocare le loro limitate risorse, denaro e tempo per mitigare i rischi sbagliati.</li><li><strong>Explainability of cyber risk</strong>. La valutazione del rischio comporta molte conoscenze e ipotesi spesso implicite. Questo porta a valutazioni non trasparenti, presentate separatamente dai dati che le hanno generate e dalle ipotesi che portano alla stima.</li><li>Esiste poi il problema dei «cigni neri» o dei rischi high-impact low-probability (<strong>HILP</strong>) in cui un rischio è <strong>percepito come talmente raro da non meritare una attività di resilienza specifica </strong>(es. impatto del COVID-19 nel cybercrime o sottovalutazione del rischio interno/umano)<strong>.</strong></li></ul><p>Tipicamente le attività che vengono realizzate per raccogliere informazioni utili a stimare il rischio sono:</p><ul><li>Vulnerability Assessment, Penetration Testing sempre più vicini alle TTP del cybercrime (es. ATT&amp;CK)</li><li>Attività di Threat Intelligence, Threat Hunting</li><li>Continuous assessment o continuous security</li></ul><p>Ma ci sono due elementi che vengono spesso trascurati: l’elemento umano e la OPSEC.</p><h3>L’importanza dell’elemento umano</h3><p>L’elemento umano, la cui vulnerabilità viene sfruttata tramite la Social Engineering<a href="#_ftn2">[2]</a>, è la causa, secondo un altro studio <a href="https://cybernews.com/editorial/world-economic-forum-finds-that-95-of-cybersecurity-incidents-occur-due-to-human-error/">WEF</a>, di circa il 95% degli attacchi aventi esito positivo. Per questo, tra tutti gli anelli della catena che devono saper resistere alla sollecitazione di un tentativo di offesa, le persone sono considerate l’anello più debole ovvero l’elemento a cui è associato il livello di rischio più critico. È stato il cybercrimine a fare emergere questa vulnerabilità, servendosi oltre che delle abilità di hacking, anche di un notevole cinismo nelle modalità di inganno dell’essere umano. Da un lato i criminali hanno dimostrato di saper usare ogni espediente, non limitandosi agli aspetti tecnologici ed impiegando tutte le tipologie di social engineering, dall’altro un gruppo di Cybersecurity moderno ha bisogno di attingere da diverse discipline nelle azioni di contrasto (es. discipline socio umanistiche come la psicologia o le science cognitive e comportamentali o la Human Behavioural Analysis)<a href="#_ftn3">[3]</a>. Dal punto della stima del rischio cyber però gli umani sono un ulteriore elemento di incertezza perché il comportamento di una persona varia di momento in momento ed è in generale scarsamente prevedibile. Anche la formazione, come strumento di riduzione del rischio cyber, come ho avuto modo di approfondire in un recente <a href="https://formazioneincybersecurity.cefriel.it/">whitepaper</a>, è un problema non facile.</p><p>A tal proposito è interessante notare che tipicamente i Cyber range non testano la componente umana, cioè quella parte dell’attacco che coinvolge direttamente gli umani (social Engineering, insiders ma anche testare come reagiscono le persone addette alla sicurezza sotto pressione), semplicemente perché è impossibile farlo: non posso coinvolgere delle persone in una simulazione di attacco, a loro insaputa, senza compiere degli illeciti e mantenendo al contempo la simulazione realistica. Ad oggi l’unico tentativo in tal senso è la controversa<a href="#_ftn4">[4]</a> competizione Capture the Flag sulla Social Engineering (<a href="https://www.social-engineer.com/glossary/sectf/">SECTF</a>) organizzata alla conferenza <a href="https://www.social-engineer.org/wp-content/uploads/2019/11/SECTF-DEFCON27-SECOM-2019.pdf">DEFCON</a>, fino al 2019.</p><h3>L’importanza della OPSEC</h3><p>OPSEC sta per Operation Security ed è in generale, “<em>un processo che ha lo scopo di dare ad un’operazione militare l’appropriato livello di sicurezza, per negare le conoscenze al potenziale avversario circa le disposizioni, le capacità, gli intenti e le vulnerabilità delle forze amiche</em>” (fonte: Wikipedia). Dal punto di vista del cybercrime è la capacità di non farsi arrestare nel momento in cui viene monetizzato il furto<a href="#_ftn5">[5]</a>. Una scarsa OPSEC dei gruppi criminali è già un fattore di mitigazione perché riduce la probabilità che un attacco venga effettivamente compiuto. Solamente i gruppi criminali di primo livello hanno capacità di sicurezza operativa evolute. Il problema è che in generale è alquanto difficile stimare, ai fini del calcolo del cyber risk, le reali capacità di OPSEC di un potenziale cyber criminale. I metodi di calcolo del cyber risk o i VA/PT non considerano affatto questo aspetto. Più recentemente, il conflitto russo-ucraino ha introdotto un ulteriore problema nel mondo Cybercrime. Oltre alle considerazioni geopolitiche derivanti dallo schieramento dei vari gruppi criminali, abbiamo assistito alla vanificazione della collaborazione internazionale fra le forze di polizia, che aveva portato alla dismissione di vari gruppi di Cybercrime (DarkSide, REvil, BABUK etc.), acuendo le probabilità che gruppi con scarse capacità di OPSEC possano rimanere impuniti.</p><h3>Conclusioni</h3><p>Rendere la sicurezza informatica sostenibile per le PMI e la PA rappresenta una sfida complessa sotto vari punti di vista. La cybersecurity è un processo e come tale porta in azienda una serie eterogenea di conseguenze tecnologiche, di processo, policy, governance, competenze e skill e di relazione fra le persone e l’azienda. Tutto questo viene affiancato dalla necessità di stimare correttamente le minacce in rapporto al valore degli asset aziendali. La stima dei rischi cyber è una sfida complessa sia per la natura stessa del rischio cyber, sia per alcune limitazioni intrinseche difficilmente sormontabili. Questi problemi però vanno moltiplicati per tre, perché esistono tre macro-fonti di rischio: il mondo IT, il mondo OT e gli umani. Tre fonti che non solo necessitano di modelli previsionali completamente differenti, ma sono anche strettamente interconnesse e creano effetti incrociati ed a cascata. Da qui a mio avviso la sfida della cybersecurity dei prossimi anni sarà quella di stimare i rischi cyber in funzione di tutte queste variabili e limitazioni, in modo credibile e sostenibile per le piccole e medie imprese e il più frequentemente possibile, in modo sostenibile a lungo termine e considerando anche gli effetti a cascata</p><p><a href="#_ftnref1">[1]</a> E. Frumento, C. Dambra, “The role of intangible assets in the modern cyber threat landscape: the HERMENEUT Project”, European Cybersecurity Journal, Volume 5 (2019) Issue 1, 56–65</p><p><a href="#_ftnref2">[2]</a> D. Ariu, E. Frumento and G. Fumera, “Social Engineering 2.0: A Foundational Work: Invited Paper”, Proceedings of the Computing Frontiers Conference — CF’17, pp. 319–325, 2017.</p><p><a href="#_ftnref3">[3]</a> Devon, “15 Alarming Cyber Security Facts and Stats”, 12 2020. [Online]. Available: <a href="https://www.cybintsolutions.com/cyber-security-facts-stats/">https://www.cybintsolutions.com/cyber-security-facts-stats/</a></p><p><a href="#_ftnref4">[4]</a> “DEF CON bans social engineering expert Chris Hadnagy”, <a href="https://www.techtarget.com/searchsecurity/news/252513274/DEF-CON-bans-social-engineering-expert-Chris-Hadnagy">https://www.techtarget.com/searchsecurity/news/252513274/DEF-CON-bans-social-engineering-expert-Chris-Hadnagy</a></p><p><a href="#_ftnref5">[5]</a> “Arrest, Prosecution, and Incarceration: The Cybercriminal Perspective” [Online]. Available: <a href="https://www.digitalshadows.com/blog-and-research/the-cybercriminal-perspective/">https://www.digitalshadows.com/blog-and-research/the-cybercriminal-perspective/</a></p><p><em>— — — — — —</em></p><p><em>Questo articolo è stato orinariamente pubblicato per CyberSecurity360. Disponibile online </em><a href="https://www.cybersecurity360.it/soluzioni-aziendali/limportanza-di-stimare-il-rischio-cyber-e-le-difficolta-nel-farne-una-stima-corretta/"><em>L’importanza di stimare il rischio cyber e le difficoltà nel farne una stima corretta</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37ace7701b03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Il ruolo della interdisciplinarità nella cybersecurity e nella formazione]]></title>
            <link>https://enrico-frumento.medium.com/il-ruolo-della-interdisciplinarit%C3%A0-nella-cybersecurity-e-nella-formazione-9d6569ea563d?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d6569ea563d</guid>
            <category><![CDATA[cefriel]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[sostenibilità]]></category>
            <category><![CDATA[formazione]]></category>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Wed, 23 Mar 2022 12:04:52 GMT</pubDate>
            <atom:updated>2022-03-23T12:04:52.623Z</atom:updated>
            <content:encoded><![CDATA[<p>Le spese dirette (es. conseguenze dirette di un attacco o valore dei dati trafugati) e indirette, di un attacco cyber sono in costante crescita. Per il mantenimento delle misure di difesa, le aziende si sono trovate a dover fronteggiare un problema enorme: come rimanere sicuri, proteggere i dati e la missione aziendale, pur tenendo sotto controllo gli investimenti? In altre parole, come mantenere sostenibile la cybersecurity a fronte di una sempre maggiore fragilità del business ed una maggiore incidenza degli attacchi?</p><p>Per il cybercrime il Covid-19 ha rappresentato una opportunità unica e irripetibile. Nei fatti il cybercrime ha raggiunto livelli di complessità e rischio del tutto nuovi. Basti considerare che gli attacchi ransomware si sono ulteriormente acutizzati proprio durante la pandemia con una crescita del 148%. [1] Ogni azienda che voglia attenuare il rischio associato a queste crescenti minacce ha bisogno di attivarsi. Allo stesso tempo, però, occorre far sì che la cybersecurity sia “sostenibile”, non in termini energivori e non soltanto in termini economici, ma anche di tecnologie, processi, persone e, soprattutto, in termini di conoscenze.</p><p>A seguito di queste considerazioni si parla insistentemente di multidisciplinarità nella cybersecurity (es., [2] [3]) A ben vedere però, la multidisciplinarità affronta un fenomeno, un problema, un evento, da punti di vista e con strumenti di discipline diverse, con persone o gruppi di lavoro diversi. Il fenomeno è affrontato in modo più completo che non se fosse affrontato da un solo punto di vista, ma i diversi modi di osservarlo possono restare indipendenti e poco integrati fra loro.</p><p><strong>L’interdisciplinarità</strong> invece, aggiunge all’approccio multidisciplinare la relazione e lo scambio fra le discipline coinvolte. In questo senso allora è meglio parlare di interdisciplinarità nella cybersecurity come della chiave per farla evolvere verso una maggiore sostenibilità aziendale.</p><h3>Interdisciplinarità nel cybercrime</h3><p>La Interdisciplinarità nel contesto del cybercrime non è una novità. La “Social Engineering” (SE), come forma di attacco, sta vivendo da qualche anno di una seconda giovinezza a causa della crescente incidenza delle minacce informatiche che vanno a colpire quello che ancora oggi è l’anello più debole di un sistema informativo: i suoi utenti. Le reti di Social Network e i nuovi media per la comunicazione interpersonale (es. chat, IM sia su PC che su terminali mobili) sono canali nuovi, al fiano di quelli classici (voce, mail e fax), che possono essere usati per sferrare attacchi ai danni del personale aziendale e privato. Anche i canali più classici come la mail hanno raggiunto livelli di diffusione e standardizzazione tali da permettere di veicolare messaggi complessi (soprattutto nella formattazione grafica). La social engineering è una tecnica non più usata da pochi attaccanti esperti, come accadeva in passato. Oggi la SE può essere automatizzata usando sistemi semantici, crawler di informazioni ecc, ma soprattutto è parte integrante della strategia di attacco delle nuove generazioni di malware: oggigiorno più del 95% degli attacchi andati a segno include strategie avanzate di social engineering. Stiamo quindi parlando di una tecnica di attacco che è responsabile direttamente della monetizzazione di quasi il 95% degli attacchi andati a segno, mentre solo il 3% dei malware tenta di sfruttare una falla puramente tecnologica [4] [5].</p><p>La cosa interessante della SE è il soggetto dell’attacco, gli esseri umani. Se in generale per attaccare un sistema informatico ho bisogno di competenze tecnologiche, informatiche, di networking ecc, per attaccare un umano ho bisogno di competenze umanistiche. E qui entra in gioco la prima forma di Interdisciplinarità che il mondo del cybercrime ha già compreso da qualche anno.</p><p>La domanda è, nell’ipotesi in cui la persona è il “sistema” sotto attacco, quali scienze contribuiscono alla sua modellazione per creare un attacco efficace? Quali sono le vulnerabilità che possono essere sfruttate per comprometterlo tramite una opportuna minaccia ed a quali competenze l’attaccante o il difensore devono attingere per avere successo? Questo, come si vede dalla Figura 1, è per definizione un problema Interdisciplinarità.</p><p>Questa affermazione è talmente confermata che da qualche anno si assistite ad una graduale inversione della piramide delle competenze nel mondo del cybercrime: prima vengono le competenze umanistiche (es. marketing, social engineering, psicologia cognitiva, memetica) e dopo quelle tecnologiche (es. developer). Testimone indiretto ne è un recente dato pubblicato da AtlasVPN (Figura 2). Stando ai dati presentati [6], gli attacchi più dannosi, come i ransomware e gli attacchi altamente <em>targetizzati</em>, costano sul darkweb tra 66 e 500 $. Gli attacchi di spearphishing costano tra 100 e 1.000 $. Lo spear phishing differisce dai normali attacchi di phishing perché sono mirati per una vittima specifica, che si tratti di un’organizzazione o di un individuo. Questo conferma una considerazione semplice che già si sapeva: la competenza più preziosa nel mondo cybercrime è quella del Social Engineer ovvero, di un ruolo con competenze di scienze umanistiche, psicologia e scienze comportamentali che sa come combinare memetica e evidenze OSINT per creare esce ben fatte ed efficaci, con un elevato ROI dal punto di vista del cyber criminale [4].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*uECdAAc9o2zyeAXCVgnc-w.png" /><figcaption>Figura 1 — una lista non esaustiva delle scienze umanistiche impiegabili per scopi “malevoli”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*uqFSqiEZ3wLV--n2PmSCxA.png" /><figcaption>Figura 2 — Prezzi medi dei servizi di cybercrime nel 2021 (fonte [6] )</figcaption></figure><h3>Interdisciplinarità nella cybersecurity</h3><p>Anche la cybersecurity nei recenti anni ha subito un processo di trasformazione che ha messo al centro la valenza di molteplici discipline scientifiche, non solamente legate al mondo informatico. Per motivi differenti la interdisciplinarità nella cybersecurity è emersa come una delle principali sfide. Sia nella pianificazione delle difese, sia nel mantenimento dei servizi di sicurezza informatica di una azienda, sia nei programmi di formazione.</p><p>Secondo l’ultima Davos Agenda del WEF, la carenza di competenze è fra le maggiori sfide per la cybersecurity mondiale per il 2021 e un sondaggio di S&amp;P Global ha ribadito che l’IT Security rimane la maggiore priorità per le imprese. [7] Nessuno può permettersi di rimanere indietro nella gestione della propria cybersecurity che passa, innanzitutto, dalle persone. Ogni azienda che voglia attenuare il rischio cyber ha bisogno di attivarsi per acculturare il proprio personale, sia quello generico che quello impegnato nelle difese.</p><p>Una recente ricerca condotta da Ipsos per il British Department for Digital, Culture, Media &amp; Sport distingue fra lacune e carenze nella sicurezza informatica. Le lacune (gaps) si verificano quando gli individui non soddisfano le competenze richieste. Le carenze (shortages), invece, sussistono quando il numero di persone impiegate è insufficiente. Nel primo caso, sono emerse le seguenti problematiche per i lavoratori: il 18% delle aziende ha assunto persone senza le abilità tecniche necessarie, mentre un altro 23% le ha scelte competenti tecnicamente, ma senza le dovute abilità manageriali e comunicazionali. A ciò si sommano le carenze numeriche. Dal gennaio 2019 il 37% delle posizioni aperte risulta difficile da occupare e le principali ragioni sono la mancanza di conoscenze personali (48%), la mancanza di esperienza (35%), la mancanza della giusta attitudine (30%) e la mancanza di soft skills (28%). [8] La cybersecurity ha, infatti, un problema di attrazione e non solo nel Regno Unito.</p><p>Nello stato di carenza descritto, il 4% degli addetti cyber decide di abbandonare la propria posizione. [9] L’attrazione è un problema di non facile risoluzione poiché non riguarda soltanto gli impiegati, ma anche chi si trova sul punto di iniziare un percorso di studi orientato a una professione. Ci sono molte ragioni per cui il settore della cybersecurity fatichi sia a richiamare talenti sia a mantenerli. Certamente alla sicurezza IT è associata un’immagine distorta che spesso è accompagnata da una narrativa densa di tecnicismi tanto da farla percepire come una materia oscura, adatta soltanto a giovani nerd. Non essendoci consapevolezza sulla varietà di ruoli di questo settore, viene percepita come un ramo dell’IT ristretto, quasi di nicchia, a cui si somma l’incapacità dell’istruzione accademica di coprire efficacemente i suoi sotto ambiti [10]. Secondo ENISA (2019), una delle principali cause di questa carenza globale è da ricondursi proprio alle difficoltà di accesso a percorsi universitari o post-universitari in cybersecurity. [11] La realtà professionale, infatti, è ben diversa dalla narrativa nerd. Ci sono innumerevoli ruoli che non sono puramente tecnici e richiedono abilità relazionali, di business e perfino politiche. Nelle grandi aziende sono in corso processi trasformativi trasversali che esigono competenze in cybersecurity a livello manageriale. Sarebbe opportuno rompere il cliché radicatosi e creare una nuova narrativa, orientata al business con percorsi di formazione che siano capaci di attrarre profili anche da altri settori. Tant’è vero che il team di cybersecurity ideale è interdisciplinare. Esattamente come il team di cybercrime ideale.</p><h3>Le security ceremonies</h3><p>Il fondamento teorico alla base della interdisciplinarità nel contesto della cybersecurity rientra nel campo delle <em>security ceremonies</em> (introdotti per la prima volta da Ellison [5]). Il termine è usato per descrivere l’insieme di sistemi informatici, protocolli ed esseri umani che interagiscono per uno scopo specifico.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*voWUgRQqKxSbYj81x0HAwA.png" /><figcaption>Figura 3 — Martina, J. E. et al. “An adaptive threat model for security ceremonies.” International Journal of Information Security 14 (2014): 103–121.</figcaption></figure><p>Una <em>security ceremony </em>(Figura 3) può essere descritta come un protocollo nel suo contesto d’uso, fatto di macchine, protocolli, applicativi ed umani. Ogni protocollo può avere differenti livelli di astrazione, dalla semplice interazione uomo-browser-sito web, fino all’applicazione di policy aziendali o di strategie comunicative intra aziendali in un momento di crisi.</p><p>Molti protocolli (ad esempio, organizzativi o di governance) che si sono dimostrati sicuri in teoria, sono insicuri o fallaci nella pratica, quando vengono impiegati nel mondo reale. I test di sicurezza spesso testano i protocolli in modo isolato e, non considerano la vasta gamma di attacchi possibili quando si allarga il perimetro di indagine, includendo l’ingegneria sociale, le interfacce / interferenze con altri protocolli e con l’ambiente, la comunicazione con gli stakeholder ed i shareholder, le conseguenze economiche sulle quotazioni ecc.</p><p>Le <em>security ceremonies </em>sono un superset dei normali protocolli di sicurezza, un’estensione che include operazioni che normalmente non sono considerate o sono date per scontate (es. la reazione psicologica degli operatori ad uno stimolo esterno). Ad esempio, chi ha progettato un protocollo di intervento di un SOC, a fronte di una minaccia informatica aveva in mente un operatore con caratteristiche di reattività e competenze specifiche?</p><p>L’inclusione dell’interazione umana, e di conseguenza del comportamento e dei processi cognitivi, è una caratteristica delle cerimonie, che normalmente è difficile considerare perché lo spettro delle possibili reazioni è al di fuori dai limiti dei sistemi attuali di modellazione dei protocolli operativi.</p><h3>Conclusioni</h3><p>La interdisciplinarità rientra fra le esigenze di una cybersecurity efficace e sostenibile, anche perché il cybercrime ne ha già da qualche tempo compreso i vantaggi. In questo contesto le carenze croniche di personale qualificato si amplificano perché oltre alla formazione di tecnici capaci si deve iniziare a considerare la formazione di altri tipi di figure meno tecnologiche, ma altrettanto fondamentali, con la complicazione addizionale di dover reinventare la narrativa della cybersecurity in ottica meno tecnologica. Questo, senza dimenticare di armonizzare ruoli e percorsi formativi che spesso sono completamente ortogonali (es. informatica e scienze umanistiche).</p><p>In generale, la formazione nel contesto della cybersecurity va riformata secondo criteri di adeguatezza rispetto al rischio cyber che si intende mitigare, di sostenibilità e di affidabilità del processo formativo (anche intesa in termini di ROSI — return of security investment), distinguendo i percorsi fra <em>awareness</em>, <em>training</em> e <em>learning</em>. In sintesi, si può parlare di formazione come di un processo che deve necessariamente essere altamente targettizzato, costruito cioè intorno ai bisogni formativi delle singole persone. Tali bisogni vanno definiti sicuramente in base a strategie di up-skilling o re-skilling, e di riduzione del rischio aziendale, ma anche in accordo a tutte le discipline e competenze coinvolte nella gestione delle emergenze.</p><p>A tal scopo in Cefriel abbiamo sviluppato una metodica di formazione, documentata in un whitepaper di recente pubblicazioe [12], che si basa sul cosiddetto ciclo OODA, una strategia utile a prendere decisioni sotto pressione, durante un attacco informatico. È stato ideato dal colonnello John Boyd per l’aeronautica degli Stati Uniti negli anni ’50 e concepito per i piloti dei caccia durante i duelli aerei. Il suo scopo è stabilire un processo efficace che consenta una reazione veloce così da non essere mai presi alla sprovvista (off guard). In origine si proponeva come strategia per aumentare le chance di vittoria.</p><ul><li>Observe: raccogli rapidamente le informazioni sul contesto.</li><li>Orient: dai un senso alle informazioni raccolte, individua gli errori e orientati per trarre vantaggio.</li><li>Decide: decidi quale tra le opzioni formulate debba essere scelta.</li><li>Act: traduci in azione la tua decisione o testa la tua ipotesi.</li></ul><p>La strategia assume che anche l’avversario abbia il proprio ciclo OODA. L’esito della sfida dipenderà soprattutto dal tempo di reazione. L’altro elemento è proprio insistere sulla collaborazione fra differenti competenze e sensibilità per la risoluzione dell’emergenza. I ruoli tecnici sono ovviamente importanti, ma vanno considerate anche tutte le altre competenze come la comunicazione (sia interna che verso gli stakeholder e gli shareholder), il marketing e la psicologia. Tutte competenze che nel caso di una crisi di cybersecurity debbono essere accompagnate da strategie comunicative e di collaborazione efficaci, interdisciplinari ed oggi più che mai decisive.</p><h3>Riferimenti</h3><p>[1] A. Culafi, «Ransomware attacks see 148% surge amid COVID-19,» TechTarget, 17 Aprile 2020. [Online]. Available: <a href="https://searchsecurity.techtarget.com/news/252481832/Ransomware-attacks-see-148-surge-amid-COVID-19.">https://searchsecurity.techtarget.com/news/252481832/Ransomware-attacks-see-148-surge-amid-COVID-19.</a></p><p>[2] Network Digital 360, «L’APPROCCIO MULTIDISCIPLINARE ALLA CYBER SECURITY,» [Online]. Available: <a href="https://www.avanade.com/-/media/asset/thinking/cybersecurity-eguide.pdf?.">https://www.avanade.com/-/media/asset/thinking/cybersecurity-eguide.pdf?.</a></p><p>[3] M. Gianniello, «Privacy e cyber security: approccio multidisciplinare al principio di accountability,» 19 03 2020. [Online]. Available: <a href="https://www.cybersecurity360.it/legal/privacy-dati-personali/privacy-e-cyber-security-approccio-multidisciplinare-al-principio-di-accountability/">https://www.cybersecurity360.it/legal/privacy-dati-personali/privacy-e-cyber-security-approccio-multidisciplinare-al-principio-di-accountability/.</a></p><p>[4] E. Frumento, «Social Engineering: an IT Security problem doomed to get worse,» 2018. [Online]. Available: <a href="https://medium.com/our-insights/social-engineering-an-it-security-problem-doomed-to-get-worst-c9429ccf3330.">https://medium.com/our-insights/social-engineering-an-it-security-problem-doomed-to-get-worst-c9429ccf3330.</a></p><p>[5] E. Frumento e a. et, «D2.1 The role of SE in the evolution of attacks,» 2018. [Online]. Available: <a href="https://dx.doi.org/10.6084/m9.figshare.12369248.v1.">https://dx.doi.org/10.6084/m9.figshare.12369248.v1.</a></p><p>[6] TechRepublic, «Dark Web: Many cybercrime services sell for less than $500,» 13 10 2021. [Online]. Available: <a href="https://www.techrepublic.com/article/dark-web-many-cybercrime-services-sell-for-less-than-500/">https://www.techrepublic.com/article/dark-web-many-cybercrime-services-sell-for-less-than-500/.</a></p><p>[7] A. Pipikaite, M. Barrachin e S. Crawford, «These are the top cybersecurity challenges of 2021,» 21 1 2021. [Online]. Available: <a href="https://www.weforum.org/agenda/2021/01/top-cybersecurity-challenges-of-2021/">https://www.weforum.org/agenda/2021/01/top-cybersecurity-challenges-of-2021/.</a></p><p>[8] Ipsos MORI for the Department for Digital, Culture, Media and Sport (DCMS), «Cyber Security Skills Gaps and Shortages in the UK Cyber Sector in 2021,» United Kingdom, 2021.</p><p>[9] Department for Digital, Culture, Media &amp; Sport and Matt Warman MP, «Cyber security skills in the UK labour market 2021,» 23 Marzo 2021. [Online]. Available: <a href="https://www.gov.uk/government/publications/cyber-security-skills-in-the-uk-labour-market-2021.">https://www.gov.uk/government/publications/cyber-security-skills-in-the-uk-labour-market-2021.</a></p><p>[10] J.-C. Gaillard, «The Cyber Security Skills Gap: Real Problem or Self-inflicted Pain?,» Corix Partners, 2020.</p><p>[11] «Leading the Digital Decade launch event,» 2 06 2021. [Online]. Available: <a href="https://leading-the-digital-decade.eu/">https://leading-the-digital-decade.eu/.</a></p><p>[12] E. Frumento e A. Guerini, «Formazione: come può evolvere con successo nell’ambito della cybersecurity?,» 09 2021. [Online]. Available: <a href="https://formazioneincybersecurity.cefriel.com/">https://formazioneincybersecurity.cefriel.com/</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d6569ea563d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Il progetto Quantum-Secure Net: sviluppo di un prodotto Europeo di Quantum Key Distribution —…]]></title>
            <link>https://enrico-frumento.medium.com/il-progetto-quantum-secure-net-sviluppo-di-un-prodotto-europeo-di-quantum-key-distribution-e9cd450edfea?source=rss-22fff0e9dc6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9cd450edfea</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[qkd]]></category>
            <category><![CDATA[sicurezza-informatica]]></category>
            <category><![CDATA[crittografia]]></category>
            <category><![CDATA[post-quantum-cryptography]]></category>
            <dc:creator><![CDATA[Enrico Frumento]]></dc:creator>
            <pubDate>Fri, 29 Oct 2021 12:57:16 GMT</pubDate>
            <atom:updated>2021-10-29T13:00:29.880Z</atom:updated>
            <content:encoded><![CDATA[<h3>Il progetto Quantum-Secure Net: sviluppo di un prodotto Europeo di Quantum Key Distribution — Parte 3 Il progetto Quantum Secure Net</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RQlc_0crNJPEAKk8ulgkiw.jpeg" /></figure><p>Quanto segue è la terza ed ultima parte della serie di articoli (<a href="https://enrico-frumento.medium.com/il-progetto-quantum-secure-net-sviluppo-di-un-prodotto-europeo-di-quantum-key-distribution-3f7c57acb795">parte 1</a> e <a href="https://enrico-frumento.medium.com/il-progetto-quantum-secure-net-sviluppo-di-un-prodotto-europeo-di-quantum-key-distribution-728dffce6725">parte 2</a>) sulla crittografia quantistica, iniziata con i due precedenti articoli, dove venivano introdotti gli elementi fondamentali della cosiddetta minaccia quantum. In questa ultim parte viene presentato in dettaglio il progetto Q-Secure Net, già introdotto nella <a href="https://enrico-frumento.medium.com/il-progetto-quantum-secure-net-sviluppo-di-un-prodotto-europeo-di-quantum-key-distribution-3f7c57acb795">parte 1</a>.</p><h3>La sfida della Quantum Key Distribution (QKD)</h3><p>Il progetto Quantum-Secure Net (Q-Secure Net) è un progetto finanziato dell’European Institute of Technology Digital (EIT Digital) [1] il cui scopo è sviluppare e portare sul mercato un prodotto di rete di nuova concezione e generazione completamente Europeo, basato su tecnologia Quantum Key Distribution (QKD), che sia sostenibile in termini di costi e interoperabile con gli altri sistemi esistenti. Lo scopo del progetto è fornire una soluzione pronta per le telecomunicazioni, integrata nel funzionamento e nella gestione della rete, per garantire comunicazioni end-to-end (E2E) sicure a livello quantistico in contesti di alta sicurezza.</p><p>Proposta già nei primi anni 1980, la QKD è una tecnologia imparentata con il quantum computing per via del fatto che usa la stessa “terminologia” matematica: si può dire che in questo caso si parla di “quantum” senza l’attributo “computing”. La tecnologia ha impiegato quasi 40 anni per evolversi, tuttavia, ora è una delle principali aree di competizione tecnologica fra le nazioni, oltre al 5G, tra cui Cina, Corea e Stati Uniti. La QKD in particolare utilizza le proprietà quantistiche dei fotoni per effettuare lo scambio di una chiave crittografica simmetrica, che può essere utilizzata per criptare i messaggi che poi vengono scambiati tramite un canale “tradizionale”. La sicurezza di QKD si basa su fondamentali leggi della natura, che sono insensibili all’aumentare della potenza di calcolo, di nuovi algoritmi di attacco o di computer quantistici [2]. Tale sistema permette, una volta introdotto, di dotare le infrastrutture di rete ad altissima sicurezza di comunicazioni incondizionatamente sicure.</p><h3>Il progetto Q-Secure net</h3><p>Il progetto Q-Secure Net ha l’obiettivo di fornire una soluzione economica e flessibile per servizi di comunicazione incondizionatamente sicuri basati sulla QKD, che funzioni con le attuali reti metropolitane in fibra ottica [1]. Il capofila del progetto è Italtel. Fra i partner, Cefriel ha seguito due degli scenari applicativi, Politecnico di Milano e CNR hanno sviluppato la tecnologia QKD e i protocolli di correzione degli errori, Università Politecnica di Madrid e Telefonica hanno partecipato alla definizione del prodotto ed i test su rete metropolitana in fibra ottica.</p><p>Durante il progetto sono state sviluppate due applicazioni prototipali, aventi lo scopo di dimostrarne l’utilizzo nel contesto Blockchain e SSL, mostrando come la tecnologia QKD possa essere applicata sia al mercato finanziario che per rendere sicure le comunicazioni IoT (Internet of Things) e IIoT (Industrial IoT). Il prodotto è adatto a qualsiasi servizio che necessiti di una chiave di cifratura simmetrica, e si apre ad innumerevoli applicazioni e casi d’uso.</p><h3>Lo Scenario SSL+PSK</h3><p>La prima applicazione sviluppata è legata al protocollo SSL/TLS. Questi protocolli permettono una comunicazione sicura tra due entità operando al di sopra del livello di trasporto. Di solito, SSL utilizza certificati a chiave pubblica per l’autenticazione. In particolare, però, lo standard prevede già una speciale configurazione (SSL+PSK Pre-Shared Keys) che utilizza chiavi simmetriche, pre-condivise in anticipo tra le parti comunicanti, per stabilire una connessione SSL. Una configurazione implementata ad esempio, per supportare i casi in cui le parti comunicanti non possano usare la cifratura asimmetrica perché onerosa in termini di connettività o calcolo (es. IoT) o perché le parti sono già “accreditate” (es. ambito militare).</p><p>I passi dettagliati della comunicazione per SSL+PSK sono i seguenti, direttamente ispirati allo schema proposto Diffie-Hellman per le PKI [3].</p><ol><li>Alice e Bob ricevono su un collegamento QKD la stessa chiave crittografica (simmetrica)</li><li>Alice usa la chiave simmetrica QKD per criptare una chiave temporanea di sessione, generata in modo casuale, che ha una durata di vita limitata e la invia a Bob, su un canale non sicuro (ethernet)</li><li>Bob riceve il messaggio e lo decripta per ottenere la chiave temporanea di sessione.</li><li>Alice e Bob usano la chiave temporanea di sessione con AES per crittografare i loro messaggi su ethernet fino alla scadenza della stessa (poi si ripete il passo 2). In caso di attacco attraverso il link QKD, Alice e Bob possono richiedere un’altra chiave QKD sicura.</li></ol><p>Lo scenario è abilitante per i servizi VPN e IPSEC con QKD.</p><h3>Lo scenario Decentralised Finance</h3><p>Le tecnologie blockchain nascono a finire del 2009 con l’avvento del protocollo Bitcoin e si evolvono fino ai giorni nostri in una famiglia di protocolli e sistemi SW essenzialmente con l’obiettivo di creare una rete (network peer to peer) di “pari” in grado di scambiarsi un valore transazionale (valuta, asset con valore, certificazione) in maniera diretta, senza una terza parte fiduciaria. Eliminando così, attraverso il meccanismo del consenso condiviso, il bisogno di avere terze parti e attivando lo scambio diretto di beni, servizi. Questi sistemi hanno una applicazione in campo finanziario, sia nei processi interbancari, per esempio in scenari di tracciamento e ciclo di vita degli asset come le fatture (es., sconto fattura) sia nei processi e servizi che si possono creare a partire dai token (dando origine al fenomeno della finanza decentralizzata).</p><p>In particolare, nella <em>Decentralised Finance</em> (Defi), uno degli aspetti chiave è la interoperabilità dei sistemi e lo scambio di token e cripto valute, soggetto a sfide di sicurezza note e non indifferenti. Oggi i token derivati di Ethereum sono decine di migliaia, e sono “tecnicamente” interoperabili tra di loro, il che significa che applicazioni diverse possono scambiarsi questi token proprio come ci si scambiano delle valute o delle azioni nelle borse commerciali. Queste operazioni oggi sono affidate a Exchange centralizzati che sono spesso soggetti a problemi di sicurezza e rappresentano l’unico elemento ancora centralizzato in sistemi peraltro totalmente <em>peer-to-peer</em>.</p><p>In questo contesto “finanziario”, c’è sempre, un “nodo” della rete, detto in gergo tecnico portafoglio (<em>wallet</em>) che è abilitato a scambiare il valore, ossia il token. Tale nodo possiede delle informazioni specifiche che gli permettono di eseguire la transazione.</p><p>Inoltre, negli scenari Fintech attuali, ci sono molteplici cripto-valute e reti, un elemento di debolezza riconosciuto. Il “passaggio” da una criptovaluta ad un’altra, da un token ad un altro, tra due sistemi e due <em>wallet</em>, richiede il passaggio da una terza parte fidata, contraddicendo il paradigma della decentralizzazione. Questa situazione, per esempio nel contesto Ethereum, viene risolta passando, in alcuni casi, come recentemente proposto, attraverso il meccanismo dell’<em>Atomic Swap</em> [4]. L’<em>Atomic Swap</em> è una delle possibili soluzioni proposte per far interagire differenti reti blockchain, ed è un “sistema” per il passaggio sicuro direttamente tra nodi partecipanti a diverse reti blockchain, di una informazione (<em>hashlock</em> o <em>timelock</em><a href="#_ftn1">[1]</a>) necessaria a sbloccare il cambio di valuta.</p><p>Questa informazione simmetrica, permette di accoppiare reti diverse, ed è quindi importante, in ottica di evoluzione delle reti blockchain in contesti finanziari, mantenerla sicura.</p><p>Nella configurazione sperimentale oggetto del progetto, l’<em>Atomic Swap</em> avviene non più su una rete di telecomunicazione “comune”, ma si avvale di un QKD Link, che permette di trasferire in modo sicuro il parametro di <em>hashlock/timelock</em> fra due nodi di una rete Algorand (si noti che nel gergo Algorand viene usato il termine <em>Atomic Transfers</em>) [5]. Questa soluzione comporta un aumento della sicurezza intrinseca dello scambio e quindi, rende possibile usare gli <em>Atomic Swap</em> anche con le criptovalute.</p><h3>Sviluppi previsti</h3><p>In un anno il progetto Q-Secure Net ha portato alla realizzazione di un prodotto pronto per le prime applicazioni di mercato, ma che ha le potenzialità per cogliere le opportunità da un mercato in fortissima crescita. Nell’articolo è stato citato un primo naturale scenario di utilizzo della QKD, per connessioni con elevati requisiti di sicurezza o dove è importante la <em>everlasting security </em>(i.e., IPSEC+QKD).</p><p>Sono interessanti anche le reti di dispositivi dotati di QKD Link. Una prima architettura di reti “hop-by-hop” è stata dimostrata in Europa nel 2008 dal progetto SECOQC [6]; in tali reti i messaggi passano tramite differenti nodi relay collegati da QKD Link. In questo caso la decrittazione / ricodifica e rilancio del messaggio viene effettuata ad ogni nodo intermedio con differenti chiavi QKD (si veda Figura 1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*5LoMLk9edV7vbtRV4TVQyQ.png" /><figcaption>Figura 1 — In una rete “hop-by-hop” i dati seguono un percorso fatto di nodi relè “trusted”, collegati da QKD Link. La decodifica/ricodifica del messaggio è fatta ad ogni nodo intermedio, usando la codifica one-time-pad tra la chiave locale, distribuita dal QKD, ed il messaggio segreto M, decifrato localmente dalla connessione precedente. Le diverse associazioni di chiavi sono simboleggiate da colori diversi (fonte [2]).</figcaption></figure><h3>Lavori Citati</h3><p>[1] Digital Tech, “Q-Secure Net Factsheet,” 2019. [Online]. Available: <a href="https://www.eitdigital.eu/fileadmin/files/2020/factsheets/digital-tech/EIT-Digital-Factsheet-Q-Secure-net.pdf.">https://www.eitdigital.eu/fileadmin/files/2020/factsheets/digital-tech/EIT-Digital-Factsheet-Q-Secure-net.pdf.</a></p><p>[2] R. Alléaume, C. Branciard, J. Bouda, T. Debuisschert, M. Dianati, N. Gisin, M. Godfrey, P. Grangier, T. Länger, N. Lütkenhaus, C. Monyk, P. Painchault, M. Peev, A. Poppe, T. Pornin, J. Rarity, R. Renner, G. Ribordy, M. Riguidel, L. Salvail, A. Shields, H. Weinfurter and A. Zeilinger, “Using quantum key distribution for cryptographic purposes: A survey,” <em>Theoretical Computer Science, </em>vol. 560, pp. 62–81, 2014.</p><p>[3] W. Diffie and M. Hellman, “New directions in cryptography,” <em>IEEE Transactions on Information Theory, </em>vol. 22, pp. 644–654, 1976.</p><p>[4] M. Herlihy, “Atomic Cross-Chain Swaps,” in <em>ACM Symposium on Principles of Distributed Computing</em>, 2018.</p><p>[5] S. Micali, “Algorand’s Forthcoming Technology,” 26 5 2019. [Online]. Available: <a href="https://medium.com/algorand/algorands-forthcoming-technology-bcd17989c874.">https://medium.com/algorand/algorands-forthcoming-technology-bcd17989c874.</a></p><p>[6] CORDIS, “Development of a Global Network for Secure Communication based on Quantum Cryptography,” 2008. [Online]. Available: <a href="https://cordis.europa.eu/project/id/506813.">https://cordis.europa.eu/project/id/506813.</a></p><p><em>Questa serie di articoli è originariamente </em><a href="https://www.difesaonline.it/evidenza/cyber/il-progetto-quantum-secure-net-parte-33-prodotto-europeo-di-quantum-key-distribution"><em>apparsa </em></a><em>sulla rivista Difesa Online a partire dal 25 Gennaio 2021</em></p><p>— — — — — — — — — —</p><p><a href="#_ftnref1"><em>[1]</em></a><em> Il servizio di Atomic Swap può essere configurato in due modi: hashlock o timelock. Hashlock è una funzione che limita la spesa dei fondi fino a quando un certo dato non viene reso pubblico (come prova crittografica. Timelock limita la spesa dei fondi fino a un determinato momento futuro.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9cd450edfea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>