[Paper Review] Using Cognitive Dimensions Questionnaire to Evaluate the Usability of Security APIs
This study evaluates the effectiveness of cognitive dimensions questionnaires—both the original Clarke (2004) version and an enhanced security-specific variant—for identifying usability issues in security APIs. The improved questionnaire revealed significantly more usability issues (11.6 per participant vs. 8.0) and captured high-level insights that observation alone missed, demonstrating its value for detecting cognitive usability problems in security API design.
Usability issues that exist in security APIs cause programmers to embed those security APIs incorrectly to the applications they develop. This results in introduction of security vulnerabilities to those applications. One of the main reasons for security APIs to be not usable is currently there is no proper method by which the usability issues of security APIs can be identified. We conducted a study to assess the effectiveness of the cognitive dimensions questionnaire based usability evaluation methodology in evaluating the usability of security APIs. We used a cognitive dimensions based generic questionnaire to collect feedback from programmers who participated in the study. Results revealed interesting facts about the prevailing usability issues in four commonly used security APIs and the capability of the methodology to identify those issues.
Motivation & Objective
- To assess the applicability of cognitive dimensions questionnaires for evaluating the usability of security APIs.
- To compare the effectiveness of Clarke (2004)’s original questionnaire with an enhanced version tailored for security APIs.
- To identify usability issues in four widely used security APIs through empirical evaluation with programmer participants.
- To provide a systematic methodology for security API developers to detect and fix usability flaws before deployment.
Proposed method
- Conducted an empirical study with 7 programmer participants using four security APIs: Bouncycastle, Jasypt, Apache Shiro, and Java Cryptography Architecture (JCA).
- Participants completed programming tasks involving reading, writing, and debugging code using the target security APIs.
- Collected usability feedback via two cognitive dimensions questionnaires: Clarke (2004)’s original 12-dimension framework and an enhanced 15-dimension version with security-specific dimensions.
- Analyzed both observational data (task performance and code artifacts) and questionnaire responses to identify usability issues.
- Used intersection analysis to compare issues found via observation versus questionnaire responses.
- Applied analyst triangulation to improve reliability, though current analysis was conducted by a single researcher.
Experimental results
Research questions
- RQ1To what extent does the cognitive dimensions questionnaire method effectively identify usability issues in security APIs?
- RQ2How do the original Clarke (2004) questionnaire and the enhanced security-specific version compare in identifying usability issues?
- RQ3What types of usability issues are uniquely revealed by the questionnaire that are missed by direct observation and code analysis?
- RQ4How do the questionnaire responses provide high-level insights into usability problems not directly observable in task performance?
Key findings
- The questionnaire method successfully captured 74% of all identified usability issues on average (SD = 17.6%), indicating strong feedback collection efficacy.
- Only 25.8% of usability issues identified through observation and code analysis were also captured by the questionnaire, indicating limited overlap between methods.
- The enhanced questionnaire revealed 11.6 usability issues per participant (SD = 4.6), significantly more than the original questionnaire’s 8.0 issues per participant (SD = 3.7).
- The questionnaire captured 8.8 issues per participant (SD = 3.8) that were not observable through task performance or code analysis, particularly in cognitive dimensions like progressive evaluation, premature commitment, and testability.
- The questionnaire provided high-level insights into issues such as unclear function parameters (e.g., Scrypt.generate()), even when the exact problem was not explicitly stated.
- The enhanced questionnaire’s inclusion of security-specific dimensions improved detection of critical usability flaws, such as lack of clarity on security knowledge prerequisites and difficulty in avoiding misuse.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.