---
title: 2323番ポートにハニーポットを設置しよう！
tags: 
author: [ふみふみ](https://www.docswell.com/user/2323code)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/LEL828997R.jpg?width=480
description: 2323番ポートにハニーポットを設置しよう！ by ふみふみ
published: December 02, 26
canonical: https://www.docswell.com/s/2323code/5DMRWW-2026-12-02-190225
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/LEL828997R.jpg)

ふみふみ（@2323_code）


# Page. 2

![Page Image](https://bcdn.docswell.com/page/4JM686ZVEW.jpg)

元Webエンジニア
Rust, Python
etc
1 / 23


# Page. 3

![Page Image](https://bcdn.docswell.com/page/PJRP5P6WE9.jpg)

1 / 23


# Page. 4

![Page Image](https://bcdn.docswell.com/page/PEX3K3MVJX.jpg)

1 / 23


# Page. 5

![Page Image](https://bcdn.docswell.com/page/3EKY5YG5JD.jpg)

1 / 23


# Page. 6

![Page Image](https://bcdn.docswell.com/page/L739K9N175.jpg)

1 / 23


# Page. 7

![Page Image](https://bcdn.docswell.com/page/87DG3GWK7G.jpg)

：Telnetで通信する際に使用
現在はSSHが主流で、一般的な用途ではあまり使われな
い
：権限不足などで23番が使えない際に使用
攻撃されやすい標準ポートを避けるために使われること
も
1 / 23


# Page. 8

![Page Image](https://bcdn.docswell.com/page/VJP34393E8.jpg)

1 / 23


# Page. 9

![Page Image](https://bcdn.docswell.com/page/2EV4X4MNJQ.jpg)

標準ポートからずらした番号にすれば狙われないのか？
1 / 23


# Page. 10

![Page Image](https://bcdn.docswell.com/page/57G1V1G5EL.jpg)

1 / 23


# Page. 11

![Page Image](https://bcdn.docswell.com/page/4EQD6DXLJP.jpg)

1. 使い捨てのEC2にハニーポットを構築
2. 23番・2323番などのポートを外部に開放
（※外部への通信は遮断）
3. 接続ログを記録して集計
1 / 23


# Page. 12

![Page Image](https://bcdn.docswell.com/page/KJ4Z4Z6571.jpg)

サービス
標準ポート
今回の比較対象
FTP
21
2121
SSH
22
2222
Telnet
23
SMTP
25
2525
1 / 23


# Page. 13

![Page Image](https://bcdn.docswell.com/page/LE1R4RV2EG.jpg)

1 / 23


# Page. 14

![Page Image](https://bcdn.docswell.com/page/GEW1X1L272.jpg)

観測したもの
1位
接続元IP数（SYN）
SSH 2222
ログイン試行数
SSH 2222
マルウェア投下
Telnet 23
SYNの回数
Telnet 23
結果
1 / 23


# Page. 15

![Page Image](https://bcdn.docswell.com/page/47ZP6PM4E3.jpg)

1 / 23


# Page. 16

![Page Image](https://bcdn.docswell.com/page/YJ6M2MNG7V.jpg)

23番（telnet）
2323番（telnet）
SYNの送信回数
SYNの送信回数
接続元IP：295
接続元IP：37
1 / 23


# Page. 17

![Page Image](https://bcdn.docswell.com/page/GJ5Z2Z5XE4.jpg)

1 / 23


# Page. 18

![Page Image](https://bcdn.docswell.com/page/LE39K9N4E5.jpg)

1 / 23


# Page. 19

![Page Image](https://bcdn.docswell.com/page/8EDG3GW5EG.jpg)

デフォルトのログイン認証情報や
利用して、IoTデバイスに感
なログイン認証情報を
するマルウェア
ソースコードも公開されている
1 / 23


# Page. 20

![Page Image](https://bcdn.docswell.com/page/V7P3439DJ8.jpg)

1 / 23


# Page. 21

![Page Image](https://bcdn.docswell.com/page/2JV4X4MG7Q.jpg)

参考文献1/2
TCP 23番ポートへのアクセスが増加、ルーターなどIoT機
器を狙った攻撃に注意～ダークネット観測レポート INTERNET Watch
Understanding the Mirai Botnet - USENIX
Security 2017
jgamblin/Mirai-Source-Code: Leaked Mirai
Source Code for Research/IoC Development
Purposes
1 / 23


# Page. 22

![Page Image](https://bcdn.docswell.com/page/5EG1V1XDJL.jpg)

参考文献2/2
そろそろマルウェアMiraiのコードについて語ってみようと
思う #Security - Qiita
SSHポート変更＋接続元制限でセキュリティ強化する手順
（Amazon Linux 2023） #EC2 - Qiita
1 / 23


# Page. 23

![Page Image](https://bcdn.docswell.com/page/4JQD6D8X7P.jpg)

セキュリティって大事だな


