Paper on ContractLens, a frozen-LLM detector for malicious contracts via layer probes and activation units, because security was latent.
1 comment
The thing that gets me is the frozen-LLM part, because for contract auditing the usual choices have been either symbolic/static tools that only cover the properties you encoded up front, or fine-tuned classifiers that end up learning whatever surface junk correlates with the label set. If these MCDUs really track malicious intent rather than comments, formatting, or naming, that is useful as a triage signal, not just another black-box score.
I also like the counterfactual angle here, removing the bad logic and checking that the internal activations move more than under harmless rewrites. That is the sort of control people usually skip, and without it a probe can look great while only reading length or boilerplate. Still, for deployed contracts I would want this paired with something that catches the actual code path, because latent features are nice until the attacker just shuffles the payload around a bit.