It also seems dangerous in the sense that… if there’s a type of prompt that is likely to create infected code, our intelligence agencies would, I guess, want it to hit our adversaries selectively. So they’ll have more rolls of the dice to detect it. So, it is actively creating a situation where our adversaries are more likely to have knowledge of the vulnerabilities.
As you've pointed out, this vector would give them near surgical precision and insight into their target's code & systems, rather than casting a wide net with a vulnerable library on Github. They could use a model trained on "underhanded" code or even selectively overwrite parts of the responses with hand-crafted vulnerabilities while only targeting select organizations.
It makes me wonder what the business model of OpenAI and their peers is going to be over the long term. I can't imagine large corporations using "LLM as a service" indefinitely with the risk of IP theft and "bug injection".
Or just pay or threaten a struggling company or dev to insert them?
easier to clone and infect existing ones. what you are describing might be effective but would be orders of magnitude more time consuming.
cloning and infecting provides 100x more opportunities because these are already popular repos
as to paying or coercing someone, again it costs time and money. far easier to just abuse this loophole
The greatest danger from LLMs is people who beleive they are receiveing data that hasnt been tampered with when we already know that LLMs are filtered before public use for terms. Imagine a day where kids and adults ask a LLM what the meaning of life is, should they go outside, what happened in WW2, etc.
People could be programmed in a more tailopred fashion than todays facebook shorts and youtube can deliver.
I've gotten that a few times and it's nice to know it's not a limitation of the LLM.
1. Internal instructions telling the generator to avoid exactly that. We wouldn't want to rely on this alone though.
2. Due to LLMs nature, it's unlikely that such generated malicious code would repeat addresses of actual malicious actors. This still leaves a variety of attack vectors such as bind shell, dos, on-site exfiltration, and more.
Using LLMs means investing more effort in code review. I think that's a worthwhile trade.
Why review code at all if you think your coworkers are infallible?
It looks like there’s been a communication hiccup or something; I think you are saying that the LLM user should treat LLM code as if it is written by an unreliable team-mate who might copy-paste from the internet, and check it.
Jprete seems to be talking about just receiving a PR from a person who didn’t do that checking and just directly is using the LLM code.
I agree with you, but I think it is worth noting that
> This is not a worthwhile trade
> It's a worthwhile trade
The difference here is not in whether or not the trade is worthwhile; you are just talking about two different trades .
I don't think it's OK for a coworker to contribute a PR generated by an LLM without having already reviewed it and being ready to declare that they are confident in its quality.
0: https://pncnmnp.github.io/blogs/translating-dijakstra.html
Given that LLMs are popular coding assistants, I suspect there are already many issues similar to `goto fail;`
Given the way LLMs are trained, it might be unlike but it is conceivable that if they see deliberate back doors injected into enough of the training data, they'll consider it to be a valid part of a certain class of solution and output the same themselves. It is a big step again from deliberate back-doors to active malware, but not an inconceivable one IMO if large enough chunks of code are being trusted with minimal testing.
Of course if this is underhanded code (not to be confused with obfuscated - I won't accept obfuscated code from LLMs) I might miss things.
https://news.ycombinator.com/item?id=39549482
“we show how an attacker could compromise the Hugging Face Safetensors conversion space and its associated service bot. These comprise a popular service on the site dedicated to converting insecure machine learning models within their ecosystem into safer versions.”
You don't need tools in the age of AI, just ass an AI pipeline step.
If malware is massively prolific in public repos, how much does this affect LLMs and other automation tools that are trained using the contents of such resources? What are the chances that we'll see copilot & friends occasionally emit malware in response to coding questions that generate responses long enough for accidentally malicious parts to hide amongst? Simpler vulnerabilities such as simple injection vectors have often been seen already.