BLUEMAX NGF

Download 0
Last updated Oct 27, 2026

BLUEMAX NGF - Brute Force 공격

블루맥스 NGF 세션 로그에서 한 출발지가 같은 목적지의 인증 서비스 포트로 짧은 시간에 대량 접속하는 무차별 대입 공격을 탐지합니다.

Overview

Priority Medium
Type Batch
Schedule Every month/Every day/Every hour/Every 5 mins */5 * * * *
Message BLUEMAX NGF - Brute Force 공격 : $src_ip 에서 $dst_ip 의 $svc 에 Brute Force 공격 탐지
Output field order src_ip, dst_ip, dst_port, tcp_flags
MITRE Techniques T1110
MITRE tactics TA0006 Credential Access
Referenced objects 96679174-0b55-11ee-98d1-d08e790a1b5b Not in catalog
Origin User proposal letsgo

Query

1log from=$("from") to=$("to") schema="session" model="96679174-0b55-11ee-98d1-d08e790a1b5b" 2| search in(dst_port, 22, 23, 3389, 5900, 5901, 5902, 5985, 5986, 21, 445, 389, 636, 3306, 1433, 5432, 1521, 6379, 27017) 3| search contains(tcp_flags, "3Way OK") 4| join src_ip, dst_ip [ 5 log from=$("from") to=$("to") schema="session" model="96679174-0b55-11ee-98d1-d08e790a1b5b" 6 | search in(dst_port, 22, 23, 3389, 5900, 5901, 5902, 5985, 5986, 21, 445, 389, 636, 3306, 1433, 5432, 1521, 6379, 27017) 7 | search contains(tcp_flags, "3Way OK") 8 | stats 9 count as attempt_count, 10 dc(src_port) as distinct_sports, 11 min(_time) as first_seen, 12 max(_time) as last_seen 13 by src_ip, dst_ip, dst_port 14 | eval duration_min = datediff(first_seen, last_seen, "min") 15 | eval attempts_per_min = round(attempt_count / (duration_min + 1), 2) 16 | eval svc = case( 17 dst_port == 22, "SSH", 18 dst_port == 23, "Telnet", 19 dst_port == 3389, "RDP", 20 in(dst_port, 5900, 5901, 5902), "VNC", 21 in(dst_port, 5985, 5986), "WinRM", 22 dst_port == 21, "FTP", 23 dst_port == 445, "SMB", 24 in(dst_port, 389, 636), "LDAP", 25 dst_port == 3306, "MySQL", 26 dst_port == 1433, "MSSQL", 27 dst_port == 5432, "PostgreSQL", 28 dst_port == 1521, "Oracle", 29 dst_port == 6379, "Redis", 30 dst_port == 27017, "MongoDB", 31 true, "Other" 32 ) 33 | eval threshold = case( 34 in(dst_port, 22, 23, 5900, 5901, 5902), 30, 35 dst_port == 3389, 50, 36 in(dst_port, 5985, 5986, 21, 389, 636), 40, 37 in(dst_port, 445, 3306, 1433, 5432, 1521, 6379, 27017), 100, 38 true, 50 39 ) 40 | search attempt_count >= threshold and distinct_sports >= threshold and attempts_per_min >= 1 41]

5분마다 직전 5분의 블루맥스 NGF 세션 로그를 조회합니다. 목적지 포트가 SSH(22)·Telnet(23)·RDP(3389)·VNC(5900~5902)·WinRM(5985·5986)·FTP(21)·SMB(445)·LDAP(389·636)·MySQL(3306)·MSSQL(1433)·PostgreSQL(5432)·Oracle(1521)·Redis(6379)·MongoDB(27017)이고 TCP 연결이 성립한(tcp_flags에 3Way OK 포함) 세션을 출발지 IP·목적지 IP·목적지 포트별로 집계하여 접속 횟수(attempt_count), 서로 다른 출발지 포트 수(distinct_sports), 분당 접속 횟수(attempts_per_min)를 구합니다. 서비스별 임계치는 SSH·Telnet·VNC 30회, WinRM·FTP·LDAP 40회, RDP 50회, SMB·데이터베이스 100회입니다. 접속 횟수와 출발지 포트 수가 모두 임계치 이상이고 분당 1회 이상이면 탐지하며, 해당 출발지·목적지의 세션 원본을 조인하여 함께 제공합니다. 같은 출발지·목적지 IP 조합의 탐지는 1시간 동안 티켓 하나로 축약합니다.

Threat analysis

인증 서비스 포트로 짧은 시간에 연결이 반복되는 것은 계정과 암호 조합을 차례로 시도하는 무차별 대입 또는 암호 스프레이 공격의 형태입니다. 방화벽 세션 로그만으로는 로그인 성공 여부를 알 수 없으므로, 대상 서버의 인증 로그에서 성공한 로그인이 있는지 반드시 확인해야 합니다.

False positives

모니터링 시스템의 상태 점검, 연결 풀을 쓰지 않는 애플리케이션의 데이터베이스 접속, 백업·배포 도구는 짧은 시간에 많은 연결을 만들어 탐지될 수 있습니다. 확인된 서버는 src_ip와 dst_ip 조합 기준 예외 조건을 추가하고, 서비스별 임계치를 환경에 맞게 조정합니다.

Response actions

대상 서버의 인증 로그에서 같은 시각의 로그인 실패 횟수와 성공 여부를 확인합니다. 로그인 성공이 있으면 해당 계정의 암호를 즉시 변경하고 이후 행위를 조사합니다. 출발지가 외부이면 방화벽에서 차단하고, 내부이면 해당 단말의 감염 여부를 조사합니다. 대상 서비스에 계정 잠금 정책과 접근 대역 제한을 적용합니다.

No comments yet.