情绪支持工具的本地数据控制与验证
Local Data Control and Verification in an Emotional Support Tool
DOI: 10.12677/sea.2026.156078, PDF,    科研立项经费支持
作者: 丁晓伟, 吴铭祺, 王建豪:上海工程技术大学管理学院,上海
关键词: 本地运行;数据最小化;用户控制;情绪记录;软件验证;Local Execution; Data Minimization; User Control; Emotional Records; Software Verification
摘要: 本研究以心潮AI项目中期成果中的单机单用户原型为对象,核对情绪记录从同意、保存到导出、删除及可选在线发送的控制范围。研究结合源代码审查与3组既有自动化回归测试,检查同意状态约束、重启恢复、重复提交、请求来源、数据删除、损坏文件保护和状态回顾计算。原稿记录显示,3个测试组全部通过:未同意时读取记录被拒绝,重复编号未新增记录,重启后记录恢复,清除后撤回同意,损坏文件未被覆盖,缺失日期保留空值。源码同时显示,记录以明文保存,同意状态由本机共享,导出限于已加载记录,在线发送未设置服务端独立授权;启用个性化时,偏好代码可随系统提示参与外部请求。研究者能够核对本机文件与接口状态,但这些证据不覆盖导出副本、第三方留存或用户对操作后果的理解。本地运行不能单独证明完整隐私保护,后续仍需验证独立授权、访问隔离和用户理解。
Abstract: This study examines consent, saving, export, deletion, and optional online sending in a standalone, single‑user emotional support prototype developed as part of the interim results of the Xinchao AI project. The original manuscript reports source code review and three automated regression test groups covering access control, restart recovery, duplicate submissions, origin checks, deletion, corrupted files, and state review. All three groups reportedly passed under their specified conditions. The manuscript also describes plaintext JSON storage, a shared local consent state, export of loaded records, and no independent server-side authorization for online sending. If personalization is enabled, a preference code may enter an external request through the system prompt. This revision did not receive the code, logs, or runnable environment, so the historical results could not be independently reproduced. A STRIDE-based analysis identifies further tests for file access, CSRF, malicious input, shared devices, and residual copies. Local operation alone does not establish comprehensive privacy protection or third-party deletion.
文章引用:丁晓伟, 吴铭祺, 王建豪. 情绪支持工具的本地数据控制与验证[J]. 软件工程与应用, 2026, 15(6): 837-845. https://doi.org/10.12677/sea.2026.156078

参考文献

[1] Huckvale, K., Torous, J. and Larsen, M.E. (2019) Assessment of the Data Sharing and Privacy Practices of Smartphone Apps for Depression and Smoking Cessation. JAMA Network Open, 2, e192542.
https://doi.org/10.1001/jamanetworkopen.2019.2542
[2] Tangari, G., Ikram, M., Ijaz, K., Kaafar, M.A. and Berkovsky, S. (2021) Mobile Health and Privacy: Cross Sectional Study. BMJ, 373, n1248.
https://doi.org/10.1136/bmj.n1248
[3] Iwaya, L.H., Babar, M.A., Rashid, A. and Wijayarathna, C. (2022) On the Privacy of Mental Health Apps: An Empirical Investigation and Its Implications for App Development. Empirical Software Engineering, 28, Article No. 2.
https://doi.org/10.1007/s10664-022-10236-0
[4] 马骋宇, 刘乾坤. 移动健康应用程序的隐私政策评价及实证研究[J]. 图书情报工作, 2020, 64(7): 46-55.
[5] 赵杨, 严周周, 沈棋琦, 等. 基于机器学习的医疗健康APP隐私政策合规性研究[J]. 数据分析与知识发现, 2022, 6(5): 112-126.
[6] 马家伟, 张艳丰, 唐思慧. 我国在线健康咨询类APP隐私政策合规性用户感知测度实证研究[J]. 图书情报工作, 2022, 66(15): 86-96.
[7] 张玥, 王坚, 余姝, 等. 信息表征对移动医疗APP隐私政策阅读效果的影响研究——基于认知负荷理论[J]. 图书情报工作, 2021, 65(11): 3-13.
[8] Kleppmann, M., Wiggins, A., van Hardenberg, P. and McGranaghan, M. (2019) Local-First Software: You Own Your Data, in Spite of the Cloud. Proceedings of the 2019 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software, Athens, 23-24 October 2019, 154-178.
https://doi.org/10.1145/3359591.3359737
[9] Souppaya, M., Scarfone, K. and Dodson, D. (2022) Secure Software Development Framework (SSDF) Version 1.1: Recommendations for Mitigating the Risk of Software Vulnerabilities: NIST SP 800-218. National Institute of Standards and Technology.
[10] OWASP Foundation (2025) Application Security Verification Standard 5.0.0.
https://github.com/OWASP/ASVS/releases/tag/v5.0.0_release
[11] Microsoft (2026) Microsoft Threat Modeling Tool Threats.
https://learn.microsoft.com/en-us/azure/security/develop/threat-modeling-tool-threats
[12] Fielding, R., Nottingham, M. and Reschke, J. (2022) HTTP Semantics: RFC 9110.
https://www.rfc-editor.org/rfc/rfc9110.html
[13] Barth, A. (2011) The Web Origin Concept: RFC 6454.
https://www.rfc-editor.org/rfc/rfc6454
[14] OWASP Foundation (2026) Authorization Cheat Sheet.
https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html
[15] 李瑶, 杨琳. 人工智能应用于心理健康服务的相关问题思考[J]. 医学与哲学, 2022, 43(5): 49-54.
[16] 翟运开, 周帆, 张坤. 移动健康应用隐私安全评价体系的构建与实证研究[J]. 图书情报工作, 2024, 68(14): 3-13.
[17] Cavoukian, A. (2011) Privacy by Design: The 7 Foundational Principles.
https://www.sfu.ca/~palys/Cavoukian-2011-PrivacyByDesign-7FoundationalPrinciples.pdf
[18] Nissenbaum, H. (2004) Privacy as Contextual Integrity. Washington Law Review, 7, 119-158.
https://digitalcommons.law.uw.edu/wlr/vol79/iss1/10/