# Online Self-Supervised Deep Learning for Intrusion Detection Systems

침입 탐지 시스템을 위한 온라인 자기지도 심층 학습

Mert Nakıp, Erol Gelenbe · arXiv · 2023년 6월 22일

- **연구 문제** 라벨과 오프라인 데이터 없이 IDS 파라미터를 온라인으로 갱신하는 방법이 필요합니다.
- **연구 방법** SSID는 IDS 자신의 판단과 신뢰도 Γ로 학습 패킷을 선택하고 갱신 시점을 정하는 자기지도 온라인 학습 프레임워크입니다.
- **주요 결과** Kitsune 악성 트래픽 탐지에서 SSID 하의 AADRNN은 4,161개 패킷으로 학습하여 오프라인 학습 모델과 경쟁력 있는 성능을 보였습니다.

## 온라인 침입 탐지의 문제

기존 딥러닝 기반 침입 탐지 시스템은 주로 오프라인에서 수집한 정상 트래픽으로 파라미터를 학습합니다. 네트워크 트래픽의 정상 행동은 장치 추가나 환경 변화에 따라 시간이 지나며 바뀌므로, 학습이 끝난 뒤의 모델은 새 정상 패턴에 적응하지 못해 거짓 경보가 늘어날 수 있습니다.

온라인 학습으로 이 문제를 줄이려면 어떤 트래픽을 학습에 쓸지, 언제 파라미터를 갱신할지를 정해야 합니다. 원문은 라벨링된 데이터가 항상 확보되지 않고, 갱신 주기가 짧으면 계산 비용이 커지며 길면 변화에 늦게 대응한다는 점을 함께 제시합니다. 이 논문은 이러한 상황에서 사람의 개입과 사전 오프라인 데이터 없이 IDS가 스스로 학습하는 방법을 다룹니다.

## SSID 프레임워크의 구조

SSID는 IDS가 내린 판단만을 이용해 들어오는 패킷을 자기지도 방식으로 선택하고, IDS의 신뢰도 계수 Γ를 계산합니다. 원문에 따르면 SSID는 Γ를 이용해 학습 패킷을 고르고 파라미터를 갱신할 시점을 결정합니다. 초기 학습 단계에서는 Γ가 0에서 시작하여 Γ가 임계값 Θ 이상이 되면 초기 학습이 완료됩니다. 이후 온라인 학습 단계에서는 Γ가 Θ보다 낮고 배치 크기가 K 이상이며 최근 I개 패킷의 평균 판단이 γ 이하일 때 파라미터를 갱신합니다. 평균 판단이 γ를 넘으면 배치를 비웁니다.

![Figure 2: Detection and learning processes of IDS within the Fully Online Self-Supervised Intrusion Detection (SSID) framework](https://refivu.com/papers/5b2dc5eb-5b04-4003-9688-63d5f91512ca/figures/figure-d75eadd6cddfb50d917304b62e1f65d2.png?thumb=512)

**Fig. 2** . Detection and learning processes of IDS within the Fully Online Self-Supervised Intrusion Detection (SSID) framework

[원문](https://arxiv.org/abs/2306.13030v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mert Nakıp, Erol Gelenbe · Online Self-Supervised Deep Learning for Intrusion Detection Systems · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

이 구조에서 IDS 자체는 바뀌지 않으며, SSID는 IDS의 판단을 어떻게 학습에 되먹일지를 결정하는 바깥 계층입니다. 원문은 IDS로 AADRNN을 사용하지만, SSID는 학습 가능한 파라미터를 가진 다른 IDS에도 적용될 수 있다고 설명합니다.

![Figure 1: Particular structure of IDS used within the SSID framework during performance evaluation](https://refivu.com/papers/5b2dc5eb-5b04-4003-9688-63d5f91512ca/figures/figure-6a50ac88534d76b03f83aa131102abac.png?thumb=512)

**Fig. 1** . Particular structure of IDS used within the SSID framework during performance evaluation

[원문](https://arxiv.org/abs/2306.13030v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mert Nakıp, Erol Gelenbe · Online Self-Supervised Deep Learning for Intrusion Detection Systems · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## 패킷 선택과 신뢰도 계수

패킷 선택은 IDS 출력 yi와 신뢰도 Γ에 따라 확률적으로 이루어집니다. 원문은 악성 샘플로 선택될 확률을 p+i = Γ yi, 정상 샘플로 선택될 확률을 p−i = Γ(1 − yi), 제외될 확률을 qi = 1 − Γ로 정의합니다. 따라서 Γ가 0이면 모든 패킷이 제외되며, 원문은 첫 패킷은 정상 샘플로 선택된다고 설명합니다.

![Figure 3: Block diagram of the learning process in the SSID framework for online self-supervised learning of the parameters of IDS](https://refivu.com/papers/5b2dc5eb-5b04-4003-9688-63d5f91512ca/figures/figure-0a84205023819c15800c481f45f32613.png?thumb=512)

**Fig. 3** . Block diagram of the learning process in the SSID framework for online self-supervised learning of the parameters of IDS

[원문](https://arxiv.org/abs/2306.13030v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mert Nakıp, Erol Gelenbe · Online Self-Supervised Deep Learning for Intrusion Detection Systems · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

신뢰도 계수는 Γ = Crep · Cgen으로 정의됩니다. Crep은 학습된 패킷이 관측 트래픽을 얼마나 대표하는지를, Cgen은 IDS의 일반화 능력을 나타냅니다. 두 값은 모두 \[0, 1\] 범위입니다.

![Figure 5: Predictions of SSID and the value of trust coefficient Γ with respect to time](https://refivu.com/papers/5b2dc5eb-5b04-4003-9688-63d5f91512ca/figures/figure-a6c8fc1ca4fd9b2d457f3d16cc3b0192.png?thumb=512)

**Fig. 5** . Predictions of SSID and the value of trust coefficient Γ with respect to time

[원문](https://arxiv.org/abs/2306.13030v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mert Nakıp, Erol Gelenbe · Online Self-Supervised Deep Learning for Intrusion Detection Systems · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 대표성 계수의 KL-Divergence 계산

Crep은 학습에 사용된 패킷의 분포와 관측된 정상 트래픽의 분포를 비교하여 계산됩니다. 원문은 패킷 전송 시간 TT와 패킷 길이 PL을 독립이며 지수분포를 따른다고 가정합니다. 이 가정 아래에서 두 분포 사이의 KL-Divergence는 전송 시간에 대해 DTT\_KL = log(λo/λl) − (λo − λl)/λo, 패킷 길이에 대해 DPL\_KL = log(µo/µl) − (µo − µl)/µo로 주어집니다.

원문은 KL-Divergence가 상한이 없고 값이 커질수록 유사도가 낮아지므로, 지수 정규화 DTT\_KL−norm = e^(−DTT\_KL)와 DPL\_KL−norm = e^(−DPL\_KL)을 사용합니다. 두 값을 c1 = c2 = 0.5로 평균하여 Crep = 0.5\[e^(−DTT\_KL) + e^(−DPL\_KL)\]를 얻습니다. 따라서 Crep은 두 분포가 가까울수록 1에 가까워지는 구조입니다.

## 일반화 계수와 학습 오차

Cgen은 데이터 적절성 Δ와 지식 κ를 같은 가중치 0.5로 결합합니다. Δ는 학습 패킷 수가 학습 가능한 파라미터 수 W에 비해 얼마나 충분한지를 나타내며, 누적 학습 패킷 수가 W 이하이면 0입니다. κ는 각 학습 단계의 경험적 오차 E(k)에 (1/2)^(l−k+1) 가중치를 둔 값을 1에서 뺀 것입니다. 원문은 검증 데이터가 없는 최악의 경우를 가정하여 학습 패킷에서 얻은 E(l)만 사용한다고 밝힙니다.

학습 오차는 학습 배치 안 패킷의 IDS 출력 yi의 평균으로 정의됩니다. 낮은 오차가 누적되면 κ가 커지고, 그 결과 Cgen이 커집니다.

## 악성 트래픽 탐지 결과

악성 트래픽 탐지 실험은 Kitsune 데이터셋의 Mirai 봇넷 공격을 사용합니다. 이 데이터셋에는 764,137개의 패킷이 있으며, 그중 121,621개가 정상, 642,516개가 악성입니다. 원문은 SSID 하의 AADRNN 기반 IDS가 매우 낮은 FPR 약 10^(−5)에서도 TPR 0.995 이상을 보인다고 보고합니다.

비교 실험에서 오프라인 학습 모델은 처음 83,000개의 정상 패킷으로 학습되었고, 증분 학습 모델은 750개 패킷 단위로 자기 판단을 이용해 갱신되었습니다. 원문은 SSID가 4,161개 패킷으로 학습했으며 오프라인 학습과 경쟁력 있는 결과를 보였고, 증분 학습보다 모든 성능 지표에서 높았다고 보고합니다. 또한 MLP를 SSID 하에서 학습한 SSID-MLP도 오프라인 MLP와 비슷하거나 약간 높은 정확도와 TPR을 보였지만, 오프라인 MLP는 거짓 경보가 없는 100% TNR을 보였습니다.

![Figure 8: Performance comparison between the ML models under the SSID framework and those with offline learning](https://refivu.com/papers/5b2dc5eb-5b04-4003-9688-63d5f91512ca/figures/figure-1d7ea4a84f93a9a1de0dbd40eda54886.png?thumb=512)

**Fig. 8** . Performance comparison between the ML models under the SSID framework and those with offline learning

[원문](https://arxiv.org/abs/2306.13030v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mert Nakıp, Erol Gelenbe · Online Self-Supervised Deep Learning for Intrusion Detection Systems · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## 침해 장치 식별 결과

침해 장치 식별 실험은 CDIS를 SSID 하에서 학습한 SSID-CDIS와 순차 학습 CDIS를 비교합니다. 평가는 10초 시간 창에서 수행되며 지표는 Balanced Accuracy입니다. Kitsune의 Mirai 공격에서 원문은 SSID-CDIS의 평균 Balanced Accuracy가 89.1, CDIS가 87.7이라고 보고하며, TPR은 SSID-CDIS가 60.6, CDIS가 90.3으로 낮습니다. 따라서 평균 정확도와 TNR은 높아졌지만 TPR은 낮아졌습니다.

Kitsune의 SYN DoS 공격에서는 SSID-CDIS가 중앙값 100%를 보였고 CDIS에는 50%와 1%의 이상치 IP가 있었습니다. Bot-IoT의 DDoS TCP와 UDP 공격에서도 중앙값이 각각 18%와 11% 향상되었다고 원문은 보고합니다. 다만 Bot-IoT의 DDoS HTTP에서는 두 방법의 전체 성능이 거의 같았습니다.

![Figure 10: Performance comparison of the CDIS trained under the SSID framework with that under sequential learning on Bot-IoT dataset](https://refivu.com/papers/5b2dc5eb-5b04-4003-9688-63d5f91512ca/figures/figure-d85ea92b8259da67e5fa656596c9db37.png?thumb=512)

**Fig. 10** . Performance comparison of the CDIS trained under the SSID framework with that under sequential learning on Bot-IoT dataset

[원문](https://arxiv.org/abs/2306.13030v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mert Nakıp, Erol Gelenbe · Online Self-Supervised Deep Learning for Intrusion Detection Systems · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

본 논문의 학습 설계는 특정 가정에 기대고 있습니다. 트래픽 모델은 패킷 전송 시간과 길이의 독립성 및 지수분포를 가정하며, 원문은 특정 응용에서는 이 가정을 바꿔 방법을 적용할 수 있다고 밝힙니다. 또한 검증 데이터가 없는 상황을 최악의 경우로 가정하여 지식 계수를 계산합니다.

침해 장치 식별에서 SSID-CDIS는 Mirai 공격의 평균 TPR이 순차 학습 CDIS보다 낮았습니다. 원문은 이 결과와 함께 SSID-CDIS가 더 낮은 거짓 경보율을 보였다고 설명합니다. 원문은 사전 학습된 IDS를 학습하지 않은 새 네트워크에 적응시키는 것과 연합 학습과의 결합을 향후 과제로 제시하며, 이 결과들이 그 적용을 이미 검증했다고 보고하지 않습니다.

## 논문 정보

- **저자**: Mert Nakıp, Erol Gelenbe
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2023년 6월 22일
- **등록일**: 2026년 11월 6일
- **수정일**: 2024년 5월 15일
- **버전**: v2
- **arXiv**: 2306.13030
- **DOI**: 10.1109/tifs.2024.3402148
- **분류**: cs.CR · cs.LG · cs.NI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2306.13030v2) · [원문 PDF ↗](https://arxiv.org/pdf/2306.13030v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

This paper proposes a novel Self-Supervised Intrusion Detection (SSID) framework, which enables a fully online Deep Learning (DL) based Intrusion Detection System (IDS) that requires no human intervention or prior off-line learning. The proposed framework analyzes and labels incoming traffic packets based only on the decisions of the IDS itself using an Auto-Associative Deep Random Neural Network, and on an online estimate of its statistically measured trustworthiness. The SSID framework enables IDS to adapt rapidly to time-varying characteristics of the network traffic, and eliminates the need for offline data collection. This approach avoids human errors in data labeling, and human labor and computational costs of model training and data collection. The approach is experimentally evaluated on public datasets and compared with well-known {machine learning and deep learning} models, showing that this SSID framework is very useful and advantageous as an accurate and online learning DL-based IDS for IoT systems.

## 원문 인용

Mert Nakıp, Erol Gelenbe (2023). Online Self-Supervised Deep Learning for Intrusion Detection Systems. arXiv:2306.13030v2. https://doi.org/10.1109/tifs.2024.3402148

**BibTeX**

```
@article{nakp2023online,
  title = {{Online Self-Supervised Deep Learning for Intrusion Detection Systems}},
  author = {Mert Nakıp and Erol Gelenbe},
  year = {2023},
  eprint = {2306.13030},
  archivePrefix = {arXiv},
  doi = {10.1109/tifs.2024.3402148},
  url = {https://arxiv.org/abs/2306.13030v2}
}
```

## 이 논문의 용어

- [balanced accuracy](https://refivu.com/terms/bc9870524813-balanced-accuracy)
- [KL-divergence](https://refivu.com/terms/ec24ed6c4b84-kl-divergence)
- [MLP](https://refivu.com/terms/80d2a9115406-mlp)
- [Bot-IoT](https://refivu.com/terms/a0a7baa9c00c-bot-iot)
- [Kitsune](https://refivu.com/terms/6ab43a7909e0-kitsune)
- [FISTA](https://refivu.com/terms/e12cea9dd8a4-fista)
- [incremental learning](https://refivu.com/terms/8fe4c7d041bb-incremental-learning)

## 다른 논문 해설

- [Semantics-aware Dataset Discovery from Data Lakes with Contextualized Column-based Representation Learning](https://refivu.com/papers/160c4253-fc76-4302-b055-72f4465f9200-semantics-aware-dataset-discovery-from-data-lakes-with.md)
- [Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving](https://refivu.com/papers/3c0c6c58-cf87-40e9-b790-2f8d3e3d6f7c-augmenting-reinforcement-learning-with-transformer-based.md)
- [Self-Supervised Learning for Text Recognition: A Critical Survey](https://refivu.com/papers/ecc3e6b4-0ca9-4271-8560-57fcdcd977c3-self-supervised-learning-for-text-recognition-a-critical.md)
- [Generating and Weighting Semantically Consistent Sample Pairs for Ultrasound Contrastive Learning](https://refivu.com/papers/84798899-953e-4ae6-868c-8e58721c5f25-generating-and-weighting-semantically-consistent-sample.md)
- [C3-DINO: Joint Contrastive and Non-contrastive Self-Supervised Learning for Speaker Verification](https://refivu.com/papers/e91029ca-7f02-44fc-a3c9-ef4f63371494-c3-dino-joint-contrastive-and-non-contrastive-self.md)
- [A Study of the Generalizability of Self-Supervised Representations](https://refivu.com/papers/a06e4fc2-28c4-4e5c-950d-8f9baa0217c9-a-study-of-the-generalizability-of-self-supervised.md)
- [Invertible Diffusion Models for Compressed Sensing](https://refivu.com/papers/6aec800a-0663-470f-a512-df85b2b5c826-invertible-diffusion-models-for-compressed-sensing.md)
- [Efficient Reinforcement Learning of Task Planners for Robotic Palletization through Iterative Action Masking Learning](https://refivu.com/papers/06453348-2bd9-4184-9c79-737e20e3fc5e-efficient-reinforcement-learning-of-task-planners-for.md)
- [Data Extraction via Semantic Regular Expression Synthesis](https://refivu.com/papers/2fe0341e-39a2-47ba-8805-77b76101d7ad-data-extraction-via-semantic-regular-expression-synthesis.md)
- [Multimodal Machine Learning for Integrating Heterogeneous Analytical Systems](https://refivu.com/papers/9e8014b2-1635-46ff-8beb-f2ec1335e687-multimodal-machine-learning-for-integrating-heterogeneous.md)
- [CMOS-based area-and-power-efficient neuron and synapse circuits for time-domain analog spiking neural networks](https://refivu.com/papers/103fdfd0-d207-4a39-a5aa-346cc8248d0d-cmos-based-area-and-power-efficient-neuron-and.md)
- [Neural networks with motivation](https://refivu.com/papers/b53b0fbc-812b-41d6-b689-06f9f870ead2-neural-networks-with-motivation.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/5b2dc5eb-5b04-4003-9688-63d5f91512ca-online-self-supervised-deep-learning-for-intrusion-detection)
