logoalt Hacker News

Why LLM-Generated Passwords Are Dangerously Insecure

16 pointsby zdwlast Thursday at 12:39 AM16 commentsview on HN

Comments

catlifeonmarstoday at 4:44 PM

This article has “why stabbing yourself with a screwdriver is bad” vibes.

gmusleratoday at 5:23 PM

This asks for a dictionary attack, not of common words, but for tokens from training that have some weight related to good passwords.

At least regarding “normal” text generation, if you tell somewhat to the LLM that generate a Python script to write down a random password and use it it may have better quality.

ks2048today at 4:43 PM

Had me wonder - if you ask an LLM for a random number 1...100, what distribution do you get? Surely many have run this experiment. Here's a link that looks like a good example, https://sanand0.github.io/llmrandom/

show 2 replies
petcattoday at 4:36 PM

> LLM-generated passwords (generated directly by the LLM, rather than by an agent using a tool)

This seems like kind of a pointless analysis to me? Humans also generate bad passwords. It's why we use crypto-hardened RNG tools.

show 1 reply
himata4113today at 4:19 PM

huh, for me it just generates <username>123 when I ask it to generate a password lol, sometimes adds a !, more often it just forces changeme rather than having any password.

Mordisquitostoday at 4:41 PM

I only clicked on the article with no intention of reading it (no time), but rather out of morbid curiosity as to why on earth anybody would need to be told that LLMs should absolutely not be used to generate passwords.

> [...] Despite this, LLM-generated passwords appear in the real world – used by real users, and invisibly chosen by coding agents as part of code development tasks, instead of relying on traditional secure password generation methods.

Jesus F'ing Christ. I hope to have time to read the whole thing later.

show 1 reply
CrzyLngPwdtoday at 4:49 PM

The article reads like it was written by a machine.

camgunztoday at 4:38 PM

Honest question, how much money would I make off an MCP service to generate passwords for claws and agents. Is there still gas left in the griftmobile, are prospectors still in need of shovels, will the gods bless my humble, shameless lunge for my slice of the pie?

show 2 replies
stanmancantoday at 4:29 PM

Obligatory https://xkcd.com/221/

dfir-labtoday at 4:37 PM

[dead]

Terr_last Thursday at 12:56 AM

[dead]