- 重要な情報
- はじめに
- 用語集
- エージェント
- インテグレーション
- OpenTelemetry
- 開発者
- API
- CoScreen
- アプリ内
- インフラストラクチャー
- アプリケーションパフォーマンス
- 継続的インテグレーション
- ログ管理
- セキュリティ
- UX モニタリング
- 管理
Docker、Kubernetes、AWS ECS、AWS Fargate で動作する Python アプリのセキュリティを監視することができます。
In general, setting up Application Security Management (ASM) involves:
Datadog Python ライブラリパッケージをバージョン 1.2.2 以上 (Application Vulnerability Management の脆弱性検出機能についてはバージョン 1.5.0 以上) に更新してください。以下を実行します。
pip install --upgrade ddtrace
サービスの言語やフレームワークのバージョンが ASM 機能に対応しているかどうかは、互換性をご参照ください。
Python アプリケーションの起動時に ASM を有効にします。
DD_APPSEC_ENABLED=true ddtrace-run python app.py
また、アプリケーションが実行される場所に応じて、以下の方法のいずれかを使用することもできます。
docker run [...] -e DD_APPSEC_ENABLED=true [...]
コンテナの Dockerfile に以下の環境変数の値を追加します。
ENV DD_APPSEC_ENABLED=true
APM 用の構成 YAML ファイルコンテナを更新し、DD_APPSEC_ENABLED
環境変数を追加します。
spec:
template:
spec:
containers:
- name: <CONTAINER_NAME>
image: <CONTAINER_IMAGE>/<TAG>
env:
- name: DD_APPSEC_ENABLED
value: "true"
以下を環境セクションに追加して、ECS タスク定義 JSON ファイルを更新します。
以下を環境セクションに追加して、ECS タスク定義 JSON ファイルを更新します。
"environment": [
...,
{
"name": "DD_APPSEC_ENABLED",
"value": "true"
}
]
The library collects security data from your application and sends it to the Agent, which sends it to Datadog, where [out-of-the-box detection rules][202] flag attacker techniques and potential misconfigurations so you can take steps to remediate.
To see Application Security Management threat detection in action, send known attack patterns to your application. For example, trigger the Security Scanner Detected rule by running a file that contains the following curl script:
for ((i=1;i<=200;i++));
do
# Target existing service’s routes
curl https://your-application-url/existing-route -A dd-test-scanner-log;
# Target non existing service’s routes
curl https://your-application-url/non-existing-route -A dd-test-scanner-log;
done
Note: The dd-test-scanner-log
value is supported in the most recent releases.
A few minutes after you enable your application and exercise it, threat information appears in the Application Trace and Signals Explorer in Datadog.
DD_APPSEC_ENABLED=true ddtrace-run python app.py
After this configuration is complete, the library collects security data from your application and sends it to the Agent, which sends it to Datadog, where out-of-the-box detection rules flag attacker techniques and potential misconfigurations so you can take steps to remediate.
To see Application Security Management threat detection in action, send known attack patterns to your application. For example, trigger the Security Scanner Detected rule by running a file that contains the following curl script:
for ((i=1;i<=200;i++));
do
# Target existing service’s routes
curl https://your-application-url/existing-route -A dd-test-scanner-log;
# Target non existing service’s routes
curl https://your-application-url/non-existing-route -A dd-test-scanner-log;
done
Note: The dd-test-scanner-log
value is supported in the most recent releases.
A few minutes after you enable your application and exercise it, threat information appears in the Application Signals Explorer and vulnerability information appears in the Vulnerability Explorer.