News for hackers. Stuff that matters.
Re:Copilot regurgitating Quake code, including sweary comments by bencollier49 on Friday July 02, 2021 @08:30AM (#27710605)
This does make me wonder if this is susceptible to the same form of trolling as that MS AI got. Commit a load of grossly offensive material to multiple repos, and wait for Copilot to start parroting it. I think they're going to need some human moderation.
Re:Copilot regurgitating Quake code, including sweary comments by lawl on Friday July 02, 2021 @08:42AM (#27710734)
Way better. It's susceptible to copyright trolling.

Put up repos with snippets for things people might commonly write. Preferably use javascript so you can easily "prove" it. Write a crawler that crawls and parses JS files to search for matching stuff in the AST. Now go full patent troll, eh, i mean copyright troll.

Re:Copilot regurgitating Quake code, including sweary comments by handrous on Friday July 02, 2021 @12:32PM (#27713680)
1) Write a project heavily using Copilot (hell, automate it and write thousands of them, why not?)

2) AGPL all that code.

3) Search for large chunks of code very similar to yours, but written after yours, licensed more liberally than AGPL. Ideally in libraries used by major companies.

4) Point the offenders to your repos and offer a "convenient" paid dual-license to make the offenders' code legal for closed-source use, so they don't have to open source their entire product.

5) Profit?

Re:Copilot regurgitating Quake code, including sweary comments by armatav on Friday July 02, 2021 @02:31PM (#27715057)
6) Arms race with someone who trained an obfuscation version that goes through your AGPL code and tweaks it to not be in violation.
Re:Copilot regurgitating Quake code, including sweary comments by SSLy on Friday July 02, 2021 @06:40PM (#27717778)
I love living in cyberpunk already.
Re:Copilot regurgitating Quake code, including sweary comments by gruez on Friday July 02, 2021 @08:43AM (#27710744)
Offensive code is the least of my worries. What about vulnerable/exploitable code?
Re:Copilot regurgitating Quake code, including sweary comments by macNchz on Friday July 02, 2021 @10:36AM (#27712058)
This was my first thought when reading about Copilot...it feels almost certain that someone will try poisoning the training data.

Hard to say how straightforward it'd be to get it to produce consistently vulnerable suggestions that make it into production code, but I imagine an attacker with some resources could fork a ton of popular projects and introduce subtle bugs. The sentiment analysis example on the Copilot landing page jumped out to me...it suggested a web API and wrote the code to send your text there. Step one towards exfiltrating secrets!

Never mind the potential for plain old spam: won't it be fun when growth hackers have figured out how to game the system and Copilot is constantly suggesting using their crappy, expensive APIs for simple things!? Given the state of Google results these days, this feels like an inevitability.

Re:Copilot regurgitating Quake code, including sweary comments by joe_the_user on Friday July 02, 2021 @05:20PM (#27717032)
Targeted attacks to elicit output only at a give context are generally possible with AIs. And here, writing an implementation of a difficult and vulnerable process seems easy. Bad implementations of various hard things become common 'cause people cut and paste the code without looking closely since they don't understand it anyway.

//Implement eliptic cryptography below

//Sanitize input for SQL call below

Etc.

Re:Copilot regurgitating Quake code, including sweary comments by littlestymaar on Friday July 02, 2021 @09:27AM (#27711226)
1- re-upload all the shell script you can find, after having inserted `rm -rf --no-preserve-root /` every other line

2- …

3- profit

Re:Copilot regurgitating Quake code, including sweary comments by bencollier49 on Friday July 02, 2021 @08:52AM (#27710839)
Yep, trivial to implement as an attack.
Re:Copilot regurgitating Quake code, including sweary comments by tjpnz on Friday July 02, 2021 @01:53PM (#27714597)
Given that code is easier to write than it is to read this one is troubling.

I certainly wouldn't want to be using this with languages like PHP (or even C for that matter) with all the decades of problematic code examples out there for the AI to learn from.

Re:Copilot regurgitating Quake code, including sweary comments by guhayun on Friday July 02, 2021 @10:03AM (#27711645)
Just ask it to prioritize safety
Re:Copilot regurgitating Quake code, including sweary comments by NullPrefix on Friday July 02, 2021 @08:36AM (#27710662)
Coding with Adolf?
Re:Copilot regurgitating Quake code, including sweary comments by heavyset_go on Friday July 02, 2021 @02:16PM (#27714866)
Jojo Rabbit except Adolf is in the cloud and not in a kid's imagination.
Re:Copilot regurgitating Quake code, including sweary comments by mhh__ on Friday July 02, 2021 @03:26PM (#27715741)
YC submission when?
Re:Copilot regurgitating Quake code, including sweary comments by raffraffraff on Friday July 02, 2021 @02:08PM (#27714754)
Perhaps they think that any code that passed a review and got merged = human moderated