endlessh-go: a Golang SSH tarpit that traps bots/scanners

3 years ago by cantankerous_cashew to c/selfhosted

A golang implementation of endlessh exporting Prometheus metrics, visualized by a Grafana dashboard. - shizunge/endlessh-go
wgs 25 points 3 years ago

endlessh was pretty cool and a more modern version is even better ! I'll give it a shot !

On a side note, I found a way to trap HTTP connections too while working on my cyb.farm project. The go implementation is ridiculously simple: tarpit.go. It works by providing an endless stream of custom headers to the client, which it is supposed to ingest before getting to the content itself.

path: 0 8905739, hotness: undefined, score: 25, children: 0
Oha 11 points 3 years ago

Woah! Exactly what ive been looking for, thanks for sharing

path: 0 8909346, hotness: undefined, score: 11, children: 0
krash 10 points 3 years ago

Perfect timing since endlesssh isn't actively developed anymore.

path: 0 8926609, hotness: undefined, score: 10, children: 0
imPastaSyndrome 9 points 3 years ago

I'm not sure what this is other than what seems to be a black hole for bots... But can you use it defensively?

path: 0 8913720, hotness: undefined, score: 9, children: 5
skilltheamps 16 points 3 years ago

A colleague of mine had a (non externally reachable) raspberry pi with default credentials being hijacked for a botnet by a infected windows computer in the home network. I guess you'll always have people come over with their devices you do not know the security condition of. So I've started to consider the home network insecure too, and one of the things I want to set up is an internal ssh honeypot with notifications, so that I get informed about devices trying to hijack others. So for this purpose that tool seems a possibilty, hopefully it is possible to set up some monitoring and notification via uptime kuma.

path: 0 8913720 8922325, hotness: undefined, score: 16, children: 2
imPastaSyndrome 2 points 3 years ago

Yeah I have a Linux server that is constantly being hit by SSH requests and bad password requests... So if I could redirect them to this black hole thing I'd love that. But I really Don't understand how I could do that without destroying being able to connect to the website? Honestly I should make it so I can only SSH in via my local network since I never do it from the outside network anyway... I maybe just make a SSH key pair...

Promise I don't really know much about security and the real problem is securities only ever something that people care about when it's too late. Ugh

path: 0 8913720 8922325 8943925, hotness: undefined, score: 2, children: 1
skilltheamps 1 point 3 years ago

Well you must have either set up a port redirect (ipv4) or opened the port for external traffic (ipv6) yourself. It is not reachable by default as home routers put a NAT between the internet and your devices, or in the case of ipv6 they block any requests. So (unless you have a very exotic and unsafe router) just uhhh don't 😅 To serve websites it is enough to open 443 for https, and possibly 80 for http if you want to serve an automatic redirect to https.

path: 0 8913720 8922325 8943925 8956639, hotness: undefined, score: 1, children: 0
Supermariofan67 5 points 3 years ago

It's useful for security researchers to collect and analyze what the newest attack bots are trying to do, in order to learn how to defend against it and study the malware they drop. There are some cool videos on YouTube about decompiling malware dropped by the bots.

path: 0 8913720 8914123, hotness: undefined, score: 5, children: 0
possiblylinux127 3 points 3 years ago

You can see all is interested in attacking your servers and what the payload looks like

path: 0 8913720 8916095, hotness: undefined, score: 3, children: 0
Decronym 1 point 3 years ago

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
HTTP Hypertext Transfer Protocol, the Web
NAT Network Address Translation
SSH Secure Shell for remote terminal access

[Thread #641 for this sub, first seen 30th Mar 2024, 17:25] [FAQ] [Full list] [Contact] [Source code]

path: 0 8956698, hotness: undefined, score: 1, children: 0
selfhosted
selfhosted

@lemmy.world

login for more options
62999
6811
5980

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

go to feed...