public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-hardened] what RLIMIT_STACK mean?
@ 2008-09-27 12:42 Alex Efros
  2008-09-29 15:21 ` Alex Efros
  0 siblings, 1 reply; 26+ messages in thread
From: Alex Efros @ 2008-09-27 12:42 UTC (permalink / raw
  To: gentoo-hardened

Hi!

Can you please explain to me what these records in my logs mean?

    2008-09-27_11:35:55.93144 kern.alert: grsec: From 78.53.3.223: denied
    resource overstep by requesting 180883456 for RLIMIT_STACK against limit
    8388608 for /bin/cat[cat:10111] uid/euid:81/81 gid/egid:81/81, parent
    /usr/sbin/apache2[apache2:21930] uid/euid:81/81 gid/egid:81/81

    2008-09-27_12:08:17.12634 kern.alert: grsec: denied resource overstep by
    requesting 187367424 for RLIMIT_STACK against limit 8388608 for
    /var/qmail/bin/qmail-local[qmail-local:22538] uid/euid:1000/1000
    gid/egid:100/100, parent /var/qmail/bin/qmail-local[qmail-local:22535]
    uid/euid:1000/1000 gid/egid:100/100

For example, first record may be result of malicious http request sent
from 78.53.3.223 to my apache... but I've no idea why /bin/cat was called
(I don't aware about cgi scripts on my server which will call /bin/cat)
and what went wrong with it. I'm not sure how this guess is correct...

Second is even more strange, because qmail-local was called by
qmail-local, there no "From IP" part in this record, so it looks like some
internal error on my server... but I never notice any troubles with qmail,
mail works ok and there no error in qmail log. Actually, here are records
from qmail log related to same time:

    2008-09-27_12:08:17.07092 new msg 662104
    2008-09-27_12:08:17.07093 info msg 662104: bytes 2912 from
    <gentoo-hardened+bounces-2147-powerman=powerman.asdfgroup.com@lists.gentoo.org>
    qp 22534 uid 201
    2008-09-27_12:08:17.07403 starting delivery 5800: msg 662104 to local
    powerman@powerman.asdfgroup.com
    2008-09-27_12:08:17.07404 status: local 1/10 remote 0/20
    2008-09-27_12:08:17.14903 delivery 5800: success: did_1+0+0/did_0+0+2/
    2008-09-27_12:08:17.14905 status: local 0/10 remote 0/20
    2008-09-27_12:08:17.14905 end msg 662104

As you see, it was incoming email from this maillist, which was delivered
without issues... so it wasn't some malicious spam message which trying to
crash my qmail. I've no idea why grsec complain in logs about it.

I've a lot of such records - about 5 new records every hour in average.
I've checked all combinations of "for /..., parent /...":

# grep RLIMIT_STACK /var/log/kernel/all/{@*,current} |
perl -pe 's/.* (for \/[^:]*).* (parent \/[^:]*).*/$1] $2]/' | sort | uniq -c
    303 for /bin/bash[sh] parent /bin/bash[sh]
    277 for /bin/cat[cat] parent /usr/sbin/apache2[apache2]
     17 for /bin/su[su] parent /usr/bin/runsv[runsv]
      1 for /[chpst] parent /bin/bash[sh]
      1 for /[egrep] parent /bin/bash[sh]
      1 for /[ifconfig] parent /bin/bash[sh]
      8 for /[sh] parent /usr/sbin/crond[crond]
    341 for /var/qmail/bin/qmail-local[qmail-local] parent /var/qmail/bin/qmail-local[qmail-local]

-- 
			WBR, Alex.



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2008-11-12  1:38 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-27 12:42 [gentoo-hardened] what RLIMIT_STACK mean? Alex Efros
2008-09-29 15:21 ` Alex Efros
2008-09-29 15:46   ` Javier Martínez
2008-09-29 15:56     ` Alex Efros
2008-09-29 16:06       ` Javier Martínez
2008-09-29 16:10         ` Javier Martínez
2008-09-29 16:24           ` Alex Efros
2008-09-29 16:46   ` pageexec
2008-09-29 16:57     ` Alex Efros
2008-09-29 23:29       ` Adam James
2008-09-30  0:03         ` Alex Efros
2008-11-08 21:13       ` pageexec
2008-11-08 22:40         ` Alex Efros
2008-11-08 21:55           ` pageexec
2008-11-08 23:06             ` atoth
2008-11-09 11:44               ` pageexec
2008-11-10  6:13                 ` atoth
2008-11-10  9:24                   ` Alex Efros
2008-11-10 11:31                     ` atoth
2008-11-10 12:23                       ` Alex Efros
2008-11-10 13:24                       ` Brian Kroth
2008-11-10 12:43                         ` pageexec
2008-11-10 17:02                           ` atoth
2008-11-12  0:00                           ` Kerin Millar
2008-11-12  0:37                             ` pageexec
2008-11-09 17:40             ` Alex Efros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox