Abstract:Password semantic features refer to the implicit natural language connotations, cultural associations, and logical meanings contained in passwords. These features are formed when users create passwords following linguistic rules, and they constitute a key research subject in password security analysis. To address the limitations of existing heuristic and machine learning methods, including insufficient coverage for extracting complex password features and high risks of overfitting, this paper proposes an automated analysis and extraction technique for password semantic features based on chain-of-thought (CoT). Firstly, a hierarchical reasoning framework was established to decompose complex passwords into feature labels at the character level, segment level and combination level, which covers composite features such as semantic relevance, structural patterns and symbol substitution. Secondly, with few-shot example embedding and logical decomposition mechanisms, dynamic reasoning chains were constructed separately for numeric segments (e. g. , years, homophones, sequences), alphabetic segments (e. g. , keyboard paths, natural language content, name-related information) and symbol segments (e. g. , substitution rules, keyboard layout patterns). The feature coverage rate reaches 77. 38%, representing a 12. 8% improvement over traditional zero-shot prompting methods. Finally, a multi-prompt tuning mechanism for password feature analysis was designed. Self-consistency was adopted to stabilize the semantic feature analysis and extraction task, which further alleviates problems caused by single reasoning paths, such as incomplete feature recognition, redundant outputs and misclassified labels.