{"id":25162,"date":"2023-12-11T07:00:51","date_gmt":"2023-12-10T22:00:51","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=25162"},"modified":"2024-01-16T17:13:34","modified_gmt":"2024-01-16T08:13:34","slug":"amazon-guardduty-ecs-runtime-monitoring%e3%81%a7fargate%e7%92%b0%e5%a2%83%e3%81%a7%e5%8b%95%e4%bd%9c%e3%81%99%e3%82%8b%e3%83%9e%e3%82%a4%e3%83%8b%e3%83%b3%e3%82%b0%e3%82%bd%e3%83%95%e3%83%88%e3%82%92","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/amazon-guardduty-ecs-runtime-monitoring%e3%81%a7fargate%e7%92%b0%e5%a2%83%e3%81%a7%e5%8b%95%e4%bd%9c%e3%81%99%e3%82%8b%e3%83%9e%e3%82%a4%e3%83%8b%e3%83%b3%e3%82%b0%e3%82%bd%e3%83%95%e3%83%88%e3%82%92\/","title":{"rendered":"Amazon GuardDuty ECS Runtime Monitoring\u3067Fargate\u74b0\u5883\u3067\u52d5\u4f5c\u3059\u308b\u30de\u30a4\u30cb\u30f3\u30b0\u30bd\u30d5\u30c8\u3092\u691c\u77e5\u3057\u3066\u307f\u305f"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u672c\u8a18\u4e8b\u306f<a href=\"https:\/\/qiita.com\/advent-calendar\/2023\/japan-aws-ambassador\">Japan AWS Ambassadors Advent Calendar 2023<\/a>\u306e11\u65e5\u76ee\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nre:Invent\u53c2\u52a0\u3067\u6e9c\u3081\u3066\u3057\u307e\u3063\u305f\u4ed5\u4e8b\u304c\u5c11\u3057\u3065\u3064\u7247\u4ed8\u304d\u3064\u3064\u3001\u5fd8\u5e74\u4f1a\u304c\u672c\u683c\u7684\u306b\u59cb\u307e\u308b\u524d\u306b\u66f8\u304f\u4e8b\u3092\u30e2\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u306b\u66f8\u3044\u3066\u307e\u3059\u3002<\/p>\n<p>ECS\/Fargate\u306b\u3066\u898b\u9003\u305b\u306a\u3044Update\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u4e0b\u8a18\u8a18\u4e8b\u306e\u7d9a\u304d\u3067\u5b9f\u969b\u306b\u4eee\u60f3\u901a\u8ca8\u30de\u30a4\u30cb\u30f3\u30b0\u30bd\u30d5\u30c8\u304c\u4ed5\u8fbc\u307e\u308c\u305f\u3068\u4eee\u5b9a\u3057GuardDuty\u3067\u3069\u306e\u3088\u3046\u306b\u691c\u77e5\u3055\u308c\u308b\u304b\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.skyarch.net\/blog\/amazon-guardduty-%e3%81%ab%e3%81%a6-ecs-fargate-%e3%81%a7%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e4%b8%8a%e3%81%ae%e8%84%85%e5%a8%81%e6%a4%9c%e5%87%ba%e3%81%ab%e5%af%be%e5%bf%9c\/\">Amazon GuardDuty \u306b\u3066 ECS Fargate \u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u8105\u5a01\u691c\u51fa\u306b\u5bfe\u5fdc (Amazon GuardDuty ECS Runtime Monitoring)<\/a><\/p>\n<h2>\u76ee\u6b21<\/h2>\n<ul>\n<li><a href=\"#overview\">\u624b\u9806\u306e\u6982\u8981<\/a><\/li>\n<li><a href=\"#env\">\u60f3\u5b9a\u74b0\u5883<\/a><\/li>\n<li><a href=\"#tejun\">\u624b\u9806<\/a><\/li>\n<li><a href=\"#matome\">\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n<h2 id=\"overview\">\u624b\u9806\u306e\u6982\u8981<\/h2>\n<ol>\n<li>GuardDuty \u30e9\u30f3\u30bf\u30a4\u30e0\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u6a5f\u80fd\u306e\u6709\u52b9\u5316<\/li>\n<li>ECR\u306b\u65b0\u3057\u3044\u30a4\u30e1\u30fc\u30b8\u3092Build&amp;Push<\/li>\n<li>ECRScan\u306e\u7d50\u679c<\/li>\n<li>\u65b0\u898fECSTask\u306e\u5b9f\u884c<\/li>\n<li>\u691c\u51fa\u7d50\u679c<\/li>\n<li>GuardDuty\u691c\u51fa\u7d50\u679c\u306e\u901a\u77e5<\/li>\n<li>Bedrock\u306b\u3066\u901a\u77e5\u30b5\u30de\u30e9\u30a4\u30ba<\/li>\n<\/ol>\n<h2 id=\"env\">\u60f3\u5b9a\u74b0\u5883<\/h2>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_02-1024x574.png\" alt=\"\" width=\"728\" height=\"408\" class=\"alignnone size-large wp-image-25164 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_02-1024x574.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_02-300x168.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_02-768x431.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_02-1536x862.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_02-728x408.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_02.png 1984w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>\u3053\u306e\u3088\u3046\u306a\u69cb\u6210\u3067\u30de\u30a4\u30cb\u30f3\u30b0\u30bd\u30d5\u30c8\u3092\u4ed5\u8fbc\u307e\u308c\u305f\u30a4\u30e1\u30fc\u30b8\u3092ECR\u306bPush\u3055\u308c\u3066\u3057\u307e\u3046\u30b7\u30ca\u30ea\u30aa\u60f3\u5b9a\u3067\u3059\u3002<br \/>\n\u4ed6\u306b\u3082\u6761\u4ef6\u304c\u63c3\u3048\u3070\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8106\u5f31\u6027\u3092\u7a81\u3044\u3066\u4ed5\u8fbc\u3080\u4e8b\u3082\u53ef\u80fd\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u8a73\u3057\u304f\u306a\u3044\u305f\u3081\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n<h3>CodeDeploy \u306b\u3088\u308b Blue\/Green \u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u306b\u306f\u672a\u5bfe\u5fdc<\/h3>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_01-1024x572.png\" alt=\"\" width=\"728\" height=\"407\" class=\"alignnone size-large wp-image-25163 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_01-1024x572.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_01-300x167.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_01-768x429.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_01-1536x857.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_01-2048x1143.png 2048w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/00_01-728x406.png 728w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>\u5b9f\u306f\u5f53\u521d\u3001\u3088\u304f\u3042\u308b\u69cb\u6210\u3067CI\/CD Pipeline\u7d4c\u7531\u3067\u30de\u30a4\u30cb\u30f3\u30b0\u30bd\u30d5\u30c8\u3092\u4ed5\u8fbc\u307e\u308c\u308b\u30b7\u30ca\u30ea\u30aa\u3092\u60f3\u5b9a\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c<br \/>\n\u4e0a\u8a18\u69cb\u6210\u3067\u3001ECS\u30bf\u30b9\u30afKill\u3001\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u7d4c\u7531\u3067\u306e\u65b0\u3057\u3044\u30b3\u30f3\u30c6\u30ca\u306e\u30c7\u30d7\u30ed\u30a4\u3001ECS\u30b5\u30fc\u30d3\u30b9\u306e\u66f4\u65b0\u3001\u30bf\u30b9\u30af\u5b9a\u7fa9\u78ba\u8a8d\u3000\u4f55\u3092\u3084\u3063\u3066\u3082\u4e0a\u624b\u304f\u3044\u304b\u305a\u3001AWS\u30b5\u30dd\u30fc\u30c8\u306b\u554f\u3044\u5408\u308f\u305b\u305f\u6240<br \/>\n\u73fe\u6642\u70b9\u3067\u306f CodeDeploy \u306b\u3088\u308b Blue\/Green \u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3001\u3068\u306e\u4e8b\u3067\u3057\u305f\u3002 \u6b8b\u5ff5..\u3067\u3059\u304cUpdate\u304c\u5fc3\u5f85\u3061\u306a\u6a5f\u80fd\u304c\u5897\u3048\u307e\u3057\u305f\u3002<\/p>\n<h2 id=\"tejun\">\u624b\u9806<\/h2>\n<h3>1. GuardDuty \u30e9\u30f3\u30bf\u30a4\u30e0\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u6a5f\u80fd\u306e\u6709\u52b9\u5316<\/h3>\n<p>GuardDuty\u3092\u6709\u52b9\u5316\u5f8c\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3092\u6709\u52b9\u5316\u3001AWS Fargate\u3067\u81ea\u52d5\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u8a2d\u5b9a\u3092\u6709\u52b9\u5316\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/01.GuardDuty-RuntimeMonitoring.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/01.GuardDuty-RuntimeMonitoring-1024x657.png\" alt=\"\" width=\"728\" height=\"467\" class=\"alignnone size-large wp-image-25185 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/01.GuardDuty-RuntimeMonitoring-1024x657.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/01.GuardDuty-RuntimeMonitoring-300x192.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/01.GuardDuty-RuntimeMonitoring-768x493.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/01.GuardDuty-RuntimeMonitoring-1536x985.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/01.GuardDuty-RuntimeMonitoring-2048x1314.png 2048w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/01.GuardDuty-RuntimeMonitoring-360x230.png 360w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/01.GuardDuty-RuntimeMonitoring-728x467.png 728w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h3>2. ECR\u306b\u65b0\u3057\u3044\u30a4\u30e1\u30fc\u30b8\u3092Build&amp;Push<\/h3>\n<p>\u65e2\u306b\u4f55\u3089\u304b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u74b0\u5883\u306b cnrig \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u52d5\u4f5c\u3057\u305f\u5834\u5408\u306b\u691c\u77e5\u51fa\u6765\u308b\u304b\u3092\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u8a73\u7d30\u306f\u5272\u611b\u3057\u307e\u3059\u304c\u3001Dockerfile\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u5f62\u3067\u3059\u3002<\/p>\n<pre>\nFROM python:3.11.7-slim-bullseye\n\nWORKDIR \/app\n\nCOPY . \/app\n\nRUN apt-get update && \\\n    apt-get -y upgrade && \\\n    pip install -r requirements.txt && \\\n    apt-get install -y wget && \\\n    wget -O cnrig https:\/\/github.com\/cnrig\/cnrig\/releases\/download\/v0.1.5-release\/cnrig-0.1.5-linux-x86_64 && \\\n    chmod +x cnrig\n\nEXPOSE 80\n\nCMD [\".\/startup.sh\"]\n<\/pre>\n<h3>3. ECRScan\u306e\u7d50\u679c<\/h3>\n<p>ECRScan\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\uff08\u30e9\u30a4\u30d6\u30e9\u30ea\uff09\u306e\u8106\u5f31\u6027\u30b9\u30ad\u30e3\u30ca\u306e\u305f\u3081\u3001\u3053\u3061\u3089\u306b\u306f\u5f15\u3063\u304b\u304b\u308a\u307e\u305b\u3093\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.ECRScan.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.ECRScan-1024x690.png\" alt=\"\" width=\"728\" height=\"491\" class=\"alignnone size-large wp-image-25172\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.ECRScan-1024x690.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.ECRScan-300x202.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.ECRScan-768x517.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.ECRScan-1536x1035.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.ECRScan-2048x1380.png 2048w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.ECRScan-728x491.png 728w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h3>4. \u65b0\u898fECSTask\u306e\u5b9f\u884c<\/h3>\n<p>\u30bf\u30b9\u30af\u5b9a\u7fa9\u30fb\u30b3\u30f3\u30c6\u30ca\u8a2d\u5b9a\u3067\u306f\u4f55\u3082\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u52dd\u624b\u306b\u30b5\u30a4\u30c9\u30ab\u30fc\u30b3\u30f3\u30c6\u30ca\u304c\u7acb\u3061\u4e0a\u304c\u308a\u307e\u3057\u305f\uff01<br \/>\n(aws-guardduty-agent-xxxx)<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/10.GurdDutyAgent.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/10.GurdDutyAgent-1024x604.png\" alt=\"\" width=\"728\" height=\"429\" class=\"alignnone size-large wp-image-25186\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/10.GurdDutyAgent-1024x604.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/10.GurdDutyAgent-300x177.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/10.GurdDutyAgent-768x453.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/10.GurdDutyAgent-1536x905.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/10.GurdDutyAgent-2048x1207.png 2048w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/10.GurdDutyAgent-728x429.png 728w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h3>5. \u691c\u51fa\u7d50\u679c<\/h3>\n<p>\u3069\u306e\u30af\u30e9\u30b9\u30bf\u3001\u30bf\u30b9\u30afId (\u3069\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30bf\u30b9\u30af\u5b9a\u7fa9\u3067\u52d5\u3044\u3066\u3044\u308b\u304b) \u3001\u30b3\u30f3\u30c6\u30ca\u306e\u30a4\u30e1\u30fc\u30b8\u5143\u7b49\u306e\u60c5\u5831\u304c\u8a73\u7d30\u306b\u5206\u304b\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/20_GurdDutyDetected_Task.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/20_GurdDutyDetected_Task-1024x675.png\" alt=\"\" width=\"728\" height=\"480\" class=\"alignnone size-large wp-image-25179 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/20_GurdDutyDetected_Task-1024x675.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/20_GurdDutyDetected_Task-300x198.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/20_GurdDutyDetected_Task-768x506.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/20_GurdDutyDetected_Task-1536x1012.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/20_GurdDutyDetected_Task-2048x1349.png 2048w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/20_GurdDutyDetected_Task-728x480.png 728w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n<p>\u307e\u305f\u3001\u30d7\u30ed\u30bb\u30b9\u540d\u30fbID\u3001\u3069\u3061\u3089\u306e\u30c9\u30e1\u30a4\u30f3\u3068\u901a\u4fe1\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u304b\uff08\u540d\u524d\u5f15\u304d\u3055\u308c\u305f\uff09\u7b49\u3082\u51fa\u3066\u304d\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.GurdDutyDetected_Property.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.GurdDutyDetected_Property-1024x640.png\" alt=\"\" width=\"728\" height=\"455\" class=\"alignnone size-large wp-image-25184 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.GurdDutyDetected_Property-1024x640.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.GurdDutyDetected_Property-300x187.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.GurdDutyDetected_Property-768x480.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.GurdDutyDetected_Property-1536x960.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.GurdDutyDetected_Property-2048x1280.png 2048w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/21.GurdDutyDetected_Property-728x455.png 728w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n<p>\u53c2\u8003\u307e\u3067\u306b\u3001\u30b3\u30f3\u30c6\u30ca\u8d77\u52d5\u304b\u3089GuardDuty\u753b\u9762\u306b\u691c\u51fa\u7d50\u679c\u304c\u51fa\u3066\u304f\u308b\u307e\u3067\u306b5\u5206\u307b\u3069\u3067\u3057\u305f\u3002<\/p>\n<h3>6. GuardDuty\u691c\u51fa\u7d50\u679c\u306e\u901a\u77e5<\/h3>\n<h4>EventBridge\u306b\u3066\u8a2d\u5b9a<\/h4>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001\u691c\u51fa\u3055\u308c\u305f\u3089SNS Topic\u7d4c\u7531\u306eE\u30e1\u30fc\u30eb\u306b\u3066\u901a\u77e5\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/30.GuardDutySeverity.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/30.GuardDutySeverity-565x1024.png\" alt=\"\" width=\"565\" height=\"1024\" class=\"alignnone size-large wp-image-25192 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/30.GuardDutySeverity-565x1024.png 565w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/30.GuardDutySeverity-165x300.png 165w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/30.GuardDutySeverity-768x1393.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/30.GuardDutySeverity-847x1536.png 847w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/30.GuardDutySeverity-1129x2048.png 1129w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/30.GuardDutySeverity-728x1320.png 728w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/a>\n<p>\u53d6\u308a\u6025\u304e\u3001\u9ad8(7.0~8.9)\u306e\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u8a2d\u5b9a\u3092EventBridge\u306b\u3066\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre>\n{\n  \"source\": [\"aws.guardduty\"],\n  \"detail-type\": [\"GuardDuty Finding\"],\n  \"detail\": {\n    \"severity\": [{\n      \"numeric\": [\">=\", 7.0]\n    }]\n  }\n}\n<\/pre>\n<p>Amazon GuardDuty \u306e\u691c\u51fa\u7d50\u679c\u306b\u3064\u3044\u3066<br \/>\n<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/guardduty\/latest\/ug\/guardduty_findings.html\">https:\/\/docs.aws.amazon.com\/ja_jp\/guardduty\/latest\/ug\/guardduty_findings.html<\/a><\/p>\n<h4>\u901a\u77e5\u3055\u308c\u305f\u30e1\u30fc\u30eb<\/h4>\n<p>\u7121\u4e8b\u901a\u77e5\u3055\u308c\u307e\u3057\u305f\uff01\u304c\u3001\u6298\u89d2\u306a\u306e\u3067Bedrock\u3067\u30b5\u30de\u30e9\u30a4\u30ba\uff06\u7ffb\u8a33\u3059\u308b\u3068\u3069\u306e\u3088\u3046\u306b\u306a\u308b\u306e\u304b\u898b\u3066\u307f\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001Amazon Q \u306bJSON\u3092\u6e21\u3057\u3066\u805e\u3044\u3066\u307f\u3088\u3046\u3068\u3057\u305f\u6240\u30011,000\u6587\u5b57\u7e1b\u308a\u3068\u5229\u7528\u3067\u304d\u308b\u30ad\u30e3\u30e9\u30af\u30bf\u5236\u9650\u304c\u53b3\u3057\u304f\u3001\u671f\u5f85\u3057\u305f\u5fdc\u7b54\u3067\u306f\u7121\u304b\u3063\u305f\u306e\u3067\u65ad\u5ff5\u3057\u307e\u3057\u305f\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/31.SlackNotify.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/31.SlackNotify-1024x790.png\" alt=\"\" width=\"728\" height=\"562\" class=\"alignnone size-large wp-image-25171 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/31.SlackNotify-1024x790.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/31.SlackNotify-300x232.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/31.SlackNotify-768x593.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/31.SlackNotify-728x562.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/31.SlackNotify.png 1464w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h3>7. Bedrock\u306b\u3066\u901a\u77e5\u30b5\u30de\u30e9\u30a4\u30ba<\/h3>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/40.BedrockSummarise.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/40.BedrockSummarise-1024x796.png\" alt=\"\" width=\"728\" height=\"566\" class=\"alignnone size-large wp-image-25173 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/40.BedrockSummarise-1024x796.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/40.BedrockSummarise-300x233.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/40.BedrockSummarise-768x597.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/40.BedrockSummarise-1536x1194.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/40.BedrockSummarise-2048x1592.png 2048w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/12\/40.BedrockSummarise-728x566.png 728w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<pre>\nHuman:\n \u4e0b\u8a18 GuardDuty \u304b\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8a73\u7d30\u306b\u8981\u7d04\u3057\u3066\u304f\u3060\u3055\u3044\n{\"version\":\"0\",\"id\":\"a0ab4970-2dc7-ad2b-40a9-569d77bed2fc\",\"detail-type\":\"GuardDuty Finding\",\"source\":\"aws.guardduty\", ...\u7701\u7565\n\nAssistant:\n \u3053\u306e GuardDuty \u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001ECS \u30af\u30e9\u30b9\u30bf\u30fc \"sample-dev-cluster\" \u4e0a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u30bf\u30b9\u30af`arn:aws:ecs:ap-northeast-1:XXXX:task\/sample-dev-cluster\/a031235d7e86407ab9ec80da373c12a4` \u5185\u306e\u30b3\u30f3\u30c6\u30ca \"sample-MyApplication\" \u306b\u304a\u3044\u3066\u3001\u30d7\u30ed\u30bb\u30b9 \"cnrig\" \u304c\u30d3\u30c3\u30c8\u30b3\u30a4\u30f3 \u63a1\u6398\u306b\u95a2\u9023\u3059\u308b\u30c9\u30e1\u30a4\u30f3 \"xxxx\" \u306b\u5bfe\u3057\u30665\u56de\u306e DNS \u30af\u30a8\u30ea\u3092\u884c\u3063\u305f\u3053\u3068\u3092\u691c\u77e5\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u3053\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306f\u30d3\u30c3\u30c8\u30b3\u30a4\u30f3\u95a2\u9023\u306e\u8105\u5a01\u3068\u3057\u3066\u5206\u985e\u3055\u308c\u3066\u304a\u308a\u30012023-12-07 11:17:00 \u304b\u3089 2023-12-07 11:17:06 \u306e\u9593\u306b\u8907\u6570\u56de\u691c\u77e5\u3055\u308c\u3066\u3044\u307e\u3059\u3002\n<\/pre>\n<p>\u826f\u3044\u611f\u3058\u306b\u30b5\u30de\u30e9\u30a4\u30ba\uff06\u7ffb\u8a33\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u306d\u3001Bedrock\u306b\u7a81\u3063\u8fbc\u3080Topic\u3092\u7528\u610f\u3057\u3066\u3042\u3052\u3066\u3001\u7ffb\u8a33\u5f8c\u306e\u30c6\u30ad\u30b9\u30c8\uff0b\u5143\u306e\u5185\u5bb9\u3092\u9001\u4fe1\u7528\u306eTopic\u306b\u9001\u3063\u3066\u3042\u3052\u308b\u3068\u7686\u5e78\u305b\u306b\u306a\u308c\u305d\u3046\u3067\u3059\u3002<\/p>\n<h2 id=\"matome\">\u307e\u3068\u3081<\/h2>\n<p>\u3053\u308c\u307e\u3067\u306f\u3001EKS\u306e\u307f\u3001EC2\u30db\u30b9\u30c8\u306e\u5834\u5408\u306e\u307f\u3068\u8272\u3005\u306a\u5236\u7d04\u304c\u3042\u3063\u305f\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u304cECS(Fargate\u74b0\u5883\uff09\u3067\u3082\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff01<br \/>\n\u30b3\u30f3\u30c6\u30ca\u5c0e\u5165\u304c\u3069\u3093\u3069\u3093\u5897\u3048\u308b\u4e2d\u3001DockerHub\u4e0a\u3067\u305d\u3053\u305d\u3053\u5229\u7528\u3055\u308c\u3066\u3044\u308bImage\u3067\u3042\u3063\u3066\u3082\u5b89\u5fc3\u51fa\u6765\u306a\u3044\u7269\u3082\u4e2d\u306b\u306f\u3042\u308b\u306e\u3067\u3001\u69d8\u3005\u306a\u89b3\u70b9\u304b\u3089\u9632\u5fa1\u30fb\u691c\u77e5\u304c\u884c\u3048\u308b\u4e8b\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u4ed6\u306b\u3082\u691c\u77e5\u3055\u308c\u308b\u30d1\u30bf\u30fc\u30f3\u3001eBPF\u578bAgent\u306e\u305f\u3081\u9ad8\u901f\u3068\u3044\u3046\u4e8b\u3067\u30b5\u30a4\u30c9\u30ab\u30fc\u6709\u7121\u306b\u3066\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u53d6\u5f97\u7b49\u3082\u5b9f\u65bd\u3057\u3066\u307f\u305f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u307e\u305f\u306e\u6a5f\u4f1a\u306b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u672c\u8a18\u4e8b\u306fJapan AWS Ambassadors Advent Calendar 2023\u306e11\u65e5\u76ee\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 re:Invent\u53c2\u52a0\u3067\u6e9c\u3081\u3066\u3057\u307e\u3063\u305f\u4ed5\u4e8b\u304c\u5c11\u3057\u3065\u3064\u7247\u4ed8\u304d\u3064\u3064\u3001\u5fd8\u5e74\u4f1a\u304c\u672c\u683c\u7684\u306b\u59cb\u307e\u308b\u524d&#8230;<\/p>\n","protected":false},"author":2,"featured_media":25188,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=25162","footnotes":""},"categories":[20,1265,515],"tags":[],"class_list":{"0":"post-25162","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-aws-reinvent-2023","9":"category-fargate","10":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/25162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=25162"}],"version-history":[{"count":12,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/25162\/revisions"}],"predecessor-version":[{"id":25670,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/25162\/revisions\/25670"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/25188"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=25162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=25162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=25162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}