
ペネトレーションテストはどの範囲でやったほうがいいか?
ペネトレーションテストの範囲を決定する際には、セキュリティニーズやビジネス目標を考慮して以下のポイントを確認することが重要です。
テスト対象のシステムやアプリケーションの特定
外部ネットワーク:インターネットに接続されたサーバーやサービスが外部から攻撃されやすいため、外部からのアクセスを受けるすべてのシステムやアプリケーションをテスト対象に含めるべきです。
内部ネットワーク:内部ネットワーク上のシステムやアプリケーションも攻撃の対象となり得るため、従業員や他の内部ユーザーからの攻撃シナリオを考慮することが重要です。
モバイルアプリケーション:モバイルアプリがある場合、それに関連するAPIやバックエンドシステムもテストする必要があります。攻撃対象の領域
Webアプリケーション:クロスサイトスクリプティング (XSS)、SQLインジェクション、認証やセッション管理の脆弱性などの一般的なWeb攻撃ベクトルが存在するため、重点的にテストします。
ネットワークインフラ:ネットワーク構成やファイアウォール、ルーター、VPNなど、セキュリティ設定が適切かどうかを確認する必要があります。
無線ネットワーク:Wi-Fiなどの無線ネットワークを使用している場合、WPAクラックや不正なアクセスポイントの設置などのリスクも考慮する必要があります。内部および外部の脅威モデル
外部攻撃者:外部からの攻撃者によるシステムへのアクセス試行(インターネットからの攻撃シミュレーション)。
内部攻撃者:内部のユーザー(従業員やパートナー)が意図的または誤って攻撃を行うシナリオ。物理的なアクセス
物理的にアクセスできる領域や機器(サーバールーム、ネットワーク機器、従業員のデバイス)が攻撃に対して安全かどうかを確認します。ソーシャルエンジニアリング
ソーシャルエンジニアリングによる攻撃(フィッシングや人を介した攻撃)がどのようにセキュリティに影響するかをテストすることも重要です。優先順位
全てのシステムをテストするのが理想的ですが、リソースや予算の制約がある場合、最もクリティカルなシステムやデータを優先的にテストすべきです。ビジネスに与える影響が大きい領域(顧客データ、財務情報など)を優先します。法的・コンプライアンス要件
業界や地域の法的・規制要件を考慮し、それに準じたペネトレーションテストの範囲を設定します(例:PCI-DSS、GDPRなど)。テストの種類
ブラックボックステスト(外部の攻撃者視点)
ホワイトボックステスト(ソースコードやインフラ情報を把握した状態でのテスト)
グレーボックステスト(限られた内部情報を持つ攻撃者視点)
これらの要素を考慮し、組織のリスク評価や予算に基づいてペネトレーションテストの範囲を決定することが推奨されます。
When determining the scope of a penetration test, it is essential to consider security needs and business goals, taking into account the following points.
1. Identifying the Target Systems and Applications
External Networks: Systems and applications connected to the internet are more vulnerable to external attacks, so all systems and applications accessible from the outside should be included in the test scope.
Internal Networks: Internal network systems and applications are also potential targets of attacks. It is important to consider attack scenarios from internal users, such as employees or other internal users.
Mobile Applications: If mobile apps are in use, their related APIs and backend systems should also be tested.
2. Target Areas of Attack
Web Applications: Focus on testing common web attack vectors such as Cross-Site Scripting (XSS), SQL Injection, and vulnerabilities in authentication and session management.
Network Infrastructure: Check whether security settings, such as network configurations, firewalls, routers, and VPNs, are properly configured.
Wireless Networks: For environments using Wi-Fi or other wireless networks, it’s essential to consider risks like WPA cracking or the setup of rogue access points.
3. Internal and External Threat Models
External Attackers: Simulate scenarios where external attackers try to access the system (attacks from the internet).
Internal Attackers: Consider scenarios where internal users (employees or partners) intentionally or accidentally attack the system.
4. Physical Access
Confirm the security of physically accessible areas and devices, such as server rooms, network devices, and employee devices, against attacks.
5. Social Engineering
It is also important to test how social engineering attacks (such as phishing or human manipulation attacks) can impact security.
6. Prioritization
Ideally, all systems should be tested, but when resources or budgets are limited, prioritize the systems and data most critical to business operations. Focus on areas that have a significant impact on the business, such as customer data and financial information.
7. Legal and Compliance Requirements
Consider legal and regulatory requirements specific to the industry or region when setting the scope of the penetration test (e.g., PCI-DSS, GDPR).
8. Test Types
Black Box Testing: Testing from the perspective of an external attacker.
White Box Testing: Testing with full knowledge of the source code and infrastructure.
Gray Box Testing: Testing from the perspective of an attacker with limited internal information.
By considering these factors, it is recommended to determine the scope of the penetration test based on the organization’s risk assessment and budget.