paperbot · PL 论文追踪

全部论文 待读 收藏

P2 “Do this! Do that!, and Nothing will Happen” Do Specifications Lead to Securely Stored Passwords?

“做这个!做那个!,什么都不会发生”:规范能否促成安全的密码存储?
ICSE 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE)2021匹配度 1/10 · 该论文通过开发者实验研究“先写规范是否提升密码存储安全性”,属于安全与开发者行为的人因实证研究,与静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析等核心方向没有直接关联。引用 18 inbox
Joseph Hallett, Nikhil Patnaik, Benjamin Shreeve, Awais Rashid
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:通过138名开发者的对照实验发现,要求先写规范仅小幅提升密码存储安全性,开发者仍普遍不安全。

论文探究为安全敏感代码编写行为规范是否能促使开发者写出更安全的代码。作者招募138名开发者实现密码存储片段,其中一半在编码前被明确要求先写出代码行为规范,另一半直接编码。评估比较两组实现方案的安全性。结果显示,明确要求写规范对密码存储安全性仅有小幅正向影响;尽管开发者自称自信且了解相关方法,并能考虑一定威胁范围,仍经常采用不安全的密码存储方式。作者认为需要以开发者为中心、可用的指导机制,单纯列出“必须做什么”的清单效果不佳。

问题
研究为安全敏感代码编写规范是否能让开发者实现更安全的代码,尤其关注密码存储这一场景。
方法
开展包含138名开发者的对照实验:一半被要求先写代码行为规范再编码,另一半直接编码,随后分析其密码存储实现。
评估
比较两组代码所用密码存储方法的安全性,并考察开发者的自信程度、知识自评与威胁认知。
原文摘要(Abstract)

Does the act of writing a specification (how the code should behave) for a piece of security sensitive code lead to developers producing more secure code? We asked 138 developers to write a snippet of code to store a password: Half of them were asked to write down a specification of how the code should behave before writing the program, the other half were asked to write the code but without being prompted to write a specification first. We find that explicitly prompting developers to write a specification has a small positive effect on the security of password storage approaches implemented. However, developers often fail to store passwords securely, despite claiming to be confident and knowledgeable in their approaches, and despite considering an appropriate range of threats. We find a need for developer-centered usable mechanisms for telling developers how to store passwords: lists of what they must do are not working.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2102-09790,
  title = {“Do this! Do that!, and Nothing will Happen” Do Specifications Lead to Securely Stored Passwords?},
  author = {Joseph Hallett and Nikhil Patnaik and Benjamin Shreeve and Awais Rashid},
  booktitle = {ICSE},
  year = {2021},
  doi = {10.1109/icse43902.2021.00053}
}