LLMs Generate Predictable Passwords
好的,我现在要帮用户总结这篇文章的内容。用户的要求是用中文,控制在100字以内,不需要特定的开头,直接写描述即可。 首先,我需要通读文章内容。文章主要讨论了大语言模型(LLMs)在生成密码方面表现不佳的问题。具体来说,作者分析了50个由LLM生成的密码,发现了很多明显的模式。 接下来,我需要提取关键点。所有密码都以大写字母开头,通常是G,接着是数字7。字符选择非常不均匀,某些符号频繁出现,而有些则几乎没出现。此外,密码中没有重复字符,这在随机生成的情况下不太可能。还有特定符号如*被避免使用的情况。最令人惊讶的是,50个密码中只有30个是唯一的,有些密码重复了多次。 然后,我要把这些关键点浓缩到100字以内。确保涵盖所有主要发现:模式明显、字符选择不均、避免重复、符号偏好、重复密码问题以及LLMs不适合生成密码的结论。 最后,检查语言是否简洁明了,并且符合用户的要求。 </think> 大型语言模型(LLMs)在生成密码时表现出明显模式:通常以大写字母G开头并跟随数字7;字符选择不均且避免重复;特定符号如*被排除;50个样本中仅30个唯一密码;最常见密码重复18次。这些结果表明LLMs不适合生成安全密码。 2026-2-26 12:7:10 Author: www.schneier.com(查看原文) 阅读量:4 收藏

LLMs are bad at generating passwords:

There are strong noticeable patterns among these 50 passwords that can be seen easily:

  • All of the passwords start with a letter, usually uppercase G, almost always followed by the digit 7.
  • Character choices are highly uneven for example, L , 9, m, 2, $ and # appeared in all 50 passwords, but 5 and @ only appeared in one password each, and most of the letters in the alphabet never appeared at all.
  • There are no repeating characters within any password. Probabilistically, this would be very unlikely if the passwords were truly random but Claude preferred to avoid repeating characters, possibly because it “looks like it’s less random”.
  • Claude avoided the symbol *. This could be because Claude’s output format is Markdown, where * has a special meaning.
  • Even entire passwords repeat: In the above 50 attempts, there are actually only 30 unique passwords. The most common password was G7$kL9#mQ2&xP4!w, which repeated 18 times, giving this specific password a 36% probability in our test set; far higher than the expected probability 2-100 if this were truly a 100-bit password.

This result is not surprising. Password generation seems precisely the thing that LLMs shouldn’t be good at. But if AI agents are doing things autonomously, they will be creating accounts. So this is a problem.

Actually, the whole process of authenticating an autonomous agent has all sorts of deep problems.

News article.

Slashdot story

Tags: , , , ,

Posted on February 26, 2026 at 7:07 AM0 Comments

Sidebar photo of Bruce Schneier by Joe MacInnis.


文章来源: https://www.schneier.com/blog/archives/2026/02/llms-generate-predictable-passwords.html
如有侵权请联系:admin#unsafe.sh