
Go to Top
Go to Top
Assetizing hacker knowledge, automating offensive security
Find vulnerabilities leading to data leaks from an attacker's view, and raise your security to respond.
About usAssetizing hacker knowledge, automating offensive security
Find vulnerabilities leading to data leaks from an attacker's view, and raise your security to respond.
About usThe choice of security-first
enterprises: Enki WhiteHat.
The choice of security-first
enterprises: Enki WhiteHat.
The choice of security-first
enterprises: Enki WhiteHat.
With extensive project experience across industries,
we provide customized security solutions tailored to your business environment and needs.
With extensive project experience across industries,
we provide customized security solutions tailored to your business environment and needs.
With extensive project experience across industries,
we provide customized security solutions tailored to your business environment and needs.

Manufacturing/Distribution

Finance

Security

IT

Public

National Defense










Manufacturing/Distribution

Finance

Security

IT

Public

National Defense









Unidentified hacks
and relentless breaches
Unidentified hacks
and relentless breaches
Unidentified hacks and relentless breaches
uncertainty keeps building up, while the burden of responsibility falls entirely on security teams.
uncertainty keeps building up, while the burden of responsibility falls entirely on security teams.
uncertainty keeps building up, while the burden of responsibility falls entirely on security teams.
With data breaches continuing to occur, is your company truly safe?
With data breaches continuing to occur, is your company truly safe?
With data breaches continuing to occur, is your company truly safe?
Uncontrolled IT Assets
Uncontrolled IT Assets
Sophisticated Attacks
Sophisticated Attacks
Frequent Feature Updates
Frequent Feature Updates
Increasing Vendor Connections
Increasing Vendor Connections
Cloud & Remote Work
Cloud & Remote Work
AI Service Adoption
AI Service Adoption
Shortage of Security Personnel
Shortage of Security Personnel
Stricter Regulatory Requirements
Stricter Regulatory Requirements
We uncover critical vulnerabilities that threaten your enterprise
We uncover critical vulnerabilities that threaten your enterprise
We uncover critical vulnerabilities that threaten your enterprise
Ethical white-hat hackers simulate attacks from the attacker’s perspective to
identify issues that could lead to financial loss, data breaches, or service disruptions.
Ethical white-hat hackers simulate attacks from the attacker’s perspective to
identify issues that could lead to financial loss, data breaches, or service disruptions.
Server Takeover &
Privilege Escalation
Server Takeover &
Privilege Escalation

Validate potential for root-level server access remotely
Validate potential for root-level server access remotely
Identify server takeover scenarios via unused ports and vulnerable services
Identify server takeover scenarios via unused ports and vulnerable services
Detect internal server access paths through service vulnerability analysis
Detect internal server access paths through service vulnerability analysis
Malicious Activity
Malicious Activity

Simulate duplication of e-currency/points and fraudulent payments
Simulate duplication of e-currency/points and fraudulent payments
Prove feasibility of creating and distributing malicious apps
Prove feasibility of creating and distributing malicious apps
Validate privilege escalation through vulnerabilities (XSS, data exposure, etc.)
Validate privilege escalation through vulnerabilities (XSS, data exposure, etc.)
Verify potential bypass routes via external staff/employee devices
Verify potential bypass routes via external staff/employee devices
Data Exfiltration
Data Exfiltration

Confirm risk of sensitive data leaks (customer PII, internal documents, etc.)
Confirm risk of sensitive data leaks (customer PII, internal documents, etc.)
Confirm risk of sensitive data leaks (customer PII, internal documents, etc.)
Demonstrate external data exfiltration via arbitrary command execution
Demonstrate external data exfiltration via arbitrary command execution
Validate customer data access after admin privilege hijacking
Validate customer data access after admin privilege hijacking
Assess data extraction risks from bypassing existing security solutions
Assess data extraction risks from bypassing existing security solutions
Reproduce external data transmission via SSH tunneling scenarios
Reproduce external data transmission via SSH tunneling scenarios

Stronger Security, Powered by
Stronger Security, Powered by
Stronger Security, Powered by
Stronger Security, Powered by
Stronger Security, Powered by
Stronger Security, Powered by
ENKI WhiteHat’s Offensive Security Platform
ENKI WhiteHat’s Offensive Security Platform
ENKI WhiteHat’s Offensive Security Platform
ENKI WhiteHat’s Offensive Security Platform
ENKI WhiteHat’s Offensive Security Platform
ENKI WhiteHat’s Offensive Security Platform
Identify threats from a hacker's perspective and innovate security with AI
to safely protect your business.
Identify threats from a hacker's perspective and innovate security with AI to safely protect your business.
Identify threats from a hacker's perspective and innovate security with AI to safely protect your business.
Enki Solutions
Enki Solutions
All-in-one offensive security solution
All-in-one offensive security solution
All-in-one offensive security solution
Vulnerability scans, wait no longer
Vulnerability scans, wait no longer
Vulnerability scans, wait no longer
Attack Surface Management (ASM)
Attack Surface Management (ASM)
Based on proprietary threat data,
unseen threats captured fully at a glance
Based on proprietary threat data,
unseen threats captured fully at a glance
Auto detect/verify new bugs
Auto detect/verify new bugs
Constantly monitoring hidden attack surfaces and potential threats
Constantly monitoring hidden attack surfaces and potential threats


Attack Surface Management (ASM)
Based on proprietary threat data,
unseen threats captured fully at a glance
Auto detect/verify new bugs
Constantly monitoring hidden attack surfaces and potential threats




Offensive PTaaS
Offensive PTaaS
Offensive PTaaS
From vulnerability assessments for compliance,
To deep pentesting and enterprise-wide red teaming
From vulnerability assessments for compliance,
To deep pentesting and enterprise-wide red teaming
From vulnerability assessments for compliance, To deep pentesting and enterprise-wide red teaming
Platform built on global top-tier white hackers' expertise
Platform built on global top-tier white hackers' expertise
Platform built on global top-tier white hackers' expertise
Streamlining On-Demand Premium Pentesting
Streamlining On-Demand Premium Pentesting
Streamlining On-Demand Premium Pentesting
AI-based DAST scan
AI-based DAST scan
AI-based DAST scan
Beyond the rule-based detection limits of automated tools, Realizing automated diagnosis and verification based on accumulated data and AI inference
Beyond the rule-based detection limits of automated tools, Realizing automated diagnosis and verification based on accumulated data and AI inference
Beyond the rule-based detection limits of automated tools, Realizing automated diagnosis and verification based on accumulated data and AI inference
Commercial & Proprietary AI-Powered Automated Black-Box Testing
Commercial & Proprietary AI-Powered Automated Black-Box Testing
Commercial & Proprietary AI-Powered Automated Black-Box Testing
Safe, accurate, complete diagnosis
Safe, accurate, complete diagnosis
Safe, accurate, complete diagnosis


AI Penetration Testing Automation Solution
AI Penetration Testing Automation Solution
AI Penetration Testing Automation Solution
Block threats proactively and automate management for next-level security.
Block threats proactively and automate management for next-level security.
Block threats proactively and automate management for next-level security.
AI Red Team
AI Red Team
AI Red Team
Automate penetration path and exploit validation based on real hacker attack techniques and scenarios.
Automate penetration path and exploit validation based on real hacker attack techniques and scenarios.
Automate penetration path and exploit validation based on real hacker attack techniques and scenarios.
Minimize false positives of existing security systems
Minimize false positives of existing security systems
Minimize false positives of existing security systems
Verify attack paths and feasibility
Verify attack paths and feasibility
Verify attack paths and feasibility




AI DAST
AI DAST
AI DAST
Auto-diagnose and verify vulnerabilities with AI-powered DAST
Auto-diagnose and verify vulnerabilities
with AI-powered DAST
Auto-diagnose and verify vulnerabilities
with AI-powered DAST
Auto vulnerability scanning & attack validation
Auto vulnerability scanning & attack validation
Auto vulnerability scanning & attack validation
Real-time AI Diagnosis Status Monitoring
Real-time AI Diagnosis Status Monitoring
Real-time AI Diagnosis Status Monitoring
Full Coverage
Full Coverage
Full Coverage
From External Web Entry Points to Internal Infrastructure Spreads Seamlessly Identifying the Potential for Threats to Occur
From External Web Entry Points to Internal Infrastructure Spreads Seamlessly Identifying the Potential for Threats to Occur
From External Web Entry Points to Internal Infrastructure Spreads Seamlessly Identifying the Potential for Threats to Occur
Thorough end-to-end verification
Thorough end-to-end verification
Thorough end-to-end verification
Auto-generate and run real attack scenarios
Auto-generate and run real attack scenarios
Auto-generate and run real attack scenarios




AI Report & Monitoring
AI Report & Monitoring
AI Report & Monitoring
Fast action supported by reproducible attacks and detailed reports, including follow-up verification.
Fast action supported by reproducible attacks and detailed reports, including follow-up verification.
Fast action supported by reproducible attacks and detailed reports, including follow-up verification.
Provide detailed, reproducible attack results
Provide detailed, reproducible attack results
Provide detailed, reproducible attack results
Vulnerability mitigation and verification
Vulnerability mitigation and verification
Vulnerability mitigation and verification
Practical security education & training platform
Practical security education & training platform
Practical security education & training platform
CAMP
Go to solutions
Unshakable resilience even in critical situations,
A security platform leveling up your team's practical skills
Unshakable resilience even in critical situations,
A security platform leveling up your team's practical skills
Unshakable resilience even in critical situations,
A security platform leveling up your team's practical skills
Practical Edu & Training
Practical Edu & Training
Solid security skills from the ground up, with hands-on theory and practice in digital forensics, incident response, malware analysis, web hacking, and security ops.
Solid security skills from the ground up, with hands-on theory and practice in digital forensics, incident response, malware analysis, web hacking, and security ops.
Enhancing practical security skills for both offensive and defensive roles
Enhancing practical security skills for both offensive and defensive roles
Acquire immediately applicable security skills
Acquire immediately applicable security skills


Practical Edu & Training
Solid security skills from the ground up, with hands-on theory and practice in digital forensics, incident response, malware analysis, web hacking, and security ops.
Enhancing practical security skills for both offensive and defensive roles
Acquire immediately applicable security skills




Wargame
Wargame
Wargame
Strengthen basic skills with practice content by tech area, and learn through sharing write-ups and a ranking system.
Strengthen basic skills with practice content by tech area, and learn through sharing write-ups and a ranking system.
Strengthen basic skills with practice content by tech area, and learn through sharing write-ups and a ranking system.
Learn practical hacking skills through step-by-step problem solving
Learn practical hacking skills through step-by-step problem solving
Learn practical hacking skills through step-by-step problem solving
Enhance security response with real attack-based content
Enhance security response with real attack-based content
Enhance security response with real attack-based content
Mentoring
Mentoring
Mentoring
Personal competency diagnosis and goal setting, with expert feedback and regular practical insights from ENKI White Hat mentors.
Personal competency diagnosis and goal setting, with expert feedback and regular practical insights from ENKI White Hat mentors.
Personal competency diagnosis and goal setting, with expert feedback and regular practical insights from ENKI White Hat mentors.
Expert feedback-based custom security skill enhancement
Expert feedback-based custom security skill enhancement
Expert feedback-based custom security skill enhancement
Goal-tailored curriculum and practical education design
Goal-tailored curriculum and practical education design
Goal-tailored curriculum and practical education design




Attack-Defense Exercises
Attack-Defense Exercises
Attack-Defense Exercises
Using real-world hacking cases (TTPs, vulns, scenarios), strengthen collab via real-time attack & defense drills in virtual infra reflecting the corporate environment.
Using real-world hacking cases (TTPs, vulns, scenarios), strengthen collab via real-time attack & defense drills in virtual infra reflecting the corporate environment.
Using real-world hacking cases (TTPs, vulns, scenarios), strengthen collab via real-time attack & defense drills in virtual infra reflecting the corporate environment.
Strengthen attack/defense response based on real-world scenarios
Strengthen attack/defense response based on real-world scenarios
Strengthen attack/defense response based on real-world scenarios
Enhancing collaboration via team-based practices
Enhancing collaboration via team-based practices
Enhancing collaboration via team-based practices
Enki Service
Enki Service

Offensive Security Assessments
Experienced and highly skilled ethical hackers assess your entire IT infrastructure, proactively identifying and validating security threats that could cause financial loss, data breaches, or service downtime, and provide strategic response plans.
more

Red Teaming

Compliance Audits

Penetration Testing

Remediation Checks

Cyber Threat Intelligence
Backed by the analysis of over 20,000 malware samples from North Korea, China, Russia, and beyond, our experts deliver refined threat intelligence and tailored response strategies. During incidents, we trace attacker behaviors, infiltration paths, and impact scope to eliminate root causes and strengthen defenses.
more

Malware Analysis

Digital Forensics

Prevent recurrence

Security Training & Exercises
As Korea’s #1 cyber defense competition operator, we provide high-quality, real-world challenges that simulate actual incidents. With extensive penetration testing and global competition experience, we deliver the latest cybersecurity training and customized practice environments designed to equip professionals with immediately applicable skills.
more

Hands-on Training

CTF Operations

Phishing Simulations

Offensive Security Assessments
Experienced and highly skilled ethical hackers assess your entire IT infrastructure, proactively identifying and validating security threats that could cause financial loss, data breaches, or service downtime, and provide strategic response plans.
more

Red Teaming

Compliance Audits

Penetration Testing

Remediation Checks

Cyber Threat Intelligence
Backed by the analysis of over 20,000 malware samples from North Korea, China, Russia, and beyond, our experts deliver refined threat intelligence and tailored response strategies. During incidents, we trace attacker behaviors, infiltration paths, and impact scope to eliminate root causes and strengthen defenses.
more

Malware Analysis

Digital Forensics

Prevent recurrence

Security Training & Exercises
As Korea’s #1 cyber defense competition operator, we provide high-quality, real-world challenges that simulate actual incidents. With extensive penetration testing and global competition experience, we deliver the latest cybersecurity training and customized practice environments designed to equip professionals with immediately applicable skills.
more

Hands-on Training

CTF Operations

Phishing Simulations
Check out the latest
threat insights and reports.
Check out the latest
threat insights and reports.
Check out the latest
threat insights and reports.
more

Vulnerability research
Vulnerability Analysis of NGINX2Shell and Four NGINX RCE
이 장에서는 5개 취약점의 분석에 필요한 공통 배경을 정리한다. HTTP/2 프로토콜의 프레임 구조와 흐름 제어는 CVE-2026-123007을 이해하는 데 필수적이며, nginx의 연결 슬롯 관리와 drain 메커니즘은 CVE-2026-123633과 CVE-2026-121810에서 공통으로 사용된다. 나머지 CVE에 고유한 배경(리졸버, 메일 프록시 등)은 해당 절에서 별도로 다룬다.2.1 HTTP/2 프레임과 스트림HTTP/2에서 모든 통신은 frame이라는 단위로 오간다. 하나의 frame은 9바이트 header와 그 뒤에 이어지는 payload로 구성되며, header에는 payload 길이, frame 종류(Type), 플래그, 그리고 이 frame이 어느 stream에 속하는지를 나타내는 31비트 Stream Identifier가 담긴다.필드크기의미Length24 bitpayload 길이(header 9바이트 제외). 기본 최대 16,384바이트Type8 bitframe 종류Flags8 bittype별 플래그 (END_STREAM 0x1, END_HEADERS 0x4 등)R1 bit예약 비트, 항상 0Stream Identifier31 bitframe이 속한 stream. 0이면 connection 전체에 대한 framestream은 connection 안의 논리적 채널이다. 요청-응답 한 쌍이 stream 하나를 쓰며, client가 여는 stream에는 홀수 ID(1, 3, 5, …)가 붙는다. Stream ID 0은 특정 요청이 아니라 connection 자체를 가리킨다. 모든 frame에 stream ID가 붙어 있으므로 한 connection 위에서 여러 stream의 frame을 섞어 보낼 수 있고, 이것이 HTTP/2의 multiplexing이다.frame은 10종류가 있는데, 이 취약점과 직접 관련되는 것은 여섯 가지다.Type이름용도0x0DATA응답/요청 body 전달. flow control 대상인 유일한 frame0x1HEADERS헤더 블록 전달. 요청·응답의 시작0x3RST_STREAMstream 하나를 즉시 취소0x4SETTINGSconnection 파라미터 교환0x7GOAWAYconnection 종료 예고0x8WINDOW_UPDATEflow control window 증가. Stream ID 0이면 connection 전체, 아니면 해당 stream2.2 HTTP/2 흐름 제어HTTP/2는 TCP의 flow control 위에 자체적인 flow control을 한 층 더 둔다. 한 stream이 connection 대역폭을 독점하거나 수신 측 버퍼를 넘치게 하는 것을 방지하기 위해서다. flow control이 적용되는 대상은 DATA frame뿐이며, HEADERS나 PING 같은 제어 frame은 window를 소모하지 않는다.window는 두 종류가 있다. 각 stream이 개별적으로 갖는 stream send window와, connection 전체에서 모든 stream이 공유하는 connection send window(Stream ID 0의 window)다. server가 DATA를 보내려면 해당 stream의 window와 connection window 양쪽 모두에 여유가 있어야 한다. 초기값은 둘 다 65,535바이트이고, 어느 쪽이든 최대 2^31−1(2,147,483,647)바이트를 넘을 수 없다. server가 DATA를 보내면 payload 크기만큼 양쪽 window가 줄어들고, client가 WINDOW_UPDATE frame을 보내면 지정한 양만큼 window가 늘어난다.이 동작을 구체적인 예로 보면 다음과 같다. client가 stream 1로 80,000바이트짜리 파일을, stream 3으로 30,000바이트짜리 파일을 요청했다고 하자. 기본 설정(INITIAL_WINDOW_SIZE 65,535, MAX_FRAME_SIZE 16,384)에서 각 window의 변화를 추적한 것이다.#frame (방향)stream 0stream 1stream 3설명0시작65,53565,53565,535HEADERS로 stream 1, 3이 열리며 각자 초기값을 받음1DATA s1 16,384 (S→C)49,15149,15165,535DATA 하나가 stream 0과 stream 1을 동시에 차감2DATA s3 16,384 (S→C)32,76749,15149,151stream 3의 DATA도 같은 stream 0에서 차감3DATA s1 16,384 (S→C)16,38332,76749,151connection window가 빠르게 줄어듦4DATA s3 13,616 + END_STREAM (S→C)2,76732,76735,535stream 3 전송 완료5DATA s1 2,767 (S→C)030,000–stream 1은 30,000이 남았지만 stream 0이 0이라 멈춤6WINDOW_UPDATE s0 +65,535 (C→S)65,53530,000–client가 connection window를 다시 채움이 표에서 주목할 점이 세 가지 있다. 첫째, stream 0은 모든 stream이 함께 쓰는 공유 예산이다. 어느 stream으로 DATA를 보내든 stream 0의 window가 같이 줄어든다. 둘째, stream이 종료되어도 이미 소모한 connection window는 자동으로 돌아오지 않는다. 4번에서 stream 3이 끝났지만 stream 0은 그대로다. connection window를 회복하는 유일한 방법은 client가 보내는 Stream ID 0 WINDOW_UPDATE다. 셋째, WINDOW_UPDATE는 데이터를 받는 쪽이 보낸다. server가 응답을 보내는 방향에서는 client가 언제, 얼마만큼 window를 늘릴지 결정한다.6번의 WINDOW_UPDATE frame을 바이트로 풀어 보면 다음과 같다.payload는 예약 비트 1개와 31비트 증가분으로 이루어진 4바이트다. 증가분이 31비트이므로 한 번에 늘릴 수 있는 최대치도 2^31−1이다.한 가지 더 알아야 할 것이 SETTINGS_INITIAL_WINDOW_SIZE의 동작이다. 이 설정은 stream window의 초기값만 바꾸고, connection window는 건드리지 않는다. 이미 열린 stream에는 "새 값 − 옛 값"만큼을 더하거나 빼므로 stream window는 음수가 될 수도 있다. 가령 위 예시의 6번 직후에 client가 INITIAL_WINDOW_SIZE를 16,384로 줄이면, stream 1의 window는 30,000 − 49,151 = −19,151이 된다. 이것은 오류가 아니며, server는 window가 다시 양수가 될 때까지 해당 stream에 DATA를 보내지 않고 기다린다. 반면 connection window(stream 0)는 65,535 그대로다. 공격자가 SETTINGS_INITIAL_WINDOW_SIZE를 0으로 보내 모든 stream의 DATA 전송을 멈출 수 있으면서도 connection window에는 영향을 주지 않는다는 성질이, 뒤에서 익스플로잇의 출발점이 된다.HTTP/2 규격은 window가 2^31−1을 넘는 상황에 대해 명확한 오류 처리를 규정하고 있다. WINDOW_UPDATE로 window가 상한을 넘으면 Stream ID 0인 경우 GOAWAY(connection error), 그 외에는 RST_STREAM(stream error)으로 FLOW_CONTROL_ERROR를 보내야 한다. 구현체가 이 상한 검사를 제대로 수행하지 않으면 window 값이 규격 범위를 벗어나고, 이후 그 값을 사용하는 모든 비교와 연산이 예상하지 못한 범위에서 수행된다.상황규격상 처리DATA 전송payload 크기를 stream window와 connection window 양쪽에서 차감WINDOW_UPDATE 증가분이 0Stream ID 0이면 connection error, 그 외면 stream error (PROTOCOL_ERROR)WINDOW_UPDATE로 window가 2^31−1 초과Stream ID 0이면 GOAWAY, 그 외면 RST_STREAM (FLOW_CONTROL_ERROR)SETTINGS_INITIAL_WINDOW_SIZE로 stream window가 2^31−1 초과connection error (FLOW_CONTROL_ERROR)flow control은 connection 양 끝 사이에서만 의미가 있다(hop-by-hop). CDN이나 reverse proxy가 앞단에서 HTTP/2를 종단하면, client와의 window는 그 장비가 따로 관리하고 뒤쪽 nginx와는 별개의 연결을 맺는다. 개요에서 CDN·WAF가 HTTP/2를 종단하는 구조에서는 공격 frame이 nginx까지 그대로 전달되지 않는다고 한 것은 이 때문이다.2.3 nginx 연결 관리nginx 워커가 동시에 유지할 수 있는 연결 수는 worker_connections 지시어로 제한된다. 클라이언트 연결과 업스트림(백엔드) 연결이 같은 풀의 슬롯을 공유한다. 새 연결을 열 때 ngx_get_connection() 함수가 슬롯을 할당하는데, 여유 슬롯이 부족하면 이 함수 내부에서 ngx_drain_connections()가 호출된다.nginx는 현재 활발히 사용되지 않는 연결을 reusable 연결 큐에 등록한다. HTTP/1.1 keep-alive 연결이나 활성 stream이 없는 HTTP/2 연결이 대표적이다. ngx_reusable_connection(c, 1)을 호출하면 큐의 맨 앞에 삽입되고, ngx_reusable_connection(c, 0)을 호출하면 큐에서 제거된다.새로 등록된 연결은 큐의 앞쪽에 들어가고, drain은 큐의 뒤쪽(가장 오래된 것)부터 꺼내 닫는다.여유 슬롯이 전체의 1/16 이하로 떨어지면, ngx_drain_connections()가 reusable 큐의 뒤쪽에서 연결을 꺼내 c->close = 1로 설정한 뒤 그 연결의 read handler를 직접 호출한다. 이 호출은 ngx_get_connection() 내부에서 동기적으로 실행된다. 새 연결 슬롯을 할당하려는 함수의 호출 스택 안에서 기존 연결의 read handler가 실행되는 구조다.이 drain 메커니즘은 CVE-2026-123633과 CVE-2026-121810의 공통 원인이다. 연결이 reusable 큐에 잘못 남아 있으면, 그 연결 위에서 요청을 처리하는 도중 drain에 의해 연결이 닫힐 수 있고, 이후 해제된 메모리에 접근하면서 use-after-free가 발생한다.

엔키화이트햇
Nov 20, 2026

Vulnerability research
Vulnerability Analysis of NGINX2Shell and Four NGINX RCE
이 장에서는 5개 취약점의 분석에 필요한 공통 배경을 정리한다. HTTP/2 프로토콜의 프레임 구조와 흐름 제어는 CVE-2026-123007을 이해하는 데 필수적이며, nginx의 연결 슬롯 관리와 drain 메커니즘은 CVE-2026-123633과 CVE-2026-121810에서 공통으로 사용된다. 나머지 CVE에 고유한 배경(리졸버, 메일 프록시 등)은 해당 절에서 별도로 다룬다.2.1 HTTP/2 프레임과 스트림HTTP/2에서 모든 통신은 frame이라는 단위로 오간다. 하나의 frame은 9바이트 header와 그 뒤에 이어지는 payload로 구성되며, header에는 payload 길이, frame 종류(Type), 플래그, 그리고 이 frame이 어느 stream에 속하는지를 나타내는 31비트 Stream Identifier가 담긴다.필드크기의미Length24 bitpayload 길이(header 9바이트 제외). 기본 최대 16,384바이트Type8 bitframe 종류Flags8 bittype별 플래그 (END_STREAM 0x1, END_HEADERS 0x4 등)R1 bit예약 비트, 항상 0Stream Identifier31 bitframe이 속한 stream. 0이면 connection 전체에 대한 framestream은 connection 안의 논리적 채널이다. 요청-응답 한 쌍이 stream 하나를 쓰며, client가 여는 stream에는 홀수 ID(1, 3, 5, …)가 붙는다. Stream ID 0은 특정 요청이 아니라 connection 자체를 가리킨다. 모든 frame에 stream ID가 붙어 있으므로 한 connection 위에서 여러 stream의 frame을 섞어 보낼 수 있고, 이것이 HTTP/2의 multiplexing이다.frame은 10종류가 있는데, 이 취약점과 직접 관련되는 것은 여섯 가지다.Type이름용도0x0DATA응답/요청 body 전달. flow control 대상인 유일한 frame0x1HEADERS헤더 블록 전달. 요청·응답의 시작0x3RST_STREAMstream 하나를 즉시 취소0x4SETTINGSconnection 파라미터 교환0x7GOAWAYconnection 종료 예고0x8WINDOW_UPDATEflow control window 증가. Stream ID 0이면 connection 전체, 아니면 해당 stream2.2 HTTP/2 흐름 제어HTTP/2는 TCP의 flow control 위에 자체적인 flow control을 한 층 더 둔다. 한 stream이 connection 대역폭을 독점하거나 수신 측 버퍼를 넘치게 하는 것을 방지하기 위해서다. flow control이 적용되는 대상은 DATA frame뿐이며, HEADERS나 PING 같은 제어 frame은 window를 소모하지 않는다.window는 두 종류가 있다. 각 stream이 개별적으로 갖는 stream send window와, connection 전체에서 모든 stream이 공유하는 connection send window(Stream ID 0의 window)다. server가 DATA를 보내려면 해당 stream의 window와 connection window 양쪽 모두에 여유가 있어야 한다. 초기값은 둘 다 65,535바이트이고, 어느 쪽이든 최대 2^31−1(2,147,483,647)바이트를 넘을 수 없다. server가 DATA를 보내면 payload 크기만큼 양쪽 window가 줄어들고, client가 WINDOW_UPDATE frame을 보내면 지정한 양만큼 window가 늘어난다.이 동작을 구체적인 예로 보면 다음과 같다. client가 stream 1로 80,000바이트짜리 파일을, stream 3으로 30,000바이트짜리 파일을 요청했다고 하자. 기본 설정(INITIAL_WINDOW_SIZE 65,535, MAX_FRAME_SIZE 16,384)에서 각 window의 변화를 추적한 것이다.#frame (방향)stream 0stream 1stream 3설명0시작65,53565,53565,535HEADERS로 stream 1, 3이 열리며 각자 초기값을 받음1DATA s1 16,384 (S→C)49,15149,15165,535DATA 하나가 stream 0과 stream 1을 동시에 차감2DATA s3 16,384 (S→C)32,76749,15149,151stream 3의 DATA도 같은 stream 0에서 차감3DATA s1 16,384 (S→C)16,38332,76749,151connection window가 빠르게 줄어듦4DATA s3 13,616 + END_STREAM (S→C)2,76732,76735,535stream 3 전송 완료5DATA s1 2,767 (S→C)030,000–stream 1은 30,000이 남았지만 stream 0이 0이라 멈춤6WINDOW_UPDATE s0 +65,535 (C→S)65,53530,000–client가 connection window를 다시 채움이 표에서 주목할 점이 세 가지 있다. 첫째, stream 0은 모든 stream이 함께 쓰는 공유 예산이다. 어느 stream으로 DATA를 보내든 stream 0의 window가 같이 줄어든다. 둘째, stream이 종료되어도 이미 소모한 connection window는 자동으로 돌아오지 않는다. 4번에서 stream 3이 끝났지만 stream 0은 그대로다. connection window를 회복하는 유일한 방법은 client가 보내는 Stream ID 0 WINDOW_UPDATE다. 셋째, WINDOW_UPDATE는 데이터를 받는 쪽이 보낸다. server가 응답을 보내는 방향에서는 client가 언제, 얼마만큼 window를 늘릴지 결정한다.6번의 WINDOW_UPDATE frame을 바이트로 풀어 보면 다음과 같다.payload는 예약 비트 1개와 31비트 증가분으로 이루어진 4바이트다. 증가분이 31비트이므로 한 번에 늘릴 수 있는 최대치도 2^31−1이다.한 가지 더 알아야 할 것이 SETTINGS_INITIAL_WINDOW_SIZE의 동작이다. 이 설정은 stream window의 초기값만 바꾸고, connection window는 건드리지 않는다. 이미 열린 stream에는 "새 값 − 옛 값"만큼을 더하거나 빼므로 stream window는 음수가 될 수도 있다. 가령 위 예시의 6번 직후에 client가 INITIAL_WINDOW_SIZE를 16,384로 줄이면, stream 1의 window는 30,000 − 49,151 = −19,151이 된다. 이것은 오류가 아니며, server는 window가 다시 양수가 될 때까지 해당 stream에 DATA를 보내지 않고 기다린다. 반면 connection window(stream 0)는 65,535 그대로다. 공격자가 SETTINGS_INITIAL_WINDOW_SIZE를 0으로 보내 모든 stream의 DATA 전송을 멈출 수 있으면서도 connection window에는 영향을 주지 않는다는 성질이, 뒤에서 익스플로잇의 출발점이 된다.HTTP/2 규격은 window가 2^31−1을 넘는 상황에 대해 명확한 오류 처리를 규정하고 있다. WINDOW_UPDATE로 window가 상한을 넘으면 Stream ID 0인 경우 GOAWAY(connection error), 그 외에는 RST_STREAM(stream error)으로 FLOW_CONTROL_ERROR를 보내야 한다. 구현체가 이 상한 검사를 제대로 수행하지 않으면 window 값이 규격 범위를 벗어나고, 이후 그 값을 사용하는 모든 비교와 연산이 예상하지 못한 범위에서 수행된다.상황규격상 처리DATA 전송payload 크기를 stream window와 connection window 양쪽에서 차감WINDOW_UPDATE 증가분이 0Stream ID 0이면 connection error, 그 외면 stream error (PROTOCOL_ERROR)WINDOW_UPDATE로 window가 2^31−1 초과Stream ID 0이면 GOAWAY, 그 외면 RST_STREAM (FLOW_CONTROL_ERROR)SETTINGS_INITIAL_WINDOW_SIZE로 stream window가 2^31−1 초과connection error (FLOW_CONTROL_ERROR)flow control은 connection 양 끝 사이에서만 의미가 있다(hop-by-hop). CDN이나 reverse proxy가 앞단에서 HTTP/2를 종단하면, client와의 window는 그 장비가 따로 관리하고 뒤쪽 nginx와는 별개의 연결을 맺는다. 개요에서 CDN·WAF가 HTTP/2를 종단하는 구조에서는 공격 frame이 nginx까지 그대로 전달되지 않는다고 한 것은 이 때문이다.2.3 nginx 연결 관리nginx 워커가 동시에 유지할 수 있는 연결 수는 worker_connections 지시어로 제한된다. 클라이언트 연결과 업스트림(백엔드) 연결이 같은 풀의 슬롯을 공유한다. 새 연결을 열 때 ngx_get_connection() 함수가 슬롯을 할당하는데, 여유 슬롯이 부족하면 이 함수 내부에서 ngx_drain_connections()가 호출된다.nginx는 현재 활발히 사용되지 않는 연결을 reusable 연결 큐에 등록한다. HTTP/1.1 keep-alive 연결이나 활성 stream이 없는 HTTP/2 연결이 대표적이다. ngx_reusable_connection(c, 1)을 호출하면 큐의 맨 앞에 삽입되고, ngx_reusable_connection(c, 0)을 호출하면 큐에서 제거된다.새로 등록된 연결은 큐의 앞쪽에 들어가고, drain은 큐의 뒤쪽(가장 오래된 것)부터 꺼내 닫는다.여유 슬롯이 전체의 1/16 이하로 떨어지면, ngx_drain_connections()가 reusable 큐의 뒤쪽에서 연결을 꺼내 c->close = 1로 설정한 뒤 그 연결의 read handler를 직접 호출한다. 이 호출은 ngx_get_connection() 내부에서 동기적으로 실행된다. 새 연결 슬롯을 할당하려는 함수의 호출 스택 안에서 기존 연결의 read handler가 실행되는 구조다.이 drain 메커니즘은 CVE-2026-123633과 CVE-2026-121810의 공통 원인이다. 연결이 reusable 큐에 잘못 남아 있으면, 그 연결 위에서 요청을 처리하는 도중 drain에 의해 연결이 닫힐 수 있고, 이후 해제된 메모리에 접근하면서 use-after-free가 발생한다.

엔키화이트햇
Nov 20, 2026

Vulnerability research
Vulnerability Analysis of Java4Shell (CVE-2026-114938)
OpenJDK와 Java 실행 환경OpenJDK는 Java SE를 구현하는 오픈소스 프로젝트다. OpenJDK가 만드는 JDK에는 javac 같은 개발 도구, 표준 라이브러리, Java 프로그램을 실행하는 JVM이 들어 있다. 표준 라이브러리는 애플리케이션이 호출할 클래스를 제공하고, JVM은 코드 실행과 메모리 관리를 맡는다. java.lang과 java.util 등이 속한 java.base는 표준 라이브러리의 기본 모듈이다.JRE는 Java 프로그램 실행에 필요한 JVM과 라이브러리를 묶은 배포 형태다. JDK에도 이 실행 환경이 포함돼 있으므로 별도 JRE 없이 프로그램을 실행할 수 있다.HotSpot과 JIT 컴파일JVM은 Java 바이트코드를 실행하는 가상 머신을 말한다. 이번 분석에 사용한 OpenJDK 빌드에서는 HotSpot이 JVM 구현을 맡는다. HotSpot에는 바이트코드를 해석해 실행하는 인터프리터, 자주 실행되는 코드를 기계어로 바꾸는 JIT 컴파일러, Java 힙을 관리하는 GC 등이 포함된다.HotSpot의 계층형 컴파일에는 C1과 C2가 사용된다. C1은 실행 정보를 수집하면서 빠르게 컴파일하고, C2는 수집된 정보를 바탕으로 더 적극적인 최적화를 수행한다. HotSpot은 일부 라이브러리 호출을 별도로 준비한 최적화 코드로 대체하기도 한다. 이런 치환을 intrinsic이라고 한다. 실제 실행 경로는 JVM 설정과 CPU 기능에 따라 달라진다.

엔키화이트햇
Nov 18, 2026

Vulnerability research
Vulnerability Analysis of Java4Shell (CVE-2026-114938)
OpenJDK와 Java 실행 환경OpenJDK는 Java SE를 구현하는 오픈소스 프로젝트다. OpenJDK가 만드는 JDK에는 javac 같은 개발 도구, 표준 라이브러리, Java 프로그램을 실행하는 JVM이 들어 있다. 표준 라이브러리는 애플리케이션이 호출할 클래스를 제공하고, JVM은 코드 실행과 메모리 관리를 맡는다. java.lang과 java.util 등이 속한 java.base는 표준 라이브러리의 기본 모듈이다.JRE는 Java 프로그램 실행에 필요한 JVM과 라이브러리를 묶은 배포 형태다. JDK에도 이 실행 환경이 포함돼 있으므로 별도 JRE 없이 프로그램을 실행할 수 있다.HotSpot과 JIT 컴파일JVM은 Java 바이트코드를 실행하는 가상 머신을 말한다. 이번 분석에 사용한 OpenJDK 빌드에서는 HotSpot이 JVM 구현을 맡는다. HotSpot에는 바이트코드를 해석해 실행하는 인터프리터, 자주 실행되는 코드를 기계어로 바꾸는 JIT 컴파일러, Java 힙을 관리하는 GC 등이 포함된다.HotSpot의 계층형 컴파일에는 C1과 C2가 사용된다. C1은 실행 정보를 수집하면서 빠르게 컴파일하고, C2는 수집된 정보를 바탕으로 더 적극적인 최적화를 수행한다. HotSpot은 일부 라이브러리 호출을 별도로 준비한 최적화 코드로 대체하기도 한다. 이런 치환을 intrinsic이라고 한다. 실제 실행 경로는 JVM 설정과 CPU 기능에 따라 달라진다.

엔키화이트햇
Nov 18, 2026

Threat Intelligence
Analysis of TonRAT Malware Distributed to Travel Agencies
Since early 2026, Windows shortcut files (LNK) with names with the same pattern have been consistently identified by VirusTotal. The LNK files are disguised as image and video files, and when executed, they receive and execute a PowerShell script from the attacker's server, download NodeJS, and ultimately execute the TonRAT malware written in JavaScript.As a result of checking an external report [1], it was confirmed that the LNK files were distributed to overseas travel agency employees and related lodging companies. TonRAT malware accesses the specific contract 0:c66119f0e5635c4380441d7a79baf0c02a0ab7ea6cd78de06507fc5dc2c1a5d9 of the TON (The Open Network) blockchain developed by Telegram, obtains the C&C server domain address, and receives commands through WebSocket. In addition, the function of receiving a PE file from an external URL, loading it into memory and executing it, and a self-update function are implemented, allowing the attacker to execute additional payload.The TonRAT malware applies a commercial function (VM obfuscation) of obfuscator.io, a JavaScript obfuscation tool, so the functions that perform major malicious actions are virtualized, making static and dynamic analysis difficult. Afterwards, the attacker continued to update and redistribute the malware at a rapid rate, and also continuously changed the obfuscation pattern.

ENKI WhiteHat
Oct 30, 2026

Threat Intelligence
Analysis of TonRAT Malware Distributed to Travel Agencies
Since early 2026, Windows shortcut files (LNK) with names with the same pattern have been consistently identified by VirusTotal. The LNK files are disguised as image and video files, and when executed, they receive and execute a PowerShell script from the attacker's server, download NodeJS, and ultimately execute the TonRAT malware written in JavaScript.As a result of checking an external report [1], it was confirmed that the LNK files were distributed to overseas travel agency employees and related lodging companies. TonRAT malware accesses the specific contract 0:c66119f0e5635c4380441d7a79baf0c02a0ab7ea6cd78de06507fc5dc2c1a5d9 of the TON (The Open Network) blockchain developed by Telegram, obtains the C&C server domain address, and receives commands through WebSocket. In addition, the function of receiving a PE file from an external URL, loading it into memory and executing it, and a self-update function are implemented, allowing the attacker to execute additional payload.The TonRAT malware applies a commercial function (VM obfuscation) of obfuscator.io, a JavaScript obfuscation tool, so the functions that perform major malicious actions are virtualized, making static and dynamic analysis difficult. Afterwards, the attacker continued to update and redistribute the malware at a rapid rate, and also continuously changed the obfuscation pattern.

ENKI WhiteHat
Oct 30, 2026

Are you ready to begin building worry-free tomorrow security?
Prepare Before a Security Incident Occurs

Are you ready to begin building worry-free tomorrow security?
Prepare Before a Security Incident Occurs

Are you ready to begin building worry-free tomorrow security?
Prepare Before a Security Incident Occurs






