
Kali Linuxをネットワーク上で隠すためのツール
F31 は Kali Linux を堅牢化し、空中のノイズを最小限に抑えることを可能にする bash スクリプトです。ネットワークパフォーマンスの問題を避けるためにインフラへの影響を最小限に抑えることが重要なペネトレーションテスターや Red Team オペレーターに有用です。
このツールは完全な SOC 回避を保証するものではありません。ネットワークインフラは異なり、セキュリティ分析の各ケースは固有です。F31 の主な目的は 空中のノイズを最小限に抑えることです。
この記事とツールは入門的な性質のものであり、契約の下でテストを実施するセキュリティ専門家を対象としています。マルウェアの配布、システムの妨害、通信の秘密の侵害は訴追されます。作者はこのツールによって引き起こされたいかなる損害についても責任を負いません。
このスクリプトは以下の操作を実行します:
非常に簡単です。リポジトリをクローンし、bash スクリプトに実行権限を付与します。
caster@kali:~$ git clone https://github.com/wearecaster/F31
caster@kali:~$ cd F31/
caster@kali:~/F31$ chmod +x F31.sh reset.sh
F31 は実行に root 権限が必要です
caster@kali:~$ sudo bash F31.sh
███████ ██████ ██
██ ██ ███
█████ █████ ██
██ ██ ██
██ ██████ ██
F31: Tool for hiding Kali Linux on the network
Author: Caster, @wearecaster, <[email protected]>
Version: 1.0.0
For instructions and an example of how to use it, visit: https://github.com/wearecaster/F31
Usage: F31.sh --interface <interface> --new-hostname <hostname> [--noise-reduction]
Options:
--interface Specify the network interface to hide
--new-hostname Specify the new hostname for the system
--noise-reduction Enable traffic shaping for noise reduction (optional)
このツールは入力ごとに 2 つの引数を期待します。これらはシステムインターフェースと、Kali ユーザーが希望する新しいホスト名です。
トラフィックシェーピングを有効にする引数はオプションです。攻撃者に常に必要とは限りません。また、トラフィックシェーピングは将来的にファイルのダウンロード速度などに影響します。ノイズリダクションは賢く使用してください。
caster@kali:~/F31$ sudo bash F31.sh --interface eth0 --new-hostname ubuntu --noise-reduction
███████ ██████ ██
██ ██ ███
█████ █████ ██
██ ██ ██
██ ██████ ██
F31: Tool for hiding Kali Linux on the network
Author: Caster, @wearecaster, <[email protected]>
Version: 1.0.0
For instructions and an example of how to use it, visit: https://github.com/wearecaster/F31
[+] Tools are already installed.
[+] Changing hostname
[*] Hostname changed to ubuntu successfully.
[+] Enabling hostname transfer via DHCP
[*] Hostname through DHCP disabled successfully.
[+] Disabling NTP client
[*] NTP client shut down successfully.
[+] Increasing and shifting TTL (TTL=80)
[*] TTL values adjusted successfully.
[+] Configuring firewall
[*] Allowing established and chained connections, blocking invalid connections, restricting ICMP traffic, blocking unexpected TCP MSS values
[*] Firewall configuration successfully.
[+] Disabling ICMP Redirect
[*] ICMP Redirects disabled successfully.
[+] Changing MAC
[*] Randomize MAC configured successfully.
[+] Limit data rate to 30 kbit/s and latency 600ms to minimize noise in L2/L3 scanning.
[+] WARNING: This change will severely affect the speed of file downloads. Use this shaping exactly before scanning
[+] If necessary, adjust this value yourself
[*] Traffic shaping configured successfully.
[*] Script executed successfully.
行われたすべての設定をロールバックするための特別なスクリプトを用意しました。
caster@kali:~/F31$ sudo bash reset.sh --interface eth0 --old-hostname kali
███████ ██████ ██
██ ██ ███
█████ █████ ██
██ ██ ██
██ ██████ ██
F31: Tool for hiding Kali Linux on the network (Reset script)
Author: Caster, @wearecaster, <[email protected]>
Version: 1.0.0
For instructions and an example of how to use it, visit: https://github.com/wearecaster/F31
[+] Restoring MAC
[+] Enabling ICMP Redirect
[+] Disabling NTP client
[*] NTP client disabled successfully.
[+] Restoring firewall configuration
[+] Enabling hostname transfer via DHCP
[+] Resetting TTL (TTL=64)
[+] Restoring hostname
[+] Removing traffic shaping (noise reduction)
[+] Traffic shaping removed
[*] Reset script executed successfully
このツールは万能薬ではありません。インフラ内で何をしているのかを理解し、可能な限りリスクを回避する必要があります。