Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKsu2-0002LC-1S for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 22:03:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fKsu0-0005EE-Q9 for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 22:03:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKstz-0005E4-1h for pgsql-general@lists.postgresql.org; Mon, 21 May 2018 22:03:36 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKstp-0002cw-K8 for pgsql-general@postgresql.org; Mon, 21 May 2018 22:03:34 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2209422277; Mon, 21 May 2018 18:03:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 21 May 2018 18:03:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=qHeGQuXwXD4WXjjlYe29iuOC9SSAI chZRVqe167Jckc=; b=qkOYkMZ7PIbndZrL/vUr4asTCYdDN2UZPtaHHK6issROR lK52Xzo46OL83VsmcdVNlTGKYg1seOnkwE8Eike5+VM37amQlF93qppon69wZqZI 84i0EVu9KC8re/FD/L+pCXj/3PAdGmAajzPg/KDUvTzKLjbHZzA5YpbU1VZRcaGA jwURakn/Fe2YfsqU0fivlkp0Mbx6kTWWBasHjl1Z2WhLtmBTBkqln9jxsOLiQ6f5 h9qJf8Ss46h3FiWdt/EGfbHjqTxlt4+9Ez7ldGJ6EzxC4r6x1MwXq3VF/+PQcihJ Ew77cf38783Wrg8F03lSaPD19CT/UDEfIQNl5mD1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=qHeGQu XwXD4WXjjlYe29iuOC9SSAIchZRVqe167Jckc=; b=YSRWr0P1zDk3VQLQdIEgOS DC5tvMYhNIk8qJqtows5Li1PAbWxuRUWzsDuN1wuRIeTp/hxApt8WBetNOprG3HE 69Ih/VqFxfuE9kRCbnDHg2xyJoD6hltBRwVVBuJf4vZAeFZSiICTrj4UPdEreZuW +oquDFKMuWEzjdkG6vO4pI3tSmr/a40/dYv+t8U9PaQKd7G/PXoWo89lrKJCOAJU xBnJT3tErCsMvw+Yi/XyenuFDxMC/c+JVINL5S48yk6v+c2WscEFwUT6svdrB2MC vappOVyn7jwyLM+mwBwzOU9O903YXaCaekg9JvIv6QtA7POqb4GULBbb7YjFfmlw == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.2] (unknown [71.212.135.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 674DAE4BB5; Mon, 21 May 2018 18:03:22 -0400 (EDT) Subject: Re: posgresql.log To: Bartosz Dmytrak , pgsql-general@postgresql.org References: <020901d3f14c$512a46d0$f37ed470$@gmail.com> From: Adrian Klaver Message-ID: Date: Mon, 21 May 2018 15:03:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <020901d3f14c$512a46d0$f37ed470$@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 05/21/2018 02:40 PM, Bartosz Dmytrak wrote: > Hi Gurus, > > Looking into my postgresql.log on one of my test servers I found scary > entry: Is there a Web app running on this server? The log entries below are from the Postgres logs in?: /var/log/postgresql/ > > --2018-05-19 05:28:21--  http://207.148.79.161/post0514/post > > Connecting to 207.148.79.161:80... connected. > > HTTP request sent, awaiting response... 200 OK > > Length: 1606648 (1.5M) [application/octet-stream] Hmm, the below says it downloaded 12.5M. > > Saving to: ‘/var/lib/postgresql/10/main/postgresq1’ The postgresq1 file is actually there? If so have you looked at the file: file postgresq1 to get an idea of what it is? > > 0K .......... .......... .......... .......... ..........  3% 71.0K 21s > >     50K .......... .......... .......... .......... ..........  6% > 106K 17s > >    100K .......... .......... .......... .......... ..........  9% > 213K 13s > >    150K .......... .......... .......... .......... .......... 12% > 213K 11s > >    200K .......... .......... .......... .......... .......... 15% 16.3M 9s > >    250K .......... .......... .......... .......... .......... 19%  215K 8s > >    300K .......... .......... .......... .......... .......... 22% 15.6M 7s > >    350K .......... .......... .......... .......... .......... 25% 11.7M 6s > >    400K .......... .......... .......... .......... .......... 28%  219K 5s > >    450K .......... .......... .......... .......... .......... 31% 12.1M 5s > >    500K .......... .......... .......... .......... .......... 35% 11.7M 4s > >    550K .......... .......... .......... .......... .......... 38% 12.2M 3s > >    600K .......... .......... .......... .......... .......... 41% 12.1M 3s > >    650K .......... .......... .......... .......... .......... 44%  228K 3s > >    700K .......... .......... .......... .......... .......... 47% 12.2M 3s > >    750K .......... .......... .......... .......... .......... 50% 12.1M 2s > >    800K .......... .......... .......... .......... .......... 54% 11.7M 2s > >    850K .......... .......... .......... .......... .......... 57% 12.1M 2s > >    900K .......... .......... .......... .......... .......... 60% 11.8M 2s > >    950K .......... .......... .......... .......... .......... 63% 12.1M 1s > >   1000K .......... .......... .......... .......... .......... 66% 12.0M 1s > >   1050K .......... .......... .......... .......... .......... 70%  243K 1s > >   1100K .......... .......... .......... .......... .......... 73% 12.1M 1s > >   1150K .......... .......... .......... .......... .......... 76% 12.1M 1s > >   1200K .......... .......... .......... .......... .......... 79% 11.7M 1s > >   1250K .......... .......... .......... .......... .......... 82% 12.1M 1s > >   1300K .......... .......... .......... .......... .......... 86% 12.1M 0s > >   1350K .......... .......... .......... .......... .......... 89% 11.8M 0s > >   1400K .......... .......... .......... .......... .......... 92% 12.1M 0s > >   1450K .......... .......... .......... .......... .......... 95% 12.1M 0s > >   1500K .......... .......... .......... .......... .......... 98% 11.8M 0s > >   1550K .......... ........ 100% 12.5M=2.6s > > 2018-05-19 05:28:25 (598 KB/s) - > ‘/var/lib/postgresql/10/main/postgresq1’ saved [1606648/1606648] > > Downloaded file is not posgresql but postgresq1(one). > > It was pure pg instalation without any contrib modules addons etc, > istalled on ubuntu box by apt manager using repos: > > http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main > > http://apt.postgresql.org/pub/repos/apt xenial-pgdg > > I have never seen such entry on other my other servers… > > Could you be so kind and explain me what is it? I am afraid my postgres > has been hacekd. > > Best Regards > > */Bartosz Dmytrak/* > -- Adrian Klaver adrian.klaver@aklaver.com