Vulnerability in SolusVM Debian 10 template - "debianuser" backdoor/default user

@redgreenblue said:
Anyone with VM with Hosthatch running with Debian image provided by Hosthatch should check their VM now. Good probability is that your VM may have been compromised via user debianuser, which is now running cnrig, which appears to be related to CryptoNight. Hosthatch VMs in multiple locations has been observed to have been compromised this way.

From the provider via email:

We have detected a security vulnerability in our Debian 10 template and our records indicate that you have installed a VM with this template. If you have since then reinstalled your VM to any template other than Debian 10, or used an ISO to reinstall your VM, you can ignore this email.

How could this happen?
We use SolusVM as our backend virtualization platform, it is a leading provider operated by Plesk. We are using their official templates. Unfortunately this particular template had an issue which resulted in this security vulnerability. They are aware of the situation.

How was it fixed?
We have patched the template with help from SolusVM and they also helped us to confirm that no other templates are affected.

I also found this Chinese blog post from October 2020, where someone's GreenCloudVPS VPS was compromised through what I assume is the same debianuser account, also running some other crypto thing (xmrig): https://aoyouer.com/posts/server-hacked-record.html, so this has been in the wild for at least four months (probably longer), and likely affects many other providers too

Please check your servers for a debianuser user. If so, you're probably best off wiping the whole thing and restoring from backups.

You should be fine if password authentication is disabled, as in that case you can only access SSH if you have the private key. I'd still recommend deleting the debianuser user if it's present on your system.

If you still use password authentication for SSH, I'd strongly recommend:

  1. Generate an SSH key. You may already have one if you use a service like GitHub that uses SSH keys for authentication. If you don't have one already, an Ed25519 key is good. https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-c6e8d60d3c54
  2. Ensure the key is in ~/.ssh/authorized_keys
  3. Disable PasswordAuthentication in /etc/ssh/sshd_config and restart SSH (service ssh restart)
  4. Double-check that you can still get in (open a new session and test it out) before you exit your active SSH session

SolusVM Debian 10 テンプレートに脆弱性 - "debianuser" バックドア/デフォルトユーザ

@redgreenblue さんが言っていました。
Hosthatch が提供する Debian イメージを使って Hosthatch を実行している VM をお持ちの方は、今すぐ VM をチェックしてください。十分な確率で、あなたの VM は debianuser というユーザを経由して危険にさらされている可能性があります。複数の場所にある Hosthatch の VM がこの方法で侵害されていることが確認されています。

プロバイダからメールで

私たちは Debian 10 のテンプレートにセキュリティ上の脆弱性を検出しましたが、私たちの記録によると、このテンプレートを使用して VM をインストールしたことが判明しています。その後、Debian 10 以外のテンプレートに VM を再インストールしたり、ISO を使って VM を再インストールしたりした場合は、このメールを無視して構いません。

どうしてこのようなことが起こるのでしょうか?
私たちはバックエンド仮想化プラットフォームとして SolusVM を使用していますが、これは Plesk が運営する大手プロバイダです。その公式テンプレートを使用しています。残念ながら、この特定のテンプレートに問題があり、このセキュリティ脆弱性が発生しました。彼らは状況を把握しています。

どのように修正されましたか?
SolusVMの協力を得てテンプレートをパッチし、他のテンプレートが影響を受けていないことを確認するためにも協力してくれました。

私はまた、2020年10月からのこの中国のブログ記事を見つけました。ここでは誰かのGreenCloudVPS VPSが、私が同じdebianuserアカウントであると推測しているものを介して侵害され、他の暗号化されたもの(xmrig)も実行していました: https://aoyouer.com/posts/server-hacked-record.html したがって、これは少なくとも4ヶ月間(おそらくそれ以上)野生の状態にあり、おそらく他の多くのプロバイダにも影響を与えているでしょう。

debianuser ユーザがいるかどうか、サーバをチェックしてください。もしそうであれば、全体を消去してバックアップから復元するのが一番いいでしょう。

パスワード認証が無効になっている場合は、秘密鍵を持っていないと SSH にアクセスできないので、大丈夫でしょう。システム上に debianuser ユーザが存在する場合は、削除することをお勧めします。

もしまだ SSH にパスワード認証を使っているのであれば、強くお勧めします。

  1. SSH 鍵を生成する。認証に SSH 鍵を使う GitHub のようなサービスを使っていれば、すでに鍵を持っているかもしれません。もしまだ持っていないのであれば、Ed25519 鍵が良いでしょう。 https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-c6e8d60d3c54
  2. 鍵が ~/.ssh/authorized_keys にあることを確認します。
  3. etc/ssh/sshd_config で PasswordAuthentication を無効にして SSH を再起動する (service ssh restart)
  4. アクティブな SSH セッションを終了する前に、まだログインできることをダブルチェックしてください (新しいセッションを開いてテストしてください)。

2/19日まで [HUMBLE] SOFTWARE BUNDLE: DESIGN EXPRESSION POWERHOUSE

$1

Pinnacle Studio 24 Ultimate

$8.36

MultiCam Capture XL

$30

Corel Painter® 2020
Brush Pack - Abstract
Brush Pack - Alcohol Ink
Brush Pack - Bristly
Brush Pack - Bubbles
Brush Pack - Dry Texture
Brush Pack - Feather
Brush Pack - Fireworks
Brush Pack - Gestural Illustration
Brush Pack - Manga II
Brush Pack - Michelle Webb Master Pack
Brush Pack - Nature
Brush Pack - Perfect Pets
Brush Pack - Pop Art
Brush Pack - Rain
Brush Pack - Rake
Brush Pack - Rust & Patina
Brush Pack - Scrape
Brush Pack - Stipple
Brush Pack - Suminagashi
Brush Pack - Sunny Rays

2020年にもあったPainter Bundleの続編?
ちなみに2020年のは

2020 Be A Creative Superhero Bundle

$1

AfterShot 3 - Standard

TBA

PaintShop Pro 2020
Black & White High Key Script for PaintShop Pro
Color High Key Script for PaintShop Pro
Black & White Low Key Script for PaintShop Pro
Color Low Key Script for PaintShop Pro
ParticleShop + 11 Brush
Brush Pack 2 Smoke & Steam
Brush Pack Combustions

$30

CorelCAD
Corel Painter® 2020
CorelDRAW Graphics Suite 2020 (6m subscript)
Brush Pack - Mike Thompson
Brush Pack - Don Seegmiller
Brush Pack - Android Jones
Brush Pack - Creepers
Brush Pack - Inking
Brush Pack - Graphic Impact
Brush Pack - Sketch
Brush Pack - Starry Night
Brush Pack - Translucent
Brush Pack - Fantasy
Light Leak Scripts
Brush Pack - Chaos
Brush Pack - Blend
Brush Pack - Lightning Strikes
Brush Pack - Dust & Debris
Brush Pack - Flame
Brush Pack - Hair
Brush Pack - Clouds
Brush Pack - Fluid
Brush Pack - Chunky Paint
Brush Pack - Sand & Soil

2019 Painter Create With Confidence

$1

PhotoMirage
Corel Plugin – ParticleShop
Brush Pack – Animation

TBA

Gravit Designer PRO 1 Year
PaintShop Pro 2020 Ultimate
Brush Pack – Superheroes

$25

Corel Painter 2019
Pinnacle Studio 23 Ultimate
Brush Pack – Manga
Brush Pack – Concept Design

[RackNerd] NEW YEAR Shared Hosting 60GB $9.38/y

Shared Hosting Specials, now with MailChannels!

RackNerd’s shared hosting platform is now leveraging MailChannels to improve email delivery rates to specific email services if and as needed. This feature is implemented at no additional charge.

Shared - 60 GB - $9.38 per YEAR!
Perfect for entry-level websites.
60 GB SSD Disk Space
3 TB Monthly Transfer (FREE Double the bandwidth, just comment your order#)
Unlimited Databases
Host 3 Domains
Free SSL Certificates
cPanel Control Panel
Softaculous Script Installer
CloudLinux Powered
LiteSpeed Web Server
Free Offsite Daily Backups (JetBackup)
NEW! MailChannels Hybrid - Premium Email Delivery
Only $9.38 per year!
ORDER NOW: https://my.racknerd.com/cart.php?a=add&pid=432

今借りてるとこの契約期間が切れたら乗り換えようか。

[VirMach] Ryzen NVMe1G $38/2yr

NVMe1G
1GB DDR4 RAM – 2400MHz-2666MHz (Dedicated)
25GB NVMe – RAID1/RAID10, 6GB-14GB/s (Dedicated, Shared IO*)
1 vCore CPU – Ryzen 3.5GHz (Fair Use**)
2500GB Bandwidth – 1Gbps Port (Shared)
1x IPv4 Address – IPv6 Available
$27 annually | $38 biennially (Every 2 Years) – Additional 10% off first term, use code NVMe1G

NVMe2G
2GB DDR4 RAM – 2400MHz-2666MHz (Dedicated)
50GB NVMe – RAID1/RAID10, 6GB-14GB/s (Dedicated, Shared IO*)
2 vCore CPU – Ryzen 3.5GHz (Fair Use**)
5000GB Bandwidth – 1Gbps Port (Shared)
1x IPv4 Address – IPv6 Available
$48 annually | $72 biennially (Every 2 Years) – Additional 20% off first term, use code NVMe2G
https://virmach.com/special-offers/