2
테이블 (15)
Redis 파이프라인 (Event Pipeline)
- 원본 이벤트 버퍼 (stream:events) — 소비 후 트리밍
- 상관 윈도우 상태 (correlation:{key_type}:{key_value}) — 사용자 아이디
공격 로그 (AttactLog)
- 요청 시각 (@timestamp) — date
- 이벤트 ID (event.id) — keyword
- 이벤트 모듈 (event.module) — keyword
- 이벤트 종류 (event.kind) — keyword
- 이벤트 유형 (event.action) — keyword
- 이벤트 여부 (event.outcom) — keyword
- 이벤트 심각도 (event.severity) — integer
- 이벤트 양식 (event.original) — text
- 룰 이름 (rule.id/rule.name) — keyword
관리자 감시 로그 (AuditLog)
- 사용자 ID (user_id) — string — 외래 키 → 유저.사용자 ID — dd
- 세션 토근 (token) — string/Key — 외래 키 → 관리자 로그인.세션 토근
- IP변경여부 (action) — enum
- 접근 테이블 (target_table) — string
- 행위 시각 (created_at) — datetime
- 관리자 접속 IP (ip_address) — string
관리자 로그인 (SessionStore)
- 세션 토근 (token) — string/Key — 기본 키
- 사용자 ID (user_id2) — string — 외래 키 → 유저.사용자 ID — dd
- 로그인 시각 (created_at) — datetime
- 세션 만료 시간 (ttl) — integer
- 관리자 아이디 (user_id) — FK
보안 이벤트 분석 (security_events_analytics)
- 이벤트 ID (event_id) — PK — 기본 키 — NOT NULL
- 로그 발생 시각 (timestamp) — DATETIME — NOT NULL
- 수집 모듈 (event_module) — string
- 이벤트 종류 (event_kind) — string
- 이벤트 결과 (event_outcome) — string
- 최소 위험도 (severity) — integer
- 탐지 규칙명 (rule_name) — string
- ip (source_ip) — string
- 국가 코드 (geo_country_iso_code) — string
- 사용자명 (user_name) — string
- 네임스페이스 (orchestrator_namespace) — string
- 오케스트레이터 리소스명 (orchestrator_resource_name) — string
블랙리스트 (IP_BLACKLIST)
- 차단돤 IP (id) — PK — 기본 키
- 차단 사유 (expires_at) — string
- 누적 공격 횟수 (hit_count) — integer
- 차단 시작 시각 (blocked_at) — datetime
- 수동 차단 여부 (is_manual) — boolean
- 차단 해제 시간 (ttl) — integer
상관분석 결과 (Incident)
- 고유 ID (id) — UUID / PK — 기본 키
- 자동 생성 요약 (title) — string
- 연결 타입 (correlation_key_type) — enum
- 실제 값 (correlation_key_value) — string
- 최고 심각도 (severity) — integer
- 상태 (status) — enum
- 수동 생성 인시던트 (matched_scenario_rule_id) — FK -> ScenarioRule.id
- 매핑 (mitre_tactics) — text
- 결과 시간 (created_at) — datetime
- 업데이트 시간 (updated_at) — datetime
상관분석 규칙 (ScenarioRule)
- ID (id) — UUID / PK — 기본 키
- 고유 ID (id2) — UUID / PK — 외래 키 → 상관분석 결과.고유 ID
- 이름 (name) — string
- 요구 모듈 (required_modules) — text
- 키 타입 (correlation_key_type) — enum
- 시간 (time_window_seconds) — integer
- 최소 위험도 (min_severity) — integer
- 여부 (enabled) — boolean
- 정규 공격 ID (mitre_technique_id) — string
- 수정 시간 (update_at) — datetime
- 생성 시간 (created_at) — FK -> User.id
심각도매핑 (event.severity)
- 1 (low)
알림 (AlertConfig)
- ID (id) — UUID/PK — 기본 키
- 서비스 이름 (name) — string — 외래 키 → 타켓.대상 ID
- 알림 대상 서비스 (target_id) — FK->Target.id
- 알림 타입 (alert_type) — enum
- 웹 훅 주소 (webhook_url) — string
- 알림 발생 기준 (threshold) — integer
예외 목록 (AllowList)
- 예외 id (id) — UUID — 기본 키
- 예외 적용 여부 (target_id) — FK -> Target.id — 외래 키 → 타켓.대상 ID
- 사용자 ID (user_id) — user.id — 외래 키 → 유저.사용자 ID — dd
- 예외 사유 (reason) — string
- 예외 만료 시각 (expires_at) — datetime
- 허용할 IP (ip_or_cidr) — string
- 등록일 (created_at) — datetime
- 수정일 (update_at) — 사용자 아이디
유저 (User)
- 사용자 ID (user_id) — UUID / PK — 기본 키 — dd
- 로그인 아이디 (username) — string
- 비밀번호 (password_hash) — string
- admin/viewer (role) — enum
- 계성 생성일 (created_at) — datetime
- 계정 수정일 (update_at) — datetime
이벤트 조인 (IncidentEvent)
- ID (id) — UUID / PK — 기본 키
- 고유 ID (id2) — UUID / PK — 외래 키 → 상관분석 결과.고유 ID
- Incident ID (incident_id) — FK -> Incident.id
- 이벤트 ID (event_id) — string
- 이벤트 모듈 (event_module) — keyword
- 묶인 시각 (added_at) — datetime
타켓 (TARGET_SERVICE)
- 대상 ID (id) — PK — 기본 키
- 백엔드 주소 (base_url) — string
- 감시 활성화 여부 (is_active) — boolean
- 서비스 이름 (name) — string
- 등록일 (created_at) — datetime
- 수정일 (update_at) — datetime
탐지 룰 (DETECTION_RULE)
- 룰 고유 ID (name) — string — 기본 키
- 사용자 ID (user_id) — string — 외래 키 → 유저.사용자 ID — dd
- 공격 타입 (attack_type) — enum
- 정규표현식 패턴 (pattern) — text
- 공격 수준 (severity) — text
- 활성화 여부 (enabled) — boolean
- 관리자 이름 (created_by) — FK -< User.id
- ATT&CK매핑 (mitre_technique) — string
- 등록일 (created_at) — datetime
- 수정일 (updated_at) — datetime