logoalt Hacker News

xyzallast Friday at 10:22 AM2 repliesview on HN

Does anyone have an idea how to generate, say, insecure code, en masse? I think it should be the next frontier. Not feed them random bytestream, but toxic waste.


Replies

moooo99last Friday at 10:37 AM

Ironically, probably the fastest way to create insecure code is by asking AI chatbots to code

tpxllast Friday at 6:37 PM

Create a few insecure implementations, parse them into an AST, then turn them back into code (basically compile/decompile) except rename the variables and reorder stuff where you can without affecting the result.