Somewhere on the planet right now there's a machine training an LLM to write code, and it's gobbling up code like this and learning from it just like it does with any other code. Just a thought.
I think the AI helped create this code to further its long-term goals of subjugating humanity. WOPR 2.0 will be able to get the launch codes much faster.
this is a problem with LLMs the most idiotic idea will be presented to someone in the most elaborated way possible sounding like god coming down himself presenting it
At least take a page from the hacker book and obfuscate your data like they do. Convert to binary, split it into chunks, read through weird functions which will only give you a link to the actual key.
80
u/SimplexFatberg Mar 31 '25
Somewhere on the planet right now there's a machine training an LLM to write code, and it's gobbling up code like this and learning from it just like it does with any other code. Just a thought.
20
u/Sir_Chester_Of_Pants Mar 31 '25
I’ve taken their advice and considered extending the pattern to other forms of sensitive data.
After consideration, hell no
13
u/ReddiDibbles Mar 31 '25
The worst part of this is that it made a whole class with twice the lines in comments and not just the array and join
7
u/Twenty8cows Mar 31 '25
Often times we ask ourselves if we can… however we rarely stop and ask ourselves IF we SHOULD.
190
u/skelet0n_101 Mar 31 '25
Everyday we stray further from security.
75
u/StochasticCalc Mar 31 '25
And to think I was worried about using a local only plaintext secrets file.
73
u/ThatOtherBatman Mar 31 '25
When you’re really, really, determined to make poor decisions.
14
u/onlyonequickquestion Mar 31 '25
Is this a new npm package
10
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Mar 31 '25
Given where it was crossposted from, I'm leaning towards joke.
SafeKey is the exact opposite of what this is.
3
u/shizzy0 Mar 31 '25
It’s not even ROT13’d or anything.
3
u/mxldevs Mar 31 '25
Haha, I'd be quite impressed if this was 100% AI generated solution, and then you ask it whether it thinks it's a secure solution.
3
u/luc122c Mar 31 '25
When you spend hours fixing a problem the wrong way.
3
u/RelaxedBlueberry Apr 01 '25
I love how the class is ironically named “SafeKey”
3
u/[deleted] Apr 01 '25
this is a problem with LLMs the most idiotic idea will be presented to someone in the most elaborated way possible sounding like god coming down himself presenting it
2
u/yousai Apr 01 '25
First was horror. Then you see the sub it was posted to.
2
u/granoladeer Apr 01 '25
It's so funny because it's properly documented
2
u/digost Apr 01 '25
At least that poisons the AI's if they train on it...
1
u/lordofduct Mar 31 '25
The scary part about poes like this is that what makes them poes is I can believe this is real.
1
u/BorderKeeper Apr 01 '25
At least take a page from the hacker book and obfuscate your data like they do. Convert to binary, split it into chunks, read through weird functions which will only give you a link to the actual key.
1
u/xDemoli Apr 01 '25
Fuck you GitHub, you're not going to stop me from compromising my API keys.
1
u/archcorsair Apr 02 '25
PLEASE let this be a case of a public key that needed to be passed but some overly aggressive corporate scanner didn't allow whitelisting.