this post was submitted on 24 Aug 2024
18 points (82.1% liked)

Programming

17424 readers
25 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

I've read an article which describes how to simulate the close ports as open in Linux by eBPF. That is, an outside port scanner, malicious actor, will get tricked to observe that some ports, or all of them, are open, whereas in reality they'll be closed.

How could this be useful for the owner of a server? Wouldn't it be better to pretend otherwise: open port -> closed?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 2 months ago* (last edited 2 months ago) (1 children)

Ok, back to this then:

If everything reports open then what ports do you focus on first?

I don't see an issue here. An attacker would be overwhemed with choise and excitement so that he wouldn't be able to decide which port to choose first, get stuck for a several months? He'd toss a coin then.

[–] [email protected] 1 points 2 months ago (1 children)

Its costs him time - which is the point. They would have to do more detailed checks on every port which costs them time. Attackers are typically scanning loads of ports over large ranges of IPs, any small slow down on each can drastically slow down their overall progress making the attack less feasible and more expensive to undertake.

[–] [email protected] 1 points 2 months ago (2 children)

but an attacker isn't obliged to take on all the open ports, he could work with some of them - the ones that may seem the most interesting to him

[–] [email protected] 2 points 2 months ago

That's probably a majority of the point. Falsely report that some interesting ports are open and he'll spend time on them and potentially trigger alerts or blocks.

Fake open ports aren't something a normal user would bother with or understand, but with all the tools available in the nefarious side, it makes sense to have options that make their job harder if you're willing to use them.

[–] [email protected] 1 points 2 months ago

Yes, which limits the amount of ports they can search and thus can be used to hide things on less popular ports. It is not going to stop an attacker. Just makes their job a bit harder or less complete.