Plugin updates change folder permissions

So in the end it was two lines in wp-config.php that somehow had gotten changed:

define( ‘FS_CHMOD_DIR’, ( 0755 & ~ umask() ) );
define( ‘FS_CHMOD_FILE’, ( 0644 & ~ umask() ) );

… had been set to 0766