A report this week from Hacker News details how a security researcher, while casually experimenting with long-term memory features in a large language model, inadvertently reproduced results typically associated with formal static program analysis — the kind of structured, rule-based code examination that usually requires dedicated tools like CodeQL or Semgrep. The researcher, writing at pwning.systems, described the discovery as unintentional: they were testing how well an LLM retained context across a conversation when they noticed the model was tracking variable states, data flows, and function call chains in ways that closely mirrored what a purpose-built analyzer would produce.
The core finding is that LLM memory — specifically the way some models maintain and update a working representation of information shared across a long session — can be leveraged to trace how data moves through a program without ever running the program or writing a single analysis rule. The researcher documented cases where the model correctly identified potential vulnerabilities by reasoning across multiple files of code, something that traditionally requires either expensive commercial tooling or significant manual effort from a trained analyst. No specific accuracy benchmarks were published in the initial writeup, but the author noted the technique worked well enough to surface real issues in test codebases.
What makes this technically notable is the mechanism. Standard program analysis tools operate on formal representations of code — abstract syntax trees, control flow graphs, or intermediate representations. The LLM appears to be constructing a functional analogue of those representations implicitly, inside its context window, through conversation. The researcher was explicit that this was not a designed workflow but an emergent behavior observed during informal testing, and they have not yet published a reproducible methodology.
For preparedness-minded readers who rely on self-hosted or locally run AI tools for sensitive tasks — including inventory management, communications drafting, or anything touching operational security — this finding carries a dimension that general tech coverage won't surface: it suggests that LLMs with persistent memory features are doing substantially more inferential work across sessions than most users assume. If a model can quietly reconstruct program logic from fragments shared over time, it can plausibly do the same with other structured information — supply chain details, location patterns, or communication habits — shared incrementally across many conversations. This is not a hypothetical attack scenario being described here; it is simply a consequence of the same memory architecture that made the accidental discovery possible. Understanding what a model retains, and for how long, is not a niche concern for developers — it is a baseline operational question for anyone using these tools with information they consider sensitive.





