- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
You can monitor application security for Go apps running in Docker, Kubernetes, and Amazon ECS.
DD_APPSEC_ENABLED=true
or --enable-appsec
flags.Add to your program’s go.mod dependencies the latest version of the Datadog Go library (version 1.53.0 or later):
$ go get -v -u gopkg.in/DataDog/dd-trace-go.v1
Datadog has a series of pluggable packages which provide out-of-the-box support for instrumenting a series of Go libraries and frameworks. A list of these packages can be found in the compatibility requirements page. Import these packages into your application and follow the configuration instructions listed alongside each integration.
Recompile your program with ASM enabled:
$ go build -v -tags appsec my-program
Notes:
appsec
is not necessary if CGO is enabled with CGO_ENABLED=1
.libc.so.6
and libpthread.so.0
.appsec
and CGO is disabled, the produced binary is still linked dynamically to these libraries.datadog.no_waf
can be used to disable ASM at build time in any situation where the requirements above are a hinderance.Redeploy your Go service and enable ASM by setting the DD_APPSEC_ENABLED
environment variable to true
:
$ env DD_APPSEC_ENABLED=true ./my-program
Or one of the following methods, depending on where your application runs:
Add the following environment variable value to your Docker command line:
$ docker run -e DD_APPSEC_ENABLED=true [...]
Add the following environment variable value to your application container’s Dockerfile:
ENV DD_APPSEC_ENABLED=true
Update your application’s deployment configuration file for APM and add the ASM environment variable:
spec:
template:
spec:
containers:
- name: <CONTAINER_NAME>
image: <CONTAINER_IMAGE>/<TAG>
env:
- name: DD_APPSEC_ENABLED
value: "true"
Update your application’s ECS task definition JSON file, by adding this in the environment section:
"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 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<=250;i++));
do
# Target existing service’s routes
curl https://your-application-url/existing-route -A Arachni/v1.0;
# Target non existing service’s routes
curl https://your-application-url/non-existing-route -A Arachni/v1.0;
done
A few minutes after you enable your application and exercise it, threat information appears in the Application Trace and Signals Explorer in Datadog.