IT 정보/리눅스

🔒 실무 팁(고급): 리눅스 ‘auditd’로 커널 이벤트 실시간 탐지 및 Slack 연동

DONOT 2025. 5. 12. 19:10

<content>
<div style="font-family:'Noto Sans KR'; font-size:18px; color:#263238; font-weight:bold; margin-bottom:18px;">커널 레벨 보안 이벤트, 이제 실시간으로 모니터링!</div>
<div style="text-align:center;">
  <img src="http://t1.daumcdn.net/thumb/R1024x0/?fname=https://www.cyberciti.biz/media/new/faq/2022/12/linux-auditd-dashboard.png" alt="Linux auditd" style="max-width:90%; border-radius:12px;">
</div>
<div style="font-size:16px; color:#444; margin-top:20px; line-height:1.8;">
리눅스 서버에서 <b>auditd</b>를 활용해 <b>중요 커널 이벤트(예: su, sudo, root 권한 변경)</b>를 실시간 탐지하고, <b>Slack으로 자동 알림</b>을 보내는 고급 실전 팁입니다.<br><br>
<b>핵심 설정 예시</b>
<pre style="background:#f5f5f5; padding:12px; border-radius:8px; font-size:14px; font-family:'Consolas';">
# /etc/audit/rules.d/critical.rules
-w /etc/passwd -p wa -k passwd_changes
-w /bin/su -p x -k su_attempt

# Slack 연동 스크립트 (auditd dispatcher)
#!/bin/bash
while read line; do
  curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"Auditd Alert: $line\"}" https://hooks.slack.com/services/XXX/YYY/ZZZ
done
</pre>
<br>
<b>실무 적용 포인트</b><br>
<ul style="margin-left:20px;">
  <li>중요 시스템 변경, 권한 상승 시 즉시 관리자 알림</li>
  <li>보안 사고 조기 탐지 및 감사 대응 강화</li>
  <li>대규모 서버 환경에선 중앙 집중형 SIEM 연동 추천</li>
</ul>
</div>
<hr style="border:1px solid #e0e0e0; margin:30px 0;">
<blockquote style="font-size:15px; color:#888; border-left:3px solid #263238; padding-left:15px;">
auditd+Slack 연동으로 실시간 보안 모니터링 체계를 구축하세요!
</blockquote>
</content>

반응형