r/AskNetsec • • May 01 '22

Other Is it wrong for GitHub to host hacking tools?

The culture of most mainstream cyber sec forums / portals is "do no harm". Most forum members will thankfully not co-operate if they suspect their advice will be used for nefarious purposes.

However, this culture of keeping things clean is slightly subverted by GitHub who seem to have some very potent hacking tools on their site. Yet, I rarely hear the media or other internet commentators lambast them in the same way that Walmart gets criticised for selling arms.

Any thoughts on this?

17 Upvotes

38 comments sorted by

72

u/mavrc May 01 '22

Well, this is a fairly common topic of discussion. It always comes back to this same thing: is it illegal or immoral to develop, say, Metasploit (or Zap or mimikatz or fuckin Ghidra) or and give it and its source away for free? We can see this mirrored in the frustration between locksporters and old school locksmiths, one who wants to share knowledge as widely as possible, one who wants to secure it to only people who will, presumably, be above reproach.

IMO, knowledge is always better when it's shared. This enables criminals, to be sure. But a lot of those criminals would have sought that knowledge out anyway, whether it's secreted away or not. Making it available to everyone enables everyone.

Also: Lockpicks are not illegal, bolt cutters are not illegal, torches are not illegal, winches, chains and trucks are not illegal, but all of them would come in awfully handy if you wanted to heist an ATM. Why does Home Depot sell thieves' tools?

6

u/crusty_fleshlight May 01 '22

A minor correction, if I may. Lockpicks are illegal in some states without a license. But I 100% agree with you that sharing knowledge is important and regulating otherwise mundane tools hurts more than helps.

3

u/mikebailey May 03 '22

A more recent discourse has been is lowering the barrier of an exploit just bait. If it lives in obscure fashion in a gist but someone compiles it, hosts it and shows you how to spray it against Shodan is that a net positive, basically.

3

u/mavrc May 03 '22

That is a much better question. Showing you how to look up random targets and toss exploits at them violates the ToS of pretty much every video host, because it violates the law in virtually any country it would be hosted in.

But education still matters. If someone wants to deconstruct an exploit, talk about why it works, and then demonstrate building and using it against a lab system, I would say that's a totally reasonable thing to do. It stands to reason that people would do well to make sure that whatever exploit is either patched or WONTFIX before openly demoing it,

And again, that's just my opinion, what do you think?

2

u/mikebailey May 03 '22

I'm somewhere in the middle, particularly because I openly work for a vendor who's been on the other side of that sort of dropped exploit pattern

8

u/bamed May 01 '22

Lockpicks are illegal some places. Laws vary by country and state. In some places they're legal to own, but not to carry with you. It can get weird. Check your local laws to CYA.

2

u/ablazetok May 02 '22

I would like to add that in the case of metasploit, the creator made it first and for most to provide transparent pentest tools to the public that could be modular. As when metasploit was first being made you would just download the tool without knowledge of what it did. putting your client at risk of getting hacked from your own pentesting.

110

u/boli99 May 01 '22

Is it wrong for GitHub to host hacking tools?

Is it wrong for supermarkets to sell carving knives?

One mans legitimate tool is another mans murder weapon.

Same goes for specialist 'hacking' tools.

4

u/A_Badass_Penguin May 02 '22

Yeah I do pentesting full time. I use repos like SecLists and PayloadAllTheThings almost every day during field work. Those GitHub repos do a lot of good. Sure the information is available to people who want to misuse it but it's better than taking it off GitHub and moving it to a place where only nefarious actors would have access.

23

u/SnotFunk May 01 '22

Listen to this podcast with HD Moore gives a proper insight into the reasons behind metasploit.

https://darknetdiaries.com/episode/114/

But plainly speaking, stopping them from being posted on public websites doesn't stop them from being shared. At least with them being publicly available defenders can work to detect and protect them, pentesters can use them to demonstrate to you how you're vulnerable and ideally how to protect yourselves.

12

u/Kryptomeister May 01 '22

In order to defend a corporate network you first have to know how to compromise it.

Irrespective of a hacking tools primary function, they are useful for both red and blue teams.

11

u/[deleted] May 01 '22

To do otherwise would only concentrate knowledge in the hands of those who would use it, and those who pretend to be gatekeepers of knowledge while probably being effectively outdated, and leave everyone else unaware and unprepared.

What consists of nefarious use is also up to debate. Fraud and extortion is generally agreed to be nefarious. Is hacktivism nefarious?

8

u/[deleted] May 01 '22

no

14

u/from_the_east May 01 '22

Knowledge is power.

By reviewing the code and understanding how these tools work, you can build security measures against them.

-2

u/PrivilegedEscalator May 01 '22

Depends on your threat level. Most are configuration issues and building your own tools is great if your at that level. But for most people they shouldn't smoke meth in the first place.

6

u/itsecurityguy May 01 '22

However, this culture of keeping things clean is slightly subverted by GitHub who seem to have some very potent hacking tools on their site.

Tools are just tools, its up to the person operating them if its used for good or bad. Additionally, open source security tools and exploits help more than harm. Many defensive products rely on the work others do making PoC's for vulnerabilities and the open source tools.

Also, there is always a debate between people against public disclosure and those for it in the community.

5

u/fishsupreme May 01 '22

I don't think it's wrong for them to host them. Frankly, a lot of these "hacking tools" are really dual-use technology, and are vital tools for people working in infosec. I've had to disable my anti-malware systems in order to do my job on many occasions, because they flag the tools of my profession as "hacking tools."

I think there's less criticism in the media just because the media doesn't care as much about hacking tools as guns (and rightfully so, one kills people and the other doesn't.) I have absolutely seen this question discussed in infosec media, just not general media.

I am sympathetic to the argument that they should be hosted on a separate subdomain so that corporate networks could block it if they wanted. This prevents GitHub from being used as a download source during an active intrusion, but still makes the tools available to the general public. And infosec teams could have an exception to the rule blocking the hacking subdomain.

I'm not sympathetic to banning them entirely. This will make it harder for legitimate security researchers to get the tools, while not doing anything to stop malicious actors from getting them from less reputable sources. I don't want to have to worry about whether my copy of Metasploit or Mimikatz has someone else's malware embedded in it because I had to fetch it from a random Russian hacking forum instead of GitHub.

2

u/TrustmeImaConsultant May 02 '22

Maybe because it's kinda hard to shoot kids with mimikatz.

1

u/Usual-Plan1394 Jun 23 '24

Hello my name is Roy. Unfortunately I am not tech savvy. But I've become more and more about doing countless hours of research. My ex-wife has hacked me many times even after our divorce. And she uses GitHub. She's probably gotten a lot better at it over the last few years. But I would like to know how to stop it and put up firewalls so it can just stop happening. I don't know how she got in my phone's this time. I'm guessing it was my son's phone. She must have put a APK malware I'm guessing. And that's even if I'm using the right terms.. any help of a greatly appreciated. And I'm open to learn and read. I'm really just at my wit's end with it. I found a running GitHub program in my computer.i don't even live in the same house. I found malicious APK apps on my son's phone. Yeah I believe I have the Apache 2 program in many of my apps. And I don't know if I should be concerned about it but the RGM.goog. is on my personal phone. And from where I'm reading it's good and bad. But it shouldn't be on my phone because it's just a personal phone. 0 so if anybody could please help me I don't want to take up too much of anybody's time. Just point me in the right direction. I don't want to live with this for 13 more years. FYI she's a psychopath.... Am I better off taking this to a professional cuz I have multiple devices affected. Or is this something I can possibly handle myself. Not worried about the morning. I just want my privacy. And please let me know if I'm wrong about any of this. I've done the best I can to wrap my head around what you I consider geniuses do day in day out. And FYI we run a onePlus 11 phone. Hey Google Pixel 7. And a Dell laptop. . ๐Ÿ™๐Ÿ™๐Ÿ™ I know that was a long read and I apologize about that. I just want to get all the issues that I think are a problem out there. Because this needs to be fixed quick as possible. Thank you so much and I look forward to learning with you guys.

1

u/Mr_Bob_Ferguson May 02 '22

Many companies donโ€™t have the resources to dedicate to tool development.

Hackers are gonna hack, theyโ€™d just go underground to acquire them instead.

At least this way everyone has an idea about what is out there.

1

u/[deleted] May 02 '22

I'd argue that the culture of most mainstream cybersecurity forums is "don't encourage criminal activity."

I don't particularly care if my advice gets used for nefarious purposes because I'm not the sole source of information on any topic, otherwise I wouldn't contribute at all. Now some people are less subtle than others in their question asking and I tend not to help those too stupid for the crimes they're clearly committing.

I definitely wouldn't say that GitHub is subverting the "don't encourage criminal activity" culture of cybersecurity. Researchers need a place to publish, peers should be able to review their work product, and as a community we become more informed by the process.

I'm going to skip the analogy to firearms and ammunition as people are all too often unable to objectively consider debate of that subject, especially in countries where they can both be obtained at the same store as alcohol, your mental health medication, and baby food.

1

u/Rezient May 02 '22 edited May 02 '22

As a person who researches security, these tools help me understand how someone breaks into a system so I can prevent them from breaking in

These tools already exist and/or can be made. Suppressing that information only hurts the people who are less wary of them and how they work. Pen-testing is extremely important in Security, being its own field, and not having these tools and the information of how hacking works, it hurts that field and the field im in greatly as it'll leave us unprepared for if a computer literate person or a script kiddie who finds the code on OTHER non-regulated hosting sites. So even banning this information doesn't actually prevent the issue. So again, banning the information only harms the defense of it all

Edit: I have a similar opinion on guns, but that's a little more complicated as there's aspects of the argument that don't exist for software. Mainly the direct ability to kill mass amounts of people and yourself in an instance. Closest you get there with software is if a hospital was hacked (that would be a project, not do-able on a whim like a mass-shooting). Issues there will cost people some lives, but again, to prevent it we need to understand how malware works... so we need that info widely available. I wish the topic of guns could be discussed in a similar way to figure out the best way to handle that "information", but not here. Guns are a different subject matter that'll have a different set of rules compared to software imo, but this could be a good enough comparison to show why guns won't just "go away" even with banning.

-1

u/NetAtraX May 01 '22

The bash can be a hacking tool.

-1

u/RunItAndSee2021 May 01 '22

โ€œya want to be a script kiddie or nah.โ€

-26

u/Estebana42 May 01 '22 edited May 01 '22

github itself is wrong, its owned by microsoft, everything about it is architected to cattle herd people to ms cloud services, and ms will cut developers out of accessing their own code if it serves their rich friends

everything about github is spiritually sick, it went from being a open source bastian to being untrustworthy and manipulative

the idea of it has become perverted into a shopping network with capitalistic goals and facilitation of developers is a legacy consideration

4

u/astillero May 01 '22

it is architected to cattle herd people to ms cloud services,

Ok thanks for your comment but do you have any example for this?

6

u/bagostini May 01 '22

Do you have any evidence that MS is using github to "herd" people to their cloud services? I've literally never heard anyone make this claim before. This sounds like some paranoid conspiracy crap.

-16

u/Estebana42 May 01 '22

I feel like you've all made up your minds so whats the point

Ms was taken to task by the US dept of justice, an unthinkable thing given that the US is really corrupt when it comes to large businesses and politics. The situation had to be rancid dire for years and years for that event to take place. Ms is closer to 'wolf of wall street' than whatever image you people have cast them to have in your heads.

I would never be able to get past the wall of bias. I don't even understand it, like why do people get this weird super boner to defend microsoft, I feel like they are not grasping who they are defending and its like a personal thing, like I'm insulting their childhood teddy bear

6

u/SnotFunk May 01 '22

With zero real interaction you have decided that people who deal with doubt all day every day, low confidence threat intel etc would not listen to a convincing argument as to why MS is herding people to cloud services using github.

People in our roles have to make decisions based on facts presented to them on the daily.

Instead you're essentially saying "trust me bro" and presenting zero facts. My retort, why even say this if you're not willing to share the reason why you say it and the evidence that your statement is founded on?

3

u/bagostini May 01 '22

Okay, you read something that I did not type at all lol I truly have no idea where you got that I was defending MS. My asking for evidence to corroborate this claim that I've never heard before is not automtaically me defending MS. You seem to be the only one here which a massive chip on their shoulder. Good job dodging the question, though.

-17

u/Estebana42 May 01 '22

yeah, thats what I mean, the bitchy mean girls snark, there's no point because you cannot get past that, its a mental mode and I've never seen anyone talk a bitchy mean girl off the edge of being bitchy before, have you?

5

u/bagostini May 01 '22

Cool, I'm done with you. You're obviously impossible to engage with, so I'll just leave you to your weird delusions. No one's gonna take you seriously if you're just gonna shout some weird claim and not provide any evidence for said claim, but do whatever you want, I guess.

0

u/[deleted] May 01 '22

[deleted]

3

u/feraferoxdei May 01 '22

While I don't have an opinion regarding this debate, I feel like people downvoting u owe u an explanation. Quite sad people just downvote whatever they don't agree with, regardless of reason.

0

u/[deleted] May 02 '22

[deleted]

3

u/disclosure5 May 02 '22

As an Australian who has never seen a gun on the street this is a pretty humorous thing to read.