Explainable Security

Luca Viganò, Daniele Magazzeni

Abstract

Security is notoriously difficult to achieve, reason about, and explain. This paper introduces Explainable Security (XSec), a novel research paradigm inspired by Explainable AI (XAI). XSec aims to bridge the gap between technical security realities and user perception by making security properties, threats, and defenses transparent and understandable to a wide range of stakeholders, from end-users to system analysts.

Introduction: The Gap in Perceived Security

In cybersecurity, a significant discrepancy often exists between "actual security"—the technical robustness of a system—and "perceived security"—the trust stakeholders place in that system. Security decisions are frequently opaque "black boxes": users may be denied access without explanation, or developers may implement protocols without fully understanding the underlying threat models.

While the field of "usable security" focuses on making tools easier to operate, it often neglects the "why" and "how" behind security mechanisms. Without meaningful explanations, users cannot appropriately trust systems, and developers struggle to manage emerging threats. XSec addresses this by formalizing the communication of security information.

The XSec Framework: The Six Ws

XSec is established as a conceptual framework and research roadmap defined by the "Six Ws". This framework categorizes the essential dimensions of security explanations.

The Six Ws of Explainable Security (XSec) framework.
  • Who: Identifies stakeholders, including designers, users, attackers, analysts, and defenders. It distinguishes between internal explanations (for software agents) and external ones (for humans).
  • What: Defines the content, such as system models, security properties (confidentiality, integrity), threat models, and attack traces.
  • Where: Explores the location of explanations—embedded in policies, provided as "Security-as-a-Service," or attached to the system itself.
  • When: Argues for explanations throughout the lifecycle: design, implementation, runtime defense, and decommissioning.
  • Why: Focuses on goals like transparency, justification, accountability, and building trust.
  • How: Suggests communication via natural language, graphical models (e.g., attack trees), formal proofs, or gamified learning.

Key Insights and Innovations

A central tenet of XSec is Stakeholder Multiplicity. Unlike XAI, which primarily targets end-users, XSec recognizes that even attackers (e.g., in penetration testing) and analysts require explanations to justify actions or patches.

The authors illustrate XSec using Multi-Factor Authentication (MFA). Rather than a simple prompt, an XSec-enabled MFA would explain why a password alone is insufficient and how the second factor mitigates specific risks like credential stuffing. Furthermore, the paper proposes Security-Explanation-Carrying Systems, inspired by "proof-carrying code," where signed, verifiable explanations are bundled with software to ensure rationale remains accessible and tamper-proof.

Crucially, explanations must be "relativized"; they must be tailored to the recipient. Excessive detail may confuse a novice, while over-disclosure to an attacker could compromise the system.

Differentiating XSec and the Paradox of Disclosure

XSec is distinct from related fields. Unlike Usable Security, which focuses on ease of use, XSec emphasizes understanding and reasoning. It also differs from Security Awareness, which provides general education, by offering context-specific, actionable information.

However, the field faces the Paradox of Disclosure: the explanation itself can become a vulnerability if it reveals too much internal logic to a malicious actor.

Limitations and Future Roadmap

The primary challenge for XSec is managing the trade-off between useful transparency and information leakage. Future research must:

  1. Formalize Languages: Move from high-level frameworks to automated tools and formal languages for generating explanations.
  2. Develop Metrics: Establish standard ways to measure the effectiveness of security explanations, likely requiring interdisciplinary collaboration with psychology.
  3. Address Legal Implications: Explore the potential for security explanations to become legally binding documents.

By formalizing these dimensions, XSec provides a roadmap for creating systems that are not only secure but also demonstrably and understandably so.

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