Explainable Security

Luca Viganò, Daniele Magazzeni · DOI

Abstract

The Defense Advanced Research Projects Agency (DARPA) recently launched the Explainable Artificial Intelligence (XAI) program that aims to create a suite of new AI techniques that enable end users to understand, appropriately trust, and effectively manage the emerging generation of AI systems. In this paper, inspired by DARPA's XAI program, we propose a new paradigm in security research: Explainable Security (XSec). We discuss the “Six Ws” of XSec (Who? What? Where? When? Why? and How?) and argue that XSec has unique and complex characteristics: XSec involves several different stakeholders (i.e., the system's developers, analysts, users and attackers) and is multi-faceted by nature (as it requires reasoning about system model, threat model and properties of security, privacy and trust as well as about concrete attacks, vulnerabilities and countermeasures). We define a roadmap for XSec that identifies several possible research directions.

Introduction

Security has traditionally been treated as a "black box." Systems are often presented as binary—either secure or insecure—leaving users to navigate complex privacy policies or trust technical implementations blindly. This gap between technical security and perceived trust often leads to users bypassing security features or developers failing to grasp the full scope of vulnerabilities. Inspired by the Explainable AI (XAI) movement, we propose Explainable Security (XSec). XSec aims to bridge this gap by enabling systems to communicate their logic, threats, and defenses to a wide range of stakeholders.

The Six Ws of Explainable Security

To formalize XSec, we establish a conceptual framework organized around the "Six Ws." This framework addresses the multi-faceted nature of security explanations, accounting for the diverse needs of different actors in the security ecosystem.

The Six Ws of Explainable Security (XSec) framework.
  • Who: Identifies the stakeholders, including designers, users, analysts, and even attackers. Explanations may be tailored for humans or automated software agents.
  • What: Defines the content, such as system models, security properties (integrity, anonymity), threat models, and specific countermeasures.
  • Where: Delivery mechanisms include embedding explanations in security policies, "Security-as-a-Service," or "security-explanation-carrying-systems."
  • When: Explanations are vital throughout the lifecycle—from design and installation to active attack response and modification.
  • Why: The primary goals are building trust, transparency, accountability, and usability.
  • How: Communication modes range from natural language and graphical attack trees to formal proofs and gamified learning.

Key Insights and Adversarial Challenges

XSec differs significantly from XAI due to its inherent adversarial nature. In a security context, an explanation is a double-edged sword. While it helps a legitimate user understand a system, it could inadvertently provide an attacker with a roadmap for exploitation. Finding the balance between transparency and security is a central challenge.

A key proposal in XSec is the Security-Explanation-Carrying-System. Similar to "proof-carrying code," this involves appending a digitally signed explanation directly to software or protocols. For example, in Multi-Factor Authentication (MFA), a system should not just demand a biometric; it should explain why a password alone is insufficient against specific current threats, thereby increasing user compliance and trust.

Roadmap and Future Directions

The formalization of XSec opens several research avenues:

  1. Information Leakage Trade-offs: Developing methods to provide helpful explanations to users without revealing sensitive information to attackers.
  2. Evaluation Metrics: Establishing standardized ways to measure "explanation quality" and its impact on actual security behavior through user studies.
  3. Formalization: Creating languages that translate complex security proofs into human-understandable narratives without sacrificing technical accuracy.

By making security transparent, XSec seeks to move beyond blind trust toward a future where security is understandable, verifiable, and robust.

Summary updated

BibTeX
@inproceedings{vigano2020explainable,
  author = {Luca Viganò and Daniele Magazzeni},
  title = {{Explainable Security}},
  booktitle = {EuroS\&P Workshops},
  year = {2020},
  doi = {10.1109/eurospw51379.2020.00045},
}
Figure