Settings

Theme

Network Instrumentation and TCP File Descriptor Hijacking

krisnova.net

4 points by kris-nova 3 years ago · 2 comments

Reader

pluto_modadic 3 years ago

What's the performance hit for doing this? And, the rootkit question, how would eBPF notice you doing this?

  • kris-novaOP 3 years ago

    > What's the performance hit for doing this?

    So I want to be clear. This work is very much in the "fantasy" stage. I haven't ran this at scale, and there is a lot I would do before I blindly rolled something like this out. As far performance impact, it obviously would depend on how it's implemented however I think a reasonable amount of "tracer packets" being sent out every 15 seconds or so to each hop shouldn't be too disruptive to the network, or to the host machine issuing the request. In other words if you take the `ptrace(2)` concern out of the equation (this is the big one in my mind) its going to be negligible.

    > And, the rootkit question, how would eBPF notice you doing this?

    I suppose it would depend on what your strategy with eBPF is and where you were looking. Reminding yourself that the pidfd_getfd and pidfd_open functions are system calls, I think any modern Linux auditing system would see something like this "a mile away".

    In other words, I don't see somebody using this tactic to steal FDs in production without quickly alerting most security systems. I suspect there would be ways of hiding this however... https://github.com/krisnova/boopkit...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection