Metraipolis › archive › dc_f3514bc2f11a

A Hybrid Approach for Automated Security Pattern Recovery — arXiv:2611.05823

Source
arXiv (en)
Original
https://arxiv.org/abs/2611.05823
License (as archived)
CC0-1.0
Archived
2026-11-05T18:17:35.330Z
SHA-256 of the archived text
ff5187d308f97cd9ff6263cad40836fe56b9b319c70aba5b6a1d121b17415e20
Stable URL of this page
https://metraipolis.com/documento/dc_f3514bc2f11a

How to cite

A Hybrid Approach for Automated Security Pattern Recovery — arXiv:2611.05823 — arXiv (en), https://arxiv.org/abs/2611.05823 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f3514bc2f11a (Metraipolis archive dc_f3514bc2f11a, sha256 ff5187d308f97cd9ff6263cad40836fe56b9b319c70aba5b6a1d121b17415e20)
BibTeX
@misc{dcf3514bc2f11a,
  title = {A Hybrid Approach for Automated Security Pattern Recovery — arXiv:2611.05823},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2611.05823},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f3514bc2f11a; sha256 ff5187d308f97cd9ff6263cad40836fe56b9b319c70aba5b6a1d121b17415e20},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.05823. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Security-by-design emphasises integrating security into software design and development. Security pattern catalogues operationalise this principle by prescribing reusable architectural solutions to recurring security problems. However, recovering their implementations from source code remains challenging because security patterns are abstract, span multiple components, and admit many valid implementations. We present SecPatRec, a hybrid approach for automated security pattern recovery from source code repositories. We treat a security pattern as a reference architecture and frame its recovery as a deductive task: determining which prescribed roles are present, grounding them in code entities, and recovering their interaction sequences. SecPatRec pairs a ReAct-style LLM agent equipped with semantic and lexical code search for role detection and grounding with static code property graph analysis for interaction recovery. We curate a human-validated ground-truth dataset of 100 pattern instances covering five security patterns across 93 open-source Java and Python repositories, and introduce a three-level evaluation framework measuring recovery correctness against this ground truth. We evaluate SecPatRec using four LLMs, including proprietary and open-source models. Averaged over all models and pattern instances, SecPatRec achieves role-detection accuracy of 0.84, role-grounding similarity of 0.84, and an interaction-recovery score of 0.66. Compared to a one-shot end-to-end LLM baseline, SecPatRec achieves higher aggregate recovery scores and lower estimated LLM API costs per run, while processing repositories that exceed the baseline's configured input limit. The recovered role mappings and statically derived interaction sequences provide structural and behavioural evidence that can support inspection of security-pattern implementations.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Cryptography and Security (cs.CR) ; Artificial Intelligence (cs.AI); Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2611.05823 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-11-05T18:12:49.036Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).