๐Ÿ” Cara Setting Proteksi Web Server agar Terhindar dari Serangan LockBit Ransomware

๐Ÿงจ Apa Itu LockBit?

LockBit adalah varian ransomware canggih yang menargetkan server dan sistem jaringan, termasuk web server berbasis Linux dan Windows. LockBit mampu:

  • Mengenkripsi file secara cepat.

  • Menyebar ke jaringan internal.

  • Menyamar sebagai proses legal agar tidak terdeteksi.

Web server seperti Apache, Nginx, atau IIS menjadi target empuk jika tidak dikonfigurasi dengan benar.


๐ŸŽฏ Jalur Masuk Umum LockBit ke Web Server

  1. ๐Ÿ”“ Login server menggunakan brute-force SSH/RDP.

  2. ๐Ÿ› Eksploitasi kerentanan CMS atau plugin.

  3. ๐Ÿ“ค Upload file berbahaya via upload form.

  4. ๐Ÿ Menyisipkan payload lewat skrip PHP/CGI.

  5. ๐ŸŽญ Akses credential dari file config yang bocor.


๐Ÿ›ก๏ธ Cara Mencegah Serangan LockBit dari Sisi Web Server

Berikut adalah langkah-langkah penting untuk mengamankan web server dari ransomware seperti LockBit:


๐Ÿ” 1. Gunakan Autentikasi yang Kuat

  • Nonaktifkan login root SSH

  • Aktifkan 2FA (Two-Factor Authentication)

  • Gunakan port non-standar untuk SSH (hindari port 22)

  • Batasi akses SSH hanya dari IP tertentu (firewall/IP whitelist)


๐Ÿงฐ 2. Aktifkan WAF (Web Application Firewall)

  • Gunakan Cloudflare / FortiWeb / ModSecurity

  • Buat aturan blokir:

    • File upload ekstensi .exe, .bat, .ps1

    • Akses folder admin dari IP luar negeri

  • Deteksi XSS, LFI, RCE, dan exploit CMS


๐Ÿ”’ 3. Atur Hak Akses File & Folder

  • Pastikan direktori web (/var/www/) tidak punya hak tulis secara publik:

    bash
    chmod -R 755 /var/www/html chown -R www-data:www-data /var/www/html
  • Proteksi .env, .htaccess, dan config:

    apache
    <FilesMatch "^\."> Require all denied </FilesMatch>

๐Ÿ› ๏ธ 4. Aktifkan Antivirus + IDS

  • ClamAV (Linux antivirus)

  • Fail2Ban (blokir brute-force)

  • OSSEC atau Snort untuk deteksi serangan real-time

  • Jalankan scan rutin:

    bash
    clamscan -r /var/www/

๐Ÿงฏ 5. Backup Otomatis Harian

  • Gunakan cron + rsync atau BorgBackup

  • Simpan backup di lokasi terpisah (offsite/cloud)

  • Contoh cron job backup:

    bash
    0 2 * * * rsync -av --delete /var/www/html /mnt/backup/webserver/

๐Ÿ” 6. Update CMS, Plugin, dan OS Rutin

  • WordPress: selalu update plugin & tema

  • Cek kerentanan: wpscan, nuclei

  • Update OS:

    bash
    apt update && apt upgrade -y

๐Ÿšซ 7. Blokir Eksekusi File Asing di Folder Upload

Jika kamu menerima upload dari user (misal: gambar), blokir skrip di folder tersebut:

apache
<Directory "/var/www/html/uploads"> php_flag engine off Options -ExecCGI </Directory>

๐Ÿง  Kesimpulan

Mencegah ransomware seperti LockBit membutuhkan kombinasi strategi:

  • ๐Ÿ” Perkuat akses server

  • ๐Ÿ›ก๏ธ Filter lalu lintas web dengan WAF

  • ๐Ÿ—ƒ๏ธ Backup dan audit berkala

  • ๐Ÿ”„ Patch software secara rutin


๐Ÿ“ฃ Ingin Audit & Hardening Server?

Tim smartlombok.my.id siap membantu:

  • Audit keamanan server

  • Implementasi WAF dan IDS

  • Konfigurasi auto-backup + antivirus

๐Ÿ“ž WA: 0857-2520-2057
๐Ÿ“ง Email: lombokdevblog@gmail.com

Leave a Comment

Your email address will not be published. Required fields are marked *