For the complete documentation index, see llms.txt. This page is also available as Markdown.

GuardDuty 로그 쿼리

심각도별로 모든 GuardDuty 경고를 순위 지정

GuardDuty는 인프라에 대한 위협을 파악하는 데 유용한 가시성 소스입니다. 그러나 많은 수의 결과가 생성될 수 있습니다. 이 쿼리는 계정의 보안 상태를 평가하는 데 사용할 수 있는 결과의 분포를 보여줍니다.

SELECT
 severity,
 count(1) AS total_rows
FROM panther_logs.public.aws_guardduty
WHERE p_occurs_between('2021-01-01', '2021-02-01')
GROUP BY severity
ORDER BY total_rows DESC

영향을 받은 리소스별로 모든 GuardDuty 경고를 순위 지정

위 예시와 유사하지만, 이 예시에서는 영향을 받은 리소스를 순위 지정하여 결과를 분류합니다.

SELECT
 resource:resourceType AS resource_type,
 count(1) AS total_rows
FROM panther_logs.public.aws_guardduty
WHERE p_occurs_between('2021-01-01', '2021-02-01')
GROUP BY resource:resourceType
ORDER BY total_rows DESC

마지막 업데이트

도움이 되었나요?