티스토리 뷰
Multiple Vendor Anti-Virus Software Detection Evasion Vulnerability through forged magic byte.
NineKY 2008. 3. 16. 14:19Multiple Vendor Anti-Virus Software Detection Evasion Vulnerability through forged magic byte.
AUTHOR: Andrey Bayora (www.securityelf.org)
For more details, screenshots and examples please read my article "The Magic of magic byte" at www.securityelf.org . In addition, you will find a sample “triple headed” program which has 3 different 'execution entry points', depending on the extension of the file (exe, html or eml) – just change the extension and the SAME file will be executed by (at least) THREE DIFFERENT programs! (thanks to contributing author Wayne Langlois from www.diamondcs.com.au).
DATE: October 25, 2005
VULNERABLE vendors and software (tested):
1. ArcaVir 2005 (engine 2005-06-03,vir def 2005-06-27, scanner ver 2005-03-06, package ver 2005-06-21) (CVE-2005-3370)
2. AVG 7 (updates 24 June, ver.7.0.323, virus base 267.8.0/27) (CVE-2005-3371)
3. eTrust CA (ver 7.0.1.4, engine 11.9.1, vir sig. 9229) (CVE-2005-3372)
4. Dr.Web (v.4.32b, update 27.06.2005) (CVE-2005-3373)
5. F-Prot (ver. 3.16c, update 6/24/2005) (CVE-2005-3374)
6. Ikarus (latest demo version for DOS) (CVE-2005-3375)
7. Kaspersky (update 24 June, ver. 5.0.372) (CVE-2005-3376)
8. McAfee Internet Security Suite 7.1.5 (updates 25 June, ver 9.1.08, engine 4.4.00, dat 4.0.4519 6/22/2005) (CVE-2005-3377)
9. McAfee Corporate (updates 25 June, ver. 8.0.0 patch 10, vir def 4521, engine 4400) (CVE-2005-3377)
10. Norman ( ver 5.81, engine 5.83.02, update 2005/06/23) (CVE-2005-3378)
11. TrendMicro PC-Cillin 2005 (ver 12.0.1244, engine 7.510.1002, pattern 2.701.00) (CVE-2005-3379)
12. TrendMicro OfficeScan (ver7.0, engine 7.510.1002, vir pattern 2.701.00 6/23/2005) (CVE-2005-3379)
13. Panda Titanium 2005 (updates 24 June, ver 4.02.01) (CVE-2005-3380)
14. UNA – Ukrainian National Antivirus (ver. 1.83.2.16 kernel v.265) (CVE-2005-3381)
15. Sophos 3.91 (engine 2.28.4, virData 3.91) (CVE-2005-3382)
UPDATE, October 26, 2005 (based on the www.virustotal.com scan results, view the log at http://www.securityelf.org/updmagic.html)
16. CAT-QuickHeal (ver 8.0)
17. Fortinet (2.48.0.0)
18. TheHacker (5.8.4.128)
IMPORTANT NOTE:
Similar vulnerability may exist in many other antivirus\anti-spyware desktop and gateway products. In addition, various “file filter” solutions may be affected as well.
NOT VULNERABLE vendors and software (tested):
1. F-Secure (updates 24 June, ver 5.56 b.10450)
2. Avast (ver. 4.6.655, vir databas 0525-5 06/25/2005)
3. BitDefender (ver. 8.0.200, update 6/24/2005, engine 7.01934)
4. ClamWin (ver. 0.86.1, upd 24 June 2005)
5. NOD32 (updates 24 June, ver 2.50.25, vir database 1.1152)
6. Symantec Corporate (ver 10.0.0.359, engine 103.0.2.7)
7. Norton Internet Security 2005 (ver 11.5.6.14)
8. VBA32 (ver 3.10.4, updates 27.06.2005)
9. HBEDV Antivir Personal (ver 6.31.00.01, engine 6.31.0.7, vir def 6.31.0.109 6/24/2005)
10. Sophos 5 (ver. 5.0.2, vir def 3.93, upd 6/30/2005)
11. Sophos 3.95 (engine 2.30.4)
SEVERITY: critical
DESCRIPTION:
The problem exists in the scanning engine – in the routine that determines the file type. If some file types (file types tested are .BAT, .HTML and .EML) changed to have the MAGIC BYTE of the EXE files (MZ) at the beginning, then many antivirus programs will be unable to detect the malicious file. It will break the normal flow of the antivirus scanning and many existent and future viruses will be undetected.
NOTE: In my test, I used the EXE headers (MZ), but it is possible to use other headers (magic byte) that will lead to the same effect.
ANALYSIS:
Some file types like .bat, .html and .eml can be properly executed even if they have some “unrelated” beginning. For example, in the case of .BAT files – it is possible to prepend some "junk" data at the beginning of the file without altering correct execution of the batch file. In my tests, I used the calc.exe headers (first 120 bytes - middle of the dosstub section) to change 5 different files of existing viruses. In addition, the simplest test of this vulnerability is to prepend only the magic byte (MZ) to the existing malicious file and check if this file is detected by antivirus program.
NOTE, that this is NOT the case where the change of existing virus file resulted in the "broken" detection signature (see details and the test logic in "The Magic of magic byte" article at www.securityelf.org).
WORKAROUND:
I did not found any effective one besides of patching the vulnerable engine.
CREDITS:
The idea for this vulnerability came during discussions from Wayne Langlois at diamondcs.com.au, who hinted that JPEGs could probably be exploited in this way.
TIME LINE:
July 13, 2005 - Initial vendor notification
July 16, 2005 – Second vendor notification
.....Waiting.....Waiting....
October 24, 2005 - Public disclosure (uncoordinated) (lack of coordination from the vendors side)
October 26, 2005 - Updated list of the vulnerable products.
'보안' 카테고리의 다른 글
Nt vs Zw - Clearing confusion on the Native API [펌 hongyver.springnote.com] (2) | 2008.03.17 |
---|---|
screenshots of the results of scanning by some antivirus programs (note that this page about 1.6 MB with many pictures). (0) | 2008.03.16 |
The Magic of magic byte. (0) | 2008.03.16 |
드라이버 쪼물딱 거리기 3탄 [펌 namuya.g3.cc] (0) | 2008.03.12 |
cr0 레지스터를 이용한 Write Protection 제거 [펌 somma.egloos.com] (0) | 2008.03.12 |
- Total
- Today
- Yesterday
- 지루박멸연구센타
- 열정의 힘을 믿는다
- Le4rN TO Cr4cK
- 디버깅에관한모든것(DebugLab)
- sysinternals
- FoundStone
- hashtab
- 보안-coderant
- 디바이스드라이버 개발자 포럼
- dualpage.muz.ro
- osronline.com - 드라이버 관련 정보 사이트
- NtInternals - NativeAPI Refere…
- pcthreat - spyware 정보 제공
- rootkit.com - 루트킷 관련 정보
- www.ntinternals.net
- WINE CrossRef. - source.winehq…
- tuts4you
- hex-rays
- idapalace
- idefense
- immunityinc
- threatexpert
- hdp.null2root.org
- www.crackstore.com
- crackmes.de
- www.who.is
- www.cracklab.ru
- community.reverse-engineering.…
- video.reverse-engineering.net
- SnD
- 클레이 키위
- reversengineering.wordpress.co…
- www.openrce.org
- www.woodmann.com
- PEID.Plusins.BobSoft
- roxik.com/pictaps/
- regexlib.com
- spyware-browser.com
- www.usboffice.kr
- regulator
- www.txt2re.com
- ietab.mozdev.org
- zesrever.xstone.org
- www.heaventools.com/PE-file-he…
- www.heaventools.com
- www.innomp3.com
- 울지않는벌새
- exetools.com-forum
- exetools.com
- utf8 conv
- robtex - IP trace
- onsamehost - same IP sites
- JpopSuki
- jsunpack.jeek.org
- wepawet.iseclab.org
- www.jswiff.com
- www.hackeroo.com
- winesearcher.co.kr
- khpga.org
- malwareurl.com
- anubis.iseclab.org
- www.crummy.com-eautifulSoup
- malwarebytes.org/forums
- bbs.janmeng.com
- blackip.ustc.edu.cn
- eureka.cyber-ta.org
- exploit-db.com
- 시스템트래이딩
- 피봇
- ChatGPT
- 주택구매력지수
- 실시간트래이딩
- 레고랜드
- logrotate
- 전세매매지수
- 매매가격지수
- 다올저축은행
- Pivot
- 사회간접자본
- ubuntu
- hai
- ElasticSearch
- 주식
- 자동트래이딩
- ROA
- 맥쿼리인프라
- O365
- 공공인프라
- 미국주식
- PIR
- SBI저축은행
- 신한저축은행
- CriticalSection
- systemd
- 군함도
- INVOICE
- 주식트래이딩
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |