vuln-intel취약점 정보 통합 DB

← 목록

CVE-2023-42793

위험도 심각 실제 악용 (KEV) 랜섬웨어 악용 공격 코드 공개 ASEC 언급 7건

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

설명 NVD 원문

JetBrains TeamCity 2023.05.4 이전 버전에서 인증 우회(authentication bypass)로 인해 TeamCity 서버에서 원격 코드 실행(RCE)이 가능했다.

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

영어 원문

In JetBrains TeamCity before 2023.05.4 authentication bypass leading to RCE on TeamCity Server was possible

위험도 세부 항목 CVSS 3.1

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

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

조치 방법 0행

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

CISA 조치 권고 KEV

제조사 안내에 따라 완화 조치를 적용하세요. 완화 방법이 없으면 제품 사용을 중단하세요.

영어 원문

Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

미국 연방기관 조치 기한: 2023-10-25

살펴볼 장비 초안

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

장비 보기정도분류 이유
인증·접속 (계정·접근제어)보조인증 결함. 제품 자체 인증을 우회하면 계정 로그에 남지 않을 수 있음

단계별 판정 예시 환경

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

출처별 내용 9건

CISA KEV JetBrains TeamCity Authentication Bypass Vulnerability 2023-10-04

원문 보기

Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

KISA JetBrains 제품 보안 업데이트 권고 2023-10-10

원문 보기

□ 개요 o CISA가 JetBrains TeamCity에서 발생하는 취약점에 대한 정보 공개 o 영향받는 버전을 사용 중인 시스템 사용자는 해결 방안에 따라 최신 버전으로 업데이트 권고 □ 설명 o JetBrains TeamCity 온프레미스 버전에서 발생하는 인증 우회 취약점(CVE-2023-42793) [1] □ 영향받는 제품 및 해결 방안 영향받는 제품 및 해결 방안 - 취약점, 제품명, 영향받는 버전, 해결 버전의 정보를 제공 취약점 제품명 영향받는 버전 해결 버전 CVE-2023-42793 JetBrains TeamCity 2023.05.04 미만 버전 2023.05.04 □ 기타 문의사항 o 한국인터넷진흥원 사이버민원센터: 국번없이 118 [참고사이트] [1] https://blog.jetbrains.com/teamcity/2023/09/cve-2023-42793-vulnerability-post-mortem/ □ 작성 : 침해사고분석단 취약점분석팀

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 2023년 12월 APT 그룹 동향 보고 2024-01-09

원문 보기

2023년 1월 보안 업체와 기관에서 공개된 분석 내용을 종합한 주요 APT 그룹의 사례는 다음과 같다. 1)   Andariel 한국 경찰은 Andariel 그룹이 한국의 방위산업, IT 보안기업, 연구소, 교육 등 14개 곳을 공격했으며 랜섬웨어로 4월 7천 만원을 벌었다고 공개했다. [1] Cisco Talos 는 Andariel 그룹의 Operation Blacksmith 캠페인을 공개했다. [2] Andariel 그룹은 남미와 유럽 지역의 제조, 농업 및 물리적 보안 회사 표적으로 삼았으며 Log4 취약점 (CVE-2021-44228)으로 공격했다. 이 캠페인에는 HazyLoad, NineRAT, BottomLoader, DLRAT 악성코드가 사용되었으며, NineRAT은 텔레그램 채널을 명령 및 제어(C2) 통신으로 사용한다. 2)   APT28 Proofpoint 는 2023년 3월부터 APT28 (TA422)의 피싱 활동을 관찰했다. [3] 유럽과 북미의 교육, 정부, 제조, 항공 우주 분야를 대상으로 Microsoft Outlook의 권한 상승 취약점(CVE-2023-23397)과 WinRAR의 원격 코드 실행 취약점(CVE-2023-38831)을 이용해 공격했다. 2023년 늦여름 메일에는 TNEF(Transport Neutral Encapsulation Format) 파일을 사용하는 약속 첨부 파일이 포함되어 있었다. TNEF 파일은 가짜 파일 확장자를 사용하여 CSV, Excel 파일 또는 Word 문서로 가장했다. 손상되었을 가능성이 있는 Ubiquiti 라우터에서 호스팅 되는 SMB 수신기로 트래픽을 전달하는 UNC 경로를 포함했다. NTLM 인증을 통해 대상의 비밀번호 해시를 획득했다. IBM X-Force는 APT28 그룹이 이스라엘-하마스 갈등을 이용한 사이버 스파이지 캠페인을 주도하고 있다고 공개했다. [4] 공격의 대상은 주로 헝가리, 터키, 호주, 폴란드, 벨기에, 우크라이나, 독일, 아제르바이잔, 사우디아라비아, 카자흐스탄, 이탈리아, 라트비아, 루마니아 등의 국가였다. CERT-UA는 2023년 12월 국가 기관을 대상으로 이메일을 통한 공격을 확인했다. [5] Python 언어로 작성된 MASEPIE 악성코드를 통해 OPENSSH, STEELHOOK, OCEANMAP 등의 추가 악성코드를 다운로드했다. 초기 단계에서부터 IMPACKET, SMBEXEC 등의 도구를 설치하여 네트워크를 탐색하고 추가적인 공격을 시도했다. WinRAR의 원격 코드 실행 취약점(CVE-2023-38831)을 이용하기로 했으며 일부는 Headlace 백도어를 감염시켰다. 3)   APT29 Fortinet IR 팀 [6] 과 폴란드 CERT [7] 는 APT29로 추정되는 그룹이 TeamCity 취약점 (CVE-2023-42793)을 이용해 의학 제조 업계를 공격했다고 공개했다. Python으로 작성된 맞춤형 익스플로잇 스크립트를 사용하여 CVE-2023-42793 TeamCity 취약점을 공격했다. 공격 후 사용된 악성코드의 동작은 APT29가 사용하는 GraphicalProton 악성코드와 일치했다. 4)   Calisto (Star Blizzard) 마이크로소프트와 영국, 미국, 캐나다, 호주 및 뉴질랜드 정부 기관은 Calisto (Star Blizzard)가 정부 또는 외교, 러시아와 관련된 국방 정책이나 국제 관계 연구, 우크라이나 지원 등에 대한 이메일 자격 증명 도용에 계속 집중하고 있다고 공개했다. [8] Calisto 그룹은 탐지 회피 능력을 향상시키기 위해 서버 측 스크립트 사용, 이메일 마케팅 플랫폼 서비스 사용, DNS 공급자 사용, 비밀번호로 보호된 PDF 파일, 클라우드 기반 파일 공유 플랫폼에 호스팅 된 PDF 파일 링크 사용, 무작위적인 도메인 생성 알고리즘으로의 전환 (DGA) 등의 기법을 사용하고 있다. 미국과 영국 정부는 두 명의 러시아 국적자 Ruslan Peretyatko 와 Andrey Korinets 에 대해 CALISTO 작전에 적극적으로 관여한 혐의로 기소했다. [9] Sekoia는 Calisto 그룹 관계자와 관련된 신상 정보를 공개했다. [10] 5)   Kasablanka 360은 Kasablanka 그룹으로 추정되는 활동을 발견했다. [11] 이 그룹은 아제르바이잔과 아르메니아가 분쟁 지역인 나고르노카라바흐 지역(Nagorno-Karabakh)을 표적으로 삼아 공격을 진행했고 있다. VenomRAT 악성 소프트웨어를 배포, 다단계 전달 메커니즘, 난독화 전략 그리고 전략적인 소셜 엔지니어링을 활용해 목표를 공격했다. 공격자는 AMSI.dll의 AmsiScanBuffer()를 수정하여 AMSI를 우회하고, ntdll.dll의 EtwEventWrite()를 수정하여 Windows 이벤트 추적(ETW)을 비활성화한다. [1] https://www.smpa.go.kr/user/nd42986.do?View&uQ=&pageST=SUBJECT&pageSV=&imsi=imsi&page=1&pageSC=SORT_ORDER&pageSO=DESC&dmlType=&boardNo=00300907&returnUrl=https://www.smpa.go.kr:443/user/nd4 [2] https://blog.talosintelligence.com/lazarus_new_rats_dlang_and_telegram/ [3] https://www.proofpoint.com/us/blog/threat-insight/ta422s-dedicated-exploitation-loop-same-week-after-week [4] https://securityintelligence.com/x-force/itg05-ops-leverage-israel-hamas-conflict-lures-to-deliver-headlace-malware/ [5] https://cert.gov.ua/article/6276894 [6] https://www.fortinet.com/blog/threat-research/teamcity-intrusion-saga-apt29-suspected-exploiting-cve-2023-42793 [7] https://cert.pl/en/posts/2023/12/apt29-teamcity [8] https://www.microsoft.com/en-us/security/blog/2023/12/07/star-blizzard-increases-sophistication-and-evasion-in-ongoing-attacks/ [9] https://home.treasury.gov/news/press-releases/jy1962 [10] https://blog.sekoia.io/calisto-doxxing-sekoia-io-findings-concurs-to-reuters-investigation-on-fsb-related-andrey-korinets/ [11] https://mp.weixin.qq.com/s?__biz=MzUyMjk4NzExMA==&mid=2247494512&idx=1&sn=151caeb7b46c3a6a58af714a576a8442

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 영어·일본어 등 다른 언어 글 4건
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 2023 Dec. – Threat Trend Report on APT Groups 2024-01-09

원문 보기

The cases of major APT groups for December 2023 gathered from materials made public by security companies and institutions are as follows. 1) Andariel The Korean police announced that the Andariel group attacked 14 targets in Korea including companies in the defense industry, IT security companies, research centers, and educational institutes, raising 470 million won (about $352,390) in profits. [1] Cisco Talos shared details on the Andariel group’s Operation Blacksmith campaign. [2] The group targeted manufacturing, agricultural, and physical security companies in South America and Europe by exploiting a Log4 vulnerability (CVE-2021-44228). HazyLoad, NineRAT, BottomLoader, and DLRAT malware were used in this campaign. NineRAT used a Telegram channel for command and control (C2) communications. 2) APT28 Proofpoint has been monitoring phishing attacks by APT28 (TA422) since March 2023. [3] The group launched attacks that exploit a privilege escalation vulnerability (CVE-2023-23397) in Microsoft Outlook and a remote code execution vulnerability (CVE-2023-38831) in WinRAR against education, government, manufacturing, and space aviation sectors of Europe and North America. In the late summer of 2023, emails from APT28 contained appointment attachments using Transport Neutral Encapsulation Format (TNEF) files. The TNEF files used fake file extensions and were disguised as CSV, Excel, or Word files. They included a UNC path that directs traffic to an SMB listener hosted from a Ubiquiti router that is likely compromised. The target’s password hash was obtained through the NTLM authentication. IBM X-Force announced that the APT28 group has been leading a cyber espionage campaign leveraging the Israel-Hamas conflict. [4] The targets of the attacks were mainly countries including Hungary, Türkiye, Australia, Poland, Belgium, Ukraine, Germany, Azerbaijan, Saudi Arabia, Kazakhstan, Italy, Latvia, and Romania. In December 2023, CERT-UA identified attacks against national organizations via email. [5] Additional malware and programs such as OpenSSH, STEELHOOK, and OCEANMAP were downloaded by the MASEPIE malware written in Python. Tools such as IMPACKET and SMBEXEC were installed from the initial stage to scan the network and make additional attack attempts. A remote code execution vulnerability (CVE-2023-38831) in WinRAR was used, with Headlace backdoor infections occurring in some of the attacks. 3) APT29 Fortinet’s IR team [6] and CERT Polska [7] announced that a group believed to be APT29 exploited a TeamCity vulnerability (CVE-2023-42793) to attack the medical manufacturing industry. The attack involved the use of a custom-built Python exploit script for the CVE-2023-42793 TeamCity vulnerability. The behavior of the malware used in post-exploitation matches the GraphicalProton malware used by APT29. 4) Calisto (Star Blizzard) Microsoft and government organizations of the UK, US, Canada, Australia, and New Zealand announced that the Calisto (Star Blizzard) group is continuously focusing on email credential theft upon national defense policies related to diplomacy and Russia, research on international relations, support on Ukraine, etc. [8] The Calisto group’s tactics to improve its detection evasion capabilities include the use of server-side scripts, email marketing platform services, a DNS provider, password-protected PDF files, links to PDF files hosted on cloud-based file sharing platforms, and a randomized domain generation algorithm (DGA). The US and UK governments prosecuted two Russian nationals Ruslan Peretyatko and Andrey Korinets for active involvement in Calisto’s operation. [9] Sekoia released the personal information of Calisto group associates. [10] 5) Kasablanka 360 identified activities deemed to be attributable to Kasablanka. [11] This group launched attacks against the Nagorno-Karabakh region, which is a region of territorial conflict between Azerbaijan and Armenia. The group distributed VenomRAT malware and attacked the targets using a multi-stage sending mechanism, obfuscation tactic, and strategic social engineering. The threat actor modified AmsiScanBuffer() in AMSI.dll to bypass AMSI, and modified EtwEventWrite() in ntdll.dll to deactivate Event Tracing for Windows (ETW). [1] https://www.smpa.go.kr/user/nd42986.do?View&uQ=&pageST=SUBJECT&pageSV=&imsi=imsi&page=1&pageSC=SORT_ORDER&pageSO=DESC&dmlType=&boardNo=00300907&returnUrl=https://www.smpa.go.kr:443/user/nd4 [2] https://blog.talosintelligence.com/lazarus_new_rats_dlang_and_telegram/ [1] https://www.proofpoint.com/us/blog/threat-insight/ta422s-dedicated-exploitation-loop-same-week-after-week [4] https://securityintelligence.com/x-force/itg05-ops-leverage-israel-hamas-conflict-lures-to-deliver-headlace-malware/ [5] https://cert.gov.ua/article/6276894 [6] https://www.fortinet.com/blog/threat-research/teamcity-intrusion-saga-apt29-suspected-exploiting-cve-2023-42793 [7] https://cert.pl/en/posts/2023/12/apt29-teamcity [8] https://www.microsoft.com/en-us/security/blog/2023/12/07/star-blizzard-increases-sophistication-and-evasion-in-ongoing-attacks/ [9] https://home.treasury.gov/news/press-releases/jy1962 [10] https://blog.sekoia.io/calisto-doxxing-sekoia-io-findings-concurs-to-reuters-investigation-on-fsb-related-andrey-korinets/ [11] https://mp.weixin.qq.com/s?__biz=MzUyMjk4NzExMA==&mid=2247494512&idx=1&sn=151caeb7b46c3a6a58af714a576a8442

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) 매핑으로 계산한 후보입니다. 범위가 넓어 관련이 적은 장비가 섞입니다. 해당 장비가 이 공격을 탐지한다고 확인한 것은 아니며, 위의 '살펴볼 장비' 와 단계별 판정에는 쓰지 않습니다.

장비방법근거 경로
서버 접근제어 ACCESS attackCWE-288 > CAPEC-127 > T1083 > Command Execution
애플리케이션 로그 APPLOG attackCWE-288 > CAPEC-665 > T1211 > Application Log Content
엔드포인트 탐지·대응 EDR attackCWE-288 > CAPEC-127 > T1083 > Command Execution
계정·인증 (AD·LDAP·SSO) IAM attackCWE-288 > CAPEC-665 > T1556 > User Account Modification
자산·패치 관리 PMS attackCWE-288 > CAPEC-665 > T1542.002 > Firmware Modification
서버 감사 로그 SYSAUDIT attackCWE-288 > CAPEC-127 > T1083 > Command Execution
웹 방화벽 WAF attackCWE-288 > CAPEC-665 > T1211 > Application Log Content
웹서버·WAS 로그 WEBLOG attackCWE-288 > CAPEC-665 > T1211 > Application Log Content

취약점 종류 CWE

영향받는 제품 CPE · 1건
제조사제품영향받는 버전표준 표기CPE
jetbrainsteamcity 2023.05.4 미만 cpe:2.3:a:jetbrains:teamcity:*:*:*:*:*:*:*:*
참고 링크 14건
용어 설명 CVE · CVSS · EPSS · KEV · NVD …
CVE 취약점 번호
공개된 보안 취약점마다 붙는 국제 고유 번호입니다. 예: CVE-2021-44228(Log4j). 가운데 숫자는 번호를 받은 해입니다.
CVSS 위험도 점수
취약점이 얼마나 위험한지 0~10점으로 매긴 국제 표준 점수입니다. 심각 9.0 이상 · 높음 7.0~8.9 · 중간 4.0~6.9 · 낮음 0.1~3.9. 공격이 얼마나 쉬운지와 피해 크기로 정하며, 실제로 공격받고 있는지는 반영하지 않습니다.
EPSS 악용 가능성
앞으로 30일 안에 실제 공격에 쓰일 확률을 추정한 값(0~100%)입니다. 국제 보안 단체 FIRST 가 매일 계산합니다. 높을수록 먼저 조치하세요.
KEV 실제 악용 확인
미국 사이버보안청(CISA)이 실제 공격에 쓰인 것을 확인한 취약점만 모은 목록입니다. 여기에 있으면 가장 먼저 조치할 대상입니다. '랜섬웨어' 표시는 랜섬웨어 공격에 쓰인 것으로 알려진 것입니다.
공격 코드 공개된 PoC
NVD 참고 링크 중 '공격 코드(Exploit)' 표시가 붙은 것이 있다는 뜻입니다. 누구나 공격을 시도해 볼 수 있으므로 서두르는 게 좋지만, 실제 악용이 확인된 것(KEV)과는 다릅니다.
NVD 미국 취약점 DB
미국 국립표준기술연구소(NIST)가 운영하는 취약점 데이터베이스입니다. CVE 마다 설명·CVSS 점수·영향받는 제품·취약점 종류를 붙입니다. 이 사이트 설명의 원문 출처입니다.
우선순위 이 사이트의 참고 점수
CVSS·KEV·랜섬웨어·EPSS·ASEC 언급·공격 코드 공개를 합쳐 계산한 점수입니다. 높을수록 먼저 살펴보세요. 공식 점수가 아닙니다.
ASEC 안랩 분석 글
안랩 보안대응센터 블로그입니다. 'ASEC 3' 은 분석 글에 그 CVE 번호가 3번 나왔다는 뜻이며, 국내에서 악용이 확인됐다는 뜻은 아닙니다.
CWE 취약점 종류
취약점 종류의 분류 번호입니다. 예: CWE-89 SQL 인젝션, CWE-79 크로스 사이트 스크립팅.
CPE 영향받는 제품
취약점이 있는 제품과 버전을 적는 표준 표기입니다. 예: apache:tomcat 9.0.0~9.0.80.
KB Microsoft 업데이트 번호
Microsoft 가 업데이트마다 붙이는 번호입니다. 예: KB5068791. '수정된 버전' 은 업데이트 후의 빌드 번호로, 이보다 낮으면 업데이트가 필요합니다.
시나리오 · 번역
'시나리오' 는 단계별 판정 초안이 있다는 표시입니다(없다고 안전한 것은 아닙니다). '(번역)' 은 Claude 로 기계 번역한 설명입니다.