Home | Data Center | Contact US | Login

Á¦¸ñ Clam AntiVirus¸¦ ÀÌ¿ëÇÑ ¸ÞÀϼ­¹ö ¹ÙÀÌ·¯½º Â÷´Ü
÷ºÎÆÄÀÏ Clam AntiVirus¸¦ ÀÌ¿ëÇÑ ¸ÞÀϼ­¹ö ¹ÙÀÌ·¯½º Â÷´Ü.pdf ÀÛ¼ºÀÏ 2007-02-23 11:34:33
Clam AntiVirus¸¦ ÀÌ¿ëÇÑ ¸ÞÀϼ­¹ö ¹ÙÀÌ·¯½º Â÷´Ü

KISA´Â º» ¹®¼­¿¡¼­ ¾ð±ÞÇÑ Clam AntiVirus¿Í ¾î¶°ÇÑ °ü°èµµ ¾øÀ¸¸ç, ±¹³» ¸ÞÀϼ­¹ö·Î À¯ÀԵǴ ¿ú, ¹ÙÀÌ·¯½º¿¡ ÀÇÇÑ ÇÇÇØ ¿¹¹æÀ» À§ÇØ °ø°³ ¹ÙÀÌ·¯½º Â÷´Ü ¼ÒÇÁÆ®¿þ¾î Clam AntiVirus¸¦ º¸¾È Âü°í¿ëÀ¸·Î ¼Ò°³ÇÕ´Ï´Ù.


1. °³¿ä

±â¾÷․±â°üÀÇ ÀÎÅͳݻç¿ëÀÚ°¡ À̸ÞÀÏÀ» ÀÌ¿ëÇÏ´Â ¹æ¹ýÀº ÁÖ¿ä À¥¸ÞÀÏ »çÀÌÆ® ¹× ISP°¡ Á¦°øÇÏ´Â ¸ÞÀϼ­ºñ½º¸¦ ÀÌ¿ëÇÏ´Â ¹æ¹ý°ú ±â¾÷․±â°ü ³» Àü»ê´ã´çÀÚ°¡ ±¸ÃàÇÑ ÀÚü ¸ÞÀϼ­¹ö¸¦ ÀÌ¿ëÇϴ¹æ¹ýÀÌ ÀÖ´Ù. ÁÖ¿ä À¥¸ÞÀÏ »çÀÌÆ® ¹× ISP°¡ ¿î¿ëÇÏ´Â ¸ÞÀϼ­ºñ½º´Â ½ºÆÔ Â÷´Ü ¼Ö·ç¼Ç ¹× À̸ÞÀÏ·Î ÀüÆĵǴ ¾Ç¼ºÄڵ带 Â÷´ÜÇÏ°í ´õ ÀÌ»óÀÇ È®»êÀ» ¹æÁöÇϱâ À§ÇÑ ±â´ÉÀ» ¾î´À Á¤µµ Àû¿ëÇÏ°í ÀÖ´Ù.
¹°·Ð ±â¾÷․±â°ü ¿ª½Ã ¹ÙÀÌ·¯½º¿ù µîÀÇ ¼Ö·ç¼Ç µµÀÔÀ¸·Î À̸ÞÀÏ·Î ÀüÆĵǴ ¾Ç¼ºÄڵ带 »çÀü¿¡ Â÷´ÜÇÏ°í ÀÖ´Ù. ÇÏÁö¸¸ ´ë´Ù¼öÀÇ ±â¾÷․±â°üÀº ÀÌ·¯ÇÑ ¼Ö·ç¼ÇÀÇ µµÀÔÀÌ ¹ÌÁøÇÑ »óÅÂÀÌ´Ù.

ÃÖ±Ù ¹ß°ßµÇ´Â ¾Ç¼ºÄÚµåÀÇ ÀüÆÄ °æ·Î´Â ³×Æ®¿öÅ©¸¦ ÅëÇÑ ÀüÆÄ, ¸ÞÀÏÀÇ Ã·ºÎ È­ÀÏ ÇüÅ·ÎÀÇ ÀüÆÄ, ±âŸ »ç¿ëÀÚ¸¦ ¾Ç¼º Äڵ尡 Àº´ÐµÈ »çÀÌÆ®·Î À¯µµÇÏ¿© °¨¿° ¹× ÇÇÇظ¦ ¹ß»ý½ÃÅ°´Â ¹æ½Ä µîÀ¸·Î ´Ù¾çÇØÁö°í ÀÖ´Ù.
ÇÏÁö¸¸ À̸ÞÀÏÀ» ÅëÇØ ÀüÆĵǴ ¾Ç¼ºÄÚµåÀÇ ºñÁßÀº ¾ÆÁ÷µµ °¡Àå Å« ºñÁßÀ» Â÷ÁöÇÏ°í ÀÖ´Ù. ÀÌ¿¡ µû¶ó º»°í¿¡¼­´Â ±¹³»¿¡ ÀÚüÀûÀ¸·Î ¸ÞÀϼ­¹ö¸¦ ¿î¿ëÇÏ´Â ¾÷ü µîÀ» À̸ÞÀÏ·Î ÀüÆĵǴ ¾Ç¼ºÄÚµå·ÎºÎÅÍ º¸È£Çϱâ À§ÇÏ¿© ¸ÞÀϼ­¹ö¿ë °ø°³ ¹ÙÀÌ·¯½º Â÷´Ü ¼ÒÇÁÆ®¿þ¾î¸¦ ¼Ò°³ÇÏ°íÀÚ ÇÑ´Ù.

Clam AntiVirus(ClamAV)´Â ÁÖ·Î À̸ÞÀÏ·Î ÀüÆĵǴ ¾Ç¼ºÄڵ带 °ü¹®¿¡¼­ Â÷´ÜÇϱâ À§ÇØ °³¹ß µÈ ¼ÒÇÁÆ®¿þ¾îÀÌ´Ù. ClamAV´Â Tomasz Kojm¿¡ ÀÇÇØ 2001³â¿¡ ½ÃÀÛµÈ ¿ÀǼҽº ÇÁ·ÎÁ§Æ®ÀÇ °á°úÀÌ´Ù. ½Ã¿¡´Â OpenAntiVirus ÇÁ·ÎÁ§Æ®°¡ ÀÖ¾ú´Âµ¥ ¼³Ä¡ÇÏ°í »ç¿ëÇϱⰡ ¾î·Á¿ü°í ¿Â¶óÀξ÷µ¥ÀÌÆ® ±â´É µîÀ» Á¦´ë·Î Áö¿øÇÏÁö ¾Ê¾Æ ±â´ÉÀ» º¸¿ÏÇϱâ À§ÇØ ¸¸µé¾ú´ø °ÍÀÌ ClamAVÀÇ ½ÃÀÛÀ̾ú´Ù.

Clam AntiVirus(ClamAV)´Â ÁÖ·Î À̸ÞÀÏ·Î ÀüÆĵǴ ¾Ç¼ºÄڵ带 °ü¹®¿¡¼­ Â÷´ÜÇϱâ À§ÇØ °³¹ßµÈ ¼ÒÇÁÆ®¿þ¾îÀÌ´Ù. ClamAV´Â Tomasz Kojm¿¡ ÀÇÇØ 2001³â¿¡ ½ÃÀÛµÈ ¿ÀǼҽº ÇÁ·ÎÁ§Æ®ÀÇ °á°úÀÌ´Ù.
½Ã¿¡´Â OpenAntiVirus ÇÁ·ÎÁ§Æ®°¡ ÀÖ¾ú´Âµ¥ ¼³Ä¡ÇÏ°í »ç¿ëÇϱⰡ ¾î·Á¿ü°í ¿Â¶óÀξ÷µ¥ÀÌÆ®±â´É µîÀ» Á¦´ë·Î Áö¿øÇÏÁö ¾Ê¾Æ ±â´ÉÀ» º¸¿ÏÇϱâ À§ÇØ ¸¸µé¾ú´ø °ÍÀÌ ClamAVÀÇ ½ÃÀÛÀ̾ú´Ù.

ClamAVÀÇ ÁÖ¿ä Ư¡Àº ´ÙÀ½°ú °°´Ù.

o ¿ÀǼҽº ±â¹Ý
- Snort µî°ú °°ÀÌ ClamAV´Â ¿ÀǼҽº¸¦ ±â¹ÝÀ¸·Î ÇÑ´Ù.
- ¿ÀǼҽºÀ̱⿡ À¯¿¬¼ºÀÌ ÀÖÀ¸¸ç www.sanesecurity.com/clamav¿¡¼­´Â ºñ°ø½Ä Phishing ½Ã±×³Êóµµ Á¦°øÇÏ°í ÀÖ´Ù.

o 45,000°³ ÀÌ»óÀÇ ÆÐÅÏ
- 2006³â 3¿ù ÇöÀç 45,000°³ ÀÌ»óÀÇ Å½Áö ÆÐÅÏÀ» º¸À¯ÇÏ°í ÀÖ´Ù.

o ¿Â¶óÀÎ ÆÐÅÏ ¾÷µ¥ÀÌÆ®
- ClamAV ŽÁö ÆÐÅÏÀº ÇÏ·ç¿¡µµ ¿©·¯ ¹ø ¾÷µ¥ÀÌÆ®µÇ°í ÀÖ´Ù.
- »ç¿ëÀÚ´Â ÀÎÅͳÝÀ» ÅëÇØ ½±°Ô ¾÷µ¥ÀÌÆ®µÈ ŽÁöÆÐÅÏÀ» Àû¿ëÇÒ ¼ö ÀÖ´Ù.

o ´Ù¾çÇÑ ¾ÐÃà Æ÷¸Ë Áö¿ø
- Zip, RAR, Tar, Gzip, Bzip2, MS OLE2, MS Cabinet Files, MS CHM, MS SZDD µîÀÇ ÆÄÀÏ ¾ÐÃà Æ÷¸ËÀ» Áö¿ø.
- ½ÇÇà ¾ÐÃà Æ÷¸ËÀÎ UPX, FSG, Petite µîÀ» Áö¿ø.

º»°í¿¡¼­´Â ¸ÞÀϼ­¹ö¸¦ ÅëÇØ ÀüÆĵǴ ¹ÙÀÌ·¯½º¸¦ È¿À²ÀûÀ¸·Î Â÷´ÜÇϱâ À§ÇÑ ¼ö´ÜÀ¸·Î ClamAV¸¦ ÁßÁ¡ÀûÀ¸·Î »ìÆ캻´Ù.




(±×¸² 1) ±âÁ¸ ¸ÞÀϼ­¹ö¿¡ ClamAV¸¦ Ãß°¡ÇÑ »ç·Ê




(±×¸² 2) ClamAV¸¦ ¼³Ä¡ÇÑ ¸ÞÀϼ­¹ö¸¦ º°µµ·Î ±¸¼ºÇÑ »ç·Ê

ClamAV´Â Qmail, Postfix, Sendmail µîÀÇ ¸ÞÀϼ­¹ö¸¦ Áö¿øÇÑ´Ù. º»°í¿¡¼­´Â ÀÌ Áß¿¡¼­ Sendmail¿¡ ¼³Ä¡µÇ´Â °æ¿ì¸¦ ´Ù·é´Ù. Sendmail¿¡ ¼³Ä¡µÉ ¶§´Â ¸ÞÀϼ­¹öÀÎ Sendmail, ¾ÈƼ¹ÙÀÌ·¯½ºÀÎ ClamAV ¿Ü¿¡ ÀÌ µÑÀ» ¿¬µ¿Çϱâ À§ÇÑ Clamav-milter, ÀÌ ¼¼ °³·Î ±¸¼ºµÇ´Â °ÍÀÌ º¸ÅëÀÌ´Ù.
±¸¼º¿ä¼Ò ¼³¸í
Sendmail MTA(Mail Transfer Agent)·Î¼­ ¸ÞÀÏ ¼Û¼ö½ÅÀ» ´ã´çÇÑ´Ù.
ClamAV ¿ú, ¹ÙÀÌ·¯½º ½ºÄ³´×À» Çϱâ À§ÇÑ ¾ÈƼ¹ÙÀÌ·¯½º ¿£ÁøÀÌ´Ù.
Clamav-milter MTA¿Í ¾ÈƼ¹ÙÀÌ·¯½º ¿£ÁøÀ» ¿¬µ¿ÇÏ´Â ¿ªÇÒÀ» ÇÑ´Ù.

¡à SendmailÀÇ Milter Áö¿ø ¿©ºÎ È®ÀÎ

ClamAV¸¦ ÀÌ¿ëÇÏ¿© ¸ÞÀϼ­¹ö¿¡ À¯ÀԵǴ ¸ÞÀÏÀ» °Ë»çÇϱâ À§Çؼ­ ±âº»ÀûÀ¸·Î SendmailÀÌ Milter ±â´ÉÀ» Áö¿øÇØ¾ß ÇÑ´Ù. Milter ±â´ÉÀ̶õ SendmailÀÌ ¿ÜºÎÇÁ·Î±×·¥°ú ¼ÒÄÏ ±â¹ÝÀ¸·Î Åë½ÅÇÒ ¼ö ÀÖµµ·Ï ÇÏ´Â °ÍÀ¸·Î Sendmail 8.12ºÎÅÍ °ø½ÄÀûÀ¸·Î Áö¿øÇÑ´Ù. Milter´Â ¿ÜºÎ ÇÁ·Î±×·¥°ú ¿¬µ¿ÇÏ¿© ¸ÞÀÏÀÇ ³»¿ëÀ» °Ë»çÇÏ°í ÇÊ¿ä¿¡ µû¶ó¼­´Â ³»¿ëÀ» ¼öÁ¤ÇÒ ¼ö ÀÖµµ·Ï Çϸç, ¿©·¯ °¡Áö ¿ëµµ·Î »ç¿ëµÉ ¼ö ÀÖÁö¸¸ ƯÈ÷ ¹ÙÀÌ·¯½º ¹× ½ºÆÔ Â÷´Ü°ú °°ÀÌ À̸ÞÀÏ º¸¾ÈÀ» À§ÇÑ ±â´ÉÀ¸·Î ÁÖ·Î »ç¿ëµÈ´Ù.

SendmailÀÌ Milter¸¦ Áö¿øÇϱâ À§Çؼ­´Â ÄÄÆÄÀÏ ½Ã¿¡ ¿É¼ÇÀ¸·Î Milter ±â´ÉÀ» Æ÷ÇÔÇÏ¿©¾ß ÇÑ´Ù.
ÇöÀç ½Ã½ºÅÛ¿¡ ¼³Ä¡µÈ SendmailÀÌ Milter ±â´ÉÀ» Áö¿øÇÏ´ÂÁö È®ÀÎÇÏ´Â ¹æ¹ýÀº ´ÙÀ½°ú °°´Ù.

prompt# sendmail -bt -d0.4 < /dev/null
Version 8.13.6
Compiled with: DNSMAP LOG MATCHGECOS MILTER MIME7TO8 MIME8TO7

¸¸¾à ¼³Ä¡µÈ SendmailÀÌ Milter¸¦ Áö¿øÇÏÁö ¾Ê´Â´Ù¸é Milter ±â´ÉÀ» »ç¿ëÇϱâ À§ÇØ ´Ù½Ã ÄÄÆÄÀÏ ÇØ¾ß ÇÑ´Ù. ȤÀº Milter ±â´ÉÀ» Áö¿øÇϵµ·Ï ÄÄÆÄÀÏµÈ ¹ÙÀ̳ʸ® ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÏ´Â ¹æ¹ýµµ ÀÖÁö¸¸ °¢ ¿î¿µÃ¼Á¦ ¹× ¹öÀü, ¹èÆ÷º» Á¾·ù µî¿¡ µû¶ó ºÒ°¡´ÉÇÑ °æ¿ìµµ ÀÖ´Ù.

¡à Sendmail ¼³Ä¡

SendmailÀ» ÄÄÆÄÀÏÇϱâ À§Çؼ­´Â ¿ì¼± ¼Ò½ºÄڵ带 ´Ù¿î·ÎµåÇØ¾ß ÇÑ´Ù. Sendmail ¼Ò½ºÄÚµå´Â www.sendmail.org¿¡¼­ ´Ù¿î·ÎµåÇÒ ¼ö ÀÖ´Ù. 2006³â 3¿ù 31ÀÏ ±âÁØÀ¸·Î °¡Àå ÃֽŠ¾ÈÁ¤È­ ¹öÀüÀº 8.13.6ÀÌ´Ù.

¨ç ´Ù¿î·ÎµåÇÑ ÆÄÀÏÀº ´ÙÀ½°ú °°Àº ¸í·É¾î·Î Àû´çÇÑ µð·ºÅ丮¿¡ ¾ÐÃà ÇØÁ¦ÇÑ´Ù.
prompt# tar xvfz sendmail.8.13.6.tar.gz

¨è sendmail ÇÁ·Î¼¼½º ¼ÒÀ¯ÁÖ·Î smmsp »ç¿ëÀÚ °èÁ¤À» »ý¼ºÇÑ´Ù.
prompt# groupadd smmsp
prompt# useradd -g smmsp smmsp

¨é Sendmail ¾ÐÃàÀ» ÇØÁ¦ÇÑ µð·ºÅ丮·Î À̵¿ÇÏ¿© site.config.m4.sample ÆÄÀÏÀ» /etc/mail/site.config.m4
·Î º¹»çÇÑ´Ù.
[user@clamav ~]# cd sendmail-8.13.6/
[user@clamav sendmail-8.13.6]# cp devtools/Site/site.config.m4.sample /etc/mail/site.config.m4

¨ê /etc/mail/site.config.m4 ÆÄÀÏÀ» ÆíÁý±â·Î ¿­¾î ´ÙÀ½°ú °°Àº ¼³Á¤À» È®ÀÎÇÏ¿© Ãß°¡ÇÑ´Ù. ÇØ´ç
¶óÀÎÀº Milter ±â´ÉÀ» È°¼ºÈ­ÇÏ°í Milter¸¦ root ±ÇÇÑÀ¸·Î ½ÇÇàÇÏ´Â °ÍÀ» ¹æÁöÇÏ´Â ¼³Á¤ÀÌ´Ù.
APPENDDEF(`confENVDEF', `-DMILTER')
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER_ROOT_UNSAFE')

±× ¿Ü »çÀÌÆ® ¼³Á¤¿¡ µû¶ó ÇÊ¿äÇÑ ³»¿ëÀÌ ÀÖ´Ù¸é /etc/mail/site.config.m4 ÆÄÀÏ¿¡ Ãß°¡ÇÑ´Ù.

¨ë sendmail µð·ºÅ丮·Î À̵¿ÇÏ¿© ÄÄÆÄÀÏÇÑ´Ù.
[user@clamav sendmail-8.13.6]# cd sendmail
[user@clamav sendmail]# sh Build -c -f /etc/mail/site.config.m4

¨ì sendmail-8.13.6/cf/cf/ µð·ºÅ丮·Î À̵¿Çϸé *.mc ÅÛÇø´ÀÌ °¢ ¿î¿µÃ¼Á¦ µîÀÇ È¯°æº°·Î Àִµ¥ SendmailÀÌ ¼³Ä¡µÉ ȯ°æ¿¡ °¡Àå ÀûÇÕÇÑ *.mc ÆÄÀÏÀ» sendmail.mc·Î º¹»çÇÑ´Ù.
[user@clamav sendmail]# cd ../cf/cf/
[user@clamav cf]# cp generic-linux.mc sendmail.mc

¨í sendmail.mc ÆÄÀÏÀ» ÆíÁý±â·Î ¿­¾î¼­ ´ÙÀ½°ú °°Àº ¶óÀÎÀ» Ãß°¡ÇÑ´Ù. ÀÌ ¼³Á¤Àº Clamav-milter
»ç¿ëÀ» À§ÇÑ ¼³Á¤ÀÌ´Ù.
INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS',`clmilter')

±× ¿Ü »çÀÌÆ® ¼³Á¤¿¡ µû¶ó ÇÊ¿äÇÑ ³»¿ëÀÌ ÀÖ´Ù¸é sendmail.mc ÆÄÀÏ¿¡ Ãß°¡ÇÑ´Ù.

¨î ´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÏ¿© /etc/mail/sendmail.cf, /etc/mail/submit.cf¸¦ »ý¼ºÇÑ´Ù.
[user@clamav cf]# sh Build sendmail.cf
Using M4=/usr/bin/m4
rm -f sendmail.cf
...
[user@clamav cf]# sh Build install-cf
Using M4=/usr/bin/m4
../../devtools/bin/install.sh -c -o root -g bin -m 0444 sendmail.cf /etc/mail/sendmail.cf
../../devtools/bin/install.sh -c -o root -g bin -m 0444 submit.cf /etc/mail/submit.cf

¨ï sendmail-8.13.6/sendmail/ µð·ºÅ丮·Î À̵¿ÇÏ¿© ´ÙÀ½°ú °°ÀÌ ºôµåÇÑ °á°ú¸¦ ¼³Ä¡ÇÑ´Ù.
[user@clamav cf]# cd ../../sendmail/
[user@clamav sendmail]# sh Build install

¨ð ¼º°øÀûÀ¸·Î ¼³Ä¡°¡ ³¡³ª¸é "SendmailÀÇ Milter Áö¿ø ¿©ºÎ È®ÀÎ"¿¡¼­¿Í °°ÀÌ È®ÀÎÇÏ¿© MilterÁö¿ø ±â´ÉÀÌ È°¼ºÈ­µÇ¾ú´ÂÁö »ìÆ캻´Ù.

¡à LibmilterÀÇ ¼³Ä¡ ¿©ºÎ È®ÀÎ
´ÙÀ½°ú °°ÀÌ libmilter ¶óÀ̺귯¸®°¡ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö È®ÀÎÇÑ´Ù. libmilter ¶óÀ̺귯¸®°¡ È®ÀεÇÁö ¾Ê´Â´Ù¸é ÇØ´ç ¶óÀ̺귯¸®µµ ¼³Ä¡ÇØ¾ß ÇÑ´Ù.
[user@clamav sendmail-8.13.6]# whereis libmilter
libmilter: /usr/lib/libmilter.a /usr/include/libmilter

¡à Libmilter ¼³Ä¡
Libmilter´Â sendmail ¼Ò½ºÄÚµå ¾ÐÃàÀ» ÇØÁ¦ÇÏ¿´´ø µð·ºÅ丮 ÇÏ´ÜÀÇ libmilter¿¡¼­ ºôµåÇÏ°í ¼³Ä¡ÇÒ ¼ö ÀÖ´Ù.
[user@clamav libmilter]# sh Build
...
[user@clamav libmilter]# sh Build install

¡à ClamAVÀÇ ¼³Ä¡
ClamAV´Â www.clamav.net¿¡¼­ ´Ù¿î·ÎµåÇÒ ¼ö ÀÖ´Ù. 2006³â 3¿ù 31ÀÏ ±âÁØÀ¸·Î °¡Àå ÃֽŠ¾ÈÁ¤È­ ¹öÀüÀº 0.88ÀÌ´Ù.

¨ç ClamAV¸¦ ´Ù¿î·ÎµåÇÏ¿© ´ÙÀ½°ú °°ÀÌ Àû´çÇÑ µð·ºÅ丮¿¡ ¾ÐÃà ÇØÁ¦ÇÑ´Ù.
[user@clamav ~]# tar xvfz clamav-0.88.tar.gz

¨è ClamAV°¡ ½ÇÇàµÇ±â À§ÇÑ ±ÇÇÑÀ» °¡Áø »ç¿ëÀÚ¸¦ ´ÙÀ½°ú °°ÀÌ »ý¼ºÇÑ´Ù.
[user@clamav ~]# groupadd clamav
[user@clamav ~]# useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav

¨é ClamAV ¾ÐÃà ÇØÁ¦ÇÑ µð·ºÅ丮·Î À̵¿ÇÏ¿© ClamAV¸¦ ÄÄÆÄÀÏÇÏ°í ¼³Ä¡ÇÑ´Ù.
[user@clamav ~]# cd clamav-0.88
[user@clamav clamav-0.88]# ./configure --sysconfdir=/etc --enable-milter
...
[user@clamav clamav-0.88]# make
...
[user@clamav clamav-0.88]# make install

ClamAV ¼³Á¤ ÆÄÀÏ(clamd.conf, freshclam.conf)Àº configure ¸í·ÉÀÇ --sysconfdir ¿É¼Ç¿¡¼­ ÁöÁ¤µÈ /etc µð·ºÅ丮¿¡ À§Ä¡ÇÏ°Ô µÇ°í ¹ÙÀ̳ʸ®´Â /usr/local µð·ºÅ丮¿¡ ÀúÀåµÈ´Ù.

¨é ¼³Ä¡°¡ ¼º°øÀûÀ¸·Î ÀÌ·ç¾îÁ³´ÂÁö È®ÀÎÇϱâ À§ÇØ clamscan ¸í·É¾î¸¦ ½ÇÇàÇϸé ÇöÀç µð·ºÅ丮¿¡
ÀÖ´Â ÆÄÀϵ鿡 ´ëÇÑ ¹ÙÀÌ·¯½º Á¡°Ë °á°ú¸¦ È®ÀÎÇÒ ¼ö ÀÖ´Ù.
[user@clamav ~]# clamscan
/user/install.log: OK
/user/.autorun.lck: Empty file
/user/install.log.syslog: OK
/user/.tcshrc: OK
/user/.cshrc: OK
...


3. ClamAV ¼³Á¤ ¹× ½ÇÇà

¡à ClamAVÀÇ ¼³Á¤

¨ç ¼ÒÄÏ ÆÄÀÏÀÌ ÀúÀåµÉ µð·ºÅ丮¸¦ /var/run/clamav¿¡ »ý¼ºÇÏ°í ¼ÒÀ¯ÀÚ´Â clamav »ç¿ëÀÚ·Î ÇÑÁ¤
ÇÑ´Ù.
prompt# mkdir /var/run/clamav
prompt# chmod 600 /var/run/clamav
prompt# chown clamav:clamav /var/run/clamav

¨è /etc/clamd.conf ÆÄÀÏÀ» ȯ°æ¿¡ ¸Â°Ô ÆíÁýÇÑ´Ù.
LocalSocketÀ» ¼öÁ¤ÇÏ°í º¸¾ÈÀ» À§ÇØ clamd ÇÁ·Î¼¼½ºÀÇ ¼ÒÀ¯ÀÚ¸¦ clamav·Î ÇÑÁ¤ÇÑ´Ù. ¶ÇÇÑ
LogFileÀ» ÁöÁ¤ÇÏ¿© ·Î±×¸¦ ÀúÀåÇÑ´Ù. ±× ¹ÛÀÇ ¼³Á¤Àº ¡°man clamd.conf¡° ¸í·É¾î¸¦ ÅëÇØ
clamd.conf ¸ÇÆäÀÌÁö¸¦ Âü°íÇÏ¿© ÇÊ¿ä¿¡ µû¶ó ¼³Á¤ÇÑ´Ù.
LocalSocket /var/run/clamav/clamd.sock
User clamav
LogFile /var/log/clamd.log

/etc/clamd.conf¿¡¼­ ´ÙÀ½°ú °°ÀÌ ExampleÀ̶ó´Â ¶óÀÎÀ» ÁÖ¼®Ã³¸®ÇØ¾ß ÇÑ´Ù.
# Comment or remove the line below.
# Example

¨é ·Î±× ÆÄÀÏÀ» »ý¼ºÇÏ°í ¼ÒÀ¯ÀÚ¸¦ clamav·Î ÇÑÁ¤ÇÑ´Ù.
prompt# touch /var/log/clamd.log
prompt# chmod 600 /var/log/clamd.log
prompt# chown clamav:clamav /var/log/clamd.log

¡à ClamAVÀÇ ½ÇÇà

¨ç clamd¸¦ ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇÑ´Ù.
[user@clamav ~]# /usr/local/sbin/clamd
clamd´Â ´ë¸óÀ¸·Î ½ÇÇàµÇ¸ç ´ÙÀ½°ú °°ÀÌ ÇöÀç ÇÁ·Î¼¼½º ¸ñ·ÏÀ» È®ÀÎÇϸé clamd¸¦ È®ÀÎÇÒ ¼ö
ÀÖ´Ù.
[user@clamav ~]# ps -ef | grep clamd
clamav 7277 1 0 16:20 ? 00:00:00 /usr/local/sbin/clamd

¨è clamav-milter¸¦ ½ÇÇàÇÑ´Ù.
[user@clamav ~]# /usr/local/sbin/clamav-milter -lo /var/run/clamav/clmilter.sock --external
clamav-milter ¿ª½Ã ´ë¸óÀ¸·Î ½ÇÇàµÇ¾î ps ¸í·É¾î·Î ÇÁ·Î¼¼½º ³»¿ªÀ» È®ÀÎÇÒ ¼ö ÀÖ´Ù.
[user@clamav ~]# ps -ef | grep clamav-milter
clamav 7312 1 0 16:27 ? 00:00:00 /usr/local/sbin/clamav-milter -lo
/var/run/clamav/clmilter.sock --external

¨é sendmail ÇÁ·Î¼¼½º¸¦ Àç½ÃÀÛÇÑ´Ù. ÇÁ·Î¼¼½º°¡ Á¤»óÀûÀ¸·Î ½ÇÇàµÈ´Ù¸é ¼³Ä¡´Â ¿Ï·áµÇ¾ú´Ù.

¨ê ¼³Ä¡µÈ ClamAV°ú Sendmail°ú ¿¬µ¿ÇÏ¿© ¹®Á¦¾øÀÌ µ¿ÀÛÇÏ´ÂÁö È®ÀÎÇÑ´Ù.

±¸¼ºµÈ ClamAV ¸ÞÀϼ­¹ö¸¦ ÅëÇØ Eicar¿¡¼­ Á¦°øÇÏ´Â Å×½ºÆ®¸¦ À§ÇÑ »ùÇà ¹ÙÀÌ·¯½º¸¦ Æ÷ÇÔÇؼ­
¸ÞÀÏÀ» ¹ß¼ÛÇÑ´Ù. Eicar¿¡¼­ Á¦°øÇÏ´Â »ùÇà ¹ÙÀÌ·¯½º´Â ¾Ç¼º ÇàÀ§¸¦ ÇÏ´Â ¹ÙÀÌ·¯½º´Â ¾Æ´Ï¸ç, ¾ÈƼ¹ÙÀÌ·¯½º°¡ Á¦´ë·Î µ¿ÀÛÇÏ´ÂÁö¸¦ ½ÃÇèÇϱâ À§ÇØ Á¦°øÇϴ ǥÁØ ½Ã±×³ÊóÀÌ´Ù.

¡Ø ´Ù¿î·Îµå »çÀÌÆ® : www.eicar.org/anti_virus_test_file.htm
´ÙÀ½Àº ÇØ´ç ¸ÞÀÏÀ» ¹ß¼ÛÇßÀ» ¶§ ClamAV¿¡ ÀÇÇØ ¹ÙÀÌ·¯½º·Î ŽÁöµÇ°í ¹Ý¼ÛµÈ È­¸éÀÌ´Ù.


¶ÇÇÑ, /var/log/clamd.log ÆÄÀÏ¿¡¼­ ´ÙÀ½°ú °°Àº ŽÁö ·Î±×¸¦ È®ÀÎÇÒ ¼ö ÀÖ´Ù.
/tmp/clamav-311cd8c9c0dcd132/msg.Tn3dwQ: Eicar-Test-Signature FOUND

¹ÙÀÌ·¯½º°¡ Æ÷ÇÔµÇÁö ¾ÊÀº ¸ÞÀÏÀÌ ClamAV¸¦ ÅëÇØ º¸³»Á³À» °æ¿ì¿¡´Â ÇØ´ç ¸ÞÀÏÀÇ Çì´õ¿¡¼­ ´ÙÀ½°ú °°ÀÌ ClamAV·Î Á¡°ËµÇ¾úÀ½À» È®ÀÎÇÒ ¼ö ÀÖ´Ù.

(±×¸² 4) ¸ÞÀÏ Çì´õ¸¦ ÅëÇÑ ClamAV Á¡°Ë È®ÀÎ

¡à freshclamÀ» ÀÌ¿ëÇÑ ¿Â¶óÀξ÷µ¥ÀÌÆ®

ClamAV´Â ¹ÙÀÌ·¯½º ½Ã±×³Êó¿¡ ´ëÇÑ ¿Â¶óÀξ÷µ¥ÀÌÆ®¸¦ Áö¿øÇÑ´Ù. ¾÷µ¥ÀÌÆ®¸¦ À§Çؼ­´Â freshclam ¸í·É¾î¸¦ ½ÇÇàÇÏ¸é µÈ´Ù.

¨ç /etc/freshclam.conf ÆÄÀÏÀ» ȯ°æ¿¡ ¸Â°Ô ÆíÁýÇÑ´Ù.
¾÷µ¥ÀÌÆ® °úÁ¤À» ·Î±×·Î ³²±â±â À§ÇØ ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÑ´Ù.
UpdateLogFile /var/log/freshclam.log

¨é ·Î±× ÆÄÀÏÀ» »ý¼ºÇÏ°í ¼ÒÀ¯ÀÚ¸¦ clamav·Î ÇÑÁ¤ÇÑ´Ù.
prompt# touch /var/log/freshclam.log
prompt# chmod 600 /var/log/freshclam.log
prompt# chown clamav:clamav /var/log/freshclam.log

/etc/freshclam.conf¿¡¼­ ´ÙÀ½°ú °°ÀÌ ExampleÀ̶ó´Â ¶óÀÎÀ» ÁÖ¼®Ã³¸®ÇØ¾ß ÇÑ´Ù.
# Comment or remove the line below.
# Example

¨ê freshclamÀ» ÀÌ¿ëÇÏ¿© ¿Â¶óÀξ÷µ¥ÀÌÆ®¸¦ ¼öÇàÇÑ´Ù.
prompt]# freshclam
ClamAV update process started at Tue Apr 4 17:42:14 2006
Downloading main.cvd [*]
main.cvd updated (version: 37, sigs: 46700, f-level: 7, builder: ccordes)
Downloading daily.cvd [*]
daily.cvd updated (version: 1374, sigs: 2136, f-level: 7, builder: sven)
Database updated (48836 signatures) from database.clamav.net (IP: 218.189.210.14)

root³ª clamav »ç¿ëÀÚÀÇ crontabÀ¸·Î ´ÙÀ½°ú °°ÀÌ ÇØ´ç ÀÛ¾÷À» µî·ÏÇÏ¿© Á¤±âÀûÀÎ ¾÷µ¥ÀÌÆ®¸¦ Çϵµ·Ï ÇÒ ¼ö ÀÖ´Ù.

N * * * * /usr/local/bin/freshclam --quiet
¶Ç´Â "freshclam -d" ¸í·ÉÀ» ÀÌ¿ëÇØ ´ë¸óÀ¸·Î ½ÇÇàÇÒ ¼ö ÀÖ´Ù.

4. °á·Ð

º»°í¿¡¼­´Â À̸ÞÀÏ ±â¹Ý ¹ÙÀÌ·¯½º Â÷´Ü °ø°³¼ÒÇÁÆ®¿þ¾î ClamAV¿¡ ´ëÇØ »ìÆ캸¾Ò´Ù. ClamAV´Â ¿ÀǼҽº ¾ÈƼ¹ÙÀÌ·¯½º·Î È°¹ßÇÑ ½Ã±×³Êó ¾÷µ¥ÀÌÆ®¿Í ¿ÀǼҽºÀÇ Æ¯¼º°ú ¸¹Àº 3rd partyÀÇ Áö¿øÀ» »ì·Á¼­ ´Ù¾çÇÑ È¯°æÀ» Áö¿øÇÑ´Ù. ¶ÇÇÑ IRC³ª ¸ÞÀϸµ¸®½ºÆ® µîÀ» ÅëÇÑ ¹«·á ±â¼úÁö¿ø ⱸ´Â ¹°·Ð, ClamAV¿¡ ´ëÇÑ »ó¿ë ±â¼úÁö¿øÀ» Á¦°øÇÏ´Â ¾÷üµéµµ ÀÖ´Ù. ´ÜÁ¡À¸·Î´Â ŽÁöÀ²ÀÌ »ó¿ëÁ¦Ç°¿¡ ºñÇؼ­ ³·Àº ÆíÀÌ¸ç »ç¿ëÀÚ¸¦ À§ÇÑ GUI ȯ°æÀÇ ÇÁ·ÐÆ®¿£µå°¡ °ÅÀÇ Á¸ÀçÇÏÁö ¾Ê¾Æ °ü¸®ÀÚÀÔÀå¿¡¼­ °ü¸®°¡ ºÒÆíÇÏ´Ù´Â °ÍÀ» µé ¼ö ÀÖ´Ù. ÇÏÁö¸¸ ÇÁ·ÎÁ§Æ®°¡ °è¼ÓÇÏ¿© È°¹ßÈ÷ ÁøÇàµÇ°í ÀÖ±â
¶§¹®¿¡ ÀÌ Á¡µµ °³¼±µÉ °ÍÀ¸·Î º¸À̸ç, ³×Æ®¿öÅ© °ü¹®¿¡¼­ÀÇ ¾Ç¼ºÄÚµå Â÷´Ü¿¡ È¿°úÀûÀÎ ¿ªÇÒÀ» ÇÒ ¼ö ÀÖÀ» °ÍÀ¸·Î ±â´ëÇÑ´Ù.


[ÀÚ·á: Çѱ¹Á¤º¸º¸È£ÁøÈï¿ø(KISA)]
  IEµî ÀÎÅÍ³Ý Å½»ö±âÀÇ °¢Á¾ Spoofing Ãë¾àÁ¡
  Sendmail alias ¼³Á¤Çϱâ





ȸ»ç¼Ò°³ °³ÀÎÁ¤º¸Ãë±Þ¹æħ ÀÌ¿ë¾à°ü À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ CONTACT US IDC ¾àµµ
ȸ»ç¼Ò°³ °³ÀÎÁ¤º¸Ãë±Þ¹æħ ÀÌ¿ë¾à°ü À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ CONTACT US IDC ¾àµµ ȸ»ç¼Ò°³ °³ÀÎÁ¤º¸Ãë±Þ¹æħ ÀÌ¿ë¾à°ü À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ CONTACT US IDC ¾àµµ