POSTER: Memory-Bounded PCFG Streaming: A Probability-Ordered Protocol for Large-Scale Password Generation
Abstract
Probabilistic context-free grammar (PCFG) models are highly effective at guessing passwords since they prioritize the most likely human-generated patterns first. However, when generating a massive list of passwords across distributed systems, they may encounter a major problem: it accumulates too much grammar data, queued tasks, and generated password lists in its active memory. Often, the system's memory becomes entirely full before the actual password hashing can even become a bottleneck. To solve this, we introduce a ''memory-bounded'' protocol. Our system maps a shared set of grammar rules to deterministic, numbered intervals and limits how many model pages and password batches are held in memory. A central ''coordinator'' manages task assignments and keeps a ledger of progress, while ''consumers'' fetch the generated passwords so the bulky password data never sits in the coordinator's memory. Once a batch is done, an acknowledgment is sent to save the progress and immediately delete the used memory. If a timeout occurs, the exact same interval is simply replayed. In our tests, the proposed system successfully generated 10 billion password candidates, while the standard setup crashed.
Community
0 commentsNo discussion yet
Be the first to share a question or observation.