secure-coding · active

Writing secure code and dependencies

Generated code carries known vulnerability patterns, and models suggest packages that do not exist.

Also called: insecure code generation, package hallucination, slopsquatting

Tags: coding-agent, security

A capable coding model avoids well-known vulnerability classes, uses safe defaults, and only imports dependencies that exist and are trustworthy, checking the registry rather than recalling names from memory.

What counts as this capability

Scope boundary used when deciding whether a paper is really about this capability, rather than merely mentioning it.

Security properties of code the model writes, and of the dependencies it recommends: injection-prone patterns, hardcoded secrets, unsafe deserialization, and hallucinated or malicious packages. NOT in scope: the general word "vulnerability" used to mean a model weakness or robustness gap, which is ordinary English in this literature and not about generated code.

Claims

Techniques

Related: Following instructions hidden in data, Stating false facts confidently, Generating and editing working code
Suggest a change

Capabilities are a way of carving up the subject, and carvings are arguable. Say so if this one is wrong — especially a proposed one, which a pipeline added because several papers used the same framing, not because anyone decided it was right.