From 7974039de244276e3432f0ff6175442b2db0c77c Mon Sep 17 00:00:00 2001 From: happybell80 Date: Tue, 26 Aug 2025 15:01:32 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EB=B3=B4=EC=95=88=20=EA=B3=B5=EA=B2=A9?= =?UTF-8?q?=20=EC=B0=A8=EB=8B=A8=20=EC=A1=B0=EC=B9=98=20=EC=99=84=EB=A3=8C?= =?UTF-8?q?=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - iptables 7개 IP 차단 완료 - 규칙 영구 저장 완료 (/etc/iptables/rules.v4) - 차단 실행 결과 섹션 추가 - 상태를 '차단 완료'로 변경 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../250826_security_attack_detection.md | 41 +++++++++++++++---- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/troubleshooting/250826_security_attack_detection.md b/troubleshooting/250826_security_attack_detection.md index d658079..f9f6436 100644 --- a/troubleshooting/250826_security_attack_detection.md +++ b/troubleshooting/250826_security_attack_detection.md @@ -2,7 +2,7 @@ ## 작성일: 2025-08-26 ## 작성자: 서버 관리자 -## 상태: 대응 진행중 +## 상태: ✅ 차단 완료 (2025-08-26 15:00) ## 영향: 51123 서버 대상 자동화 공격 --- @@ -57,16 +57,17 @@ - ✅ Python/FastAPI 환경 (PHP 취약점 영향 없음) - ✅ Docker 컨테이너 격리 -### 3.2 추가 필요 조치 -- ❌ IP 차단 규칙 미설정 -- ❌ fail2ban 미구성 -- ❌ WAF 규칙 미적용 +### 3.2 적용된 차단 조치 (2025-08-26 15:00) +- ✅ IP 차단 규칙 적용 완료 (7개 IP) +- ✅ iptables-persistent 설치 및 규칙 영구 저장 +- ⏱️ fail2ban 설정 예정 +- ⏱️ WAF 규칙 적용 예정 --- -## 4. 대응 조치 계획 +## 4. 대응 조치 실행 결과 -### 4.1 즉시 차단 (iptables) +### 4.1 ✅ 즉시 차단 완료 (iptables) ```bash # 주요 공격 IP 차단 sudo iptables -A INPUT -s 185.177.72.10 -j DROP @@ -187,4 +188,28 @@ sudo tcpdump -i any src host 185.177.72.10 --- -*작성 완료: 2025-08-26 15:00* \ No newline at end of file +*작성 완료: 2025-08-26 15:00* +*차단 조치 완료: 2025-08-26 15:00* + +## 8. 차단 실행 결과 + +### 8.1 차단된 IP 목록 +```bash +# iptables 차단 규칙 확인 +sudo iptables -L INPUT -n -v | grep DROP + +# 결과: 7개 IP 차단 활성화 +185.177.72.10 (0 packets blocked) +119.8.169.21 (0 packets blocked) +111.119.234.186 (0 packets blocked) +103.225.9.122 (0 packets blocked) +142.93.90.55 (0 packets blocked) +8.213.41.158 (0 packets blocked) +185.177.72.29 (0 packets blocked) +``` + +### 8.2 영구 저장 상태 +- **파일 위치**: `/etc/iptables/rules.v4` +- **저장 시각**: 2025-08-26 14:58 +- **총 규칙 수**: 23개 (기존 규칙 포함) +- **재부팅 후**: 자동 적용 (netfilter-persistent 서비스) \ No newline at end of file