# IoT-based Android Malware Detection Using Graph Neural Network With Adversarial Defense

적대적 방어를 갖춘 그래프 신경망을 이용한 IoT 기반 안드로이드 악성코드 탐지

Rahul Yumlembam, Biju Issac, Seibu Mary Jacob, Longzhi Yang · arXiv · 2025년 12월 23일

- **연구 문제** Android 악성 앱 탐지에서 API 그래프 임베딩을 쓰는 GNN 분류기는 가짜 관계 추가 공격에 취약할 수 있습니다.
- **연구 방법** API 그래프의 중심성 특징으로 GraphSAGE 임베딩을 만들고 Permission·Intent와 결합하며, VGAE 기반 생성기와 대체 탐지기로 적대적 API 그래프를 생성합니다.
- **주요 결과** 결합 특징 분류기는 높은 정확도를 보였고, 적대적 샘플 공격은 재현율을 크게 낮췄으며, 생성 샘플로 재학습하면 재현율이 회복되었습니다.

## 그래프 기반 악성 Android 앱 탐지의 문제

IoT 기기를 제어하는 Android 앱은 사용자의 프라이버시와 기기 접근 권한에 직결되므로, 악성 앱을 탐지하는 일이 중요합니다. 논문은 앱의 API 호출 관계를 그래프로 표현하고 그래프 신경망으로 임베딩을 생성하는 방법이 유망하다고 보면서도, 공격자가 가짜 관계를 추가하여 탐지를 피할 수 있다는 취약점을 문제로 삼습니다. 저자들은 기존 연구에서 이러한 더미 관계 공격이 충분히 연구되지 않았다고 지적하며, 이 공백을 다루는 것을 연구 범위로 설정합니다.

![Figure 1: The different IoT devices connected to Android platform](https://refivu.com/papers/795f8668-0ca1-4227-882e-927a6073e094/figures/figure-801614d6a362a94834aafa3a987618e9.png?thumb=512)

**Fig. 1** .The different IoT devices connected to Android platform

[원문](https://arxiv.org/abs/2512.20004v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rahul Yumlembam, Biju Issac, Seibu Mary Jacob, Longzhi Yang · IoT-based Android Malware Detection Using Graph Neural Network With Adversarial Defense · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## API 그래프와 중심성 특징의 구성

앱은 디컴파일하여 얻은 smali 파일에서 API를 추출하고, 각 API에 전역 식별자를 부여합니다. 원문은 CICMaldroid2020에서 180만 개가 넘는 고유 API가 추출되었다고 보고하며, 선형 회귀 기반 특징 선택으로 상위 7000개의 API를 사용합니다. 같은 code block에 속한 두 API가 있으면 지역 인접행렬의 해당 원소를 1로 두고, 여러 앱의 지역 그래프를 합친 전역 그래프 O를 구성합니다. 이후 전역 그래프에서 Degree, Betweenness, Closeness, EigenVector, PageRank의 다섯 가지 중심성 지표를 각 노드의 특징으로 계산합니다.

![Figure 2: Sample Smali code of an Android application](https://refivu.com/papers/795f8668-0ca1-4227-882e-927a6073e094/figures/figure-025f2344f556b675a6bf1a92b9a9469e.png?thumb=512)

**Fig. 2** .Sample Smali code of an Android application

[원문](https://arxiv.org/abs/2512.20004v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rahul Yumlembam, Biju Issac, Seibu Mary Jacob, Longzhi Yang · IoT-based Android Malware Detection Using Graph Neural Network With Adversarial Defense · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## GNN 임베딩과 결합 특징 분류기

중심성 특징을 입력으로 GCN과 GraphSAGE를 지도 방식으로 학습하며, 학습된 네트워크가 앱마다 1×32 크기의 그래프 임베딩을 생성합니다. GCN은 이웃 임베딩의 평균으로 지역 정보를 결합하고, GraphSAGE는 평균 집계 함수를 사용하여 자기 표현과 이웃 집계 표현을 연결합니다. 생성된 임베딩은 매니페스트에서 추출한 Permission 및 Intent 이진 특징과 결합되어 Naive Bayes, Decision Tree, Random Forest, SVM, CNN 분류기의 입력이 됩니다. 원문 Table I에서 GraphSAGE가 GCN보다 높은 정확도를 보였기 때문에 임베딩 생성에는 GraphSAGE가 사용되었습니다.

## 결합 특징 분류 성능

Permission, Intent만 사용한 분류기와 그래프 임베딩을 함께 사용한 분류기를 비교하면, 임베딩을 결합한 설정이 대체로 더 높은 성능을 보입니다. 원문은 GS+CNN 설정이 CICMaldroid에서 정확도 98.33%, Drebin에서 정확도 98.68%를 달성했다고 보고하며, CNN 설정의 F1-Score는 CICMaldroid2020에서 98.89%, Drebin에서 93.13%입니다. 이 수치는 원문의 70/30 분할 조건에서 얻은 결과이며, 다른 데이터셋이나 다른 분할에 대한 일반화는 원문에서 확인되지 않습니다.

## VGAE-MalGAN의 생성기와 대체 탐지기

VGAE-MalGAN은 대상 GNN 탐지기에 기울기 접근이 없다는 가정에서 출발합니다. 생성기는 VGAE를 수정한 구조로, 원래 악성 API 그래프의 인접행렬에 무작위로 추가한 노드와 간선을 입력받아 잠재 변수 Z를 얻고, 이를 디코딩하여 새 인접행렬을 만듭니다. 원문은 원래 VGAE 디코더가 조밀한 그래프를 생성하기 쉽다는 이유로, 거리 기반의 0.98 임계값 디코더를 사용했다고 설명합니다. 생성된 행렬은 전역 인접행렬 O와 AND 연산으로 유효한 간선만 남기고, 원래 악성 행렬과 OR 연산으로 결합하여 악성 행동이 유지되도록 합니다. 대체 탐지기는 GraphSAGE로 구현되며 대상 탐지기가 준 라벨로 학습합니다.

![Figure 7: Overall architecture of VGAE-MalGAN](https://refivu.com/papers/795f8668-0ca1-4227-882e-927a6073e094/figures/figure-2630e08ae5e4df8b9c8c0bc1853c9407.png?thumb=512)

**Fig. 7** .Overall architecture of VGAE-MalGAN

[원문](https://arxiv.org/abs/2512.20004v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rahul Yumlembam, Biju Issac, Seibu Mary Jacob, Longzhi Yang · IoT-based Android Malware Detection Using Graph Neural Network With Adversarial Defense · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Figure 8: Scatter plots of the embedding generated from CICMaldroid dataset (left) and Drebin dataset (right) using substitute detector](https://refivu.com/papers/795f8668-0ca1-4227-882e-927a6073e094/figures/figure-320cd67bad3025d87da3a9f8ec0ce2da.png?thumb=512)

**Fig. 8** .Scatter plots of the embedding generated from CICMaldroid dataset (left) and Drebin dataset (right) using substitute detector

[원문](https://arxiv.org/abs/2512.20004v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rahul Yumlembam, Biju Issac, Seibu Mary Jacob, Longzhi Yang · IoT-based Android Malware Detection Using Graph Neural Network With Adversarial Defense · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 공격 시나리오와 재현율 감소

시나리오 1에서 공격자는 특징, API 구성, GNN 모델 버전, 데이터셋 접근을 안다고 가정하며, 대체 탐지기로 GraphSAGE 또는 GCN을 사용합니다. 이 설정에서 GraphSAGE 대체 탐지기는 Drebin의 재현율을 약 27%, CICMaldroid의 재현율을 약 80% 줄였고, GCN 대체 탐지기는 Drebin에서 24%, CICMaldroid에서 81.83%를 줄였습니다. 시나리오 2는 전체 데이터셋의 30%만 가진다고 가정하며, 이때 재현율 감소는 Drebin 19.61%, CICMaldroid 67.13%입니다. 시나리오 3은 GraphSAGE와 CNN이 결합된 모델을 대상으로 하며, Drebin은 약 25%, CICMaldroid는 약 51.38% 감소했습니다.

저자들은 CICMaldroid가 Drebin보다 공격에 더 취약한 이유를 Drebin의 더 많은 응용과 더 복잡한 결정 경계로 추정하지만, 이는 저자의 해석입니다.

## 생성 샘플 재학습의 방어 효과

방어는 VGAE-MalGAN으로 생성한 적대적 악성 샘플을 악성으로 라벨링하여 기존 데이터셋과 합친 뒤 분류기를 재학습하는 방식입니다. 시나리오 1에서 생성한 샘플로 재학습한 결과, Drebin GS의 재현율은 70.96, GS+CNN은 91.01이며 CICMaldroid GS는 96.44, GS+CNN은 98.46입니다. 원문은 재학습 후 임베딩의 두 클래스 분리가 줄었다고 보고하며, 재학습된 분류기의 정확도는 대체로 유지되지만 Drebin GS는 예외라고 설명합니다. 이 결과는 생성 샘플을 포함한 재학습의 효과를 보여 주지만, 모든 공격 유형에 대한 방어를 증명하지는 않습니다.

![Figure 9: Scatter plots of the embedding generated from CICMaldroid dataset (left) and Drebin dataset (right) after retraining](https://refivu.com/papers/795f8668-0ca1-4227-882e-927a6073e094/figures/figure-f4449cf941bbc0d3749cf187955e8657.png?thumb=512)

**Fig. 9** .Scatter plots of the embedding generated from CICMaldroid dataset (left) and Drebin dataset (right) after retraining

[원문](https://arxiv.org/abs/2512.20004v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rahul Yumlembam, Biju Issac, Seibu Mary Jacob, Longzhi Yang · IoT-based Android Malware Detection Using Graph Neural Network With Adversarial Defense · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

이 연구의 결과는 CICMaldroid2020과 Drebin에서 70/30으로 분할한 조건과 특정 공격 시나리오에서 얻은 것입니다. 공격자가 전체 데이터셋에 접근하는 경우가 부분 접근보다 더 효과적이었으며, 재학습 방어의 효과는 생성된 샘플과 데이터셋 조건에 묶여 있습니다. 또한 원문은 이 연구의 방어 효과와 공격 성공률을 다른 공격 방법이나 다른 데이터셋으로 확장하지 않았으며, 향후 연구로 더 많은 임베딩 방식과 공격 저항성 특징을 제시합니다.

## 논문 정보

- **저자**: Rahul Yumlembam, Biju Issac, Seibu Mary Jacob, Longzhi Yang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 12월 23일
- **등록일**: 2026년 11월 6일
- **수정일**: 2025년 12월 23일
- **버전**: v1
- **arXiv**: 2512.20004
- **DOI**: 10.1109/jiot.2022.3188583
- **분류**: cs.CR · cs.AI · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Since the Internet of Things (IoT) is widely adopted using Android applications, detecting malicious Android apps is essential. In recent years, Android graph-based deep learning research has proposed many approaches to extract relationships from applications as graphs to generate graph embeddings. First, we demonstrate the effectiveness of graph-based classification using a Graph Neural Network (GNN)-based classifier to generate API graph embeddings. The graph embeddings are combined with Permission and Intent features to train multiple machine learning and deep learning models for Android malware detection. The proposed classification approach achieves an accuracy of 98.33 percent on the CICMaldroid dataset and 98.68 percent on the Drebin dataset. However, graph-based deep learning models are vulnerable, as attackers can add fake relationships to evade detection by the classifier. Second, we propose a Generative Adversarial Network (GAN)-based attack algorithm named VGAE-MalGAN targeting graph-based GNN Android malware classifiers. The VGAE-MalGAN generator produces adversarial malware API graphs, while the VGAE-MalGAN substitute detector attempts to mimic the target detector. Experimental results show that VGAE-MalGAN can significantly reduce the detection rate of GNN-based malware classifiers. Although the model initially fails to detect adversarial malware, retraining with generated adversarial samples improves robustness and helps mitigate adversarial attacks.

## 원문 인용

Rahul Yumlembam, Biju Issac, Seibu Mary Jacob, Longzhi Yang (2025). IoT-based Android Malware Detection Using Graph Neural Network With Adversarial Defense. arXiv:2512.20004v1. https://doi.org/10.1109/jiot.2022.3188583

**BibTeX**

```
@article{yumlembam2025based,
  title = {{IoT-based Android Malware Detection Using Graph Neural Network With Adversarial Defense}},
  author = {Rahul Yumlembam and Biju Issac and Seibu Mary Jacob and Longzhi Yang},
  year = {2025},
  eprint = {2512.20004},
  archivePrefix = {arXiv},
  doi = {10.1109/jiot.2022.3188583},
  url = {https://arxiv.org/abs/2512.20004v1}
}
```

## 이 논문의 용어

- [recall](https://refivu.com/terms/3774987267f3-recall)
- [f1-score](https://refivu.com/terms/bab94490d1a7-f1-score)
- [generative adversarial network](https://refivu.com/terms/86597eed7832-generative-adversarial-network)
- [GraphSAGE](https://refivu.com/terms/c4baff75600a-graphsage)
- [GCN](https://refivu.com/terms/6be0326c6c22-gcn)
- [adjacency matrix](https://refivu.com/terms/a00a2b2fba98-adjacency-matrix)
- [graph embedding](https://refivu.com/terms/5fe1d3692d26-graph-embedding)
- [Threat Model](https://refivu.com/terms/3d3e656e8e49-threat-model)

## 다른 논문 해설

- [Multi-UAV Conflict Resolution with Graph Convolutional Reinforcement Learning](https://refivu.com/papers/a5d74d45-4eff-485c-b0f4-a087c707849b-multi-uav-conflict-resolution-with-graph-convolutional.md)
- [GCNDepth: Self-supervised Monocular Depth Estimation based on Graph Convolutional Network](https://refivu.com/papers/b6ff0b35-b083-47ea-b483-c9e093e7094d-gcndepth-self-supervised-monocular-depth-estimation-based-on.md)
- [PES: Priority Edge Sampling in Streaming Triangle Estimation](https://refivu.com/papers/783de359-57ef-448d-8b0c-024dad3576c3-pes-priority-edge-sampling-in-streaming-triangle-estimation.md)
- [A Survey on Malware Detection with Graph Representation Learning](https://refivu.com/papers/88af37f5-713a-4701-ac2a-751587dc9f71-a-survey-on-malware-detection-with-graph-representation.md)
- [Generalizing Graph Neural Networks on Out-Of-Distribution Graphs](https://refivu.com/papers/913b0bfb-79b8-40cf-a9fc-21d31b8a00a5-generalizing-graph-neural-networks-on-out-of-distribution.md)
- [Multimodal Pre-training Based on Graph Attention Network for Document Understanding](https://refivu.com/papers/6d34c1b1-08c0-4f0c-bfed-0cc34f2d410e-multimodal-pre-training-based-on-graph-attention-network.md)
- [FICE: Text-Conditioned Fashion Image Editing With Guided GAN Inversion](https://refivu.com/papers/791b37e6-1721-4c3f-b4b7-7e15c64acff2-fice-text-conditioned-fashion-image-editing-with-guided.md)
- [It's not Rocket Science : Interpreting Figurative Language in Narratives](https://refivu.com/papers/8ba756f2-d9c9-4ad2-8106-c9001184a802-it-s-not-rocket-science-interpreting-figurative-language.md)
- [Velocity-Form Data-Enabled Predictive Control of Soft Robots under Unknown External Payloads](https://refivu.com/papers/f5962716-4d68-44a2-bb9c-0196389e2ec6-velocity-form-data-enabled-predictive-control-of-soft.md)
- [LESSON: Multi-Label Adversarial False Data Injection Attack for Deep Learning Locational Detection](https://refivu.com/papers/5f76b46f-4716-400d-960b-9775758c62d1-lesson-multi-label-adversarial-false-data-injection-attack.md)
- [Joint-SRVDNet: Joint Super Resolution and Vehicle Detection Network](https://refivu.com/papers/a064874e-87c8-4289-b759-769c0d2ea652-joint-srvdnet-joint-super-resolution-and-vehicle-detection.md)
- [User-centric Heterogeneous-action Deep Reinforcement Learning for Virtual Reality in the Metaverse over Wireless Networks](https://refivu.com/papers/2d6f05c9-f8d5-49d5-89f7-5e91c406d3b7-user-centric-heterogeneous-action-deep-reinforcement.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/795f8668-0ca1-4227-882e-927a6073e094-iot-based-android-malware-detection-using-graph-neural)
