>> Read No. 2449 article  
Klez worm 과 바이러스 메일 필터링 하기

등록 2002-05-02 20:09:00     조회 4
이름 다콘    

		출처 : comp.mail.sendmail
 Klez worm 은 제목이 워낙 많아서 다음과 같은 방법으로 필터링 합니다.
메일 헤더에서 boundary가 boundary=Pj56st60Wh7W25E5917590n32477 과
같이 " "로 둘러싸여 있지 않은걸 이용합니다.
sendmail.cf 에 다음을 추가 합니다.
 Kklez regex -a@MATCH_KLEZ multipart/alternative; +boundary=[a-z0-9]+$
 HContent-Type:$>Check_klez_header
 SCheck_klez_header
R$*[TAB]$: $(klez $&{currHeader} $)
R@MATCH_KLEZ[TAB]$#error $: 553 This message may contain Win32.Klez worm
 [TAB]은 탭키를 누르라는 의미 입니다.
참고로 sendmail이 MAP_REGEX 지원이 되게 컴파일 되어 있어야 합니다.
sendmail -d0.1 하면
Compiled with: MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND
처럼 MA_REGEX 라고 나오면 됩니다.
http://quanta.khu.ac.kr/~dacapo/sendmail/ 를 참고하면 많은 도움이
됩니다.
 바이러스 메일은 procmail을 이용합니다.
첨부 파일이 실행 화일(exe, com, bat 등등..)이면 필터링 합니다.
그래서 quarantine란 계정의 메일박스(/var/spool/mail/quarantine)
에 저장합니다. 주의할점은 이 필터를 적용하면 바이러스 메일뿐 아니라
실행화일이 첨부된 모든 메일을 받을 수 없습니다. zip으로 압축해야겠죠.
기본으로 .exe .bat .pif 같은 파일을 필터링 합니다만 name부분 설정에
따라 .mp3.exe, .doc.exe 같이 이중 확장자만 필터링 할 수 있습니다.
procmailrc 파일에 다음을 추가 합니다.
# check body for executable filenames
{
 :0 B
 # this is tough, because many emails contain URL's that end in .com
 # and some contain named elements like forms with name="something"
 # and action="http://foo.com/cgi-bin/bar.cgi"
 # some viruses are also not using quoted filenames. grrrr...
 # the end of line check also allows for padded spaces or tabs
  * name=.*.(exe|bat|pif|com|lnk|scr|vbs)(")?( *|	*)$
  # or for double extensions only:
 #* name=.*..*.(exe|bat|pif|com|lnk|scr|vbs)(")?( *|	*)$
 #* name=.*.(xls|doc|jpg|gif|bmp|wav|mp3).(exe|bat|pif|com|lnk|scr|vbs)(")?( *|	*)$
    # If found, log and quarantine (or delete)
   {
    LOG=" Possible attachment virus: "
    LOGABSTRACT=all
     # Procmail will create mbox (UNIX mailbox file) if it doesn't exist
    # If it's aready a directory, mail will be saved as mboxes within it (good for global administration)
    # Paths may be absolute, or relative to this file
     :0
    /var/spool/mail/quarantine
     # or to the ol' bit bucket:
    # /dev/null
     LOGABSTRACT=no
   }
}
이름
암호
  목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.17 초 ] 작업시간: [ 0.01 초 ]

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved
[TOP]

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1791029322
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.