Mutation-based Evaluation of Cryptographic API Misuse Detectors

Amit Seal Ami, Scott Marsden, Kevin Moran, Denys Poshyvanyk, Adwait Nadkarni
7/15/2021
cs.CRcs.SE

Official code: Secure-Platforms-Lab-W-M/MASC-Artifact (13 stars, last commit 2023-03-08).

Abstract

The correct use of cryptography is central to ensuring data security in modern software systems. Hence, several academic and commercial static analysis tools have been developed for detecting and mitigating crypto-API misuse.

Show full abstract

While developers are optimistically adopting these crypto-API misuse detectors (or crypto-detectors) in their software development cycles, this momentum must be accompanied by a rigorous understanding of their effectiveness at finding crypto-API misuse in practice. This paper describes the MASC framework, which enables a systematic and data-driven evaluation of crypto-detectors using mutation testing. We ground MASC in a comprehensive view of the problem space by developing a data-driven taxonomy of existing crypto-API misuse, containing 107 misuse cases organized among nine semantic clusters. We develop 19 generalizable usage-based mutation operators and three mutation scopes that can expressively instantiate thousands of compilable variants of the misuse cases for thoroughly evaluating crypto-detectors. Using MASC, in a previous study, we evaluated nine major crypto-detectors and discovered 19 unique, undocumented flaws that severely impact the ability of crypto-detectors to discover misuses in practice. This paper substantially extends our MASC framework and offers updated evaluation of the crypto-detectors in our 2022 study, in addition to 5 more, major crypto-detectors. Through this work, we find 6 new, undocumented flaws, and demonstrate that these flaws affect the crypto-detectors regardless of their origin; open-source community, industry, and/or research. We conclude with a discussion on the diverse perspectives that influence the design of crypto-detectors and future directions towards building security-focused crypto-detectors by design.

View on arXivView PDF

Code Implementations(1)

133Aug 10, 20213 years ago

Similar Papers

Cite this paper

@article{ami2021mutationbased,
  title  = {Mutation-based Evaluation of Cryptographic API Misuse Detectors},
  author = {Amit Seal Ami and Scott Marsden and Kevin Moran and Denys Poshyvanyk and Adwait Nadkarni},
  year   = {2021},
  eprint = {2107.07065},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.07065}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.07065.svg)](https://codeofpaper.com/paper/2107.07065)

Discussion