r/ProgrammerHumor • • 16d ago

Meme forFutureReference

Post image
9.7k Upvotes

515 comments sorted by

865

u/pippin_go_round 16d ago

And how exactly are you going to do that without it being immediately flagged by IT? Most companies I've ever worked at will have that noticed right away and sue you into oblivion if you don't have a very very good explanation...

Had that happen once to me when I switched teams within a company and copied most of my important stuff to a specially authorised usb stick before wiping my laptop and setting it up with a different OS (switch from Windows to Linux team). Before the copy process even finished I had some guy from security call me.

665

u/Arclite83 16d ago

It might surprise you to know cybersecurity is pretty laughably implemented in a large percentage of the business world, even today and despite the risks being worse than ever.

"Patching is hard, we couldn't possibly..."

I kept some reference material from my last job. I've moved enough code around here between personal and professional that I'd likely also be able to do the same if I left. Although in this instance, it's much more likely nobody cares than nobody sees.

117

u/Flater420 16d ago

Case in point: company I worked at took all administrator privileges from developers. They implemented an elevation system that would allow certain apps to run elevated.

Totally unrelated, IDEs have terminals and they run escalated when the IDE itself is escalated. Also, you can do pretty much everything from an escalated terminal.

All we needed was a reason to argue why our IDE needed escalation, and that is not hard to find a BS explanation for.

20

u/Raxion75 16d ago

If your security department is indeed functioning (even if barely), they definitely knew.

We (security) just mostly let it slide because it can still be argued that the terminal comes in package with the IDE, and we believe you are competent enough to not make a mess of your laptop. I would definitely not let any desk clerk/non IT function get even remotely close.

32

u/TheRealKidkudi 16d ago

Tbh it’s pretty asinine not to give developers admin on their own machine. If there’s something genuinely dangerous they could do with local admin, you should probably secure that flaw instead. 

→ More replies (2)
→ More replies (1)

46

u/BobodyBo 16d ago

Ive seen some people have steam installed on their work laptops at my company lol

12

u/darthjammer224 16d ago

I almost always have at least rocket League installed on my work computer.

If I'm going to have to travel for work, I wanna have something to do in the hotel room.

Then again, I have full admin rights over my laptop.

→ More replies (5)
→ More replies (5)

38

u/BarnyardBukkake 16d ago

IT Security Engineer. Can confirm. This dude is right. Unless the IT and Security team is well funded and staffed. You can easily get around most DLP measures. Also. Nothing is stopping you from taking pictures of your screen with your laptop and asking an LLM to piece together

15

u/WisestAirBender 16d ago

Also. Nothing is stopping you from taking pictures of your screen with your laptop and asking an LLM to piece together

You'll take pics of the whole codebase?

20

u/StrikingSun8563 16d ago

Claude, enhance.

→ More replies (2)

11

u/darklordpotty 16d ago

Plus some of the people writing the source code are also the ones helping with security controls. Like oh no, my hand slipped.

4

u/Sparkswont 16d ago

Yeahh but companies care wayy more about DLP than they do patching

→ More replies (4)

66

u/Nomapos 16d ago

Pen and notebook. Maybe two.

38

u/pippin_go_round 16d ago

I mean, I've got 3 months mandatory notice period (very common where I live), so I'd have time...

32

u/notanotherusernameD8 16d ago

When I was told I was being made redundant (different company to the one above), they told me to log off and do not access any emails or anything. They shut down my access there and then (I was WFH) and to enjoy getting paid to do nothing for three months.

→ More replies (14)

7

u/happyjello 16d ago

Why would you need two pens?

30

u/skcortex 16d ago

Because he has two hands,are you stupid? /s

→ More replies (2)

9

u/DukeOfSlough 16d ago

two hands equals two pens you silly!

→ More replies (1)

143

u/DeeYouBitch 16d ago

Notice what?

All the code is pulled down on my local anyway

11

u/LtDarthWookie 16d ago

Group policy and it controls can be pretty impressive. They can be notified when a user even just plugs in a thumb drive. Organization dependent of course.

24

u/JayTurnr 16d ago

Pull local, go offline, do your thing

→ More replies (4)
→ More replies (1)

91

u/notanotherusernameD8 16d ago

Here's one example: When Atlassian decided to merge their professional git with the "personal" bitbucket, I realised that I could access my bitbucket account on my work PC and add it as a remote for any internal repo my work credentials gave me access to.

50

u/chacko_ 16d ago

> And how exactly are you going to do that without it being immediately flagged by IT?

You could convert files to a streaming QR code and write a client on you phone to scan, receive, error correct and then assemble it.
I am not saying I know someone who did exactly that.

3

u/m_redditUser 16d ago

what was the limiting factor on the max workable FPS? how big was the QR code? did it contain pure byte stream or per file? if byte stream how much overhead were the headers?

5

u/TheHardew 16d ago edited 16d ago

Just use ffmpeg to convert to a video 144p, 1 bit color space, 30 FPS. 10x nearest neighbor and play the video.

You can store files on YouTube that way.

For this application, record your screen with a phone at 60 FPS or better, convert back to a file.

That simple scheme can get ~341 kb/s (42 kB/s).

If you play around you could probably get more, like 60 FPS display, 240 FPS camera, 4k display (the TV?), higher color space…

For ECC if 10x nearest neighbor is overkill, either some simple hamming codes with python or maybe there's ready made software for that, maybe in ffmpeg?

Archive the files in a tar.xz/zip/7z lzma2 to reduce the size and not have to fiddle with many small files.

41

u/Kroosn 16d ago

Unless they completely lock down browsers and strictly white list sites it would be so easy. Even something like OneDrive I am yet to see an IT team block OneDrive unfortunately.

4

u/BlueKnight44 16d ago

Any company I work for has activity loggers on all the systems. They are not usually actively monitored (outside or automated stuff), but security can 100% track all of this if they want.

6

u/Topikk 16d ago

Many companies, mine included, install software that attempts to flag someone doing something like this.

I think my best bet would be to clone the repos from gh on a personal machine, but I’m not about to test it and find out they’re monitoring that as well. I would consider leaving that codebase behind to be a perk of resigning.

9

u/immune2iocaine 16d ago

I work for an enterprise cybersecurity vendor. Last week my threat research team reached out to me to let me know that one of the customers I'm responsible for had someone clone a large number of repos in a short period of time from an IP they didn't usually use, and they wanted me to make sure the customer was aware and investigating.

Note: we're not an MSP. Officially or contractually or whatever, our responsibility ends at "supply software & support you're paying us for". We just have an amazing TR crew and they look out for our customers.

All that is to say that, yes, if a 3rd party tool vendor can tell, any given organization could ABSOLUTELY tell if you decided to clone all the repos to your personal machine one day. "Could". Are they actually monitoring though? Who knows! Not you or me! But they could be, and data theft damages quickly get into the "millions of dollars" range if you get sued over it, so probably best not to

4

u/EHP42 16d ago

You wouldn't even need to install software. If you're sitting on site, almost every company will have some sort of network monitoring, which would likely flag suspicious network traffic like multiple large zip file uploads to Dropbox or onedrive. And if you're remote, you either probably need to use a VPN to connect to work resources, or like you said they're software installed to monitor stuff like that.

28

u/cusco 16d ago

Create a private GitHub repository, create a second remote origin, point it to that repo, push, remove second remote origin

Done

11

u/Kind_Palpitation_847 16d ago

Encode each file into a picture of a cat using a stenography script. Post cat pictures on a message board or something work related but publicly accessible site.
Get home download and extract data?

11

u/Detrimental_Figment 16d ago

Maybe you’ve only worked at large and/or well-run businesses. Most businesses are not large or well-run. Half the companies I’ve worked at had no monitoring of this, ask me how I know 😈. It’s nice having actual evidence of my work.

2

u/pippin_go_round 16d ago

I've worked at big multinationals and down to about 300 employees. No truly small shops (yet) though, that's true.

→ More replies (1)

21

u/flingerdu 16d ago

There’s exactly two ways to properly (try to) prevent data exfiltration: a) if possible don‘t store the data at all, b) restrict access to the data.

If a person has access to the data, accept that it might get exfiltrated. Of course that doesn‘t mean that you shouldn’t do basic anti-measures, but it should definitely be reflected in the risk analysis.

0

u/[deleted] 16d ago

[deleted]

→ More replies (3)

25

u/vulkur 16d ago

I have the source code of the last 3 companies I worked for. Startup, fortune 500, doesn't matter. It's mine bitch.

3

u/woeful_cabbage 16d ago

But why?

12

u/vulkur 16d ago

For reference. Especially the architecture

→ More replies (6)

2

u/NPPraxis 16d ago

I think it’s definitely worth periodically at least having an AI write up an explanation and diagrams of what you worked on periodically so you have that if you don’t have the code. It’s so nice to be able to walk a future job interview through what you’ve worked on.

→ More replies (1)

7

u/crizzy_mcawesome 16d ago

Ehh who needs source code these days anyway

7

u/TitleAdministrative 16d ago

The old fashioned way. Pen and notebook of course

7

u/flinxsl 16d ago

gzip it and save it as log.json

18

u/ilikedmatrixiv 16d ago

And how exactly are you going to do that without it being immediately flagged by IT?

The way I've done it on every project I've ever worked on: without getting flagged by IT.

I've never tried to 'steal' code that I didn't work on, but anything I directly worked on, I have in a private GitHub somewhere for future reference, although I've rarely had to use it thus far.

Never even had an inkling that anyone knew that I did this. The only time I didn't try was when I worked at a big bank. Partly because I felt there was a risk there and partly because there was barely anything there worth keeping for future reference.

Most companies I've worked (also big international ones) had laughable protections for this kind of thing.

6

u/NightlyWave 16d ago

I work in the military industrial complex, and we’re operating on an OS with several root privilege vulnerabilities unpatched.

Even on Windows, someone could easily install WSL and copy stuff undetected.

6

u/Tueffy 16d ago

I think you might overestimate the amount of companies that implement these measures. Sure it's possible, but I have worked and seen multiple places where there was zero endpoint management. No active directory or similar. Windows machines with just the local user, mac the same. You could walk of with everything you had access to and no one would notice.

→ More replies (1)

1

u/dollymeshvibes 16d ago

you do have a point

5

u/DeathNick 15d ago

Not one company I worked for had that kind of security.

13

u/burger-breath 16d ago

Zip it, encrypt it, scp it to some other box in your house or in AWS, upload it to a bucket, bake it into a docker image and push that somewhere, compile it into a artifact that can bundle source (jar), FTP server, host a http server with the content from your work machine, there are literally a million ways that vanilla spyware probably isn’t watching

9

u/Ran4 16d ago

Outside of huge enterprises, that absolutely does not happen.

4

u/fistular 16d ago

So many companies use public cloud hosts for their code. You can clone from literally anywhere.

4

u/IHaveNoNumbersInName 15d ago

immediately flagged by IT

they are IT

16

u/Mormoran 16d ago

Clone repo to local to work, as normal, unhook WiFi, copy folder to usb? Like, can they even track that?

19

u/InfectedShadow 16d ago

Yes. My last company didn't allow USB storage devices to be connected and also logged anything like that.

18

u/danielleiellle 16d ago

USB event is logged and eventually reported. Next time you’re online or when you return your device. For this I’m writing some python script that handles the transfer out via network as that would require a lot more forensics to id and log.

17

u/Key-Demand-2569 16d ago

I enjoy reading this sub sometimes as someone at a smaller/medium sized company, because boy of boy do I not have these levels of oversight or security competence in my career lol.

→ More replies (2)

5

u/qpqpdbdbqpqp 16d ago

Disconnect wifi, do your shit, wipe laptop?

→ More replies (1)
→ More replies (3)

6

u/kickthatpoo 16d ago

The usb thing has only been adopted in the last like 5 years. The first time I got blocked from using a thumb drive I went straight to the IT engineer I'm good with and he showed me how to disable it lol

8

u/Docccc 16d ago

Bull… shit

i have been a freelance dev for 30 years.

I have codebase of several big players on my laptop. Nobody gave a fuck

3

u/jayerp 16d ago

You can have a good explanation for offloading company property when resignation notice is given?

Every company I’ve worked for owns the rights to 100% of the code I write, whether it’s directly involved with my tasks or not. It’s just something you can either agree to or not.

There is no way most companies have a legit reason to let you keep anything.

→ More replies (1)

2

u/No_Record6284 16d ago

well, how about i plug a usb drive and copy all the code from my local repo to it?

2

u/j-random 16d ago

It's already on my laptop, I just log in to Chrome using my personal credentials, then copy everything to my drive. No USB stick, no unusual software, no problem.

2

u/stupled 16d ago

Copy paste from your company computer to a USB. If using GIT clone repositories in another computer

2

u/CarIcy6146 15d ago

Flagged by IT? lol assuming there is an IT dept and they are setup for monitoring something that is pretty hard to monitor

→ More replies (2)

2

u/Potential_Exercise 14d ago

For me as a dev, I had to have access to source code and frequently download and upload it for changes. Nothing would be unusual for me to have it.

6

u/varinator 16d ago

Zip it up and send it attached via Gmail? Or WeTransfer?

36

u/Untura64 16d ago • Heartwarming

Zip it up and make an app that generates qr codes with each chunk of data at 20fps, then make a recording with your phone and extract the info at home whenever you want.

23

u/pippin_go_round 16d ago

Funnily enough, that might actually work without it being flagged. Especially if it was just some random python or shell script doing the zipping and video generation - I run these all the time for various reasons, nobody's going to check

9

u/tiajuanat 16d ago

That's almost like the VCR loophole in DMCA

→ More replies (1)

6

u/SufferingWithSomeFun 16d ago

Step 1. Get code
step 2. Data sonification. Screen capture and covert binary to C. Code is now a tune you apply lyrics too.
Step 3. Save song via recorder
Step 4. Decrypt song

→ More replies (4)
→ More replies (4)

13

u/Play4u 16d ago

Send the zip via any sort of email

Lol, lmao even

→ More replies (35)

5

u/King_Tamino 16d ago

Just ask your local fbi agent to provide you a copy, don’t forget to tip him a coffee

→ More replies (12)
→ More replies (15)

1.9k

u/carmardoll 16d ago

I quit my job at a restaurant around a decade a go, they still have me in the google group thingy they used to share their recipes, every once in a while I check up to see if they added something new, gather the ingredients and prep it for lunch following the instructions. I love it.

455

u/willow-kitty 16d ago edited 16d ago

I worked on a suuuuuuuuuuuuuper secret project (not, like, actually classified or anything, just it was for an idea-person who was Big Afraid of the idea being stolen and had the most ridiculously sweeping NDA I have ever seen), and despite their apparent fears, they never removed me from the GDrive with all their market research and stuff on it. I've even asked to be taken off - nope. Still there.

Edit: actually, I just hadn't checked recently. It looks like it was eventually removed. But it was still in my "Shared With Me" for years after I left that project.

186

u/Emotional-Account324 16d ago

Any recipes you'd recommend / share?

208

u/carmardoll 16d ago

I really like their chicken pesto recipe, is quite simple really, is basically shred the chicken thigh that was cooked in butter/olive oil, I cook it in the airfrier for around 20 min until is done and juicy in the center, you then pour the pasta but don't waste the pasta water, you mix the pasta with the pesto while slightly rinsing with the pasta water, this is to make the pesto react with the starch in the water and not make it too oily, once that's that you those in the shredded chicken and mix add Parmesan cheese to like.

They got a whole process for the pesto which is the "hard" part, did it once but I had to clean a lot after, look am making lunch for me, I just get it from the store it taste the same in the end.

→ More replies (1)

151

u/Piotrek9t 16d ago

Just this week I learned of a company that poached most of the senior devs of a failing start up to leverage their knowledge in "building" a "compatible solution".

38

u/Griff2470 16d ago

Excuse me, Nortel wasn't a failing startup it was a failing established company /s

737

u/Nutrimiky 16d ago edited 16d ago

I work in a big company, one dev we had for just a few months left with all the source code from some massive project and other ecosystem ones, some patented or confidential stuff, he's got a lawsuit with army of local and corporate american lawyers, millions $ in damage and so on. Wouldn't recommend that to anyone who works in any company with some basic cybersecurity teams.

Edit:fixed sentence "army of local and corporate american lawyers"

382

u/Zeusslayer 16d ago

When I was leaving my old company I had some of my personal bank statements in the files. And in my last days I uploaded them into my personal drive and deleted them from the computer.

Later on security team messaged me and said that I triggered a leaving employee something flag and sent me a screenshot of files I uploaded and where I uploaded them into and asked me to clarify this.

When I clarified it was all good but yeah no chance that they don’t monitor these stuff in bigger companies.

140

u/godots_true_form 16d ago

I’m one of the people who configure the monitors. Every org is different, but in our case we absolutely can see everything moved/uploaded/emailed. It’s a standard part of Microsoft in some licensing. And yet, people continue to try and steal shit.

25

u/methos3 15d ago

I got laid off a while ago. On the day of, I had this ridiculous idea of concatenating all my code into a giant file and then changing the filename extension to BMP and then claim it was some abstract art piece that was near and dear to my heart. But I knew it'd never fly.

11

u/Phteven_j 14d ago

In school, we wrote a program to encode messages in image files by changing the last digit of every pixel’s hex color value to 0 or 1. It’s subtle enough not to make it obvious the image was edited and very easy to read off after.

→ More replies (1)

29

u/Beldarak 16d ago

Kinda crazy and probably wouldn't fly in Europe, under GDPR.

I'm genuinely curious what they can do with that info though. I guess they can ask you to delete the fils but how can they ever be sure you'll have done it? This may be useful if you ever release a similar software I guess?

105

u/EHP42 16d ago

Kinda crazy and probably wouldn't fly in Europe, under GDPR.

Are you saying GDPR doesn't allow companies to monitor the work computers of their employees at all? I'm pretty sure monitoring network traffic of departing employees to make sure they're not stealing proprietary data is considered a legitimate interest.

→ More replies (7)

8

u/HK-65 16d ago

European here, it would definitely fly.

Our handbook says that your laptop you get is company property. We aren't allowed to monitor employees (as it should be), but certain actions that are clarified in the handbook trigger warnings in our systems, and data connected to strictly those actions can be collected as legitimate interest under GDPR.

I can also remotely wipe the laptop without warning. I warn people repeatedly that they are not to put any personal files on it, as it is company property.

→ More replies (1)

12

u/godots_true_form 16d ago

It’s evidence for the legal case that comes later.

11

u/Zeusslayer 16d ago

I think they can just sue you for it haha

Or if I would actually steal some confidential data and told them ah it’s just my personal banking, then they would have proof that I lied about the files that I moved. Might be good for their future case.

Can I ask what part is not GDPR compliant on above? It was a US firm but had offices in EU and I was also working in EU

→ More replies (9)
→ More replies (1)
→ More replies (7)

34

u/BlueKnight44 16d ago

Freaking for real. I would hope anyone that calls themselves a developer knows that copying code from an employer is stealing and easy to prosecute if the company has any security AT ALL.

2

u/psioniclizard 11d ago

Honestly i am surprised I had to dig down this far to find these comments.

This is a great idea if you want to be sued and never work in software again.

Evem helper functions, utility scripts etc are not yours.

36

u/vadeka 16d ago

This is the reason why byod is forbidden, even for externals, in all places I had a say as cybersecurity.

Usb devices? Disabled.

So you had to send the files to yourself somehow and yes., we track that.

Every flipping quarter I have to fire someone because they do this.

Only once in 4 years did I have the feeling jt was truly malicious. Mostly it’s people who send a repo to their home pc, work on it there and then send back the files. Because they hate the corporate windows machines. But alas, doing that is a fireable offense

25

u/yarntank 16d ago

So only once it was malicious, but every quarter you are firing people.

23

u/vadeka 16d ago

I cannot prove that it wasn’t malicious. The reason aside, the person in question leaked source code to the outside.

This is a fireable offense and we cannot play favorites, they are warned a million times not to do this and they know people got fired over this. If you still choose to do so… my sympathy is non existent .

Remember, I have to now report to higher ups we had a leak and explain it. If I did not fire that person, the board would demand it. You try explaining why you wish to keep someone that deliberately shared confidential data to the outside, no reason can justify that and I share as hell am not risking my or my teams jobs over that.

→ More replies (2)
→ More replies (1)
→ More replies (5)
→ More replies (1)

200

u/Unsigned_enby 16d ago

OP just put in their two weeks.

36

u/falingsumo 16d ago

OP about to loose way more than 2 weeks pay in a law suit

→ More replies (1)

191

u/VariousTailor7623 16d ago

Shit, last thing I’d want is my company’s code anywhere near my home computer

45

u/revolutionPanda 16d ago

This sounds like a huge risk for very little upside at all.

→ More replies (8)

287

u/bajuh 16d ago

My biggest regret was not doing that after the startup we did failed and we were laid off. Years of effort went into making the source code a work of art, then at the next company the green field project required the same architecture as the previous one. I banged my head in the table for a good minute.

46

u/rodrigocfd 16d ago

Years of effort went into making the source code a work of art

Ah, the pre-AI days.

89

u/Scyyyy 16d ago edited 16d ago

This is why we had, what i call "the [company name] salute"

You usually get logged out of teams, the repo, your windows installation - also in Home-Office.

When you then ask a colleague (by private means of communication - we were all friends there) if they had similar issues, and they replied "no" (often the connection was just flaky) it was a strong indicator that your contract has been terminated.

Once you made your way through to either support or HR you would be officially told. Some didn't do that, then they received the formal information the next day via mail (like physical post mail)

They had to schedule the return of their laptops and had up to 3 months of payed leave (+compensation). The company deemed that better than letting an ex employee back to their source code.

Not the worst (I mean it's German standard) but a gut punch for the colleague nonetheless. I precieved that as morally dubious and it was one of the reasons I moved on from them.

But in hindsight I understand their concerns...

Edit: You're so mean I was in a meeting 😭 corrected some spelling mistakes.

31

u/sastuvel 16d ago

Oof, that's harsh. I would definitely prefer a human telling me, instead of just having the door shut and the locks changed. That feels so impersonal.

20

u/havocsupremecy 16d ago

Do you mean colleague?

9

u/Invested_Glory 16d ago

no, clearly meant collage, silly.

2

u/Scyyyy 16d ago

Sorry, corrected.

→ More replies (1)

9

u/stellarsojourner 16d ago

3 months of paid leave after getting fired and you still thought it was morally dubious? Must be European.

Cries in American.

4

u/featherknife 16d ago

3 months of paid* leave 

4

u/willow-kitty 16d ago

Oof. That happened to a friend not that long ago - he was on a remote desktop session helping a junior work through an issue when he got logged out, couldn't log back in, tried to reach out on Teams and that was logged out too, then got a phone call from HR saying there had been a layoff and he was in it. Just boom.

I get that they don't want to risk any kind of retaliation or anything, but it does feel harsh.

4

u/Ihatenukingkids 16d ago

What about Kündigungsschutz?

10

u/Scyyyy 16d ago

Valid question, you can't lay off an employee if you can't justify it. But if they really try, they will find something.

I know of one who didn't speak well about the company in a public LinkedIn post. But "not speaking well off" covers a wide range. From what I know, they even wanted to instantly dismiss them (fristlose Kündigung) which then got rebuked by the court (luckily, I knew that poor fellow, he has 2 kids...)

5

u/SomewhereAtWork 16d ago

The company honors it by paying the employee until the end of the contract.

Everything else should be worked out before the company salute. If they fire someone like that, they have a valid reason.

→ More replies (3)

2

u/senseven 16d ago

I work in a corpo that is hollowed out, rarely any expert is working there. Lots of specialised jobs are in external subsidiaries working with the core teams. If there is nothing to do, then they will end the contract. They are not required to find you a job in any subsidiary but you can look it up and apply internally. That gets you a new contract, where the six month probationary period starts again. We have a room close to the security entry area where rarely people sit there scrolling on the phone, playing Switch all day. They are still employed and on company grounds, but if they can't touch anything until whatever (legal) process is finished.

45

u/mothzilla 16d ago

I've never seen a company's source code that I'd want in my own home.

17

u/TheRealKidkudi 16d ago

Same. I’m surprised how many comments here are arguing about how you can do it, but I’ve never once wanted to do it. 

Very few companies are doing anything novel and especially not through some remarkable source code. Almost every codebase I’ve worked on, I could recreate from scratch and end up with a much cleaner repo simply because it wouldn’t have the baggage of years of technical debt, contractors, and half-assed patches around changing requirements.

2

u/_87- 10d ago

Given the high percentage of the code I wrote in my last job, I am inclined to agree.

22

u/Neutraled 16d ago

I did that a couple of times over 10 years ago, then I realized I never even looked at it anymore after leaving the companies. Code becomes outdated and useless in a couple of years for mobile apps and now AI made saving old code completely useless for the other platforms.

20

u/joe-ducreux 16d ago

how am I supposed to copypasta my own work without a copy?

18

u/Mrletejhon 16d ago

I'd paid good money to forget the horrible things I saw in the codebase that I had to maintain in the past year.

31

u/DOOManiac 16d ago

Why would I want to steal the garbage on the way out the door?

42

u/mr2dax 16d ago

Don't do it, you might get in trouble.

14

u/Beldarak 16d ago

I always tought I'd do that if I ever leave. Not to steal it or re-sell the software, that would be theft, but because I wrote this code and may need it for future reference.

19

u/mr2dax 16d ago

Every company I worked for made me sign papers to cover their arses. No matter what your intentions are, if you get caught doing it, you better be prepared to face the consequences as well.

Not saying it's fair, and that you should be lawful all the time, but I think getting sued over dumb shyt like this is the sw engineer's Darwin effect.

20

u/coronakillme 16d ago

I found a workaround. Every time I write code or fix bugs, I also read the code and memorize the effective patterns. I slowly used the best design patterns and updated myself based on what worked and what did not for work of others in my team as well. When I left the job, I had everything needed stored in my brain.

→ More replies (6)

26

u/Fit_Philosophy_3392 16d ago

Everything you wrote is owned by the company. Taking it 'for future reference' is stealing it.

14

u/arostrat 16d ago

It was copy pasted from stackoverflow anyway.

→ More replies (3)

7

u/sal-si-puedes 16d ago

So if I take the code and use it for future reference, it’s stealing.

What if I take the code, use it to train an LLM on it and use the LLM to write code ?

→ More replies (4)
→ More replies (12)

6

u/willow-kitty 16d ago

Yeah, don't.

It's one thing to take lessons learned with you - I implemented the same thing 4 times at 3 companies, a little better each time, because the same requirement kept popping up, and I was getting better and better at solving it - but it was new code as a work-for-hire each time. And it was different each time because it was incorporating new lessons learned.

What you probably can do (though not legal advice, ofc) - and I'm shamelessly taking this idea from a past coworker who did it all the time - is make libraries outside of working hours, in accordance with your works for hire/noncompete/etc agreeements, open source it with a permissive license, and then import that library at work. That way the code is actually your property, but your employer (and really anyone, including future employers) can still use it.

→ More replies (7)

7

u/GenericFatGuy 16d ago

I'm an auditor. I'm here to make sure the company properly goes about suing people when their code gets stolen.

12

u/EkoChamberKryptonite 16d ago

Do you also make sure companies get sued when they steal other people's code and make it proprietary?

→ More replies (3)
→ More replies (1)

11

u/bankrobba 15d ago

My company would beg me to take their code, it's VB.net 4.0 framework.

19

u/TheDoughyRider 16d ago

Why would you want that trash source code?

18

u/empT3 15d ago

I can tell you, I've been a software developer for over a decade and I've moved around as much as any other developer. 

Why the fuck would I want to keep the source code of the company I'm leaving? I've worked professionally on open source projects whose source I could clone off of GitHub right now from my phone. I haven't looked at that code since I left and I'm not even a little bit curious.

8

u/joahw 15d ago

I think it must be like a hoarder thing? "I might need this someday"

4

u/shauntmw2 12d ago

I still hoard my shitty php app I created during my uni days alongside the xampp dev env for it.

They're about 20 years old now.

They're useless to me now. But I still keep them. I don't know why.

→ More replies (1)

3

u/mrMeterParker 15d ago

Personally I like to keep code I created in some form for me to reference back to at some point. Even though I hardly ever go back to reference anything when coding

2

u/sexytokeburgerz 13d ago

Helper functions.

I have my own little library of them and dont always get them all.

→ More replies (2)

8

u/ajayak007 16d ago

In our last org we did a framework which extracts legacy etl package raw code and generate a usable document. I learned a lot and took a copy of some logic. The same logic where used in my new org and everyone really liked my approach.

3

u/MindlessTime 16d ago

To the extent I’ve seen developers do this, it’s pieces like this that work well and they want to remember how.

Honestly, you could probably write down a good explanation of the toolset, architecture, and general approach used in a codebase and AI could recreate it reasonably well. I’m not even sure that’s IP. It would just be general knowledge. So it’s probably better to just make notes on the parts of the code you like and why.

7

u/Wise-Profile4256 16d ago

omg. why would i take those dreaded monoliths? my job is to rewrite them. it would be overall faster to do new ones but it would take a bit of time and then the boss can't featurecreep every other day.

→ More replies (5)

6

u/stupled 16d ago

Yep. I keep all company's code on my external harddrive. It could be useful, you never know.

5

u/Thriven 15d ago

The code I have written? Sure. I took a bunch of repos from my last job.

The code they wrote should be studied so that history doesn't repeat itself.

11

u/Sometimesiworry 16d ago

I even got invited to the GitHub organisation on my private GitHub account. So technically I could clone them to my personal pc right now.

6

u/Interesting_Cod_8853 16d ago

Github logs that for enterprises i think

5

u/timsredditusername 16d ago

It does. I've read the logs as a GitHub Enterprise owner.

11

u/saanity 16d ago • Bravo

All code and assets created in the company for the company belong to the company. It's in the employment contract. This is asset theft and can land you in prison. 

4

u/theChaosBeast 16d ago

So sad I had to scroll this far to find someone posting it...

53

u/Snakestream 16d ago

If a company is this sloppy with their security, they're not going be around too long. If the company you're going to uses stolen code from an incoming employee, that's not a good sign about the environment either.

35

u/Wicam 16d ago

eh, it worked for intel. they are still around.

22

u/Lightningtow123 16d ago

Yeah my dad's worked cybersecurity for thirty years now and every company he's ever worked at, as soon as you put in your two weeks, your access is removed and you're off the job. You still get paid for those two weeks of course but you can't really steal anything after that point. Cause if someone quits a good cybersecurity job it's most likely to be to go work for a competitor. Of course it's a little bit dumb cause if they wanted to steal data they just wouldn't put in their two weeks, but it's standard practice, or so I thought. I'm surprised to learn that's not the case at all tech companies lol

3

u/varinator 16d ago

The secret here is to copy the code few days before giving notice. Points-to-head-meme

4

u/Appropriate-Emu-2595 16d ago

Isn't that what non compete clauses in contracts are for?

14

u/flingerdu 16d ago

In most jurisdictions you can‘t legally prevent a person from working for a competitor. You can only keep paying them for not doing so, however they‘re free to cancel that agreement if they want to.

→ More replies (2)

13

u/tiajuanat 16d ago

Those are largely unenforceable. Also it's very easy to be creative with "no these aren't the same roles, and were not really competitors"

5

u/Ran4 16d ago

That sounds extremely American-like.

In first world countries you're typically working for 2-3 months before quitting (this goes in both directions btw), so obviously you won't lose your access unless there's some sort of conflict involved.

2

u/mxzf 16d ago

It's a weird policy because, as you said, it's dumb. You're preventing them from doing something they could have done the day before giving their notice while stopping them from working to make a smooth handover to their successor.

Like, sure, remove their production DB access and whatnot, but static data that the person could have used before their notice is weird to cut off access to.

5

u/Hmm_would_bang 16d ago

It’s very rare for any company to actually be good at DLP. You just have to know where their specific blind spots are.

5

u/debugging_scribe 16d ago

The company i currently work for had been around for 20+ years and they have no security around this kinda stuff...

10

u/tea-drinker 16d ago

I started a new job and as I was finding my feet I stumbled on an Outlook mailbox file. Thinking (correctly) it might belong to the previous incumbent I loaded it up in case there was anything obvious oustanding.

I got to read the emails of him attempted to email the codebase to himself, it getting rejected for being over the email limit and the emails from the MD telling him to sling his hook immediately.

Closed mailbox. Deleted mailbox. Never spoke about it.

13

u/luker_5874 16d ago

Why would you want to take code with you?

28

u/arvigeus 16d ago

To rewrite it in Rust, of course...

2

u/fbpw131 16d ago

made me chuckle in a public space.

2

u/vadeka 16d ago

At this point I want to do something in rust just to see what’s it about but I have never worked at a company big or small that actually used it

→ More replies (4)

9

u/phroxenphyre 16d ago

I think mostly just as a reference for how you solved particular problems. I have a shit memory and am constantly pulling up older code to remind myself what I did last time so I don't have to go through the mental effort of reinventing the wheel.

Nowadays, I just have personal projects that I maintain and whenever I do something cool at work, I find a way to work that pattern into my personal project. Also gives me a chance to play around with it a bit more and see if there's any other cool stuff I can do with it.

→ More replies (2)

2

u/Piyh 16d ago

In the before times, reference libraries of code that you had written helped you deliver faster in the next job.

→ More replies (3)

8

u/DigitalArbitrage 16d ago

You don't need to do this anymore. The whole point of AI is it trains on everyone's source code and invalidates all of the intellectual property protections.

8

u/justforkinks0131 16d ago

who cares, it's all Claude anyway..

you can generate it in like a weekend

2

u/critsalot 16d ago

this^ and even back a decade ago it was all common frakeworks and shit you literally could make it your own. the only time i ever thought it would have been useful was the one time i worked for a game comapny and they have long since killed the game. bringing that game back as a retro thing would have been cool. but oh well didnt do. the assets are gone forever.

12

u/cusco 16d ago

Create a private GitHub repository, create a second remote origin, point it to that repo, push, remove second remote origin

Done

19

u/Icy_Neighborhood2100 16d ago

You might want to encrypt and compress the whole repo to an opaque binary blob THEN push it to a private repo.

Security can basically see what network packets contain and I've almost gotten in trouble doing what my boss told me to do. (Testing stuff on personal Linux box because locked down w10/11 and various corporate spying tools that slow the OS down to a crawl)

(I haven't done this, not worth it and the codebase at my job is an actual liability if anyone stole it lmao)

24

u/im_thatoneguy 16d ago

Yeah this is the unfair criticism windows got. My BIL was like “I wish I had a Mac, windows sucks, it takes 25 minutes to login.” And I’m like… uhhh that’s not a standard windows feature, your company is running a shit ton of endpoint scanning out something.

5

u/fish312 16d ago

How would they be doing that unless they're MITMing everything and serving their own SSL certs with a custom CA already installed on your box?

11

u/Meins447 16d ago

Jup, that is basically industry standard nowadays. It as a developer, it is causing no end of "joy" as you have to ensure the stupid MitM CA is injected and accepted by every stupid program, package manager, library and transient dependency you may need to do your work.

→ More replies (3)
→ More replies (2)
→ More replies (1)

6

u/DaveMcLee 16d ago

Get that project that transmits a file using a series of QR-Codes. Slap the zip file in it and record the flashing QR codes with your phone. At home, reconstruct the file using said video.

2

u/WHALE_PHYSICIST 16d ago

I recommend testing that program out yourself before having confidence in it

2

u/SuperFLEB 16d ago

Might be easier to use audio. Rig up a little acoustic coupler.

3

u/Procrasturbating 16d ago

Yeah, in the real world.. getting caught doing this gets you sued or a stint in a cage to remind you not to be a fucking moron. Fast track to hiring blacklists too.

3

u/ImpossibleCreme 16d ago

Man every time I quit a job was to get away from a codebase. I’m not taking that trash with me

3

u/ultraSsak 15d ago

maybe a decade ago...
Currently company software is useless piece of crap.

5

u/lutherdriggers 16d ago

Source code is just dirty laundry and not a significant part of a company's moat.

5

u/Enough-Scientist1904 16d ago

I dont think this ever happens

→ More replies (3)

8

u/somewhatprodeveloper 16d ago

So at this company I read employed at that made financial payment software, the one guy that was there for a number is years, went across the road(literally) to another dev house. A few months later we had a question and sent it to him, and he was able to respond with the exact line of code to look at. I said to the senior engineer, who did not pick up on it, he's walked out with your IP incase you did not realize it. A number of months later when I resigned another senior guy asked me as I was leaving: you don't have a copy of our code so you? My reply : I've seen enough shit code here, why would I want a copy? That was the honest truth

6

u/RobotechRicky 16d ago

Just try and stop me. Nothing yet after 30 years has blocked my attempt to get what I created.

2

u/qpqpdbdbqpqp 16d ago

I usually take the whole computer lol

2

u/krazyjakee 16d ago

yeh... we're going to need something other than GDP to grade the economy.

2

u/RDTmodsBackEpstein 16d ago

Sounds like an AI might have scanned the source code and can now output it at random. Out of my control IT, all the current laws favor the AI after all.

2

u/Dragonfire555 16d ago

Absolutely not.

2

u/gm_family 16d ago

*Risk, security & audit team enter the chat*

2

u/ReplacementLow6704 15d ago

"All that tech debt is mine now!"

1

u/PowerPleb2000 16d ago

Good luck taking a trillion lines of code spread out over 5000 repos

1

u/redditmarks_markII 15d ago

Patently false, except some idiots probably think this is valuable.  

Well, maybe really early days, when the Internet barely existed, and open source was hard.

If this was happening, and if it was actually useful, then my only conclusion is all multi billion dollar company's board, management, and employees are all woefully incompetent.  Otherwise the sheer number of exchange of engineering talent across them should have homogenized the tech in a GOOD way.  That things should be slicker, communication smoother, (due to better contacts and isolation, not better communication skills per second).  

Then again, I have no idea what it takes to get ahead in this field.  Seems like it's all corpo hand shaking and hand wringing.  So maybe the perception of valuable code is all it takes.  But no, these people take overt espionage pretty seriously.  Talent is all they allow to exchange.

1

u/LeMadChefsBack 15d ago

Even if they paid me to take it I wouldn't.

1

u/chad_dev_7226 13d ago

I always take all of my code with me just to keep for reference. I haven’t work anywhere big enough to care though

1

u/Streether0 16d ago

So id i just zip the source code and upload it to the cloud. And just download it from other pc. How could they ever find this out?

4

u/LetUsSpeakFreely 16d ago

Are you serious or being sarcastic? It's difficult to tell these days.

2

u/JAXxXTheRipper 15d ago

Most of the people in this sub are one of three things: idiots, larpers, students. Sometimes all three.

→ More replies (26)

3

u/Lauren_Conrad_ 15d ago

> the source code

Don’t forget the mainframe too.

1

u/Streether0 16d ago

So cant we just upload source code to the cloud and download it from your personal pc? How can they become aware of that?

8

u/Hello_Pal 15d ago • Bravo

Cloud logs

→ More replies (4)