CVE-2023-46604
위험도 심각 실제 악용 (KEV) 랜섬웨어 악용 ASEC 언급 25건
- 우선순위 이 사이트의 참고 점수
- 19.30
- 위험도 CVSS 3.1 · 0~10점
- 9.8
- 악용 가능성 EPSS · 30일 안에 공격에 쓰일 확률
- 100.0%
- 공개일 NVD
- 2023-10-27
설명 NVD 원문
Java OpenWire 프로토콜 마샬러(marshaller)에 원격 코드 실행(RCE) 취약점이 있다. 네트워크 접근 권한을 가진 원격 공격자는 OpenWire 프로토콜에서 직렬화된 클래스 타입을 조작하여, 클라이언트 또는 브로커(각각 해당)가 클래스패스(classpath)에 있는 임의의 클래스를 인스턴스화하도록 만들 수 있다. 이를 통해 임의의 셸 명령을 실행할 수 있다. 이 취약점은 Java 기반 OpenWire 브로커 또는 클라이언트에 영향을 줄 수 있다. 브로커와 클라이언트 모두 5.15.16, 5.16.7, 5.17.6, 5.18.3 버전으로 업그레이드할 것을 권장한다. 해당 버전에서 이 문제가 수정되었다.
Claude 로 기계 번역한 글입니다. 정확한 내용은 영어 원문을 확인하세요.
영어 원문
The Java OpenWire protocol marshaller is vulnerable to Remote Code Execution. This vulnerability may allow a remote attacker with network access to either a Java-based OpenWire broker or client to run arbitrary shell commands by manipulating serialized class types in the OpenWire protocol to cause either the client or the broker (respectively) to instantiate any class on the classpath. Users are recommended to upgrade both brokers and clients to version 5.15.16, 5.16.7, 5.17.6, or 5.18.3 which fixes this issue.
위험도 세부 항목 CVSS 3.1
- 공격 경로
- 네트워크(원격) AV:N
- 공격 난이도
- 낮음(쉬움) AC:L
- 필요한 권한
- 없음(로그인 불필요) PR:N
- 사용자 행동 필요
- 필요 없음 UI:N
- 영향 범위
- 그 제품 안 S:U
- 정보 유출(기밀성)
- 높음 C:H
- 데이터 변조(무결성)
- 높음 I:H
- 서비스 중단(가용성)
- 높음 A:H
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
조치 방법 8행
Red Hat 조치 8행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| Red Hat | AMQ 6.3 openshift container image | 패치(업데이트) | RHSA-2023:6877 | |||
| Red Hat | AMQ Broker 7.10.5 | 패치(업데이트) | RHSA-2023:6878 | |||
| Red Hat | AMQ Broker 7.11.4 | 패치(업데이트) | activemq-openwire | RHSA-2023:6879 | ||
| Red Hat | Red Hat (공통) | 완화 조치 | 원문 | In affected systems, it may be possible to mitigate some of the risks from this vulnerability. Howev…In affected systems, it may be possible to mitigate some of the risks from this vulnerability. However this mitigation cannot eliminate all risks; the only complete resolution is to apply software updates. On systems where the broker is exposed to the public network, use firewall rules to restrict the transport ports and enable SSL to protect this "Transport". |
||
| Red Hat | Red Hat Fuse 7.12.1 | 패치(업데이트) | activemq-openwire | RHSA-2023:7247 | ||
| Red Hat | Red Hat Fuse/AMQ 6.3.20 | 패치(업데이트) | activemq-openwire | RHSA-2023:6849 | ||
| Red Hat | Red Hat JBoss Fuse Service Works 6 | 수정판 없음 | activemq-openwire | 원문 | Red Hat 상태: 지원 기간 끝남 | |
| Red Hat | RHEL-7 based Middleware Containers | 패치(업데이트) | jboss-amq-6/amq63-openshift:1.4-50 | RHSA-2023:6866 |
CISA 조치 권고 KEV
제조사 안내에 따라 완화 조치를 적용하세요. 완화 방법이 없으면 제품 사용을 중단하세요.
영어 원문
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
미국 연방기관 조치 기한: 2023-11-23
살펴볼 장비 초안
공격 대상: 서버·웹 서비스. '이 장비에서 살펴볼 취약점' 이라는 분류이며, 장비가 탐지한다는 확인이 아닙니다.
| 장비 보기 | 정도 | 분류 이유 |
|---|---|---|
| 네트워크 통신 (IPS·NDR) | 주 | 사용자 행동 없이 네트워크로 코드·명령 실행 |
| 서버 행위 (EDR·감사 로그) | 주 | 성공하면 프로세스·파일 행위가 남을 수 있는 실행 유형 |
단계별 판정 예시 환경
시나리오 미작성 — 이 CVE 는 단계별 판정을 하지 않았습니다. 안전하다는 뜻이 아닙니다.
출처별 내용 27건
CISA KEV Apache ActiveMQ Deserialization of Untrusted Data Vulnerability 2023-11-02
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
KISA Apache 제품 보안 업데이트 권고 2023-11-08
□ 개요 o 아파치 소프트웨어 재단은 소프트웨어에서 발생하는 취약점을 해결한 보안 업데이트 발표 [1] o 영향받는 버전을 사용 중인 시스템 사용자는 해결 방안에 따라 최신 버전으로 업데이트 권고 □ 설명 o Apache ActiveMQ에서 발생하는 원격 코드 실행(RCE) 취약점(CVE-2023-46604) [2] ※ Apache ActiveMQ : JMS(Java Message Service) 클라이언트와 함께 Java로 작성된 오픈소스 메시지 브로커 □ 영향받는 제품 및 해결 방안 영향받는 제품 및 해결 방안 - 취약점, 제품명, 영향받는 버전, 해결 버전의 정보를 제공 취약점 제품명 영향받는 버전 해결 버전 CVE-2023-46604 Apache ActiveMQ 5.18.0 ~ 5.18.3 이전 버전 5.18.3 5.17.0 ~ 5.17.6 이전 버전 5.17.6 5.16.0 ~ 5.16.7 이전 버전 5.16.7 5.15.16 이전 버전 5.15.16 Apache ActiveMQ Legacy OpenWire Module 5.18.0 ~ 5.18.3 이전 버전 5.18.3 5.17.0 ~ 5.17.6 이전 버전 5.17.6 5.16.0 ~ 5.16.7 이전 버전 5.16.7 5.8.0 ~ 5.15.16 이전 버전 5.15.16 ※ 하단의 참고사이트를 확인하여 업데이트 수행 [2] ※ Apache ActiveMQ Artemis는 OpenWire 프로토콜을 지원하지만, Spring을 제공하지 않으므로 현재 알려진 공격이 없으나 업그레이드하는 것을 권장 □ 기타 문의사항 o 한국인터넷진흥원 사이버민원센터: 국번 없이 118 [참고사이트] [1] https://activemq.apache.org/security-advisories.data/CVE-2023-46604 [2] https://activemq.apache.org/news/cve-2023-46604 □ 작성 : 침해사고분석단 취약점분석팀
ASEC AI가 찾아낸 약한 고리: 외곽 접점이 무너진 2026년 10월 2026-10-29
AI가 찾아낸 보안의 사각지대 2026년 10월 한국과 일본에서 연이어 공개된 대규모 침해사고는 대부분 내부 핵심 시스템이 아니라 외부에 노출된 웹서비스와 앱 백엔드 API, 위탁 SaaS (메일 발송이나 백업처럼 위탁 업체가 클라우드로 제공하는 서비스)같은 외곽 접점에서 시작됐다. 같은 기간 PHP, Node.js 등 웹 백엔드 런타임 및 GitLab 등 널리 쓰이는 소프트웨어에서 인증 없이 원격 코드 실행이 가능한 취약점이 연이어 공개됐고, ARTEX 등 AI 에이전트가 실제 침해 과정에 쓰였다는 보고도 잇따랐다. 한국에서는 9월 말부터 시중은행을 시작으로 저축은행, 캐피탈, 상호금융, 가상자산사업자, 보험사까지 금융권 연쇄 침해가 이어졌고, 기업용 회계 소프트웨어 업체와 대형 교회, 대학, 프랜차이즈 등 비금융권에서도 유출이 확인됐다. 일본에서도 같은 시기 수백만에서 수천만 건 규모의 개인정보 유출 공표가 이어졌으며, 일본 정부 기관은 공개 앱을 분석해 백엔드 서버를 공격하는 수법을 주요 원인 가운데 하나로 지목했다. 이런 흐름은 두 나라에만 국한되지 않는다. 같은 시기 미국, 유럽, 남미에서도 위탁 서비스와 외부 노출 웹사이트를 거친 침해, AI 에이전트를 이용한 대규모 자동화 공격이 보고됐다. 본 글은 공개된 보도와 각 기관의 발표, 보안 업체의 보고서를 종합해, 사례가 집중적으로 공개된 한국과 일본을 중심으로 이번 사고들의 공통 패턴을 정리하고 같은 패턴이 해외에서도 관측된다는 점을 함께 살펴본다. 이를 바탕으로 기업이 점검해야 할 예방 및 대응 방안을 제시한다. 개별 사고의 원인은 대부분 조사 중이며, 피해 기관은 공개 보도를 기준으로 업종 단위로 표기했다. 한국 금융권 : 연쇄 침해의 시작 국내 금융권 침해는 9월 말 시중은행에서 시작해 한 달 동안 업권 전반으로 확산됐다. 금융당국은 10월 14일 기준 침해사고가 확인된 금융회사를 은행, 저축은행, 캐피탈, 상호금융, 전자금융업, 온라인투자연계금융업, 가상자산사업자 등 16곳으로 집계했으며, 확인된 개인정보 유출 규모는 약 10만 건이었다. 다만 피해 금융회사 수를 고려하면 유출 규모는 상대적으로 제한적인 수준으로 평가되며, 이는 대규모 데이터베이스(DB) 자체가 탈취된 것이 아니라 외부에 노출된 조회 서비스 등의 접점 등을 통해 개별 정보가 조회된 형태의 사고였을 가능성을 시사한다. 이후 10월 26일에는 보험업계에서도 유출이 신고됐다. 주목할 점은 공격 대상이 예금과 이체를 처리하는 은행의 핵심 전산 시스템이 아니었다는 것이다. 공개된 내용을 보면 대출모집인 전용 조회 서비스, 내부 직원용 영업지원시스템, 공제 관련 외부 웹페이지처럼 본 서비스 옆에 붙어 있는 부가 시스템이 침해 경로였다. 구분 침해 지점 공개된 내용 금융기관 A 대출모집인 전용 조회 서비스 정상 인증을 우회한 뒤 조회값을 반복 입력해 약 2만 5천 명의 대출 관련 정보 유출 금융기관 B 직원용 영업지원시스템(ODS) 인터넷, 모바일뱅킹과 분리된 시스템에 비정상 접근, 89명 정보 유출 금융기관 C 공제 관련 외부 웹페이지 공격 후 이틀 뒤에야 피해 사실 인지 [표 1] 한국 금융권 주요 침해 사례와 침해 지점 금융당국이 10월 초 전 금융회사 555곳을 대상으로 실시한 긴급 점검에서는 130곳이 미흡 사항을 보고했다. 주요 미흡 사항은 최신 보안패치 미적용, 기술지원이 끝난 시스템의 관리 부실, 24시간 관제체계 미구축이었다. 공격자가 새로운 기법을 썼다기보다, 관리가 느슨한 외곽 시스템을 빠르게 찾아냈다고 보는 편이 사실에 가깝다. 이번 금융권 공격에서는 AI 자율 침투테스트 도구인 ARTEX의 흔적이 확인됐다. 국내 보안 업계가 공격에 사용된 웹 서버에서 ARTEX 관련 문자열을 처음 발견했고, 크라우드스트라이크는 공격자 서버의 노출된 폴더에서 ARTEX 설정 파일과 AI 코딩 도구의 작업 기록을 확보했다. 공격자는 ARTEX에 DeepSeek, GLM, Grok 등 여러 대규모 언어모델(LLM)을 연결해 사용한 것으로 분석됐다. 다만 공격자의 신원과 국적은 확정되지 않았다. 금융권 밖으로 번진 침해 금융권 밖에서도 같은 시기 유출이 이어졌다. 기업용 회계 소프트웨어 업체, 대형 교회, 커피 프랜차이즈, 대학, 교육청 등 업종은 제각각이었지만, 침해 지점은 역시 직원 VPN 계정, 외부 백업 솔루션, 클라우드에 남은 임시 파일, 포털, 학습용 클라우드 계정처럼 핵심 업무 시스템 바깥의 접점이었다. 구분 침해 지점 공개된 내용 기업용 회계, ERP 소프트웨어 업체 직원 VPN 계정, 외부 백업 솔루션 VPN 계정으로 개발 서버 무단 접속, 백업 솔루션 취약점으로 암호화 데이터 일부 반출 정황 정부가 중대 사고로 판단하고 민관합동조사단 구성 대형 교회 교회 정보시스템 교인 약 85만 명의 이름과 생년월일 등이 포함된 자료 유출 커피 프랜차이즈 클라우드에 남아 있던 임시 데이터 파일 가상자산 채굴 목적의 비정상 접근 과정에서 약 276만 건 유출 과거 서비스 개편용 임시 파일이 원인 대학 포털 서비스 재학생과 졸업생 등 1만여 명의 학번, 연락처, 이메일 유출 교육청 학습용 클라우드 계정 6개 교육청에서 11만여 개 계정 해킹 피해 [표 2] 한국 비금융권 주요 침해 사례와 침해 지점 이 가운데 기업용 회계, ERP 소프트웨어 업체 사례는 위탁 사업자를 거친 공급망 위험을 보여준다. 이 업체의 회계 프로그램은 11만 개 이상 기업이 사용하고 있어, 한 번의 침해가 고객사 임직원의 급여와 납세 정보 등으로 번질 수 있다는 우려가 제기됐다. 다만 실제 유출 범위는 아직 조사 중이다. 커피 프랜차이즈 사례는 과거 서비스 개편을 위해 만든 임시 데이터 파일이 클라우드에 남아 있다가 유출된 경우로, 보존 기간이 지난 데이터를 정리하지 않으면 그 자체가 위험이 된다는 점을 보여준다. 10월 하순에는 생성형 AI를 악용한 해킹 피의자가 국내에서 처음으로 검거됐다. 경찰에 따르면 총책은 IT 비전공자로, 독학으로 기술을 익힌 뒤 보안 업체에서 모의해킹 업무를 수행한 경력이 있었다. 이 조직은 ARTEX와 AI 코딩 에이전트를 결합해 국내 업체 90여 곳에서 개인정보 등 820만여 건을 탈취했고, 특히 8월 말부터 44일 동안 60곳을 공격했다. 경찰은 이 사건과 금융권 사건 사이의 직접적인 연관성은 확인되지 않았다고 밝혔다. 일본에서도 반복된 같은 패턴 일본에서도 같은 시기 대규모 유출 공표가 집중됐다. 일본 보안 업체 마크니카의 집계에 따르면 , 일본 조직의 웹 시스템을 통한 개인정보 유출 공표는 2026년 10월 6일까지 119건으로 2025년 전체 84건과 2024년 62건을 이미 넘어섰고, 그중 81건이 7월 이후에 발생했다. 일본 당국은 원인 가운데 하나로 앱을 통한 백엔드 공격을 지목했다. 일본 정보통신연구기구(NICT)는 10월 13일, 공개된 Android 앱을 분석해 접속 대상 서버와 API 구조를 파악한 뒤 서버 측 취약점을 공격하는 수법을 ‘A2B(App-to-Backend) 공격’으로 명명했다. 주로 노리는 취약점은 SSRF, 원격 코드 실행(RCE), SQL 인젝션, IDOR/BOLA이며, 앱 자체에 결함이 없어도 서버 측 API에 허점이 있으면 유출로 이어진다. JPCERT/CC도 10월 8일 기존 취약점 탐색, 앱 분석을 통한 관리용 API 악용, BI 도구 Metabase의 SQL 인젝션 취약점(CVE-2026-72898) 악용, 웹셸 설치를 주요 공격 유형으로 제시했다. 단, 두 기관 모두 개별 피해 기업을 특정하지 않았으므로 특정 사고를 A2B 공격으로 단정할 수는 없다. 구분 침해 지점 공개된 내용 소프트웨어 판매 회원정보 조회 API API가 4일간 부정 이용돼 비밀번호를 포함한 회원 정보 최대 약 2,252만 건 유출 가능성 대형 할인점 앱, 온라인스토어 서버 서비스를 구성하는 소프트웨어 기능을 부정 이용해 침입, 최대 약 173만 명 정보 유출 SaaS 기업 메일 발송 SaaS의 API 서버 API 서버 2대에서 명령이 실행돼 전체 계약자 정보와 일부 고객의 발송 대상 목록 반출 식품 브랜드 일본 법인 위탁 EC 플랫폼 위탁 업체 서버의 소프트웨어 취약점이 악용돼 약 314만 건 유출 백화점 그룹 예약 사이트 → 고객관리 시스템 예약 사이트를 경유해 고객관리 시스템에 접근, 그룹 공통 ID 회원 거의 전체인 약 126만 건 유출 뉴스 플랫폼 업무용 관리도구 관리도구 취약점으로 최대 32.3만 건 이메일 등 유출 가능성 전자책 서비스 시스템 로그 파일 회원 DB 319건 외에 로그 파일에 남아 있던 정보 최대 약 420만 건 유출 증권사 위탁 FAQ 시스템 문의 관리용 외부 서비스 침해로 약 11만 명 정보 유출 가능성 클라우드 사업자 클라우드 인프라 랜섬웨어 공격으로 지자체와 기업 등 고객사 495곳에 장애 [표 3] 일본 주요 유출 사례와 침해 지점 일본 사례에서도 대부분 핵심 시스템이 아닌 주변 시스템이 출발점이었다. 특히 백화점 그룹 사례는 예약 사이트 하나가 그룹 공통 ID 전체로 이어진 경우이고, 전자책 서비스 사례는 회원 DB를 보호했더라도 로그에 같은 정보가 남아 있으면 유출될 수 있음을 보여준다. ARTEX는 일본에서도 확인됐다. 일본 보안 업체 GMO 사이버시큐리티 by 이에라에는 10월 19일, 국내 기업을 공격한 인프라에서 ARTEX의 사용 흔적을 확인했다고 발표했다. 이 업체가 표적으로 확인한 기업 중 8개 사가 9월과 10월에 정보 유출을 공표했다. 다만 해당 기업명은 공개되지 않았으며, 한국 공격과 같은 행위자의 소행이라는 근거도 없다. 현재로서는 같은 도구가 양국에서 쓰였다는 사실까지만 확인된다. 동시다발로 드러난 치명적 취약점 10월 셋째 주에는 웹과 인프라의 기반 소프트웨어에서 심각한 취약점이 며칠 사이에 연이어 공개됐다. 상당수가 인터넷에 직접 노출되는 구성 요소였다는 점에서, 외곽 접점의 위험을 더 키우는 요인이 됐다. 영역 대상 CVE 영향 조치 웹 런타임 PHP CVE-2026-109618, CVE-2026-109619 (CVSS 9.2) 인증 없는 원격 코드 실행(PHP2Shell) 8.5.12, 8.4.27, 8.3.36, 8.2.35 이상으로 업데이트. 8.1 이하는 지원 버전으로 전환 정식 패치 전까지 session.upload_progress.enabled=0 적용 웹 런타임 PHP CVE-2026-115560 (CVSS미공개) 특정 세션 설정에서 원격 코드 실행 정식 패치 전까지 session.upload_progress.enabled=0 적용 개발 플랫폼 GitLab CE/EE CVE-2026-110264 (CVSS 10.0) 정규식 컴파일러 정수 오버플로로 인증 없는 원격 코드 실행 GitLab 7.0(2014년)부터 영향 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10, 18.11.13 이상 서버 런타임 Node.js 22·24·26 CVE-2026-111497 (CVSS 9.2) Brotli 디코더 경계 초과 쓰기로 원격 코드 실행 가능(Node2Shell) 22.23.4, 24.22.1, 26.12.1 이상 DNS Unbound 1.22.0~1.26.1 CVE-2026-97206 (CVSS 7.5) DNS-over-QUIC 사용 시 원격 서비스 거부 1.26.2 이상 또는 DoQ 비활성화 DNS ISC BIND 9 CVE-2026-19630 외 3건 (CVSS 7.5) 서비스 거부, GSS-TSIG 메모리 손상(CVE-2026-94300, 원격 코드 실행 가능성) 9.20.30, 9.21.27 이상 PKI eMudhra 중간 CA 8개 해당 없음 개인 키가 쉽게 복구되는 상태로 생성돼 인증서 위조 가능 브라우저, OS·런타임의 신뢰 저장소 업데이트 PKI Oracle Java JSSE CVE-2026-91403 (CVSS 9.1) eMudhra 관련 중간 CA를 불신 처리하는 Java 업데이트 Java SE, GraalVM 최신 업데이트 적용 파일 공유 Windows SMB Server CVE-2026-96325 (CVSS 7.5) 인증 없는 원격 서비스 거부 10월 정기 보안 업데이트 적용 [표 4] 2026년 10월 주요 취약점 공개 현황 PHP2Shell은 대응 시간이 얼마나 짧아졌는지를 보여준다. 취약점 정보가 패치 배포 전에 외부로 유출됐고, 아마존 위협 인텔리전스는 공식 공개 나흘 전인 10월 17일에 이미 공격 시도를 탐지했다. 국내에서도 정부가 10월 22일 민간 분야 사이버위기 경보를 ‘관심’에서 ‘주의’로 높였다. 따라서 패치를 마친 서버라도 공개 전후 기간의 접속 기록과 웹셸 설치 여부를 함께 점검해야 한다. Oracle Java의 CVE-2026-91403은 코드 결함을 고치는 일반 패치가 아니라, 신뢰가 깨진 eMudhra 중간 CA 인증서를 Java가 더 이상 신뢰하지 않도록 하는 업데이트다. 브라우저가 차단했더라도 Java처럼 자체 신뢰 저장소를 쓰는 런타임과 구형 클라이언트는 별도로 업데이트해야 한다는 점에서, PKI 문제는 서버 패치만으로 끝나지 않는다. 취약점 발견 과정에서도 AI의 역할이 커지고 있다. BIND의 CVE-2026-94300은 OpenAI 소속 연구자가 제보했고, Node.js 공식 공지는 CVE-2026-111497을 OpenAI Codex Security의 성과로 기록했다. 이는 방어 측의 정상적인 취약점 연구이지만, 같은 능력이 공격 측에도 쓰일 수 있다는 점에서 패치 주기는 앞으로 더 짧아질 가능성이 높다. Agentic AI 공격: 실험에서 실전으로 AI 에이전트가 정찰, 취약점 탐색, 침투, 웹셸 설치를 스스로 이어서 수행하는 공격이 실제 침해 사례로 확인되기 시작했다. 10월에 공개된 주요 보고는 다음과 같다 보고 주체 도구 공개된 내용 CrowdStrike (10월 7일) ARTEX 한국 금융기관 공격자 서버에서 AI 코딩 도구 작업 기록과 ARTEX 설정 파일 확인 DeepSeek, GLM, Grok 사용 정황 AhnLab ASEC (10월 15일) ARTEX 및 변종 인터넷에 노출된 ARTEX 운영 시스템 IP 600개를 추적했고, 10월 14일 기준 900개 이상으로 증가 일부 호스트의 오픈 디렉터리에서 웹셸 명령 전송, 내부 RDP 중계, 내부망 스캔 결과 등 공격 운영 자료 51개 확보 원본 저장소 삭제 이후 이름과 UI를 바꾼 재배포본과 한국어 현지화 흔적도 확인 NorForge, Reuters (10월 19일) Cairn 노출된 Cairn 관리 화면을 조사한 결과 최대 클러스터에서 1,100개 이상의 공격 프로젝트 확인 1,200개 이상의 사이트를 공격해 100개 이상 기업 웹사이트 침해. 토큰 비용은 총 약 5,000달러 GMO 이에라에 (10월 19일) ARTEX 일본 기업 공격 인프라에서 ARTEX 사용 확인 Microsoft (10월 21일) ARTEX 중국 연계 그룹 Storm-0940이 ARTEX로 전 세계 수백 개 조직을 공격 미국 IT 관리 서비스 기업의 클라우드 백업 앱 신원을 악용해 2,250개 이상의 Microsoft 365 테넌트에 로그인을 시도했고, 일부는 최초 표적화 후 3시간 이내에 클라우드 특권 접근 획득 CrowdStrike (10월 21일) 다양한 하네스 5~8월 관측된 신규 위협 행위자 4곳 공개 아르헨티나 의료기관 최소 15곳 침해 사례 포함 4곳 모두 상용 AI의 안전 장치를 우회 [표 5] Agentic AI 기반 실제 침해 보고 사례 자사는 ARTEX를 별도 테스트 환경에서 재현해 자율 침투가 어디까지 가능한지도 확인했다. 보안 지식이 없는 사용자도 입력할 수 있는 수준인 ‘공격 대상에 침투해줘’ 정도의 짧은 지시만 전달했지만, ARTEX는 사람의 중간 개입 없이 웹 서버의 파일 업로드 기능을 찾아 웹셸로 프로그램을 실행했다. Apache ActiveMQ가 노출된 환경에서는 알려진 취약점(CVE-2023-46604)으로 초기 접근한 뒤 내부 호스트 네 대에서 원격 명령을 실행하는 단계까지 도달했다. 두 실험 모두 새로운 기법이 아니라 외부에 공개된 서비스의 취약점과 잘못된 설정을 이용했다는 점에서, 외곽 접점이 AI 에이전트의 첫 번째 표적이 된다는 본 글의 진단과 일치한다. 또한 원본 GitHub 저장소가 사라진 뒤에도 ARTEX는 여러 운영자에 의해 이름과 화면을 바꾼 채 재사용되고 있다. 자사가 확인한 재배포본에는 DeepSeek, GLM, Kimi, Claude 등 여러 LLM 설정과 함께, 인증 없이 악용 가능한 전자상거래 플랫폼 취약점(CVE-2026-75650)의 공개 PoC를 실행하고 IRC 기반 원격 제어 코드를 심은 흔적이 남아 있었다. 개발자가 공개를 중단해도 도구의 확산은 멈추지 않는다는 뜻이다. 이 보고들에서 드러나는 변화는 공격의 경제성이다. Cairn 사례의 운영자는 100자도 안 되는 중국어 지시문만 입력했고, 이후 에이전트가 사람의 감독 없이 사이트마다 코드 실행 방법을 찾아 웹셸을 설치했다. 취약점 탐색, 공격 경로 시험, 페이로드 수정, 실패 후 재시도처럼 숙련된 인력이 필요했던 반복 작업이 이제 몇 시간씩 쉬지 않고 일하는 에이전트에게 맡겨지고 있다. 오픈 웨이트 AI 모델과 무료로 공개된 에이전트 프레임워크를 손쉽게 결합할 수 있게 되면서, 한때 고급 기술이 있어야 가능했던 사이버 공격은 이제 누구나 실행할 수 있는 수준으로 내려왔다. 국내에서 검거된 비전공자 해커 사례가 이를 보여주며, 이런 작전을 실행하는 비용도 그만큼 빠르게 낮아지고 있다. Microsoft 사례는 이 공격이 어디로 향하는지도 보여준다. Storm-0940의 비밀번호 대입 공격은 분당 최대 2,900회의 로그인 실패를 일으켰지만 한 건도 성공하지 못했다. 실제 침투는 고객이 이미 권한을 허용해 둔 위탁 서비스의 앱 신원을 통해 이뤄졌다. 정면의 인증은 버텼지만, 신뢰받는 외부 연결이 뚫린 것이다. ARTEX와 같은 도구가 국내 금융권 사고에 실제로 어디까지 관여했는지는 아직 조사 중이다. 다만 공개된 보고만으로도 AI 에이전트를 이용한 공격이 가설 단계를 지나 실제 침해에 쓰이고 있다는 점은 분명하며, 공개된 사례는 전체 가운데 일부일 가능성이 높다. 공통 패턴: 뚫린 곳은 외곽 접점이었다 한국과 일본의 사례를 나란히 놓으면 패턴이 거의 같다. 방어가 집중된 내부 핵심 시스템이 아니라, 외부 노출된 앱 백엔드 API, 예약 사이트, 관리도구, 위탁 SaaS 같은 외곽 접점이 뚫렸다. 본 글에서 말하는 외곽 접점은 외부에 노출된 공격 표면(External Attack Surface)과 공급망 및 제3자 접점을 함께 가리킨다. 외곽 접점 유형 한국 사례 일본 사례 공통 약점 외부 노출 앱 백엔드 API 대출모집인 전용 조회 서비스 회원정보 조회 API, 앱·온라인스토어 서버 인증, 인가 검증 미흡, 반복 조회 미탐지 부가 웹 서비스 공제 관련 외부 웹페이지, 대학 포털 백화점 예약 사이트 본 서비스보다 낮은 보안 수준, 핵심 DB와의 연결 관리, 업무 도구 직원용 영업지원시스템 업무용 관리도구, BI 도구 외부 접근 가능, 패치 지연 위탁 SaaS, 공급망 기업용 회계 소프트웨어의 백업 서비스 메일 발송 SaaS, 위탁 EC 플랫폼, 위탁 FAQ 시스템 한 번의 침해가 다수 고객사로 확산 계정, 자격증명 직원 VPN 계정, 학습용 클라우드 계정 업무용 클라우드 계정, 관리자 계정 약한 인증, 다중인증 미적용 방치된 데이터 클라우드에 남은 임시 데이터 파일 시스템 로그 파일, 퇴직자 데이터 보존 기간이 지난 데이터 미삭제 [표 6] 외곽 접점 유형별 한일 사례 비교 이 진단은 AI 에이전트 기반 공격의 기술적 특성과도 정확히 맞닿아 있다. 자율형 공격 에이전트는 고도로 요새화된 핵심 시스템을 정면으로 뚫기보다, 광범위한 외부 공격 표면을 자동으로 전수 스캔해 보안 통제가 상대적으로 느슨한 외곽의 약한 고리를 집요하게 파고든다. 공개된 지 오래된 N-day 취약점, 설정 오류, 약한 인증이 대표적인 표적이다. 사람이라면 우선순위에서 밀렸을 작은 부가 서비스도, 비용이 거의 들지 않는 에이전트에게는 빠짐없이 시도해 볼 대상이 된다. 외곽 접점의 또 다른 특징은 피해가 그 접점에서 끝나지 않는다는 점이다. 예약 사이트에서 그룹 공통 회원 DB로, 위탁 백업 서비스에서 수만 곳의 고객사 데이터로, 위탁 앱 신원에서 고객의 클라우드 테넌트로 이어진 사례가 이를 보여준다. 외곽 접점은 규모가 작아 보여도, 핵심 데이터로 가는 통로가 될 수 있다. 예방: 외곽 접점부터 다시 그려야 한다 예방의 출발점은 조직이 인터넷에 무엇을 노출하고 있는지 정확히 아는 것이다. 공격자는 AI 에이전트로 외부 공격 표면을 전수 조사하고 있으므로, 방어자도 같은 관점에서 자산을 다시 파악해야 한다. 특히 본 서비스 옆에 붙은 부가 서비스, 이벤트 페이지, 관리도구, 앱이 호출하는 API처럼 관리 우선순위에서 밀려 있던 자산이 우선 점검 대상이다. 영역 점검 항목 외부 노출 자산 관리 인터넷에 노출된 웹, API, 관리 페이지, 원격접속 지점을 전수 목록화하고 담당자를 지정한다. 쓰지 않는 서비스와 테스트 서버는 외부 접근을 차단한다. 앱 백엔드 API 앱은 언제든 분석될 수 있다고 전제한다. 모든 API 요청에서 서버 측 인증과 객체 단위 인가를 검증하고, 앱 안에 API 키나 인증 정보를 넣지 않는다. 사용자당 조회 건수 제한과 비정상 반복 조회 탐지를 적용한다. 관리, 업무 도구 관리 페이지, BI 도구, 영업지원시스템은 외부에서 직접 접근할 수 없도록 하고, 불가피하면 접근 IP 제한과 다중인증을 적용한다. 이런 도구가 업무 DB를 어디까지 읽을 수 있는지 권한을 최소화한다. 위탁 SaaS, 공급망 위탁 업체가 보유한 데이터와 연결 권한을 목록화한다. 위탁 앱에 부여한 클라우드 권한(OAuth 동의 등)을 정기적으로 검토하고, 위탁 업체의 침해 통보 절차를 계약에 명시한다. 계정과 인증 VPN, 원격접속, 업무용 클라우드 계정에 피싱에 강한 다중인증을 적용한다. 외부에서 확보된 계정 정보를 대입하는 공격에 대비해 로그인 실패 급증과 비정상 위치 접속을 탐지한다. 패치와 지원 종료 인터넷에 노출된 구성 요소(PHP, GitLab, Node.js, DNS 서버 등)는 공개 당일 대응을 목표로 하는 별도 절차를 둔다. 기술지원이 끝난 시스템은 교체 계획을 세우고, 그 전까지 외부 노출을 줄인다. 데이터 최소화 보존 기간이 지난 회원, 퇴직자 정보, 개발용 임시 파일, 개인정보가 남은 로그를 정리한다. 남아 있지 않은 데이터는 유출되지 않는다. 탐지와 관제 외곽 접점의 로그를 핵심 시스템과 같은 수준으로 수집하고, 24시간 관제 범위에 포함한다. 웹 서버가 셸이나 다운로드 도구를 실행하는 행위처럼 침해 후 활동을 탐지하는 규칙을 운영한다. [표 7] 외곽 접점 중심의 예방 점검 항목 AI 에이전트를 이용한 공격은 속도가 빠르다는 점도 고려해야 한다. 최초 표적화에서 특권 접근까지 3시간이 걸리지 않은 사례가 있는 만큼, 수동 점검 후 며칠 안에 패치하는 기존 주기로는 대응이 늦을 수 있다. 웹 방화벽 규칙의 선제 적용, 노출 자산의 즉시 차단처럼 자동화된 대응 수단을 미리 준비해 두어야 한다. 반대로 방어 측도 AI 기반 취약점 점검을 활용해, 공격자보다 먼저 외곽의 약한 고리를 찾아내는 것이 바람직하다. 대응: 침해가 의심될 때 침해 사고는 초기 대응 속도에 따라 피해 규모가 크게 달라진다. 이번 사례에서도 공격 후 수일이 지나서야 피해를 인지한 경우가 있었고, 그 사이 추가 유출이 이어질 수 있었다. 단계 대응 내용 초동 조치 공격 IP와 악용된 경로를 차단하고 해당 서비스를 격리한다. 증거 보존을 위해 서버를 바로 초기화하지 않고 로그, 메모리, 디스크 이미지를 먼저 확보한다. 범위 확인 침해된 외곽 접점에서 연결된 DB, 내부 시스템, 위탁 업체 시스템까지 접근 흔적을 추적한다. 취약점 정보가 공개 전에 유출된 경우를 고려해 공개일 이전까지 로그를 거슬러 점검한다. 자격증명 조치 침해 경로와 관련된 계정, API 키, 접근 토큰을 폐기하고 재발급한다. 웹셸 등 지속성 확보 수단이 남아 있는지 확인한다. 신고 국내의 경우 정보통신망법에 따라 침해사고를 인지하면 24시간 이내에 과학기술정보통신부 또는 한국인터넷진흥원(KISA, 국번 없이 118)에 신고한다. 개인정보가 유출됐다면 개인정보보호법에 따라 원칙적으로 인지 후 72시간 이내에 정보주체에게 통지하고 개인정보보호위원회 또는 KISA에 신고한다. 금융회사는 금융감독원에 보고하고, 범죄 피해는 경찰청 사이버수사 부서에 신고한다. 2차 피해 방지 유출된 정보를 이용한 피싱, 스미싱, 계정 대입 공격이 이어질 수 있으므로 이용자에게 비밀번호 변경과 사칭 연락 주의를 안내한다. 공격자의 금전 요구에는 응하지 않고 수사기관과 협의한다. [표 8] 침해 의심 시 단계별 대응 절차 방어의 무게중심을 바꿀 때 이번 한 달간의 사고는 보안의 무게중심이 이동하고 있음을 보여준다. 지금까지 많은 조직이 핵심 시스템을 중심으로 방어를 설계했지만, 공격자는 그 바깥의 작은 접점을 찾아 들어왔다. AI 에이전트는 이 탐색을 싸고 빠르게 만들었고, 그 결과 규모가 작아 관리에서 밀려 있던 자산이 가장 먼저 표적이 됐다. 따라서 앞으로의 방어는 무엇을 가장 단단히 지킬 것인가보다, 공격자가 어디서부터 들어올 수 있는가를 먼저 묻는 데서 시작해야 한다. 외부 노출 자산 관리, API 인증과 인가, 위탁 업체 연결 통제, 다중인증, 신속한 패치, 데이터 최소화는 새로운 대책이 아니다. 그러나 이번 사고들은 이 기본 조치가 외곽 접점까지 빠짐없이 적용되지 않으면 AI가 그 빈틈을 먼저 찾아낸다는 사실을 분명히 보여줬고, 본 글이 AI 기반 자동화 공격과 외곽 접점 침해에 초점을 맞춘 이유도 여기에 있다. AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC ARTEX로 살펴본 AI 자율 침투의 위협 2026-10-15
개요 AI는 자료 조사와 문서 작성, 코드 분석처럼 사람이 직접 하던 여러 업무에 쓰이고 있다. 2026년 기업 조사 에서도 AI를 활용하는 조직의 적용 범위가 전년보다 넓어진 것으로 나타났다. 최근에는 개별 작업을 돕는 데서 나아가 여러 단계를 이어 수행하도록 맡기면서 업무의 상당 부분을 자동화하려는 흐름도 나타난다. 보안 분야도 마찬가지다. 대표적인 예시로 GitHub에는 LLM으로 코드의 취약점을 찾는 Vulnhuntr 와 Ghidra를 LLM과 연결해 리버싱을 돕는 GhidraMCP 등이 공개돼 있다. 침투 테스트 분야에도 PentestGPT , CyberStrikeAI 처럼 여러 단계의 작업을 에이전트와 보안 도구로 연결하는 오픈소스 프로젝트가 존재한다. ARTEX도 이러한 자율 침투 도구 중 하나다. 사용자가 대상과 목표를 입력하면 여러 에이전트가 자산을 조사하고, 도구를 선택해 작업을 수행한다. 미리 정해진 절차만 반복하는 게 아닌 이전 작업의 결과를 바탕으로 다음 행동을 정한다. ARTEX에 주목한 계기는 인터넷에 노출된 웹 콘솔이었다. 웹 콘솔을 단서로 관련 인프라를 추적하자 일부 호스트에서 공격 목적의 활동과 부합하는 운영 자료도 발견되었다. 실제 공격에 활용됐을 가능성을 보여주는 자료가 확인된 만큼, 오픈소스로 공개된 ARTEX를 별도의 테스트 환경에 설치하여 자율 침투가 어디까지 가능한지 살펴봤다. 서로 다른 환경에서 진행된 각각의 테스트에서는 대상과 목표, 허용 범위를 전달했지만 서비스명이나 취약점, 구체적인 공격 절차는 알려주지 않았다. 그 결과 파일 업로드 취약점이 있는 웹 서버에서는 웹 셸을 통해 프로그램을 실행했고, Apache ActiveMQ를 노출한 환경에서는 초기 접근에 이어 내부 호스트 네 대에서 원격 명령을 실행했다. 사용자가 공격 과정을 세세하게 지시하지 않아도 취약한 환경에서는 명령 실행과 내부망 이동까지 이어질 수 있음을 보여준다. 본 글에서는 인터넷에 노출된 ARTEX를 추적하다 공격 활동의 정황을 확인한 경위와 도구의 동작 구조를 살펴보고, 두 가지 재현 실험에서 확인한 공격 범위와 대응 관점을 제시한다. 외부에 노출된 ARTEX와 공격 활동 정황 ARTEX 운영 시스템 분포 현황 인터넷에 노출된 ARTEX 관련 IP를 모두 공격자 주소로 분류하거나, 도구를 내려받은 이용자 또는 ARTEX가 조사한 대상의 IP로 해석할 수는 없다. AhnLab에서 ARTEX 웹 콘솔의 특징을 단서로 노출 인프라를 추적한 결과, ARTEX 인스턴스를 호스팅한 공인 IP 주소 600개가 확인됐다. 이에 대한 상세 내용은 AI가 공격의 진입장벽을 낮춘다: 안랩이 추적한 ARTEX 인프라 | AhnLab 에서 확인할 수 있다. 발견된 IP 주소는 인터넷에 공개된 ARTEX 운영 시스템의 분포를 보여준다. 국가 및 지역 IP 수 비중 미국 322 53.7% 중국 119 19.8% 홍콩 67 11.2% 싱가포르 33 5.5% 기타 17개 국가 및 지역 59 9.8% 합계 600 100.0% 표 1.국가 및 지역은 IP 주소의 위치에 대한 추정치. 데이터 제공: DB-IP.com Country Lite 2026년 10월판, CC BY 4.0. IP의 국가 및 지역 정보만으로 운영자의 국적이나 공격 출발지를 판단할 수는 없지만 600개 호스팅 IP를 DB-IP Country Lite 2026년 10월판과 대조한 결과, 미국, 중국, 홍콩과 싱가포르에 541개(90.2%)가 분포하고 있음을 확인했다. 추가로 2026.10.14 일자 기준으로 인터넷에 공개된 ARTEX 운영 시스템의 IP는 약 900개가 넘은 것으로 확인됐다. ASEC가 ARTEX 관련 인프라의 노출 웹 서비스를 추가로 조사한 결과( ARTEX의 진화: 안랩이 추적한 AI 기반 침투 테스트 인프라 | AhnLab ), AI API 게이트웨이인 Sub2API가 252건, 공격 표면 관리 도구인 Scope Sentry가 22건, AI 침투 테스트 플랫폼인 CyberStrikeAI가 15건 확인됐다. 다만 해당 조사 내용은 앞서 언급한 600개 IP의 국가 분포와 집계 기준이 다르지만, ARTEX를 호스팅한 일부 환경에 다른 AI 및 보안 도구도 함께 노출돼 있음을 알 수 있다. ARTEX 노출 호스트에서 공격자 활동 흔적 확인 ARTEX 인프라 추적: 실제 공격 활동 정황 포착 | AhnLab 에 공개된 내용처럼, 앞서 확인한 IP에서 어떤 도구와 파일이 노출돼 있는지 추가로 조사했다. 그 결과 ARTEX가 배포됐거나 관련 콘텐츠가 확인된 호스트에서 웹 서버를 통해 접근할 수 있는 오픈 디렉터리 두 곳을 발견했다. 두 디렉터리에는 내부망 탐색과 접근, 피벗, 후속 페이로드 운용에 관한 파일이 남아 있었으며, 총 51개를 확보했다. 첫 번째 디렉터리에서는 ARTEX 작업 경로가 남아 있는 스크립트를 포함해 파일 37개를 확보했다. 확보한 파일 중 몇 가지를 살펴보면, ASPX 웹 셸에 명령을 전송하도록 작성된 ws.sh 파일과, 외부 연결을 내부 RDP 서비스로 중계하도록 구성된 pivot_relay.ps1 스크립트 파일이 존재했다. 릴레이 파일의 다운로드와 연결 기록, xfreerdp 프로세스 실행 흔적도 남아 있어 내부 시스템으로 RDP 접속을 시도한 과정까지 확인할 수 있었다. 두 번째 디렉터리에서는 스캔 결과와 스크립트, 실행 파일 등 14개를 확보했다. 스캔 결과에는 Kubernetes Pod 네트워크의 활성 시스템 85대와 별도 내부망의 8대가 기록돼 있었다. 함께 발견된 extract_hprof.py는 JVM 힙 덤프에서 자격증명 관련 문자열을 찾도록 작성됐으며, P.class는 Linux 임플란트를 내려받아 실행하도록 설계돼 있었다. LocaleMgr.exe에서는 명령 실행과 파일 조작, 터널 기능에 관한 문자열도 확인됐다. 앞서 확인된 900개 이상의 IP 전체를 공격자 인프라로 분류하거나 특정 공격 그룹 및 캠페인과 연결할 수는 없다. 또한 두 디렉터리에서 확보한 파일 역시 ARTEX의 기본 툴킷만으로 구성된 것은 아니다. ARTEX는 사용자 지정 도구를 추가할 수 있어, 공격자는 대상에 맞춰 별도로 확보하거나 직접 제작한 스크립트와 악성코드를 조합해 사용할 수 있다. 다만 두 운영 디렉터리와 관련한 IoC에는 앞서 확인한 600개 주소에 포함된 IP 두 개와 악성코드 및 파일 MD5 해시 18개가 담겨 있었고, 이를 운영 디렉터리의 자료와 함께 보면 ARTEX가 확인된 일부 호스트는 공격 목적의 활동이나 그 준비에 쓰였을 것으로 추정된다. 확보한 IoC 정보는 아래 표에서 확인할 수 있다. 유형 IoC IP 134.122.137[.]132 IP 204.194.51[.]54 MD5 085f53a1ce8c634ac7b0d63e42b56b15 MD5 0c501aca4fc29efe47f122ddc9c1af85 MD5 0eb259067e565221109a3ee988e1faa3 MD5 220a1465b2c5ee3ec86861ee17a91e2f MD5 2d13374c14bcaaa99ab00f16cc18b300 MD5 326bb512422930f723e8434d219bea15 MD5 4fff3a0e67210deea726a3bd8c0b625f MD5 5881f74d3bb167e48f6e61c8d9c220e7 MD5 5a38c92fcf2772f65517485f3a23810e MD5 5d151bb4512fc48932a83d3bc24ea806 MD5 6593d2601f967566ae1efe521ec7b470 MD5 773dc8997a50425fb4146161d747c10f MD5 78c3efc26c8db056933da58032361706 MD5 8858508e75ac58ce586631101be87973 MD5 912e8bb04a86f34c76d7d9bad8b67685 MD5 baddd4d75a6980e0df8d47333d9472c3 MD5 be4033d98dd65437516a94048adc8ac5 MD5 fec5d7eb6cf4ed6cfbcd2c588bb761af 표 2. IoC 정보 공격에 사용된 흔적이 남았거나 후속 활동을 위해 준비된 도구의 상세 내역과 두 사례의 자세한 흐름은 중국 AI 모의해킹 툴 ARTEX 인프라 분석 #3 – AhnLab TIP 에서 확인할 수 있다. ARTEX의 동작 방식과 구조 사용자가 ARTEX 웹 UI에서 자산과 작업을 등록하고 LLM을 연결하면 서버가 에이전트의 실행 상태를 관리하고, 수집한 자산 정보와 작업 이력은 PostgreSQL에 저장된다. 사용자는 같은 화면에서 진행 상황과 결과를 확인할 수 있으며, ARTEX는 승인 절차로 작업을 통제하고 Worker가 사용하는 일부 도구의 통신을 기록용 프록시에 남긴다. ARTEX는 대상 자체에 관한 정보와 작업 중 내린 판단을 각각 자산 그래프와 탐색 그래프로 관리한다. 자산 그래프에 저장된 도메인, IP 주소, 서비스, 애플리케이션, 엔드포인트 정보는 여러 작업에서 공유하고, 탐색 그래프에는 목표와 확인한 사실, 발견한 취약점, 후속 판단이 어떻게 이어졌는지를 남긴다. 두 기록을 연결해 보면 다음 작업의 근거를 확인할 수 있고, 같은 자산을 반복해서 조사하는 일도 줄일 수 있다. 사용자가 목표와 허용 범위를 입력하면 Goals가 이를 정리하고, Planner는 확보한 자산 정보와 관측 결과를 바탕으로 다음 탐색 작업인 Intent를 만든다. Worker가 그 작업에 맞춰 도구를 실행하고 새로 확인한 정보를 기록하면, Planner는 돌아온 결과를 살펴 후속 작업을 정한다. 에이전트 작업 흐름에서 맡는 역할 Goals 목표와 시험 범위를 정리 Planner 확보한 정보를 검토하고 다음 작업을 결정 Worker 도구를 실행하고 확인한 결과를 기록 표 3. 자율 작업에 활용되는 에이전트 LLM이 시험 방향을 정하면 Skill이 도구 사용 절차를 안내하고, Tool이 명령 실행이나 HTTP 요청을 통해 대상과 상호작용한다. 사용할 수 있는 도구와 권한, 네트워크 접근 범위에 따라 같은 목표를 입력해도 결과가 달라질 수 있으며, 대상 시스템에는 에이전트의 이름보다 실제 도구가 보낸 요청과 그 뒤에 발생한 실행 행위가 남는다. ARTEX 침투 테스트 ARTEX를 활용했을 때 실제 침투까지 도달할 수 있는지 확인하기 위해서 ARTEX를 활용한 침투 테스트를 진행했다. 테스트에서는 대상과 목표, 허용 범위를 전달한 뒤 ARTEX가 노출된 기능을 조사하며 어디까지 작업을 이어가는지 확인했다. 진행된 테스트는 총 2번으로, 서로 다른 환경과 목표를 대상으로 테스트를 진행하였다. 웹 서버를 대상으로 진행된 실험에서는 웹 페이지에 존재하는 파일 업로드 기능을 이용하여 임의의 프로그램 실행을 목표로 삼았고, The DFIR Report의 초기 노출 조건을 별도 실험망에 모사한 ActiveMQ 실험에서는 초기 침투 후 내부망 이동까지를 최종 목표로 설정하여 테스트를 진행했다. 공격 흐름은 다음과 같다. 그림 1. ARTEX를 활용한 침투 테스트 흐름 두 실험에서 사용자는 대상과 목표, 허용 범위만 전달했으며 ARTEX는 서비스 탐색 결과를 바탕으로 각각 다른 진입점을 선택했다. 전달한 프롬프트는 매우 단순했다. 보안 분야에 대한 전문적인 지식을 갖추지 못한 사용자도 입력할 수 있을 정도의 ‘공격 대상에 침투해줘. 지정한 대상만 공격해줘.’ 수준으로 프롬프트를 전달했다. 그럼에도 불구하고 사용자 짧은 요청 하나만으로 사람의 중간 개입 없이, 웹 서버에서는 업로드 기능을 통해 단일 호스트의 프로그램 실행까지 목표를 달성했으며 ActiveMQ에서는 외부 서버의 초기 접근을 발판으로 내부 호스트 네 대의 원격 명령 실행까지 도달했음을 확인했다. ARTEX의 구조와 동작 방식, 테스트 환경 및 공격 과정에 관한 상세 내용은 「AI 기반 자율 침투 테스트 도구 ARTEX의 구조와 동작 분석」 에서 확인할 수 있다. 두 테스트 진행 방식과 최종 결과를 정리하면 다음 표와 같다. 두 테스트에서 확인한 자율 침투 범위 진행 단계 웹 취약점 대상 침투 테스트 소프트웨어 취약점 대상 침투 테스트 사용자가 전달한 요청 단일 IP 조사, 명령 실행을 확인한 뒤 calc.exe 실행 외부 대상 침투 후 이동 가능한 내부 호스트로 측면 이동 ARTEX가 찾은 진입점 웹 페이지의 파일 업로드 기능 TCP 61616의 OpenWire, ActiveMQ 5.15.15와 CVE-2023-46604 확인된 초기 실행 웹 셸 업로드 후 Windows 11에서 계산기 프로그램 실행 XML 수정 끝에 명령 출력 확인, PowerShell 셸 연결과 테스트 파일 생성 이후 진행 SMB 서비스 발견 후 Impacket 설치 및 점검 내부 자산과 계정 조사 후 네 호스트에서 원격 명령 실행 사용자 중간 개입 X X 최종 도달 범위 웹 서버 한 대에서 프로그램 실행 경계 서버 BEACHHEAD01에 초기 접근, 내부 호스트 네 대에서 원격 명령 실행 표 4. 테스트별 진행 방식 및 결과 ARTEX 공격 흐름과 User-Agent 기반 탐지의 한계 ASEC 테스트 결과, ARTEX는 외부에 공개된 서비스와 기능을 탐색하고, 보안 설정이 미흡하거나 취약하게 운영되는 환경을 대상으로 다양한 공격을 시도하는 것으로 확인됐다. 이 과정에서 ARTEX가 직접 보내거나 외부 도구를 통해 전송한 요청에는 서로 다른 User-Agent가 기록될 수 있지만, 모든 작업이 요청을 발생시키는 것은 아니며 HTTP가 아닌 통신에는 이 값이 존재하지 않는다. HTTP 요청에서도 도구 설정이나 로그 수집 방식에 따라 값이 남지 않거나 공격자가 변경할 수 있으므로, 특정 User-Agent만으로 ARTEX의 활동을 탐지하거나 차단하기는 어렵다. 아래 그림은 ‘파일 업로드 공격 사례’를 기반으로 구성한 공격 흐름과 함께, PoC에서 실제 확인된 요청과 코드 및 문서에서만 확인된 요청을 구분하여 보여준다. 그림 2. ARTEX 공격 흐름에 따른 기능별 User-Agent 기능별 User-Agent 확인 결과 PoC 테스트 결과, ARTEX의 기능과 호출 도구에 따라 서로 다른 User-Agent가 기록됐다. ARTEX 실행 호스트가 GitHub에 업데이트를 확인할 때는 ‘artex-selfupdate’, 공격 대상의 웹페이지를 조회할 때는 ‘norma/0.4’, 파일을 업로드할 때는 ‘curl/<버전>’이 확인됐다. 이 가운데 artex-selfupdate는 GitHub에 전송되는 요청이므로 공격 대상 웹 서버의 접속 로그에는 남지 않는다. 네트워크 정찰과 확산에는 nmap, nxc, impacket 등의 외부 도구가 사용될 수 있다. HTTP 요청이 발생하면 각 도구의 User-Agent가 기록될 수 있지만, HTTP가 아닌 통신에는 User-Agent가 남지 않는다. 따라서 관련 활동을 확인하려면 웹 접속 로그뿐만 아니라 방화벽, 네트워크 연결 및 서비스 접속 기록도 함께 살펴봐야 한다. ARTEX 소스코드에는 ‘artex-enrich/1.0’이, api-recon 참고 스크립트에는 ‘Mozilla/5.0 (spa-api-recon)’과 ‘Mozilla/5.0 (spa-api-recon spider)’가 User-Agent로 설정돼 있다. 그러나 분석한 ARTEX 버전에서는 artex-enrich 기능을 호출하는 부분이 연결돼 있지 않았고, 이번 PoC에서는 api-recon 스크립트를 실행하지 않았다. 이에 따라 해당 값들은 실제 통신에서 확인된 흔적이 아니라, 기능이나 버전에 따라 기록될 가능성이 있는 정보로 구분해야 한다. 탐지 한계와 대응 방향 ARTEX의 활동을 조사할 때는 특정 User-Agent 하나만으로 전체 공격 행위를 확인하기 어렵다. ARTEX와 외부 도구가 서로 다른 값을 사용하고, 기능이나 통신 방식에 따라 User-Agent가 기록되지 않을 수도 있기 때문이다. 또한 공격자가 값을 변경하거나 제거할 수 있고, curl과 같은 도구는 정상적인 관리 업무에도 사용된다. 따라서 User-Agent는 공격 활동을 추적하기 위한 단서로 활용하되, 특정 값이 발견됐다는 이유만으로 ARTEX의 사용이나 침투 성공을 단정해서는 안 된다. AI를 활용한 공격은 정찰, 서비스 탐색, 파일 업로드, 명령 실행 및 내부망 접근을 하나의 연속된 과정으로 자동화할 수 있다. 이에 대응하려면 특정 User-Agent나 개별 도구의 탐지에 의존하기보다, 각 행위가 어떤 순서와 관계로 이어졌는지를 전체 공격 흐름의 관점에서 분석해야 한다. 이를 위해 서버와 PC의 파일 및 프로세스 실행을 확인할 수 있는 EDR을 운영하고, 웹, 네트워크, 인증 로그와 단말 탐지 결과를 연계하는 XDR 기반의 분석 체계를 갖출 필요가 있다. 여러 보안 기록을 함께 분석해야 User-Agent가 변경되거나 남지 않은 경우에도 초기 침투, 명령 실행 및 내부망 이동의 징후를 식별할 수 있다. 결론 두 차례의 실험에서 ARTEX는 사용자가 제시한 목표를 세부 작업으로 나누고, 각 도구의 실행 결과에 따라 공격 방법과 다음 작업을 스스로 조정하며 침투를 이어갔다. 웹 서버 환경에서는 파일 업로드 경로를 찾아 프로그램을 실행했으며, ActiveMQ 환경에서는 초기 접근 이후 내부 호스트 4대에서 원격 명령을 실행하는 단계까지 도달했다. 인터넷에 노출된 ARTEX 호스팅 인프라를 조사한 결과, 일부 서버에서는 ARTEX 작업 경로와 공격 운영에 사용된 것으로 보이는 자료가 함께 확인됐다. 다른 서버에서는 CyberStrikeAI와 AI API 게이트웨이 등 여러 AI 관련 도구도 발견됐다. 이는 공개된 AI 기반 공격 도구가 단순한 실험이나 개념 검증을 넘어, 실제 공격을 준비하거나 수행하는 환경에 활용될 가능성이 있음을 보여준다. 이번 실험을 통해 ARTEX가 공개된 서비스의 취약점과 잘못된 설정을 이용해 초기 접근부터 명령 실행, 내부망 접근까지 침투 범위를 확대할 수 있음을 확인했다. 이는 AI 기반 자율 침투 도구가 이미 현실적인 위협으로 자리 잡았으며, 앞으로 그 영향력이 더욱 확대될 수 있음을 보여준다. AI를 활용한 공격 시도는 앞으로 더욱 증가할 가능성이 높다. 그러나 대응의 기본 원칙이 달라지는 것은 아니다. 외부에 공개된 서비스와 관리 기능을 식별해 불필요한 노출을 줄이고, 취약점과 잘못된 설정을 신속하게 보완해야 한다. 계정 권한과 내부망 접근도 최소 범위로 제한해야 한다. 또한 EDR을 통해 서버와 PC의 파일 및 프로세스 실행을 확인하고, XDR을 기반으로 웹, 네트워크, 인증 로그와 단말 탐지 결과를 연계해야 한다. 이를 통해 초기 침투부터 명령 실행, 내부 정찰, 내부망 이동까지 이어지는 공격 흐름을 조기에 식별하고 대응할 수 있다. MD5 085f53a1ce8c634ac7b0d63e42b56b15 0c501aca4fc29efe47f122ddc9c1af85 0eb259067e565221109a3ee988e1faa3 220a1465b2c5ee3ec86861ee17a91e2f 2d13374c14bcaaa99ab00f16cc18b300 IP 134[.]122[.]137[.]132 204[.]194[.]51[.]54 AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC Sharpire를 설치하는 ActiveMQ 취약점 공격 사례 (Kinsing) 2025-10-28
AhnLab SEcurity intelligence Center(ASEC)은 Kinsing 공격자가 최근까지도 알려진 취약점을 이용해 악성코드를 유포 중인 것을 확인하였다. 공격자는 ActiveMQ의 CVE-2023-46604 취약점이 공개된 이후부터 이를 공격하여 악성코드를 설치해 왔으며 리눅스뿐만 아니라 윈도우 시스템도 그 대상이다. [1] 최신 공격 사례에서 사용된 악성코드들로는 이미 알려진 XMRig나 Stager뿐만 아니라 Sharpire가 있다. Sharpire는 Powershell Empire를 지원하는 닷넷 백도어로서 공격자는 감염 시스템에 대한 제어를 탈취하는 과정에서 CobaltStrike / Meterpreter 및 Powershell Empire를 함께 사용하고 있다. 1. Kinsing (H2Miner) Kinsing은 H2Miner라고도 불리며 2020년 1월 Alibaba Cloud Security 팀에 의해 최초로 확인되었다. [2] 부적절하게 관리되거나 취약한 서비스들을 대상으로 코인 마이너를 설치하는데 새로운 취약점이 공개될 때마다 여러 공격 기법들이 추가되고 있다. Kinsing 공격자는 도커 환경의 경우 잘못된 설정을 갖는 도커 데몬 API 포트와 [3] Redis의 경우 원격 코드 실행 취약점을 공격하였다. 이외에도 CVE-2021-44228 Log4j 취약점이나 ActiveMQ의 CVE-2023-46604 취약점 사례가 알려져 있다. [4] 취약점 공격 외에도 측면 이동 과정에서 감염 시스템에 저장된 SSH 자격 증명 정보를 활용하기도 한다. [5] 2. ActiveMQ의 CVE-2023-46604 취약점 CVE-2023-46604는 오픈 소스 메시징 및 통합 패턴 서버인 Apache ActiveMQ 서버의 원격 코드 실행 취약점이다. 만약 패치되지 않은 Apache ActiveMQ 서버가 외부에 노출되어 있을 경우 공격자는 원격에서 악의적인 명령을 실행하여 해당 시스템을 장악할 수 있다. 취약점 공격은 classpath에 있는 클래스를 인스턴스화하도록 OpenWire 프로토콜에서 직렬화된 클래스 유형을 조작하는 방식으로 이루어진다. 만약 공격자가 조작된 패킷을 전송할 경우 취약한 서버에서는 패킷에 포함된 경로 즉 URL을 참고하여 클래스 XML 설정 파일을 로드한다. Apache ActiveMQ 보안 업데이트 권고 (CVE-2023-46604) [6] CVE-2023-46604는 공개된 지 얼마 되지 않아 악용되기 시작하였으며 국내 시스템들을 기준으로도 Andariel 그룹이나 HelloKitty 랜섬웨어 [7] , Mauri 랜섬웨어 등의 공격 사례가 확인되었다. [8] 3. Kinsing 공격자의 최신 공격 사례 최근 국내 취약한 ActiveMQ 서버를 대상으로 CVE-2023-46604 취약점 공격을 통해 악성코드를 유포하는 사례가 확인되었다. 일반적으로 다양한 코인 마이너 공격자들이 CVE-2023-46604 취약점을 공격하지만 이번에 확인된 Kinsing 공격자는 다양한 악성코드들이 함께 사용한 것이 특징이다. Figure 1. Stager 다운로더를 설치하는 취약한 ActiveMQ 서비스 취약한 Apache ActiveMQ의 자바 프로세스는 공격자로부터 전달받은 조작된 패킷을 참고하여 XML 설정 파일을 로드한 후 XML 설정 파일을 참고하여 지정한 명령을 실행하게 된다. 다음은 공격에 사용된 XML 설정 파일로서 msiexec 명령을 이용해 외부에서 MSI 악성코드를 설치하는 기능을 담당한다. Figure 2. 공격에 사용된 클래스 XML 설정 파일 공격 과정에서는 MSI뿐만 아니라 “mm13.exe”라는 이름의 악성코드를 설치하기도 했는데 MSI 및 “mm13.exe” 모두 다운로더 악성코드이다. 현재 기준 다운로드가 불가하여 어떠한 악성코드를 다운로드하였는지는 알 수 없지만 일반적으로 CobaltStrike나 Metasploit의 Meterpreter를 메모리에서 다운로드해 실행하는 기능을 담당하며 Stager라고도 불리는 유형이다. Figure 3. Stager의 다운로드 주소 참고로 공격에 사용된 주소에서는 리눅스 대상 악성코드들도 함께 확인되었다. 다음과 같이 상대적으로 단순한 형태의 Bash 스크립트인데 XMRig의 설정 파일에는 과거 Fortinet 보고서에서 언급된 Kinsing 공격자의 지갑 주소가 포함되어 있다. [9] Figure 4. Kinsing 공격자의 Bash 악성코드 Wallet – 1 : “linux” Password – 1 : “linux” Wallet – 2 : “89UoMhtsrpaJTvmJBbvy1cTdg38pomPFnW5Z4sniL2izcLQyGBkEGd96TcBJtzQUi6KAL5Ehe4cFpEMNdGF7tFKpJ1DqE8X” Password – 2 : “lin” 공격자의 다운로드 서버에는 이외에도 Sharpire라는 이름의 악성코드가 존재한다. [10] 오픈 소스 Post-Exploitation 프레임워크 중에는 Powershell Empire가 있는데 이름과 같이 파워쉘로 개발되었으며 다양한 공격자들에 의해 사용되고 있다. Sharpire는 Powershell Empire를 지원하는 닷넷으로 개발된 백도어이다. 공격자는 CobaltStrike 또는 Meterpreter뿐만 아니라 Sharpire를 활용해 감염 시스템을 제어하였을 것으로 추정된다. Figure 5. Sharpire의 설정 데이터 명령 기능 기본 파워쉘 명령 실행 (전체) shell 파워쉘 명령 실행 (인자) ls, dir, gci 디렉터리 조회 mv, move 파일 이동 cp, copy 파일 복사 rm, del, rmdir 파일 삭제 cd 현재 디렉터리 변경 ifconfig, ipconfig 네트워크 설정 정보 조회 ps, tasklist 프로세스 조회 route 라우팅 테이블 정보 조회 whoami, getuid 현재 사용자 조회 hostname 호스트 이름 조회 reboot, restart 시스템 재부팅 shutdown 시스템 종료 Table 1. Sharpire가 지원하는 명령 목록 4. 결론 공격자들은 패치되지 않은 취약한 Apache ActiveMQ 서비스를 대상으로 지속적으로 공격을 수행하고 있다. 확인된 공격들 중에는 Kinsing 공격자 사례가 있으며 과거처럼 코인 마이너를 설치하여 암호 화폐를 채굴하는 것이 주 목적이지만 감염 시스템을 제어하기 위한 악성코드들도 함께 확인되고 있다. Kinsing 공격자는 XMRig뿐만 아니라 CobaltStrike나 Meterpreter 그리고 Sharpire와 같은 원격 제어 도구들을 감염 시스템에 설치하고 있다. 공격자는 이를 활용해 암호 화폐 채굴뿐만 아니라 정보를 탈취하거나 랜섬웨어를 설치할 수 있다. MD5 28fb07cf6dcd072c3d0b82c60ce30bef 72a37a2fa588e013eafd695b8b5b0e61 a0c4c98a37562da3b94a9ac3f0dd56fb b512bfd19bf46dd3e735c331d768ea42 bf17b21c8e9f34a209977e0f2dce92c4 URL http[:]//gloryweb[.]vip/lin/config[.]json http[:]//gloryweb[.]vip/lin/go[.]sh http[:]//gloryweb[.]vip/lin/javarunprocess http[:]//gloryweb[.]vip/mm46[.]msi http[:]//gloryweb[.]vip[:]2086/ FQDN gloryweb[.]vip
ASEC Apache ActiveMQ 취약점(CVE-2023-46604)을 공격하는 Mauri 랜섬웨어 공격자 2024-12-02
AhnLab SEcurity intelligence Center(ASEC)은 과거 수 차례의 블로그 포스팅들을 통해 CVE-2023-46604 취약점 대상 공격 사례들을 다루었다. 취약점 패치가 이루어지지 않은 시스템들은 아직까지도 지속적인 공격 대상이 되고 있으며 주로 코인 마이너 설치 사례들이 확인된다. 하지만 최근 Mauri 랜섬웨어를 사용하는 공격자가 Apache ActiveMQ 취약점을 악용해 국내 시스템을 공격 중인 정황을 확인하였다. 1. Apache ActiveMQ 취약점 (CVE-2023-46604) CVE-2023-46604는 오픈 소스 메시징 및 통합 패턴 서버인 Apache ActiveMQ 서버의 원격 코드 실행 취약점이다. 만약 패치되지 않은 Apache ActiveMQ 서버가 외부에 노출되어 있을 경우 공격자는 원격에서 악의적인 명령을 실행하여 해당 시스템을 장악할 수 있다. 취약점 공격은 classpath에 있는 클래스를 인스턴스화하도록 OpenWire 프로토콜에서 직렬화된 클래스 유형을 조작하는 방식으로 이루어진다. 만약 공격자가 조작된 패킷을 전송할 경우 취약한 서버에서는 패킷에 포함된 경로 즉 URL을 참고하여 클래스 XML 설정 파일을 로드한다. AhnLab TIP : Apache ActiveMQ 보안 업데이트 권고 (CVE-2023-46604) [1] 해당 취약점은 공개된지 얼마되지 않아 악용되기 시작하였으며 국내 시스템들을 기준으로도 Andariel 그룹이나 HelloKitty 랜섬웨어의 [2] , 코발트 스트라이크 등의 공격 사례가 확인되었다. 또한 패치되지 않은 시스템들은 지속적인 공격 대상이 되어 왔으며 Ladon, Netcat, AnyDesk 그리고 z0Miner 등이 확인되었다. [3] 2. 초기 침투 단계 공격 대상이 된 시스템은 Apache ActiveMQ 서버가 설치되어 있었으며 과거부터 지속적으로 코인 마이너 공격자들에 의한 악성코드 설치 시도 로그들이 확인된다. Mauri 랜섬웨어 공격자 또한 취약점을 공격한 것으로 추정되며 다음과 같이 취약한 ActiveMQ 프로세스에 의해 Frpc가 설치되었다. Figure 1. ActiveMQ 프로세스에 의해 설치되는 Frpc 악성코드가 다운로드된 서버를 확인한 결과 다음과 같이 다양한 악성코드들과 정상 도구들 그리고 클래스 XML 설정 파일들이 존재한다. 취약한 Apache ActiveMQ의 자바 프로세스는 전달받은 조작된 패킷을 참고하여 hxxp://18.139.156[.]111:83/pocw.xml”와 같은 경로에 위치하는 XML 설정 파일을 로드하게 된다. 이후에는 로드한 XML 설정 파일을 참고하여 지정한 명령을 실행하게 된다. Figure 2. 다운로드 서버에 존재하는 악성코드들 3. 원격 제어 3.1. 백도어 계정 XML 파일들은 공격자에 의해 차례대로 사용되는 것으로 보이는데 첫번째 유형들은 “adminCaloX1”이라는 백도어 계정을 추가하고 관리자 계정에 등록 및 RDP 접속이 가능하게 설정하는 명령들이다. 그리고 사설 네트워크에 존재하는 시스템에 RDP로 접속할 수 있도록 Frpc 및 설정 파일을 다운로드하고 실행하는 명령들도 존재한다. Figure 3. 공격에 사용된 클래스 XML 설정 파일들 명령 목록 > powershell user adminCalox Calox@2580 /add > net user adminCaloX1 CaloX@2580 /add > net localgroup Administrators adminCaloX1 /add > net user adminCaloX CaloX@2580 > net user Hell0$ /active:yes > net user admin /delete > shutdown /r /t 0 > net localgroup “Remote Desktop Users” “adminCaloX1” /add Table 1. 공격에 사용된 백도어 계정 계정 등록 명령들 백도어 계정을 추가하는 행위는 이렇게 ActiveMQ 취약점을 악용한 직접적인 명령 실행 방식도 사용되지만 오픈 소스 도구인 CreateHiddenAccount를 사용하기도 한다. [4] 다운로드 서버에는 “user.zip” 압축 파일이 업로드되어 있으며 내부에 “CreateHiddenAccount_v0.2.exe”라는 이름의 CreateHiddenAccount와 이를 Batch 스크립트인 “user.bat”이 존재한다. Batch 스크립트는 CreateHiddenAccount를 이용해 “Hell0$” 계정을 추가하고 은폐하는 역할을 담당한다. 참고로 중국어 사용자가 개발한 CreateHiddenAccount 도구가 사용되었다는 점이나 다운로드 서버에 보안 소프트웨어인 Huorong 설치 파일이 있는점 등을 보면 공격자가 중국어 사용자일 가능성이 존재한다. Figure 4. 은폐 계정을 등록하는 Batch 스크립트 3.2. 백도어 악성코드 Quasar RAT은 닷넷으로 개발된 오픈 소스 RAT 악성코드이다. 일반적인 RAT 악성코드들처럼 프로세스 및 파일, 레지스트리와 같은 시스템 작업, 원격 명령 실행, 파일 업로드 및 다운로드와 같은 기능들을 제공한다. Quasar RAT은 이외에도 키로깅, 계정 정보 수집 기능들을 제공하여 사용자 환경의 정보를 탈취할 수 있고, 원격 데스크탑을 통해 실시간으로 감염 시스템을 제어할 수 있다. 공격자의 다운로드 서버에는 Quasar RAT이 함께 존재하며 C&C 서버 또한 다운로드 서버의 주소와 동일한 것을 보면 RDP를 이용한 원격 제어 외에 Quasar RAT도 함께 사용하는 것으로 보인다. 설정 데이터 TAG Office04 Version 1.3.0.0 C&C 서버 18.139.156[.]111:4782 Mutex QSR_MUTEX_i32rDtGISkwcqkhvjj Table 2. Quasar RAT의 설정 정보 4. 프록시 공격자는 ActiveMQ 취약점을 악용하여 실행된 파워쉘 명령으로 Frpc 및 설정 파일을 설치하였다. FRP(Fast Reverse Proxy)는 Go 언어로 개발된 오픈 소스 도구로서 NAT 환경이나 방화벽 내에 위치한 시스템을 외부에 노출시켜 주는 리버스 프록시로 동작할 수 있다. FRP는 Frpc와 Frps로 나뉘는데 Frpc는 감염 시스템에 설치되는 도구로 노출시킬 서비스의 포트와 외부에 위치한 중계기를 연결해 준다. 설정 데이터는 결국 감염 시스템의 3389 포트와 공격자를 중계하는 역할을 담당한다. 이는 감염 시스템이 사설 네트워크에 존재할 경우를 대비하여 공격자가 RDP 서비스에 연결할 수 있도록 도와주기 위한 목적이며 공격자는 위에서 다룬 백도어 계정들을 악용해 감염 시스템에 RDP로 접근할 것으로 추정된다. 참고로 Frpc가 연결하는 주소는 국내의 또 다른 시스템이며 이는 공격자가 이미 해당 시스템을 장악한 이후 Frps를 설치한 것으로 보인다. Figure 5. 공격자의 Frpc 설정 파일 5. Mauri 랜섬웨어 실제 공격 사례는 아직 확인되지 않았지만 다운로드 서버에는 Mauri 랜섬웨어가 업로드되어 있다. Mauri 랜섬웨어는 “mauri870”이라는 개발자가 연구 목적으로 개발한 랜섬웨어이다. [5] 해당 소스 코드는 다른 공격자들에 의해 자주 사용되고 있는 것인지 MauriCrypt로 탐지되고 있다는 내용도 설명에 함께 포함되어 있다. 소스 코드가 공개되어 있다 보니 다른 공격자들에 의해서도 자주 악용되고 있는데 과거 Mimo 공격자가 Mimus라는 이름으로 Mauri 랜섬웨어를 공격에 사용하기도 하였다. [6] Figure 6. Mauri 랜섬웨어의 깃허브 페이지 설정 설명 암호화 알고리즘 AES-256 CTR 암호화 확장자 .locked 랜섬노트 이름 “READ_TO_DECRYPT.html”, “FILES_ENCRYPTED.html” 암호화 제외 경로 “DocumentsFavorites”, “Pictures”, “Videos”, “Music”, “Favorites”, “Windows”, “bootmgr”, “$WINDOWS.~BT”, “Windows.old”, “Temp”, “tmp”, “Program Files”, “Program Files (x86)” 암호화 대상 확장자 “.zip”, “.exe”, “.sxi”, “.sti”, “.sldx”, “.sldm”, “.tar”, “.tgz”, “.gz”, “.7z”, “.rar”, “.m4u”, “.mkv”, “.sh”, “.class”, “.jar”, “.rb”, “.asp”, “.jsp”, “.ps1”, “.cmd”, “.h”, “.pas”, “.cpp”, “.cs”, “.suo”, “.sln”, “.der”, “.ips”, “.dll”, “.config”, “.lic”, “.dat”, “.xml”, “.ldb”, “.key”, “.vbs”, “.bump”, “.bat”, “.DBF”, “.json”, “.doc”, “.docx”, “.msg”, “.odtpas”, “.wpd”, “.wps”, “.txt”, “.csv”, “.pps”, “.ppt”, “.pptx”, “.aif”, “.iif”, “.m3u”, “.m4a”, “.mid”, “.mp3”, “.mpa”, “.wav”, “.wma”, “.3gp”, “.3g2”, “.avi”, “.flv”, “.m4v”, “.mov”, “.mp4”, “.mpg”, “.vob”, “.wmv”, “.3dm”, “.3ds”, “.max”, “.obj”, “.blend”, “.bmp”, “.gif”, “.png”, “.jpeg”, “.jpg”, “.psd”, “.tif”, “.gif”, “.ico”, “.ai”, “.eps”, “.ps”, “.svg”, “.pdf”, “.indd”, “.pct”, “.epub”, “.xls”, “.xlr”, “.xlsx”, “.accdb”, “.sqlite”, “.dbf”, “.mdb”, “.pdb”, “.sql”, “.db”, “.sdb”, “.dem”, “.gam”, “.nes”, “.rom”, “.sav”, “.bkp”, “.bak”, “.tmp”, “.cfg”, “.conf”, “.ini”, “.prf”, “.html”, “.php”, “.js”, “.c”, “.cc”, “.py”, “.lua”, “.go”, “.java” C&C 주소 hxxp://localhost:8080 공격자 메일 telegram hxxps://t[.]me/calojohn666 코인 지갑 주소 TQaaRDVYiAuQ6XiULvEjtvKQ2S2ickuqJF (usdt-trc20) Table 3. 공격자가 제작한 Mauri 랜섬웨어 설정 비록 또 다른 프록시 도구를 사용했을 수도 있지만 C&C 서버의 주소가 Localhost이고 다운로드 서버에 Mauri의 서버 프로그램도 함께 업로드되어 있어 아직 테스트 목적일 가능성이 존재한다. 하지만 랜섬웨어가 기본 형태가 아닌 지갑 주소나 텔레그램 주소 그리고 암호화 설정과 같은 여러 설정 데이터가 이미 공격자의 것으로 조작된 것을 보면 현재 공격에 사용되고 있을 가능성도 무시할 수 없다. Figure 7. 암호화 이후 생성되는 랜섬노트 6. 결론 공격자들은 패치되지 않은 취약한 Apache ActiveMQ 서비스를 대상으로 지속적으로 공격을 수행하고 있다. 확인된 공격들 중에는 코인 마이너를 설치하여 암호 화폐를 채굴하는 사례도 존재하지만 감염 시스템을 제어하기 위한 악성코드들이 다수 확인된다. 공격자는 감염 시스템을 장악한 이후 정보를 탈취하거나 랜섬웨어를 설치할 수 있다. 시스템 관리자는 사용 중인 Apache ActiveMQ 서비스가 다음과 같이 취약한 버전인지 점검하고 최신 버전으로 패치해 기존에 알려진 취약점으로부터 공격을 방지해야 한다. Apache ActiveMQ 5.18.0 이상 5.18.3 미만 버전 Apache ActiveMQ 5.17.0 이상 5.17.6 미만 버전 Apache ActiveMQ 5.16.0 이상 5.16.7 미만 버전 Apache ActiveMQ 5.15.16 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.18.0 이상 5.18.3 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.17.0 이상 5.17.6 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.16.0 이상 5.16.7 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.8.0 이상 5.15.16 미만 버전 또한 외부에 오픈되어 접근 가능한 서버에 대해 방화벽과 같은 보안 제품을 이용해 공격자로부터의 접근을 통제해야 한다. 마지막으로 V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – Exploit/XML.Agent (2024.12.02.03) – Trojan/Win32.RansomCrypt.R336789 (2024.11.30.02) – Trojan/BAT.Launcher (2024.12.02.03) – Data/BIN.Config (2024.12.02.03) – Trojan/Win.Malware-gen.R657415 (2024.07.06.01) – Trojan/Win32.Subti.R285137 (2019.08.06.05) – HackTool/Win.UserAdd.C5271969 (2022.10.04.02) – HackTool/Win.Mauri.C5701488 (2024.12.01.00) 행위 진단 (V3) – Persistence/MDP.AutoRun.M224 – Ransom/MDP.Decoy.M1171 행위 진단 (EDR/MDS) – Escalation/EDR.RIDHijacking.M12290 – DefenseEvasion/MDP.AutoRun.M1036 – Ransom/EDR.Decoy.M2470 – Execution/MDP.Behavior.M159 – Behavior/MDP.Drop.M489 – Execution/MDP.Event.M495 MD5 07894bc946bd742cec694562e730bac8 25b1c94cf09076eb8ce590ee2f7f108e 2c93a213f08a9f31af0c7fc4566a0e56 2e8a3baeaa0fc85ed787a3c7dfd462e7 3b56e1881d8708c48150978da14da91e URL http[:]//18[.]139[.]156[.]111[:]83/Google[.]zip http[:]//18[.]139[.]156[.]111[:]83/a[.]exe http[:]//18[.]139[.]156[.]111[:]83/brave[.]exe http[:]//18[.]139[.]156[.]111[:]83/c[.]ini http[:]//18[.]139[.]156[.]111[:]83/chrome[.]exe IP 18[.]139[.]156[.]111 AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 2024년 7월 APT 그룹 동향 보고서 2024-08-12
목적 및 범위 본 보고서에서는 특정 국가 정부 지원으로 사이버 간첩(Cyber Espionage) 행위나 비밀 파괴공작(Sabotage) 활동을 하고 있다고 추정되는 국가 주도 위협 그룹에 대해 다루며 편의상 ‘APT 그룹’이라 부른다. 따라서 본 보고서에서는 금전적 이득을 목적으로 하는 사이버 범죄 그룹에 대해서는 다루지 않는다. 한 달 동안 안랩을 포함한 보안 업체와 기관에서 공개한 APT 그룹 분석 내용을 바탕으로 정리했으며 일부 APT 그룹의 내용이 누락되었을 수 있다. 보안업체나 연구가에 따라 APT 그룹의 이름과 분류 기준이 다를 수 있으며 이 보고서는 ATIP (AhnLab Threat Intelligence Platform)에 정리된 Threat Actors 대표 이름을 기준으로 한다. APT 그룹 동향 2024년 7월 보안 업체와 기관에서 공개된 분석 내용을 종합한 주요 APT 그룹의 사례는 다음과 같다. 1) APT17 TG소프트는 2024년 6월과 7월 이탈리아의 기업과 정부 기관을 공격한 APT17 그룹의 활동을 공개했다. [1] 공격자는 첫 번째 공격에는 악성 오피스 문서를 전달했고, 두 번째 공격은 악성 링크를 포함한 이메일을 보냈다. 두 공격은 피해자에게 9002Rat 악성코드가 포함된 Skype for Business 패키지를 설치하도록 유도했다. 네트워크 트래픽을 모니터링하는 프록시 기능을 가진 9002Rat 악성코드는 플러그인을 다운로드하여 기능을 추가할 수 있는 모듈형 악성코드로, 오래된 악성코드이지만 2024년에도 계속 업데이트되고 있다. 악성 페이지에 정부 기관의 링크가 사용된 것은 공격자가 이전에 감염된 이탈리아 기업 또는 기관의 기밀 정보를 활용했기 때문으로 보인다. 2) APT40 CISA [2] 와 BitDefender [3] 는 APT40 그룹이 호주 네트워크를 목표로 공격했다고 밝혔다. APT40 그룹은 호주 네트워크를 대상으로 여러 차례의 침입을 시도했는데 Log4J, Atlassian Confluence, Microsoft Exchange와 같은 널리 사용되는 소프트웨어의 공개된 취약점을 악용했다. 이들은 초기 침입 단계에서 웹 셸을 사용하여 지속성을 확보하며, 소형 오피스/홈 오피스(SOHO) 장치를 인프라로 사용하여 탐지가 어렵게 했다. 다른 조직에 대한 공격 사례에서도 APT40는 원격 접속 포털을 통해 네트워크를 공격하여 수백 개의 유효한 사용자 이름과 비밀번호를 수집하였다. 3) APT41 Zscaler ThreatLabz는 APT41이 사용하는 새로운 로더인 DodgeBox [4] 와 새로운 백도어 MoonWalk [5] 정보를 공개했다. DodgeBox는 StealthVector의 변종과 유사하며, 다양한 회피 기술을 사용한다. 특히 Google Drive를 이용한 C2 통신이 특징이다. 이 로더는 환경 검사, DLL 사이드로딩, DLL 할로잉 등의 기술을 통해 탐지를 회피하며, AES-CFB 모드를 사용해 설정을 암호화한다. MoonWalk는 DodgeBox를 통해 로드되며, Google Drive를 C2 통신에 이용한다. MoonWalk는 DLL 할로잉, import 해제, DLL 언후킹, 스택 스푸핑 등의 기술을 사용한다. 또한 Windows Fibers를 사용해 보안 프로그램 우회를 시도한다. 모듈형 설계로 다양한 시나리오에 맞춰 기능을 쉽게 업데이트하고 수정할 수 있다. Mandiant는 APT41가 유럽과 중동의 해운 및 물류 부문, 아시아의 미디어 및 엔터테인먼트 부문을 공격했다고 밝혔다. [6] APT41의 주요 악성코드인 DUSTPAN과 DUSTTRAP은 각각 인메모리 드로퍼와 다단계 플러그인 프레임워크를 통해 작동한다. SQLULDR2와 PINEGROVE는 각각 데이터 추출 및 업로드 도구로 사용되었다. 이 그룹은 코드 서명 인증서를 도용하여 악성코드를 서명하고, 게임 산업의 기업 들로부터 도용된 인증서를 사용한 것으로 나타났다. APT41는 ANTSWORD와 BLUEBEAM 웹 셸을 사용하여 Tomcat Apache Manager 서버에서 지속성을 확보하였다. 이 웹 셸들은 2023년부터 활성화되어 certutil.exe를 실행해 DUSTPAN 드로퍼를 다운로드하고 이를 통해 BEACON을 로드하였다. DUSTTRAP는 악성 페이로드를 메모리에서 실행하여 흔적을 최소화했다. 4) Andariel (APT45) 미국 정부는 Andariel 그룹과 관계된 인물을 기소 [7] 하고 Andariel 그룹에 대해 경고했다. [8] 마이크로소프트 [9] 와 맨디언트 [10] 도 Andariel 그룹과 관련된 활동 정보를 공개했다. 이 그룹은 2017년부터 정부 기관과 방위 산업에 대한 집중적인 활동을 시작했으며, 2019년에는 핵 문제와 에너지에 대한 지속적인 관심과 맞물려 활동이 감지되었다. Andariel 그룹은 민감한 군사 정보와 방산, 우주항공, 원자력, 공학 분야의 지적 재산을 주요 타깃으로 하고 있으며, 의료와 에너지 산업도 어느 정도 공격 대상에 포함된다. 그들은 주로 미국의 의료 기관을 대상으로 랜섬웨어 공격을 수행하여 첩보 활동을 위한 자금을 마련하며, 경우에 따라 동일한 날에 랜섬웨어 공격과 사이버 첩보 활동을 동시에 수행하기도 한다. 사용한 취약점으로는 Apache ActiveMQ(CVE-2023-46604), TeamCity(CVE-2023-42793), Citrix NetScaler(CVE-2023-3519) 등이다. 주요 악성코드로는 Atharvan, ELF Backdoor, Jupiter, MagicRAT, TigerRAT, SmallTiger, LightHand, ValidAlpha 등이 있으며, Sliver, Themida, VMProtect와 같은 상용 툴을 이용해 악성코드를 난독화 했다. [1] https://www.tgsoft.it/news/news_archivio.asp?id=1557 [2] https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-190a [3] https://www.bitdefender.com/blog/businessinsights/understanding-apt40-insights-from-cisas-latest-joint-security-advisory/ [4] https://www.zscaler.com/blogs/security-research/dodgebox-deep-dive-updated-arsenal-apt41-part-1 [5] https://www.zscaler.com/blogs/security-research/moonwalk-deep-dive-updated-arsenal-apt41-part-2 [6] https://cloud.google.com/blog/topics/threat-intelligence/apt41-arisen-from-dust/ [7] https://www.fbi.gov/wanted/cyber/rim-jong-hyok [8] https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-207a [9] https://www.microsoft.com/en-us/security/blog/2024/07/25/onyx-sleet-uses-array-of-malware-to-gather-intelligence-for-north-korea/ [10] https://cloud.google.com/blog/topics/threat-intelligence/apt45-north-korea-digital-military-machine/
ASEC z0Miner 공격자, 국내 웹 서버를 악용하여 WebLogic 서버 공격 2024-02-28
AhnLab SEcurity intelligence Center(ASEC)에서는 국내의 취약한 서버를 대상으로 공격하는 사례를 확인하고 있다. 해당 포스팅에서는 최근 ‘z0Miner’ 공격자가 국내 WebLogic 서버를 대상으로 공격한 사례를 소개한다. z0Miner 공격자는 중국의 Tencent Security에서 처음으로 소개되었다. z0Miner挖矿木马利用Weblogic最新漏洞入侵,腾讯主机安全(云镜)极速捕捉 腾讯主机安全(云镜)于2020.11.02日捕获到挖矿木马团伙z0Miner利用Weblogic未授权命令执行漏洞(CVE-2020-14882/14883)的攻击行动。该团伙通过批量扫描云服务器发现具有Weblogic漏洞的机器,发送精心构造的数据包进行攻击。 이들은 과거부터 국내외 취약한 서버(Atlassian Confluence, Apache ActiveMQ, Log4J 등)를 대상으로 마이너를 유포한 이력이 있어 ASEC을 통해 자주 언급되었다. 취약한 Atlassian Confluence 서버를 대상으로 하는 공격 사례 Atlassian Confluence 서버 사례 (2022.07.15) 지속적인 공격 대상이 되고 있는 Apache ActiveMQ 취약점 (CVE-2023-46604) Apache ActiveMQ 서버 사례 (2023.12.13) 또한 이 공격자는 CVE-2020-14882/CVE-2020-14883 취약점을 사용해 WebLogic 서버를 공격한 것으로 많이 알려져 있다. 2024년 1월 26일, ‘z0Miner 공격자’는 국내 WebLogic 서버 시스템을 대상으로 악성 코드를 배포한 사례가 확인되었다. 이들은 대상 시스템의 OS가 Windows라면 powershell.exe 과 certutil.exe을 사용했으며, Linux라면 curl 명령어를 통해 악성 파일을 다운로드하였다. 이번에 확인된 사례는 해외 케이스와 달리 아래의 큰 차이점이 존재한다. 1) 국내 취약한 웹 서버를 장악해 공격자의 다운로드 서버로 악용 2) FRP, NetCat, AnyDesk 등 네트워크 도구 사용한 정황 확인 1. 악용된 국내 웹 서버 이들은 아래와 같이 정상적으로 사용되는 웹 서버를 장악한 뒤 악성 코드(Miner 및 네트워크 도구, 공격에 필요한 스크립트 등)를 배포하는 다운로드 서버로 악용하였다. 현재까지 확인된 국내 서버는 아래와 같다. 공격자에게 악용된 서버는 모두 서버 정보(Apache-Coyote/1.1)가 노출되어 있어 특정 버전을 유추할 수 있었으며, 특정 서버의 경우 관리되지 않아 Tomcat의 구체적인 버전(Apache Tomcat/5.0.28)도 확인할 수 있었다. 2. Windows 대상 공격 2.1. WebShell 공격자는 CVE-2020-14882와 같은 WebLogic 취약점을 이용해 JSP 웹쉘(WebShell)을 업로드한 것으로 확인되었다. 시스템에 웹쉘이 설치되면 지속성을 유지할 수 있고 시스템을 제어할 수 있다. 또한 공격자는 세 가지의 웹쉘(JSP File Browser, Shack2, Behinder)을 사용하였다. 이는 백신에 탐지되지 않는 웹쉘을 업로드하기 위해 여러 종류를 사용하는 것으로 추정된다. 1) JSP File Browser (Zubin WebShell) 공격자는 커스터마이징된 JSP File Browser v1.2 웹쉘을 사용하였다. 해당 웹쉘은 Title을 “Zubin – Welcome”으로 설정하였고 Password는 “zubin@666″으로 하였으며, 제작자 부분을 커스텀한 사람의 이름으로 수정하였다. 이러한 부가적인 부분외에 기존 웹쉘과 큰 차이가 없다. private String _password = “zubin@666”; 2) Shack2 해당 웹쉘은 Shack2가 제작한 것으로 유사한 코드는 Github 에서 확인할 수 있으며, 공격자가 사용한 버전은 “V1.0-20141106″이다. 해외 보안 업체인 ‘IronNet’에서도 z0Miner 유포 시 해당 웹쉘을 확인한 사례가 존재한다. Continued Exploitation of CVE-2021-26084 Continued Exploitation of CVE-2021-26084. 조금 특이한 점은 IronNet 사에서 언급한 내용과 같이, 현재도 웹쉘의 9개의 기능 중 3개의 기능만 구현되어 있다는 점이다. 사용 가능한 기능은 OS 정보 등 컴퓨터 정보 출력, 파일 매니저, 명령어 수행 세 가지다. 3) Behinder 해당 웹쉘은 GodZilla, China Chopper와 같이 과거부터 사용되어 많이 알려진 웹쉘이다. 공격자는 Github소스 와 동일한 웹쉘을 사용하였다. 2.2. FRP(Fast Reverse Proxy) 공격자는 RDP(Remote Desktop Protocol) 통신하기 위해 Proxy 도구를 사용하였다. 사용한 도구는 FRP(Fast Reverse Proxy)로 과거 ASEC 블로그를 통해 여러 번 소개한 바 있다. 국내 기업 타겟의 FRP(Fast Reverse Proxy) 사용하는 공격 그룹 달빗(Dalbit,m00nlight): 중국 해커 그룹의 APT 공격 캠페인 z0Miner 공격자는 기본적인 형태의 Frpc와 직접 커스터마이징한 형태를 모두 사용하였다. 기본적인 Frpc는 *.INI 형태의 설정 파일을 불러 읽어와 접속을 시도하는 데 반해, 커스텀된 Frpc는 프로그램 내부에 설정 데이터를 가지고 있어 별도의 파일 없이 실행할 수 있다. 이처럼 Frpc를 커스텀하여 유포하는 방식은 다른 위협 그룹 사례에서도 확인된 바 있다. 국내와 태국 대상 APT 공격에 사용된 BlueShell 악성코드 아래는 현재까지 확보한 공격자의 FRP 서버와 포트다. 15.235.22[.]212:5690 15.235.22[.]213:59240 z0Miner 공격자의 Frpc Server & Port 2.3. Netcat Netcat은 네트워크 연결 시 데이터를 읽고 쓸 수 있는 유틸리티 도구로 과거 침해 사고에도 많이 확인되었다. 특히 방화벽을 우회하고 공격 대상 시스템에 대한 제어를 획득할 수 있는 원격 쉘(Remote Shell) 기능을 제공하기 때문에 공격자가 주로 사용한다. 해당 공격자는 userinit.exe 이라는 이름으로 Netcat을 다운로드 받고 아래와 같이 실행하였다. 해당 명령어의 의미는 주어진 IP와 포트에 연결을 시도하며, 연결 시 명령 프롬프트(CMD)를 실행하라는 의미로 리버스 쉘(Reverse Shell) 명령어이다. 이후에 공격자는 명령 프롬프트를 통해 시스템을 제어할 수 있다. 107.180.100[.]247:88 z0Miner 공격자의 Netcat Server & Port 2.4. AnyDesk Netcat을 설치한 뒤 추가로 AnyDesk를 설치한 사례는 Apache ActiveMQ 취약점 (CVE-2023-46604) 사례에서도 확인되었다. 지속적인 공격 대상이 되고 있는 Apache ActiveMQ 취약점 (CVE-2023-46604) 공격자는 다운로드 서버(침해당한 웹 서버)를 통해 파워쉘 스크립트를 불러온 뒤 공식 홈페이지를 접속하여 AnyDesk를 다운로드하였다. 2.5. Miner(XMRig) 현재 공격자가 유포 중인 Windows XMRig 버전은 6.18.0 버전이며, Linux의 경우 XMRig는 6.18.1로 확인되었다. 공격자는 지속성을 위해 WMI의 이벤트 필터(Event Filter)와 컨슈머(Consumer)를 등록하거나 스케줄러(schtasks)를 등록해 pastebin.com의 특정 주소로부터 파워쉘 스크립트를 읽어와 실행하도록 하였다. 그러나 분석 당시에 파워쉘 스크립트는 존재하지 않았다. 이후 ‘javae.exe’ 이라는 이름으로 채굴을 수행한다. 3 . Monero Wallet & Mining Pool Address 공격자가 사용 중인 config.json은 다음과 같다. Mining Pool : pool.supportxmr[.]com:443 pool.supportxmr[.]com:80 Monero Wallet : 44VkCrG7DkmYCcrNQcBb1QfZ66si2xWqy7HuzgyWLXKy8x3pkzKWxs8TptTNjCS1b2Abm89MuXD1tg81KeRgfP2u3z6f2kP 47y69G6VzipF8ydhXxzRF69e8ys3XrDFjD5SqSM1T8yJGdfHqtRmMA9eQpq8vnWBibhmb35xLAyVpen53hfidLwHDP3NbAm z0Miner 공격자의 Monero Wallet & Mining Pool Address 5 . 결론 공격자들은 패치되지 않은 취약한 WebLogic 서버를 대상으로 지속적으로 공격을 수행하고 있다. 또한 감염 시스템을 장악한 이후 정보를 탈취하거나 랜섬웨어를 설치할 수 있어 관리되지 않는 포트나 서버에 대한 점검이 필요하다. 또 시스템 관리자는 사용 중인 WebLogic 서비스가 최신 버전인지 점검하고 낮은 버전일 시, 패치해 기존에 알려진 취약점으로부터 공격을 방지해야 한다. 사용자는 V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – HackTool/Win.Netcat (2022.10.18.03) – Win-Trojan/Miner3.Exp (2022.06.24.02) – Downloader/Shell.Miner.SC197168 (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Trojan/PowerShell.Miner (2024.02.27.01) – Trojan/Script.z0Miner.SC197169 (2024.02.27.01) – Trojan/Win.FRP (2024.02.27.01) – Trojan/Shell.Miner.SC197170 (2024.02.27.01) – Trojan/Shell.Miner.SC197171 (2024.02.27.01) – Trojan/Shell.Agent.SC197172 (2024.02.27.01) – Downloader/Shell.Miner.SC197173 (2024.02.27.01) – WebShell/JSP.Generic.S1866 (2024.02.27.00) – Linux/CoinMiner.Gen2 (2022.11.24.02) – WebShell/JSP.FileBrowser.SC197174 (2024.02.27.01) – WebShell/JSP.Generic.S1957 (2024.02.27.00) – Trojan/Shell.Agent.SC197175 (2024.02.27.03) – Downloader/PowerShell.Miner (2024.02.27.03) – CoinMiner/Shell.Generic.S2078 (2024.02.27.00) – Downloader/PowerShell.Miner.SC197176 (2024.02.27.01) MD5 085c68576c60ca0361b9778268b0b3b9 2a0d26b8b02bb2d17994d2a9a38d61db 4cd78b6cc1e3d3dde3e47852056f78ad 523613a7b9dfa398cbd5ebd2dd0f4f38 547c02a9b01194a0fcbfef79aaa52e38 URL http[:]//107[.]180[.]100[.]247[:]88/ http[:]//15[.]235[.]22[.]212[:]5690/ http[:]//15[.]235[.]22[.]213[:]59240/ AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 취약점 공격으로 설치되는 Mimo 코인 마이너 with Mimus 랜섬웨어 2024-01-12
AhnLab SEcurity intelligence Center(ASEC)은 최근 Mimo라고 불리는 코인 마이너 공격자가 다양한 취약점을 공격하여 악성코드들을 설치하고 있는 정황을 확인하였다. Mimo는 Hezb라고도 불리며 2022년 3월경에 Log4Shell 취약점 공격을 통해 코인 마이너 악성코드를 설치하고 있는 사례가 최초로 확인되었다. 지금까지 알려진 공격 사례는 모두 최종적으로 Mimo Miner Bot이라고 하는 XMRig 코인 마이너를 설치하는 공격이었다. 하지만 연관 공격 사례들을 통해 동일한 공격자가 Mimo 마이너 외에도 Mimus 랜섬웨어, Proxyware 그리고 리버스 쉘 악성코드를 설치하는 사례도 함께 확인되었다. 여기에서는 Mimo 공격자가 공격에 사용한 다양한 악성코드들을 다룬다. 1. 취약점 공격 정황 최초로 확인된 Mimo 공격자의 활동은 2022년 3월경에 Log4Shell 취약점(CVE-2021-44228) 공격으로 코인 마이너를 설치한 것이었으며 [1] , 2022년 5월에는 WSO2의 원격 코드 실행 취약점인 CVE-2022-29464 취약점을 [2] , 2022년 6월에는 아틀라시안 컨플루언스(Atlassian Confluence) 서버의 취약점인 CVE-2022-26134을 공격한 사례가 공개되었다. [3] 그리고 2023년 5월에는 인쇄 관리 프로그램인 PaperCut의 원격 코드 실행 취약점인 CVE-2023–27350를 악용한 공격 사례가 [4] , 가장 최근에는 Apache ActiveMQ 취약점 (CVE-2023-46604) 공격 정황도 확인되었다. ASEC에서는 2022년경에 8220 Gang, z0Miner뿐만 아니라 Mimo (Hezb) 공격자가 취약한 아틀라시안 컨플루언스(Atlassian Confluence) 서버를 공격하여 XMRig 코인 마이너를 설치한 사례를 분석하여 공개하였다. [5] 해당 공격에 사용된 취약점 CVE-2022-26134는 패치되지 않은 취약한 아틀라시안 컨플루언스(Atlassian Confluence) 서버에 대한 원격 코드 실행 취약점이다. 아틀라시안 사의 컨플루언스는 대표적인 협업 플랫폼으로서 전 세계 많은 기업이 업무에 활용하고 있다. 컨플루언스는 웹 기반 플랫폼으로서 프로젝트 관리 및 협업과 같은 서비스는 실질적으로 컨플루언스 서버(또는 컨플루언스 데이터 센터)를 통해 제공된다. 다수의 기업들에서 사용되는 유명한 솔루션이다 보니 과거부터 꾸준히 취약한 컨플루언스 서버 및 데이터 센터를 대상으로 하는 취약점들이 발견되고 있으며 공격자들에 의해 패치되지 않은 시스템들이 공격 대상이 되고 있다. Mimo 공격자가 Log4Shell(CVE-2021-44228) 취약점을 악용해 코인 마이너를 설치하는 사례 또한 최근까지도 지속적으로 확인되고 있다. Log4Shell(CVE-2021-44228)은 자바 기반의 로깅 유틸리티인 Log4j의 취약점으로서 원격지의 자바 객체 주소를 로그 메시지에 포함시켜 Log4j를 사용하는 서버에 전송할 경우 서버에서 자바 객체를 실행시킬 수 있는 원격 코드 실행 취약점이다. 공격 대상 시스템은 VMware Horizon 제품이 설치된 시스템으로써 기업에서 원격 근무 솔루션과 클라우드 인프라 운영을 위해 사용하는 가상화 데스크톱 솔루션인 VMware Horizon을 아직까지도 패치하지 않아 내부적으로 사용 중인 Log4J가 공격당하고 있는 것으로 추정된다. 이외에도 최근에는 2023년 11월에 공개된 Apache ActiveMQ 취약점 (CVE-2023-46604) 공격 정황도 확인되었다. CVE-2023-46604는 오픈 소스 메시징 및 통합 패턴 서버인 Apache ActiveMQ 서버의 원격 코드 실행 취약점이다. 만약 패치되지 않은 Apache ActiveMQ 서버가 외부에 노출되어 있을 경우 공격자는 원격에서 악의적인 명령을 실행하여 해당 시스템을 장악할 수 있다. 취약점 공격은 classpath에 있는 클래스를 인스턴스화하도록 OpenWire 프로토콜에서 직렬화된 클래스 유형을 조작하는 방식으로 이루어진다. 만약 공격자가 조작된 패킷을 전송할 경우 취약한 서버에서는 패킷에 포함된 경로 즉 URL을 참고하여 클래스 XML 설정 파일을 로드한다. 예를 들어 취약한 Apache ActiveMQ의 자바 프로세스는 전달받은 조작된 패킷을 참고하여 “hxxp://102.130.112[.]157/poc-win.xml” 경로에 위치하는 XML 설정 파일을 로드하게 된다. 이후에는 로드한 XML 설정 파일을 참고하여 지정한 명령을 실행하는데 다음 설정 파일에는 Mimo 마이너를 다운로드하는 파워쉘 명령이 설정되어 있다. 2. XMRig 코인 마이너 공격 사례 취약점 공격을 통해 실행된 파워쉘은 Batch 악성코드를 다운로드해 실행하는데 최근에는 “lnl.bat” 또는 “kill.bat”이라는 이름이 사용된다. 해당 Batch 악성코드는 윈도우 디펜더를 비활성화하고 다른 코인 마이너를 제거한 이후 최종적으로 “ln.bat” 또는 “mad.bat”이라고 하는 Batch 악성코드를 %TEMP% 경로에 다운로드하고 실행하는 역할을 담당한다. “ln.bat” 또는 “mad.bat” Batch 악성코드는 추가적으로 “dom.zip” 또는 “dom-6.zip”이라는 압축 파일을 다운로드하고 7z 도구를 이용해 압축을 해제한다. 해당 압축 파일에는 모네로 코인 채굴을 담당하는 XMRig 코인 마이너 “dom.exe”와 NSSM 도구 “dsm.exe” 그리고 설정 파일이 저장되어 있다. Batch 스크립트는 이후 NSSM을 이용해 XMRig를 서비스에 등록한다. 비록 다양한 취약점 공격을 사용하고 있지만 코인 마이너를 설치하는 루틴은 상대적으로 단순한 편이며 XMRig나 NSSM 도구도 별다른 변형 없이 사용된다. 지갑 주소 – 1 : 43DTEF92be6XcPj5Z7U96g4oGeebUxkFq9wyHcNTe1otM2hUrfvdswGdLHxabCSTio7apowzJJVwBZw6vVTu7NoNCNAMoZ4 지갑 주소 – 2 : 46HmQz11t8uN84P8xgThrQXSYm434VC7hhNR8be4QrGtM1Wa4cDH2GkJ2NNXZ6Dr4bYg6phNjHKYJ1QfpZRBFYW5V6qnRJN 3. Mimus 랜섬웨어 Mimo 공격자의 공격들 중 대부분은 최근까지도 XMRig 코인 마이너 즉 Mimo 마이너를 설치하는 사례들이다. 하지만 2023년에는 랜섬웨어 공격 사례도 확인된다. 랜섬웨어는 2023년경에 Mimo 마이너를 유포한 주소와 동일한 곳에서 동일한 시점에 확인되었다. 해당 Batch 악성코드를 통해 설치된 랜섬웨어는 “mauri870”이라는 개발자가 연구 목적으로 개발하여 깃허브에 공개한 소스 코드를 기반으로 만들어졌다. [6] 해당 소스 코드는 다른 공격자들에 의해 자주 사용되고 있는 것인지 MauriCrypt로 탐지되고 있다는 내용도 설명에 함께 포함되어 있다. 여기에서는 해당 오픈 소스 랜섬웨어를 MauriCrypt로 부른다. MauriCrypt는 Go 언어로 개발되었으며 공격자는 이를 이용해 랜섬웨어를 제작한 후 Mimus 랜섬웨어라는 이름을 붙였다. Mimus 랜섬웨어는 MauriCrypt의 소스 코드와 비교했을 때 별다른 차이가 존재하지 않으며 공격자의 C&C 주소, 지갑 주소, 이메일 주소와 같은 설정 데이터만 변경되었다. 개요 설명 암호화 알고리즘 AES-256 CTR 암호화 확장자 .encrypted 랜섬노트 이름 READ_TO_DECRYPT.html, FILES_ENCRYPTED.html 암호화 제외 경로 “ProgramData”, “Windows”, “bootmgr”, “$WINDOWS.~BT”, “Windows.old”, “Temp”, “tmp”, “Program Files”, “Program Files (x86)”, “AppData”, “$Recycle.Bin” 암호화 대상 확장자 “doc”, “docx”, “msg”, “odt”, “wpd”, “wps”, “txt”, “csv”, “pps”, “ppt”, “pptx”, “aif”, “iif”, “m3u”, “m4a”, “mid”, “mp3”, “mpa”, “wav”, “wma”, “3gp”, “3g2”, “avi”, “flv”, “m4v”, “mov”, “mp4”, “mpg”, “vob”, “wmv”, “3dm”, “3ds”, “max”, “obj”, “blend”, “bmp”, “gif”, “png”, “jpeg”, “jpg”, “psd”, “tif”, “gif”, “ico”, “ai”, “eps”, “ps”, “svg”, “pdf”, “indd”, “pct”, “epub”, “xls”, “xlr”, “xlsx”, “accdb”, “sqlite”, “dbf”, “mdb”, “pdb”, “sql”, “db”, “dem”, “gam”, “nes”, “rom”, “sav”, “bkp”, “bak”, “tmp”, “cfg”, “conf”, “ini”, “prf”, “html”, “php”, “js”, “c”, “cc”, “py”, “lua”, “go”, “java” C&C 주소 hxxp://windows.n1tro[.]cyou:4544 Table 1. Mimus 랜섬웨어 개요 MauriCrypt는 감염 시스템의 “id”와 암호화에 사용되는 AES 키값 “enckey”를 랜덤하게 생성한 후 C&C 서버에 접속해 전달한다. 참고로 Mimus 랜섬웨어는 비활성화되어 있지만 MauriCrypt는 C&C 서버와의 통신에 Tor를 지원하는 기능도 포함되어 있다. Tor 브라우저를 다운로드하여 %TEMP% 경로에 설치한 이후 이를 실행하고 Tor 브라우저를 거쳐 C&C 서버에 접속하는 방식이다. 이후 예외 경로를 제외한 다른 경로들에서 지정한 확장자에 해당하는 파일들을 암호화한다. 암호화된 파일은 이름이 Base64로 인코딩되며 확장자가 “.encrypted”로 변경된다. 파일 암호화가 끝나면 바탕화면에 2개의 랜섬노트가 생성된다. 랜섬노트 “FILES_ENCRYPTED.html”는 암호화된 파일들의 목록이 저장되어 있으며, 랜섬노트 “READ_TO_DECRYPT.html”에 연락할 주소와 비트코인 지갑 주소가 포함되어 있다. 공격자의 메일 주소 : arbeyceo@proton[.]me 공격자의 비트코인 지갑 주소 : 15Jz1fmreZx9wG93DKjTXMhuLpPpCgvEQk 복호화 도구 판매 사이트 : hxxps://satoshidisk[.]com/pay/CIIRg6 랜섬노트에 명시된 복호화 도구 판매 사이트에 접속하면 복호화 도구를 0.01050000 BTC에 판매하는 글을 확인할 수 있다. Mimus 랜섬웨어 공격과 직접적인 관련은 알 수 없지만 비트코인 지갑 주소의 기록에 따르면 다수의 거래 내역들이 확인된다. 4. Proxyware 유포 방식 및 설치하는 스크립트는 확인되지 않았지만 Mimo 마이너를 유포하던 시점에 동일한 주소에서 Proxyware와 리버스 쉘 악성코드가 다운로드되었던 이력도 존재한다. 즉 공격자는 수익을 창출하기 위해 랜섬웨어 공격 및 코인 마이닝 외에도 Proxyware를 설치하는 Proxyjacking 공격을 함께 사용한 것으로 추정된다. Proxyware란 설치된 시스템에서 현재 사용 가능한 인터넷 대역폭 일부를 외부에 공유하는 프로그램으로서 일반적으로 이를 설치하는 사용자는 대역폭을 제공하는 대신 일정한 금액을 받는다. 만약 공격자가 사용자의 동의 없이 감염 시스템에 Proxyware를 몰래 설치할 경우 감염된 시스템은 비자발적으로 네트워크 대역폭을 탈취당하게 되며 수익은 공격자에게 돌아가게 된다. 이는 Cryptojacking 공격과 유사한데 Proxyware 대신 코인 마이너를 설치하여 감염 시스템의 자원으로 암호 화폐를 채굴하는 것이 차이점이다. 5. NHAS 리버스 쉘 이외에도 Mimo 마이너의 다운로드 주소와 동일한 주소를 C&C 서버로 사용하는 리버스 쉘 악성코드도 확인되었다. 공격에 사용된 리버스 쉘은 “NHAS”가 개발하여 깃허브에 공개된 reverse_ssh라는 도구로서 Go 언어로 개발되어 있으며 C&C 서버와의 통신에 SSH 프로토콜을 사용하는 것이 특징이다. [7] NHAS 리버스 쉘은 기본적으로 이름처럼 리버스 쉘이기 때문에 다른 백도어 및 RAT 유형들과 비교해서 명령 실행이나 파일 작업, 포트 포워딩과 같은 기본적인 명령들만 제공한다. 하지만 이를 설치하였다는 것은 공격자가 단순하게 감염 시스템에 코인 마이닝이나 Proxyware 그리고 랜섬웨어를 설치하여 수익을 얻을 뿐만 아니라 추가적인 작업을 위해 감염 시스템에 대한 제어를 탈취하기도 한다는 것을 의미한다. 6. 결론 2022년 초에 최초로 확인된 Mimo 마이너 공격자는 최근까지도 Log4Shell(CVE-2021-44228), WSO2의 원격 코드 실행 취약점인 CVE-2022-29464, 아틀라시안 컨플루언스(Atlassian Confluence) 서버의 취약점인 CVE-2022-26134, 인쇄 관리 프로그램인 PaperCut의 원격 코드 실행 취약점 CVE-2023–27350 그리고 Apache ActiveMQ 취약점 (CVE-2023-46604) 등의 취약점 공격들을 통해 악성코드들을 설치하고 있다. 이러한 취약점들은 모두 패치가 패치가 공개되었지만 공격자는 적절하게 관리되지 못하고 있는 시스템들을 대상으로 하기 때문에 공격은 아직까지도 계속되고 있다. 시스템 관리자는 사용 중인 서비스가 취약한 버전인지 점검하고 최신 버전으로 패치해 기존에 알려진 취약점으로부터 공격을 방지해야 한다. 또한 외부에 오픈되어 접근 가능한 서버에 대해 방화벽과 같은 보안 제품을 이용해 공격자로부터의 접근을 통제해야 한다. 마지막으로 V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – Downloader/BAT.CoinMiner.SC195961 (2024.01.11.02) – Downloader/BAT.CoinMiner.SC195959 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195960 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195962 (2024.01.11.02) – Unwanted/Win32.NSSM.R353938 (2020.10.27.00) – Trojan/Win32.RL_Miner.R363967 (2021.01.23.01) – Win-Trojan/Miner3.Exp (2020.01.23.00) – Data/JSON.Miner (2022.05.11.03) – Data/JSON.Miner (2021.12.12.00) – Downloader/BAT.CoinMiner.SC195966 (2024.01.11.02) – Downloader/BAT.CoinMiner.SC195964 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195965 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195963 (2024.01.11.02) – Downloader/BAT.Agent (2024.01.11.02) – Malware/Win32.Generic.C4280792 (2020.12.28.01) – Unwanted/Win.Peer2Profit.C5572495 (2024.01.11.02) – Backdoor/Win.ReverseShell.C5572514 (2024.01.11.03) – Downloader/XML.Generic (2024.01.12.00) 행위 진단 – Execution/MDP.Powershell.M1185 – Connection/MDP.Event.M2367 MD5 1136efb1a46d1f2d508162387f30dc4d 3edcde37dcecb1b5a70b727ea36521de 52cef8752f2c0f9a5383d2aecbdccc6f 5d32f0eee7adf20e0766d5481a1953a5 5e0f18dfe16f274d34716d011e0a3f39 URL http[:]//102[.]130[.]112[.]157/7za[.]exe http[:]//102[.]130[.]112[.]157/dom-6[.]zip http[:]//102[.]130[.]112[.]157/dom[.]zip http[:]//102[.]130[.]112[.]157/kill[.]bat http[:]//102[.]130[.]112[.]157/ln[.]bat AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 지속적인 공격 대상이 되고 있는 Apache ActiveMQ 취약점 (CVE-2023-46604) 2023-12-13
AhnLab Security Emergency response Center(ASEC)은 2023년 11월에 “Andariel 그룹의 Apache ActiveMQ 취약점 (CVE-2023-46604) 공격 정황” [1] 블로그 포스팅을 통해 Andariel 위협 그룹이 CVE-2023-46604 취약점을 공격해 악성코드를 설치한 사례를 공개한 바 있다. 해당 포스팅에서는 Andariel 그룹의 공격 사례 외에도 HelloKitty 랜섬웨어, 코발트 스트라이크, 메타스플로잇 미터프리터 공격 사례를 함께 언급하였다. Apache ActiveMQ 취약점(CVE-2023-46604)은 이후에도 지속적으로 다양한 공격자들에 의해 사용되고 있다. 최근에는 Ladon, NetCat, AnyDesk 그리고 z0Miner를 설치하는 공격이 추가적으로 확인되었으며 여기에서는 각각에 대해 정리한다. 1. Apache ActiveMQ 취약점 (CVE-2023-46604) 공격 CVE-2023-46604는 오픈 소스 메시징 및 통합 패턴 서버인 Apache ActiveMQ 서버의 원격 코드 실행 취약점이다. 만약 패치되지 않은 Apache ActiveMQ 서버가 외부에 노출되어 있을 경우 공격자는 원격에서 악의적인 명령을 실행하여 해당 시스템을 장악할 수 있다. AhnLab TIP : Apache ActiveMQ 보안 업데이트 권고 (CVE-2023-46604) [2] 취약점 공격은 classpath에 있는 클래스를 인스턴스화하도록 OpenWire 프로토콜에서 직렬화된 클래스 유형을 조작하는 방식으로 이루어진다. 만약 공격자가 조작된 패킷을 전송할 경우 취약한 서버에서는 패킷에 포함된 경로 즉 URL을 참고하여 클래스 XML 설정 파일을 로드한다. 예를 들어 취약한 Apache ActiveMQ의 자바 프로세스는 전달받은 조작된 패킷을 참고하여 “hxxp://27.191.193[.]193:555/poc2.xml” 경로에 위치하는 XML 설정 파일을 로드하게 된다. 이후에는 로드한 XML 설정 파일을 참고하여 지정한 명령을 실행하는데, 다음 사례는 CMD 및 파워쉘을 이용해 Ladon을 다운로드하고 리버스 쉘 명령을 실행하는 명령이 설정되어 있다. 2. Ladon Ladon은 다음과 같은 깃허브 페이지를 통해서도 알 수 있듯이 중국어를 기반으로 한 공격자들이 주로 사용하는 도구들 중 하나이다. [3] Ladon은 공격 과정에서 필요한 다양한 기능들을 지원하는데 대표적으로 스캐닝, 권한 상승, 계정 정보 탈취, 리버스 쉘과 같은 다양한 기능들이 있다. 제작자는 Ladon을 지속적으로 업데이트하고 있으며 상대적으로 최신 취약점이라고 할 수 있는 CVE-2023-46604 취약점에 대한 스캐닝도 지원한다. 공격자가 Ladon을 이용해 취약점을 스캐닝 했는지는 알 수 없지만 취약한 버전의 Apache ActiveMQ 서비스가 동작하는 것을 확인한 후에는 다음과 같은 파워쉘 명령으로 Ladon을 다운로드하고 명령을 실행하였다. ReverseTCP 명령은 리버스 쉘을 실행시키는 것을 의미하며 nc 즉 Netcat을 이용해 리버스 쉘을 실행한다. 3. AnyDesk & Netcat 위 공격 사례에서는 Lodon이 지원하는 Netcat 명령이 사용되었지만 Netcat은 다른 공격 사례에서도 확인된다. Netcat은 TCP / UDP 프로토콜로 연결된 네트워크 상에서 특정 대상과 데이터를 송수신하게 해주는 유틸리티로서 리눅스뿐만 아니라 윈도우 환경도 지원하는 것이 특징이다. 네트워크 테스트 목적에서 다양한 기능들을 제공하기 때문에 네트워크 관리자들도 자주 사용하는 도구라고 할 수 있지만 공격자들에 의해서도 악용할 수 있는 도구이다. 공격자는 Netcat을 실행하면서 전달하는 명령을 이용해 리버스 쉘이나 바인드 쉘로써 사용할 수 있으며 실제 취약한 웹 서버나 MS-SQL 서버를 대상으로 하는 다양한 공격에서 사용된 사례들이 존재한다. [4] [5] 이번에 확인된 공격에서는 외부에서 Netcat을 다운로드한 이후 리버스 쉘 명령으로 감염 시스템에 대한 쉘을 획득하였다. 비록 리버스 쉘을 통해 감염 시스템을 제어할 수 있지만 커맨드 라인 환경으로 명령을 내리는 것은 한계가 있다. 일반적으로 공격자들은 감염 시스템을 장악한 이후 원격에서 화면을 제어하기 위한 목적으로 VNC나 RDP 그리고 원격 제어 도구들을 추가적으로 설치하는 경향이 있다. 특히 AnyDesk나 NetSupport, 크롬 원격 데스크톱과 같은 원격 제어 도구들을 최근 보안 제품을 우회하기 위한 목적으로 자주 사용되고 있다. [6] 이번에 확인된 공격에서 공격자는 Netcat을 설치한 이후 추가적으로 AnyDesk를 설치하였다. 위 과정에서 설치한 Netcat을 이용해 AnyDesk를 설치하였으며 정상 홈페이지의 다운로드 주소에서 설치 파일을 다운로드하였다. 공격자는 AnyDesk를 Silent 모드로 설치한 이후 “–set-password” 인자로 비밀번호를 설정하고 실행하였다. 이는 과거 MS-SQL 서버 대상 공격 사례에서 확인된 사례와 거의 동일한 방식이다. 공격자는 이후 감염 시스템에 접속하여 실행 시 “–set-password” 인자로 전달했던 비밀번호를 입력해 원격에서 감염 시스템을 제어할 수 있을 것이다. 4. z0Miner 최근에는 이외에도 XMRig 코인 마이너를 설치하는 공격 캠페인도 함께 확인된다. XML 설정 파일의 이름은 “paste.xml”이며 다음과 같이 CMD를 이용해 파워쉘 명령을 실행하는 데이터가 포함되어 있다. 참고로 “shella”는 파워쉘 파일로 추정되며 공격자가 이전 공격 과정에서 파워쉘 프로그램을 해당 이름으로 복사했을 것으로 보인다. 복호화 된 파워쉘 명령은 또 다른 파워쉘 스크립트를 다운로드해 실행한다. 다운로드되는 파워쉘 스크립트는 XMRig 코인 마이너와 설정 파일을 다운로드하고 실행하는 단순한 형태이다. 공격에 사용된 파워쉘 스크립트를 분석한 결과 변수명, 함수명 그리고 전체적인 구조가 z0Miner와 유사한 것을 확인하였다. Z0Miner는 2020년 Tencent Security Team에서 처음으로 보고하였으며 Oracle Weblogic 원격 코드 실행 취약점(CVE-2020-14882 / CVE-2020-14883) 공격으로 유포되었다. 2021년에는 Atlassian Confluence의 원격 코드 실행 취약점(CVE-2021-26084) 취약점으로 유포된 사례가 보고되었으며 [7] [8] , 과거 ASEC 블로그에서도 해당 공격 사례를 다룬 바 있다. [9] 5. 결론 공격자들은 패치되지 않은 취약한 Apache ActiveMQ 서비스를 대상으로 지속적으로 공격을 수행하고 있다. 확인된 공격들 중에는 코인 마이너를 설치하여 암호 화폐를 채굴하는 사례도 존재하지만 감염 시스템을 제어하기 위한 악성코드들이 다수 확인된다. 공격자는 감염 시스템을 장악한 이후 정보를 탈취하거나 랜섬웨어를 설치할 수 있다. 시스템 관리자는 사용 중인 Apache ActiveMQ 서비스가 다음과 같이 취약한 버전인지 점검하고 최신 버전으로 패치해 기존에 알려진 취약점으로부터 공격을 방지해야 한다. Apache ActiveMQ 5.18.0 이상 5.18.3 미만 버전 Apache ActiveMQ 5.17.0 이상 5.17.6 미만 버전 Apache ActiveMQ 5.16.0 이상 5.16.7 미만 버전 Apache ActiveMQ 5.15.16 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.18.0 이상 5.18.3 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.17.0 이상 5.17.6 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.16.0 이상 5.16.7 미만 버전 Apache ActiveMQ Legacy OpenWire Module 5.8.0 이상 5.15.16 미만 버전 또한 외부에 오픈되어 접근 가능한 서버에 대해 방화벽과 같은 보안 제품을 이용해 공격자로부터의 접근을 통제해야 한다. 마지막으로 V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – Exploit/PS.Ladon (2023.12.09.00) – Downloader/XML.Generic (2023.12.13.00) – HackTool/Win.Netcat.R5561954 (2023.12.12.03) – Downloader/XML.Generic (2023.12.13.00) – CoinMiner/PS.Agent (2023.12.13.03) – Win-Trojan/Miner3.Exp (2020.01.23.00) – CoinMiner/Text.Config (2023.12.13.03) 행위 진단 – Execution/MDP.Powershell.M2514 – Execution/MDP.AnyDesk.M4547 MD5 1a7e8e719e29c2cca5083053bb240dbc 2a0d26b8b02bb2d17994d2a9a38d61db b6e0db27c2b3e62db616b0918a5d8ed8 baeee25ebf0efeec414dce64b9e7aca7 c1aa596dc33f2ba4aadbd689a1652701 URL http[:]//121[.]190[.]90[.]250[:]8081/js/3/config[.]json http[:]//121[.]190[.]90[.]250[:]8081/js/3/paste[.]ps1 http[:]//121[.]190[.]90[.]250[:]8081/js/3/paste[.]xml http[:]//121[.]190[.]90[.]250[:]8081/js/s[.]rar http[:]//27[.]191[.]193[.]193[:]50000/ AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC Andariel 그룹의 Apache ActiveMQ 취약점 (CVE-2023-46604) 공격 정황 2023-11-17
AhnLab Security Emergency response Center(ASEC)은 최근 Andariel 위협 그룹의 공격을 모니터링하던 중 Andariel 그룹이 Apache ActiveMQ 원격 코드 실행 취약점(CVE-2023-46604)을 악용해 악성코드를 설치하는 것으로 추정되는 공격 사례를 확인하였다. 주로 국내 기업 및 기관들을 공격 대상으로 하는 Andariel 위협 그룹은 Lazarus 위협 그룹과 협력하는 관계이거나 혹은 Lazarus 그룹의 하위 조직으로 알려져 있다. 2008년부터 국내 대상 공격이 최초로 확인되었으며 주요 공격 대상으로는 국방, 정치기구, 조선, 에너지, 통신 등 안보와 관련된 곳이다. 물론 이외에도 대학교나 운송, ICT 업체 등 국내에 위치한 다양한 기업 및 기관들이 공격 대상이 되고 있다. [1] Andariel 위협 그룹은 과거부터 스피어 피싱 공격이나 워터링 홀 공격 그리고 공급망 공격을 이용해 왔으며 [2] 최근에는 Log4Shell 취약점이나 [3] 부적절하게 관리되는 MS-SQL 서버를 대상으로 한 공격 그리고 정상 소프트웨어를 악용하는 공격 사례도 확인되고 있다. [4] 현재 기준 직접적인 로그는 존재하지 않지만 정황상 Andariel 그룹이 Apache ActiveMQ 서버에 대한 원격 코드 실행 취약점을 악용하여 NukeSped, TigerRat 백도어를 설치하고 있는 것으로 추정된다. 여기에서는 Apache ActiveMQ 서버 대상 공격 사례들과 함께 Andariel 그룹이 공격에 이를 악용하는 것으로 추정하는 근거들을 정리한다. 1. Apache ActiveMQ 취약점 공격 사례 CVE-2023-46604는 오픈 소스 메시징 및 통합 패턴 서버인 Apache ActiveMQ 서버의 원격 코드 실행 취약점이다. 만약 패치되지 않은 Apache ActiveMQ 서버가 외부에 노출되어 있을 경우 공격자는 원격에서 악의적인 명령을 실행하여 해당 시스템을 장악할 수 있다. 해당 취약점 정보가 공개된 이후 다양한 공격자들이 이를 악용해 악성코드를 설치하고 있는데 대표적으로 Rapid7 사에서 공개한 HelloKitty 랜섬웨어 공격 사례가 있다. [5] 해당 사례는 자사 AhnLab Smart Defense (ASD) 로그에서도 확인되며 이는 국내 시스템들도 CVE-2023-46604 취약점 공격에 대상이 되고 있는 것을 의미한다. Figure 1. HelloKitty 랜섬웨어 설치 시도 로그 ASEC에서는 Andariel 그룹의 공격을 모니터링하던 중 Andariel 그룹이 과거부터 사용하던 NukeSped 백도어가 특정 시스템에 설치된 것을 확인하였다. 조사 결과 해당 시스템에는 Apache ActiveMQ 서버가 설치되어 있었으며 CVE-2023-46604 취약점 정보가 공개된 2023년 10월 말부터 HelloKitty 랜섬웨어를 포함한 다양한 공격 로그가 확인되었다. Figure 2. 감염 시스템에서 확인되는 다양한 공격 로그들 공격자는 취약점 공격 과정에서 다음과 같은 악성 자바 클래스 파일을 사용하였으며 해당 악성코드는 최종적으로 윈도우 또는 리눅스 환경에서 추가 페이로드를 다운로드해 설치하는 기능을 담당한다. 이 악성코드는 최근 Huntress 사의 보고서에서도 확인되는 공격 사례이다. [6] Figure 3. 다운로더 기능을 담당하는 악성 자바 클래스 파일 이렇게 알려진 공격 외에도 코발트 스트라이크 및 Metasploit Meterpreter의 Stager 설치 로그도 함께 확인되었다. 이를 통해 CVE-2023-46604 취약점 관련 정보가 공개된 것은 얼마 되지 않지만 패치되지 않은 시스템은 이렇게 짧은 기간 동안에도 수많은 공격의 대상이 되고 있다는 점을 알 수 있다. Figure 4. Metasploit Meterpreter의 Stager를 설치하는 로그 Figure 5. 코발트 스트라이크 비컨의 설정 데이터 by CobaltStrikeParser [7] 2. NukeSped 악성코드 – Andariel 그룹 2.1. CVE-2023-46604 취약점 공격 정황 다양한 Apache ActiveMQ 대상 공격이 이루어진 시스템들을 분석하던 중 Andariel 그룹의 NukeSped 백도어가 함께 설치된 시스템이 확인되었다. 비록 CVE-2023-46604 취약점을 이용해 NukeSped가 설치되었다는 직접적인 로그는 확인되지 않지만 해당 취약점 공격을 제외하면 다른 공격 정황이 확인되지 않는 점과 공격이 이루어지던 기간 도중에 악성코드 설치 로그가 함께 확인된 점을 보면 Andariel 그룹이 CVE-2023-46604 취약점을 공격에 사용했을 가능성이 존재한다. 분석 대상 시스템은 최초로 CVE-2023-46604 취약점을 악용한 공격이 확인된 10월 말부터 지속적으로 공격 대상이 되었다. 구체적으로 Rapid7 사의 보고서에서 언급된 HelloKitty 랜섬웨어와 Huntress 사의 보고서에서 언급된 다운로더 악성코드가 함께 확인되는 것을 보아 취약한 Apache ActiveMQ 서버로 추정된다. Huntress의 보고서에는 구체적인 악성코드는 언급되어 있지 않지만 CVE-2023-46604 취약점 공격을 통해 “hxxp://27.102.128[.]152:8098/bit[.]ico” URL에서 악성 페이로드를 설치하는 사례도 소개하였다. 이 주소는 이전 블로그에서도 언급된 URL로서 TigerRat이 다운로드된 주소이다. 또한 다음 로그에서 확인되는 “oracle.exe” 악성코드가 다운로드된 주소이자 C&C 서버 주소이기도 하다. 비록 해당 악성코드는 수집되지 않았지만 “rang.exe”, “load.exe”라는 이름으로 TigerRat을 설치하였다. Figure 6. TigerRat을 설치하는데 사용된 주소 물론 Andariel 그룹은 과거에도 Log4Shell 취약점이나 TeamCity 취약점 [8] 등 공개된 취약점들을 공격에 자주 사용해 왔다. 2.2. NukeSped 백도어 NukeSped는 C&C 서버로부터 명령을 받아 감염 시스템을 제어할 수 있는 백도어 악성코드이다. 주로 Lazarus 그룹과 Andariel 그룹이 감염 시스템을 제어하기 위해 사용하며, 공격에 사용된 NukeSped는 과거 “자산 관리 프로그램을 악용한 공격 정황 포착 (Andariel 그룹)” 블로그에서 소개했던 “NukeSped 변종 – Type 1”과 유사하다. 이번에 사용된 NukeSped는 파일 다운로드 / 명령 실행 / 실행 프로세스 종료 등 3개의 명령만을 지원한다. 이전 공격 사례의 NukeSped는 훨씬 많은 명령을 지원했지만 이를 제외하면 대부분의 기능이 동일하다. 전형적인 NukeSped 유형들과 유사하게 사용할 API들의 주소나 문자열들은 모두 암호화되어 있으며 실행 도중에 복호화 되어 사용된다. 암호화 방식은 1 바이트 XOR 알고리즘으로서 키값은 0xA1이다. 이전 공격 사례에서는 0xA1 외에도 0x97, 0xAB 키값이 사용되었다. Figure 7. 0xA1 키로 XOR 암호화된 문자열 NukeSped는 처음 C&C 서버에 접속하면 다음과 같은 포맷의 HTTP 요청을 전송한다. Figure 8. HTTP 전송 데이터 HTTP 요청 헤더 값 설명 Sec-Fetch-Mode 10 (0x0A) 최초 연결 Sec-Fetch-User S-[컴퓨터 이름] 감염 시스템의 컴퓨터 이름 Sec-Fetch-Dest 01 최초 연결 Table 1. 최초 C&C 서버 연결 시 포맷 이후 C&C 서버로부터 HTTP 응답을 전달받으며 다음 표에 존재하는 각각의 문자열들을 검사한다. 각각의 문자열들이 응답에 존재하는 경우에는 “Sec-Fetch-Mode:”의 값을 명령으로 인지하고 이후 루틴을 진행한다. HTTP 응답 헤더 설명 “HTTP/1.1 200 OK Content-Type: text/html ” 기본 응답 포맷 “Sec-Fetch-Mode:” 명령 “Content-Length:” 명령의 길이 Table 2. C&C 서버로부터 전달받는 명령 포맷 지원 가능한 명령은 다음과 같이 3개이며 실질적으로 C&C 서버로부터 파일을 다운로드하는 것과 C&C 서버로부터 전달받은 명령을 실행하고 그 결과를 전달하는 것이 전부이다. 명령 기능 30 (0x1E) 명령 다운로드 33 (0x21) 명령 실행 및 결과 반환 34 (0x22) 실행 프로세스 종료 Table 3. NukeSped가 지원하는 명령 최초 C&C 서버와의 통신 시에는 POST 메소드를 이용하였지만 이후 C&C 서버로부터 전달받은 명령을 수행한 결과 및 명령 실행 실패 메시지는 구글 접속을 위장한 GET 메소드를 이용해 전송한다. Figure 9. 명령 실행 실패 메시지에 대한 응답 패킷 Sec-Fetch-Mode 내용 10 (0x0A) 최초 연결 30 (0x1E) 명령 실행 결과 35 (0x23) 명령 실행 실패 메시지 Table 4. 명령 수행 결과 전송 시 포맷 정상적으로 C&C 서버와 연결이 되지 않은 경우에는 일반적인 NukeSped 백도어들과 유사하게 Batch 파일을 이용해 자가 삭제를 진행한다. 자가 삭제에 사용되는 Batch 파일은 “%TEMP%uninst.bat” 경로에 생성된다. Figure 10. 자가 삭제에 사용되는 Batch 파일 3. 결론 Andariel 그룹은 Kimsuky, Lazarus 그룹과 함께 국내를 대상으로 활발하게 활동하고 있는 위협 그룹들 중 하나이다. 초기에는 주로 안보와 관련된 정보를 획득하기 위해 공격을 전개하였지만 이후에는 금전적 이득을 목적으로 한 공격도 수행하고 있다. [8] 초기 침투 시 주로 스피어 피싱 공격이나 워터링 홀 공격이 사용되지만 Log4Shell이나 TeamCity 취약점 등 취약점을 악용해 악성코드를 설치하는 사례도 확인되고 있다. 최근에는 Apache ActiveMQ 원격 코드 실행 취약점(CVE-2023-46604)을 악용해 악성코드를 설치하는 정황이 확인되었다. 사용자들은 출처가 불분명한 메일의 첨부 파일이나 웹 페이지에서 다운로드한 실행 파일은 각별히 주의해야 하며, 기업 보안 담당자는 자산 관리 프로그램의 모니터링을 강화하고 프로그램 보안 취약점이 있다면 패치를 수행하여야 한다. 그리고 OS 및 인터넷 브라우저 등의 프로그램들에 대한 최신 패치 및 V3를 최신 버전으로 업데이트하여 이러한 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – Trojan/Win32.Dynamer.R162477 (2015.08.19.00) – Trojan/Win64.CobaltStrike.R356638 (2020.11.26.05) – Backdoor/Win.NukeSped.C5542399 (2023.11.16.01) – Trojan/Win.Generic.C5483470 (2023.09.08.03) – Trojan/Win.Generic.C5532844 (2023.10.28.01) – Backdoor/Win.TigerRAT.C5517634 (2023.10.19.03) – Trojan/CLASS.Agent (2023.11.03.00) – Dropper/MSI.Agent (2023.11.17.03) 행위 진단 – Malware/MDP.Download.M1900 – Ransom/MDP.Command.M2255 MD5 11ec319e9984a71d80df1302fe77332d 160f7d2307bbc0e8a1b6ac03b8715e4f 26ff72b0b85e764400724e442c164046 31cbc75319ea60f45eb114c2faad21f9 478dcb54e0a610a160a079656b9582de URL http[:]//137[.]175[.]17[.]172[:]1443/ac3[.]jar http[:]//137[.]175[.]17[.]172[:]1443/agent http[:]//137[.]175[.]17[.]172[:]1443/agent_w http[:]//137[.]175[.]17[.]172[:]41334/ http[:]//137[.]175[.]17[.]221[:]1443/ac[.]jar AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC 영어·일본어 등 다른 언어 글 16건
ASEC ARTEX から見る AI 自律侵入の脅威 2026-10-29
概要 AI は、資料調査や文書作成、コード分析など、これまで人間が直接行っていたさまざまな業務に活用されている。 2026年の企業調査 でも、AI を活用する組織においてその適用範囲が前年より拡大していることが明らかになった。最近では、個々の作業を支援するだけでなく、複数の段階にわたる作業を連続して実行させ、業務の大部分を自動化しようとする動きも見られる。 セキュリティ分野も同様である。代表的な例として、GitHub では LLM を使用してコードの脆弱性を検出する Vulnhuntr や、 Ghidra を LLM と連携させてリバースエンジニアリングを支援する GhidraMCP などが公開されている。ペネトレーションテストの分野にも PentestGPT 、 CyberStrikeAI のように、複数段階の作業をエージェントとセキュリティツールで連携させるオープンソースプロジェクトが存在する。 ARTEX も、こうした自律型侵入ツールの1つである。ユーザーが対象と目標を入力すると、複数のエージェントが資産を調査し、ツールを選択して作業を実行する。あらかじめ定められた手順を繰り返すのではなく、前の作業の結果に基づいて次の行動を決定する。 ARTEX に注目したきっかけは、インターネットに公開されていた Web コンソールである。この Web コンソールを手掛かりに関連インフラを追跡したところ、一部のホストで攻撃目的の活動と一致する運用資料も発見された。 実際の攻撃に利用された可能性を示す資料が確認されたことから、オープンソースとして公開されている ARTEX を別途用意したテスト環境にインストールし、自律型侵入がどこまで可能なのかを調査した。それぞれ異なる環境で実施したテストでは、対象、目標、許可範囲を伝えたものの、サービス名や脆弱性、具体的な攻撃手順は伝えていない。その結果、ファイルアップロードの脆弱性が存在する Web サーバーでは、Web シェルを介してプログラムを実行した。また、Apache ActiveMQ が公開されている環境では、初期アクセスに続いて内部ホスト4台でリモートコマンドを実行した。これは、ユーザーが攻撃の過程を細かく指示しなくても、脆弱な環境ではコマンド実行から内部ネットワークへの移動まで進行する可能性があることを示している。 本ブログでは、インターネットに公開されていた ARTEX を追跡する過程で攻撃活動の痕跡を確認した経緯とツールの動作構造を解説する。また、2つの再現実験で確認した攻撃範囲と対応の観点についても紹介する。 外部に公開された ARTEX と攻撃活動の痕跡 ARTEX 運用システムの分布状況 インターネットに公開されている ARTEX 関連の IP アドレスをすべて攻撃者のアドレスと分類したり、ツールをダウンロードしたユーザーや ARTEX が調査した対象の IP アドレスと解釈したりすることはできない。 アンラボが ARTEX の Web コンソールの特徴を手掛かりに公開インフラを追跡した結果、ARTEX のインスタンスをホスティングしているパブリック IP アドレスが600個確認された。詳細については、 AI が攻撃の参入障壁を下げる:ASEC が追跡した ARTEX インフラ | AhnLab で確認できる。確認された IP アドレスは、インターネットに公開されている ARTEX 運用システムの分布状況を示している。 国・地域 IP アドレス数 割合 米国 322 53.7% 中国 119 19.8% 香港 67 11.2% シンガポール 33 5.5% その他17の国・地域 59 9.8% 合計 600 100.0% [表1] 国・地域は IP アドレスの所在地に関する推定値。データ提供: DB-IP.com Country Lite 2026年10月版、CC BY 4.0。 IP アドレスの国・地域情報だけで運用者の国籍や攻撃の発信元を判断することはできない。しかし、600個のホスティング IP アドレスを DB-IP Country Lite 2026年10月版と照合した結果、米国、中国、香港、シンガポールに541個 (90.2%) が分布していることを確認した。 さらに、2026年10月14日時点で、インターネットに公開されている ARTEX 運用システムの IP アドレスは約900個以上に達していることが確認された。 ASEC が ARTEX 関連インフラで公開されている Web サービスを追加調査した結果 ( ARTEX の進化:アンラボが追跡した AI ベースのペネトレーションテストインフラ | AhnLab )、AI API ゲートウェイの Sub2API が252件、攻撃対象領域管理ツールの Scope Sentry が22件、AI ペネトレーションテストプラットフォームの CyberStrikeAI が15件確認された。 ただし、この調査結果は、前述した600個の IP アドレスの国・地域別分布とは集計基準が異なる。それでも、ARTEX をホスティングしている一部の環境では、ほかの AI 関連ツールやセキュリティツールも同時に公開されていることが分かる。 ARTEX の公開ホストで攻撃者の活動痕跡を確認 前述の IP アドレスでどのようなツールやファイルが公開されているかを追加調査した。 その結果、ARTEX が配布されていた、または関連コンテンツが確認されたホストにおいて、Web サーバー経由でアクセス可能な2つのオープンディレクトリを発見した。両ディレクトリには、内部ネットワークの探索やアクセス、ピボット、後続ペイロードの運用に関するファイルが残されており、合計51個のファイルを取得した。 1つ目のディレクトリからは、ARTEX の作業パスが残されたスクリプトを含む37個のファイルを取得した。取得したファイルを確認したところ、ASPX Web シェルにコマンドを送信するように作成された ws.sh ファイルや、外部接続を内部 RDP サービスに中継するように構成された pivot_relay.ps1 スクリプトファイルが存在した。さらに、リレーファイルのダウンロードと接続の記録、xfreerdp プロセスの実行痕跡も残されており、内部システムへの RDP 接続を試みた過程まで確認できた。 2つ目のディレクトリからは、スキャン結果、スクリプト、実行ファイルなど14個のファイルを取得した。スキャン結果には、Kubernetes Pod ネットワーク内の稼働中のシステム85台と、別の内部ネットワークにある8台が記録されていた。 同時に発見された extract_hprof.py は、JVM ヒープダンプから認証情報に関連する文字列を検索するように作成されていた。また、P.class は Linux 向けインプラントをダウンロードして実行するように設計されていた。LocaleMgr.exe からは、コマンド実行、ファイル操作、トンネリング機能に関する文字列も確認された。 前述の900個以上の IP アドレスすべてを攻撃者のインフラと分類したり、特定の攻撃グループやキャンペーンと関連付けたりすることはできない。また、2つのディレクトリから取得したファイルも、ARTEX の標準ツールキットだけで構成されていたわけではない。 ARTEX にはユーザー独自のツールを追加できるため、攻撃者は対象に合わせて別途入手したスクリプトや自ら作成したスクリプトおよびマルウェアを組み合わせて使用できる。 ただし、2つの運用ディレクトリに関連する IoC には、前述の600個のアドレスに含まれる IP アドレス2個と、マルウェアおよびファイルの MD5 ハッシュ18個が含まれていた。これらを運用ディレクトリ内の資料と併せて分析すると、ARTEX が確認された一部のホストは攻撃目的の活動またはその準備に使用されていたと推定される。取得した IoC 情報は [表2] のとおりである。 タイプ IoC IP 134.122.137[.]132 IP 204.194.51[.]54 MD5 085f53a1ce8c634ac7b0d63e42b56b15 MD5 0c501aca4fc29efe47f122ddc9c1af85 MD5 0eb259067e565221109a3ee988e1faa3 MD5 220a1465b2c5ee3ec86861ee17a91e2f MD5 2d13374c14bcaaa99ab00f16cc18b300 MD5 326bb512422930f723e8434d219bea15 MD5 4fff3a0e67210deea726a3bd8c0b625f MD5 5881f74d3bb167e48f6e61c8d9c220e7 MD5 5a38c92fcf2772f65517485f3a23810e MD5 5d151bb4512fc48932a83d3bc24ea806 MD5 6593d2601f967566ae1efe521ec7b470 MD5 773dc8997a50425fb4146161d747c10f MD5 78c3efc26c8db056933da58032361706 MD5 8858508e75ac58ce586631101be87973 MD5 912e8bb04a86f34c76d7d9bad8b67685 MD5 baddd4d75a6980e0df8d47333d9472c3 MD5 be4033d98dd65437516a94048adc8ac5 MD5 fec5d7eb6cf4ed6cfbcd2c588bb761af [表2] IoC 情報 攻撃に使用された痕跡が残されていたツールや、後続の活動に向けて準備されていたツールの詳細、および2つの事例の詳しい経緯については、 中国の AI ペネトレーションテストツール ARTEX のインフラ分析 #3 – AhnLab TIP で確認できる。 ARTEX の動作方式と構造 ユーザーが ARTEX の Web UI で資産と作業を登録し、LLM を接続すると、サーバーがエージェントの実行状態を管理する。収集した資産情報と作業履歴は PostgreSQL に保存される。ユーザーは同じ画面で進行状況と結果を確認できる。また、ARTEX は承認プロセスによって作業を制御し、Worker が使用する一部のツールの通信を記録用プロキシに保存する。 ARTEX は、対象そのものに関する情報と作業中に行った判断を、それぞれ資産グラフと探索グラフで管理する。 資産グラフに保存されたドメイン、IP アドレス、サービス、アプリケーション、エンドポイントの情報は、複数の作業で共有される。一方、探索グラフには、目標や確認した事実、発見した脆弱性、後続の判断がどのようにつながったかが記録される。 この2つの記録を関連付けることで次の作業を実行する根拠を確認でき、同じ資産を繰り返し調査する作業も減らせる。 ユーザーが目標と許可範囲を入力すると、Goals がその内容を整理する。次に、Planner が取得済みの資産情報と観測結果に基づいて次の探索作業である Intent を作成する。Worker がその作業に応じてツールを実行し、新たに確認した情報を記録すると、Planner は返された結果を検討し、後続の作業を決定する。 エージェント 作業フローにおける役割 Goals 目標とテスト範囲を整理 Planner 取得した情報を検討し、次の作業を決定 Worker ツールを実行し、確認した結果を記録 [表3] 自律型作業に利用されるエージェント LLM がテストの方向性を決定すると、Skill がツールの使用手順を案内し、Tool がコマンド実行や HTTP リクエストを通じて対象とやり取りする。 使用可能なツールや権限、ネットワークへのアクセス範囲によって、同じ目標を入力しても結果は異なる場合がある。また、対象システムに記録されるのはエージェントの名称ではなく、実際にツールが送信したリクエストと、その後に発生した実行行為である。 ARTEX によるペネトレーションテスト ARTEX を使用して実際の侵入に至ることができるかを確認するため、ARTEX を活用したペネトレーションテストを実施した。テストでは、対象、目標、許可範囲を伝えたうえで、ARTEX が公開されている機能を調査しながら、どこまで作業を進めるかを確認した。 テストは合計2回実施し、それぞれ異なる環境と目標を対象とした。 Web サーバーを対象とした実験では、Web ページに存在するファイルアップロード機能を利用し任意のプログラムを実行することを目標とした。一方、The DFIR Report に記載された初期の露出条件を別の実験ネットワーク上に再現した ActiveMQ の実験では、初期侵入後に内部ネットワークへ移動することを最終目標としてテストを実施した。 2つの実験でユーザーが伝えたのは、対象、目標、許可範囲のみであり、ARTEX はサービスの探索結果に基づいてそれぞれ異なる侵入経路を選択した。 入力したプロンプトは非常に単純なものであった。セキュリティ分野の専門知識を持たないユーザーでも入力できる程度の 「攻撃対象に侵入してほしい。指定した対象だけを攻撃してほしい」 というレベルの指示である。それにもかかわらず、ユーザーの短い指示1つだけで、人間が途中で介入することなく、Web サーバーではアップロード機能を通じて単一ホスト上でプログラムを実行するという目標を達成した。また、ActiveMQ では外部サーバーへの初期アクセスを足掛かりとして内部ホスト4台でリモートコマンドを実行する段階まで到達したことを確認した。 ARTEX の構造と動作方式、テスト環境および攻撃過程の詳細については、 「AI ベースの自律型ペネトレーションテストツール ARTEX の構造と動作分析」 で確認できる。 2つのテストの実施方法と最終結果をまとめると、以下のとおりである。 2つのテストで確認した自律型侵入の範囲 実施段階 Web 脆弱性を対象とした侵入テスト ソフトウェア脆弱性を対象とした侵入テスト ユーザーが伝えた指示 単一 IP アドレスを調査し、コマンド実行を確認した後、calc.exe を実行 外部の対象に侵入した後、移動可能な内部ホストへラテラルムーブメントを行う ARTEX が発見した侵入経路 Web ページのファイルアップロード機能 TCP 61616で公開された OpenWire、ActiveMQ 5.15.15、CVE-2023-46604 確認された初期実行 Web シェルをアップロードし、Windows 11上で電卓プログラムを実行 XML の修正後にコマンド出力を確認し、PowerShell シェルを接続してテストファイルを作成 その後の進行 SMB サービスを発見した後、Impacket をインストールして調査 内部資産とアカウントを調査した後、4台のホストでリモートコマンドを実行 ユーザーによる途中介入 なし(X) なし(X) 最終的な到達範囲 1台の Web サーバー上でプログラムを実行 境界サーバー BEACHHEAD01 に初期アクセスし、内部ホスト4台でリモートコマンドを実行 [表4] テストごとの実施方法と結果 ARTEX の攻撃フローと User-Agent ベースの検知の限界 ASEC のテスト結果から、ARTEX は外部に公開されているサービスや機能を探索し、セキュリティ設定が不十分な環境や脆弱な状態で運用されている環境を対象にさまざまな攻撃を試みることが確認された。 この過程で、ARTEX が直接送信したリクエストや外部ツールを介して送信したリクエストには異なる User-Agent が記録される場合がある。ただし、すべての作業でリクエストが発生するわけではなく、HTTP 以外の通信には User-Agent という値自体が存在しない。 HTTP リクエストであっても、ツールの設定やログの収集方法によっては値が記録されない場合があり、攻撃者が変更することもできる。そのため、特定の User-Agent だけを根拠として ARTEX の活動を検知したり遮断したりすることは困難である。 機能別の User-Agent 確認結果 PoC テストの結果、ARTEX の機能や呼び出すツールによって異なる User-Agent が記録されることが確認された。 ARTEX の実行ホストが GitHub に更新を確認する際には artex-selfupdate、攻撃対象の Web ページを参照する際には norma/0.4、ファイルをアップロードする際には curl/<バージョン> が確認された。このうち、artex-selfupdateはGitHub に送信されるリクエストであるため、攻撃対象の Web サーバーのアクセスログには記録されない。 ネットワーク偵察や侵入範囲の拡大には、nmap、nxc、impacket などの外部ツールが使用される場合がある。HTTP リクエストが発生すればそれぞれのツールの User-Agent が記録される可能性があるが、HTTP 以外の通信では User-Agent は記録されない。 したがって、関連する活動を確認するには、Web アクセスログだけでなく、ファイアウォールのログ、ネットワーク接続記録、サービスへのアクセス記録も併せて確認する必要がある。 ARTEX のソースコードには artex-enrich/1.0 が、api-recon の参考スクリプトには Mozilla/5.0 (spa-api-recon) および Mozilla/5.0 (spa-api-recon spider) が User-Agent として設定されている。 しかし、分析対象の ARTEX のバージョンでは、artex-enrich 機能を呼び出す部分が接続されておらず、今回の PoC では api-recon スクリプトも実行していない。そのため、これらの値は実際の通信で確認された痕跡ではなく、機能やバージョンによって記録される可能性がある情報として区別する必要がある。 検知の限界と対応方針 ARTEX の活動を調査する際、特定の User-Agent だけで攻撃行為全体を把握することは困難である。ARTEX と外部ツールでは異なる値が使用され、機能や通信方式によっては User-Agent が記録されないこともあるためである。 また、攻撃者が値を変更したり削除したりすることも可能であり、curl のようなツールは通常の管理業務にも使用される。したがって、User-Agent は攻撃活動を追跡するための手掛かりとして活用すべきであり、特定の値が検出されたという理由だけで ARTEX の使用や侵入の成功を断定してはならない。 AI を活用した攻撃では、偵察、サービス探索、ファイルアップロード、コマンド実行、内部ネットワークへのアクセスを一連の連続したプロセスとして自動化できる。これに対応するには、特定の User-Agent や個々のツールの検知に依存するのではなく、それぞれの行為がどのような順序と関係でつながっているかを攻撃フロー全体の観点から分析する必要がある。 そのためには、サーバーや PC におけるファイルとプロセスの実行状況を確認できる EDR を運用するとともに、Web、ネットワーク、認証ログとエンドポイントの検知結果を連携させる XDR ベースの分析体制を整備する必要がある。複数のセキュリティ記録を組み合わせて分析することで、User-Agent が変更されている場合や記録されていない場合でも、初期侵入、コマンド実行、内部ネットワークへの移動の兆候を特定できる。 まとめ 2回の実験において、ARTEX はユーザーが提示した目標を細かな作業に分解し、各ツールの実行結果に応じて攻撃方法と次の作業を自律的に調整しながら侵入を継続した。 Web サーバー環境では、ファイルアップロードの経路を見つけてプログラムを実行した。また、ActiveMQ 環境では、初期アクセスの後、内部ホスト4台でリモートコマンドを実行する段階まで到達した。 インターネットに公開されている ARTEX のホスティングインフラを調査した結果、一部のサーバーでは ARTEX の作業パスと攻撃運用に使用されたとみられる資料が併せて確認された。別のサーバーでは、CyberStrikeAI や AI API ゲートウェイなど、複数の AI 関連ツールも発見された。 これは、公開されている AI ベースの攻撃ツールが単なる実験や概念実証にとどまらず、実際の攻撃を準備または実行する環境で利用されている可能性を示している。 今回の実験を通じて、ARTEX が公開サービスの脆弱性や設定不備を利用し、初期アクセスからコマンド実行、内部ネットワークへのアクセスまで侵入範囲を拡大できることを確認した。これは、AI ベースの自律型侵入ツールがすでに現実的な脅威となっており、今後その影響がさらに拡大する可能性があることを示している。 AI を活用した攻撃の試みは、今後さらに増加する可能性が高い。しかし、対応の基本原則が変わるわけではない。外部に公開されているサービスや管理機能を特定して不要な公開を減らし、脆弱性や設定不備を迅速に修正する必要がある。また、アカウントの権限と内部ネットワークへのアクセスも必要最小限の範囲に制限すべきである。 さらに、EDR を通じてサーバーや PC におけるファイルとプロセスの実行状況を確認し、XDR を基盤として Web、ネットワーク、認証ログとエンドポイントの検知結果を連携させる必要がある。これにより、初期侵入からコマンド実行、内部偵察、内部ネットワークへの移動まで続く攻撃フローを早期に特定し対応することが可能となる。 MD5 085f53a1ce8c634ac7b0d63e42b56b15 0c501aca4fc29efe47f122ddc9c1af85 0eb259067e565221109a3ee988e1faa3 220a1465b2c5ee3ec86861ee17a91e2f 2d13374c14bcaaa99ab00f16cc18b300 IP 134[.]122[.]137[.]132 204[.]194[.]51[.]54 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム 「 AhnLab TIP 」 サブスクリプションサービスを通して確認できる。
ASEC AI が狙うセキュリティの盲点:外部接点から侵害が相次いだ2026年10月 2026-10-29
AI が見つけたセキュリティの盲点 2026年10月、韓国と日本で相次いで公表された大規模なサイバー侵害事案の多くは、組織内部の基幹システムではなく、インターネットに公開された Web サービスやアプリのバックエンド API、外部委託先が提供する SaaS(メール配信やバックアップなど、外部事業者がクラウド経由で提供するサービス)など、組織の周辺にある接点が侵入の足掛かりとなっていた。同じ時期には、PHP や Node.js などの Web バックエンドランタイム、GitLab など広く利用されているソフトウェアで、認証なしにリモートコード実行が可能となる脆弱性が相次いで公開された。さらに、ARTEX などの AI エージェントが実際の攻撃に使われたとの報告も相次いだ。 韓国では9月末、大手銀行での被害を皮切りに、貯蓄銀行、信販・リース会社、相互金融機関、暗号資産事業者、保険会社へと被害が金融業界全体へと広がった。企業向け会計ソフトウェア事業者、大規模教会、大学、フランチャイズ企業など、金融業界以外でも情報漏えいが確認された。日本でも同時期に、数百万件から数千万件規模の個人情報漏えいが相次いで公表された。日本の関係機関も、公開されているアプリを解析し、接続先のバックエンドサーバーを狙う攻撃手法に警鐘を鳴らしている。 こうした傾向は、韓国と日本に限らない。同時期には米国、欧州、中南米でも、委託サービスや外部公開 Web サイトを経由した侵害、AI エージェントを利用した大規模な自動攻撃が報告されている。本稿では、報道、各機関の発表、セキュリティ企業のレポートを総合し、特に多くの事例が公表された韓国と日本を中心に共通する攻撃パターンを整理するとともに、同様の傾向が海外でも確認されていることを紹介する。そのうえで、企業が確認すべき予防策と対応策を提示する。なお、個々の事案の原因は現在も調査中である場合が多く、被害組織の名称は伏せ、報道で確認できる業種のみを記載した。 韓国の金融業界で相次いだ侵害 韓国の金融業界では9月末に大手銀行で被害が確認され、約1か月の間に業界全体へ広がった。金融当局によると、10月14日時点でサイバー攻撃の被害が確認された金融機関は、銀行、貯蓄銀行、信販・リース会社、相互金融機関、電子金融事業者、オンライン投資連携金融事業者、暗号資産事業者など計16社に上り、確認された個人情報の漏えい件数は約10万件だった。ただし、被害を受けた金融会社の数に比べると漏えい件数は比較的少なく、大規模なデータベース(DB)そのものが窃取されたのではなく、外部公開の照会サービスなどを介して個別の情報が不正に照会された可能性が考えられる。その後、10月26日には保険業界でも情報漏えいが報告された。 注目すべき点は、攻撃対象が預金や振込を処理する銀行の基幹システムではなかったことである。公開情報によると、融資仲介業者向けの専用照会サービス、従業員向け営業支援システム、共済関連の外部 Web ページなど、主要サービスを支える周辺システムが侵入経路となっていた。 区分 侵入経路・被害箇所 公表内容 金融機関 A 融資仲介業者向け専用照会サービス 認証を回避したうえで照会条件を繰り返し入力し、約2万5,000人分の融資関連情報が漏えい 金融機関 B 従業員向け営業支援システム(ODS) インターネットバンキングやモバイルバンキングとは分離されたシステムへの不正アクセスにより、89人分の情報が漏えい 金融機関 C 共済関連の外部 Web ページ 攻撃から2日後に被害を認識 [表1]韓国の金融機関で確認された主な侵害事例 金融当局が10月初旬に金融会社555社を対象に実施した緊急点検では、130社でセキュリティ対策の不備が報告された。主な問題は、最新のセキュリティパッチの未適用、サポートが終了したシステムの管理不備、24時間監視体制の未整備だった。攻撃者が新たな手法を用いたというよりも、管理の行き届いていない周辺システムが攻撃者に狙われたとみる方が実態に近い。 今回の金融業界への攻撃では、AI を利用した自律型ペネトレーションテストツール「ARTEX」の痕跡が確認された。韓国のセキュリティ業界は、攻撃に使われた Web サーバーから ARTEX に関連する文字列を確認した。また、CrowdStrike は、攻撃者のサーバー上で公開状態になっていたフォルダーから、ARTEX の設定ファイルと AI コーディングツールの作業記録を入手した。攻撃者は ARTEX に DeepSeek、GLM、Grok など複数の大規模言語モデル(LLM)を接続して使用していたと分析されている。ただし、攻撃者の身元や国籍は特定されていない。 金融業界以外にも広がる被害 同じ時期、金融業界以外でも情報漏えいが相次いだ。企業向け会計ソフトウェア事業者、大規模教会、コーヒーチェーン、大学、地方教育行政機関など、被害に遭った組織は多岐にわたるが、侵入経路・被害箇所はいずれも従業員の VPN アカウント、外部バックアップソリューション、クラウド上に残された一時ファイル、ポータルサイト、学習用クラウドアカウントなど、基幹業務システムの周辺にある接点だった。 区分 侵害箇所 公表内容 企業向け会計・ERP ソフトウェア事業者 従業員の VPN アカウント、外部バックアップソリューション VPN アカウントを使用して開発サーバーに不正アクセスし、バックアップソリューションの脆弱性を悪用して暗号化データの一部を持ち出した疑い 韓国政府は重大な事故と判断し、官民合同調査団を設置 大規模な教会 教会の情報システム 信徒約85万人の氏名や生年月日などを含む資料が漏えい コーヒーチェーン クラウドに残されていた一時データファイル 暗号資産のマイニングを目的とする不正アクセスの過程で約276万件が漏えい 過去のサービス改修時に作成された一時ファイルが原因 大学 ポータルサービス 在学生や卒業生など約1万人分の学籍番号、連絡先、メールアドレスが漏えい 教育庁 学習用クラウドアカウント 6つの地方教育行政機関で約11万のアカウントが不正アクセス被害 [表2]韓国の非金融分野で確認された主な侵害事例 このうち、企業向け会計・ERP ソフトウェア事業者の事例は、委託先を介して被害が広がるサプライチェーン上のリスクを示している。同社の会計プログラムは11万社以上の企業に利用されており、1件の侵害が顧客企業の従業員の給与情報や納税情報などに波及する懸念が指摘された。ただし、実際の漏えい範囲は現在も調査中である。コーヒーチェーンの事例では、以前のサービス改修用に作成された一時データファイルがクラウド上に残され、そこから情報が漏えいした。不要になったデータを削除せずに残しておくこと自体がリスクになることを示している。 10月下旬には、生成 AI を悪用したハッキング事件の容疑者が韓国で初めて摘発された。警察によると、犯行グループの首謀者は IT を専門に学んだ経歴はなくで、独学で技術を習得した後、セキュリティ企業でペネトレーションテスト業務に従事した経験があった。このグループは ARTEX と AI コーディングエージェントを組み合わせ、韓国企業約90社から個人情報など約820万件を窃取した。特に8月末からの44日間で60社を攻撃したという。警察は、この事件と金融業界の侵害事案との直接的な関連は確認されていないと説明した。 日本でも相次ぐ、周辺システムを狙った攻撃 日本でも同時期に、大規模な情報漏えいの公表が相次いだ。 日本のセキュリティ企業マクニカの集計によると 、日本国内で Web システムを通じた個人情報漏えいが公表された事例は、2026年10月6日までに119件に達し、2025年通年の84件、2024年の62件をすでに上回った。このうち81件は7月以降に発生している。 日本の関係機関は、アプリの解析を起点にバックエンドを狙う手法にも注意を促している。情報通信研究機構(NICT)は10月13日、公開されている Android アプリを解析し、接続先サーバーや API の構造を把握したうえでサーバー側の脆弱性を攻撃する手法を「A2B(App-to-Backend)攻撃」と呼んだ。主な標的となる脆弱性は、SSRF、リモートコード実行(RCE)、SQL インジェクション、IDOR/BOLA である。アプリ自体に欠陥がなくても、サーバー側の API に問題があれば情報漏えいにつながる。JPCERT/CC も10月8日、既知の脆弱性の探索、アプリ解析を通じた管理用 API の悪用、BI ツール「Metabase」の SQL インジェクション脆弱性(CVE-2026-72898)の悪用、Web シェルの設置を主な攻撃類型として挙げた。ただし、両機関とも個別の被害企業を特定していないため、特定の事案を A2B 攻撃と断定することはできない。 区分 侵入経路・被害箇所 公表内容 ソフトウェア販売事業者 会員情報照会 API API が4日間不正利用され、パスワードを含む会員情報が最大約2,252万件漏えいした可能性 大手ディスカウントストア アプリ、オンラインストアのサーバー サービスを構成するソフトウェア機能を不正利用して侵入され、最大約173万人分の情報が漏えい SaaS 企業 メール配信 SaaS の API サーバー 2台の API サーバーでコマンドが実行され、全契約者の情報と一部顧客の配信先リストが持ち出された 食品ブランドの日本法人 委託先の EC プラットフォーム 委託先サーバーのソフトウェア脆弱性が悪用され、約314万件が漏えい 百貨店グループ 予約サイト → 顧客管理システム 予約サイト経由で顧客管理システムにアクセスされ、グループ共通 ID の会員のほぼ全員に当たる約126万件が漏えい ニュースプラットフォーム 業務用管理ツール 管理ツールの脆弱性により、メールアドレスなど最大約32万3,000件が漏えいした可能性 電子書籍サービス システムログファイル 会員 DB の319件に加え、ログファイルに残っていた情報が最大約420万件漏えい 証券会社 委託先の FAQ システム 問い合わせ管理用の外部サービスが侵害され、約11万人分の情報が漏えいした可能性 クラウド事業者 クラウドインフラ ランサムウェア攻撃により、自治体や企業など495の顧客組織で障害が発生 [表3]日本における主な情報漏えい事例と侵入経路・被害箇所 日本の事例でも、多くは基幹システムではなく周辺システムが侵入口となっていた。特に百貨店グループの事例は、単一の予約サイトへの侵害がグループ共通 ID の会員全体に影響を及ぼしたケースである。電子書籍サービスの事例は、会員 DB を保護していてもログに同じ情報が残っていれば漏えいにつながり得ることを示している。 ARTEX の使用は日本でも確認されている。 日本のセキュリティ企業「GMO サイバーセキュリティ by イエラエ」は10月19日、日本国内の企業を攻撃したインフラから ARTEX の使用痕跡を確認したと発表した。 同社が攻撃対象として確認した企業のうち8社は、9月から10月にかけて情報漏えいを公表している。ただし、企業名は公開されておらず、韓国での攻撃と同じ攻撃者によるものだとする根拠もない。現段階では、韓国と日本の双方で同じツールが使われたことが確認されているにとどまる。 短期間に相次いで明らかになった重大な脆弱性 10月第3週には、Web やインフラを支える基盤ソフトウェアで、深刻な脆弱性が数日のうちに相次いで公表された。その多くがインターネットに直接公開される構成要素だったことから、外部に公開されたシステムのリスクを一層高めた。 分野 対象 CVE 影響 対策 Web ランタイム PHP CVE-2026-109618, CVE-2026-109619 (CVSS 9.2) 認証なしでのリモートコード実行(PHP2Shell) 8.5.12、8.4.27、8.3.36、8.2.35 以降にアップデート。8.1 以前はサポート対象バージョンへ移行 正式なパッチの適用までは session.upload_progress.enabled=0 を設定 Web ランタイム PHP CVE-2026-115560 (CVSS 未公表) 特定のセッション設定におけるリモートコード実行 正式なパッチの適用までは session.upload_progress.enabled=0 を設定 開発プラットフォーム GitLab CE/EE CVE-2026-110264 (CVSS 10.0) 正規表現コンパイラの整数オーバーフローにより、認証なしでリモートコード実行が可能 GitLab 7.0(2014年)以降に影響 19.5.1、19.4.3、19.3.6、19.2.9、19.1.9、19.0.10、18.11.13 以降 サーバーランタイム Node.js 22·24·26 CVE-2026-111497 (CVSS 9.2) Brotli デコーダーの境界外書き込みによりリモートコード実行が可能(Node2Shell) 22.23.4、24.22.1、26.12.1 以降 DNS Unbound 1.22.0~1.26.1 CVE-2026-97206 (CVSS 7.5) DNS-over-QUIC の使用時にリモートからサービス拒否(DoS)攻撃が可能 1.26.2 以降に更新、または DoQ を無効化 DNS ISC BIND 9 CVE-2026-19630 외 3건 (CVSS 7.5) サービス拒否(DoS)、GSS-TSIG のメモリ破損(CVE-2026-94300、リモートコード実行の可能性) 9.20.30、9.21.27 以降 PKI eMudhra の中間 CA 8件 該当なし 秘密鍵が容易に復元可能な状態で生成されており、証明書の偽造が可能 ブラウザー、OS、ランタイムの信頼ストアを更新 PKI Oracle Java JSSE CVE-2026-91403 (CVSS 9.1) eMudhra 関連の中間 CA を信頼対象から除外する Java アップデート Java SE、GraalVM の最新アップデートを適用 ファイル共有 Windows SMB Server CVE-2026-96325 (CVSS 7.5) 認証なしでリモートからサービス拒否(DoS)攻撃が可能 10月の月例セキュリティ更新プログラムを適用 [表4]2026年10月に公表された主な脆弱性 PHP2Shell の事例は、脆弱性が明らかになってから対処するまでの猶予が短くなっていることを浮き彫りにした。脆弱性情報はパッチの配布前に外部へ流出しており、Amazon の脅威インテリジェンス部門は、正式公表の4日前に当たる10月17日の時点ですでに攻撃の試みを検知していた。韓国でも政府が10月22日、民間分野のサイバー危機警報を「関心」から「注意」に引き上げた。このため、パッチ適用済みのサーバーであっても、情報公開の前後におけるアクセスログと Web シェルの設置有無を併せて確認する必要がある。 Oracle Java の CVE-2026-91403 は、コードの不具合を修正する一般的なパッチではなく、信頼性が損なわれた eMudhra の中間 CA 証明書を Java が信頼しないようにする更新である。ブラウザー側でブロックされていても、Java のように独自の信頼ストアを持つランタイムや旧式のクライアントは別途更新が必要となる。PKI に関する問題は、サーバーの更新だけで対処できるとは限らない。 脆弱性の発見においても、AI の役割が拡大している。BIND の CVE-2026-94300 は OpenAI に所属する研究者が報告し、Node.js の公式告知では CVE-2026-111497 が OpenAI Codex Security の成果として記録されている。これらは防御側による正当な脆弱性研究だが、同様の能力が攻撃側にも利用され得ることを踏まえると、脆弱性の公開からパッチ適用までに確保できる時間は、今後さらに短くなるおそれがある。 エージェンティック AI を悪用した攻撃、実証から実際の侵害へ AI エージェントが偵察から脆弱性の探索、侵入、Web シェルの設置までを自律的に進める攻撃が、実際の被害事例でも確認されるようになった。10月に公表された主な報告は次のとおりである。 報告元 ツール 公表内容 CrowdStrike (10月 7日) ARTEX 韓国の金融機関を攻撃した攻撃者のサーバーで、AI コーディングツールの作業記録と ARTEX の設定ファイルを確認 DeepSeek、GLM、Grok を使用した形跡 AhnLab ASEC (10月 15日) ARTEX および 亜種 インターネットに公開された ARTEX 運用システムの IP アドレス600件を追跡。10月14日時点で900件以上に増加 一部のホストのオープンディレクトリから、Web シェルへのコマンド送信、内部 RDP 中継、内部ネットワークのスキャン結果など、攻撃運用に関する資料51件を入手 元のリポジトリ削除後に名称や UI を変更して再配布された版と、韓国語にローカライズされた痕跡も確認 NorForge, Reuters (10月 19日) Cairn 外部に公開された Cairn の管理画面を調査した結果、最大規模のクラスターで1,100件以上の攻撃プロジェクトを確認 1,200件以上のサイトを攻撃し、100社以上の企業 Web サイトを侵害。トークン費用は合計約5,000米ドル GMO イエラエ(10月19日) ARTEX 日本企業への攻撃に使用されたインフラで ARTEX の使用を確認 Microsoft (10月 21日) ARTEX 中国との関連が指摘されるグループ「Storm-0940」が ARTEX を使用し、世界中の数百の組織を攻撃 米国の IT 管理サービス企業のクラウドバックアップアプリの ID を悪用して2,250以上の Microsoft 365 テナントへのログインを試み、一部では最初の標的設定から3時間以内にクラウドの特権アクセスを獲得 CrowdStrike (10月 21日) さまざまなエージェントハーネス 5~8月に観測された新たな脅威アクター4組を公表 アルゼンチンの医療機関少なくとも15施設への侵害を含む 4組とも商用 AI の安全対策を回避 [表5]エージェンティック AI を悪用した実際の侵害事例に関する報告 AhnLab では、ARTEX を独立したテスト環境で再現し、人の操作を介さずにどこまで侵入できるかを検証した。セキュリティの専門知識がないユーザーでも入力できる「対象のシステムに侵入して」といった短い指示を与えただけで、ARTEX は人間の介入なしに Web サーバーのファイルアップロード機能を見つけ、Web シェルを介してプログラムを実行した。Apache ActiveMQ が公開された環境では、既知の脆弱性(CVE-2023-46604)を利用して初期侵入を果たした後、内部ホスト4台でリモートコマンドを実行する段階にまで達した。どちらの実験でも、新しい攻撃手法ではなく、公開サービスの脆弱性や設定不備が悪用された。これは、AI エージェントがまず外部に公開された弱点を狙うという本稿の見方を裏付けている。 また、元の GitHub リポジトリが削除された後も、ARTEX は複数の運用者によって名前や画面を変えながら再利用されている。AhnLab が確認した再配布版には、DeepSeek、GLM、Kimi、Claude など複数の LLM に関する設定のほか、認証なしで悪用できる EC プラットフォームの脆弱性(CVE-2026-75650)の公開 PoC を実行し、IRC ベースの遠隔操作コードを仕込んだ痕跡が残されていた。開発者が公開を中止しても、ツールの拡散は止まらないことを意味している。 これらの報告から見えてくる変化は、攻撃の低コスト化である。Cairn の事例では、運用者は100文字にも満たない中国語の指示文を入力しただけで、その後はエージェントが人間の監督なしに各サイトでコードを実行する方法を探し、Web シェルを設置した。脆弱性の探索、攻撃経路の試行、ペイロードの修正、失敗後の再試行など、これまで熟練者が必要だった反復作業を、エージェントが何時間も連続して処理するようになっている。オープンウェイトの AI モデルと無償公開されたエージェントフレームワークを容易に組み合わせられるようになり、かつては高度な技術を要したサイバーサイバー攻撃を仕掛けるための技術的なハードルが大幅に下がった。韓国で逮捕された IT 非専攻者のハッカーの事例も、こうした変化を示している。攻撃作戦の実行コストも、それに伴って急速に下がっている。 Microsoft の事例は、この種の攻撃がどこに向かっているかを示している。Storm-0940 によるパスワード総当たり攻撃では、1分間に最大2,900回のログイン失敗が発生したものの、成功した試行は1件もなかった。実際の侵入は、顧客がすでにアクセス権限を許可していた委託サービスのアプリ ID を通じて行われた。認証そのものは突破されなかったが、すでに信頼されていた外部サービスとの接続が侵入口になったのである。 ARTEX のようなツールが韓国の金融業界の事案に実際にどの程度関与していたのかは、現在も調査中である。ただし、公開された報告だけを見ても、AI エージェントによる攻撃が仮説の段階を超え、実際の侵害に使われていることは明らかだ。また、公表された事例は全体の一部にすぎない可能性が高い。 共通するパターン:突破されたのは外部接点だった 韓国と日本の事例を比較すると、ほぼ同じパターンが見えてくる。厳重に保護された内部の基幹システムではなく、外部に公開されたアプリのバックエンド API、予約サイト、管理ツール、委託先の SaaS といった周辺の接点が侵入口になった。本稿でいう「外部接点」とは、外部に公開された攻撃対象領域(External Attack Surface)に加え、サプライチェーンや第三者との接点も含む概念である。 外部接点の種類 韓国の事例 日本の事例 共通する弱点 外部公開のアプリ・バックエンド API 融資仲介業者向け専用照会サービス 会員情報照会 API、アプリ・オンラインストアのサーバー 認証・認可の検証不足、反復的な照会の未検知 付随する Web サービス 共済関連の外部 Web ページ、大学のポータル 百貨店の予約サイト 本来のサービスより低いセキュリティ水準、基幹 DB との接続 管理・業務ツール 従業員向け営業支援システム 業務用管理ツール、BI ツール 外部からのアクセスが可能、パッチ適用の遅れ 委託先 SaaS・サプライチェーン 企業向け会計ソフトウェアのバックアップサービス メール配信 SaaS、委託先の EC プラットフォーム、委託先の FAQ システム 一度の侵害が多数の顧客企業に拡散 アカウント・認証情報 従業員の VPN アカウント、学習用クラウドアカウント 業務用クラウドアカウント、管理者アカウント 弱い認証、多要素認証の未導入 放置されたデータ クラウドに残った一時データファイル システムログファイル、退職者のデータ 保存期間を過ぎたデータの未削除 [表6]外部接点の種類別に見た韓国と日本の事例比較 この分析結果は、AI エージェントを使った攻撃の技術的特徴とも一致する。自律型の攻撃エージェントは、堅牢に防御された基幹システムを正面から突破するよりも、広範な外部攻撃対象領域を自動的に網羅してスキャンし、対策が手薄になりがちな周辺システムの弱点を繰り返し突く。公開から時間がたった N-day 脆弱性、設定ミス、弱い認証などが典型的な標的となる。人手では後回しにされがちな小さな付随サービスも、低コストで動く AI エージェントなら広く探索できてしまう。 さらに厄介なのは、侵害がその接点だけで終わらないことだ。予約サイトからグループ共通の会員 DB へ、委託先のバックアップサービスから数万社の顧客データへ、委託先アプリの ID から顧客のクラウドテナントへと被害が広がった事例が、それを示している。小規模に見える外部接点であっても、重要なデータへ到達する経路になり得る。 予防策:外部に公開された資産を洗い出す まず必要なのは、自社がインターネット上に公開しているシステムやサービスを正確に把握することだ。攻撃者は AI エージェントを用いて外部攻撃対象領域を網羅的に調査しているため、防御側も同じ視点から資産を把握し直す必要がある。特に、本来のサービスに付随するサービス、キャンペーンページ、管理ツール、アプリが呼び出す API など、これまで管理の優先順位が低かった資産から点検すべきである。 分野 確認事項 外部公開資産の管理 インターネットに公開されている Web サービス、API、管理ページ、リモートアクセスの接点を漏れなく一覧化し、管理責任者を指定する。 使用していないサービスやテストサーバーへの外部アクセスを遮断する。 アプリのバックエンド API アプリはいつでも解析され得ることを前提とする。すべての API リクエストについて、サーバー側での認証とオブジェクト単位の認可を検証し、アプリ内に API キーや認証情報を埋め込まない。 ユーザーごとの照会件数に制限を設け、異常な反復照会を検知する。 管理・業務ツール 管理ページ、BI ツール、営業支援システムには外部から直接アクセスできないようにする。やむを得ない場合は、接続元 IP アドレスの制限と多要素認証を適用する。 これらのツールから業務用 DB にアクセスできる範囲を最小限に抑える。 委託先 SaaS・サプライチェーン 委託先が保有するデータと接続権限を一覧化する。 委託先アプリに付与したクラウドの権限(OAuth による同意など)を定期的に確認し、侵害発生時の通知手順を委託契約に明記する。 アカウントと認証 VPN、リモートアクセス、業務用クラウドアカウントにはフィッシング耐性のある多要素認証を適用する。 外部で流出した認証情報を使う攻撃に備え、ログイン失敗の急増や通常とは異なる地域からのアクセスを検知する。 パッチ適用とサポート終了 インターネットに公開されている構成要素(PHP、GitLab、Node.js、DNS サーバーなど)には、脆弱性の公開当日に対応することを目標とした特別な手順を設ける。 サポートが終了したシステムは更新・置き換えの計画を立て、それまでの間は外部公開を減らす。 データの最小化 保存期間を過ぎた会員情報、退職者情報、開発用の一時ファイル、個人情報が残されたログを整理する。 保有していないデータが漏えいすることはない。 検知とセキュリティ監視 外部接点のログを基幹システムと同じ水準で収集し、24時間の監視対象に含める。 Web サーバーがシェルやダウンロードツールを実行するなど、侵入後の活動を検知するルールを運用する。 [表7]外部接点を中心とした予防点検項目 AI エージェントを利用した攻撃では、その速度の速さにも注意が必要である。最初の標的設定から特権アクセスの獲得まで3時間もかからなかった事例もある。手作業で点検し、数日以内にパッチを適用する従来のサイクルでは、対応が間に合わない可能性がある。Web アプリケーションファイアウォール(WAF)のルールを先行して適用したり、公開資産へのアクセスを直ちに遮断したりするなど、自動化された対応手段をあらかじめ整備しておく必要がある。一方、防御側も AI を用いた脆弱性点検を活用し、攻撃者に先んじて外部接点の弱点を見つけ出すことが望ましい。 対応:侵害が疑われる場合 サイバー侵害では、初動対応の速さによって被害規模が大きく変わる。今回の事例でも、攻撃から数日後になって初めて被害を認識したケースがあり、その間に情報漏えいが拡大した可能性もあった。 段階 対応内容 初 期対応 攻撃元 IP アドレスと悪用されたアクセス経路を遮断し、該当サービスを隔離する。 証拠を保全するため、サーバーを直ちに初期化せず、ログ、メモリ、ディスクイメージを先に取得する。 影響範囲の確認 侵害された外部接点から接続可能な DB、内部システム、委託先システムまで、アクセスの痕跡を追跡する。 脆弱性情報が正式公表前に流出した可能性も考慮し、公表日より前にさかのぼってログを確認する。 認証情報への対応 侵害経路に関係するアカウント、API キー、アクセストークンを失効させ、再発行する。 Web シェルなど、攻撃者がアクセスを維持するための仕組みが残されていないか確認する。 届出・報告 韓国では、情報通信網法に基づき、侵害を認知してから24時間以内に科学技術情報通信部または韓国インターネット振興院(KISA、電話118)へ届け出る。個人情報が漏えいした場合、個人情報保護法に基づき、原則として認知後72時間以内に本人へ通知するとともに、個人情報保護委員会または KISA へ報告する。金融会社は金融監督院に報告し、犯罪被害については警察庁のサイバー捜査部門に届け出る。 二次被害の防止 漏えい情報を悪用したフィッシング、スミッシング、認証情報の使い回しを狙う攻撃が続く可能性があるため、利用者にパスワードの変更やなりすまし連絡への注意を呼びかける。 攻撃者からの金銭要求には応じず、捜査機関と協議する。 [表8]侵害が疑われる場合の段階別対応手順 守るべき範囲を見直すとき この1か月の事例から見えてくるのは、守るべき範囲を見直す必要性だ。これまで多くの組織は基幹システムを中心に防御を設計してきたが、攻撃者はその外側にある小さな接点を見つけて侵入した。AI エージェントによって、その探索はより低コストかつ高速になり、規模が小さいために管理の優先順位が低かった資産が真っ先に標的となった。 これからのセキュリティ対策では、「何を最も厳重に守るべきか」だけでなく、「攻撃者はどこから侵入できるのか」を最初に問い直す必要がある。外部公開資産の管理、API の認証と認可、委託先との接続管理、多要素認証、迅速なパッチ適用、データの最小化は、決して新しい対策ではない。しかし、今回の事案は、こうした基本的な対策を外部接点まで漏れなく適用しなければ、AI を悪用する攻撃者にその隙を突かれかねないことを明確に示した。本稿が AI を利用した自動攻撃と外部接点からの侵害に焦点を当てた理由も、そこにある。 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム 「 AhnLab TIP 」 サブスクリプションサービスを通して確認できる。
ASEC The Weak Link Identified by AI: October 2026, When the Outer Contact Point Collapsed 2026-10-28
Security Blind Spots Identified by AI The large-scale data breaches disclosed in quick succession in South Korea and Japan in October 2026 mostly originated not from internal core systems, but from peripheral entry points such as externally exposed web services, app backend APIs, and outsourced SaaS (services provided by third-party vendors via the cloud, such as email delivery or backup). During the same period, vulnerabilities allowing unauthenticated remote code execution were disclosed one after another in widely used software such as web backend runtimes (e.G., PHP and Node.Js) and GitLab, and there were also numerous reports that AI agents, such as ARTEX, were used in actual breach operations. In South Korea, starting in late September, a series of breaches swept through the financial sector—beginning with commercial banks and extending to savings banks, finance companies, mutual financial institutions, virtual asset service providers, and insurance companies—while data breaches were also confirmed in the non-financial sector, including corporate accounting software providers, large churches, universities, and franchise chains. In Japan, announcements of personal data breaches ranging from several million to tens of millions of records were made during the same period, and Japanese government agencies identified a method involving the analysis of publicly available apps to attack backend servers as one of the primary causes. This trend is not limited to these two countries. During the same period, breaches involving outsourced services and publicly exposed websites, as well as large-scale automated attacks using AI agents, were reported in the US, Europe, and South America. This article synthesizes publicly available news reports, announcements from various agencies, and reports from security firms to identify common patterns in these incidents—with a focus on South Korea and Japan, where cases were most heavily publicized—and examines how these same patterns are being observed overseas. Based on this analysis, the article proposes preventive and response measures that companies should implement. The causes of individual incidents are mostly under investigation; organizations affected by damage are categorized by industry based on public reports. South Korean Financial Sector: The Start of a Chain of Breaches Breaches in the Korea financial sector began at commercial banks in late September and spread across the entire industry over the course of a month. As of October 14, financial authorities had identified 16 financial institutions affected by the breaches, including commercial banks, savings banks, finance companies, mutual financial institutions, electronic financial service providers, online investment-linked financial service providers, and virtual asset service providers; the confirmed scale of personal information leaks was approximately 100,000 records. However, considering the number of affected financial institutions, the scale of the leak is assessed as relatively limited; this suggests the possibility that the incident involved the retrieval of individual records through external access points—such as publicly exposed inquiry services—rather than the theft of a large-scale database (DB) itself. Subsequently, on October 26, a data leak was also reported in the insurance industry. It is noteworthy that the attack targets were not the banks’ core IT systems responsible for processing deposits and transfers. According to the disclosed information, the paths of entry were auxiliary systems attached to the main services—such as inquiry services exclusively for loan brokers, sales support systems for internal employees, and external webpages related to mutual aid programs. Category Point of Compromise Disclosed Information Commercial Bank A Inquiry service exclusively for loan brokers By bypassing standard authentication and repeatedly entering query values, loan-related information for approximately 25,000 people was leaked Commercial Bank B Employee Sales Support System (ODS) Unauthorized access to a system separate from internet and mobile banking led to the leak of information on 89 people Mutual Finance External webpage related to mutual aid Damage was not detected until two days after the attack [Table 1] Major Security Breaches in the Korean Financial Sector and Affected Institutions In an emergency inspection conducted by financial authorities in early October targeting 555 financial institutions, 130 reported deficiencies. The main deficiencies included failure to apply the latest security patches, poor management of systems no longer receiving technical support, and the lack of a 24-hour monitoring system. It is more accurate to say that the threat actors quickly identified poorly managed peripheral systems rather than employing new techniques. Traces of ARTEX, an AI-powered automated penetration testing tool, were identified in this attack on the financial sector. The Korean security industry first discovered ARTEX-related strings on the web server used in the attack, and CrowdStrike obtained ARTEX configuration files and work logs from AI coding tools found in an exposed folder on the threat actor’s server. Analysis indicates that the threat actors connected and used several large language models (LLMs), such as DeepSeek, GLM, and Grok, with ARTEX. However, the threat actors’ identities and nationalities have not been confirmed. Breaches Spreading Beyond the Financial Sector Data breaches also continued outside the financial sector during the same period. Although the affected organizations spanned diverse sectors—including enterprise accounting software providers, large churches, coffee franchises, universities, and education districts—the points of compromise were consistently access points outside core business systems, such as employee VPN accounts, external backup solutions, temporary files left in the cloud, portals, and cloud accounts used for training. Category Point of Breach Disclosed Details Enterprise accounting and ERP software providers Employee VPN accounts, external backup solutions Evidence suggests unauthorized access to development servers via VPN accounts and the partial exfiltration of encrypted data through a vulnerability in the backup solution The government has classified this as a major incident and formed a joint public-private investigation team Large Church Church information system Data breach involving the names and dates of birth of approximately 850,000 congregants Coffee franchise Temporary data files left on the cloud Approximately 2.76 Million records leaked during unauthorized access attempts aimed at cryptocurrency mining Caused by temporary files from a past Service overhaul University Portal Service Student ID numbers, contact information, and email addresses of approximately 10,000 current students and alumni were leaked Office of Education Cloud accounts for learning Over 110,000 accounts hacked across six education offices, causing damage [Table 2] Major Data Breach Cases and Points of Compromise in Korea’s Non-Financial Sector Among these, the case involving a corporate accounting and ERP software provider highlights supply chain risks stemming from third-party contractors. Since this company’s accounting software is used by more than 110,000 businesses, concerns have been raised that a single breach could spread to the payroll and tax information of employees at client companies. However, the actual scope of the data breach is still under investigation. The coffee franchise case involved temporary data files created for a past service overhaul that remained in the cloud and were subsequently leaked, illustrating that data past its retention period poses a risk if not properly disposed of. In late October, a suspect accused of hacking using generative AI was arrested in Korea for the first time. According to police, the ringleader had no formal IT background but taught himself the technology and had prior experience conducting penetration testing at a security firm. This group combined ARTEX with an AI coding agent to carry out Information Theft on approximately 8.2 Million records—including personal information—from about 90 companies in Korea; notably, they attacked 60 of these companies over a 44-day period starting in late August. Police stated that no direct link had been confirmed between this incident and the financial sector incident. The Same Pattern Repeated in Japan Japan also saw a concentration of announcements regarding large-scale data breaches during the same period. According to data compiled by the Japanese security firm Marknica , announcements of personal information leaks through web systems operated by Japanese organizations totaled 119 as of October 6, 2026, already surpassing the 84 cases reported for all of 2025 and the 62 cases in 2024; 81 of these occurred after July. Japanese authorities identified backend attacks through apps as one of the causes. On October 13, the National Institute of Information and Communications Technology (NICT) analyzed publicly available Android apps to identify the target servers and API structures, then named the method of exploiting server-side vulnerabilities “A2B (App-to-Backend) attacks.” The vulnerabilities primarily targeted include SSRF, RCE, SQL injection, and IDOR/BOLA; even if the app itself has no flaws, data leaks can occur if there are vulnerabilities in the server-side API. On October 8, JPCERT/CC also identified the following as major attack types: exploiting existing vulnerabilities, abusing administrative APIs through app analysis, exploiting an SQL injection vulnerability (CVE-2026-72898) in the BI tool Metabase, and installing web shells. However, since neither organization identified specific companies that suffered damage, it is not possible to definitively classify a particular incident as an A2B attack. Category Point of Compromise Disclosed Information Software Sales Member Information Query API The API was misused for four days, potentially leading to the leak of up to approximately 22.52 Million records of member information, including passwords Major Discount Store App and Online Store Servers Unauthorized access gained by exploiting software functions that make up the Service, resulting in the leak of information on up to approximately 1.73 Million people SaaS Company API servers for an email-sending SaaS service Command execution occurred on two API servers, resulting in the export of all subscriber information and the mailing lists of some customers Japanese subsidiary of a food brand Outsourced e-commerce platform A software vulnerability in the outsourced vendor’s server was exploited, resulting in the leakage of approximately 3.14 Million records Department store group Reservation Site → Customer Management System Access to the customer management system via the reservation site; approximately 1.26 Million records—nearly the entire membership base using the group’s common ID—were leaked News Platform Business Management Tool A vulnerability in the management tool could lead to the leak of approximately 323,000 records, including email addresses E-book Service System log files In addition to 319 records from the member database, up to approximately 4.2 Million records of information remaining in log files were leaked Securities Firm Outsourced FAQ System Possible leak of information on approximately 110,000 people due to a breach of an external Service used for managing inquiries Cloud Service Provider Cloud Infrastructure Ransomware attack caused service disruptions for 495 clients, including local governments and businesses [Table 3] Major Data Breach Cases in Japan and Points of Compromise In most Japanese cases as well, the point of origin was peripheral systems rather than core systems. In particular, the department store group case involved a single reservation site that led to the group’s entire shared ID database, while the e-book service case demonstrated that even if the member database was protected, information could still be leaked if the same data remained in the logs. ARTEX was also identified in Japan. On October 19, the Japanese security firm GMO Cyber Security by Iera announced that it had detected traces of ARTEX in the attack infrastructure used to attack companies in Korea. Eight of the companies identified by the firm as targets announced data breaches in September and October. However, the names of these companies were not disclosed, and there is no evidence to suggest they were the work of the same threat actors responsible for the attacks in South Korea. At this point, it has only been confirmed that the same tool was used in both countries. Simultaneous Revelations of Critical Vulnerabilities During the third week of October, serious vulnerabilities in foundational software for the web and infrastructure were disclosed in rapid succession over the course of approximately a few days. Since many of these were components directly exposed to the internet, this further heightened the risk at the perimeter. Scope Target CVE Impact Action Web Runtime PHP CVE-2026-109618, CVE-2026-109619 (CVSS 9.2) Unauthenticated Remote Code Execution (PHP2Shell) Update to version 8.5.12, 8.4.27, 8.3.36, 8.2.35, Or later. For versions 8.1 And earlier, switch to a supported version Set `session.Upload_progress.Enabled=0` until an official patch is released Web Runtime PHP CVE-2026-115560 (CVSS not disclosed) Remote code execution under specific session settings Set `session.Upload_progress.Enabled=0` until an official patch is released Development Platform GitLab CE/EE CVE-2026-110264 (CVSS 10.0) Unauthenticated remote code execution via a regular expression compiler integer overflow Affects versions starting with GitLab 7.0 (2014) 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10, 18.11.13 And later Server Runtime Node.Js 22, 24, 26 CVE-2026-111497 (CVSS 9.2) Remote code execution via Brotli decoder buffer overflow (Node2Shell) 22.23.4, 24.22.1, 26.12.1 And later DNS Unbound 1.22.0–1.26.1 CVE-2026-97206 (CVSS 7.5) Remote Denial of Service when using DNS-over-QUIC Version 1.26.2 Or later, or disable DoQ DNS ISC BIND 9 CVE-2026-19630 and 3 others (CVSS 7.5) Denial of Service, GSS-TSIG memory corruption (CVE-2026-94300, potential remote code execution) 9.20.30, 9.21.27 And later PKI 8 EMudhra intermediate CAs N/A Private keys are generated in a state where they can be easily recovered, enabling certificate forgery Update the trust stores in browsers, operating systems, and runtimes PKI Oracle Java JSSE CVE-2026-91403 (CVSS 9.1) Java update that treats eMudhra-related intermediate CAs as untrusted Apply the latest updates for Java SE and GraalVM File Sharing Windows SMB Server CVE-2026-96325 (CVSS 7.5) Unauthenticated Remote Service Denial of Service October Regular Security Updates Applied [Table 4] Status of Major Vulnerability Disclosures in October 2026 PHP2Shell illustrates just how short the response time has become. Information about the vulnerability was leaked externally before the Vulnerability Patch was released, and Amazon Threat Intelligence had already detected attack attempts on October 17—four days before the official disclosure. In Korea, the government also raised the cyber threat alert level for the private sector from “Attention” to “Caution” on October 22. Therefore, even for servers that have been patched, it is necessary to check access logs from the period before and after the disclosure and verify whether a web shell has been installed. Oracle Java’s CVE-2026-91403 is not a general patch to fix a code flaw, but rather an update that prevents Java from trusting the compromised eMudhra intermediate CA certificate. Since runtimes that use their own trust stores—such as Java—and older clients must be updated separately even if browsers have blocked the certificate, PKI issues cannot be resolved by server patches alone. AI is also playing an increasingly significant role in the vulnerability discovery process. CVE-2026-94300 in BIND was reported by a researcher at OpenAI, and the official Node.Js announcement credited CVE-2026-111497 to OpenAI Codex Security. While this represents legitimate vulnerability research by the defense community, the fact that the same capabilities can be exploited by attackers suggests that patch cycles are likely to become even shorter in the future. Agentic AI Attacks: From Experimentation to Real-World Application Attacks in which AI agents autonomously carry out a sequence of actions—including reconnaissance, vulnerability scanning, penetration, and web shell installation—have begun to emerge as actual breach cases. Key reports released in October include the following as follows Reporting Entity Tools Details Disclosed CrowdStrike (October 7) ARTEX AI coding tool activity logs and ARTEX configuration files found on threat actors’ servers targeting South Korean financial institutions Evidence of DeepSeek, GLM, and Grok usage AhnLab ASEC (October 15) ARTEX and variants Tracked 600 IP addresses of ARTEX operational systems exposed to the internet; this number had increased to over 900 as of October 14 Secured 51 pieces of attack operation data—including web shell command transmissions, internal RDP relaying, and internal network scan results—from open directories on some hosts Traces of redistributed versions—which changed their names and user interfaces after the original repository was deleted—and Korean localization were also identified NorForge, Reuters (October 19) Cairn An investigation of exposed Cairn management screens revealed more than 1,100 attack projects in the largest cluster Over 1,200 sites were attacked, compromising more than 100 corporate websites. The total cost of the tokens was approximately $5,000 GMO Iera (October 19) ARTEX Confirmed use of ARTEX in attack infrastructure targeting Japanese companies Microsoft (October 21) ARTEX China-linked group Storm-0940 attacks hundreds of organizations worldwide using ARTEX The group exploited the credentials of a US IT managed services provider’s cloud backup app to attempt logins to more than 2,250 Microsoft 365 tenants; in some cases, they gained privileged access to the cloud within three hours of being targeted for the first time CrowdStrike (October 21) Various Harnesses Four new threat actors observed between May and August disclosed Includes breaches at at least 15 Argentine healthcare institutions All four bypassed the safety mechanisms of commercial AI [Table 5] Reported Real-World Infiltration Cases Using Agentic AI We also replicated ARTEX in a separate Test Environment to verify the extent of its autonomous penetration capabilities. We provided only a brief instruction—such as “Penetrate the Attack Target”—simple enough for even a user with no security knowledge to enter, yet ARTEX identified the file upload function on the web server and executed a program as a web shell without any human intervention. In an environment where Apache ActiveMQ was exposed, ARTEX gained initial access via a known vulnerability (CVE-2023-46604) and proceeded to perform remote command execution on four internal hosts. Since both experiments did not involve new techniques but instead exploited vulnerabilities and misconfigurations in publicly accessible services, they align with this article’s assessment that peripheral entry points are the primary targets for AI agents. Furthermore, even after the original GitHub repository was removed, ARTEX continues to be reused by various operators under different names and with modified interfaces. The redistributed versions verified by our company contained configurations for various LLMs—including DeepSeek, GLM, Kimi, and Claude—as well as traces of a publicly available PoC for an e-commerce platform vulnerability (CVE-2026-75650) exploitable without authentication and embedded IRC-based remote control code. This means that even if the developer stops releasing the tool, its spread does not stop. What these reports reveal is a shift toward the economics of attack. In the Cairn case, the operator entered only a Chinese command of less than 100 characters, after which the agent—without human supervision—figured out how to perform code execution on each site and installed a web shell. Repetitive tasks that once required skilled personnel—such as vulnerability scanning, testing attack paths, modifying payloads, and retrying after failures—are now being entrusted to agents that work nonstop for hours on end. As it has become easy to combine open-source AI models with freely available agent frameworks, cyberattacks that once required advanced technical skills are now within anyone’s reach. Cases of non-technical hackers apprehended in Korea illustrate this, and the cost of carrying out such operations is dropping just as rapidly. The Microsoft case also illustrates where these attacks are headed. Storm-0940’s brute-force password attack generated up to 2,900 failed login attempts per minute but did not result in a single successful login. The actual breach occurred through the app credentials of a third-party service to which the customer had already granted access. While direct authentication held up, a trusted external connection was breached. The extent to which tools like ARTEX were actually involved in incidents within the Korean financial sector is still under investigation. However, even based on publicly available reports alone, it is clear that attacks using AI agents have moved beyond the hypothetical stage and are being used in actual breaches, and the disclosed cases are likely only a fraction of the total. Common Pattern: The Breach Occurred at Peripheral Touchpoints When comparing cases in South Korea and Japan side by side, the patterns are nearly identical. It was not the internal core systems—where defenses are concentrated—that were breached, but rather peripheral touchpoints such as externally exposed app backend APIs, reservation sites, management tools, and outsourced SaaS services. The term “peripheral entry points” used in this article refers collectively to the externally exposed attack surface, as well as supply chain and third-party touchpoints. Types of Peripheral Touchpoints Cases in South Korea Japanese Cases Common Vulnerabilities Externally Exposed Application Backend APIs Inquiry Service Exclusively for Loan Brokers Member Information Lookup API, App and Online Store Servers Inadequate authentication and authorization verification; failure to detect repeated queries Additional Web Services External web pages related to mutual aid, university portals Department Store Reservation Sites Security level lower than this Service; connection to core databases Management and business tools Sales Support System for Employees Business management tools, BI tools Accessible from outside the organization; delayed patching Outsourced SaaS, supply chain Backup service for enterprise accounting software Email-Sending SaaS, Managed E-commerce Platforms, Managed FAQ Systems A single breach can spread to multiple clients Accounts, credentials Employee VPN accounts, cloud accounts for training Work-related cloud accounts, administrator accounts Weak authentication, lack of multi-factor authentication Neglected data Temporary data files left in the cloud System log files, data on former employees Data past its retention period that has not been deleted [Table 6] Comparison of South Korean and Japanese Cases for Each Type of Perimeter Access Point This assessment aligns precisely with the technical characteristics of AI-agent-based attacks. Rather than directly breaching highly fortified core systems, autonomous attack agents automatically scan the entire external attack surface and relentlessly exploit weak links on the periphery where security controls are relatively lax. Long-disclosed N-day vulnerabilities, configuration errors, and weak authentication are prime targets. Even minor ancillary services—which would likely be deprioritized by a human—become targets that an agent, operating at virtually no cost, will attempt to exploit without exception. Another characteristic of peripheral entry points is that the damage does not end at that point. This is illustrated by cases where attacks spread from a booking site to a shared member database, from a third-party backup service to the data of tens of thousands of client companies, and from a third-party app’s identity to a customer’s cloud tenant. Even if peripheral touchpoints appear small in scale, they can serve as gateways to core data. Prevention: We Must Redraw the Perimeter The starting point for prevention is knowing exactly what an organization is exposing to the internet. Since threat actors are using AI agents to conduct comprehensive scans of external attack surfaces, defenders must also reassess their assets from the same perspective. In particular, assets that have been pushed down the management priority list—such as ancillary services attached to the main service, event pages, management tools, and APIs called by apps—should be prioritized for inspection. Scope Inspection Items Asset Management for Externally Exposed Assets Compile a comprehensive list of web services, APIs, management pages, and remote access points exposed to the Internet, and assign responsible personnel. Block external access to unused services and test servers. App Backend APIs Assume that the app can be analyzed at any time. Verify server-side authentication and object-level authorization for all API requests, and do not embed API keys or authentication credentials within the app. Implement per-user query limits and detect abnormal repetitive queries. Management and Business Tools Ensure that management pages, BI tools, and sales support systems cannot be accessed directly from the outside; if unavoidable, apply IP restrictions and multi-factor authentication. Permissions for these tools to access the business database are minimized. Outsourced SaaS and Supply Chain Compile a list of data held by third-party providers and their access permissions. Regularly review the cloud permissions granted to third-party apps (such as OAuth consent), and specify the third-party provider’s breach notification procedures in the contract. Accounts and Authentication Implement phishing-resistant multi-factor authentication for VPNs, remote access, and business cloud accounts. Detect sudden spikes in failed login attempts and access from unusual locations to guard against attacks that use compromised account credentials obtained from external sources. Patches and End-of-Support Establish a separate procedure for components exposed to the internet (such as PHP, GitLab, Node.Js, and DNS servers) with the goal of responding on the same day a vulnerability is disclosed. Develop replacement plans for systems that have reached end-of-support, and minimize external exposure until then. Data Minimization We purge information on members whose retention period has expired, former employees, temporary development files, and logs containing personal information. Data that no longer exists cannot be leaked. Detection and Monitoring Collect logs from peripheral touchpoints at the same level as core systems and include them in 24-hour monitoring. Implement rules to detect post-compromise behavior, such as web servers executing shells or download tools. [Table 7] Preventive Inspection Items Focused on Perimeter Endpoints It is also important to consider that attacks using AI agents are fast. Given that there have been cases where it took less than three hours from initial targeting to privileged access, the traditional cycle of patching within a few days after a manual inspection may be too slow to respond. Automated response measures—such as the preemptive application of web firewall rules and the immediate blocking of exposed assets—must be prepared in advance. Conversely, it is advisable for the defense side to utilize AI-based vulnerability assessments to identify weak points in the perimeter before threat actors do. Response: When a Breach is Suspected The scale of damage from a breach incident varies significantly depending on the speed of the initial response. In this case as well, there were instances where the damage was not recognized until several days after the attack, during which time additional data leaks could have occurred. Multi-stage Response Details Initial Response Block the attacking IP addresses and exploited paths, and isolate the affected Service. To preserve evidence, do not immediately reset the server; instead, secure the logs, memory, and disk images first. Scope Verification Trace access trails from the compromised external endpoint to connected databases, internal systems, and third-party vendor systems. In the event that vulnerability information was leaked prior to public disclosure, review logs retroactively up to the date of disclosure. Credential Management Accounts, API keys, and access tokens associated with the breach path are revoked and reissued. Verify whether any persistence mechanisms, such as web shells, remain. Reporting In Korea, in accordance with the Information and Communications Network Act, report the breach to the Ministry of Science and ICT or the Korea Internet & Security Agency (KISA; dial 118 without an area code) within 24 hours of becoming aware of the incident. If personal information has been leaked, in accordance with the Personal Information Protection Act, notify the data subjects within 72 hours of becoming aware of the breach and report the incident to the Personal Information Protection Commission or KISA. Financial institutions must report to the Financial Supervisory Service, and cases of cybercrime must be reported to the Cyber Investigation Division of the National Police Agency. Preventing Secondary Damage Since phishing attacks, smishing, and brute-force attacks using the leaked information may follow, advise users to change their passwords and be wary of fraudulent contact attempts. Do not comply with any monetary demands from the threat actor; instead, consult with law enforcement agencies. [Table 8] Step-by-Step Response Procedures in Case of a Suspected Breach Time to Shift the Focus of Defense The incidents over the past month demonstrate that the center of gravity in security is shifting. Until now, many organizations have designed their defenses around core systems, but threat actors have found their way in through small entry points outside those systems. AI agents have made this exploration faster and more efficient, resulting in smaller assets—which had been neglected due to their scale—becoming the first targets. Therefore, future defense strategies must begin by asking where threat actors can enter, rather than focusing solely on what to protect most rigorously. Asset management of externally exposed assets, API authentication and authorization, controlling connections to third-party vendors, multi-factor authentication, prompt patching, and data minimization are not new measures. However, these incidents have clearly demonstrated that if these basic measures are not applied without exception to all perimeter touchpoints, AI will be the first to find those gaps—which is why this article focuses on AI-driven automated attacks and perimeter touchpoint breaches. Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC The Threat of AI-Driven Autonomous Penetration Testing, as Examined by ARTEX 2026-10-14
Overview AI is being used for various tasks that were previously performed manually, such as research, document writing, and code analysis. A 2026 corporate survey also showed that the scope of AI adoption among organizations had expanded compared to the previous year. Recently, there has been a trend toward automating a significant portion of work by not only using AI to assist with individual tasks but also entrusting it with performing a series of interconnected steps. The same is true in the security field. Notable examples include Vulnhuntr, which uses a large language model (LLM) to detect code vulnerabilities, and GhidraMCP, which connects Ghidra to an LLM to assist with reverse engineering—both of which are publicly available on GitHub. In the penetration testing field, there are also open-source projects— such as PentestGPT and CyberStrikeAI— that link multi-stage processes using agents and security tools. ARTEX is one such autonomous penetration testing tool. When a user inputs a target and objectives, multiple agents investigate the assets, select tools, and carry out the tasks. Rather than simply repeating predetermined procedures, they determine their next actions based on the results of previous tasks. What drew our attention to ARTEX was a web console exposed on the internet. When we traced the related infrastructure using the web console as a clue, we also discovered operational data on some hosts that matched activity consistent with a threat actor. Since evidence suggesting the tool may have been used in actual attacks was confirmed, we installed ARTEX—which is available as open source—in a separate Test Environment to examine the possibility of infiltration. In each test conducted across different environments, we provided the Attack Target, objectives, and permitted scope but did not disclose service names, vulnerabilities, or specific attack procedures. As a result, on a web server with a file upload vulnerability, the system executed a program through a web shell; in an environment exposing Apache ActiveMQ, following initial access, it executed remote commands on four internal hosts. This demonstrates that, even without detailed instructions from the user, a vulnerable environment can lead to command execution and lateral movement within the internal network. This article examines the circumstances under which we identified the attack activity while tracking an internet-exposed ARTEX instance, as well as the operational structure of the tool, and presents the scope of the attack and response strategies confirmed through two reproduction experiments. Externally Exposed ARTEX and Circumstances of Attack Activity Distribution of ARTEX Operating Systems It is not possible to categorize all Internet-exposed ARTEX-related IP addresses solely as threat actor addresses, nor can they be interpreted solely as the IP addresses of users who downloaded the tool or targets investigated by ARTEX. AhnLab tracked the exposed infrastructure using the characteristics of the ARTEX web console as clues and identified 600 public IP addresses hosting ARTEX instances. Details on this can be found in “AI Lowers the Barrier to Attack: ARTEX Infrastructure Tracked by AhnLab | AhnLab .” The discovered IP addresses illustrate the distribution of ARTEX operating systems exposed to the internet. Region and Country Number of IPs Share US 322 53.7% China 119 19.8% Hong Kong 67 11.2% Singapore 33 5.5% 17 Other regions and countries 59 9.8% Total 600 100.0% Table 1. Regions and countries are estimates of the location of IP addresses. Data provided by: DB-IP.Com Country Lite, October 2026 edition, CC BY 4.0. While it is not possible to determine an operator’s nationality or the origin of an attack based solely on IP country and region information, a comparison of 600 hosting IPs with the DB-IP Country Lite October 2026 edition revealed that 541 (90.2%) Were distributed across the US, China, Hong Kong, and Singapore. Additionally, as of October 14, 2026, it was confirmed that there were approximately 900 IP addresses associated with the ARTEX operating system publicly accessible on the Internet. ASEC’s further investigation of exposed web services related to ARTEX infrastructure revealed( The Evolution of ARTEX: AI-Based Penetration Testing Infrastructure Tracked by AhnLab | AhnLab ), 252 instances of Sub2API (an AI API gateway), 22 instances of Scope Sentry (an attack surface management tool), and 15 instances of CyberStrikeAI (an AI penetration testing platform) were identified. Although the criteria for aggregating and the region distribution of these findings differ from those of the 600 IP addresses mentioned earlier, it is evident that other AI and security tools were also exposed in some of the environments hosting ARTEX. Attack Traces Found on ARTEX-Exposed Hosts Tracking ARTEX Infrastructure: Evidence of Actual Attack Activity | As disclosed by AhnLab , we conducted a further investigation into which tools and files were exposed on the previously identified IP addresses. As a result, we discovered two open directories accessible through web servers on hosts where ARTEX was deployed or related content was found. These two directories contained files related to internal network reconnaissance and access, pivoting, and the deployment of follow-up payloads; a total of 51 files were recovered. In the first directory, we recovered 37 files, including a script containing the ARTEX Path. Among the files collected were the `ws.Sh` file, written to send commands to an ASPX web shell, and the `pivot_relay.Ps1` script file, configured to relay external connections to the internal RDP service. Traces of the relay file’s download and connection logs, as well as evidence of the xfreerdp process running, were also found, allowing us to verify the process of attempting an RDP connection to the internal system. In the second directory, 14 items—including scan results, scripts, and executable files—were recovered. The scan results listed 85 active systems in the Kubernetes Pod network and 8 systems in a separate internal network. The `extract_hprof.Py` file found alongside them was written to search for credential-related strings in JVM heap dumps, while `P.Class` was designed to download and execute a Linux implant. Strings related to command execution, file manipulation, and tunneling capabilities were also identified in `LocaleMgr.Exe`. It is not possible to classify all of the more than 900 IP addresses identified earlier as part of the threat actor’s attack infrastructure or to link them to specific threat groups or campaigns. Furthermore, the files recovered from the two directories do not consist solely of ARTEX’s default toolkit. Since ARTEX allows for the addition of custom tools, threat actors can combine scripts and malware—either obtained separately or created in-house—tailored to specific attack targets. However, the IoCs related to the two operational directories included two IP addresses from the previously identified 600 addresses, as well as 18 MD5 hashes of malware and files. And when viewed alongside the data from the operational directories, it is presumed that some of the hosts where ARTEX was detected were used for attack-related activities or their preparation. The collected IoC information can be found in the table below. Type IoC IP 134.122.137[.]132 IP 204.194.51[.]54 MD5 085F53a1ce8c634ac7b0d63e42b56b15 MD5 0C501aca4fc29efe47f122ddc9c1af85 MD5 0Eb259067e565221109a3ee988e1faa3 MD5 220A1465b2c5ee3ec86861ee17a91e2f MD5 2D13374c14bcaaa99ab00f16cc18b300 MD5 326Bb512422930f723e8434d219bea15 MD5 4Fff3a0e67210deea726a3bd8c0b625f MD5 5881F74d3bb167e48f6e61c8d9c220e7 MD5 5A38c92fcf2772f65517485f3a23810e MD5 5D151bb4512fc48932a83d3bc24ea806 MD5 6593D2601f967566ae1efe521ec7b470 MD5 773Dc8997a50425fb4146161d747c10f MD5 78C3efc26c8db056933da58032361706 MD5 8858508E75ac58ce586631101be87973 MD5 912E8bb04a86f34c76d7d9bad8b67685 MD5 Baddd4d75a6980e0df8d47333d9472c3 MD5 Be4033d98dd65437516a94048adc8ac5 MD5 Fec5d7eb6cf4ed6cfbcd2c588bb761af Table 2. IoC Information Detailed information on the tools left behind as evidence of the attack or prepared for follow-up activities, as well as the detailed flow of the two cases, can be found in “Analysis of the China AI Penetration Testing Tool ARTEX Infrastructure #3” by AhnLab TIP . ARTEX’s Operation and Architecture When a user registers assets and tasks in the ARTEX web UI and connects an LLM, the server manages the agent’s execution status, and the collected asset information and task history are stored in PostgreSQL. Users can check progress and results on the same screen; ARTEX controls tasks through an approval process and logs the communications of some tools used by Workers via a proxy for record-keeping purposes. ARTEX manages information about the target itself and decisions made during the task in the Asset Graph and Exploration Graph, respectively. Domain, IP address, Service, application, and endpoint information stored in the asset graph is shared across multiple tasks, while the exploration graph records how objectives, verified facts, discovered vulnerabilities, and follow-up decisions were linked. By linking these two records, users can verify the rationale for subsequent tasks and reduce the need to repeatedly investigate the same assets. When a user enters objectives and acceptable limits, Goals organizes this information, and Planner creates the next exploration task—Intent—based on the acquired asset information and observation results. When Worker runs tools according to that task and records newly verified information, Planner reviews the returned results to determine subsequent actions. Agent Roles in the Workflow Goals Organizes objectives and test scope Planner Reviews the information gathered and determines the next steps Worker Execute tools and record the verified results Table 3. Agents Used in Autonomous Tasks Once the LLM determines the direction of the test, the Skill guides the user through the tool usage procedure, and the Tool interacts with the target through command execution or HTTP requests. Results may vary even when the same objective is entered, depending on the available tools, permissions, and network access scope; on the target system, it is the requests sent by the actual tool and the subsequent behavior that are logged, rather than the agent’s name. ARTEX Penetration Test To verify whether ARTEX could actually achieve penetration, we conducted a penetration test using ARTEX. In the tests, we provided the target, objective, and permitted scope, then observed how far ARTEX proceeded by investigating the exposed capabilities. A total of two tests were conducted, each targeting different environments and objectives. In the experiment targeting a web server, the goal was to execute arbitrary programs using the file upload feature on a web page. In the ActiveMQ experiment—which simulated the initial exposure conditions described in *The DFIR Report* on a separate test network—the final objective was set as lateral movement following the Initial Breach. The attack flow is as follows. Figure 1. Penetration Testing Flow Using ARTEX In both experiments, the user provided only the target, objective, and permitted scope, and ARTEX selected different entry points based on the Service discovery results. The prompt provided was very simple—it was at a level that even a user without specialized knowledge in the security field could enter, such as: “Penetrate the Attack Target. “Please attack only the specified target.” Nevertheless, with just a single brief request from the user and without any human intervention, ARTEX achieved its objectives: on the web server, it executed a program on a single host through the upload function; and on ActiveMQ, it used initial access to an external server as a stepping stone for remote command execution on four internal hosts. Details regarding ARTEX’s structure, operating principles, Test Environment, and attack process can be found in “Analysis of the Structure and Operation of ARTEX, an AI-Based Autonomous Penetration Testing Tool.” The following table summarizes the procedures and final results of the two tests as follows. Scope of Autonomous Penetration Testing Confirmed in Both Tests Multi-Stage Test Phase Penetration Testing Targeting Web Vulnerabilities Penetration Test Targeting Software Vulnerabilities User-submitted request Investigated a single IP address; after confirming command execution, executed calc.Exe Lateral movement to internal hosts accessible after penetrating an external target Entry points identified by ARTEX File upload feature on a web page OpenWire on TCP port 61616, ActiveMQ 5.15.15, And CVE-2023-46604 Confirmed initial execution Execution of the Calculator program on Windows 11 after uploading a web shell Confirmation of command output after modifying XML, establishing a PowerShell shell, and creating a test file Subsequent Steps After discovering the SMB service, installed and assessed Impacket After investigating internal assets and accounts, remote command execution occurred on four hosts User intervention X X Final Reach Program executed on one web server Initial access to the boundary server BEACHHEAD01; remote command execution on four internal hosts Table 4. Test Procedures and Results ARTEX Attack Flow and Limitations of User-Agent-Based Detection ASEC’s testing confirmed that ARTEX scans for publicly exposed services and functions and attempts various attacks targeting environments with inadequate security configurations or vulnerabilities. During this process, requests sent directly by ARTEX or through external tools may contain different User-Agent values; however, not all operations generate requests, and this value is absent in non-HTTP communications. Even in HTTP requests, the value may not be recorded or may be altered by the threat actor depending on tool settings or log collection methods; therefore, it is difficult to detect or block ARTEX’s activities based solely on a specific User-Agent. The figure below illustrates the attack flow based on a “file upload attack case” and distinguishes between requests actually observed in the PoC and those identified only in code and documentation. Figure 2. User-Agents by Function According to the ARTEX Attack Flow Results of User-Agent Analysis by Function PoC testing revealed that different User-Agents were recorded depending on ARTEX’s functionality and the calling tool. When the ARTEX execution host checked for updates on GitHub, “artex-selfupdate” was observed; when it accessed the Attack Target’s web page, “norma/0.4” Was observed; and when it uploaded a file, “curl/<VERSION>” was observed. Among these, “artex-selfupdate” is a request sent to GitHub and therefore does not appear in the access logs of the Attack Target web server. External tools such as nmap, nxc, and Impacket may be used for network reconnaissance and propagation. While the User-Agent of each tool may be logged when an HTTP request is made, non-HTTP communications do not leave a User-Agent trace. Therefore, to detect related activity, it is necessary to examine not only web access logs but also firewall logs, network connection logs, and Service access logs. The ARTEX source code specifies ‘artex-enrich/1.0’, While the api-recon reference script specifies ‘Mozilla/5.0 (Spa-api-recon)’ and ‘Mozilla/5.0 (Spa-api-recon spider)’ are set as the User-Agent. However, in the analyzed version of ARTEX, the section calling the artex-enrich function was not connected, and we did not execute the api-recon script in this PoC. Consequently, these values should be classified as information that may be logged depending on the functionality or version, rather than traces observed in actual communications. Detection Limitations and Response Strategies When investigating ARTEX’s activities, it is difficult to identify the full scope of attack behavior based on a single User-Agent. This is because ARTEX and external tools may use different values, and the User-Agent may not be logged depending on the feature or communication method. Furthermore, threat actors can modify or remove these values, and tools such as curl are also used for legitimate administrative tasks. Therefore, while the User-Agent should be used as a clue to track attack activities, the presence of a specific value alone should not be taken as definitive proof of ARTEX usage or a successful intrusion. AI-powered attacks can automate reconnaissance, service discovery, file uploading, command execution, and access to internal networks as a single, continuous process. To counter this, rather than relying on the detection of specific User-Agents or individual tools, it is necessary to analyze the sequence and relationships between each behavior from the perspective of the overall attack flow. To achieve this, organizations need to deploy EDR capable of monitoring file and process execution on servers and PCs, and establish an XDR-based analysis framework that correlates web, network, and authentication logs with endpoint detection results. Only by analyzing multiple security logs together can we identify signs of Initial Breach, command execution, and lateral movement within the internal network—even when the User-Agent has changed or left no trace. Conclusion In two experiments, ARTEX broke down the user-specified objectives into detailed tasks and continued the intrusion by autonomously adjusting its attack methods and subsequent actions based on the results of each tool’s execution. In the web server environment, it located a file upload path and executed a program; in the ActiveMQ environment, it progressed from initial access to the stage of remote command execution on four internal hosts. An investigation of the ARTEX hosting infrastructure exposed to the Internet revealed that some servers contained both ARTEX operation paths and materials that appeared to have been used in attack operations. On other servers, various AI-related tools, such as CyberStrikeAI and an AI API gateway, were also discovered. This demonstrates that publicly available AI-based attack tools have the potential to be utilized in environments where actual attacks are prepared or executed, going beyond mere experimentation or proof-of-concept. Through this experiment, we confirmed that ARTEX can exploit vulnerabilities and misconfigurations in publicly available Services to expand its penetration scope—from initial access to command execution and access to internal networks. This demonstrates that AI-based autonomous penetration tools have already become a real-world threat and that their impact is likely to grow even further in the future. Attempts at AI-powered attacks are highly likely to increase in the future. However, the fundamental principles of defense remain unchanged. Organizations must identify publicly exposed services and management functions to reduce unnecessary exposure and promptly address vulnerabilities and misconfigurations. Account privileges and access to internal networks must also be restricted to the minimum necessary scope. Additionally, organizations should use EDR to monitor file and process execution on servers and PCs, and leverage XDR to correlate web, network, and authentication logs with endpoint detection results. This enables the early identification of and response to the attack chain—from Initial Breach to command execution, internal reconnaissance, and lateral movement within the internal network. MD5 085f53a1ce8c634ac7b0d63e42b56b15 0c501aca4fc29efe47f122ddc9c1af85 0eb259067e565221109a3ee988e1faa3 220a1465b2c5ee3ec86861ee17a91e2f 2d13374c14bcaaa99ab00f16cc18b300 IP 134[.]122[.]137[.]132 204[.]194[.]51[.]54 Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC Case of ActiveMQ Vulnerability Exploitation to Install Sharpire (Kinsing) 2025-10-28
AhnLab SEcurity intelligence Center (ASEC) has confirmed that the Kinsing threat actor is still distributing malware by exploiting known vulnerabilities. Since the disclosure of the CVE-2023-46604 vulnerability in ActiveMQ, the threat actor has been exploiting it to install malware on both Linux and Windows systems. [1] Aside from the well-known XMRig and Stager, the latest attack cases also involved Sharpire. Sharpire is a .NET backdoor that supports PowerShell Empire. During the process of taking control of the infected system, the threat actor uses CobaltStrike, Meterpreter, and PowerShell Empire together. 1. Kinsing (H2Miner) Kinsing, also known as H2Miner, was first identified by the Alibaba Cloud Security team in January 2020. [2] The malware strains are constantly adding new attack techniques for installing coin miners on inappropriately managed or vulnerable services. In the case of Docker, the Kinsing threat actor targets the Docker daemon API port with a misconfiguration, [3] while for Redis, they exploit the remote code execution vulnerability. Other cases include the Log4j vulnerability (CVE-2021-44228) and the ActiveMQ vulnerability (CVE-2023-46604). [4] Aside from exploiting vulnerabilities, they also leverage SSH credentials stored in infected systems during the lateral movement process. [5] 2. ActiveMQ Vulnerability (CVE-2023-46604) CVE-2023-46604 is a remote code execution vulnerability in Apache ActiveMQ, an open-source messaging and integration pattern server. If an unpatched Apache ActiveMQ server is exposed to the Internet, threat actors can remotely execute malicious commands and take control of the system. The vulnerability is exploited by manipulating the serialized class type that instructs the OpenWire protocol to instantiate a class in the classpath. If the attacker sends a manipulated packet, the vulnerable server uses the URL in the packet to load the class XML configuration file. Recommendation to Apply Security Update for Apache ActiveMQ (CVE-2023-46604) [6] CVE-2023-46604 has recently started to be exploited, and in Korea, attacks by the Andariel group, HelloKitty ransomware [7] , and Mauri ransomware have been identified. [8] 3. Latest attack cases of Kinsing threat actor Recently, a case has been identified where threat actors have exploited the CVE-2023-46604 vulnerability to distribute malware to vulnerable ActiveMQ servers in Korea. Generally, the vulnerability is exploited by various CoinMiner threat actors, but the Kinsing threat actor uses various types of malware. Figure 1. Vulnerable ActiveMQ service installing the Stager downloader The vulnerable Java process of Apache ActiveMQ loads the XML configuration file and executes the specified command based on this file, which is provided by the threat actor. The following is the XML configuration file used in the attack, responsible for using the msiexec command to install MSI malware from an external source. Figure 2. Class XML configuration file used in the attack During the attack, the threat actor installed a malware named “mm13.exe” in addition to MSI. Both MSI and “mm13.exe” are downloader malware. As of now, the download is unavailable, so it is not known what malware was downloaded. However, in general, this type of malware is responsible for downloading and executing CobaltStrike or Metasploit’s Meterpreter in the memory. This type is also known as Stager. Figure 3. Download URL of Stager It is also worth noting that the address used in the attack was found to include malware targeting Linux systems. The following is a relatively simple Bash script, which adds the Kinsing threat actor’s wallet address to the XMRig configuration file, as mentioned in a previous Fortinet report. Figure 4. Kinsing threat actor’s Bash malware Wallet – 1 : “linux Password – 1 : “linux Wallet – 2 : “89UoMhtsrpaJTvmJBbvy1cTdg38pomPFnW5Z4sniL2izcLQyGBkEGd96TcBJtzQUi6KAL5Ehe4cFpEMNdGF7tFKpJ1DqE8X Password – 2 : “lin Aside from the threat actor’s download server, there is also a malware strain named Sharpire. Among the open-source Post-Exploitation frameworks is Powershell Empire, which is developed in PowerShell and used by various threat actors. Sharpire is a .NET-developed backdoor that supports Powershell Empire. It is presumed that the threat actor would have used Sharpire in addition to Cobalt Strike or Meterpreter to control the infected systems. Figure 5. Configuration data of Sharpire Command Feature Default Execute PowerShell command (Full) shell Execute PowerShell command (argument) ls, dir, gci List directory mv, move Move file cp, copy Copy file rm, del, rmdir Delete file cd Change current directory ifconfig, ipconfig Check network configuration information ps, tasklist List processes route Query routing table information whoami, getuid Query current user hostname Look up host name reboot, restart Reboot system shutdown Shut down system Table 1. List of commands supported by Sharpire 4. Conclusion Threat actors are continuously attacking vulnerable, unpatched Apache ActiveMQ services. Among the identified attacks, there is a case of Kinsing threat actor who, like in the past, install coin miners to mine cryptocurrency. However, it was also found that they installed malware to control the infected systems. The Kinsing threat actor installs remote management tools such as XMRig, CobaltStrike, Meterpreter, and Sharpire in the infected systems. They use these tools to mine cryptocurrency, steal information, and install ransomware. MD5 28fb07cf6dcd072c3d0b82c60ce30bef 72a37a2fa588e013eafd695b8b5b0e61 a0c4c98a37562da3b94a9ac3f0dd56fb b512bfd19bf46dd3e735c331d768ea42 bf17b21c8e9f34a209977e0f2dce92c4 URL http[:]//gloryweb[.]vip/lin/config[.]json http[:]//gloryweb[.]vip/lin/go[.]sh http[:]//gloryweb[.]vip/lin/javarunprocess http[:]//gloryweb[.]vip/mm46[.]msi http[:]//gloryweb[.]vip[:]2086/ FQDN gloryweb[.]vip
ASEC Apache ActiveMQ 脆弱性(CVE-2023-46604)を攻撃する Mauri ランサムウェア攻撃者 2024-12-09
AhnLab Security Emergency response Center(ASEC)は、過去に数回のブログ記事を通じて CVE-2023-46604 脆弱性を対象とした攻撃事例を取り上げた。脆弱性に対するセキュリティパッチが適用されていないシステムは、依然として持続的な攻撃の対象となっており、主にコインマイナーのインストール事例が確認されている。しかし最近、Mauri ランサムウェアを使用する攻撃者が、Apache ActiveMQ の脆弱性を悪用して韓国国内のシステムを攻撃している状況を確認した。 1. Apache ActiveMQ 脆弱性(CVE-2023-46604) CVE-2023-46604 はオープンソースのメッセージおよび統合パターンサーバーである Apache ActiveMQ サーバーのリモートコード実行に関する脆弱性である。パッチが適用されていない Apache ActiveMQ サーバーが外部に公開されている場合、攻撃者はリモートで悪意を持ったコマンドを実行し、当該システムを掌握できる。 脆弱性攻撃は、classpath にあるクラスをインスタンス化するように OpenWire プロトコルでシリアライズされたクラスタイプを操作する方法で行われる。攻撃者が細工されたパケットを送信すると、脆弱なサーバーではパケットに含まれた経路、すなわち URL を参照して、クラス XML の設定ファイルをロードする。 AhnLab TIP:Apache ActiveMQ セキュリティアップデートの推奨(CVE-2023-46604) [1] この脆弱性は、公開されてから間もなく悪用され始め、韓国国内のシステムでも、Andariel グループや HelloKitty ランサムウェア [2] 、Cobalt Strike などの攻撃事例が確認された。また、パッチが適用されていないシステムは継続的に攻撃の対象となっており、Ladon、Netcat、AnyDesk、そして z0Miner などが確認されている。 [3] 2. 初期侵入段階 攻撃対象となったシステムには、Apache ActiveMQ サーバーがインストールされており、過去から継続的にコインマイナー攻撃者がマルウェアのインストールを試みたログが確認されている。Mauri ランサムウェア攻撃者もまたこの脆弱性を攻撃したものと推定されており、以下のように脆弱な ActiveMQ プロセスによって Frpc がインストールされた。 図1. ActiveMQ プロセスによってインストールされる Frpc マルウェアがダウンロードされたサーバーを確認した結果、以下のようにさまざまなマルウェアや正常なツール、そしてクラス XML 設定ファイルが存在している。脆弱な Apache ActiveMQ の Java プロセスは、受け取った細工パケットを参考して「hxxp://18.139.156[.]111:83/pocw.xml」のような経路に存在する XML 設定ファイルをロードする。その後、ロードした XML 設定ファイルを参考にして指定したコマンドを実行する。 図2. ダウンロードサーバーに存在しているマルウェア 3. 遠隔操作 3.1. バックドアアカウント XML ファイルは、攻撃者によって順番に使用されていると見られ、最初のタイプは「adminCaloX1」というバックドアアカウントを追加し、管理者アカウントに登録して RDP 接続が可能になるように設定するコマンドである。また、プライベートネットワークに存在するシステムに RDP で接続できるように、Frpc および設定ファイルをダウンロードして実行するコマンドも存在する。 図3. 攻撃に使用されたクラス XML 設定ファイル コマンドリスト > powershell user adminCalox Calox@2580 /add > net user adminCaloX1 CaloX@2580 /add > net localgroup Administrators adminCaloX1 /add > net user adminCaloX CaloX@2580 > net user Hell0$ /active:yes > net user admin /delete > shutdown /r /t 0 > net localgroup “Remote Desktop Users” “adminCaloX1” /add 表1. 攻撃に使用されたバックドアアカウント登録コマンド バックドアアカウントを追加する振る舞いは、このように ActiveMQ 脆弱性を悪用した直接的なコマンド実行方法も使用されるが、オープンソースツールである CreateHiddenAccount を使用することもある。 [4] (外部サイト、英語にて提供) ダウンロードサーバーには、「user.zip」という圧縮ファイルがアップロードされており、内部には「CreateHiddenAccount_v0.2.exe」という名前の CreateHiddenAccount と、それを実行する Batch スクリプトである「user.bat」が存在する。 Batch スクリプトは、CreateHiddenAccount を利用して「Hell0$」アカウントを追加し、隠蔽する役割を担当する。参考に、中国語話者が開発した CreateHiddenAccount ツールが使用されている点や、ダウンロードサーバーにセキュリティソフトウェアである Huorong のインストーラがある点などを見ると、攻撃者が中国語話者である可能性がある。 図4. 隠蔽アカウントを登録する Batch スクリプト 3.2. バックドア型マルウェア Quasar RAT は .NET で開発されたオープンソース RAT マルウェアである。一般的な RAT マルウェアのように、プロセスおよびファイル、レジストリのようなシステムタスク、遠隔コマンド実行、ファイルアップロードおよびダウンロードのような機能を提供している。Quasar RAT はそれ以外にもキーロガー、アカウント情報の収集機能を提供しており、ユーザー環境の情報を窃取することができ、遠隔デスクトップを通してリアルタイムで感染システムを制御することができる。 攻撃者のダウンロードサーバーには、Quasar RAT も存在しており、C&C サーバーもダウンロードサーバーのアドレスと同じであることから、RDP を利用した遠隔操作に加えて Quasar RAT も使用していると見られる。 設定 データ TAG Office04 Version 1.3.0.0 C&C サーバー 18.139.156[.]111:4782 Mutex QSR_MUTEX_i32rDtGISkwcqkhvjj 表2. Quasar RAT の設定情報 4. プロキシ 攻撃者は、ActiveMQ 脆弱性を悪用して、実行された PowerShell コマンドで Frpc および設定ファイルをインストールした。FRP(Fast Reverse Proxy)は、Go 言語で開発されたオープンソースツールであり、NAT 環境やファイアウォール内に位置するシステムを外部に公開するリバースプロキシとして動作することができる。FRP は Frpc と Frps に分かれるが、Frpc は感染システムにインストールされるツールであり、公開するサービスのポートと外部に位置する中継サーバーを接続する。 設定データは、最終的に感染システムの3389ポートと攻撃者を中継する役割を担う。これは、感染システムがプライベートネットワークに存在する場合に備えて、攻撃者が RDP サービスに接続できるようにすることを目的としており、攻撃者は上記で紹介したバックドアアカウントを悪用して、感染システムに RDP でアクセスすると推定される。参考に、Frpc が接続するアドレスは韓国国内の別のシステムであり、これは攻撃者がすでにそのシステムを掌握したあと、Frps をインストールしたものと思われる。 図5. 攻撃者の Frpc 設定ファイル 5. Mauri ランサムウェア 実際の攻撃事例はまだ確認されていないが、ダウンロードサーバーには Mauri ランサムウェアがアップロードされている。Mauri ランサムウェアは、「mauri870」という開発者が研究目的で開発したランサムウェアである。 [5] (外部サイト、英語にて提供) 当該ソースコードは別の攻撃者によって頻繁に使用されているのか、MauriCrypt として検知されているという内容も説明に記載されている。ソースコードが公開されているため、他の攻撃者によっても頻繁に悪用されており、過去には Mimo 攻撃者が Mimus という名前で Mauri ランサムウェアを攻撃に使用したこともある。 [6] 図6. Mauri ランサムウェアの Github ページ 設定 説明 暗号化アルゴリズム AES-256 CTR 暗号化拡張子 .locked ランサムノート名 “READ_TO_DECRYPT.html”, “FILES_ENCRYPTED.html” 暗号化除外パス “DocumentsFavorites”, “Pictures”, “Videos”, “Music”, “Favorites”, “Windows”, “bootmgr”, “$WINDOWS.~BT”, “Windows.old”, “Temp”, “tmp”, “Program Files”, “Program Files (x86)” 暗号化対象の拡張子 “.zip”, “.exe”, “.sxi”, “.sti”, “.sldx”, “.sldm”, “.tar”, “.tgz”, “.gz”, “.7z”, “.rar”, “.m4u”, “.mkv”, “.sh”, “.class”, “.jar”, “.rb”, “.asp”, “.jsp”, “.ps1”, “.cmd”, “.h”, “.pas”, “.cpp”, “.cs”, “.suo”, “.sln”, “.der”, “.ips”, “.dll”, “.config”, “.lic”, “.dat”, “.xml”, “.ldb”, “.key”, “.vbs”, “.bump”, “.bat”, “.DBF”, “.json”, “.doc”, “.docx”, “.msg”, “.odtpas”, “.wpd”, “.wps”, “.txt”, “.csv”, “.pps”, “.ppt”, “.pptx”, “.aif”, “.iif”, “.m3u”, “.m4a”, “.mid”, “.mp3”, “.mpa”, “.wav”, “.wma”, “.3gp”, “.3g2”, “.avi”, “.flv”, “.m4v”, “.mov”, “.mp4”, “.mpg”, “.vob”, “.wmv”, “.3dm”, “.3ds”, “.max”, “.obj”, “.blend”, “.bmp”, “.gif”, “.png”, “.jpeg”, “.jpg”, “.psd”, “.tif”, “.gif”, “.ico”, “.ai”, “.eps”, “.ps”, “.svg”, “.pdf”, “.indd”, “.pct”, “.epub”, “.xls”, “.xlr”, “.xlsx”, “.accdb”, “.sqlite”, “.dbf”, “.mdb”, “.pdb”, “.sql”, “.db”, “.sdb”, “.dem”, “.gam”, “.nes”, “.rom”, “.sav”, “.bkp”, “.bak”, “.tmp”, “.cfg”, “.conf”, “.ini”, “.prf”, “.html”, “.php”, “.js”, “.c”, “.cc”, “.py”, “.lua”, “.go”, “.java” C&C アドレス hxxp://localhost:8080 攻撃者のメール telegram hxxps://t[.]me/calojohn666 仮想通貨ウォレットのアドレス TQaaRDVYiAuQ6XiULvEjtvKQ2S2ickuqJF (usdt-trc20) 表3. 攻撃者が作成した Mauri ランサムウェアの設定 別のプロキシツールを使用した可能性もあるが、C&C サーバーのアドレスが Localhost であり、ダウンロードサーバーに Mauri のサーバープログラムもアップロードされているため、まだテスト目的である可能性が存在する。しかし、ランサムウェアが基本形式ではなく、ウォレットアドレスや Telegram アドレス、暗号化設定など、さまざまな設定データがすでに攻撃者のものに操作されていることから、現在攻撃に使用されている可能性も考えられる。 図7. 暗号化後に作成されるランサムノート 6. 結論 攻撃者はパッチが適用されていない脆弱な Apache ActiveMQ サービスを対象に持続的に攻撃を行っている。確認された攻撃の中には、コインマイナーをインストールして仮想通貨を採掘する事例もあるが、感染システムを制御するためのマルウェアが多数確認される。攻撃者は感染システムを掌握したあと、情報を奪取したり、ランサムウェアをインストールすることができる。 システム管理者は使用している Apache ActiveMQ サービスが以下のように脆弱なバージョンであるかをチェックし、最新バージョンにパッチを適用して、既知の脆弱性による攻撃を防ぐ必要がある。 Apache ActiveMQ 5.18.0 以上 5.18.3 未満のバージョン Apache ActiveMQ 5.17.0 以上 5.17.6 未満のバージョン Apache ActiveMQ 5.16.0 以上 5.16.7 未満のバージョン Apache ActiveMQ 5.15.16 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.18.0 以上 5.18.3 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.17.0 以上 5.17.6 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.16.0 以上 5.16.7 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.8.0 以上 5.15.16 未満のバージョン また、外部に開放されていてアクセスが可能なサーバーに関してはファイアウォールのようなセキュリティ製品を利用し、外部の攻撃者からのアクセスを制御するべきである。最後に、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前に遮断できるように注意を払う必要がある。 ファイル検知 – Exploit/XML.Agent (2024.12.02.03) – Trojan/Win32.RansomCrypt.R336789 (2024.11.30.02) – Trojan/BAT.Launcher (2024.12.02.03) – Data/BIN.Config (2024.12.02.03) – Trojan/Win.Malware-gen.R657415 (2024.07.06.01) – Trojan/Win32.Subti.R285137 (2019.08.06.05) – HackTool/Win.UserAdd.C5271969 (2022.10.04.02) – HackTool/Win.Mauri.C5701488 (2024.12.01.00) 振る舞い検知(V3) – Persistence/MDP.AutoRun.M224 – Ransom/MDP.Decoy.M1171 振る舞い検知(EDR/MDS) – Escalation/EDR.RIDHijacking.M12290 – DefenseEvasion/MDP.AutoRun.M1036 – Ransom/EDR.Decoy.M2470 – Execution/MDP.Behavior.M159 – Behavior/MDP.Drop.M489 – Execution/MDP.Event.M495 IOC 関連情報 MD5 07894bc946bd742cec694562e730bac8 25b1c94cf09076eb8ce590ee2f7f108e 2c93a213f08a9f31af0c7fc4566a0e56 2e8a3baeaa0fc85ed787a3c7dfd462e7 3b56e1881d8708c48150978da14da91e 追加 IoC は ATIP で提供しています。 URL http[:]//18[.]139[.]156[.]111[:]83/Google[.]zip http[:]//18[.]139[.]156[.]111[:]83/a[.]exe http[:]//18[.]139[.]156[.]111[:]83/brave[.]exe http[:]//18[.]139[.]156[.]111[:]83/c[.]ini http[:]//18[.]139[.]156[.]111[:]83/chrome[.]exe 追加 IoC は ATIP で提供しています。 IP 18[.]139[.]156[.]111 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム 「 AhnLab TIP 」 サブスクリプションサービスを通して確認できる。
ASEC Mauri Ransomware Threat Actors Exploiting Apache ActiveMQ Vulnerability (CVE-2023-46604) 2024-12-02
AhnLab SEcurity intelligence Response Center (ASEC) has covered the attack cases targeting CVE-2023-46604 vulnerability in past blog posts. Systems without vulnerability patch are still being targeted, cases show that their intention is to mainly install CoinMiners. Recently, threat actors using Mauri ransomware have been found exploiting the Apache ActiveMQ vulnerability to attack Korean systems. 1. Apache ActiveMQ Vulnerability (CVE-2023-46604) CVE-2023-46604 is a remote code execution vulnerability in the Apache ActiveMQ server, an open-source messaging and integrated pattern server. If an unpatched Apache ActiveMQ server is exposed externally, the threat actor can execute malicious commands remotely and dominate the target system. Vulnerability attacks are carried out by making an instance out of the class in classpath by manipulating the serialized class type in the OpenWire protocol. When the threat actor sends the modified packet, the vulnerable server references the path (URL) in the packet to load the class XML configuration file. AhnLab TIP: Apache ActiveMQ Security Update Advisory (CVE-2023-46604) [1] The vulnerability began to be exploited shortly after its disclosure, with attack cases involving the Andariel group, HelloKitty ransomware [2] , and Cobalt Strike observed in systems within Korea. Additionally, unpatched systems have been continuously targeted, with tools such as Ladon, Netcat, AnyDesk, and z0Miner. [3] 2. Initial Access The targeted systems had Apache ActiveMQ servers installed, and logs show continuous attempts by CoinMiner attackers to install malware. Mauri ransomware threat actors are suspected of exploiting the vulnerability, resulting in Frpc being installed by the vulnerable ActiveMQ process. Figure 1. Frpc installed by an ActiveMQ process Upon examining the server where the malware was downloaded, various malware, legitimate tools, and class XML configuration files were found. A vulnerable Apache ActiveMQ’s Java process references the modified packet received and loads the XML configuration file located in the “hxxp://18.139.156[.]111:83/pocw.xml” path. It then executes the specified commands by referencing the loaded XML configuration file. Figure 2. Malware within the download server 3. Remote Control 3.1. Backdoor Account The XML files appear to be used sequentially by the threat actor, with the first type adding a backdoor account named “adminCaloX1” and executing commands to register it as an admin account and enable RDP access. There are also commands to download and execute Frpc and configuration files to enable RDP access to systems within a private network. Figure 3. Class XML configuration files used in attacks List of commands > powershell user adminCalox Calox@2580 /add > net user adminCaloX1 CaloX@2580 /add > net localgroup Administrators adminCaloX1 /add > net user adminCaloX CaloX@2580 > net user Hell0$ /active:yes > net user admin /delete > shutdown /r /t 0 > net localgroup “Remote Desktop Users” “adminCaloX1” /add Table 1. Backdoor account registration commands used in attacks Adding a backdoor account can be done through direct command execution exploiting the ActiveMQ vulnerability, but it also uses the open-source tool CreateHiddenAccount. On the download server [4] , there is a “user.zip” archive file uploaded, containing “CreateHiddenAccount_v0.2.exe” and a batch script named “user.bat.” The batch script is responsible for using CreateHiddenAccount to add and hide the “Hell0$” account. CreateHiddenAccount tool, developed by a Chinese speaking user, was used, and the download server contains Huorong security software installation files, suggesting there is a possibility that the attacker is a Chinese speaker. Figure 4. Batch script for registering a hidden account 3.2. Backdoor Malware Quasar RAT is an open-source RAT malware developed with .NET. Like most other RAT malware, it provides system tasks like process, file, and registry, and features such as remote command execution and the ability to download and upload files. In addition, Quasar RAT provides keylogging and account information collection features to allow the theft of information from user environments, and enable real-time control over infected systems through remote desktop. The threat actor’s download server also hosts Quasar RAT, and since the C&C server shares the same address as the download server, it appears that Quasar RAT is used in addition to remote control using RDP. Settings Data TAG Office04 Version 1.3.0.0 C&C Servers 18.139.156[.]111:4782 Mutex QSR_MUTEX_i32rDtGISkwcqkhvjj Table 2. Configuration data of Quasar RAT 4. Proxy The threat actor exploited the ActiveMQ vulnerability to install Frpc and configuration files using a PowerShell command. FRP (Fast Reverse Proxy) is an open-source tool developed in Go language that can operate as a reverse proxy to expose systems located behind NAT or firewalls to the outside. FRP is divided into Frpc and Frps, with Frpc being the tool installed on infected systems to connect the port of the service to be exposed with an external relay. The configuration data ultimately serves to relay the 3389 port of the infected system to the threat actor. This is intended to allow the threat actor to connect to the RDP service in case the infected system is within a private network, and it is assumed that it will use the backdoor accounts discussed earlier to access the infected system via RDP. Notably, the address that Frpc connects to is another system within Korea, suggesting that the threat actor has already compromised this system and installed Frps. Figure 5. Threat actor’s Frpc configuration file 5. Mauri Ransomware Although actual attack cases have not yet been confirmed, Mauri ransomware has been uploaded to the download server. Mauri ransomware is ransomware developed by a developer named “mauri870” for research purposes. [5] This source code also includes an explanation that MauriCrypt is detecting whether it is frequently being used by threat actors. Since the source code is publicly available, it is frequently exploited by other threat actors. In the past, the Mimo used Mauri ransomware under the name Mimus in attacks. [6] Figure 6. Mauri ransomware’s GitHub page Settings Description Encryption algorithm AES-256 CTR Encryption extension .locked Ransom note name “READ_TO_DECRYPT.html”, “FILES_ENCRYPTED.html” Paths excluded from encryption “DocumentsFavorites”, “Pictures”, “Videos”, “Music”, “Favorites”, “Windows”, “bootmgr”, “$WINDOWS.~BT”, “Windows.old”, “Temp”, “tmp”, “Program Files”, “Program Files (x86)” Encrypted extensions “.zip”, “.exe”, “.sxi”, “.sti”, “.sldx”, “.sldm”, “.tar”, “.tgz”, “.gz”, “.7z”, “.rar”, “.m4u”, “.mkv”, “.sh”, “.class”, “.jar”, “.rb”, “.asp”, “.jsp”, “.ps1”, “.cmd”, “.h”, “.pas”, “.cpp”, “.cs”, “.suo”, “.sln”, “.der”, “.ips”, “.dll”, “.config”, “.lic”, “.dat”, “.xml”, “.ldb”, “.key”, “.vbs”, “.bump”, “.bat”, “.DBF”, “.json”, “.doc”, “.docx”, “.msg”, “.odtpas”, “.wpd”, “.wps”, “.txt”, “.csv”, “.pps”, “.ppt”, “.pptx”, “.aif”, “.iif”, “.m3u”, “.m4a”, “.mid”, “.mp3”, “.mpa”, “.wav”, “.wma”, “.3gp”, “.3g2”, “.avi”, “.flv”, “.m4v”, “.mov”, “.mp4”, “.mpg”, “.vob”, “.wmv”, “.3dm”, “.3ds”, “.max”, “.obj”, “.blend”, “.bmp”, “.gif”, “.png”, “.jpeg”, “.jpg”, “.psd”, “.tif”, “.gif”, “.ico”, “.ai”, “.eps”, “.ps”, “.svg”, “.pdf”, “.indd”, “.pct”, “.epub”, “.xls”, “.xlr”, “.xlsx”, “.accdb”, “.sqlite”, “.dbf”, “.mdb”, “.pdb”, “.sql”, “.db”, “.sdb”, “.dem”, “.gam”, “.nes”, “.rom”, “.sav”, “.bkp”, “.bak”, “.tmp”, “.cfg”, “.conf”, “.ini”, “.prf”, “.html”, “.php”, “.js”, “.c”, “.cc”, “.py”, “.lua”, “.go”, “.java” C&C URL hxxp://localhost:8080 Threat actor’s email telegram hxxps://t[.]me/calojohn666 Coin wallet address TQaaRDVYiAuQ6XiULvEjtvKQ2S2ickuqJF (usdt-trc20) Table 3. Mauri ransomware configuration created by the threat actor Although another proxy tool might have been used, the C&C server’s address being Localhost and the presence of Mauri’s server program on the download server suggest that it might still be for testing purposes. However, considering that several configuration data, such as wallet addresses, Telegram addresses, and encryption settings, have already been altered by the threat actor, it cannot be ruled out that the ransomware is currently being used in attacks. Figure 7. Ransom note generated after encryption 6. Conclusion Threat actors are continuously launching attacks against unpatched, vulnerable Apache ActiveMQ services. Out of such identified attacks, there were cases where CoinMiners were installed to mine cryptocurrencies, as well as many cases where malware strains were used to control the infected system. After compromising the infected system, threat actors can steal data or install ransomware. System administrators must check if their current Apache ActiveMQ service is one of the susceptible versions below and apply the latest patches to prevent attacks that exploit known vulnerabilities. Apache ActiveMQ versions 5.18.0 – 5.18.2 Apache ActiveMQ versions 5.17.0 – 5.17.5 Apache ActiveMQ versions 5.16.0 – 5.16.6 Apache ActiveMQ versions 5.15.15 or earlier Apache ActiveMQ Legacy OpenWire Module versions 5.18.0 – 5.18.2 Apache ActiveMQ Legacy OpenWire Module versions 5.17.0 – 5.17.5 Apache ActiveMQ Legacy OpenWire Module versions 5.16.0 – 5.16.6 Apache ActiveMQ Legacy OpenWire Module versions 5.8.0 – 5.15.15 System administrators should also use security programs such as firewalls for servers accessible from outside to restrict access by attackers. Lastly, caution must be practiced, updating V3 to the latest version to block malware infection in advance. MD5 07894bc946bd742cec694562e730bac8 25b1c94cf09076eb8ce590ee2f7f108e 2c93a213f08a9f31af0c7fc4566a0e56 2e8a3baeaa0fc85ed787a3c7dfd462e7 3b56e1881d8708c48150978da14da91e URL http[:]//18[.]139[.]156[.]111[:]83/Google[.]zip http[:]//18[.]139[.]156[.]111[:]83/a[.]exe http[:]//18[.]139[.]156[.]111[:]83/brave[.]exe http[:]//18[.]139[.]156[.]111[:]83/c[.]ini http[:]//18[.]139[.]156[.]111[:]83/chrome[.]exe IP 18[.]139[.]156[.]111 Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC Threat Trend Report on APT Groups – July 2024 Major Issues on APT Groups 2024-08-12
Purpose and Scope This report covers nation-led threat groups presumed to conduct cyber espionage or sabotage under the support of the governments of certain countries, referred to as “Advanced Persistent Threat (APT) groups” for the sake of convenience. Therefore, this report does not contain information on cybercriminal groups aiming to gain financial profits. We organized analyses related to APT groups disclosed by security companies and institutions including AhnLab during the previous month; however, the content of some APT groups may not have been included. The names and classification criteria may vary depending on the security company or researcher, and in this report, we used well-known names of AhnLab Threat Intelligence Platform (ATIP)’s threat actors. APT Group Trends The cases of major APT groups for July 2024 gathered from materials made public by security companies and institutions are as follows. 1) APT17 TG SOFT revealed the activities of the APT17 group, which targeted Italian companies and government agencies in June and July 2024. [1] In the first attack, the threat actors sent a malicious MS Office document, and in the second attack, they sent an email containing a malicious link. Both attacks coerced victims into installing a Skype for Business package containing the 9002Rat malware. The 9002Rat malware, which features proxy functions for monitoring network traffic, is modular malware capable of downloading plugins to extend its functionality. Although it is an older malware, it continues to be updated in 2024. The use of a government agency link on the malicious page suggests that the threat actors utilized confidential information from previously infected Italian companies or institutions. 2) APT40 CISA [2] and BitDefender [3] reported that the APT40 group targeted Australian networks in a series of attacks. APT40 attempted multiple intrusions into Australian networks by exploiting publicly known vulnerabilities in widely used software, including Log4J, Atlassian Confluence, and Microsoft Exchange. During the initial intrusion phase, they used web shells to maintain persistence and leveraged small office/home office (SOHO) devices as infrastructure, making detection more difficult. In another instance of attack, APT40 attacked networks through remote access portals, collecting hundreds of valid usernames and passwords. 3) APT41 Zscaler ThreatLabz has disclosed information about a new loader, DodgeBox, [4] and a new backdoor, MoonWalk, [5] used by APT41. DodgeBox is similar to a variant of StealthVector and employs various evasion techniques. Notably, it uses Google Drive for C2 communication. This loader avoids detection through techniques such as environment checks, DLL side-loading, and DLL hollowing, and encrypts its configuration using AES-CFB mode. MoonWalk is loaded via DodgeBox and also uses Google Drive for C2 communication. It employs techniques such as DLL hollowing, import resolution, DLL unhooking, and stack spoofing. Additionally, it attempts to bypass security programs using Windows Fibers. MoonWalk’s modular design allows it to be easily updated and modified to suit various scenarios. Mandiant reported that APT41 targeted the shipping and logistics sectors in Europe and the Middle East, as well as the media and entertainment sectors in Asia. [6] APT41’s key malware strains, DUSTPAN and DUSTTRAP, function through an in-memory dropper and a multi-stage plugin framework, respectively. SQLULDR2 and PINEGROVE were respectively used as data extraction and upload tools. To sign their malware, this group used code-signing certificates, which were found to be stolen from companies in the gaming industry. APT41 maintained persistence on Tomcat Apache Manager servers using the ANTSWORD and BLUEBEAM web shells. These web shells have been active since 2023, executing certutil.exe to download the DUSTPAN dropper, which then loads BEACON. DUSTTRAP minimizes traces by executing the malicious payload directly from the memory. 4) Andariel (APT45) The US government has indicted [7] individuals associated with the Andariel group and issued warnings about the group’s activities. [8] Microsoft [9] and Mandiant [10] have also released information regarding Andariel’s operations. This group began its intensive activities targeting government agencies and the defense industry in 2017, and in 2019, activities were detected in conjunction with its continued focus on nuclear issues and energy. The Andariel group primarily targets sensitive military information and intellectual property in the defense, aerospace, nuclear, and engineering sectors, and has also attacked the medical and energy industries to some extent. They primarily conduct ransomware attacks on US medical institutions to fund their espionage activities, and in some cases, they carry out ransomware attacks and cyber espionage activities simultaneously on the same day. The group exploits vulnerabilities such as Apache ActiveMQ (CVE-2023-46604), TeamCity (CVE-2023-42793), and Citrix NetScaler (CVE-2023-3519). Their primary malware includes Atharvan, ELF Backdoor, Jupiter, MagicRAT, TigerRAT, SmallTiger, LightHand, and ValidAlpha, while they obfuscated the malware using commercial tools such as Sliver, Themida, and VMProtect. [1] https://www.tgsoft.it/news/news_archivio.asp?id=1557 [2] https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-190a [3] https://www.bitdefender.com/blog/businessinsights/understanding-apt40-insights-from-cisas-latest-joint-security-advisory/ [4] https://www.zscaler.com/blogs/security-research/dodgebox-deep-dive-updated-arsenal-apt41-part-1 [5] https://www.zscaler.com/blogs/security-research/moonwalk-deep-dive-updated-arsenal-apt41-part-2 [6] https://cloud.google.com/blog/topics/threat-intelligence/apt41-arisen-from-dust/ [7] https://www.fbi.gov/wanted/cyber/rim-jong-hyok [8] https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-207a [9] https://www.microsoft.com/en-us/security/blog/2024/07/25/onyx-sleet-uses-array-of-malware-to-gather-intelligence-for-north-korea/ [10] https://cloud.google.com/blog/topics/threat-intelligence/apt45-north-korea-digital-military-machine/
ASEC z0Miner 攻撃者、韓国国内 Web サーバーを悪用して WebLogic サーバー攻撃 2024-03-06
AhnLab SEcurity intelligence Center(ASEC)では、韓国国内の脆弱なサーバーを対象に攻撃する事例を確認している。この記事では、最近「z0Miner」攻撃者が韓国国内の WebLogic サーバーを対象に攻撃した事例を紹介する。 z0Miner 攻撃者は中国の Tencent Security で初めて紹介された。 z0Miner挖矿木马利用Weblogic最新漏洞入侵,腾讯主机安全(云镜)极速捕捉 腾讯主机安全(云镜)于2020.11.02日捕获到挖矿木马团伙z0Miner利用Weblogic未授权命令执行漏洞(CVE-2020-14882/14883)的攻击行动。该团伙通过批量扫描云服务器发现具有Weblogic漏洞的机器,发送精心构造的数据包进行攻击。 彼らは、以前から韓国国内外の脆弱なサーバー(Atlassian Confluence、Apache ActiveMQ、Log4Jなど)を対象としてマイナーを配布した履歴があり、ASEC を通して頻繁に言及された。 脆弱な Atlassian Confluence サーバーをターゲットにした攻撃事例 継続的に攻撃対象となっている Apache ActiveMQ 脆弱性(CVE-2023-46604) また、この攻撃者は CVE-2020-14882/CVE-2020-14883 脆弱性を使用して WebLogic サーバーを攻撃したことでよく知られている。 2024年の1月26日、「z0Miner 攻撃者」が韓国国内の WebLogic サーバーシステムを対象にマルウェアを配布した事例が確認された。彼らは、対象システムの OS が Windows の時は powershell.exe と certutil.exe を使用し、Linux の時には curl コマンドを通して不正なファイルをダウンロードした。 今回確認された事例には、下記のような海外のケースとは異なる大きな違いが存在する。 1) 韓国国内の脆弱な Web サーバーを掌握し、攻撃者のダウンロードサーバーとして悪用 2) FRP、NetCat、AnyDesk など、ネットワークツールを使用した状況確認 1. 悪用された韓国国内の Web サーバー 彼らは、以下のように正常に使用される Web サーバーを掌握した後、マルウェア(Miner およびネットワークツール、攻撃に必要なスクリプトなど)を配布するダウンロードサーバーとして悪用した。現在まで確認されている韓国国内のサーバーは以下の通りである。 図1. 悪用された韓国国内の Web サーバー 攻撃者に悪用されたサーバーはすべて、サーバー情報(Apache-Coyote/1.1)が露出しており、特定バージョンを推測することができた。また、特定サーバーの場合、管理されていないため、Tomcat の具体的なバージョン(Apache Tomcat/5.0.28)も確認できた。 図2. Web サーバーの応答ヘッダー(Apache-Coyote/1.1) 2. Windows 対象の攻撃 2.1. WebShell 攻撃者は CVE-2020-14882 のような WebLogic 脆弱性を利用して JSP Web シェル(WebShell)をアップロードしたと確認された。システムに Web シェルがインストールされると、持続性を維持することができ、システムを操作できるようになる。また、攻撃者は3つの Web シェル(JSP File Browser、Shack2、Behinder)を使用した。これは、アンチウィルスに検知されない Web シェルをアップロードするために数種類を使用したものと推定される。 図3. Web シェルのアップロードログ(引用元:当社 ASD サービス) 1) JSP FILE BROWSER (ZUBIN WEBSHELL) 図4. 攻撃者が使用した Web シェル(1) 攻撃者はカスタマイズされた JSP File Browser v1.2 Web シェルを使用した。この Web シェルは、Title を「Zubin – Welcome」と設定しており、Password は「zubin@666」、製作者の部分はカスタムした人の名前に変更した。このような付加的な部分以外には従来の Web シェルと大差ない。 図5. カスタマイズされた Web シェル(Zubin) private String _password = “zubin@666”; 2) SHACK2 この Web シェルは Shack2 が製作したもので、類似したコードは Github で確認することができる。攻撃者が使用したバージョンは、「V1.0-20141106」である。 海外のセキュリティ会社である「IronNet」でも、z0Miner の配布時にこの Web シェルを確認した事例が存在する。 Continued Exploitation of CVE-2021-26084 Continued Exploitation of CVE-2021-26084. 図6. 攻撃者が使用した Web シェル(2) 少し変わっている点は IronNet 社で言及した内容のように、現在も Web シェルの機能9つの中で、3つの機能だけが具現されているという点である。使用できる機能は OS 情報などのコンピューター情報の出力、ファイルマネージャー、コマンド実行の3つである。 図7. Shack2 Web シェルの3つの機能 3) BEHINDER 図8. 攻撃者が使用した Web シェル(3) この Web シェルは GodZilla、China Chopper のように以前から使用され、よく知られている Web シェルである。攻撃者は Github ソース と同じ Web シェルを使用した。 2.2. FRP(Fast Reverse Proxy) 攻撃者は RDP(Remote Desktop Protocol)通信のため、Proxy ツールを使用した。使用したツールは FRP(Fast Reverse Proxy)で、過去の ASEC ブログで何度か紹介したことがある。 韓国国内の企業をターゲットにした FRP(Fast Reverse Proxy) を使用する攻撃グループ Dalbit 、 m00nlight: 中国ハッカーグループの APT 攻撃キャンペーン (韓国語にて提供) z0Miner 攻撃者は、基本的な形態の Frpc と、直接カスタマイズした形態の両方を使用した。基本的な Frpc は、*.INI 形態の設定ファイルを読み込み、接続を試みるが、カスタムされた Frpc はプログラム内部に設定データを持っているため、別途のファイルなしに実行することができる。このように Frpc をカスタムして配布する方式は、他の脅威グループの事例でも確認されたことがある。 韓国国内とタイを対象とする APT 攻撃に使用された BlueShell マルウェア 図9. Frpc(svcho.exe) Download ログ 下記は現在までに確保した攻撃者の FRP サーバーとポートである。 図10. Frpc 設定データ 15.235.22[.]212:5690 15.235.22[.]213:59240 z0Miner 攻撃者の Frpc Server & Port 2.3. Netcat Netcat は、ネットワーク接続時にデータを読み書きできるユーティリティツールで、過去の侵害事故でも多く確認された。特に、ファイアウォールを回避して攻撃対象システムに対する制御権を獲得できる遠隔シェル(Remote Shell)機能を提供するため、攻撃者がよく使用する。 この攻撃者は userinit.exe という名前の Netcat をダウンロードして下記のように実行した。 図11. Netcat のリバースシェル(Reverse Shell)コマンドログ このコマンドの意味は、与えられた IP とポートに接続を試み、接続時にコマンドプロンプト(CMD)を実行しろという意味で、リバースシェル(Reverse Shell)コマンドである。この後、攻撃者はコマンドプロンプトを通してシステムを操作できるようになる。 107.180.100[.]247:88 z0Miner 攻撃者の Netcat Server & Port 2.4. AnyDesk Netcat をインストールした後、追加で AnyDesk をインストールした事例は Apache ActiveMQ 脆弱性(CVE-2023-46604)の事例でも確認された。 継続的に攻撃対象となっている Apache ActiveMQ 脆弱性 (CVE-2023-46604) 攻撃者は、ダウンロードサーバー(侵害された Web サーバー)を通して PowerShell スクリプトを読み込んだ後、公式ホームページに接続して AnyDesk をダウンロードした。 図12. Powershell(wshell.exe) をによる AnyDesk インストールログ 図13. 過去の事例で確認された AnyDesk インストール PowerShell コード 2.5. Miner(XMRig) 現在、攻撃者が配布している Windows XMRig のバージョンは6.18.0バージョンであり、Linux の場合、XMRig 6.18.1 バージョンと確認された。 図14. XMRig バージョン(6.18.0、Windows 対象) 攻撃者は、持続性のために WMI のイベントフィルタ(Event Filter)とコンシューマー(Consumer)を登録したり、スケジューラ(schtasks)を登録して pastebin.com の特定のアドレスから PowerShell スクリプトを読み込んできて実行するようにした。しかし、解析当時に PowerShell スクリプトは存在しなかった。 図15. 持続性のための WMI イベントフィルタ(Event Filter)とコンシューマー(Consumer) この後、「javae.exe」という名前で採掘を実行する。 図16. Miner をダウンロードする PowerShell コード 3 . Monero Wallet & Mining Pool Address 攻撃者が使用している config.json は以下の通りである。 図17. 攻撃者の config.json(ウォレットアドレスとマイニングプールアドレス) Mining Pool : pool.supportxmr[.]com:443 pool.supportxmr[.]com:80 Monero Wallet : 44VkCrG7DkmYCcrNQcBb1QfZ66si2xWqy7HuzgyWLXKy8x3pkzKWxs8TptTNjCS1b2Abm89MuXD1tg81KeRgfP2u3z6f2kP 47y69G6VzipF8ydhXxzRF69e8ys3XrDFjD5SqSM1T8yJGdfHqtRmMA9eQpq8vnWBibhmb35xLAyVpen53hfidLwHDP3NbAm z0Miner 攻撃者の Monero Wallet & Mining Pool Address 5 . 結論 攻撃者は、パッチされていない脆弱な WebLogic サーバーを対象に攻撃を続けている。また、感染システムを掌握した後、情報を窃取したり、ランサムウェアのインストールが可能なため、管理されていないポートやサーバーのチェックが必要である。また、システム管理者は使用している WebLogic サービスが最新バージョンかをチェックし、低バージョンの場合はパッチを適用して既知の脆弱性による攻撃を防止しなければならない。 ユーザーは、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前に遮断できるように注意を払う必要がある。 ファイル検知 – HackTool/Win.Netcat (2022.10.18.03) – Win-Trojan/Miner3.Exp (2022.06.24.02) – Downloader/Shell.Miner.SC197168 (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Trojan/PowerShell.Miner (2024.02.27.01) – Trojan/Script.z0Miner.SC197169 (2024.02.27.01) – Trojan/Win.FRP (2024.02.27.01) – Trojan/Shell.Miner.SC197170 (2024.02.27.01) – Trojan/Shell.Miner.SC197171 (2024.02.27.01) – Trojan/Shell.Agent.SC197172 (2024.02.27.01) – Downloader/Shell.Miner.SC197173 (2024.02.27.01) – WebShell/JSP.Generic.S1866 (2024.02.27.00) – Linux/CoinMiner.Gen2 (2022.11.24.02) – WebShell/JSP.FileBrowser.SC197174 (2024.02.27.01) – WebShell/JSP.Generic.S1957 (2024.02.27.00) – Trojan/Shell.Agent.SC197175 (2024.02.27.03) – Downloader/PowerShell.Miner (2024.02.27.03) – CoinMiner/Shell.Generic.S2078 (2024.02.27.00) – Downloader/PowerShell.Miner.SC197176 (2024.02.27.01) IoC MD5 – 523613a7b9dfa398cbd5ebd2dd0f4f38 : userinit.exe(Netcat) – 2a0d26b8b02bb2d17994d2a9a38d61db : x.rar(XMRig, exe) – 4cd78b6cc1e3d3dde3e47852056f78ad : al.txt – 085c68576c60ca0361b9778268b0b3b9 : (config.json) – b6aaced82b7c663a5922ce298831885a : (config.json) – 7b2793902d106ba11d3369dff5799aa5 : cpu.ps1 – ad33f965d406c8f328bd71aff654ec4c : frpc.ini – 7e5cc9d086c93fa1af1d3453b3c6946e : svcho.exe(frpc) – e60d8a3f2190d78e94c7b952b72916ac : frp5.exe – 8434de0c058abb27c928a10b3ab79ff8 : l.txt – 90b74cdc4b7763c6b25fdcd27f26377f : l.txt – 83e163afd5993320882452453c214932 : lcpu.txt – a0766ad196626f28919c904d2ced6c85 : ll.txt – 903fce58cb4bfc39786c77fe0b5d9486 : pan.rar(Shack2 WebShell) – c2fb307aee872df475a7345d641d72da : s.rar(XMRig, ELF) – 88d49dad824344b8d6103c96b4f81d19 : session.rar(Zubin WebShell) – efc2a705c858ed08a76d20a8f5a11b1b : shell.rar(Behinder WebShell) – 98e167e7c2999cbea30cc9342e944a4c : solr.sh – 575575f5b6f9c4f7149ed6d86fb16c0f : st.ps1 – 547c02a9b01194a0fcbfef79aaa52e38 : st2.txt – fd0fe2a3d154c412be6932e75a9a5ca1 : stt.txt C&C アドレス (다운로드 서버로 악용된 국내 웹 서버는 TIP 에서만 공개합니다.) – 107.180.100[.]247:88 – 15.235.22[.]212:5690 – 15.235.22[.]213:59240 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC z0Miner Exploits Korean Web Servers to Attack WebLogic Server 2024-02-28
AhnLab SEcurity intelligence Center (ASEC) has found numerous cases of threat actors attacking vulnerable Korean servers. This post introduces one of the recent case in which the threat actor ‘z0Miner’ attacked Korean WebLogic servers. z0Miner was first introduced by Tencent Security, a Chinese Internet service provider. https://s.tencent.com/research/report/1170.html (This link is only available in Chinese.) These threat actors have a history of distributing miners against vulnerable servers (Atlassian Confluence, Apache ActiveMQ, Log4J, etc.), and they were frequently mentioned in the ASEC blog. https://asec.ahnlab.com/en/36820/ https://asec.ahnlab.com/en/59904/ Additionally, this threat actor is well-known for using CVE-2020-14882 and CVE-2020-14883 vulnerabilities to attack WebLogic servers. On January 26, 2024, AhnLab found cases in which ‘z0Miner threat actors’ distributed malware to Korean WebLogic server system. The threat actor’s method to download malicious files differed by the OS system. They used powershell.exe and certutil.exe against Windows, and used the curl command against Linux. The cases found this time are vastly different from cases found overseas. 1) The threat actors dominated vulnerable Korean web servers, then used them as download servers. 2) Found evidences of using network tools such as FRP, NetCat, and AnyDesk. 1. Exploitation of Korean Web Servers As shown in the figure below, the threat actors dominated the normal web servers and used them as download servers to distribute malware such as miner, network tools, and scripts needed for attacks. Below are the Korean servers exploited by the attacker. Figure 1. Korean web servers exploited by the attacker As these exploited servers have their server information exposed (Apache-Coyote/1.1), it was possible to specify the exact versions. As for these poorly managed servers, Tomcat’s detailed version (Apache Tomcat/5.0.28) was also found. Figure 2. The web servers’ response header (Apache-Coyote/1.1) 2. Attacks Against Windows 2.1. WebShell The threat actor used WebLogic vulnerabilities such as CVE-2020-14882 to upload JSP WebShell. When WebShell is installed in a system, it can maintain persistence and control the system. Additionally, the threat actor used three WebShells: JSP File Browser, Shack2, and Behinder. They are likely using multiple types to upload a WebShell which is not detected by anti-malware products. Figure 3. Upload logs of WebShell (Source: Ahnlab Smart Defense (ASD) service) 1) JSP FILE BROWSER (ZUBIN WEBSHELL) Figure 4. WebShell used by the threat actor (1) The threat actor used the customized JSP File Browser v1.2 WebShell. The WebShell’s title is “Zubin – Welcome”, password is set to “zubin@666″, and the author’s name is set to the name of the person who customized it. Aside from such partial differences, the WebShell is largely indifferent from previous WebShells. Figure 5. Customized WebShell (Zubin) private String _password = “zubin@666”; 2) SHACK2 The WebShell is developed by Shack2, and the similar code can be found in Github . The version that the threat actors used is “V1.0-20141106″. ‘IronNet’, a foreign security provider, previously found a case where said WebShell was found in a distribution of z0Miner. https://www.ironnet.com/blog/continued-exploitation-of-cve-2021-26084 Figure 6. WebShell used by the threat actor (2) As IronNet stated, interesting information is that only 3 out of 9 features are implemented in the WebShell. Available features are printing computer information such as OS info, using file manager, and running command. Figure 7. 3 features of Shack2 WebShell 3) BEHINDER Figure 8. WebShell used by the threat actor (3) This WebShell is a well-known WebShell that has been frequently used since the past like GodZilla, China Chopper. The threat actor used a WebShell identical to that in the Github Source . 2.2. Fast Reverse Proxy (FRP) The threat actor used a proxy tool for Remote Desktop Protocol (RDP) communication. The tool used is Fast Reverse Proxy (FRP), and it was introduced multiple times previously in ASEC blog. Attackers Using FRP (Fast Reverse Proxy) to Attack Korean Companies Dalbit (m00nlight): Chinese Hacker Group’s APT Attack Campaign The z0Miner threat actor used both the default Frpc and the customized version. The default Frpc loads a settings file in the *.INI form, reads it, and attempts connection, but the customized Frpc can be run without needing to use an individual file because it has configuration data inside the program. The method of customizing and distributing Frpc was found in other threat group cases as well. BlueShell Used in APT Attacks Against Korean and Thai Targets Figure 9. Frpc (svcho.exe) download logs The following images show FRP servers and ports of threat actor that the ASEC team procured. Figure 10. Frpc configuration data 15.235.22[.]212:5690 15.235.22[.]213:59240 z0Miner threat actors’ Frpc server & port 2.3. Netcat Netcat is a utility tool that can read and write data upon network connection, and it was found in many breach cases in the past. Threat actor often use this tool because it provides remote shell feature which allows them to bypass the firewall and get control over the attack target’s system. This threat actor downloaded Netcat as userinit.exe and executed it as shown in the figure below. Figure 11. Reverse Shell command logs of Netcat The command is the Reverse Shell command that tells the malware to establish a connection with the given IP and port and upon connection, run the command prompt. Afterward, the threat actor can control the system via command prompts. 107.180.100[.]247:88 z0Miner threat actors’ Netcat Server & Port 2.4. AnyDesk In the case of the Apache ActiveMQ vulnerability (CVE-2023-46604), the threat actor installed Netcat and additionally installed AnyDesk. Apache ActiveMQ Vulnerability (CVE-2023-46604) Continuously Being Exploited in Attacks The threat actor used the download server (the compromised web server) to load the Powershell script, accessed the official website, and downloaded AnyDesk. Figure 12. Logs for the installation of AnyDesk through Powershell (wshell.exe) Figure 13. The AnyDesk-installing Powershell code found in a past case 2.5. Miner (XMRig) The versions of XMRig the threat actor is distributing are different per OS: 6.18.0 for Windows and 6.18.1 for Linux. Figure 14. XMRig’s version (6.18.0 for Windows) To maintain persistence, the threat actor registered WMI’s Event Filter and Consumer or Task Scheduler (schtasks) to read a Powershell script from a certain address of pastebin.com and execute it. The Powershell script, however, did not exist at the time of analysis. Figure 15. WMI’s Event Filter and Consumer for persistence Afterward, the malware begins mining as ‘javae.exe.’ Figure 16. The Powershell code that downloads the miner 3. Monero Wallet & Mining Pool Address The following is the config.json that the threat actor uses. Figure 17. The threat actor’s config.json (wallet address and full address) Mining Pool : pool.supportxmr[.]com:443 pool.supportxmr[.]com:80 Monero Wallet : 44VkCrG7DkmYCcrNQcBb1QfZ66si2xWqy7HuzgyWLXKy8x3pkzKWxs8TptTNjCS1b2Abm89MuXD1tg81KeRgfP2u3z6f2kP 47y69G6VzipF8ydhXxzRF69e8ys3XrDFjD5SqSM1T8yJGdfHqtRmMA9eQpq8vnWBibhmb35xLAyVpen53hfidLwHDP3NbAm z0Miner threat actor’s Monero Wallet & Mining Pool Address 5. Conclusion Threat actors are continuously attacking WebLogic servers that are vulnerable as they are not patched. As threat actors can steal information and install ransomware by taking control over the infected systems, users must check ports and servers that are not being managed properly. Furthermore, system administrators must check whether the WebLogic services are updated to the latest version, and if not, apply the latest patch to prevent attacks via known vulnerabilities. User must update V3 to the latest version to block malware infection in advance. File Detection – HackTool/Win.Netcat (2022.10.18.03) – Win-Trojan/Miner3.Exp (2022.06.24.02) – Downloader/Shell.Miner.SC197168 (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Data/JSON.Miner (2024.02.27.01) – Trojan/PowerShell.Miner (2024.02.27.01) – Trojan/Script.z0Miner.SC197169 (2024.02.27.01) – Trojan/Win.FRP (2024.02.27.01) – Trojan/Shell.Miner.SC197170 (2024.02.27.01) – Trojan/Shell.Miner.SC197171 (2024.02.27.01) – Trojan/Shell.Agent.SC197172 (2024.02.27.01) – Downloader/Shell.Miner.SC197173 (2024.02.27.01) – WebShell/JSP.Generic.S1866 (2024.02.27.00) – Linux/CoinMiner.Gen2 (2022.11.24.02) – WebShell/JSP.FileBrowser.SC197174 (2024.02.27.01) – WebShell/JSP.Generic.S1957 (2024.02.27.00) – Trojan/Shell.Agent.SC197175 (2024.02.27.03) – Downloader/PowerShell.Miner (2024.02.27.03) – CoinMiner/Shell.Generic.S2078 (2024.02.27.00) – Downloader/PowerShell.Miner.SC197176 (2024.02.27.01) MD5 085c68576c60ca0361b9778268b0b3b9 2a0d26b8b02bb2d17994d2a9a38d61db 4cd78b6cc1e3d3dde3e47852056f78ad 523613a7b9dfa398cbd5ebd2dd0f4f38 547c02a9b01194a0fcbfef79aaa52e38 URL http[:]//107[.]180[.]100[.]247[:]88/ http[:]//15[.]235[.]22[.]212[:]5690/ http[:]//15[.]235[.]22[.]213[:]59240/ Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC 脆弱性攻撃によりインストールされる Mimo コインマイナー with Mimus ランサムウェア 2024-01-19
AhnLab SEcurity intelligence Center(ASEC)は最近、Mimo と呼ばれるコインマイナーの攻撃者が様々な脆弱性を突く攻撃を行い、複数のマルウェアをインストールしている状況を確認した。Mimo は Hezb とも呼ばれ、2022年3月頃に Log4Shell の脆弱性攻撃を通じてコインマイナーマルウェアをインストールしている事例が初めて確認された。 これまでに認知されている攻撃事例はすべて、最終的に Mimo Miner Bot という XMRig コインマイナーをインストールする攻撃であった。しかし、関連する攻撃事例を通じて同じ攻撃者が Mimo マイナー以外にも Mimus ランサムウェア、Proxyware、リバースシェルマルウェアをインストールする事例も同様に確認された。ここでは、Mimo の攻撃者が攻撃に使用した様々なマルウェアを取り上げる。 1. 脆弱性を利用した攻撃の状況 初めて確認された Mimo 攻撃者の活動は2022年3月頃に Log4Shell の脆弱性(CVE-2021-44228)を突いた攻撃であり、コインマイナーをインストールしたものであった [1] ( 外部サイト、英語にて提供 ) 。2022年5月には WSO2 のリモートコード実行の脆弱性である CVE-2022-29464 を [2] ( 外部サイト、英語にて提供 ) 、2022年6月にはアトラシアン・コンフルエンス(Atlassian Confluence)サーバーの脆弱性である CVE-2022-26134 を利用して攻撃を行った事例が公開された。 [3] ( 外部サイト、英語にて提供 ) そして2023年5月には、印刷管理プログラムである PaperCut のリモートコード実行の脆弱性 CVE-2023–27350 を悪用した攻撃事例が [4] ( 外部サイト、英語にて提供 ) 、直近では Apache ActiveMQ の脆弱性(CVE-2023-46604)を利用した攻撃の状況も確認された。 ASEC では、2022年頃に 8220 Gang、z0Miner だけでなく Mimo (Hezb)攻撃者が脆弱なアトラシアン・コンフルエンス(Atlassian Confluence)サーバーを攻撃して XMRig コインマイナーをインストールした事例を解析して公開した。 [5] この攻撃に利用された脆弱性 CVE-2022-26134 は、パッチが適用されていない脆弱なアトラシアン・コンフルエンス(Atlassian Confluence)サーバーのリモートコード実行の脆弱性である。 図1. CVE-2022-26134 脆弱性によってインストールされた Mimo コインマイナー Atlassian 社の Confluence (コンフルエンス)は、代表的な協業型プラットフォームで、世界中の様々な企業が導入している。Confluence は Web ベースのプラットフォームで、プロジェクトの管理およびコラボレーションのようなサービスを、実質的に Confluence サーバー(もしくは Confluence データセンター)を通して提供している。多くの企業で導入されている有名なソリューションであるため、以前から継続的に脆弱な Confluence サーバーおよびデータセンターをターゲットにした脆弱性が発見されており、パッチが適用されていないシステムが攻撃対象になっている。 Mimo 攻撃者が Log4Shell(CVE-2021-44228)脆弱性を悪用してコインマイナーをインストールする事例も、最近まで継続的に確認されている。Log4Shell(CVE-2021-44228)は Java ベースのロギングユーティリティである Log4j の脆弱性であり、リモート先の Java オブジェクトのアドレスをログメッセージに含ませ Log4j を使用するサーバーに転送すると、サーバーから Java オブジェクトを実行できるリモートコード実行の脆弱性である。 攻撃対象のシステムは VMware Horizon 製品がインストールされたシステムであり、企業でのリモートワークソリューションとクラウドインフラ運用のために使用する仮想化デスクトップソリューションである VMware Horizon のパッチを現在までに適用しておらず、内部で使用している Log4j が攻撃を受けているものと推定される。 図2. Log4Shell 脆弱性によってインストールされた Mimo コインマイナー このほかにも、最近では2023年11月に公開された Apache ActiveMQ 脆弱性(CVE-2023-46604)攻撃も確認された。CVE-2023-46604 はオープンソースのメッセージおよび統合パターンサーバーである Apache ActiveMQ サーバーのリモートコード実行に関する脆弱性である。パッチが適用されていない Apache ActiveMQ サーバーが外部に公開されている場合、攻撃者はリモートで悪意を持ったコマンドを実行し、当該システムを掌握できる。 脆弱性攻撃は、classpath にあるクラスをインスタンス化するように OpenWire プロトコルでシリアライズされたクラスタイプを操作する方式で行われる。攻撃者が細工されたパケットを送信すると、脆弱なサーバーではパケットに含まれた経路、すなわち URL を参照して、クラス XML の設定ファイルをロードする。 例えば、脆弱な Apache ActiveMQ の Java プロセスは伝達された細工パケットを参考して「hxxp://102.130.112[.]157/poc-win.xml」の経路に存在する XML 設定ファイルをロードする。以降はロードした XML 設定ファイルを参照して指定したコマンドを実行するが、次の設定ファイルには Mimo マイナーをダウンロードする PowerShell コマンドが設定されている。 図3. Mimo マイナーの攻撃に使用される Apache ActiveMQ 脆弱性設定ファイル 2. XMRig コインマイナーの攻撃事例 脆弱性攻撃によって実行された PowerShell は、Batch ファイル形式のマルウェアをダウンロードして実行するが、最近では「lnl.bat」または「kill.bat」という名前が使用されている。この Batch マルウェアは Windows Defender を無効化し、他のコインマイナーを削除したあと、最終的に「ln.bat」または「mad.bat」という Batch マルウェアを %TEMP% パスにダウンロードして実行する役割を担う。 図4. 脆弱性攻撃によってインストールされる Batch マルウェア 「ln.bat」または「mad.bat」という Batch ファイル形式のマルウェアは、さらに「dom.zip」または「dom-6.zip」という圧縮ファイルをダウンロードして 7z ツールを利用して解凍する。この圧縮ファイルにはモネロコインの採掘を実行する XMRig コインマイナー「dom.exe」と NSSM ツール「dsm.exe」、設定ファイルが格納されている。Batch スクリプトは、その後 NSSM を利用して XMRig をサービスに登録する。脆弱性を突いた攻撃には様々な手法が使われているが、コインマイナーをインストールするルーティンは相対的に単純なものであり、XMRig や NSSM ツールもそのまま使用される。 図5. XMRig コインマイナーをインストールする Batch マルウェア 図6. Mimo 攻撃者が使用する設定ファイル ウォレットアドレス – 1 : 43DTEF92be6XcPj5Z7U96g4oGeebUxkFq9wyHcNTe1otM2hUrfvdswGdLHxabCSTio7apowzJJVwBZw6vVTu7NoNCNAMoZ4 ウォレットアドレス – 2 : 46HmQz11t8uN84P8xgThrQXSYm434VC7hhNR8be4QrGtM1Wa4cDH2GkJ2NNXZ6Dr4bYg6phNjHKYJ1QfpZRBFYW5V6qnRJN 3. Mimus ランサムウェア Mimo 攻撃者の攻撃事例は、最近でも XMRig コインマイナー、すなわち Mimo マイナーをインストールするものがほとんどである。しかし、2023年にはランサムウェアによる攻撃事例も確認されている。ランサムウェアは2023年頃に Mimo マイナーを配布したアドレスと同じところから、同じタイミングに確認された。 図7. Mimo マイナーと Mimus ランサムウェアのダウンロードアドレス この Batch マルウェアによってインストールされたランサムウェアは「mauri870」という開発者が研究目的で開発し、Github に公開したソースコードをベースに作られた。 [6] (外部サイト、英語にて提供) 当該ソースコードは別の攻撃者たちによって頻繁に使用されているのか、MauriCrypt として検知されているという内容も説明に記載されている。ここでは、当該オープンソースランサムウェアを MauriCrypt と呼称する。 図8. Github に公開されているランサムウェアのソースコード MauriCrypt は Go 言語で開発されており、攻撃者はこれを利用してランサムウェアを制作したあと、Mimus ランサムウェアと命名した。Mimus ランサムウェアは MauriCrypt のソースコードと比較した際にこれといった違いが存在せず、攻撃者の C&C アドレス、ウォレットアドレス、電子メールアドレスのような設定データのみが変更されていた。 概要 説明 暗号化アルゴリズム AES-256 CTR 暗号化拡張子 .encrypted ランサムノート名 READ_TO_DECRYPT.html, FILES_ENCRYPTED.html 暗号化除外パス “ProgramData”, “Windows”, “bootmgr”, “$WINDOWS.~BT”, “Windows.old”, “Temp”, “tmp”, “Program Files”, “Program Files (x86)”, “AppData”, “$Recycle.Bin” 暗号化対象の拡張子 “doc”, “docx”, “msg”, “odt”, “wpd”, “wps”, “txt”, “csv”, “pps”, “ppt”, “pptx”, “aif”, “iif”, “m3u”, “m4a”, “mid”, “mp3”, “mpa”, “wav”, “wma”, “3gp”, “3g2”, “avi”, “flv”, “m4v”, “mov”, “mp4”, “mpg”, “vob”, “wmv”, “3dm”, “3ds”, “max”, “obj”, “blend”, “bmp”, “gif”, “png”, “jpeg”, “jpg”, “psd”, “tif”, “gif”, “ico”, “ai”, “eps”, “ps”, “svg”, “pdf”, “indd”, “pct”, “epub”, “xls”, “xlr”, “xlsx”, “accdb”, “sqlite”, “dbf”, “mdb”, “pdb”, “sql”, “db”, “dem”, “gam”, “nes”, “rom”, “sav”, “bkp”, “bak”, “tmp”, “cfg”, “conf”, “ini”, “prf”, “html”, “php”, “js”, “c”, “cc”, “py”, “lua”, “go”, “java” C&C アドレス hxxp://windows.n1tro[.]cyou:4544 表1. Mimus ランサムウェアの概要 MauriCrypt は感染システムの「id」と暗号化に使われる AES キー値「enckey」をランダムに生成したあと C&C サーバーに接続して伝達する。参考に、Mimus ランサムウェアは無効化されているが、MauriCrypt では C&C サーバーとの通信に Tor をサポートする機能も含まれている。Tor ブラウザをダウンロードして %TEMP% パスにインストールしたあと、これを実行して Tor ブラウザを経由し C&C サーバーに接続する方式である。 図9. Tor ダウンロードアドレス その後、例外パスを除く他のパスで指定した拡張子に該当するファイルを暗号化する。暗号化されたファイルは、名前が Base64 でエンコードされ、拡張子が「.encrypted」に変更される。ファイルの暗号化が完了すると、デスクトップに2つのランサムノートが生成される。ランサムノート「FILES_ENCRYPTED.html」は暗号化されたファイルのリストが保存されており、ランサムノート「READ_TO_DECRYPT.html」に連絡先のアドレスとビットコインのウォレットアドレスが含まれている。 図10. デスクトップに生成されたランサムノート 攻撃者のメールアドレス :arbeyceo@proton[.]me 攻撃者のビットコインのウォレットアドレス : 15Jz1fmreZx9wG93DKjTXMhuLpPpCgvEQk 復号化ツール販売サイト :hxxps://satoshidisk[.]com/pay/CIIRg6 ランサムノートに明記された復号化ツール販売サイトに接続すると、復号化ツールを0.01050000 BTC で販売する記事を確認できる。Mimus ランサムウェアの攻撃との直接的な関係は不明だが、ビットコインのウォレットアドレスの記録によれば、多数の取引履歴が確認できる。 図11. 復号化ツール販売サイト 図12. 攻撃者のビットコインのウォレットアドレスの取引履歴 4. Proxyware 配布方式およびインストールするスクリプトは確認されなかったが、Mimo マイナーを配布した時点に、同じアドレスから Proxyware とリバースシェルマルウェアがダウンロードされた履歴も存在する。すなわち、攻撃者は収益を創出するためにランサムウェア攻撃およびコインマイニング以外にも、Proxyware をインストールする Proxyjacking 攻撃を同時に使用したものと推定される。 Proxyware とは、インストールされたシステムにおいて現在使用可能なインターネット帯域幅の一部を外部に共有するプログラムであり、一般的にこのプログラムをインストールしているユーザーは帯域幅を提供する代わりに一定の金額を受け取っている。攻撃者がユーザーの同意を得ずに感染システムに Proxyware を密かにインストールすると、感染したシステムは非自発的にネットワーク帯域幅を奪われることになり、収益は攻撃者に帰することとなる。これは Cryptojacking 攻撃と類似しているが、Proxyware の代わりにコインマイナーをインストールして感染システムのリソースで暗号通貨を採掘する点が異なっている。 図13. Mimo マイナー関連アドレスからダウンロードされた Proxyware 5. NHAS リバースシェル このほかにも、Mimo マイナーのダウンロードアドレスと同じアドレスを C&C サーバーとして使用するリバースシェルマルウェアも確認された。攻撃に使われたリバースシェルは「NHAS」が開発し、Github に公開されている reverse_ssh というツールであり、Go 言語で開発されている。C&C サーバーとの通信に SSH プロトコルを使用することが特徴である。 [7] (外部サイト、英語にて提供) 図14. Reverse Shell の Github ページ NHAS リバースシェルは、基本的には名前のようにリバースシェルであるため、他のバックドアおよび RAT タイプと比較してコマンドの実行やファイル操作、ポートフォワーディングのような基本的なコマンドのみを提供する。ただし、これがインストールされたということは、攻撃者が単純に感染システムにコインマイニングや Proxyware、ランサムウェアをインストールして収益を得るだけでなく、さらなる操作のために感染システムの操作権限を奪うこともあるということを意味する。 6. 結論 2022年初頭に初めて確認された Mimo マイナーの攻撃者は、最近でも Log4Shell(CVE-2021-44228)、WSO2 のリモートコード実行の脆弱性である CVE-2022-29464、アトラシアン・コンフルエンス(Atlassian Confluence)サーバーの脆弱性である CVE-2022-26134、印刷管理プログラムである PaperCut のリモートコード実行の脆弱性 CVE-2023–27350、そして Apache ActiveMQ 脆弱性(CVE-2023-46604)等の脆弱性を突いた攻撃によってマルウェアをインストールしている。 これらの脆弱性はすべてパッチが公開されているが、攻撃者は適切に管理されていないシステムを対象とするため、攻撃は現在でも続いている。システム管理者は、使用しているサービスが脆弱なバージョンであるかをチェックし、最新バージョンにパッチを適用して、既知の脆弱性による攻撃を防がなければならない。 また、外部に開放されていてアクセスが可能なサーバーに関してはファイアウォールのようなセキュリティ製品を利用し、外部の攻撃者からのアクセスを統制する必要がある。最後に、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前に遮断できるように注意を払わなければならない。 ファイル検知 – Downloader/BAT.CoinMiner.SC195961 (2024.01.11.02) – Downloader/BAT.CoinMiner.SC195959 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195960 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195962 (2024.01.11.02) – Unwanted/Win32.NSSM.R353938 (2020.10.27.00) – Trojan/Win32.RL_Miner.R363967 (2021.01.23.01) – Win-Trojan/Miner3.Exp (2020.01.23.00) – Data/JSON.Miner (2022.05.11.03) – Data/JSON.Miner (2021.12.12.00) – Downloader/BAT.CoinMiner.SC195966 (2024.01.11.02) – Downloader/BAT.CoinMiner.SC195964 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195965 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195963 (2024.01.11.02) – Downloader/BAT.Agent (2024.01.11.02) – Malware/Win32.Generic.C4280792 (2020.12.28.01) – Unwanted/Win.Peer2Profit.C5572495 (2024.01.11.02) – Backdoor/Win.ReverseShell.C5572514 (2024.01.11.03) – Downloader/XML.Generic (2024.01.12.00) 振る舞い検知 – Execution/MDP.Powershell.M1185 – Connection/MDP.Event.M2367 IoC MD5 – 618680a68eb6ac79f530a0291ad29d9f : Downloader (lnl.bat) – 5e0f18dfe16f274d34716d011e0a3f39 : Downloader (kill.bat) – 958dd3e767b32a28c199d59ce01ffb6c : CoinMiner Downloader (ln.bat) – c25972604121f4c6a7f8025e4e575c7c : CoinMiner (mad.bat) – 1136efb1a46d1f2d508162387f30dc4d : NSSM (dsm.exe) – 7ef97450e84211f9f35d45e1e6ae1481 : XMRig (dom.exe) – 3edcde37dcecb1b5a70b727ea36521de : XMRig (dom.exe) – bfa626e053028f9adbfaceb5d56086c3 : Config (config.json) – 61def7b3b98458a40fffa42a19ddf258 : Config (config.json) – 78c0c7648854d61da3bfba08dc11ffd6 : Downloader (kill.bat) – a3ffb336aee9f01275c92ac529c8f70e : Downloader (me1.bat) – 52cef8752f2c0f9a5383d2aecbdccc6f : CoinMiner (me.bat) – 5d32f0eee7adf20e0766d5481a1953a5 : CoinMiner (me2.bat) – b206cf6652a2d8279e7ca32f3127aeed : Downloader (prx.bat) – dd6931fda2df843249a5df40b8808387 : Mimus ランサムウェア (lol.exe) – a2cf452cb27ff2970e3248a9793de326 : Peer2Profit Installer (Peer2Profit-Setup.exe) – 77c2cb38dbcc944c010deda3024bb804 : Reverse Shell (me) – c9450a531ea62c6b9f7db0d5c7cae5a5 : Exploit (poc-win.xml) C&C – hxxp://windows.n1tro[.]cyou:4544 : Mimus ランサムウェア – 102.130.112[.]157:3232 : NHAS Reverse Shell Download アドレス – hxxp://102.130.112[.]157/lnl.bat : Downloader – hxxp://102.130.112[.]157/kill.bat : Downloader – hxxp://102.130.112[.]157/ln.bat : CoinMiner Downloader – hxxp://102.130.112[.]157/mad.bat : CoinMiner Downloader – hxxp://102.130.112[.]157/dom.zip : CoinMiner / NSSM – hxxp://102.130.112[.]157/dom-6.zip : CoinMiner / NSSM – hxxp://102.130.112[.]157/7za.exe : 7zip – hxxp://102.130.112[.]157/poc-win.xml : Exploit – hxxp://50.19.48[.]59:82/kill.bat : Downloader – hxxp://50.19.48[.]59:82/me1.bat : Downloader – hxxp://50.19.48[.]59:82/me.bat : CoinMiner – hxxp://50.19.48[.]59:82/me2.bat : CoinMiner – hxxp://50.19.48[.]59:82/prx.bat : Downloader – hxxp://50.19.48[.]59:82/lol.exe : Mimus Ransomware – hxxp://50.19.48[.]59:82/mazar.zip : Peer2Profit Installer 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC Mimo CoinMiner and Mimus Ransomware Installed via Vulnerability Attacks 2024-01-12
AhnLab SEcurity intelligence Center (ASEC) recently observed circumstances of a CoinMiner threat actor called Mimo exploiting various vulnerabilities to install malware. Mimo, also dubbed Hezb, was first found when they installed CoinMiners through a Log4Shell vulnerability exploitation in March 2022. Up until now, all of the attack cases involved the installation of XMRig CoinMiner called Mimo Miner Bot in the final stage. However, there were other pertinent cases where the same threat actor installed Mimus ransomware, proxyware, and reverse shell malware besides the Mimo miner. This article will cover the various malware the Mimo threat actor used in the attacks. 1. Vulnerability Exploitation The first known activity of the Mimo threat actor was in March 2022, when CoinMiner was installed through the exploitation of the Log4Shell vulnerability (CVE-2021-44228) [1] . The threat actor exploited WSO2’s remote code execution vulnerability (CVE-2022-29464) in May 2022 [2] and the Atlassian Confluence server’s vulnerability (CVE-2022-26134) in June 2022 [3] . In May 2023, an attack case exploiting the printer management program PaperCut’s remote code execution vulnerability (CVE-2023–27350) was observed [4] , as well as the exploitation of the Apache ActiveMQ vulnerability (CVE-2023-46604) recently. In 2022, ASEC analyzed and revealed cases of 8220 Gang, z0Miner, and also the Mimo (Hezb) threat actor exploiting the vulnerable Atlassian Confluence server to install the XMRig CoinMiner [5] . The vulnerability used in this particular attack (CVE-2022-26134) is the remote code execution vulnerability of unpatched Atlassian Confluence servers. Figure 1. Mimo CoinMiner installed through the CVE-2022-26134 vulnerability Atlassian’s Confluence is a major collaboration platform used by many companies across the globe. Being a web-based platform, services such as managing projects and collaboration are mainly provided by Confluence Servers (or Confluence Data Centers). As it is a solution used by many companies, many vulnerabilities targeting vulnerable Confluence Servers and Data Centers have been continuously discovered, with attackers targeting systems that are not patched. Cases of the Mimo threat actor exploiting the Log4Shell (CVE-2021-44228) vulnerability to install CoinMiners are still being found. Log4Shell (CVE-2021-44228) is a remote code execution vulnerability in the Java-based logging utility Log4j. It allows remote execution of Java objects in servers that use Log4j by including the remote Java object address in the log message and sending it. Systems installed with VMware Horizon were the targets. VMware Horizon is a virtual desktop solution for remote working and operating cloud infrastructures. It seems that such systems and the Log4J in use are being attacked because VMware Horizon has not been patched. Figure 2. Mimo CoinMiner installed through the Log4Shell vulnerability Recently, there was evidence of the exploitation of the Apache ActiveMQ vulnerability (CVE-2023-46604) that was revealed in November 2023. CVE-2023-46604 is a remote code execution vulnerability in the Apache ActiveMQ server, an open-source messaging and integrated pattern server. If an unpatched Apache ActiveMQ server is exposed externally, the threat actor can execute malicious commands remotely and dominate the target system. Vulnerability attacks are carried out by making an instance out of the class in classpath by manipulating the serialized class type in the OpenWire protocol. When the threat actor sends the modified packet, the vulnerable server references the path (URL) in the packet to load the class XML configuration file. For example, a vulnerable Apache ActiveMQ’s Java process references the modified packet received and loads the XML configuration located in the “hxxp://102.130.112[.]157/poc-win.xml” path. Afterward, it references the loaded XML configuration file to run the specified command. The configuration file has a Powershell command that downloads the Mimo miner. Figure 3. Apache ActiveMQ vulnerability configuration file used for the Mimo miner attack 2. XMRig CoinMiner Attack Cases The Powershell executed through the vulnerability attacks is executed by downloading the Batch malware. Recently, the names “lnl.bat” or “kill.bat” are being used. The Batch malware disables Windows Defender and removes other CoinMiners before ultimately downloading and running the Batch malware called “ln.bat” or “mad.bat” in the %TEMP% path. Figure 4. Batch malware installed through vulnerability attacks The “ln.bat” or “mad.bat” Batch malware also downloads the “dom.zip” or “dom-6.zip” compressed file and decompresses it using the 7z tool. The decompressed file has the XMRig CoinMiner “dom.exe” in charge of mining Monero coins, the NSSM tool “dsm.exe”, and the configuration file saved inside. The Batch script uses the NSSM afterwards to register XMRig as a service. Although various vulnerability attacks are being used, the routine used to install CoinMiners is fairly simple and XMRig and NSSM tools are used without any particular changes. Figure 5. Batch malware installing the XMRig CoinMiner Figure 6. Configuration file used by the Mimo threat actor Wallet Address 1 : 43DTEF92be6XcPj5Z7U96g4oGeebUxkFq9wyHcNTe1otM2hUrfvdswGdLHxabCSTio7apowzJJVwBZw6vVTu7NoNCNAMoZ4 Wallet Address 2 : 46HmQz11t8uN84P8xgThrQXSYm434VC7hhNR8be4QrGtM1Wa4cDH2GkJ2NNXZ6Dr4bYg6phNjHKYJ1QfpZRBFYW5V6qnRJN 3. Mimus Ransomware The majority of the Mimo threat actor’s attacks have been cases that use XMRig CoinMiner, in other words, the Mimo miner. However, ransomware attack cases were also observed in 2023. The ransomware was found at the same time and place as the address where the Mimo miner was distributed in 2023. Figure 7. The download address of Mimo miner and Mimus ransomware Ransomware that was installed with this Batch malware was made based on the source code revealed on GitHub by the developer “mauri870” who developed the codes for research purposes [6] . This source code also includes an explanation that MauriCrypt is detecting whether it is frequently being used by threat actors. In this article, the open-source ransomware is called MauriCrypt. Figure 8. The ransomware source code revealed on GitHub MauriCrypt was developed in Go, and the threat actor used this to develop ransomware and named it Mimus ransomware. Mimus ransomware does not have any particular differences when compared to MauriCrypt’s source code. Only the threat actor’s C&C address, wallet address, email address, and other configuration data were changed. Overview Description Encryption algorithm AES-256 CTR Encryption extension .encrypted Ransom note name READ_TO_DECRYPT.html, FILES_ENCRYPTED.html Paths excluded from encryption “ProgramData”, “Windows”, “bootmgr”, “$WINDOWS.~BT”, “Windows.old”, “Temp”, “tmp”, “Program Files”, “Program Files (x86)”, “AppData”, “$Recycle.Bin” Encrypted extensions “doc”, “docx”, “msg”, “odt”, “wpd”, “wps”, “txt”, “csv”, “pps”, “ppt”, “pptx”, “aif”, “iif”, “m3u”, “m4a”, “mid”, “mp3”, “mpa”, “wav”, “wma”, “3gp”, “3g2”, “avi”, “flv”, “m4v”, “mov”, “mp4”, “mpg”, “vob”, “wmv”, “3dm”, “3ds”, “max”, “obj”, “blend”, “bmp”, “gif”, “png”, “jpeg”, “jpg”, “psd”, “tif”, “gif”, “ico”, “ai”, “eps”, “ps”, “svg”, “pdf”, “indd”, “pct”, “epub”, “xls”, “xlr”, “xlsx”, “accdb”, “sqlite”, “dbf”, “mdb”, “pdb”, “sql”, “db”, “dem”, “gam”, “nes”, “rom”, “sav”, “bkp”, “bak”, “tmp”, “cfg”, “conf”, “ini”, “prf”, “html”, “php”, “js”, “c”, “cc”, “py”, “lua”, “go”, “java” C&C URL hxxp://windows.n1tro[.]cyou:4544 Table 1. Overview of the Mimus ransomware MauriCrypt randomly generates the infected system’s “id” and Advanced Encryption Standard (AES) key value “enckey”, then connects with the C&C server to send them. Mimus ransomware may be disabled, but MauriCrypt has a feature that supports Tor in communications with the C&C server. This works by downloading and installing Tor Browser to the %TEMP% path before executing it to connect to the C&C server via the browser. Figure 9. Download URL for Tor Afterward, files with the specified extensions in all paths other than the exceptions are encrypted. Encrypted files have their names encoded in Base64 and their extensions changed to “.encrypted”. When the file encryption is complete, two ransom notes are created on the desktop. Ransom note “FILES_ENCRYPTED.html” has the list of encrypted files saved, and ransom note “READ_TO_DECRYPT.html” includes the address for contact along with a Bitcoin wallet address. Figure 10. Ransom notes generated on the desktop Threat actor’s email address : arbeyceo@proton[.]me Threat actor’s Bitcoin wallet address : 15Jz1fmreZx9wG93DKjTXMhuLpPpCgvEQk Website to purchase decryption tool : hxxps://satoshidisk[.]com/pay/CIIRg6 Upon visiting the website that sells the decryption tool, a post can be found where the decryption tool is sold for 0.01050000 BTC. Although we can’t know if they are directly connected to the Mimus ransomware attack, the Bitcoin wallet’s URL shows a record of multiple transactions. Figure 11. Website that sells the decryption tool 4. Proxyware Although the distribution method or the installed script has not been confirmed, there are records showing proxyware and reverse shell malware being downloaded from the same address around the time when the Mimo miner was distributed. In other words, it is speculated that the threat actor used proxyjacking attacks by installing proxyware in addition to using ransomware attacks and coin mining to generate profits. Proxyware is a program that shares a part of the Internet bandwidth that is currently available on a system to others. Users who install the program are usually paid with a certain amount of cash in exchange for providing the bandwidth. If the threat actor secretly installs proxyware to the infected system without the user’s consent, the infected system involuntarily has its bandwidth stolen and the profit is redirected to the threat actor. This is similar to cryptojacking attacks, but CoinMiners are installed instead of proxyware to mine cryptocurrencies with the infected system’s resources. Figure 13. Proxyware downloaded from an address related to the Mimo miner 5. NHAS Reverse Shell In addition, reverse shell malware that uses the same address as the Mimo miner’s download address as the C&C server was found. The reverse shell used in the attack is a tool named reverse_ssh developed by “NHAS” using Go. It is available on GitHub and uses the SSH protocol to communicate with the C&C server [7] . Figure 14. The reverse shell’s GitHub page The NHAS reverse shell is a reverse shell as stated in its name. Compared to other backdoor and RAT types, it only provides basic commands such as executing commands, file handling, and port forwarding. However, having this installed means the threat actor can generate profit simply by installing CoinMiners, proxyware, or ransomware on the infected system. In addition, control over the infected system can be stolen for additional tasks. 6. Conclusion The Mimo miner threat actor who was first discovered in early 2022 is still installing malware by exploiting vulnerabilities such as Log4Shell (CVE-2021-44228), WSO2’s remote code execution vulnerability (CVE-2022-29464), Atlassian Confluence server’s vulnerability (CVE-2022-26134), printer management program PaperCut’s remote code execution vulnerability (CVE-2023–27350), and Apache ActiveMQ’s vulnerability (CVE-2023-46604). Patches for all of these vulnerabilities have been released already, but because the threat actor is targeting poorly managed systems, attacks are still continuing. System administrators must check if the services in use are vulnerable versions and apply the latest patches to prevent known vulnerabilities from being exploited. They should also use security programs such as firewalls for servers accessible from outside to restrict access by attackers. Finally, caution must be practiced by updating V3 to the latest version to block malware infection in advance. File Detection – Downloader/BAT.CoinMiner.SC195961 (2024.01.11.02) – Downloader/BAT.CoinMiner.SC195959 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195960 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195962 (2024.01.11.02) – Unwanted/Win32.NSSM.R353938 (2020.10.27.00) – Trojan/Win32.RL_Miner.R363967 (2021.01.23.01) – Win-Trojan/Miner3.Exp (2020.01.23.00) – Data/JSON.Miner (2022.05.11.03) – Data/JSON.Miner (2021.12.12.00) – Downloader/BAT.CoinMiner.SC195966 (2024.01.11.02) – Downloader/BAT.CoinMiner.SC195964 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195965 (2024.01.11.02) – CoinMiner/BAT.Xmrig.SC195963 (2024.01.11.02) – Downloader/BAT.Agent (2024.01.11.02) – Malware/Win32.Generic.C4280792 (2020.12.28.01) – Unwanted/Win.Peer2Profit.C5572495 (2024.01.11.02) – Backdoor/Win.ReverseShell.C5572514 (2024.01.11.03) – Downloader/XML.Generic (2024.01.12.00) Behavior Detection – Execution/MDP.Powershell.M1185 – Connection/MDP.Event.M2367 MD5 1136efb1a46d1f2d508162387f30dc4d 3edcde37dcecb1b5a70b727ea36521de 52cef8752f2c0f9a5383d2aecbdccc6f 5d32f0eee7adf20e0766d5481a1953a5 5e0f18dfe16f274d34716d011e0a3f39 URL http[:]//102[.]130[.]112[.]157/7za[.]exe http[:]//102[.]130[.]112[.]157/dom-6[.]zip http[:]//102[.]130[.]112[.]157/dom[.]zip http[:]//102[.]130[.]112[.]157/kill[.]bat http[:]//102[.]130[.]112[.]157/ln[.]bat Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC 継続的に攻撃対象となっている Apache ActiveMQ 脆弱性(CVE-2023-46604) 2023-12-19
AhnLab Security Emergency response Center(ASEC)は2023年11月に「Andariel グループによる Apache ActiveMQ 脆弱性(CVE-2023-46604)を悪用した攻撃の状況」 [1] ブログの記事を通して Andariel 脅威グループが CVE-2023-46604 脆弱性を攻撃してマルウェアをインストールした事例を公開したことがある。本記事では Andariel グループの攻撃事例以外にも HelloKitty マルウェア、Cobalt Strike、Metasploit の Meterpreter の攻撃事例も挙げている。 Apache ActiveMQ 脆弱性(CVE-2023-46604)は様々な攻撃者によって使用されている。最近では Ladon、NetCat、AnyDesk そして z0Miner をインストールする攻撃が追加で確認され、ここではそれぞれについて整理する。 1. Apache ActiveMQ 脆弱性(CVE-2023-46604)攻撃 CVE-2023-46604 はオープンソースメッセージ及び統合パターンサーバーである Apache ActiveMQ サーバーのリモートコード実行の脆弱性である。もしパッチが適用されていない Apache ActiveMQ サーバーが外部に露出されている場合、攻撃者はリモートで悪意のあるコマンドを実行して当該システムを掌握することができる。 AhnLab TIP: Apache ActiveMQ セキュリティアップデートの推奨(CVE-2023-46604) [2] (韓国語のみ提供) 脆弱性を利用した攻撃は classpath にあるクラスをインスタンス化するよう OpenWire プロトコルから直列化されたクラスタイプを操作する方式で行なわれる。もし攻撃者が操作されたパケットを送信する場合、脆弱なサーバーではパケットに含まれているパス、つまり URL を参照してクラス XML 設定ファイルをロードする。 例えば、脆弱な Apache ActiveMQ の Java プロセスは渡されたパケットを参照して「hxxp://27.191.193[.]193:555/poc2.xml」パスにある XML 設定ファイルをロードするようになる。その後、ロードした XML 設定ファイルを参照して指定したコマンドを実行する。以下の事例は CMD 及び PowerShell を使って Ladon をダウンロードし、リバースシェルによりコマンドを実行する内容が設定されている。 図1. Ladon をインストールしてリバースシェルを実行するコマンドが含まれた設定ファイル 2. Ladon Ladon は以下の GitHub ページでも分かるように中国語を基盤とした攻撃者が主に使用するツールの一つである。 [3] Ladon は攻撃の過程で必要な様々な機能をサポートする。代表的にはスキャニング、権限昇格、アカウント情報奪取、リバースシェルのように様々な機能がある。 図2. Ladon の GitHub ページ 製作者は Ladon を持続的にアップデートしており、相対的に最新の脆弱性をとも言える CVE-2023-46604 脆弱性へのスキャニングもサポートしている。 図3. Ladon がサポートする CVE-2023-46604 の脆弱性スキャニング機能 攻撃者が Ladon を利用して脆弱性をスキャニングしたのかは分からないが、脆弱したバージョンの Apache ActiveMQ サービスが動作することを確認し、次の PowerShell コマンドで Ladon をダウンロードしてコマンドを実行した。ReverseTCP のコマンドはリバースシェルを実行することを意味し、nc すなわち Netcat を利用してリバースシェルを実行する。 図4. 脆弱性攻撃によって実行されるリバースシェル 3. AnyDesk & Netcat 上記の攻撃事例では、Lodon がサポートする Netcat コマンドが使用されたが、Netcat は別の攻撃事例でも確認されている。Netcat は TCP / UDP プロトコルであり、ネットワーク上で特定の対象とデータを送受信するユーティリティである。Linux だけでなく Window 環境もサポートしている点が特徴だ。ネットワークテスト目的で様々な機能を提供しているため、ネットワーク管理者もよく使用するツールであるが、攻撃者によって悪用されるツールでもある。 攻撃者は Netcat を実行しながら送信するコマンドを利用してリバースシェルやバインドシェルとして使用でき、実際に脆弱なウェブサーバーや MS-SQL サーバーを対象にする様々な攻撃で使用された事例が存在する。 [4] [5] 今回確認された攻撃では、外部から Netcat をダウンロードしたあと、リバースシェルコマンドで感染システムのシェルを獲得した。 図5. 脆弱性攻撃によってインストール及び実行される Netcat リバースシェルから感染システムを操作できるが、コマンドライン環境でコマンドを下すのは限界がある。一般的に攻撃者は感染システムを掌握したあと、リモートで画面を操作する目的で VNC や RDP そして遠隔操作ツールを追加でインストールする傾向がある。特に AnyDesk や NetSupport、Chrome のリモートデスクトップのような遠隔操作ツールは、最近のセキュリティ製品を回避することを目的によく使用されている。 [6] 今回確認された攻撃で攻撃者は Netcat をインストールしたあと、追加で AnyDesk をインストールした。上記のプロセスでインストールした Netcat を利用して AnyDesk をインストールし、正常なホームページのダウンロード URL からインストールファイルをダウンロードした。 図6. Netcat を利用した AnyDesk インストール 攻撃者は AnyDesk を Silent モードでインストールしたあと、「–set-password」引数でパスワードを変更し、実行した。 図7. 設定したパスワードで実行される AnyDesk これらは過去 MS-SQL サーバーを対象とした攻撃事例から確認された事例とほぼ同じ方式である。 図8. 過去の攻撃事例で確認された AnyDesk のインストール PowerShell ルーティン その後、攻撃者は感染システムにアクセスして実行するとき、「–set-password」引数で渡したパスワードを入力し、リモートで感染システムを操作できることとなる。 図9. AnyDesk をインストールした遠隔システムにログインするプロセス 4. z0Miner 最近では、他にも XMRig コインマイナーをインストールする攻撃キャンペーンも確認されている。XML 設定ファイルの名前は「paste.xml」であり、以下のように CMD を利用して PowerShell コマンドを実行するデータが含まれている。「shella」は PowerShell ファイルとして推定され、攻撃者が以前の攻撃プロセスで PowerShell プログラムをこの名前でコピーしたものと見られる。復号化された PowerShell コマンドは、他の Powershell スクリプトをダウンロードして実行する。 図10. 暗号化された Powershell コマンドが含まれた設定ファイル ダウンロードされる PowerShell スクリプトは、XMRig コインマイナーと設定ファイルをダウンロードし、実行する単純なタイプである。 図11. XMRig コインマイナーをインストールする Powershell スクリプト 図12. 設定ファイルに存在するマイニングプール及びウォレットアドレス 攻撃に使われた Powershell スクリプトを解析した結果、変数名、関数名、そして全体的な構造が z0Miner と類似していることが確認された。Z0Miner は2020年 Tencent Security Team が初めて報告し、Oracle Weblogic リモートコード実行の脆弱性(CVE-2020-14882 / CVE-2020-14883)攻撃で拡散された。 2021年には Atlassian Confluence のリモートコード実行の脆弱性(CVE-2021-26084)が脆弱性として拡散した事例が報告され、 [7] (英語外部サイト) [8] (英語外部サイト)、過去の ASEC ブログでもこの攻撃事例について取り上げたことがある。 [9] 5. 結論 攻撃者はパッチが適用されていない脆弱な Apache ActiveMQ サービスを対象に持続的に攻撃を行っている。確認された攻撃の中には、コインマイナーをインストールして暗号通貨を採掘する事例もあるが、感染システムを制御するためのマルウェアが多数確認される。攻撃者は感染システムを掌握したあと、情報を奪取したり、ランサムウェアをインストールすることができる。 システム管理者は使用している Apache ActiveMQ サービスが以下のように脆弱なバージョンであるかをチェックし、最新バージョンにパッチを適用して、既知の脆弱性による攻撃を防がなければならない。 Apache ActiveMQ 5.18.0 以上 5.18.3 未満のバージョン Apache ActiveMQ 5.17.0 以上 5.17.6 未満のバージョン Apache ActiveMQ 5.16.0 以上 5.16.7 未満のバージョン Apache ActiveMQ 5.15.16 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.18.0 以上 5.18.3 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.17.0 以上 5.17.6 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.16.0 以上 5.16.7 未満のバージョン Apache ActiveMQ Legacy OpenWire Module 5.8.0 以上 5.15.16 未満のバージョン また、外部に開放されていてアクセスが可能なサーバーに関してはファイアウォールのようなセキュリティ製品を利用し、外部の攻撃者からのアクセスを統制する必要がある。最後に、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前に遮断できるように注意を払わなければならない。 ファイル検知 – Exploit/PS.Ladon (2023.12.09.00) – Downloader/XML.Generic (2023.12.13.00) – HackTool/Win.Netcat.R5561954 (2023.12.12.03) – Downloader/XML.Generic (2023.12.13.00) – CoinMiner/PS.Agent (2023.12.13.03) – Win-Trojan/Miner3.Exp (2020.01.23.00) – CoinMiner/Text.Config (2023.12.13.03) 振る舞い検知 – Execution/MDP.Powershell.M2514 – Execution/MDP.AnyDesk.M4547 IOC MD5 – eb0e70ea44e578201df1e3c49e905144 : Ladon (Ladon.ps1) – 1a7e8e719e29c2cca5083053bb240dbc : XML (poc2.xml) – b6e0db27c2b3e62db616b0918a5d8ed8 : Netcat (ncat.exe) – c1aa596dc33f2ba4aadbd689a1652701 : XML (paste.xml) – baeee25ebf0efeec414dce64b9e7aca7 : Downloader (paste.ps1) – 2a0d26b8b02bb2d17994d2a9a38d61db : XMRig (s.rar) – da12148890bc665a8a27bf695955d8b0 : XMRig Config (config.json) C&C – 27.191.193[.]193:50000 : Ladon Netcat – 62.233.50[.]97:6666 : Netcat Download – hxxp://27.191.193[.]193:555/Ladon.ps1 : Ladon – hxxp://27.191.193[.]193:555/poc2.xml : XML – hxxp://62.233.50[.]101:11197/ncat.exe : Netcat – hxxp://121.190.90[.]250:8081/js/3/paste.xml : XML – hxxp://121.190.90[.]250:8081/js/3/paste.ps1 : Downloader – hxxp://121.190.90[.]250:8081/js/s.rar : XMRig – hxxp://121.190.90[.]250:8081/js/3/config.json : XMRig Config 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC Apache ActiveMQ Vulnerability (CVE-2023-46604) Continuously Being Exploited in Attacks 2023-12-13
In November 2023, AhnLab Security Emergency response Center (ASEC) published a blog post titled “Circumstances of the Andariel Group Exploiting an Apache ActiveMQ Vulnerability (CVE-2023-46604)” [1] which covered cases of the Andariel threat group exploiting the CVE-2023-46604 vulnerability to install malware. This post not only covered attack cases of the Andariel group but also those of HelloKitty Ransomware, Cobalt Strike, and Metasploit Meterpreter. Since then, the Apache ActiveMQ vulnerability (CVE-2023-46604) has continued to be exploited by various threat actors. This post will cover the recent additional attacks that installed Ladon, NetCat, AnyDesk, and z0Miner. 1. Apache ActiveMQ Vulnerability (CVE-2023-46604) Attacks CVE-2023-46604 is a remote code execution vulnerability in the open-source messaging and integration pattern server Apache ActiveMQ. If an unpatched Apache ActiveMQ is externally exposed, the threat actor can execute malicious commands from a remote location and take over the target system. AhnLab TIP: Apache ActiveMQ Security Update Advisory (CVE-2023-46604) [2] (This report supports Korean only for now.) The vulnerability attack involves manipulating a serialized class type in the OpenWire protocol to instantiate the class in classpath. When the threat actor transmits a manipulated packet, the vulnerable server references the path (URL) contained in the packet to load the XML configuration file for the class. For example, the Java process for a vulnerable Apache ActiveMQ server references the given manipulated packet and loads an XML configuration file at “hxxp://27.191.193[.]193:555/poc2.xml”. Afterward, the loaded XML configuration file is referenced to execute designated commands. In the following case, a command is configured to use CMD and PowerShell to download Ladon before executing a reverse shell command. 2. Ladon As can be seen from the following GitHub page, Ladon is one of the tools that are mainly used by Chinese-speaking threat actors. [3] Ladon offers various features needed in the attack process. Major features include scanning, privilege escalation, account credential theft, and reverse shell. The creator is continuously updating Ladon, and the malware also offers scanning for the relatively recent CVE-2023-46604 vulnerability. While it cannot be ascertained whether the threat actor used Ladon to scan for the vulnerability, after confirming that a vulnerable version of Apache ActiveMQ service was in use, they used the following PowerShell command to download Ladon and execute additional commands. ReverseTCP command refers to the execution of reverse shell, and Netcat (nc) was used for this purpose. 3. AnyDesk & Netcat While the Netcat command supported by Ladon was used in the attack case above, Netcat is also seen in other attack cases. Netcat is a utility for transmitting data to and from certain targets in a network connected by TCP/UDP protocol. It supports Linux as well as Windows environments. Because it offers various features for network testing, it can also be considered a tool frequently used by network administrators, but it is also a tool that can be exploited by threat actors. Threat actors can use the commands that are transmitted when Netcat is launched to use it as a reverse shell or bind shell, and there are actual cases where Netcat was used in various attacks that targeted vulnerable web servers and MS-SQL servers. [4] [5] In the recently identified attack, Netcat was downloaded from an external source before the shell for the infected system was obtained using a reverse shell command. Although the infected system can be controlled using a reverse shell, there is a limit to executing commands in a command line environment. Generally, after threat actors compromise the infected system, they tend to additionally install VNC, RDP, and other remote administration tools to control the system’s screen remotely. In particular, remote administration tools such as AnyDesk, NetSupport, and Chrome Remote Desktop have recently been used for bypassing security products. [6] In the recently identified attack, the threat actor additionally installed AnyDesk after installing Netcat. The Netcat installed in the process above was used to install AnyDesk, and the setup file was downloaded from the download URL of the original AnyDesk website. After installing AnyDesk in silent mode, the threat actor set the password with the “–set-password” argument before launching the program. This routine is almost identical to the one identified in a past attack case against MS-SQL servers. Afterwards, the threat actor would have connected to the infected system and used the password transmitted as the “–set-password” argument upon execution to remotely control the target system. 4. z0Miner Recently, there were also attack campaigns where XMRig CoinMiner was installed. The name of the XML configuration file is “paste.xml”, and it includes data for using CMD to execute PowerShell commands as shown below. As a note, “shella” is presumed to be a PowerShell file, and the threat actor seems to have copied the PowerShell program under this name in a previous attack phase. The decrypted PowerShell command downloads and executes another PowerShell script. The downloaded PowerShell script is in a simple format, downloading and executing XMRig CoinMiner and the configuration file. An analysis of the PowerShell script used in the attack revealed the variable names, function names, and overall structure to be similar to those of z0Miner. z0Miner was first reported in 2020 by the Tencent Security Team and was distributed via attacks exploiting the Oracle Weblogic remote code execution vulnerabilities (CVE-2020-14882/CVE-2020-14883). In 2021, there was a case where z0Miner was distributed through the Atlassian Confluence remote code execution vulnerability (CVE-2021-26084). [7] [8] This case was also covered in a past ASEC Blog post. [9] 5. Conclusion Threat actors are continuously launching attacks against unpatched, vulnerable Apache ActiveMQ services. Out of such identified attacks, there were cases where CoinMiners were installed to mine cryptocurrencies, as well as many cases where malware were used to control the infected system. After compromising the infected system, threat actors can steal data or install ransomware. System administrators must check if their current Apache ActiveMQ service is one of the susceptible versions below and apply the latest patches to prevent attacks that exploit known vulnerabilities. Apache ActiveMQ versions 5.18.0 – 5.18.2 Apache ActiveMQ versions 5.17.0 – 5.17.5 Apache ActiveMQ versions 5.16.0 – 5.16.6 Apache ActiveMQ versions 5.15.15 or earlier Apache ActiveMQ Legacy OpenWire Module versions 5.18.0 – 5.18.2 Apache ActiveMQ Legacy OpenWire Module versions 5.17.0 – 5.17.5 Apache ActiveMQ Legacy OpenWire Module versions 5.16.0 – 5.16.6 Apache ActiveMQ Legacy OpenWire Module versions 5.8.0 – 5.15.15 They should also use security programs such as firewalls for servers accessible from outside to restrict access by attackers. Finally, caution must be practiced by updating V3 to the latest version to block malware infection in advance. File Detection – Exploit/PS.Ladon (2023.12.09.00) – Downloader/XML.Generic (2023.12.13.00) – HackTool/Win.Netcat.R5561954 (2023.12.12.03) – Downloader/XML.Generic (2023.12.13.00) – CoinMiner/PS.Agent (2023.12.13.03) – Win-Trojan/Miner3.Exp (2020.01.23.00) – CoinMiner/Text.Config (2023.12.13.03) Behavior Detection – Execution/MDP.Powershell.M2514 – Execution/MDP.AnyDesk.M4547 MD5 1a7e8e719e29c2cca5083053bb240dbc 2a0d26b8b02bb2d17994d2a9a38d61db b6e0db27c2b3e62db616b0918a5d8ed8 baeee25ebf0efeec414dce64b9e7aca7 c1aa596dc33f2ba4aadbd689a1652701 URL http[:]//121[.]190[.]90[.]250[:]8081/js/3/config[.]json http[:]//121[.]190[.]90[.]250[:]8081/js/3/paste[.]ps1 http[:]//121[.]190[.]90[.]250[:]8081/js/3/paste[.]xml http[:]//121[.]190[.]90[.]250[:]8081/js/s[.]rar http[:]//27[.]191[.]193[.]193[:]50000/ Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC Andariel グループによる Apache ActiveMQ 脆弱性(CVE-2023-46604)を悪用した攻撃の状況 2023-11-24
AhnLab Security Emergency response Center(ASEC)は最近、Andariel 脅威グループの攻撃をモニタリングしていたところ、Andariel グループが Apache ActiveMQ のリモートコード実行の脆弱性(CVE-2023-46604)を悪用してマルウェアをインストールするものと推定される攻撃事例を確認した。 主に韓国国内企業や機関を攻撃対象とする Andariel 脅威グループは、Lazarus 脅威グループと協力関係である、または Lazarus グループの下位組織として知られている。2008年から韓国国内を対象とする攻撃が初めて確認され、主な攻撃対象は国防、政治機構、造船、エネルギー、通信等、安全保障に関わるところである。もちろん、このほかにも大学や運送、ICT 企業等、韓国国内に位置する様々な企業や機関が攻撃対象となっている。 [1] ( 韓国語のみ提供 ) Andariel 脅威グループはかねてからスピアフィッシング攻撃、水飲み場型攻撃、サプライチェーン攻撃を利用しており、 [2] 最近では Log4Shell の脆弱性や [3] 不適切に管理されている MS-SQL サーバーを対象とする攻撃、そして正常なソフトウェアを悪用する攻撃事例も確認されている。 [4] 現時点では直接的なログは存在しないが、状況的にも Andariel グループが Apache ActiveMQ サーバーに対するリモートコード実行の脆弱性を悪用し、バックドアである NukeSped、TigerRat をインストールしているものと推定される。ここでは Apache ActiveMQ サーバーを対象とする攻撃事例とともに Andariel グループが攻撃にこれを悪用していると推定する根拠をまとめていく。 1. Apache ActiveMQ の脆弱性を利用した攻撃事例 CVE-2023-46604 は、オープンソースのメッセージングおよび統合パターンサーバーである Apache ActiveMQ サーバーのリモートコード実行の脆弱性である。パッチが適用されていない Apache ActiveMQ サーバーが外部に公開されている場合、攻撃者はリモートで悪意を持ったコマンドを実行し、そのシステムを掌握することができる。 この脆弱性情報が公開されたあと、様々な攻撃者たちがこれを悪用してマルウェアをインストールしているが、代表的なものとしては Rapid7 社が公開している HelloKitty ランサムウェアの攻撃事例がある。 [5] (外部サイト、英語のみ提供) この事例は当社 AhnLab Smart Defense (ASD)ログからも確認され、これは韓国国内のシステムも CVE-2023-46604 の脆弱性を利用した攻撃の対象となっていることを意味する。 図1. HelloKitty ランサムウェアのインストールを試みるログ ASEC が Andariel グループの攻撃をモニタリングしていたところ、Andariel グループが過去から使用していたバックドア、NukeSped が特定のシステムにインストールされたことを確認した。調査の結果、このシステムには Apache ActiveMQ サーバーがインストールされており、CVE-2023-46604 の脆弱性情報が公開された2023年10月末から HelloKitty ランサムウェアを含む様々な攻撃ログが確認された。 図2. 感染システムにおいて確認される様々な攻撃ログ 攻撃者は脆弱性を利用した攻撃の過程で以下のような不正な Java クラスファイルを使用し、そのマルウェアは最終的に Windows または Linux 環境で追加のペイロードをダウンロードし、インストールする機能を担う。このマルウェアは最近 Huntress 社のレポートでも確認されている攻撃事例である。 [6] (外部サイト、英語のみ提供) 図3. ダウンローダー機能を担う不正な Java クラスファイル このような既知の攻撃以外にも、CobaltStrike や Metasploit Meterpreter の Stager インストールログも同時に確認されている。これらを通じて、CVE-2023-46604 の脆弱性関連情報が公開されてからまだ日数が浅いが、パッチが適用されていないシステムはこのような短い期間にも多くの攻撃対象となっているということがわかる。 図4. Metasploit Meterpreter の Stager をインストールするログ 図5. CobaltStrike beacon の設定データ by CobaltStrikeParser [7] (外部サイト、英語のみ提供) 2. NukeSped マルウェア – Andariel グループ 2.1. CVE-2023-46604 脆弱性を利用した攻撃状況 Apache ActiveMQ を対象とする様々な攻撃が行われたシステムを解析していたところ、Andariel グループのバックドア、NukeSped が同時にインストールされたシステムが確認された。CVE-2023-46604 の脆弱性を利用して NukeSped がインストールされたという直接的なログは確認されていないが、この脆弱性を利用した攻撃以外に別の攻撃の痕跡が確認されていない点と、攻撃が行われた期間中にマルウェアのインストールログが同時に確認された点を考慮すると、Andariel グループが CVE-2023-46604 の脆弱性を攻撃に使用した可能性がある。 解析対象のシステムは最初に CVE-2023-46604 の脆弱性を悪用した攻撃が確認された10月末から、継続的に攻撃対象となっていた。具体的には Rapid7 社のレポートで言及された HelloKitty ランサムウェアと Huntress 社のレポートで言及されたダウンローダーマルウェアが同時に確認されたことから、脆弱な Apache ActiveMQ サーバーと推定される。Huntress 社のレポートでは具体的なマルウェアは言及されていないが、CVE-2023-46604 の脆弱性を利用した攻撃によって「hxxp://27.102.128[.]152:8098/bit[.]ico」URLから不正なペイロードをインストールする事例も紹介している。 このアドレスは過去の記事でも取り上げた URL で、TigerRat をダウンロードしたアドレスである。また、以下のログで確認できる「oracle.exe」マルウェアをダウンロードしたアドレスであり、C&C サーバーのアドレスでもある。このマルウェアは収集されていないが、「rang.exe」、「load.exe」という名称で TigerRat をインストールした。 図6. TigerRat をインストールするのに使用したアドレス もちろん、Andariel グループは過去にも Log4Shell の脆弱性や TeamCity の脆弱性 [8] (外部サイト、英語のみ提供)等、公開済みの脆弱性を攻撃に頻繁に利用してきた。 2.2. NukeSped バックドア NukeSped は C&C サーバーからコマンドを受け取り、感染システムを操作できるようにするバックドアマルウェアである。主に Lazarus グループと Andariel グループが感染システムを操作するために使用し、攻撃に使用された NukeSped は過去「資産管理プログラムを悪用した攻撃状況の捕捉(Andariel グループ)」の記事で紹介した「NukeSped 変種 – Type 1」と類似している。 今回使用された NukeSped はファイルのダウンロード/コマンドの実行/実行プロセスの終了等、3つのコマンドのみをサポートする。過去の攻撃事例での NukeSped はより多くのコマンドをサポートしていたが、これらを除けばほとんどの機能が同じである。 代表的な NukeSped のタイプと同様、使用する API のアドレスや文字列はすべて暗号化されており、実行中に復号化して使用する。暗号化方式は1バイトの XOR アルゴリズムで、キー値は 0xA1 である。過去の攻撃事例では 0xA1 のほかに 0x97、0xAB のキー値が使われた。 図7. 0xA1 キーで XOR 暗号化された文字列 NukeSped は最初に C&C サーバーに接続すると、以下のようなフォーマットの HTTP リクエストを送信する。 図8. 初回 C&C サーバー接続時のパケット HTTP リクエストヘッダ 値 説明 Sec-Fetch-Mode 10 (0x0A) 初回接続 Sec-Fetch-User S-[コンピューター名] 感染システムのコンピューター名 Sec-Fetch-Dest 01 初回接続 表1. 初回 C&C サーバー接続時のフォーマット 以降、C&C サーバーから HTTP レスポンスを受け取り、以下の表に存在する各文字列をチェックする。各文字列がレスポンスに存在する場合は「Sec-Fetch-Mode:」の値をコマンドとして認識し、その後のルーティンを実行する。 HTTP レスポンスヘッダ 説明 “HTTP/1.1 200 OK Content-Type: text/html ” デフォルトのレスポンスフォーマット “Sec-Fetch-Mode:” コマンド “Content-Length:” コマンドの長さ 表2. C&C サーバーから伝達されるコマンドのフォーマット サポート可能なコマンドは以下のように3つであり、実質的には C&C サーバーからファイルのダウンロード、C&C サーバーから渡されたコマンドの実行とその結果の伝達がすべてである。 コマンド 機能 30 (0x1E) ファイルのダウンロード 33 (0x21) コマンドの実行および結果を返す 34 (0x22) 実行プロセスの終了 表3. NukeSped がサポートするコマンド C&C サーバーとの初回通信時には POST メソッドを利用したが、その後の C&C サーバーから渡されたコマンドの実行結果、およびコマンド実行失敗メッセージは、Google 接続を偽装した GET メソッドによって送信する。 図9. コマンド実行失敗メッセージに対するレスポンスのパケット Sec-Fetch-Mode 内容 10 (0x0A) 初回接続 30 (0x1E) コマンド実行結果 35 (0x23) コマンド実行失敗メッセージ 表4. コマンド実行結果の送信時のフォーマット C&C サーバーと正常に接続ができない場合は、一般的な NukeSped バックドアと同様に Batch ファイルを利用して自己削除を行う。自己削除に使用される Batch ファイルは「%TEMP%uninst.bat」パスに生成される。 図10. 自己削除に使用される Batch ファイル 3. 結論 Andariel グループは Kimsuky、Lazarus グループと共に韓国国内をターゲットにして活発に活動を続けている脅威グループの一つである。初期の頃は主に安全保障に関わる情報を取得するために攻撃を繰り広げていたが、以降は金銭的利得を目的とした攻撃も実行している。 [8] (韓国語のみ提供) 初期侵入は主にスピアフィッシング攻撃や水飲み場型攻撃が使用されるが、Log4Shell や TeamCity 等の脆弱性を悪用してマルウェアをインストールする事例も確認されている。最近では Apache ActiveMQ のリモートコード実行の脆弱性(CVE-2023-46604)を悪用してマルウェアをインストールする状況が確認された。 ユーザーは、出どころが不明なメールの添付ファイルや Web ページからダウンロードした実行ファイルには細心の注意が必要であり、企業のセキュリティ担当者は資産管理プログラムのモニタリングを強化し、プログラムのセキュリティ脆弱性が見つかった場合はパッチを適用しなければならない。また、OS およびインターネットブラウザ等のプログラムの最新パッチや V3 を最新バージョンにアップデートし、このようなマルウェアの感染を事前に遮断できるよう注意を払う必要がある。 ファイル検知 – Trojan/Win32.Dynamer.R162477 (2015.08.19.00) – Trojan/Win64.CobaltStrike.R356638 (2020.11.26.05) – Backdoor/Win.NukeSped.C5542399 (2023.11.16.01) – Trojan/Win.Generic.C5483470 (2023.09.08.03) – Trojan/Win.Generic.C5532844 (2023.10.28.01) – Backdoor/Win.TigerRAT.C5517634 (2023.10.19.03) – Trojan/CLASS.Agent (2023.11.03.00) – Dropper/MSI.Agent (2023.11.17.03) 振る舞い検知 – Malware/MDP.Download.M1900 – Ransom/MDP.Command.M2255 IOC MD5 – 7699ba4eab5837a4ad9d5d6bbedffc18 : NukeSped (credisvc.exe) – c2f8c9bb7df688d0a7030a96314bb493 : TigerRat (load.exe, rang.exe) – 478dcb54e0a610a160a079656b9582de : HelloKitty Installer – 26ff72b0b85e764400724e442c164046 : HelloKitty Ransomware – 4eead95202e6a0e4936f681fd5579582 : Java Downloader – 160f7d2307bbc0e8a1b6ac03b8715e4f : Java Downloader – 11ec319e9984a71d80df1302fe77332d : Downloader (agent_w.exe) – dc9d60ce5b3d071942be126ed733bfb8 : Downloader (agent_w.exe) – beb219abe2ba5e9fd7d51a178ac2caca : Metasploit Meterpreter Stager – c55eb07ef4c07e5ba63f7f0797dfd536 : CobaltStrike Installer (Notification.msi) – 31cbc75319ea60f45eb114c2faad21f9 : CobaltStrike (Notification.exe) C&C サーバー – 27.102.114[.]215:8000 : NukeSped – 137.175.17[.]221:48084 : Downloader – 137.175.17[.]172:41334 : Downloader – 176.105.255[.]60:49407 : Metasploit Meterpreter Stager – hxxps://206.166.251[.]186/jquery-3.3.1.min.js : CobaltStrike ダウンロードアドレス – hxxp://137.175.17[.]221:1443/ac.jar : Java Downloader – hxxp://137.175.17[.]172:1443/ac3.jar : Java Downloader – hxxp://137.175.17[.]221:1443/agent : Downloader (Linux) – hxxp://137.175.17[.]221:1443/agent_w : Downloader (Windows) – hxxp://137.175.17[.]172:1443/agent : Downloader (Linux) – hxxp://137.175.17[.]172:1443/agent_w : Downloader (Windows) – hxxp://176.105.255[.]60/Xdw0FFtpuYWSLrVcAei5zg : Metasploit Meterpreter Stager – hxxp://168.100.9[.]154:9090/Notification.msi : CobaltStrike Installer 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC Circumstances of the Andariel Group Exploiting an Apache ActiveMQ Vulnerability (CVE-2023-46604) 2023-11-17
While monitoring recent attacks by the Andariel threat group, AhnLab Security Emergency response Center (ASEC) has discovered the attack case in which the group is assumed to be exploiting Apache ActiveMQ remote code execution vulnerability (CVE-2023-46604) to install malware. The Andariel threat group usually targets South Korean companies and institutions, and the group is known to be either in a cooperative relationship of the Lazarus threat group, or a subsidiary group of Lazarus. Their attacks against South Korea were first identified in 2008, and their main targets include national defense, political organizations, shipbuilding, energy, and telecommunications. South Korean companies and institutions besides these that were targeted include universities, logistics, and ICT companies. [1] (This link is only available in Korean.) The Andariel threat group has been employing spear phishing, watering hole, and supply chain attacks from the past [2] . Recently, cases have been identified where the group exploits a Log4Shell vulnerability [3] , target poorly managed MS-SQL servers, or abuse legitimate software. [4] There are no direct logs as of now, but it is assumed that the Andariel group is exploiting a remote code execution vulnerability in Apache ActiveMQ servers to install NukeSped and TigerRat backdoors. This post will provide a summary on the cases of attacks against Apache ActiveMQ servers, and the grounds on which the Andariel group is suspected of abusing these in attacks. 1. Cases of Attacks Exploiting Apache ActiveMQ Vulnerability CVE-2023-46604 is a remote code execution vulnerability in Apache ActiveMQ, an open-source messaging and integration pattern server. If an unpatched Apache ActiveMQ server is exposed externally, the threat actor can execute malicious commands remotely and take control over the system. Various threat actors have been exploiting this to install malware after information on this vulnerability was revealed. One major example is the case of HelloKitty ransomware attacks covered by Rapid7. [5] This case was also discovered in the AhnLab Smart Defense (ASD) logs, which means that systems in South Korea are also becoming targets of the CVE-2023-46604 vulnerability attacks. Figure 1. Logs of attempting to install HelloKitty ransomware While monitoring attacks by the Andariel group, ASEC found NukeSped, a backdoor that the Andariel group has been using from the past, being installed in a certain system. Investigations revealed that Apache ActiveMQ server was installed in this system, and it was confirmed that there were various attack logs from late October when information on the CVE-2023-46604 vulnerability was released, including those involving the HelloKitty ransomware. Figure 2. Various attack logs found in the infected system The threat actor used the following malicious Java class file during the vulnerability attack process. This malware ultimately downloads and installs an additional payload in Windows or Linux environments. This malware also appeared in a case in a recent report by Huntress. [6] Figure 3. Malicious Java class file that acts as a downloader Aside from these known attacks, CobaltStrike and Metasploit Meterpreter’s Stager installation logs were also found. Based on these evidences, it can be assumed that although it has not been long since information regarding the CVE-2023-46604 vulnerability was revealed, unpatched systems are becoming targets of numerous attacks in such a short time period. Figure 4. Metasploit Meterpreter’s Stager installation log Figure 5. CobaltStrike Beacon configuration data by CobaltStrikeParser [7] 2. NukeSped Malware – Andariel Group 2.1. Circumstances of an Attack Exploiting CVE-2023-46604 Vulnerability While analyzing systems in which various Apache ActiveMQ were attacked, a system with the Nukesped backdoor used by the Andariel group was found. Although there were no direct logs showing that NukeSped was installed through exploitation of the CVE-2023-46604 vulnerability, there is a possibility that the Andariel group exploited CVE-2023-46604 vulnerability for the attack, considering that no other attacks were confirmed except for the exploiting one and that the malware installation log was confirmed while the attack was ongoing. The analyzed system had repeatedly became a target of attacks since late October when the first attack which exploited the CVE-2023-46604 vulnerability was discovered. In particular, seeing that HelloKitty ransomware, mentioned in the Rapid7 report, and that a downloader mentioned in a Huntress report were detected together, it is deemed to be a vulnerable Apache ActiveMQ server. While no specific malware was mentioned in the Huntress report, a case was covered where a malicious payload was installed from the URL “hxxp://27.102.128[.]152:8098/bit[.]ico” through exploitation of the CVE-2023-46604 vulnerability. This address, covered in a past Blog post, corresponds to the URL where TigerRat was downloaded from. It is also the address where the “oracle” malware in the following log was downloaded from, as well as being the C&C server URL. While the malware files were not collected, TigerRat was installed under the names “rang.exe” and “load.exe”. Figure 6. URL used to install TigerRat Of course, the Andariel group often used disclosed vulnerabilities such as the Log4Shell and TeamCity vulnerabilities [8] in its attacks in the past. 2.2. NukeSped Backdoor NukeSped is a backdoor that can control the infected system through commands received from the C&C server. This is usually used by the Lazarus and Andariel groups to control infected systems. The NukeSped used in the attacks is similar to “NukeSped Variant – Type 1” covered in the past Blog post, “Circumstances of an Attack Exploiting an Asset Management Program (Andariel Group)”. The NukeSped version used in the recent attacks only support three commands: downloading files, executing commands, and terminating running processes. Although the NukeSped in previous attack cases supported a much wider range of commands, aside from this, most features are the same. Like typical NukeSped types, all the API addresses and strings to be used are encrypted, then decrypted and used at runtime. The encryption method is a 1-byte XOR algorithm with the key value 0xA1. Besides 0xA1, in past attack cases, key values 0x97 and 0xAB were also used. Figure 7. XOR-encrypted string using the 0xA1 key When NukeSped first connects to the C2, it sends a HTTP request in the following format. Figure 8. Packet upon the first connection to the C&C server HTTP Request Header Value Description Sec-Fetch-Mode 10 (0x0A) Initial connection Sec-Fetch-User S-[Computer Name] Computer name of the infected system Sec-Fetch-Dest 01 Initial connection Table 1. Format upon the first connection to the C&C server Afterwards, an HTTP response is received from the C&C server, and each of the strings in the following table are checked. If any string exists in the response, the value of “Sec-Fetch-Mode:” is recognized as a command and subsequent routines are executed. HTTP Response Header Description “HTTP/1.1 200 OK Content-Type: text/html ” Default response format “Sec-Fetch-Mode:” Command “Content-Length:” Command length Table 2. Format of commands received from the C&C server The following three commands are supported. The only actual available actions are downloading files from the C&C server, executing commands received from the C&C, and returning their results. Command Feature 30 (0x1E) Downloading commands 33 (0x21) Executing commands and returning their results 34 (0x22) Terminating running processes Table 3. Commands supported by NukeSped During the initial communication with the C&C server, the POST method was used, but a GET method disguised as being for visiting Google was used to transmit the results of executing commands received from the C&C and any command execution failure messages. Figure 9. Response packet with a command execution failure message Sec-Fetch-Mode Details 10 (0x0A) Initial connection 30 (0x1E) Command execution results 35 (0x23) Command execution failure message Table 4. Format when sending the command execution results When a connection to the C&C server is not established properly, auto-deletion is executed by using a batch file, which is similar to that of ordinary NukeSped backdoors. The batch file used for auto-deletion is created in the “%TEMP%uninst.bat” path. Figure 10. Batch file used for auto-deletion 3. Conclusion Along with the Kimsuky and Lazarus groups, the Andariel group is one of the threat groups that actively target South Korea. They attempted attacks to gain information related to national security in the early days but they now attempt attacks for financial gains as well. [8] (This report supports Korean only for now.) Although they mostly use spear phishing or watering hole attacks for initial infiltration, there are also cases where the group exploit vulnerabilities such as Log4Shell or TeamCity to install malware. Recently, there have been evidences of exploiting Apache ActiveMQ remote code execution vulnerability (CVE-2023-46604) to install malware. Users should be cautious with the attachments of emails and executable files downloaded from unknown sources, and corporate security personnel should enhance asset management programs and apply patches if there are security vulnerabilities in the program. Users should also apply the latest patch for OS and programs such as internet browsers, and update V3 to the latest version to prevent such malware infection in advance. File Detection – Trojan/Win32.Dynamer.R162477 (2015.08.19.00) – Trojan/Win64.CobaltStrike.R356638 (2020.11.26.05) – Backdoor/Win.NukeSped.C5542399 (2023.11.16.01) – Trojan/Win.Generic.C5483470 (2023.09.08.03) – Trojan/Win.Generic.C5532844 (2023.10.28.01) – Backdoor/Win.TigerRAT.C5517634 (2023.10.19.03) – Trojan/CLASS.Agent (2023.11.03.00) – Dropper/MSI.Agent (2023.11.17.03) Behavior Detection – Malware/MDP.Download.M1900 – Ransom/MDP.Command.M2255 MD5 11ec319e9984a71d80df1302fe77332d 160f7d2307bbc0e8a1b6ac03b8715e4f 26ff72b0b85e764400724e442c164046 31cbc75319ea60f45eb114c2faad21f9 478dcb54e0a610a160a079656b9582de URL http[:]//137[.]175[.]17[.]172[:]1443/ac3[.]jar http[:]//137[.]175[.]17[.]172[:]1443/agent http[:]//137[.]175[.]17[.]172[:]1443/agent_w http[:]//137[.]175[.]17[.]172[:]41334/ http[:]//137[.]175[.]17[.]221[:]1443/ac[.]jar Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
자동 추천 장비와 근거 참고용
분류 체계(취약점 종류 CWE → 공격 유형 CAPEC → 공격 기법 ATT&CK) 매핑으로 계산한 후보입니다. 범위가 넓어 관련이 적은 장비가 섞입니다. 해당 장비가 이 공격을 탐지한다고 확인한 것은 아니며, 위의 '살펴볼 장비' 와 단계별 판정에는 쓰지 않습니다.
| 장비 | 방법 | 근거 경로 |
|---|---|---|
| 엔드포인트 탐지·대응 EDR | cwe | CWE-502 (직접 매핑) |
| 침입방지시스템 IPS | cwe | CWE-502 (직접 매핑) |
| 웹 방화벽 WAF | cwe | CWE-502 (직접 매핑) |
취약점 종류 CWE
- 역직렬화 — CWE-502 Deserialization of Untrusted Data
영향받는 제품 CPE · 13건
| 제조사 | 제품 | 영향받는 버전 | 표준 표기CPE |
|---|---|---|---|
| apache | activemq | 5.15.16 미만 | cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:* |
| apache | activemq | 5.16.0 이상 5.16.7 미만 | cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:* |
| apache | activemq | 5.17.0 이상 5.17.6 미만 | cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:* |
| apache | activemq | 5.18.0 이상 5.18.3 미만 | cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:* |
| apache | activemq_legacy_openwire_module | 5.15.16 미만 | cpe:2.3:a:apache:activemq_legacy_openwire_module:*:*:*:*:*:*:*:* |
| apache | activemq_legacy_openwire_module | 5.16.0 이상 5.16.7 미만 | cpe:2.3:a:apache:activemq_legacy_openwire_module:*:*:*:*:*:*:*:* |
| apache | activemq_legacy_openwire_module | 5.17.0 이상 5.17.6 미만 | cpe:2.3:a:apache:activemq_legacy_openwire_module:*:*:*:*:*:*:*:* |
| apache | activemq_legacy_openwire_module | 5.18.0 이상 5.18.3 미만 | cpe:2.3:a:apache:activemq_legacy_openwire_module:*:*:*:*:*:*:*:* |
| debian | debian_linux | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | |
| debian | debian_linux | cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | |
| netapp | e-series_santricity_unified_manager | cpe:2.3:a:netapp:e-series_santricity_unified_manager:-:*:*:*:*:*:*:* | |
| netapp | e-series_santricity_web_services_proxy | cpe:2.3:a:netapp:e-series_santricity_web_services_proxy:-:*:*:*:*:*:*:* | |
| netapp | santricity_storage_plugin | cpe:2.3:a:netapp:santricity_storage_plugin:-:*:*:*:*:vcenter:*:* |
참고 링크 14건
- 메일링 리스트 · 제3자 권고 http://seclists.org/fulldisclosure/2024/Apr/18
- 제조사 권고 https://activemq.apache.org/security-advisories.data/CVE-2023-46604-announcement.txt
- 메일링 리스트 https://lists.debian.org/debian-lts-announce/2023/11/msg00013.html
- 공격 코드 · 제3자 권고 · 취약점 DB https://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-Remote-Code-Execution.html
- 제3자 권고 https://security.netapp.com/advisory/ntap-20231110-0010/
- 메일링 리스트 https://www.openwall.com/lists/oss-security/2023/10/27/5
- 메일링 리스트 · 제3자 권고 http://seclists.org/fulldisclosure/2024/Apr/18
- 제조사 권고 https://activemq.apache.org/security-advisories.data/CVE-2023-46604-announcement.txt
- 메일링 리스트 https://lists.debian.org/debian-lts-announce/2023/11/msg00013.html
- 메일링 리스트 https://lists.debian.org/debian-lts-announce/2024/10/msg00027.html
- 공격 코드 · 제3자 권고 · 취약점 DB https://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-Remote-Code-Execution.html
- 제3자 권고 https://security.netapp.com/advisory/ntap-20231110-0010/
- 메일링 리스트 https://www.openwall.com/lists/oss-security/2023/10/27/5
- 제3자 권고 · 미국 정부 자료 https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-46604
용어 설명 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)이 실제 공격에 쓰인 것을 확인한 취약점만 모은 목록입니다. 여기에 있으면 가장 먼저 조치할 대상입니다. '랜섬웨어' 표시는 랜섬웨어 공격에 쓰인 것으로 알려진 것입니다.
- NVD 미국 취약점 DB
- 미국 국립표준기술연구소(NIST)가 운영하는 취약점 데이터베이스입니다. CVE 마다 설명·CVSS 점수·영향받는 제품·취약점 종류를 붙입니다. 이 사이트 설명의 원문 출처입니다.
- 우선순위 이 사이트의 참고 점수
- CVSS·KEV·랜섬웨어·EPSS·ASEC 언급을 합쳐 계산한 점수입니다. 높을수록 먼저 살펴보세요. 공식 점수가 아닙니다.
- ASEC 안랩 분석 글
- 안랩 보안대응센터 블로그입니다. 'ASEC 3' 은 분석 글에 그 CVE 번호가 3번 나왔다는 뜻이며, 국내에서 악용이 확인됐다는 뜻은 아닙니다.
- CWE 취약점 종류
- 취약점 종류의 분류 번호입니다. 예: CWE-89 SQL 인젝션, CWE-79 크로스 사이트 스크립팅.
- CPE 영향받는 제품
- 취약점이 있는 제품과 버전을 적는 표준 표기입니다. 예: apache:tomcat 9.0.0~9.0.80.
- 시나리오 · 번역
- '시나리오' 는 단계별 판정 초안이 있다는 표시입니다(없다고 안전한 것은 아닙니다). '(번역)' 은 Claude 로 기계 번역한 설명입니다.