About dotfuscator

Status
Not open for further replies.

JRod

Ars Tribunus Militum
1,582
Please keep in mind, I'm not a programmer. Dotfuscator has been installed in our development environments and upon a quick glance, it appears to be a protection mechanism for developers to prevent reverse engineering of their source code.

All of the development is for in house systems by in house developers, which is why I'm questioning its existence. However, I'm not sure if its just a component of the Visual Studio package and is getting installed as a part of the overall package possibly never getting used.

On a number of occasions when I ask the developers certain questions they selectively either don't answer at all or give half answers, even after rephrasing/re-framing the question. I need to make sure the company has access to the source code it pays people to develop, without to accusing anyone of anything. There's literally zero documentation for our developed systems, so the source code is extremely important to the company. Should I even bother investigating this?
 

Horatio

Ars Legatus Legionis
24,430
Moderator
[url=http:/civis/viewtopic.php?p=26901069#p26901069:pmdxynd7 said:
JRod[/url]":pmdxynd7]I would agree its silly if I didn't have the experience of information evasion with these folks. Is there some way to verify if its being used?
Try decompiling a DLL with ILSpy - if it's intelligible it's not being used, if it's not, then it is :)
 

rain shadow

Ars Tribunus Angusticlavius
6,680
Subscriptor++
[url=http:/civis/viewtopic.php?p=26899015#p26899015:1buyv6kj said:
JRod[/url]":1buyv6kj]when I ask the developers certain questions they selectively either don't answer at all or give half answers, even after rephrasing/re-framing the question.
i've seen this before, the circumstances vary, but perhaps one of these applies?

* employees are accustomed to a subcontractor "fire at will" role and do not wish to relay any negative information to management, because they might lose their (already temporary) jobs.

* cultural, or corporate culture, bias against negativity especially when management appears to be full of positivity and unwilling to hear to bad news

* the devs are working outside their comfort zone and don't really want to relay all the little problems they are having or don't yet realize that experienced developers work outside their comfort zone all the time, that's how you get experience.

* the devs may see all their problems as "technical" and think that explaining technical problems to people who won't understand it as a waste of time. this may be incorrect, but they are not necessarily in a position to correctly judge a technical problem from an institutional problem. they can't fix institutional problems anyway, and probably you can't either.

* management isn't really going to help with any significant dev-related technical problems anyway, and will often make things worse with drastic "upstaging" type changes to the environment.

* company hired cheap devs who don't really know what they are doing

anyway, all of these issues are bred from a certain level of mistrust of management and are sensible from their reality. you could do a jane goodall and work really hard to gain their trust but that might not be an upward career move for you personally and at most you'll just uncover one of the above unchangeable truths and not be able to do anything about it.
 

JRod

Ars Tribunus Militum
1,582
[url=http:/civis/viewtopic.php?p=26901227#p26901227:1f4adr2m said:
DebtAngel[/url]":1f4adr2m]Just out of curiosity, since you're not a programmer, what exactly are you, then? More specifically, what is your relationship with the developers?

I ask because the next set of questions I have for you changes depending on if you're a PM, you've hired outsourced developers, you own the company and can fire everybody in the next hour, etc.

I look after the infrastructure. Servers, workstations, licensing, general technology. I'm on the 'exec management' team, we're not a huge org. The programmers work directly for us, they don't report to me, but what they do has a big impact on our systems...such as making endless database backups and copies and never cleaning them up. So I audit the systems for installed software and when I find software that I haven't seen, I investigate it. If there was a cause to fire someone I could make the case, but in this scenario it would make a lot more sense to talk to them and let them know the code remains open and property of the company.
 

JRod

Ars Tribunus Militum
1,582
[url=http:/civis/viewtopic.php?p=26902105#p26902105:opd70o2v said:
nofundsleft[/url]":eek:pd70o2v]
[url=http:/civis/viewtopic.php?p=26899015#p26899015:opd70o2v said:
JRod[/url]":eek:pd70o2v]when I ask the developers certain questions they selectively either don't answer at all or give half answers, even after rephrasing/re-framing the question.
i've seen this before, the circumstances vary, but perhaps one of these applies?

* employees are accustomed to a subcontractor "fire at will" role and do not wish to relay any negative information to management, because they might lose their (already temporary) jobs.

* cultural, or corporate culture, bias against negativity especially when management appears to be full of positivity and unwilling to hear to bad news

* the devs are working outside their comfort zone and don't really want to relay all the little problems they are having or don't yet realize that experienced developers work outside their comfort zone all the time, that's how you get experience.

* the devs may see all their problems as "technical" and think that explaining technical problems to people who won't understand it as a waste of time. this may be incorrect, but they are not necessarily in a position to correctly judge a technical problem from an institutional problem. they can't fix institutional problems anyway, and probably you can't either.

* management isn't really going to help with any significant dev-related technical problems anyway, and will often make things worse with drastic "upstaging" type changes to the environment.

* company hired cheap devs who don't really know what they are doing

anyway, all of these issues are bred from a certain level of mistrust of management and are sensible from their reality. you could do a jane goodall and work really hard to gain their trust but that might not be an upward career move for you personally and at most you'll just uncover one of the above unchangeable truths and not be able to do anything about it.

I don't mistrust them...and they don't just hide information all the time, we do get a lot of really good answers and feedback in a lot of circumstances, but its not consistent and I don't know why. So ethically, I think I need to make sure that the source code being 'dotfuscated' isn't an issue. A few of the points you made here definitely resonate, such as the comfort zone point, and I think that we (management) unfairly pile too much on them at different stages of the game. But when I have to ask more than once "why do you need that data restored", and I literally get a "I'll let you know if I need it" as an answer, I feel like someone doesn't want to admit to problems, or doesn't trust me...meanwhile, I take the time to patiently explain everything I can to give the full picture to them when they need it, and I make sure we're all on the same page...there could be nothing wrong at all, but I think its irresponsible to ignore it, and "dramatic" to involve others in the office, when I should be able to open some files and see code and go, ahhh ok. Or see the equivalent of a public encryption key and go, ok we need to talk about this.
 

JRod

Ars Tribunus Militum
1,582
[url=http:/civis/viewtopic.php?p=26901207#p26901207:3ggeeu6y said:
Horatio[/url]":3ggeeu6y]
[url=http:/civis/viewtopic.php?p=26901069#p26901069:3ggeeu6y said:
JRod[/url]":3ggeeu6y]I would agree its silly if I didn't have the experience of information evasion with these folks. Is there some way to verify if its being used?
Try decompiling a DLL with ILSpy - if it's intelligible it's not being used, if it's not, then it is :)

Somehow I skipped over your answer, thanks for this.
 

DebtAngel

Ars Scholae Palatinae
1,027
[url=http:/civis/viewtopic.php?p=26902181#p26902181:64c9q7wl said:
JRod[/url]":64c9q7wl]
[url=http:/civis/viewtopic.php?p=26901227#p26901227:64c9q7wl said:
DebtAngel[/url]":64c9q7wl]Just out of curiosity, since you're not a programmer, what exactly are you, then? More specifically, what is your relationship with the developers?

I ask because the next set of questions I have for you changes depending on if you're a PM, you've hired outsourced developers, you own the company and can fire everybody in the next hour, etc.

I look after the infrastructure. Servers, workstations, licensing, general technology. I'm on the 'exec management' team, we're not a huge org. The programmers work directly for us, they don't report to me, but what they do has a big impact on our systems...such as making endless database backups and copies and never cleaning them up. So I audit the systems for installed software and when I find software that I haven't seen, I investigate it. If there was a cause to fire someone I could make the case, but in this scenario it would make a lot more sense to talk to them and let them know the code remains open and property of the company.

If you're responsible for server backups and infrastructure in general, then you should know the answer to this question, which is far more important: what does the development team use for source control? If you don't know, forget whatever it is you were planning on doing on Monday, and find out the answer to this question.

If the answer you get is an actual thing (git, mercurial, subversion, etc., etc., etc.), then good news: the company's source code is safe, and you can work out how to integrate the repositories into your existing backup strategy. If the answer you get back is "nothing" or "huh?", you have a huge problem on your hands, and your new Job One is to implement source control.

Things like Dotfuscator, comparatively, are completely irrelevant.
 
ITT: an IT drone who thinks that having an RJ-45 crimper on their belt makes them Batman.

Yes, I am bitter about having to spend any time at all justifying why I have Wireshark and netcat installed to a crew that still has no idea what the health of the servers in production is (did you know that event logs can consume so much disk space that your servers will stop responding? true story.).
 

wallinbl

Ars Legatus Legionis
14,319
Subscriptor
Who cares if your internally developed software can be decompiled into usable code? They should have source control, and they should be using it responsibly. The presence of Dotfuscator has zero bearing on any of this. Your software scan turned up something you know nothing about, and you've jumped to a ridiculous conclusion.

You may or may not have a problem related to the database restores, but you're barking up the wrong tree with the questions raised here.
 

minnmass

Ars Tribunus Militum
2,087
Subscriptor
[url=http:/civis/viewtopic.php?p=26903655#p26903655:2vwcy4r8 said:
wallinbl[/url]":2vwcy4r8]
[url=http:/civis/viewtopic.php?p=26902181#p26902181:2vwcy4r8 said:
JRod[/url]":2vwcy4r8]in this scenario it would make a lot more sense to talk to them and let them know the code remains open and property of the company.
There is no scenario.

There's always a scenario.

However, this one reads like people just aren't talking the same language.

JRod: by the time the code that "remains open and property of the company" has the chance to get dotfuscated, the open-ness and property-ness are no longer concerns; it's akin to finding a binary blob of an executable and wanting to remind the programmers that the C++ code must remain "open and property". As several others have said, your first concern at this point is to ensure that the programmers are using Source Control The Right Way (whatever that means in your particular company, but, at minimum, in a way that Production Code is stored in a well-backed-up location so one errant "yeah, delete that folder" doesn't wipe out everything). If Source Control is not being used now, or is being used badly, your programmers will need to start using it (the right way) yesterday in order for the code to be "open and property". If it's not in Source Control, it's not open and it's not yours.

My optimistic guess for the dotfuscation is that somebody heard that dotfuscating allowed the code to run faster, so they do it because they think it does run faster that way (and, it may even do so). That said, it probably wouldn't be the worst idea in the world to check out the "this is on Production" artifact from the team's source control repository and build everything (complete with dotfuscation) and check that the file signatures match; it's a bit more paranoid than I generally like to be, but it sounds like that's kinda your job.
 
Given that, if I recall correctly, Dotfuscator is installed by default on a full install of the Visual Studio suite, I wouldn't be surprised if none of the devs even had any experience with the tool. (Especially if all their software is written for internal consumption.) Just because it's installed does not indicate that it's in use.

This reminds me a little of a time when someone in our org freaked out a little because they noticed the old MS utility "ODBC Spy" on a network share alongside binaries for an internally developed app. A tool for logging ODBC calls for troubleshooting. Still, it had spy in the name, it must be someone hacking you, right?
 

JRod

Ars Tribunus Militum
1,582
Like I said, I'm not a programmer - and I meant no harm to anyone. When I was consulting I ran into more than one employee who would secretively lock their excel sheets because no one paid any attention to them. This was similar enough to me to look into it. There's nothing wrong with asking a question and making sure people are being honest, I'm not out to get anyone. Everyone in the office has the ability to lock their excel sheets, but I don't go around opening them all to ensure we're not getting hoodwinked...there has to be a reasonable level of trust.

I maintain the backups...this allows us to go back and look for source code, assuming its not being stored on a local computer.

If it's not in Source Control, it's not open and it's not yours.

I'm glad you raised this point, I wasn't aware of it...I do maintain a pretty rigorous backup strategy, so a folder being mass deleted is completely recoverable. I never considered this Source Control though, just good backups.

As much as I have reservations about some of the things I've seen and heard with the developers, I really don't think they're out to get anyone, but it does look like management has room to improve as far as putting checks and balances in place go.
 

minnmass

Ars Tribunus Militum
2,087
Subscriptor
[url=http:/civis/viewtopic.php?p=26906161#p26906161:2m23f0k4 said:
JRod[/url]":2m23f0k4]I maintain the backups...this allows us to go back and look for source code, assuming its not being stored on a local computer.

If it's not in Source Control, it's not open and it's not yours.

I'm glad you raised this point, I wasn't aware of it...I do maintain a pretty rigorous backup strategy, so a folder being mass deleted is completely recoverable. I never considered this Source Control though, just good backups.

Backups are finecritically important, but source control will give you a lot that backups don't, including:
  • collaboration between devs is much easier
  • the location of the "current version" is always known (and isn't dependent on someone being at their desk)
  • deploying to production (or any other environment) can be much simpler
  • it's "impossible" to lose a version/patch/project/... (well, it's much harder than if the "master" version of the code is sitting on someone's desktop or on a network share)
  • deploying new versions (especially to internal servers) can be much simpler - there are tools which will monitor a particular branch of a repository and automatically pull/build when an update is pushed to that branch; at the very least, it's easier for a person to pull/build with a simple script or two than it is to copy a bunch of files around (except for that one config file that needs to be different on Prod)...

... "ammo" in case there's push-back on using source control.

Note: it's also called "version control", so Google around both terms if you feel research-ey.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
Dotfuscator can make things slower with the default settings, there are also logic errors in some of the more esoteric transforms you can enable (May only show up with F# though)

No source control, with obfuscation enabled? I'd be seriously worried about that setup. It might be a balls up, but I would question their professionalism...

Not having source control is a sign of a deeply screwed up team/org/developer, depending on who is responsible.
 

DebtAngel

Ars Scholae Palatinae
1,027
[url=http:/civis/viewtopic.php?p=26907667#p26907667:2kch8paa said:
ShuggyCoUk[/url]":2kch8paa]Dotfuscator can make things slower with the default settings, there are also logic errors in some of the more esoteric transforms you can enable (May only show up with F# though)

No source control, with obfuscation enabled? I'd be seriously worried about that setup. It might be a balls up, but I would question their professionalism...

Not having source control is a sign of a deeply screwed up team/org/developer, depending on who is responsible.

I think the consensus is that Dotfuscator is not being used by the dev team, and this is more a case of an experienced amateur IT person panicking because of a menu item he doesn't understand.

Not having source control is a bigger issue, but we've done a pretty good job of pounding on that point. My only real concern for the OP is that, based on how he's been describing things to us, the dev team may have already tuned him out. If he's actually given the "you know the source code you've been writing for the company is property of the company" speech to anybody, he may as well quit now, because nobody will be listening to anything else he has to say.
 
Status
Not open for further replies.