pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pavel Borisov <pashkin.elfe@gmail.com>
Cc: noloader@gmail.com, Magnus Hagander <magnus@hagander.net>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: [OT] Microsoft: Kubernetes clusters hacked in malware campaign via PostgreSQL
Date: Tue, 24 Jan 2023 15:57:13 -0500
Message-ID: <Y9BGKQlciVlnrl8+@tamriel.snowman.net> (raw)
In-Reply-To: <379034.1673389287@sss.pgh.pa.us>
References: <CABUevEy=JV6ND-h38UNEnBG4zX=vGrWt1v-iF9q0PDh4FewCMw@mail.gmail.com>
	<CAH8yC8marSG+mhuKSFj01EFziZrQK4hGThx7dtE64y7SH5m2Qw@mail.gmail.com>
	<CALT9ZEGG6DPg=ahRSMBOEMg6OuRJx3Tsrfnw8DtVQ4HHybyWPQ@mail.gmail.com>
	<CABUevEzmWBcpMr_VLqUyWSsuGcOmYX9y+hCptu9aJ+VfN2Ccrg@mail.gmail.com>
	<CALT9ZEFN+jAbaLs12p-np8VXVMYswV7uU03xHjPXAZugaa1ehQ@mail.gmail.com>
	<CAH8yC8nwHw9CqBr+fPwRCB0UfArdOC7b6-tL1DYO1EsZ8MXLig@mail.gmail.com>
	<CABUevEzq6uv39wUyu=zBW6NezXvm25U3R4i9W5+_g28KWWqT7w@mail.gmail.com>
	<CAH8yC8kGR0YHoCZf2TXhxJS9-FDhPaMCpo89CCXn=kGtVbRn5Q@mail.gmail.com>
	<CALT9ZEGsd9cP25=PrtVuOHNb4FAM4EJTiMNEr8jo7rUeV4fbTA@mail.gmail.com>
	<379034.1673389287@sss.pgh.pa.us>

Greetings,

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Pavel Borisov <pashkin.elfe@gmail.com> writes:
> > Regarding the fact that using weak passwords isn't limited, I think
> > anyone can write an extension that limits (or advises against) weak
> > passwords based on the author's definition of weakness, like checking
> > by dictionary or so. That's the power of Postgres extensibility. I
> > don't like an idea that Postgres core should enforce some arbitrary
> > things like "weakness".
> 
> It's less easy than it sounds, actually, because current best practice
> is that the server will never see the cleartext password at all, so
> you can't apply the usual litany of weak-password checks.  About all
> you can do is apply a brute force rainbow attack, which is far from
> cheap (although I guess the DBA could run such checks in the background).
> Even that might be rendered infeasible if the password is stored as
> a SCRAM verifier; I'm not sure about that.  Anyway, this is why
> contrib/passwordcheck is a development backwater rather than something
> people actually use.

For better or worse, people do actually use it and it would be much
better if we'd actually allow some effort to be put into improving this
situation.  I'm all for better choices of authentication methods, but
that simply isn't always an option and there are cases where DBAs have
to be able to require passwords on select accounts be set via cleartext
to allow passwordcheck and similar tools to enforce password complexity
requirements.

Pushing back against that means fewer folks will use PostgreSQL because
it isn't able to reasonably address this requirement (unlike most of the
other databases out there..), and that's unfortunate.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (14+ messages)

Message-ID: <Y9BGKQlciVlnrl8+@tamriel.snowman.net>
Permalink:  ../Y9BGKQlciVlnrl8+@tamriel.snowman.net/
Also on:    postgresql.org/message-id/Y9BGKQlciVlnrl8+@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: sfrost@snowman.net, tgl@sss.pgh.pa.us, pashkin.elfe@gmail.com, magnus@hagander.net
  Subject: Re: [OT] Microsoft: Kubernetes clusters hacked in malware campaign via PostgreSQL
  In-Reply-To: <Y9BGKQlciVlnrl8+@tamriel.snowman.net>
  References: <CABUevEy=JV6ND-h38UNEnBG4zX=vGrWt1v-iF9q0PDh4FewCMw@mail.gmail.com> <CAH8yC8marSG+mhuKSFj01EFziZrQK4hGThx7dtE64y7SH5m2Qw@mail.gmail.com> <CALT9ZEGG6DPg=ahRSMBOEMg6OuRJx3Tsrfnw8DtVQ4HHybyWPQ@mail.gmail.com> <CABUevEzmWBcpMr_VLqUyWSsuGcOmYX9y+hCptu9aJ+VfN2Ccrg@mail.gmail.com> <CALT9ZEFN+jAbaLs12p-np8VXVMYswV7uU03xHjPXAZugaa1ehQ@mail.gmail.com> <CAH8yC8nwHw9CqBr+fPwRCB0UfArdOC7b6-tL1DYO1EsZ8MXLig@mail.gmail.com> <CABUevEzq6uv39wUyu=zBW6NezXvm25U3R4i9W5+_g28KWWqT7w@mail.gmail.com> <CAH8yC8kGR0YHoCZf2TXhxJS9-FDhPaMCpo89CCXn=kGtVbRn5Q@mail.gmail.com> <CALT9ZEGsd9cP25=PrtVuOHNb4FAM4EJTiMNEr8jo7rUeV4fbTA@mail.gmail.com> <379034.1673389287@sss.pgh.pa.us> <Y9BGKQlciVlnrl8+@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox