[心得] 群暉NAS被綁架的處理狀況

看板Storage_Zone作者 (Eric Chang)時間9年前 (2014/08/08 11:37), 編輯推噓8(8020)
留言28則, 10人參與, 最新討論串1/1
繼前陣子群暉NAS被拿來挖礦的問題之後 http://forum.synology.com/enu/viewtopic.php?f=7&t=78993 七月底八月初,群暉的NAS又出包了,這次是被駭客入侵後,把NAS上的檔案加密, 並要求付出比特幣做為贖金(大概台幣 12000左右) 不然資料就會被保留在加密的狀態,無法使用。 詳情請參閱: http://www.pcdiy.com.tw/webroot/article.php?art=544 事情發生之後,群暉也發出了信件通知USER應該怎麼處理,信件內容如下 Dear Synology users, We would like to inform you that a ransomware called "SynoLocker" is currently affecting some Synology NAS users. This ransomware locks down affected servers, encrypts users’ files, and demands a fee to regain access to the encrypted files. We have confirmed that the ransomware only affects Synology NAS servers running older versions of DiskStation Manager by exploiting a security vulnerability that was fixed and patched in December, 2013. Affected users may encounter the following symptoms: When attempting to log in to DSM, a screen appears informing users that data has been encrypted and a fee is required to unlock data. Abnormally high CPU usage or a running process called “synosync” (which can be checked at Main Menu > Resource Monitor). DSM 4.3-3810 or earlier; DSM 4.2-3236 or earlier; DSM 4.1-2851 or earlier; DSM 4.0-2257 or earlier is installed, but the system says no updates are available at Control Panel > DSM Update. If you have encountered the above symptoms, please shutdown the system immediately and contact our technical support here: https://myds.synology.com/support/support_form.php If you have not encountered the above symptoms, we strongly recommend downloading and installing DSM 5.0, or any version below: DSM 4.3-3827 or later DSM 4.2-3243 or later DSM 4.0-2259 or later DSM 3.x or earlier is not affected You can manually download the latest version from our Download Center and install it at Control Panel > DSM Update > Manual DSM Update. If you notice any strange behavior or suspect your Synology NAS server has been affected by the above issue, please contact us at security@synology.com We sincerely apologize for any problems or inconvenience this issue has caused our users. We’ll keep you updated with the latest information as we continue to address this issue. Thank you for your continued patience and support. Sincerely, Synology Development Team 在知道這件事情之後,我從外部連回公司,先把FW上面跟NAS相關、而且有開啟的 port forward policy先關閉。 (5000 我是已經關閉很久了,但是還有開一個 SSH 給群暉遠端連進來檢查) 隔天進公司之後,把NAS叫出來看,本來還以為沒事的,結果檢查到第三條 DSM 4.3-3810 or earlier; DSM 4.2-3236 or earlier; DSM 4.1-2851 or earlier; DSM 4.0-2257 or earlier is installed, but the system says no updates are available at Control Panel > DSM Update. 啊,系! 我的版本還在 4.2 ,而且也的確顯示為已經是最新版本。 跟群暉確認過之後,群暉建議還是依照他們的方法來處理 1.關機 2.把原有的硬碟抽出來 3.裝一顆新的硬碟進去 4.安裝 DSM 4.3-3810之後的版本 5.關機 6.接回原本的硬碟 7.開機 8.重新安裝DSM到 4.3-3810以後的版本 以上是我簡述過的步驟,原文是 1. Shut down the NAS 2. Remove all the hard drives from the NAS 3. Find a spare hard drive that you will not mind wiping and insert it into the NAS 4. Use Synology Assistant to find the NAS and install the latest DSM onto this spare hard drive (use the latest DSM_file.pat from Synology) 5. When the DSM is fully running on this spare hard drive, shut down the NAS from the web management console. 6. Remove the spare drive and insert ALL your original drives. 7. Power up the NAS and wait patiently. If all goes well after about a minute you will hear a long beep and the NAS will come online. 8. Use Synology Assistant to find the NAS. It should now be visible with the status "migratable". 9. From Synology Assistant choose to install DSM to the NAS, use the same file you used in step 4 and specify the same name and IP address as it was before the crash. 10. Because the NAS is recognized as "migratable", the DSM installation will NOT wipe out the data on either the system partition nor the data partition. 11. After a few minutes, the installation will finish and you will be able to log in to your NAS with your original credentials. 在這之前,因為我手邊還有一台退役的 RS810+ ,想說先問問客服,我能不能把資料從 現役的 DS 轉到 RS 上,做個備份比較安心 結果客服居然回說:「那你是不相信我們的作法囉???」 好吧,既然你客服都這樣說了,反正我本來就有備份到USB,頂多就損失一天的資料唄! 依照步驟操作,過程中倒是沒有發生什麼問題,但是,事情絕對不像我想的那麼簡單 在安裝完最新版DSM、系統重開之後,我直接從我的筆電上開啟檔案總管去連NAS , 可以看到之前設定分享的目錄,但是會跳出詢問帳號密碼的視窗 進到NAS管理界面檢查,發現沒有JOIN DOMAIN .......... 手動加入網域、重開NAS,還是一樣會詢問帳號密碼 再進入管理界面檢查,發現所有目錄設定的權限,包含ACL都不見了.............. 這是我第二次在操作群暉NAS升級時,發生這種升級成功、資料順利保留, 但是權限不見的狀況,偏偏敝公司NAS上的權限管制又特別的多、格外的複雜, 想到要重設....靠北啊,整個想哭啊... 這是從BLOG上轉過來的,懶得一一修正排版了。 給大家做個參考,如果還沒進行升級的, 先跟群暉確認一下關於目錄權限還有 ACL 設定的部分要怎麼保留... 我也不知道是我跟群暉犯衝還是怎樣,通常這種重大的更新 我這邊的環境跟著做就是會有問題,所以我前面推文才會說我很少會去更新.. 至於port forward的問題,因為我手邊還有幾台群暉的NAS 不過因為都不對外,所以其他幾台沒有這種問題, 有一台還停留在 DSM 2.2 這台也沒問題 XD 只有這台有開過5000 PORT mapping的機器,才有出現1/3的症狀 所以我懷疑之前有開過5000 port但是沒有關起來,駭客用掃的去掃出這些機器 然後去種木馬(前面的挖礦、這次的綁架) 作為以後的借鏡,如果非必要,就不要開PORT了,如果真要開,請愛用port forward轉 開了PORT,記得要去巡一下,沒用的就關一關吧 -- 標題 [問卦] 有沒有鼎泰豐根本算不上好吃的八卦

02/15 03:43,
比鼎泰豐難吃的的滿街都是啊
02/15 03:43

02/15 03:45,
鼎泰豐的東西一點都不普通 愛不愛吃就隨個人了
02/15 03:45

02/15 03:45,
高雄-龍華市場-小籠包店 >>>>>>>>>>>>>>鼎泰豐
02/15 03:45

02/15 03:45,
那家很難吃耶 龍華的.. 至少上次我去 嗯
02/15 03:45

02/15 03:46,
哇靠 龍華市場根本沒有小籠包店好嗎lol
02/15 03:46
-- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.251.177.1 ※ 文章網址: http://www.ptt.cc/bbs/Storage_Zone/M.1407469023.A.038.html

08/08 11:47, , 1F
專業!
08/08 11:47, 1F

08/08 12:01, , 2F
基本上就是最好不要用預設的port
08/08 12:01, 2F

08/08 12:51, , 3F
應該不是Port的關係 而是有啟用DDNS或QuickConnect
08/08 12:51, 3F

08/08 12:53, , 4F

08/08 13:01, , 5F
看群暉官網回應只有4有這個洞? 3.x以下群暉說沒影響
08/08 13:01, 5F

08/08 13:01, , 6F
說錯~是FB不是官網
08/08 13:01, 6F

08/08 13:34, , 7F
我不認為是DDNS/QuickConnect 因為我這台兩個都沒開
08/08 13:34, 7F

08/08 13:35, , 8F
有開OpenVPN嘛?_?
08/08 13:35, 8F

08/08 13:54, , 9F
沒耶 這台放公司內,很單純 ...
08/08 13:54, 9F

08/08 13:57, , 10F
只知道OpenVPN之前有洞 X(
08/08 13:57, 10F

08/08 13:58, , 11F
不過覺得群暉這次說明沒有很清楚 沒具體交代原因
08/08 13:58, 11F

08/08 13:59, , 12F
讓人有點疑慮洞真der堵上惹嗎XD
08/08 13:59, 12F

08/08 14:46, , 13F
我看原文就是要你重裝DSM的意思啊 帳號跟設定被清掉
08/08 14:46, 13F

08/08 14:47, , 14F
應該是可以預期的吧 他只是說這樣原本硬碟的資料還會
08/08 14:47, 14F

08/08 14:47, , 15F
08/08 14:47, 15F

08/08 14:56, , 16F
log in to your NAS with your original credentials
08/08 14:56, 16F

08/08 14:56, , 17F
洞我覺得應該是CVE-2013-6955
08/08 14:56, 17F

08/08 14:58, , 18F
sorry是我沒看清楚 原文有說system資料會保留
08/08 14:58, 18F

08/08 17:18, , 19F
NAS就給他該做的工作,要架站、當DNS Server還是
08/08 17:18, 19F

08/08 17:18, , 20F
另外組一台或使用虛擬主機代管方式比較妥當
08/08 17:18, 20F

08/09 03:01, , 21F
推bigbo,專機專職本來就是正確的使用方法。另外開放
08/09 03:01, 21F

08/09 03:01, , 22F
對外網連線服務,沒有足夠的資安防護本來就不該做,
08/09 03:01, 22F

08/09 03:02, , 23F
現在不分廠商開發這種類似功能,跟裸奔沒兩樣。
08/09 03:02, 23F

08/09 04:29, , 24F
我是覺得NAS應該要放在VPN router之後,而不是直接掛
08/09 04:29, 24F

08/09 04:29, , 25F
在internet上,這太容易受到攻擊了
08/09 04:29, 25F

08/09 21:34, , 26F
5000這個PORT基本上都要改掉 用預設的很容易被攻擊
08/09 21:34, 26F

08/09 21:36, , 27F
我公司的NAS都會更新到最新的 只是會故意慢點更新
08/09 21:36, 27F

08/09 21:37, , 28F
先用別台NAS更新到最新 沒問題就把公司的NAS都更新
08/09 21:37, 28F
文章代碼(AID): #1Jv4NV0u (Storage_Zone)