自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Linux系統(tǒng)對付惡意軟件的三款應(yīng)用軟件

譯文
系統(tǒng) Linux
如果你仍認(rèn)為Linux不會受到惡意軟件的感染,再考慮一下,然后安裝這三款應(yīng)用軟件,以檢測并預(yù)防問題。

[[322922]]

【51CTO.com快譯】即使你使用Tripwire,也應(yīng)該意識到惡意攻擊者仍會在你不知情的情況下在系統(tǒng)上植入惡意軟件。在本文中,你將學(xué)習(xí)如何安裝和運(yùn)行三款不同的反惡意軟件應(yīng)用軟件:chkrootkit、rkhunter和ClamAV,它們可以幫助你的系統(tǒng)遠(yuǎn)離惡意軟件。

在嘗試修復(fù)惡意軟件感染之前,切換至單個(gè)用戶模式,確保惡意攻擊者不會察覺你的活動,或無法掩蓋其行蹤。

1.chkrootkit

我使用chkrootkit有多年。簡而言之,它可掃描系統(tǒng)中的重要文件以查找rootkit。 rootkit是一堆惡意程序,旨在危及root用戶帳戶,并長時(shí)間訪問系統(tǒng)。rootkit很難檢測,也很難從系統(tǒng)中刪除。我聽好多系統(tǒng)管理員這么說:如果系統(tǒng)是rootkit的受害者,應(yīng)為系統(tǒng)重建映像(格式化并從存儲介質(zhì)重新安裝),然后從干凈備份還原所有數(shù)據(jù)。

是的,這是一種解決方案,但是你是否曾為系統(tǒng)重建映像,能夠讓系統(tǒng)恢復(fù)到感染之前的狀態(tài)?反正我從來沒有過。新系統(tǒng)總是遺漏一些東西,這些總是“關(guān)鍵”的東西。我花了無數(shù)時(shí)間尋找舊版軟件、搜索舊文檔,并尋找存儲介質(zhì)來重新安裝再也沒人支持、可能再也沒有合法許可證的一些必要軟件。話題扯遠(yuǎn)了。

你可以使用chkrootkit掃描許多類型的rootkit,并檢測某些日志刪除。雖然它無法刪除任何受感染的文件,但確實(shí)會告訴你具體哪些文件被感染,以便你可以刪除/重裝/修復(fù)文件或軟件包。

請遵照以下簡單過程,使用chkrootkit下載、安裝和掃描系統(tǒng)。使用sudo或su成為root用戶。

  1. # yum update  
  2. # yum install wget gcc-c++ glibc-static  
  3. # wget -c ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz  
  4. # tar –zxvf chkrootkit.tar.gz  
  5. # mkdir /usr/local/chkrootkit  
  6. # mv chkrootkit-0.xx/* /usr/local/chkrootkit  
  7. # cd /usr/local/chkrootkit  
  8. # make sense  
  9. << compile output >>  
  10. # /usr/local/chkrootkit/chkrootkit  
  11. ROOTDIR is `/'  
  12. Checking `amd'... not found  
  13. Checking `basename'... not infected  
  14. Checking `biff'... not found  
  15. Checking `chfn'... not infected  
  16. Checking `chsh'... not infected  
  17. Checking `cron'... not infected  
  18. Checking `crontab'... not infected  
  19. Checking `date'... not infected  
  20. Checking `du'... not infected  
  21. Checking `dirname'... not infected  
  22. Checking `echo'... not infected  
  23. << more output >> 

chkrootkit腳本報(bào)告受感染的文件。我從未遇到過誤報(bào),但你碰到的情況可能不一樣。我在管理的每個(gè)Linux系統(tǒng)上都安裝了chkrootkit。我還設(shè)置了計(jì)劃任務(wù)(cron job),執(zhí)行上述所有步驟(除安裝依賴項(xiàng)之外),以便我始終擁有更新后的集合。我還將輸出重定向到用戶帳戶主目錄中的一個(gè)文件。可以選擇在腳本末尾通過電子郵件將文本報(bào)告發(fā)送給你。

chkrootkit腳本僅需幾秒鐘即可掃描和報(bào)告,因此使用它并不浪費(fèi)時(shí)間或精力。

2.rkhunter

RootKit Hunter(rkhunter)是一個(gè)rootkit檢測腳本,可以自動掃描許多不同的rootkit及其他本地漏洞。我愛rkhunter,用它也已有多年。與chkrootkit不同,rkhunter在/var/log/rkhunter/rkhunter.log中提供了記錄發(fā)現(xiàn)結(jié)果的完整日志。如果你只安裝和運(yùn)行一款惡意軟件掃描應(yīng)用軟件,它可能應(yīng)該是rkhunter。

以下是在系統(tǒng)上安裝和運(yùn)行rkhunter的方法。使用sudo或su成為root用戶。

  1. # yum -y install epel-release  
  2. # yum -y install rkhunter  
  3. # rkhunter -c  
  4. [ Rootkit Hunter version 1.4.6 ]  
  5. Checking system commands...  
  6. Performing 'strings' command checks  
  7. Checking 'strings' command [ OK ]  
  8. Performing 'shared libraries' checks  
  9. Checking for preloading variables [ None found ]  
  10. Checking for preloaded libraries [ None found ]  
  11. Checking LD_LIBRARY_PATH variable [ Not found ]  
  12. << lots of output >>  
  13. System checks summary  
  14. =====================  
  15. File properties checks...  
  16. Required commands check failed  
  17. Files checked: 129  
  18. Suspect files: 4  
  19. Rootkit checks...  
  20. Rootkits checked : 494  
  21. Possible rootkits: 0  
  22. Applications checks...  
  23. All checks skipped  
  24. The system checks took: 1 minute and 38 seconds  
  25. All results have been written to the log file: /var/log/rkhunter/rkhunter.log  
  26. One or more warnings have been found while checking the system.  
  27. Please check the log file (/var/log/rkhunter/rkhunter.log) 

rkhunter有時(shí)會標(biāo)記你手動更改的文件。我的四個(gè)“可疑”文件中有兩個(gè)是passwd和group,這兩個(gè)都是我手動更改的文件。它還會通過touch、vi或者更改原始訪問或修改日期的另外某個(gè)程序,標(biāo)記你有意或無意修改的文件。ifup和ifdown是我系統(tǒng)上被標(biāo)為可疑的另外兩個(gè)文件。我還沒有搞清楚原因,但覺得這兩個(gè)都不是問題。

就算你認(rèn)為自己知道情況,也要核查所有被標(biāo)記的文件。

3.ClamAV

ClamAV官網(wǎng)頁面介紹:ClamAV是一種可用于各種場景的開源(GPL)防病毒引擎,包括電子郵件掃描、Web掃描和端點(diǎn)安全。它提供了許多實(shí)用程序,包括靈活且可擴(kuò)展的多線程守護(hù)程序、命令行掃描程序以及用于數(shù)據(jù)庫自動更新的高級工具。

要安裝ClamAV,請成為root或sudo用戶,使用以下命令:

  1. # yum -y install clamav  
  2. # freshclam  
  3. ClamAV update process started at Fri Apr 3 17:21:48 2020  
  4. daily database available for download (remote version: 25772)  
  5. Time: 27.3s, ETA: 0.0s [=============================>] 57.90MiB/57.90MiB  
  6. Testing database'/var/lib/clamav/tmp.63140/clamav-5feeeb4cb75d1c44dd7c48b836fe457c.tmp-daily.cvd' ...  
  7. << output >>  
  8. # clamscan -r -i /  
  9. LibClamAV Warning: fmap_readpage: pread fail: asked for 4085 bytes @ offset 11, got 0  
  10. LibClamAV Warning: fmap_readpage: pread fail: asked for 4088 bytes @ offset 8, got 0  
  11. LibClamAV Warning: fmap_readpage: pread fail: asked for 4088 bytes @ offset 8, got 0  
  12. LibClamAV Warning: fmap_readpage: pread fail: asked for 4085 bytes @ offset 11, got 0  
  13. LibClamAV Warning: fmap_readpage: pread fail: asked for 4093 bytes @ offset 3, got 0  
  14. LibClamAV Warning: fmap_readpage: pread fail: asked for 4093 bytes @ offset 3, got 0  
  15. << Lots of output >>  
  16. ----------- SCAN SUMMARY -----------  
  17. Known viruses: 6801836  
  18. Engine version: 0.102.2  
  19. Scanned directories: 13294  
  20. Scanned files: 64849  
  21. Infected files: 0  
  22. Total errors: 11295  
  23. Data scanned: 2668.46 MB  
  24. Data read: 2094.11 MB (ratio 1.27:1)  
  25. Time: 509.652 sec (8 m 29 s)  

如你所見,掃描整個(gè)系統(tǒng)耗時(shí)幾分鐘,所以通過cron掃描并重定向輸出來得更容易。

結(jié)束語

靠譜建議是通過cron安排自動更新和掃描。一旦啟動了新系統(tǒng),你還應(yīng)立即執(zhí)行初步掃描,因?yàn)檫@為你提供了基準(zhǔn)情況。每次更新和安裝軟件后掃描。所有操作系統(tǒng)都有特定的惡意軟件,因此,切勿因個(gè)人偏見而影響你對系統(tǒng)和用戶執(zhí)行正確的操作。要假設(shè)任何系統(tǒng)都不是完全干凈的。

原文標(biāo)題:3 antimalware solutions for Linux systems,作者:Ken Hess

【51CTO譯稿,合作站點(diǎn)轉(zhuǎn)載請注明原文譯者和出處為51CTO.com】

 

責(zé)任編輯:龐桂玉 來源: Linux中國
相關(guān)推薦

2009-09-23 10:12:12

蘋果應(yīng)用軟件商店

2011-07-25 08:38:28

云計(jì)算云協(xié)作應(yīng)用軟件

2018-07-24 09:02:55

2009-12-22 15:05:07

Linux應(yīng)用軟件

2012-11-21 11:20:37

2023-05-04 07:11:29

2011-09-19 15:53:52

Android應(yīng)用軟件教育應(yīng)用

2015-02-28 09:13:56

2016-10-18 11:02:09

2011-09-19 13:58:55

iPhone應(yīng)用軟件Mobli照片共享

2011-06-14 09:23:49

EverNote PeSmart CoveriPad2

2015-12-07 16:18:06

2009-09-24 12:57:18

2021-04-06 15:37:45

開源聊天軟件

2010-03-17 16:06:15

Linux 常用應(yīng)用軟

2011-09-19 15:07:41

iPhone應(yīng)用軟件

2010-03-17 16:19:28

Linux 常用應(yīng)用軟

2009-07-28 08:39:56

Linux應(yīng)用軟件Linux應(yīng)用

2013-08-06 10:18:42

2011-01-24 17:12:11

數(shù)據(jù)庫需求分析
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號