🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.os.linux.debian
Article #29859

Re: Apache i grsec

#29859
From: jacki
Date: Fri, 10 May 2013 12:31
38 lines
2758 bytes
W dniu 2013-05-10 13:10, qed pisze:
> Hi
> Ja siedzę w bezpieczeństwie sieciowym i przypomina mi to reakcję na
> automatyczne próby złamania hasła; wielokrotnym logowaniem.
> W wyniku tego banowane jest na 15 minut konto www-data, na którym
> prawdopodobnie działa serwis www, będący celem ataku, a skoro pada
> apache, to także i on zostaje zatrzymany.
> To ma uchronić Twój serwer przed przejęciem hasła próbami wielokrotnego
> logowania (brute-force).
> Za tą reakcję odpowiada grsec - zwiększajacy bezpieczeństwo kernela i
> słusznie zresztą ;) Zapewne w jego konfiguracji mógłbyś zapobiec
> banowaniu, ale to  nie będzie dobre rozwiązanie, bo może doprowadzić do
> zhackowania serwisu.
> Spróbuj przejrzeć inne logi sieciowe (może masz też ips/ids po drodze?);
> powinny pokazać natrętne próby logowania. Moim zdaniem jesteś "under
> siege" i trzeba namierzyć natręta.
>

Nie mam nic po drodze. Innych logów nie mam, ale mogę włączyć np. 
logowanie INPUT na iptables. Coś jeszcze przychodzi Ci do głowy?

W dokumentacji grsec mam coś takiego

CONFIG_GRKERNSEC_BRUTE
If you say Y here, attempts to bruteforce exploits against forking 
daemons such as apache or sshd, as well as against suid/sgid binaries 
will be deterred. When a child of a forking daemon is killed by PaX or 
crashed due to an illegal instruction or other suspicious signal, the 
parent process will be delayed 30 seconds upon every subsequent fork 
until the administrator is able to assess the situation and restart the 
daemon.

In the suid/sgid case, the attempt is logged, the user has all their 
processes terminated, and they are prevented from executing any further 
processes for 15 minutes.

Czytam, ale nadal nie bardzo rozumiem co się dzieje. Ok, jest to próba 
włamania ale jak namierzyć atakującego?
Technical Details
Message-ID: <kmipab$4vo$1@news.task.gda.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.task.gda.pl!not-for-mail
References: <kmiaj2$voh$1@news.task.gda.pl> <kmikk3$dq$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.task.gda.pl!not-for-mail
From: jacki <collector@idealan.pl>
Newsgroups: alt.pl.comp.os.linux.debian
Subject: Re: Apache i grsec
Date: Fri, 10 May 2013 14:31:10 +0200
Organization: CI TASK http://www.task.gda.pl/
Lines: 39
Message-ID: <kmipab$4vo$1@news.task.gda.pl>
References: <kmiaj2$voh$1@news.task.gda.pl> <kmikk3$dq$1@node2.news.atman.pl>
NNTP-Posting-Host: siec.idealan.pl
Mime-Version: 1.0
X-Trace: news.task.gda.pl 1368189067 5112 178.212.144.2 (10 May 2013 12:31:07 GMT)
X-Complaints-To: abuse@news.task.gda.pl
NNTP-Posting-Date: Fri, 10 May 2013 12:31:07 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
In-Reply-To: <kmikk3$dq$1@node2.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit