Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #257309

Re: Am I infected with a rootkit?

Path csiph.com!news.neodome.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From "Thomas Schmitt" <scdbackup@gmx.net>
Newsgroups linux.debian.user
Subject Re: Am I infected with a rootkit?
Date Sun, 16 Apr 2023 19:40:01 +0200
Message-ID <Glew1-2sFF-9@gated-at.bofh.it> (permalink)
References <GlcXf-2rFp-1@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Sun Apr 16 17:34:54 2023
Old-Return-Path <scdbackup@gmx.net>
X-Amavis-Spam-Status No, score=-7.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no
X-Ui-Sender-Class 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding quoted-printable
X-Provags-ID V03:K1:odps/FZxUe7Xf3DlVdIBzEnIbGPeAT01elcKmnSAs7HOsFOYbPw xPTxvlwqQs1cGYvXoWRDZTQIn24xVrZflQs7ulYQfJlAyD88WGHZoBHGrG1IH5ut2tFVcBM mIHYFSuQySfKAASfljw9SvFJxw/bM1ZJ4p/X7jd+ugKOoEy+/kaA00JpJwZ1tObBpPzZ0GU CRtS0oucgejTFE/BFppfg==
Ui-Outboundreport notjunk:1;M01:P0:O2rB06JNMgs=;Tyq1TvrIt/vqyq1ln05qfmfCXHg VwY8ePrn/IHYcYhKqdQ794oHSlHI4KOmrNdvlLl5sGcKhQfT2X2HMDDmfl2uGWuPMU75evhEQ eOBSCeOJ5aTOzJwf3rSMaTK6EBiYEuSEI88YXA3qUAb+HA5v+60jebTFnBHY0ACMLaMa+Yy4E xXVdLE2yR77+Nar/bRKkB1H1dbDP10XlhmyEjV03GXPgJqy8gl8z4wU+M7x6Q5XtEQ9+o/c5Y 4dQF9+OtOO/v1jRLA/zXZTujgn5oJzgNFwvtNTA/VlrCleoYoxmm8syYzHD9zkw5E0HUii+00 zZ06YHpUDuBU2eofJKIfWftJfgFrCBonBWn530Y7UP1dhYP8X68MwIxxE+pex5doE8yTXJiPR K97Ku3Q13LCFlOtBSCZnb2M2a/TUAh4XlfHn2NVZ2dIidjSst3LtyPlgC1sORbr7mtFQvG+Uu WCbBfE5EHUmG+peRHLgqqzSnwB7jF+AKnteKiV9HD0X3ZmhtTQqttO8pMpuYttjSLHPpZ2pNp np8iu/E7nx7mdwvXWBurOiyseTc9aj/Rf5CpbqfBd9Niz26rCRB3IpmM4qYUrIdQp5M9BNB9P ZsuNJORvOF4lq+3y8dneS/TXMjtXaeyPd6yrTwrGi5vG0Hrlz2aAGEgUneoC87WlkuEKcm/CY u6HnwBrnAImNQvtadpJZN3sGt3/l+C8H8J8LQYvLqLKjlRA23nzb/ZPsZH2rR6oFuldPkUhgQ GtmQGm9VIkhz228M5gGEYTvgXvVQqq4ZQoJu+9En27OY9KaE0iJvtHp6vDnyyz4SmDwpFOLF2 Nn7m11ipJVLDtmNlBo7pLveKY5VVgK9ejOiTb72FV5DYa2Q9fT+iFigJyAaZXbTOgcMVLAtM6 Ad8Yy3ma900c7eVQPNw3MvR8cHyaRXtZ9XtRSuwLF0pOgMh7/+n7+yp8PpdN/i/UmPYbytR7G 0IqWmw/swlvsgjIvxQ7QdK6ZR0U=
X-Mailing-List <debian-user@lists.debian.org> archive/latest/798619
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/2876627846934899781@scdbackup.webframe.org
Approved robomod@news.nic.it
Lines 93
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 16 Apr 2023 19:35:20 +0200
X-Original-Message-ID <2876627846934899781@scdbackup.webframe.org>
X-Original-References <ZDwazWRrNmTi58++@wooledge.org>
Xref csiph.com linux.debian.user:257309

Show key headers only | View raw


Hi,

to make this mail on-topic:

Jesper Dybdal, do you see the riddling lines in file ~/.bash_history
of the superuser ?
If so: Do you see other strange lines there ? (Do they give more clue ?)


A bit less on-topic:

Greg Wooledge wrote:
> Bash doesn't read the contents of the history file into the in-memory
> history unless you run "history -r".  If you had some kind of ksh-like
> setup where you combined "history -w" and "history -r" commands in your
> PROMPT_COMMAND or other variables, then we might be able to reconcile
> the statements we've been given.
>
> In the absence of that, there's just no way you could have commands in
> your shell history that were not typed in that same shell session.

My Debians always behaved that way. I remember that in Debian 8 i got
several different readline histories in the first shell terminals which
i started. With Debian 11 it's only one history per user. It seems to be
a collection of the last commands of shell sessions when the recent
shutdowns happened.
For example i create a new xterm and get to see (from new to old):

  su -
  firefox-esr &
  top
  ps -ef | grep pulseaudio
  umgebung
  view /u/x
  su -
  firefox-esr &
  xset r rate 250 30

In man bash i read:

   When the -o history option to the set builtin  is  enabled,  the  shell
   provides access to the command history, [...]
   On startup, the history is initialized from the file named by the vari‐
   able HISTFILE (default ~/.bash_history).
   [...]
   set [--abefhkmnptuvxBCEHPT] [-o option-name] [arg ...]
   [...]
   -o option-name
     The option-name can be one of the following:
     [...]
      history Enable command history, as described above under
              HISTORY.  This option is on by default in inter‐
              active shells.

At the end of ~/.bash_history of my desktop user i see indeed above
history in old-to-new sequence:

  xset r rate 250 30
  firefox-esr &
  su -
  view /u/x
  umgebung
  ps -ef | grep pulseaudio
  top
  firefox-esr &
  su -

I did not execute them in this sequence in the recent sessions when i tried
to find out what made pulseaudio permenantly busy. They surely stem from
different xterms. It is not clear whether one per shutdown was memorized
or whether more then one stem from a single shutdown.

I become superuser by "su -" and get to see

  shutdown -h now
  shutdown -r now
  systemctl --global disable pulseaudio.service pulseaudio.socket
  shutdown -r now
  shutdown -h now
  shutdown -r now
  systemctl --global enable pulseaudio.service pulseaudio.socket
  shutdown -h now

Since i only had one superuser xterm, i can quite surely state that the
systemctl commands were not the last ones which were performed in their
respective shells before shutdown.


Have a nice day :)

Thomas

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Am I infected with a rootkit? Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-04-16 14:30 +0200
  Re: Am I infected with a rootkit? Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2023-04-16 14:50 +0200
    Re: Am I infected with a rootkit? Michel Verdier <mv524@free.fr> - 2023-04-16 15:20 +0200
      Re: Am I infected with a rootkit? Greg Wooledge <greg@wooledge.org> - 2023-04-16 16:00 +0200
        Re: Am I infected with a rootkit? Michel Verdier <mv524@free.fr> - 2023-04-16 17:20 +0200
    Re: Am I infected with a rootkit? Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-04-16 16:10 +0200
    Re: Am I infected with a rootkit? Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-04-18 15:50 +0200
      Re: Am I infected with a rootkit? David Christensen <dpchrist@holgerdanske.com> - 2023-04-18 21:40 +0200
        Re: Am I infected with a rootkit? Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-04-19 16:00 +0200
  Re: Am I infected with a rootkit? Michel Verdier <mv524@free.fr> - 2023-04-16 15:00 +0200
    Re: Am I infected with a rootkit? Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-04-16 16:10 +0200
      Re: Am I infected with a rootkit? Jeffrey Walton <noloader@gmail.com> - 2023-04-16 16:50 +0200
      Re: Am I infected with a rootkit? Michel Verdier <mv524@free.fr> - 2023-04-16 17:20 +0200
  Re: Am I infected with a rootkit? Greg Wooledge <greg@wooledge.org> - 2023-04-16 15:10 +0200
    Re: Am I infected with a rootkit? Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-04-16 16:40 +0200
      Re: Am I infected with a rootkit? Greg Wooledge <greg@wooledge.org> - 2023-04-16 18:00 +0200
        Re: Am I infected with a rootkit? Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-04-16 18:50 +0200
          Re: Am I infected with a rootkit? Michel Verdier <mv524@free.fr> - 2023-04-16 19:30 +0200
        Re: Am I infected with a rootkit? "Thomas Schmitt" <scdbackup@gmx.net> - 2023-04-16 19:40 +0200
          Re: Am I infected with a rootkit? David Wright <deblis@lionunicorn.co.uk> - 2023-04-16 20:50 +0200
          Re: Am I infected with a rootkit? Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-04-16 22:20 +0200
      Re: Am I infected with a rootkit? Curt <curty@free.fr> - 2023-04-17 18:50 +0200
  Re: Am I infected with a rootkit? Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-04-16 16:40 +0200
    Re: Am I infected with a rootkit? <tomas@tuxteam.de> - 2023-04-16 17:20 +0200
    Re: Am I infected with a rootkit? David Wright <deblis@lionunicorn.co.uk> - 2023-04-18 06:50 +0200
      Re: Am I infected with a rootkit? David <bouncingcats@gmail.com> - 2023-04-18 07:40 +0200
        Re: Am I infected with a rootkit? <tomas@tuxteam.de> - 2023-04-18 10:00 +0200
          Re: Am I infected with a rootkit? debian-user@howorth.org.uk - 2023-04-18 13:00 +0200
            Re: Am I infected with a rootkit? <tomas@tuxteam.de> - 2023-04-18 13:10 +0200
          Re: Am I infected with a rootkit? David <bouncingcats@gmail.com> - 2023-04-18 14:10 +0200
            Re: Am I infected with a rootkit? <tomas@tuxteam.de> - 2023-04-18 14:30 +0200
              Re: Am I infected with a rootkit? songbird <songbird@anthive.com> - 2023-04-18 18:00 +0200
                Re: Am I infected with a rootkit? Michel Verdier <mv524@free.fr> - 2023-04-18 18:30 +0200
                Re: Am I infected with a rootkit? Andy Smith <andy@strugglers.net> - 2023-04-18 20:40 +0200
        Re: Am I infected with a rootkit? Jesper Dybdal <jesper@dybdal.dk> - 2023-04-18 16:00 +0200
  Re: Am I infected with a rootkit? David Wright <deblis@lionunicorn.co.uk> - 2023-04-16 16:40 +0200
  Re: Am I infected with a rootkit? David Christensen <dpchrist@holgerdanske.com> - 2023-04-17 03:20 +0200
    Re: Am I infected with a rootkit? Michel Verdier <mv524@free.fr> - 2023-04-17 17:40 +0200
    Re: Am I infected with a rootkit? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-04-17 19:00 +0200
      Re: Am I infected with a rootkit? Tim Woodall <debianuser@woodall.me.uk> - 2023-04-17 20:30 +0200
  Re: Am I infected with a rootkit? Richmond <dnomhcir@gmx.com> - 2023-04-18 10:40 +0200
    Re: Am I infected with a rootkit? Jesper Dybdal <jesper@dybdal.dk> - 2023-04-18 16:00 +0200
      Re: Am I infected with a rootkit? Jeremy Ardley <jeremy@ardley.org> - 2023-04-18 16:10 +0200
        Re: Am I infected with a rootkit? Charles Curley <charlescurley@charlescurley.com> - 2023-04-18 17:00 +0200

csiph-web