Live data from Hacker News

An obscure kernel feature to get more info about dying processes

timetobleed.com

31–39 of 39 posts

Re: An obscure kernel feature to get more info about dying processes

#31
post #8

Earlier quoted context omitted.

on the other hand, it makes for an interesting rootkit hook.

Which is more dangerous than all the others things you can do as root - like inserting an arbitrary kernel module - how?

Dangerous: no, but he said interesting, so perhaps. The advantage of using little known features, for rootkits, is that people are less likely to look for them.

Re: An obscure kernel feature to get more info about dying processes

#32

Hook root when a process crashes? How long until an exploit?

If you have the ability to modify or create files in /proc you almost certainly already control the system.

You only need to modify the tool that runs as the hook script...which may or may not be protected

Re: An obscure kernel feature to get more info about dying processes

#34
post #5

[deleted]

Thinking this guy is a 'Ruby person' and branding him as one to try and make some point is just not even wrong. It's completely besides anything near reality. Check out some of his others posts before climbing on your favorite hobbyhorse. He is as much a C programmer as you are.

Ruby and Python guys can be C guys. Even Matz and Guido are C guys before they are Ruby and Python guys, respectively.

There is no one language, toolkit or framework.

Re: An obscure kernel feature to get more info about dying processes

#35
This is actually quite interesting - I didn't know you could do that, and I will likely employ it in the future, especially with a remote web server or something you can't immediately get to. So as you roll in, you check your email on your phone, and know walking in what you're getting into and likely how to fix it. From a time-optimization viewpoint, this is nigh-invaluable.

Plus this guy has some other very nifty articles.

But I guess (glancing at first few comments) that "haterz gonna hate."

Re: An obscure kernel feature to get more info about dying processes

#36

Hook root when a process crashes? How long until an exploit?

If you have the ability to modify or create files in /proc you almost certainly already control the system.

Not necessarily. You can trick someone who does have access to write /proc into writing something to /proc for you via symlink or another method.

Disclosure: I work on the unrEVOked rooting tool for android and we do stuff like this all the time.

Re: An obscure kernel feature to get more info about dying processes

#37
post #8

Earlier quoted context omitted.

on the other hand, it makes for an interesting rootkit hook.

Which is more dangerous than all the others things you can do as root - like inserting an arbitrary kernel module - how?

i never said more dangerous nor intended it.

it's not a very good rootkit by itself, certainly, as typically rootkits will monkey with the kernel to hide processes and network sockets.

it's interesting because it's probably the simplest rootkit method i can think of (next to setuid binaries). it's less obvious than a setuid. it's not something that anyone sane would use by itself because like i said--it doesn't hide you.

Post reply on HN