public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: sshd.exe infected with IDP.Generic?
Date: Sat, 11 Jul 2020 13:45:08 -0600	[thread overview]
Message-ID: <7c1a509b-24d4-d00b-5693-e7efd5c437d8@SystematicSw.ab.ca> (raw)
In-Reply-To: <0d7fac03-61f9-d512-8cb5-a643a361f2a3@raelity.com>

On 2020-07-11 08:47, Ernie Rael wrote:
> I guess I'll chalk up to coincidence the "rm *" that I didn't knowingly type (it
> was in the typeahead buffer when less finally finished and I had been "randomly"
> hitting keys to get it to end) followed shortly thereafter by avast moving
> sshd.exe to quarantine. I suppose the command could have mysteriously come from
> some history since I do use the rm command regularly ;-) Hmm, use -I? I lost
> almost nothing since the admin acct in cygwin's /home is only used for ssh to
> local and there are backups to look at.
> 
> As far as getting things back to normal...
> 
> Asking avast to "put it back" failed. I did "extract" it, but owner/permissions
> seem screwed up.
>> $ ls -l sshd.exe
>> ----rwxr-x+ 1 Administrators SYSTEM 721939 Feb 18 09:05 sshd.exe
> I put it back, with u+rx, ran cygwin's setup and it's package had been updated
> recently, sshd was updated, and things seem back to normal. First I had virus
> scanned the entire system, took all day, it did find something in an archived
> copy of a system I had 10 years ago.

To extract anything from your downloaded packages directory, you can use an
elevated admin shell command like:

$ tar -xv -C / -f <downloaded packages
directory>/*tp*%3a%2f%2f*cygwin*%2f/x86*/release/openssh/openssh-8.3p1-1.tar.xz
usr/sbin/sshd.exe

to extract the relative path under the Cygwin root  (important, why I jam -c /
before -f to avoid forgetting it!) - that way I don't have to mv it from under
my current directory if I forget to add it at the end.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in IEC units and prefixes, physical quantities in SI.]

      reply	other threads:[~2020-07-11 19:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10 19:01 Ernie Rael
2020-07-10 19:59 ` Marco Atzeri
2020-07-10 20:37   ` Brian Inglis
2020-07-11 14:47 ` Ernie Rael
2020-07-11 19:45   ` Brian Inglis [this message]

Reply instructions:

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

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

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c1a509b-24d4-d00b-5693-e7efd5c437d8@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).