vuln-intel취약점 정보 통합 DB

← 목록

CVE-2020-14882

위험도 심각 실제 악용 (KEV) 공격 코드 공개 ASEC 언급 6건

우선순위 이 사이트의 참고 점수
18.30
위험도 CVSS 3.1 · 0~10점
9.8
악용 가능성 EPSS · 30일 안에 공격에 쓰일 확률
100.0%
공개일 NVD
2020-10-21

설명 NVD 원문

Oracle Fusion Middleware의 Oracle WebLogic Server 제품(구성 요소: Console)에 존재하는 취약점이다. 영향을 받는 지원 버전은 10.3.6.0.0, 12.1.3.0.0, 12.2.1.3.0, 12.2.1.4.0 및 14.1.1.0.0이다. 공격이 쉬운 이 취약점을 이용하면, 인증되지 않은 공격자가 HTTP를 통해 네트워크에 접근하여 Oracle WebLogic Server를 침해할 수 있다. 이 취약점에 대한 공격이 성공하면 Oracle WebLogic Server의 장악으로 이어질 수 있다. CVSS 3.1 기본 점수는 9.8이며(기밀성, 무결성, 가용성에 모두 높은 영향), CVSS 벡터는 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)이다.

Claude 로 기계 번역한 글입니다. 정확한 내용은 영어 원문을 확인하세요.

영어 원문

Vulnerability in the Oracle WebLogic Server product of Oracle Fusion Middleware (component: Console). Supported versions that are affected are 10.3.6.0.0, 12.1.3.0.0, 12.2.1.3.0, 12.2.1.4.0 and 14.1.1.0.0. Easily exploitable vulnerability allows unauthenticated attacker with network access via HTTP to compromise Oracle WebLogic Server. Successful attacks of this vulnerability can result in takeover of Oracle WebLogic Server. CVSS 3.1 Base Score 9.8 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

위험도 세부 항목 CVSS 3.1

공격 경로
네트워크(원격) AV:N
공격 난이도
낮음(쉬움) AC:L
필요한 권한
없음(로그인 불필요) PR:N
사용자 행동 필요
필요 없음 UI:N
영향 범위
그 제품 안 S:U
정보 유출(기밀성)
높음 C:H
데이터 변조(무결성)
높음 I:H
서비스 중단(가용성)
높음 A:H

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

조치 방법 0행

수집된 조치 정보가 없습니다. 조치가 필요 없다는 뜻은 아닙니다.

CISA 조치 권고 KEV

제조사 안내에 따라 업데이트를 적용하세요.

영어 원문

Apply updates per vendor instructions.

미국 연방기관 조치 기한: 2022-05-03

살펴볼 장비 초안

공격 대상: 서버·웹 서비스. '이 장비에서 살펴볼 취약점' 이라는 분류이며, 장비가 탐지한다는 확인이 아닙니다.

장비 보기정도분류 이유
네트워크 통신 (IPS·NDR)주KEV 이름상 실행 취약점 (사용자 행동 없는 네트워크 공격)
서버 행위 (EDR·감사 로그)주KEV 이름상 실행 취약점
웹 요청 (WAF·웹 로그)보조웹 요청으로 들어오는 공격 (웹 공격 유형은 아니어서 웹 로그 확인용)

단계별 판정 예시 환경

시나리오 미작성 — 이 CVE 는 단계별 판정을 하지 않았습니다. 안전하다는 뜻이 아닙니다.

출처별 내용 7건

CISA KEV Oracle WebLogic Server Remote Code Execution Vulnerability 2021-11-03

원문 보기

Apply updates per vendor instructions.

ASEC z0Miner 공격자, 국내 웹 서버를 악용하여 WebLogic 서버 공격 2024-02-28

원문 보기

AhnLab SEcurity intelligence Center(ASEC)에서는 국내의 취약한 서버를 대상으로 공격하는 사례를 확인하고 있다. 해당 포스팅에서는 최근 ‘z0Miner’ 공격자가 국내 WebLogic 서버를 대상으로 공격한 사례를 소개한다. z0Miner 공격자는 중국의 Tencent Security에서 처음으로 소개되었다. z0Miner挖矿木马利用Weblogic最新漏洞入侵,腾讯主机安全(云镜)极速捕捉 腾讯主机安全(云镜)于2020.11.02日捕获到挖矿木马团伙z0Miner利用Weblogic未授权命令执行漏洞(CVE-2020-14882/14883)的攻击行动。该团伙通过批量扫描云服务器发现具有Weblogic漏洞的机器,发送精心构造的数据包进行攻击。 이들은 과거부터 국내외 취약한 서버(Atlassian Confluence, Apache ActiveMQ, Log4J 등)를 대상으로 마이너를 유포한 이력이 있어 ASEC을 통해 자주 언급되었다. 취약한 Atlassian Confluence 서버를 대상으로 하는 공격 사례 Atlassian Confluence 서버 사례 (2022.07.15) 지속적인 공격 대상이 되고 있는 Apache ActiveMQ 취약점 (CVE-2023-46604) Apache ActiveMQ 서버 사례 (2023.12.13) 또한 이 공격자는 CVE-2020-14882/CVE-2020-14883 취약점을 사용해 WebLogic 서버를 공격한 것으로 많이 알려져 있다. 2024년 1월 26일, ‘z0Miner 공격자’는 국내 WebLogic 서버 시스템을 대상으로 악성 코드를 배포한 사례가 확인되었다. 이들은 대상 시스템의 OS가 Windows라면 powershell.exe 과 certutil.exe을 사용했으며, Linux라면 curl 명령어를 통해 악성 파일을 다운로드하였다. 이번에 확인된 사례는 해외 케이스와 달리 아래의 큰 차이점이 존재한다. 1) 국내 취약한 웹 서버를 장악해 공격자의 다운로드 서버로 악용 2) FRP, NetCat, AnyDesk 등 네트워크 도구 사용한 정황 확인 1. 악용된 국내 웹 서버 이들은 아래와 같이 정상적으로 사용되는 웹 서버를 장악한 뒤 악성 코드(Miner 및 네트워크 도구, 공격에 필요한 스크립트 등)를 배포하는 다운로드 서버로 악용하였다. 현재까지 확인된 국내 서버는 아래와 같다. 공격자에게 악용된 서버는 모두 서버 정보(Apache-Coyote/1.1)가 노출되어 있어 특정 버전을 유추할 수 있었으며, 특정 서버의 경우 관리되지 않아 Tomcat의 구체적인 버전(Apache Tomcat/5.0.28)도 확인할 수 있었다. 2. Windows 대상 공격 2.1. WebShell 공격자는 CVE-2020-14882와 같은 WebLogic 취약점을 이용해 JSP 웹쉘(WebShell)을 업로드한 것으로 확인되었다. 시스템에 웹쉘이 설치되면 지속성을 유지할 수 있고 시스템을 제어할 수 있다. 또한 공격자는 세 가지의 웹쉘(JSP File Browser, Shack2, Behinder)을 사용하였다. 이는 백신에 탐지되지 않는 웹쉘을 업로드하기 위해 여러 종류를 사용하는 것으로 추정된다. 1) JSP File Browser (Zubin WebShell) 공격자는 커스터마이징된 JSP File Browser v1.2 웹쉘을 사용하였다. 해당 웹쉘은 Title을 “Zubin – Welcome”으로 설정하였고 Password는 “zubin@666″으로 하였으며, 제작자 부분을 커스텀한 사람의 이름으로 수정하였다. 이러한 부가적인 부분외에 기존 웹쉘과 큰 차이가 없다. private String _password = “zubin@666”; 2) Shack2 해당 웹쉘은 Shack2가 제작한 것으로 유사한 코드는 Github 에서 확인할 수 있으며, 공격자가 사용한 버전은 “V1.0-20141106″이다. 해외 보안 업체인 ‘IronNet’에서도 z0Miner 유포 시 해당 웹쉘을 확인한 사례가 존재한다. Continued Exploitation of CVE-2021-26084 Continued Exploitation of CVE-2021-26084. 조금 특이한 점은 IronNet 사에서 언급한 내용과 같이, 현재도 웹쉘의 9개의 기능 중 3개의 기능만 구현되어 있다는 점이다. 사용 가능한 기능은 OS 정보 등 컴퓨터 정보 출력, 파일 매니저, 명령어 수행 세 가지다. 3) Behinder 해당 웹쉘은 GodZilla, China Chopper와 같이 과거부터 사용되어 많이 알려진 웹쉘이다. 공격자는 Github소스 와 동일한 웹쉘을 사용하였다. 2.2. FRP(Fast Reverse Proxy) 공격자는 RDP(Remote Desktop Protocol) 통신하기 위해 Proxy 도구를 사용하였다. 사용한 도구는 FRP(Fast Reverse Proxy)로 과거 ASEC 블로그를 통해 여러 번 소개한 바 있다. 국내 기업 타겟의 FRP(Fast Reverse Proxy) 사용하는 공격 그룹 달빗(Dalbit,m00nlight): 중국 해커 그룹의 APT 공격 캠페인 z0Miner 공격자는 기본적인 형태의 Frpc와 직접 커스터마이징한 형태를 모두 사용하였다. 기본적인 Frpc는 *.INI 형태의 설정 파일을 불러 읽어와 접속을 시도하는 데 반해, 커스텀된 Frpc는 프로그램 내부에 설정 데이터를 가지고 있어 별도의 파일 없이 실행할 수 있다. 이처럼 Frpc를 커스텀하여 유포하는 방식은 다른 위협 그룹 사례에서도 확인된 바 있다. 국내와 태국 대상 APT 공격에 사용된 BlueShell 악성코드 아래는 현재까지 확보한 공격자의 FRP 서버와 포트다. 15.235.22[.]212:5690 15.235.22[.]213:59240 z0Miner 공격자의 Frpc Server & Port 2.3. Netcat Netcat은 네트워크 연결 시 데이터를 읽고 쓸 수 있는 유틸리티 도구로 과거 침해 사고에도 많이 확인되었다. 특히 방화벽을 우회하고 공격 대상 시스템에 대한 제어를 획득할 수 있는 원격 쉘(Remote Shell) 기능을 제공하기 때문에 공격자가 주로 사용한다. 해당 공격자는 userinit.exe 이라는 이름으로 Netcat을 다운로드 받고 아래와 같이 실행하였다. 해당 명령어의 의미는 주어진 IP와 포트에 연결을 시도하며, 연결 시 명령 프롬프트(CMD)를 실행하라는 의미로 리버스 쉘(Reverse Shell) 명령어이다. 이후에 공격자는 명령 프롬프트를 통해 시스템을 제어할 수 있다. 107.180.100[.]247:88 z0Miner 공격자의 Netcat Server & Port 2.4. AnyDesk Netcat을 설치한 뒤 추가로 AnyDesk를 설치한 사례는 Apache ActiveMQ 취약점 (CVE-2023-46604) 사례에서도 확인되었다. 지속적인 공격 대상이 되고 있는 Apache ActiveMQ 취약점 (CVE-2023-46604) 공격자는 다운로드 서버(침해당한 웹 서버)를 통해 파워쉘 스크립트를 불러온 뒤 공식 홈페이지를 접속하여 AnyDesk를 다운로드하였다. 2.5. Miner(XMRig) 현재 공격자가 유포 중인 Windows XMRig 버전은 6.18.0 버전이며, Linux의 경우 XMRig는 6.18.1로 확인되었다. 공격자는 지속성을 위해 WMI의 이벤트 필터(Event Filter)와 컨슈머(Consumer)를 등록하거나 스케줄러(schtasks)를 등록해 pastebin.com의 특정 주소로부터 파워쉘 스크립트를 읽어와 실행하도록 하였다. 그러나 분석 당시에 파워쉘 스크립트는 존재하지 않았다. 이후 ‘javae.exe’ 이라는 이름으로 채굴을 수행한다. 3 . Monero Wallet & Mining Pool Address 공격자가 사용 중인 config.json은 다음과 같다. Mining Pool : pool.supportxmr[.]com:443 pool.supportxmr[.]com:80 Monero Wallet : 44VkCrG7DkmYCcrNQcBb1QfZ66si2xWqy7HuzgyWLXKy8x3pkzKWxs8TptTNjCS1b2Abm89MuXD1tg81KeRgfP2u3z6f2kP 47y69G6VzipF8ydhXxzRF69e8ys3XrDFjD5SqSM1T8yJGdfHqtRmMA9eQpq8vnWBibhmb35xLAyVpen53hfidLwHDP3NbAm z0Miner 공격자의 Monero Wallet & Mining Pool Address 5 . 결론 공격자들은 패치되지 않은 취약한 WebLogic 서버를 대상으로 지속적으로 공격을 수행하고 있다. 또한 감염 시스템을 장악한 이후 정보를 탈취하거나 랜섬웨어를 설치할 수 있어 관리되지 않는 포트나 서버에 대한 점검이 필요하다. 또 시스템 관리자는 사용 중인 WebLogic 서비스가 최신 버전인지 점검하고 낮은 버전일 시, 패치해 기존에 알려진 취약점으로부터 공격을 방지해야 한다. 사용자는 V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – HackTool/Win.Netcat (2022.10.18.03) – Win-Trojan/Miner3.Exp (2022.06.24.02) – Downloader/Shell.Miner.SC197168 (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Trojan/PowerShell.Miner (2024.02.27.01) – Trojan/Script.z0Miner.SC197169 (2024.02.27.01) – Trojan/Win.FRP (2024.02.27.01) – Trojan/Shell.Miner.SC197170 (2024.02.27.01) – Trojan/Shell.Miner.SC197171 (2024.02.27.01) – Trojan/Shell.Agent.SC197172 (2024.02.27.01) – Downloader/Shell.Miner.SC197173 (2024.02.27.01) – WebShell/JSP.Generic.S1866 (2024.02.27.00) – Linux/CoinMiner.Gen2 (2022.11.24.02) – WebShell/JSP.FileBrowser.SC197174 (2024.02.27.01) – WebShell/JSP.Generic.S1957 (2024.02.27.00) – Trojan/Shell.Agent.SC197175 (2024.02.27.03) – Downloader/PowerShell.Miner (2024.02.27.03) – CoinMiner/Shell.Generic.S2078 (2024.02.27.00) – Downloader/PowerShell.Miner.SC197176 (2024.02.27.01) MD5 085c68576c60ca0361b9778268b0b3b9 2a0d26b8b02bb2d17994d2a9a38d61db 4cd78b6cc1e3d3dde3e47852056f78ad 523613a7b9dfa398cbd5ebd2dd0f4f38 547c02a9b01194a0fcbfef79aaa52e38 URL http[:]//107[.]180[.]100[.]247[:]88/ http[:]//15[.]235[.]22[.]212[:]5690/ http[:]//15[.]235[.]22[.]213[:]59240/ AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.

ASEC 지속적인 공격 대상이 되고 있는 Apache ActiveMQ 취약점 (CVE-2023-46604) 2023-12-13

원문 보기

AhnLab Security Emergency response Center(ASEC)은 2023년 11월에 “Andariel 그룹의 Apache ActiveMQ 취약점 (CVE-2023-46604) 공격 정황” [1] 블로그 포스팅을 통해 Andariel 위협 그룹이 CVE-2023-46604 취약점을 공격해 악성코드를 설치한 사례를 공개한 바 있다. 해당 포스팅에서는 Andariel 그룹의 공격 사례 외에도 HelloKitty 랜섬웨어, 코발트 스트라이크, 메타스플로잇 미터프리터 공격 사례를 함께 언급하였다. Apache ActiveMQ 취약점(CVE-2023-46604)은 이후에도 지속적으로 다양한 공격자들에 의해 사용되고 있다. 최근에는 Ladon, NetCat, AnyDesk 그리고 z0Miner를 설치하는 공격이 추가적으로 확인되었으며 여기에서는 각각에 대해 정리한다. 1. Apache ActiveMQ 취약점 (CVE-2023-46604) 공격 CVE-2023-46604는 오픈 소스 메시징 및 통합 패턴 서버인 Apache ActiveMQ 서버의 원격 코드 실행 취약점이다. 만약 패치되지 않은 Apache ActiveMQ 서버가 외부에 노출되어 있을 경우 공격자는 원격에서 악의적인 명령을 실행하여 해당 시스템을 장악할 수 있다. AhnLab TIP : Apache ActiveMQ 보안 업데이트 권고 (CVE-2023-46604) [2] 취약점 공격은 classpath에 있는 클래스를 인스턴스화하도록 OpenWire 프로토콜에서 직렬화된 클래스 유형을 조작하는 방식으로 이루어진다. 만약 공격자가 조작된 패킷을 전송할 경우 취약한 서버에서는 패킷에 포함된 경로 즉 URL을 참고하여 클래스 XML 설정 파일을 로드한다. 예를 들어 취약한 Apache ActiveMQ의 자바 프로세스는 전달받은 조작된 패킷을 참고하여 “hxxp://27.191.193[.]193:555/poc2.xml” 경로에 위치하는 XML 설정 파일을 로드하게 된다. 이후에는 로드한 XML 설정 파일을 참고하여 지정한 명령을 실행하는데, 다음 사례는 CMD 및 파워쉘을 이용해 Ladon을 다운로드하고 리버스 쉘 명령을 실행하는 명령이 설정되어 있다. 2. Ladon Ladon은 다음과 같은 깃허브 페이지를 통해서도 알 수 있듯이 중국어를 기반으로 한 공격자들이 주로 사용하는 도구들 중 하나이다. [3] Ladon은 공격 과정에서 필요한 다양한 기능들을 지원하는데 대표적으로 스캐닝, 권한 상승, 계정 정보 탈취, 리버스 쉘과 같은 다양한 기능들이 있다. 제작자는 Ladon을 지속적으로 업데이트하고 있으며 상대적으로 최신 취약점이라고 할 수 있는 CVE-2023-46604 취약점에 대한 스캐닝도 지원한다. 공격자가 Ladon을 이용해 취약점을 스캐닝 했는지는 알 수 없지만 취약한 버전의 Apache ActiveMQ 서비스가 동작하는 것을 확인한 후에는 다음과 같은 파워쉘 명령으로 Ladon을 다운로드하고 명령을 실행하였다. ReverseTCP 명령은 리버스 쉘을 실행시키는 것을 의미하며 nc 즉 Netcat을 이용해 리버스 쉘을 실행한다. 3. AnyDesk & Netcat 위 공격 사례에서는 Lodon이 지원하는 Netcat 명령이 사용되었지만 Netcat은 다른 공격 사례에서도 확인된다. Netcat은 TCP / UDP 프로토콜로 연결된 네트워크 상에서 특정 대상과 데이터를 송수신하게 해주는 유틸리티로서 리눅스뿐만 아니라 윈도우 환경도 지원하는 것이 특징이다. 네트워크 테스트 목적에서 다양한 기능들을 제공하기 때문에 네트워크 관리자들도 자주 사용하는 도구라고 할 수 있지만 공격자들에 의해서도 악용할 수 있는 도구이다. 공격자는 Netcat을 실행하면서 전달하는 명령을 이용해 리버스 쉘이나 바인드 쉘로써 사용할 수 있으며 실제 취약한 웹 서버나 MS-SQL 서버를 대상으로 하는 다양한 공격에서 사용된 사례들이 존재한다. [4] [5] 이번에 확인된 공격에서는 외부에서 Netcat을 다운로드한 이후 리버스 쉘 명령으로 감염 시스템에 대한 쉘을 획득하였다. 비록 리버스 쉘을 통해 감염 시스템을 제어할 수 있지만 커맨드 라인 환경으로 명령을 내리는 것은 한계가 있다. 일반적으로 공격자들은 감염 시스템을 장악한 이후 원격에서 화면을 제어하기 위한 목적으로 VNC나 RDP 그리고 원격 제어 도구들을 추가적으로 설치하는 경향이 있다. 특히 AnyDesk나 NetSupport, 크롬 원격 데스크톱과 같은 원격 제어 도구들을 최근 보안 제품을 우회하기 위한 목적으로 자주 사용되고 있다. [6] 이번에 확인된 공격에서 공격자는 Netcat을 설치한 이후 추가적으로 AnyDesk를 설치하였다. 위 과정에서 설치한 Netcat을 이용해 AnyDesk를 설치하였으며 정상 홈페이지의 다운로드 주소에서 설치 파일을 다운로드하였다. 공격자는 AnyDesk를 Silent 모드로 설치한 이후 “–set-password” 인자로 비밀번호를 설정하고 실행하였다. 이는 과거 MS-SQL 서버 대상 공격 사례에서 확인된 사례와 거의 동일한 방식이다. 공격자는 이후 감염 시스템에 접속하여 실행 시 “–set-password” 인자로 전달했던 비밀번호를 입력해 원격에서 감염 시스템을 제어할 수 있을 것이다. 4. z0Miner 최근에는 이외에도 XMRig 코인 마이너를 설치하는 공격 캠페인도 함께 확인된다. XML 설정 파일의 이름은 “paste.xml”이며 다음과 같이 CMD를 이용해 파워쉘 명령을 실행하는 데이터가 포함되어 있다. 참고로 “shella”는 파워쉘 파일로 추정되며 공격자가 이전 공격 과정에서 파워쉘 프로그램을 해당 이름으로 복사했을 것으로 보인다. 복호화 된 파워쉘 명령은 또 다른 파워쉘 스크립트를 다운로드해 실행한다. 다운로드되는 파워쉘 스크립트는 XMRig 코인 마이너와 설정 파일을 다운로드하고 실행하는 단순한 형태이다. 공격에 사용된 파워쉘 스크립트를 분석한 결과 변수명, 함수명 그리고 전체적인 구조가 z0Miner와 유사한 것을 확인하였다. Z0Miner는 2020년 Tencent Security Team에서 처음으로 보고하였으며 Oracle Weblogic 원격 코드 실행 취약점(CVE-2020-14882 / CVE-2020-14883) 공격으로 유포되었다. 2021년에는 Atlassian Confluence의 원격 코드 실행 취약점(CVE-2021-26084) 취약점으로 유포된 사례가 보고되었으며 [7] [8] , 과거 ASEC 블로그에서도 해당 공격 사례를 다룬 바 있다. [9] 5. 결론 공격자들은 패치되지 않은 취약한 Apache ActiveMQ 서비스를 대상으로 지속적으로 공격을 수행하고 있다. 확인된 공격들 중에는 코인 마이너를 설치하여 암호 화폐를 채굴하는 사례도 존재하지만 감염 시스템을 제어하기 위한 악성코드들이 다수 확인된다. 공격자는 감염 시스템을 장악한 이후 정보를 탈취하거나 랜섬웨어를 설치할 수 있다. 시스템 관리자는 사용 중인 Apache ActiveMQ 서비스가 다음과 같이 취약한 버전인지 점검하고 최신 버전으로 패치해 기존에 알려진 취약점으로부터 공격을 방지해야 한다. Apache ActiveMQ 5.18.0 이상 5.18.3 미만 버전 Apache ActiveMQ 5.17.0 이상 5.17.6 미만 버전 Apache ActiveMQ 5.16.0 이상 5.16.7 미만 버전 Apache ActiveMQ 5.15.16 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.18.0 이상 5.18.3 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.17.0 이상 5.17.6 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.16.0 이상 5.16.7 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.8.0 이상 5.15.16 미만 버전 또한 외부에 오픈되어 접근 가능한 서버에 대해 방화벽과 같은 보안 제품을 이용해 공격자로부터의 접근을 통제해야 한다. 마지막으로 V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – Exploit/PS.Ladon (2023.12.09.00) – Downloader/XML.Generic (2023.12.13.00) – HackTool/Win.Netcat.R5561954 (2023.12.12.03) – Downloader/XML.Generic (2023.12.13.00) – CoinMiner/PS.Agent (2023.12.13.03) – Win-Trojan/Miner3.Exp (2020.01.23.00) – CoinMiner/Text.Config (2023.12.13.03) 행위 진단 – Execution/MDP.Powershell.M2514 – Execution/MDP.AnyDesk.M4547 MD5 1a7e8e719e29c2cca5083053bb240dbc 2a0d26b8b02bb2d17994d2a9a38d61db b6e0db27c2b3e62db616b0918a5d8ed8 baeee25ebf0efeec414dce64b9e7aca7 c1aa596dc33f2ba4aadbd689a1652701 URL http[:]//121[.]190[.]90[.]250[:]8081/js/3/config[.]json http[:]//121[.]190[.]90[.]250[:]8081/js/3/paste[.]ps1 http[:]//121[.]190[.]90[.]250[:]8081/js/3/paste[.]xml http[:]//121[.]190[.]90[.]250[:]8081/js/s[.]rar http[:]//27[.]191[.]193[.]193[:]50000/ AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.

ASEC 영어·일본어 등 다른 언어 글 4건
ASEC z0Miner 攻撃者、韓国国内 Web サーバーを悪用して WebLogic サーバー攻撃 2024-03-06

원문 보기

AhnLab SEcurity intelligence Center(ASEC)では、韓国国内の脆弱なサーバーを対象に攻撃する事例を確認している。この記事では、最近「z0Miner」攻撃者が韓国国内の WebLogic サーバーを対象に攻撃した事例を紹介する。 z0Miner 攻撃者は中国の Tencent Security で初めて紹介された。 z0Miner挖矿木马利用Weblogic最新漏洞入侵,腾讯主机安全(云镜)极速捕捉 腾讯主机安全(云镜)于2020.11.02日捕获到挖矿木马团伙z0Miner利用Weblogic未授权命令执行漏洞(CVE-2020-14882/14883)的攻击行动。该团伙通过批量扫描云服务器发现具有Weblogic漏洞的机器,发送精心构造的数据包进行攻击。 彼らは、以前から韓国国内外の脆弱なサーバー(Atlassian Confluence、Apache ActiveMQ、Log4Jなど)を対象としてマイナーを配布した履歴があり、ASEC を通して頻繁に言及された。 脆弱な Atlassian Confluence サーバーをターゲットにした攻撃事例 継続的に攻撃対象となっている Apache ActiveMQ 脆弱性(CVE-2023-46604) また、この攻撃者は CVE-2020-14882/CVE-2020-14883 脆弱性を使用して WebLogic サーバーを攻撃したことでよく知られている。 2024年の1月26日、「z0Miner 攻撃者」が韓国国内の WebLogic サーバーシステムを対象にマルウェアを配布した事例が確認された。彼らは、対象システムの OS が Windows の時は powershell.exe と certutil.exe を使用し、Linux の時には curl コマンドを通して不正なファイルをダウンロードした。 今回確認された事例には、下記のような海外のケースとは異なる大きな違いが存在する。 1) 韓国国内の脆弱な Web サーバーを掌握し、攻撃者のダウンロードサーバーとして悪用 2) FRP、NetCat、AnyDesk など、ネットワークツールを使用した状況確認 1. 悪用された韓国国内の Web サーバー 彼らは、以下のように正常に使用される Web サーバーを掌握した後、マルウェア(Miner およびネットワークツール、攻撃に必要なスクリプトなど)を配布するダウンロードサーバーとして悪用した。現在まで確認されている韓国国内のサーバーは以下の通りである。 図1. 悪用された韓国国内の Web サーバー 攻撃者に悪用されたサーバーはすべて、サーバー情報(Apache-Coyote/1.1)が露出しており、特定バージョンを推測することができた。また、特定サーバーの場合、管理されていないため、Tomcat の具体的なバージョン(Apache Tomcat/5.0.28)も確認できた。 図2. Web サーバーの応答ヘッダー(Apache-Coyote/1.1) 2. Windows 対象の攻撃 2.1. WebShell 攻撃者は CVE-2020-14882 のような WebLogic 脆弱性を利用して JSP Web シェル(WebShell)をアップロードしたと確認された。システムに Web シェルがインストールされると、持続性を維持することができ、システムを操作できるようになる。また、攻撃者は3つの Web シェル(JSP File Browser、Shack2、Behinder)を使用した。これは、アンチウィルスに検知されない Web シェルをアップロードするために数種類を使用したものと推定される。 図3. Web シェルのアップロードログ(引用元:当社 ASD サービス) 1) JSP FILE BROWSER (ZUBIN WEBSHELL) 図4. 攻撃者が使用した Web シェル(1) 攻撃者はカスタマイズされた JSP File Browser v1.2 Web シェルを使用した。この Web シェルは、Title を「Zubin – Welcome」と設定しており、Password は「zubin@666」、製作者の部分はカスタムした人の名前に変更した。このような付加的な部分以外には従来の Web シェルと大差ない。 図5. カスタマイズされた Web シェル(Zubin) private String _password = “zubin@666”; 2) SHACK2 この Web シェルは Shack2 が製作したもので、類似したコードは Github で確認することができる。攻撃者が使用したバージョンは、「V1.0-20141106」である。 海外のセキュリティ会社である「IronNet」でも、z0Miner の配布時にこの Web シェルを確認した事例が存在する。 Continued Exploitation of CVE-2021-26084 Continued Exploitation of CVE-2021-26084. 図6. 攻撃者が使用した Web シェル(2) 少し変わっている点は IronNet 社で言及した内容のように、現在も Web シェルの機能9つの中で、3つの機能だけが具現されているという点である。使用できる機能は OS 情報などのコンピューター情報の出力、ファイルマネージャー、コマンド実行の3つである。 図7. Shack2 Web シェルの3つの機能 3) BEHINDER 図8. 攻撃者が使用した Web シェル(3) この Web シェルは GodZilla、China Chopper のように以前から使用され、よく知られている Web シェルである。攻撃者は Github ソース と同じ Web シェルを使用した。 2.2. FRP(Fast Reverse Proxy) 攻撃者は RDP(Remote Desktop Protocol)通信のため、Proxy ツールを使用した。使用したツールは FRP(Fast Reverse Proxy)で、過去の ASEC ブログで何度か紹介したことがある。 韓国国内の企業をターゲットにした FRP(Fast Reverse Proxy) を使用する攻撃グループ Dalbit 、 m00nlight: 中国ハッカーグループの APT 攻撃キャンペーン (韓国語にて提供) z0Miner 攻撃者は、基本的な形態の Frpc と、直接カスタマイズした形態の両方を使用した。基本的な Frpc は、*.INI 形態の設定ファイルを読み込み、接続を試みるが、カスタムされた Frpc はプログラム内部に設定データを持っているため、別途のファイルなしに実行することができる。このように Frpc をカスタムして配布する方式は、他の脅威グループの事例でも確認されたことがある。 韓国国内とタイを対象とする APT 攻撃に使用された BlueShell マルウェア 図9. Frpc(svcho.exe) Download ログ 下記は現在までに確保した攻撃者の FRP サーバーとポートである。 図10. Frpc 設定データ 15.235.22[.]212:5690 15.235.22[.]213:59240 z0Miner 攻撃者の Frpc Server & Port 2.3. Netcat Netcat は、ネットワーク接続時にデータを読み書きできるユーティリティツールで、過去の侵害事故でも多く確認された。特に、ファイアウォールを回避して攻撃対象システムに対する制御権を獲得できる遠隔シェル(Remote Shell)機能を提供するため、攻撃者がよく使用する。 この攻撃者は userinit.exe という名前の Netcat をダウンロードして下記のように実行した。 図11. Netcat のリバースシェル(Reverse Shell)コマンドログ このコマンドの意味は、与えられた IP とポートに接続を試み、接続時にコマンドプロンプト(CMD)を実行しろという意味で、リバースシェル(Reverse Shell)コマンドである。この後、攻撃者はコマンドプロンプトを通してシステムを操作できるようになる。 107.180.100[.]247:88 z0Miner 攻撃者の Netcat Server & Port 2.4. AnyDesk Netcat をインストールした後、追加で AnyDesk をインストールした事例は Apache ActiveMQ 脆弱性(CVE-2023-46604)の事例でも確認された。 継続的に攻撃対象となっている Apache ActiveMQ 脆弱性 (CVE-2023-46604) 攻撃者は、ダウンロードサーバー(侵害された Web サーバー)を通して PowerShell スクリプトを読み込んだ後、公式ホームページに接続して AnyDesk をダウンロードした。 図12. Powershell(wshell.exe) をによる AnyDesk インストールログ 図13. 過去の事例で確認された AnyDesk インストール PowerShell コード 2.5. Miner(XMRig) 現在、攻撃者が配布している Windows XMRig のバージョンは6.18.0バージョンであり、Linux の場合、XMRig 6.18.1 バージョンと確認された。 図14. XMRig バージョン(6.18.0、Windows 対象) 攻撃者は、持続性のために WMI のイベントフィルタ(Event Filter)とコンシューマー(Consumer)を登録したり、スケジューラ(schtasks)を登録して pastebin.com の特定のアドレスから PowerShell スクリプトを読み込んできて実行するようにした。しかし、解析当時に PowerShell スクリプトは存在しなかった。 図15. 持続性のための WMI イベントフィルタ(Event Filter)とコンシューマー(Consumer) この後、「javae.exe」という名前で採掘を実行する。 図16. Miner をダウンロードする PowerShell コード 3 . Monero Wallet & Mining Pool Address 攻撃者が使用している config.json は以下の通りである。 図17. 攻撃者の config.json(ウォレットアドレスとマイニングプールアドレス) Mining Pool : pool.supportxmr[.]com:443 pool.supportxmr[.]com:80 Monero Wallet : 44VkCrG7DkmYCcrNQcBb1QfZ66si2xWqy7HuzgyWLXKy8x3pkzKWxs8TptTNjCS1b2Abm89MuXD1tg81KeRgfP2u3z6f2kP 47y69G6VzipF8ydhXxzRF69e8ys3XrDFjD5SqSM1T8yJGdfHqtRmMA9eQpq8vnWBibhmb35xLAyVpen53hfidLwHDP3NbAm z0Miner 攻撃者の Monero Wallet & Mining Pool Address 5 . 結論 攻撃者は、パッチされていない脆弱な WebLogic サーバーを対象に攻撃を続けている。また、感染システムを掌握した後、情報を窃取したり、ランサムウェアのインストールが可能なため、管理されていないポートやサーバーのチェックが必要である。また、システム管理者は使用している WebLogic サービスが最新バージョンかをチェックし、低バージョンの場合はパッチを適用して既知の脆弱性による攻撃を防止しなければならない。 ユーザーは、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前に遮断できるように注意を払う必要がある。 ファイル検知 – HackTool/Win.Netcat (2022.10.18.03) – Win-Trojan/Miner3.Exp (2022.06.24.02) – Downloader/Shell.Miner.SC197168 (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Trojan/PowerShell.Miner (2024.02.27.01) – Trojan/Script.z0Miner.SC197169 (2024.02.27.01) – Trojan/Win.FRP (2024.02.27.01) – Trojan/Shell.Miner.SC197170 (2024.02.27.01) – Trojan/Shell.Miner.SC197171 (2024.02.27.01) – Trojan/Shell.Agent.SC197172 (2024.02.27.01) – Downloader/Shell.Miner.SC197173 (2024.02.27.01) – WebShell/JSP.Generic.S1866 (2024.02.27.00) – Linux/CoinMiner.Gen2 (2022.11.24.02) – WebShell/JSP.FileBrowser.SC197174 (2024.02.27.01) – WebShell/JSP.Generic.S1957 (2024.02.27.00) – Trojan/Shell.Agent.SC197175 (2024.02.27.03) – Downloader/PowerShell.Miner (2024.02.27.03) – CoinMiner/Shell.Generic.S2078 (2024.02.27.00) – Downloader/PowerShell.Miner.SC197176 (2024.02.27.01) IoC MD5 – 523613a7b9dfa398cbd5ebd2dd0f4f38 : userinit.exe(Netcat) – 2a0d26b8b02bb2d17994d2a9a38d61db : x.rar(XMRig, exe) – 4cd78b6cc1e3d3dde3e47852056f78ad : al.txt – 085c68576c60ca0361b9778268b0b3b9 : (config.json) – b6aaced82b7c663a5922ce298831885a : (config.json) – 7b2793902d106ba11d3369dff5799aa5 : cpu.ps1 – ad33f965d406c8f328bd71aff654ec4c : frpc.ini – 7e5cc9d086c93fa1af1d3453b3c6946e : svcho.exe(frpc) – e60d8a3f2190d78e94c7b952b72916ac : frp5.exe – 8434de0c058abb27c928a10b3ab79ff8 : l.txt – 90b74cdc4b7763c6b25fdcd27f26377f : l.txt – 83e163afd5993320882452453c214932 : lcpu.txt – a0766ad196626f28919c904d2ced6c85 : ll.txt – 903fce58cb4bfc39786c77fe0b5d9486 : pan.rar(Shack2 WebShell) – c2fb307aee872df475a7345d641d72da : s.rar(XMRig, ELF) – 88d49dad824344b8d6103c96b4f81d19 : session.rar(Zubin WebShell) – efc2a705c858ed08a76d20a8f5a11b1b : shell.rar(Behinder WebShell) – 98e167e7c2999cbea30cc9342e944a4c : solr.sh – 575575f5b6f9c4f7149ed6d86fb16c0f : st.ps1 – 547c02a9b01194a0fcbfef79aaa52e38 : st2.txt – fd0fe2a3d154c412be6932e75a9a5ca1 : stt.txt C&C アドレス (다운로드 서버로 악용된 국내 웹 서버는 TIP 에서만 공개합니다.) – 107.180.100[.]247:88 – 15.235.22[.]212:5690 – 15.235.22[.]213:59240 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。

ASEC z0Miner Exploits Korean Web Servers to Attack WebLogic Server 2024-02-28

원문 보기

AhnLab SEcurity intelligence Center (ASEC) has found numerous cases of threat actors attacking vulnerable Korean servers. This post introduces one of the recent case in which the threat actor ‘z0Miner’ attacked Korean WebLogic servers. z0Miner was first introduced by Tencent Security, a Chinese Internet service provider. https://s.tencent.com/research/report/1170.html (This link is only available in Chinese.) These threat actors have a history of distributing miners against vulnerable servers (Atlassian Confluence, Apache ActiveMQ, Log4J, etc.), and they were frequently mentioned in the ASEC blog. https://asec.ahnlab.com/en/36820/ https://asec.ahnlab.com/en/59904/ Additionally, this threat actor is well-known for using CVE-2020-14882 and CVE-2020-14883 vulnerabilities to attack WebLogic servers. On January 26, 2024, AhnLab found cases in which ‘z0Miner threat actors’ distributed malware to Korean WebLogic server system. The threat actor’s method to download malicious files differed by the OS system. They used powershell.exe and certutil.exe against Windows, and used the curl command against Linux. The cases found this time are vastly different from cases found overseas. 1) The threat actors dominated vulnerable Korean web servers, then used them as download servers. 2) Found evidences of using network tools such as FRP, NetCat, and AnyDesk. 1. Exploitation of Korean Web Servers As shown in the figure below, the threat actors dominated the normal web servers and used them as download servers to distribute malware such as miner, network tools, and scripts needed for attacks. Below are the Korean servers exploited by the attacker. Figure 1. Korean web servers exploited by the attacker As these exploited servers have their server information exposed (Apache-Coyote/1.1), it was possible to specify the exact versions. As for these poorly managed servers, Tomcat’s detailed version (Apache Tomcat/5.0.28) was also found. Figure 2. The web servers’ response header (Apache-Coyote/1.1) 2. Attacks Against Windows 2.1. WebShell The threat actor used WebLogic vulnerabilities such as CVE-2020-14882 to upload JSP WebShell. When WebShell is installed in a system, it can maintain persistence and control the system. Additionally, the threat actor used three WebShells: JSP File Browser, Shack2, and Behinder. They are likely using multiple types to upload a WebShell which is not detected by anti-malware products. Figure 3. Upload logs of WebShell (Source: Ahnlab Smart Defense (ASD) service) 1) JSP FILE BROWSER (ZUBIN WEBSHELL) Figure 4. WebShell used by the threat actor (1) The threat actor used the customized JSP File Browser v1.2 WebShell. The WebShell’s title is “Zubin – Welcome”, password is set to “zubin@666″, and the author’s name is set to the name of the person who customized it. Aside from such partial differences, the WebShell is largely indifferent from previous WebShells. Figure 5. Customized WebShell (Zubin) private String _password = “zubin@666”; 2) SHACK2 The WebShell is developed by Shack2, and the similar code can be found in Github . The version that the threat actors used is “V1.0-20141106″. ‘IronNet’, a foreign security provider, previously found a case where said WebShell was found in a distribution of z0Miner. https://www.ironnet.com/blog/continued-exploitation-of-cve-2021-26084 Figure 6. WebShell used by the threat actor (2) As IronNet stated, interesting information is that only 3 out of 9 features are implemented in the WebShell. Available features are printing computer information such as OS info, using file manager, and running command. Figure 7. 3 features of Shack2 WebShell 3) BEHINDER Figure 8. WebShell used by the threat actor (3) This WebShell is a well-known WebShell that has been frequently used since the past like GodZilla, China Chopper. The threat actor used a WebShell identical to that in the Github Source . 2.2. Fast Reverse Proxy (FRP) The threat actor used a proxy tool for Remote Desktop Protocol (RDP) communication. The tool used is Fast Reverse Proxy (FRP), and it was introduced multiple times previously in ASEC blog. Attackers Using FRP (Fast Reverse Proxy) to Attack Korean Companies Dalbit (m00nlight): Chinese Hacker Group’s APT Attack Campaign The z0Miner threat actor used both the default Frpc and the customized version. The default Frpc loads a settings file in the *.INI form, reads it, and attempts connection, but the customized Frpc can be run without needing to use an individual file because it has configuration data inside the program. The method of customizing and distributing Frpc was found in other threat group cases as well. BlueShell Used in APT Attacks Against Korean and Thai Targets Figure 9. Frpc (svcho.exe) download logs The following images show FRP servers and ports of threat actor that the ASEC team procured. Figure 10. Frpc configuration data 15.235.22[.]212:5690 15.235.22[.]213:59240 z0Miner threat actors’ Frpc server & port 2.3. Netcat Netcat is a utility tool that can read and write data upon network connection, and it was found in many breach cases in the past. Threat actor often use this tool because it provides remote shell feature which allows them to bypass the firewall and get control over the attack target’s system. This threat actor downloaded Netcat as userinit.exe and executed it as shown in the figure below. Figure 11. Reverse Shell command logs of Netcat The command is the Reverse Shell command that tells the malware to establish a connection with the given IP and port and upon connection, run the command prompt. Afterward, the threat actor can control the system via command prompts. 107.180.100[.]247:88 z0Miner threat actors’ Netcat Server & Port 2.4. AnyDesk In the case of the Apache ActiveMQ vulnerability (CVE-2023-46604), the threat actor installed Netcat and additionally installed AnyDesk. Apache ActiveMQ Vulnerability (CVE-2023-46604) Continuously Being Exploited in Attacks The threat actor used the download server (the compromised web server) to load the Powershell script, accessed the official website, and downloaded AnyDesk. Figure 12. Logs for the installation of AnyDesk through Powershell (wshell.exe) Figure 13. The AnyDesk-installing Powershell code found in a past case 2.5. Miner (XMRig) The versions of XMRig the threat actor is distributing are different per OS: 6.18.0 for Windows and 6.18.1 for Linux. Figure 14. XMRig’s version (6.18.0 for Windows) To maintain persistence, the threat actor registered WMI’s Event Filter and Consumer or Task Scheduler (schtasks) to read a Powershell script from a certain address of pastebin.com and execute it. The Powershell script, however, did not exist at the time of analysis. Figure 15. WMI’s Event Filter and Consumer for persistence Afterward, the malware begins mining as ‘javae.exe.’ Figure 16. The Powershell code that downloads the miner 3. Monero Wallet & Mining Pool Address The following is the config.json that the threat actor uses. Figure 17. The threat actor’s config.json (wallet address and full address) Mining Pool : pool.supportxmr[.]com:443 pool.supportxmr[.]com:80 Monero Wallet : 44VkCrG7DkmYCcrNQcBb1QfZ66si2xWqy7HuzgyWLXKy8x3pkzKWxs8TptTNjCS1b2Abm89MuXD1tg81KeRgfP2u3z6f2kP 47y69G6VzipF8ydhXxzRF69e8ys3XrDFjD5SqSM1T8yJGdfHqtRmMA9eQpq8vnWBibhmb35xLAyVpen53hfidLwHDP3NbAm z0Miner threat actor’s Monero Wallet & Mining Pool Address 5. Conclusion Threat actors are continuously attacking WebLogic servers that are vulnerable as they are not patched. As threat actors can steal information and install ransomware by taking control over the infected systems, users must check ports and servers that are not being managed properly. Furthermore, system administrators must check whether the WebLogic services are updated to the latest version, and if not, apply the latest patch to prevent attacks via known vulnerabilities. User must update V3 to the latest version to block malware infection in advance. File Detection – HackTool/Win.Netcat (2022.10.18.03) – Win-Trojan/Miner3.Exp (2022.06.24.02) – Downloader/Shell.Miner.SC197168 (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Trojan/PowerShell.Miner (2024.02.27.01) – Trojan/Script.z0Miner.SC197169 (2024.02.27.01) – Trojan/Win.FRP (2024.02.27.01) – Trojan/Shell.Miner.SC197170 (2024.02.27.01) – Trojan/Shell.Miner.SC197171 (2024.02.27.01) – Trojan/Shell.Agent.SC197172 (2024.02.27.01) – Downloader/Shell.Miner.SC197173 (2024.02.27.01) – WebShell/JSP.Generic.S1866 (2024.02.27.00) – Linux/CoinMiner.Gen2 (2022.11.24.02) – WebShell/JSP.FileBrowser.SC197174 (2024.02.27.01) – WebShell/JSP.Generic.S1957 (2024.02.27.00) – Trojan/Shell.Agent.SC197175 (2024.02.27.03) – Downloader/PowerShell.Miner (2024.02.27.03) – CoinMiner/Shell.Generic.S2078 (2024.02.27.00) – Downloader/PowerShell.Miner.SC197176 (2024.02.27.01) MD5 085c68576c60ca0361b9778268b0b3b9 2a0d26b8b02bb2d17994d2a9a38d61db 4cd78b6cc1e3d3dde3e47852056f78ad 523613a7b9dfa398cbd5ebd2dd0f4f38 547c02a9b01194a0fcbfef79aaa52e38 URL http[:]//107[.]180[.]100[.]247[:]88/ http[:]//15[.]235[.]22[.]212[:]5690/ http[:]//15[.]235[.]22[.]213[:]59240/ Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.

ASEC 継続的に攻撃対象となっている Apache ActiveMQ 脆弱性(CVE-2023-46604) 2023-12-19

원문 보기

AhnLab Security Emergency response Center(ASEC)は2023年11月に「Andariel グループによる Apache ActiveMQ 脆弱性(CVE-2023-46604)を悪用した攻撃の状況」 [1] ブログの記事を通して Andariel 脅威グループが CVE-2023-46604 脆弱性を攻撃してマルウェアをインストールした事例を公開したことがある。本記事では Andariel グループの攻撃事例以外にも HelloKitty マルウェア、Cobalt Strike、Metasploit の Meterpreter の攻撃事例も挙げている。 Apache ActiveMQ 脆弱性(CVE-2023-46604)は様々な攻撃者によって使用されている。最近では Ladon、NetCat、AnyDesk そして z0Miner をインストールする攻撃が追加で確認され、ここではそれぞれについて整理する。 1. Apache ActiveMQ 脆弱性(CVE-2023-46604)攻撃 CVE-2023-46604 はオープンソースメッセージ及び統合パターンサーバーである Apache ActiveMQ サーバーのリモートコード実行の脆弱性である。もしパッチが適用されていない Apache ActiveMQ サーバーが外部に露出されている場合、攻撃者はリモートで悪意のあるコマンドを実行して当該システムを掌握することができる。 AhnLab TIP: Apache ActiveMQ セキュリティアップデートの推奨(CVE-2023-46604) [2] (韓国語のみ提供) 脆弱性を利用した攻撃は classpath にあるクラスをインスタンス化するよう OpenWire プロトコルから直列化されたクラスタイプを操作する方式で行なわれる。もし攻撃者が操作されたパケットを送信する場合、脆弱なサーバーではパケットに含まれているパス、つまり URL を参照してクラス XML 設定ファイルをロードする。 例えば、脆弱な Apache ActiveMQ の Java プロセスは渡されたパケットを参照して「hxxp://27.191.193[.]193:555/poc2.xml」パスにある XML 設定ファイルをロードするようになる。その後、ロードした XML 設定ファイルを参照して指定したコマンドを実行する。以下の事例は CMD 及び PowerShell を使って Ladon をダウンロードし、リバースシェルによりコマンドを実行する内容が設定されている。 図1. Ladon をインストールしてリバースシェルを実行するコマンドが含まれた設定ファイル 2. Ladon Ladon は以下の GitHub ページでも分かるように中国語を基盤とした攻撃者が主に使用するツールの一つである。 [3] Ladon は攻撃の過程で必要な様々な機能をサポートする。代表的にはスキャニング、権限昇格、アカウント情報奪取、リバースシェルのように様々な機能がある。 図2. Ladon の GitHub ページ 製作者は Ladon を持続的にアップデートしており、相対的に最新の脆弱性をとも言える CVE-2023-46604 脆弱性へのスキャニングもサポートしている。 図3. Ladon がサポートする CVE-2023-46604 の脆弱性スキャニング機能 攻撃者が Ladon を利用して脆弱性をスキャニングしたのかは分からないが、脆弱したバージョンの Apache ActiveMQ サービスが動作することを確認し、次の PowerShell コマンドで Ladon をダウンロードしてコマンドを実行した。ReverseTCP のコマンドはリバースシェルを実行することを意味し、nc すなわち Netcat を利用してリバースシェルを実行する。 図4. 脆弱性攻撃によって実行されるリバースシェル 3. AnyDesk & Netcat 上記の攻撃事例では、Lodon がサポートする Netcat コマンドが使用されたが、Netcat は別の攻撃事例でも確認されている。Netcat は TCP / UDP プロトコルであり、ネットワーク上で特定の対象とデータを送受信するユーティリティである。Linux だけでなく Window 環境もサポートしている点が特徴だ。ネットワークテスト目的で様々な機能を提供しているため、ネットワーク管理者もよく使用するツールであるが、攻撃者によって悪用されるツールでもある。 攻撃者は Netcat を実行しながら送信するコマンドを利用してリバースシェルやバインドシェルとして使用でき、実際に脆弱なウェブサーバーや MS-SQL サーバーを対象にする様々な攻撃で使用された事例が存在する。 [4] [5] 今回確認された攻撃では、外部から Netcat をダウンロードしたあと、リバースシェルコマンドで感染システムのシェルを獲得した。 図5. 脆弱性攻撃によってインストール及び実行される Netcat リバースシェルから感染システムを操作できるが、コマンドライン環境でコマンドを下すのは限界がある。一般的に攻撃者は感染システムを掌握したあと、リモートで画面を操作する目的で VNC や RDP そして遠隔操作ツールを追加でインストールする傾向がある。特に AnyDesk や NetSupport、Chrome のリモートデスクトップのような遠隔操作ツールは、最近のセキュリティ製品を回避することを目的によく使用されている。 [6] 今回確認された攻撃で攻撃者は Netcat をインストールしたあと、追加で AnyDesk をインストールした。上記のプロセスでインストールした Netcat を利用して AnyDesk をインストールし、正常なホームページのダウンロード URL からインストールファイルをダウンロードした。 図6. Netcat を利用した AnyDesk インストール 攻撃者は AnyDesk を Silent モードでインストールしたあと、「–set-password」引数でパスワードを変更し、実行した。 図7. 設定したパスワードで実行される AnyDesk これらは過去 MS-SQL サーバーを対象とした攻撃事例から確認された事例とほぼ同じ方式である。 図8. 過去の攻撃事例で確認された AnyDesk のインストール PowerShell ルーティン その後、攻撃者は感染システムにアクセスして実行するとき、「–set-password」引数で渡したパスワードを入力し、リモートで感染システムを操作できることとなる。 図9. AnyDesk をインストールした遠隔システムにログインするプロセス 4. z0Miner 最近では、他にも XMRig コインマイナーをインストールする攻撃キャンペーンも確認されている。XML 設定ファイルの名前は「paste.xml」であり、以下のように CMD を利用して PowerShell コマンドを実行するデータが含まれている。「shella」は PowerShell ファイルとして推定され、攻撃者が以前の攻撃プロセスで PowerShell プログラムをこの名前でコピーしたものと見られる。復号化された PowerShell コマンドは、他の Powershell スクリプトをダウンロードして実行する。 図10. 暗号化された Powershell コマンドが含まれた設定ファイル ダウンロードされる PowerShell スクリプトは、XMRig コインマイナーと設定ファイルをダウンロードし、実行する単純なタイプである。 図11. XMRig コインマイナーをインストールする Powershell スクリプト 図12. 設定ファイルに存在するマイニングプール及びウォレットアドレス 攻撃に使われた Powershell スクリプトを解析した結果、変数名、関数名、そして全体的な構造が z0Miner と類似していることが確認された。Z0Miner は2020年 Tencent Security Team が初めて報告し、Oracle Weblogic リモートコード実行の脆弱性(CVE-2020-14882 / CVE-2020-14883)攻撃で拡散された。 2021年には Atlassian Confluence のリモートコード実行の脆弱性(CVE-2021-26084)が脆弱性として拡散した事例が報告され、 [7] (英語外部サイト) [8] (英語外部サイト)、過去の ASEC ブログでもこの攻撃事例について取り上げたことがある。 [9] 5. 結論 攻撃者はパッチが適用されていない脆弱な Apache ActiveMQ サービスを対象に持続的に攻撃を行っている。確認された攻撃の中には、コインマイナーをインストールして暗号通貨を採掘する事例もあるが、感染システムを制御するためのマルウェアが多数確認される。攻撃者は感染システムを掌握したあと、情報を奪取したり、ランサムウェアをインストールすることができる。 システム管理者は使用している Apache ActiveMQ サービスが以下のように脆弱なバージョンであるかをチェックし、最新バージョンにパッチを適用して、既知の脆弱性による攻撃を防がなければならない。 Apache ActiveMQ 5.18.0 以上 5.18.3 未満のバージョン Apache ActiveMQ 5.17.0 以上 5.17.6 未満のバージョン Apache ActiveMQ 5.16.0 以上 5.16.7 未満のバージョン Apache ActiveMQ 5.15.16 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.18.0 以上 5.18.3 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.17.0 以上 5.17.6 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.16.0 以上 5.16.7 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.8.0 以上 5.15.16 未満のバージョン また、外部に開放されていてアクセスが可能なサーバーに関してはファイアウォールのようなセキュリティ製品を利用し、外部の攻撃者からのアクセスを統制する必要がある。最後に、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前に遮断できるように注意を払わなければならない。 ファイル検知 – Exploit/PS.Ladon (2023.12.09.00) – Downloader/XML.Generic (2023.12.13.00) – HackTool/Win.Netcat.R5561954 (2023.12.12.03) – Downloader/XML.Generic (2023.12.13.00) – CoinMiner/PS.Agent (2023.12.13.03) – Win-Trojan/Miner3.Exp (2020.01.23.00) – CoinMiner/Text.Config (2023.12.13.03) 振る舞い検知 – Execution/MDP.Powershell.M2514 – Execution/MDP.AnyDesk.M4547 IOC MD5 – eb0e70ea44e578201df1e3c49e905144 : Ladon (Ladon.ps1) – 1a7e8e719e29c2cca5083053bb240dbc : XML (poc2.xml) – b6e0db27c2b3e62db616b0918a5d8ed8 : Netcat (ncat.exe) – c1aa596dc33f2ba4aadbd689a1652701 : XML (paste.xml) – baeee25ebf0efeec414dce64b9e7aca7 : Downloader (paste.ps1) – 2a0d26b8b02bb2d17994d2a9a38d61db : XMRig (s.rar) – da12148890bc665a8a27bf695955d8b0 : XMRig Config (config.json) C&C – 27.191.193[.]193:50000 : Ladon Netcat – 62.233.50[.]97:6666 : Netcat Download – hxxp://27.191.193[.]193:555/Ladon.ps1 : Ladon – hxxp://27.191.193[.]193:555/poc2.xml : XML – hxxp://62.233.50[.]101:11197/ncat.exe : Netcat – hxxp://121.190.90[.]250:8081/js/3/paste.xml : XML – hxxp://121.190.90[.]250:8081/js/3/paste.ps1 : Downloader – hxxp://121.190.90[.]250:8081/js/s.rar : XMRig – hxxp://121.190.90[.]250:8081/js/3/config.json : XMRig Config 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。

ASEC Apache ActiveMQ Vulnerability (CVE-2023-46604) Continuously Being Exploited in Attacks 2023-12-13

원문 보기

In November 2023, AhnLab Security Emergency response Center (ASEC) published a blog post titled “Circumstances of the Andariel Group Exploiting an Apache ActiveMQ Vulnerability (CVE-2023-46604)” [1] which covered cases of the Andariel threat group exploiting the CVE-2023-46604 vulnerability to install malware. This post not only covered attack cases of the Andariel group but also those of HelloKitty Ransomware, Cobalt Strike, and Metasploit Meterpreter. Since then, the Apache ActiveMQ vulnerability (CVE-2023-46604) has continued to be exploited by various threat actors. This post will cover the recent additional attacks that installed Ladon, NetCat, AnyDesk, and z0Miner. 1. Apache ActiveMQ Vulnerability (CVE-2023-46604) Attacks CVE-2023-46604 is a remote code execution vulnerability in the open-source messaging and integration pattern server Apache ActiveMQ. If an unpatched Apache ActiveMQ is externally exposed, the threat actor can execute malicious commands from a remote location and take over the target system. AhnLab TIP: Apache ActiveMQ Security Update Advisory (CVE-2023-46604) [2] (This report supports Korean only for now.) The vulnerability attack involves manipulating a serialized class type in the OpenWire protocol to instantiate the class in classpath. When the threat actor transmits a manipulated packet, the vulnerable server references the path (URL) contained in the packet to load the XML configuration file for the class. For example, the Java process for a vulnerable Apache ActiveMQ server references the given manipulated packet and loads an XML configuration file at “hxxp://27.191.193[.]193:555/poc2.xml”. Afterward, the loaded XML configuration file is referenced to execute designated commands. In the following case, a command is configured to use CMD and PowerShell to download Ladon before executing a reverse shell command. 2. Ladon As can be seen from the following GitHub page, Ladon is one of the tools that are mainly used by Chinese-speaking threat actors. [3] Ladon offers various features needed in the attack process. Major features include scanning, privilege escalation, account credential theft, and reverse shell. The creator is continuously updating Ladon, and the malware also offers scanning for the relatively recent CVE-2023-46604 vulnerability. While it cannot be ascertained whether the threat actor used Ladon to scan for the vulnerability, after confirming that a vulnerable version of Apache ActiveMQ service was in use, they used the following PowerShell command to download Ladon and execute additional commands. ReverseTCP command refers to the execution of reverse shell, and Netcat (nc) was used for this purpose. 3. AnyDesk & Netcat While the Netcat command supported by Ladon was used in the attack case above, Netcat is also seen in other attack cases. Netcat is a utility for transmitting data to and from certain targets in a network connected by TCP/UDP protocol. It supports Linux as well as Windows environments. Because it offers various features for network testing, it can also be considered a tool frequently used by network administrators, but it is also a tool that can be exploited by threat actors. Threat actors can use the commands that are transmitted when Netcat is launched to use it as a reverse shell or bind shell, and there are actual cases where Netcat was used in various attacks that targeted vulnerable web servers and MS-SQL servers. [4] [5] In the recently identified attack, Netcat was downloaded from an external source before the shell for the infected system was obtained using a reverse shell command. Although the infected system can be controlled using a reverse shell, there is a limit to executing commands in a command line environment. Generally, after threat actors compromise the infected system, they tend to additionally install VNC, RDP, and other remote administration tools to control the system’s screen remotely. In particular, remote administration tools such as AnyDesk, NetSupport, and Chrome Remote Desktop have recently been used for bypassing security products. [6] In the recently identified attack, the threat actor additionally installed AnyDesk after installing Netcat. The Netcat installed in the process above was used to install AnyDesk, and the setup file was downloaded from the download URL of the original AnyDesk website. After installing AnyDesk in silent mode, the threat actor set the password with the “–set-password” argument before launching the program. This routine is almost identical to the one identified in a past attack case against MS-SQL servers. Afterwards, the threat actor would have connected to the infected system and used the password transmitted as the “–set-password” argument upon execution to remotely control the target system. 4. z0Miner Recently, there were also attack campaigns where XMRig CoinMiner was installed. The name of the XML configuration file is “paste.xml”, and it includes data for using CMD to execute PowerShell commands as shown below. As a note, “shella” is presumed to be a PowerShell file, and the threat actor seems to have copied the PowerShell program under this name in a previous attack phase. The decrypted PowerShell command downloads and executes another PowerShell script. The downloaded PowerShell script is in a simple format, downloading and executing XMRig CoinMiner and the configuration file. An analysis of the PowerShell script used in the attack revealed the variable names, function names, and overall structure to be similar to those of z0Miner. z0Miner was first reported in 2020 by the Tencent Security Team and was distributed via attacks exploiting the Oracle Weblogic remote code execution vulnerabilities (CVE-2020-14882/CVE-2020-14883). In 2021, there was a case where z0Miner was distributed through the Atlassian Confluence remote code execution vulnerability (CVE-2021-26084). [7] [8] This case was also covered in a past ASEC Blog post. [9] 5. Conclusion Threat actors are continuously launching attacks against unpatched, vulnerable Apache ActiveMQ services. Out of such identified attacks, there were cases where CoinMiners were installed to mine cryptocurrencies, as well as many cases where malware were used to control the infected system. After compromising the infected system, threat actors can steal data or install ransomware. System administrators must check if their current Apache ActiveMQ service is one of the susceptible versions below and apply the latest patches to prevent attacks that exploit known vulnerabilities. Apache ActiveMQ versions 5.18.0 – 5.18.2 Apache ActiveMQ versions 5.17.0 – 5.17.5 Apache ActiveMQ versions 5.16.0 – 5.16.6 Apache ActiveMQ versions 5.15.15 or earlier Apache ActiveMQ Legacy OpenWire Module versions 5.18.0 – 5.18.2 Apache ActiveMQ Legacy OpenWire Module versions 5.17.0 – 5.17.5 Apache ActiveMQ Legacy OpenWire Module versions 5.16.0 – 5.16.6 Apache ActiveMQ Legacy OpenWire Module versions 5.8.0 – 5.15.15 They should also use security programs such as firewalls for servers accessible from outside to restrict access by attackers. Finally, caution must be practiced by updating V3 to the latest version to block malware infection in advance. File Detection – Exploit/PS.Ladon (2023.12.09.00) – Downloader/XML.Generic (2023.12.13.00) – HackTool/Win.Netcat.R5561954 (2023.12.12.03) – Downloader/XML.Generic (2023.12.13.00) – CoinMiner/PS.Agent (2023.12.13.03) – Win-Trojan/Miner3.Exp (2020.01.23.00) – CoinMiner/Text.Config (2023.12.13.03) Behavior Detection – Execution/MDP.Powershell.M2514 – Execution/MDP.AnyDesk.M4547 MD5 1a7e8e719e29c2cca5083053bb240dbc 2a0d26b8b02bb2d17994d2a9a38d61db b6e0db27c2b3e62db616b0918a5d8ed8 baeee25ebf0efeec414dce64b9e7aca7 c1aa596dc33f2ba4aadbd689a1652701 URL http[:]//121[.]190[.]90[.]250[:]8081/js/3/config[.]json http[:]//121[.]190[.]90[.]250[:]8081/js/3/paste[.]ps1 http[:]//121[.]190[.]90[.]250[:]8081/js/3/paste[.]xml http[:]//121[.]190[.]90[.]250[:]8081/js/s[.]rar http[:]//27[.]191[.]193[.]193[:]50000/ Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.

자동 추천 장비와 근거 참고용

추천할 매핑이 없습니다.

영향받는 제품 CPE · 5건
제조사제품영향받는 버전표준 표기CPE
oracleweblogic_server cpe:2.3:a:oracle:weblogic_server:10.3.6.0.0:*:*:*:*:*:*:*
oracleweblogic_server cpe:2.3:a:oracle:weblogic_server:12.1.3.0.0:*:*:*:*:*:*:*
oracleweblogic_server cpe:2.3:a:oracle:weblogic_server:12.2.1.3.0:*:*:*:*:*:*:*
oracleweblogic_server cpe:2.3:a:oracle:weblogic_server:12.2.1.4.0:*:*:*:*:*:*:*
oracleweblogic_server cpe:2.3:a:oracle:weblogic_server:14.1.1.0.0:*:*:*:*:*:*:*
참고 링크 9건
용어 설명 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 로 기계 번역한 설명입니다.