{"id":16285,"date":"2019-05-09T10:13:59","date_gmt":"2019-05-09T01:13:59","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=16285"},"modified":"2019-05-09T10:13:59","modified_gmt":"2019-05-09T01:13:59","slug":"amazon-inspector%e3%81%ae%e8%a8%ba%e6%96%ad%e7%b5%90%e6%9e%9c%e3%82%92%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%9a%e7%9f%a5%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/amazon-inspector%e3%81%ae%e8%a8%ba%e6%96%ad%e7%b5%90%e6%9e%9c%e3%82%92%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%9a%e7%9f%a5%e3%81%99%e3%82%8b\/","title":{"rendered":"Amazon Inspector\u306e\u8a3a\u65ad\u7d50\u679c\u3092\u30e1\u30fc\u30eb\u901a\u77e5\u3059\u308b"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>Inspector\u306e\u8a3a\u65ad\u7d50\u679c\u3092\u30e1\u30fc\u30eb\u901a\u77e5\u3059\u308b\u65b9\u6cd5\u304c\u7121\u3044\u304b\u306a\u3001\u3068\u601d\u3063\u305f\u3089<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u4e8b\u304c2016\u5e74\u306b\u6295\u7a3f\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u5168\u7136\u77e5\u3089\u306a\u304b\u3063\u305f\u2026\u3002<\/p>\n<p><a href=\"https:\/\/aws.amazon.com\/jp\/blogs\/news\/scale-your-security-vulnerability-testing-with-amazon-inspector\/\" target=\"_blank\" rel=\"noopener\">Amazon Inspector \u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8106\u5f31\u6027\u30c6\u30b9\u30c8\u3092\u62e1\u5927<\/a><\/p>\n<p>Inspector\u306e\u8a3a\u65ad\u7d50\u679c\u3092Lambda\u306b\u6e21\u3057\u3066\u3001\u898b\u3084\u3059\u3044\u5f62\u3067\u30e1\u30fc\u30eb\u901a\u77e5\u3055\u305b\u308b\u3001\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u3053\u3053\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308bLambda\u306e\u30b3\u30fc\u30c9(Python)\u3092\u5c11\u3057\u3060\u3051\u5909\u3048\u3066\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nInspector\u306e\u5229\u7528\u65b9\u6cd5\u307e\u3067\u306f\u7d30\u304b\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<h2>\u8a2d\u5b9a\u65b9\u6cd5<\/h2>\n<h3>Inspector\u304c\u8a3a\u65ad\u7d50\u679c\u3092Lambda\u306b\u6e21\u3059\u7528\u306eSNS\u30c8\u30d4\u30c3\u30af\u4f5c\u6210<\/h3>\n<p>Inspector\u304c\u8a3a\u65ad\u7d50\u679c\u3092Lambda\u306b\u6e21\u3059\u7528\u306eSNS\u30c8\u30d4\u30c3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u8a3a\u65ad\u7d50\u679c\u3092\u901a\u77e5\u3057\u305f\u3044\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u767b\u9332\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30c8\u30d4\u30c3\u30af\u540d\u306f<strong>inspector-lambda<\/strong>\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h30_48.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-16286\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h30_48-1024x392.png\" alt=\"\" width=\"728\" height=\"279\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h30_48-1024x392.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h30_48-300x115.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h30_48-768x294.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h30_48-728x278.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h30_48.png 1279w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>\u30a2\u30af\u30bb\u30b9\u30dd\u30ea\u30b7\u30fc\u306fJSON\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h31_10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-16287\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h31_10-1024x629.png\" alt=\"\" width=\"728\" height=\"447\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h31_10-1024x629.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h31_10-300x184.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h31_10-768x472.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h31_10-728x447.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h31_10.png 1292w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<pre># \u8cbc\u308a\u4ed8\u3051\u308bJSON\u306e\u5185\u5bb9\n{\n  \"Version\": \"2008-10-17\",\n  \"Id\": \"inspector-sns-publish-policy\",\n  \"Statement\": [\n    {\n      \"Sid\": \"inspector-sns-publish-statement\",\n      \"Effect\": \"Allow\",\n      \"Principal\": {\n        \"Service\": \"inspector.amazonaws.com\"\n      },\n      \"Action\": \"SNS:Publish\",\n      \"Resource\": \"arn:aws:sns:*\"\n    }\n  ]\n}\n<\/pre>\n<p>\u305d\u308c\u4ee5\u5916\u306f\u7279\u306b\u8a2d\u5b9a\u305b\u305a\u30c8\u30d4\u30c3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h3>Lambda\u7528\u306eIAM\u30ed\u30fc\u30eb\u4f5c\u6210<\/h3>\n<p>\u4ee5\u4e0b\u5185\u5bb9\u306eIAM\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3057\u3001<\/p>\n<pre>{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"logs:CreateLogGroup\",\n                \"logs:CreateLogStream\",\n                \"logs:PutLogEvents\"\n            ],\n            \"Resource\": \"arn:aws:logs:*:*:*\"\n        },\n        {\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"inspector:DescribeFindings\",\n                \"SNS:CreateTopic\",\n                \"SNS:Subscribe\",\n                \"SNS:ListSubscriptionsByTopic\",\n                \"SNS:Publish\"\n            ],\n            \"Resource\": \"*\"\n        }\n    ]\n}\n<\/pre>\n<p>\u3053\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u30a2\u30bf\u30c3\u30c1\u3057\u305f\u30ed\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h37_20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-16288\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h37_20-1024x553.png\" alt=\"\" width=\"728\" height=\"393\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h37_20-1024x553.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h37_20-300x162.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h37_20-768x415.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h37_20-728x393.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h37_20.png 1243w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h3>Lambda\u95a2\u6570\u306e\u4f5c\u6210<\/h3>\n<p><strong>sns-message-python<\/strong>\u3068\u3044\u3046\u8a2d\u8a08\u56f3\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h32_45.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-16289\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h32_45-1024x641.png\" alt=\"\" width=\"728\" height=\"456\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h32_45-1024x641.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h32_45-300x188.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h32_45-768x481.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h32_45-728x456.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h32_45.png 1187w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>IAM\u30ed\u30fc\u30eb\u3084\u3001\u95a2\u6570\u5b9f\u884c\u306e\u30c8\u30ea\u30ac\u30fc\u3068\u306a\u308bSNS\u30c8\u30d4\u30c3\u30af\u3092\u8a2d\u5b9a\u3057\u3001\u95a2\u6570\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h38_15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-16290\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h38_15-1024x425.png\" alt=\"\" width=\"728\" height=\"302\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h38_15-1024x425.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h38_15-300x124.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h38_15-768x319.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h38_15-728x302.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h38_15.png 1280w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h39_55.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-16291\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h39_55-1024x341.png\" alt=\"\" width=\"728\" height=\"242\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h39_55-1024x341.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h39_55-300x100.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h39_55-768x256.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h39_55-728x243.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_16h39_55.png 1284w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>\u95a2\u6570\u304c\u4f5c\u6210\u3055\u308c\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u9069\u7528\u3057\u307e\u3059\u3002<br \/>\n\u9ec4\u8272\u90e8\u5206\u306f\u9069\u5b9c\u5909\u66f4\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>from __future__ import print_function\nimport boto3\nimport json\nimport datetime\n \nsns = boto3.client('sns')\ninspector = boto3.client('inspector')\n \n# SNS topic - will be created if it does not already exist\nSNS_TOPIC = \"Inspector-Finding-Delivery\" <span style=\"color: #ffff00;\"># \u30e1\u30fc\u30eb\u901a\u77e5\u7528\u306eSNS\u30c8\u30d4\u30c3\u30af\u540d<\/span>\n \n# Destination email - will be subscribed to the SNS topic if not already\nDEST_EMAIL_ADDR = \"xxxx@skyarch.net\" <span style=\"color: #ffff00;\"># \u30e1\u30fc\u30eb\u901a\u77e5\u306e\u5b9b\u5148<\/span>\n\n# inspector finding titles excluded from mail notification\nexception = [\n        \"Unsupported Operating System or Version\",\n        \"No potential security issues found\" <span style=\"color: #ffff00;\"># \u901a\u77e5\u4e0d\u8981\u306a\u30bf\u30a4\u30c8\u30eb\u3092\u30ea\u30b9\u30c8\u3067\u8a18\u8ff0<\/span>\n        ]\n\n# quick function to handle datetime serialization problems\nenco = lambda obj: (\n    obj.isoformat()\n    if isinstance(obj, datetime.datetime)\n    or isinstance(obj, datetime.date)\n    else None\n)\n \ndef lambda_handler(event, context):\n \n    # extract the message that Inspector sent via SNS\n    message = event['Records'][0]['Sns']['Message']\n \n    # get inspector notification type\n    notificationType = json.loads(message)['event']\n \n    # skip everything except report_finding notifications\n    if notificationType != \"FINDING_REPORTED\":\n        print('Skipping notification that is not a new finding: ' + notificationType)\n        return 1\n   \n    # extract finding ARN\n    findingArn = json.loads(message)['finding']\n \n    # get finding and extract detail\n    response = inspector.describe_findings(findingArns = [ findingArn ], locale='EN_US')\n    print(response)\n    try:\n        finding = response['findings'][0]\n    except OSError as err:\n        print(\"OS error: {0}\".format(err))\n    except:\n        print(\"Unexpected error:\", sys.exc_info()[0])\n        raise\n       \n    # skip uninteresting findings\n    title = finding['title']\n    if title in exception:\n        print('Skipping finding: ', title)\n        return 1\n\n    # get the information to send via email\n    subject = title[:100] # truncate @ 100 chars, SNS subject limit\n    messageBody = \"Title:\\n\" + title + \"\\n\\nDescription:\\n\" + finding['description'] + \"\\n\\nRecommendation:\\n\" + finding['recommendation']\n   \n    # un-comment the following line to dump the entire finding as raw json\n    # messageBody = json.dumps(finding, default=enco, indent=2)\n \n    # create SNS topic if necessary\n    response = sns.create_topic(Name = SNS_TOPIC)\n    snsTopicArn = response['TopicArn']\n \n    # check to see if the subscription already exists\n    subscribed = False\n    response = sns.list_subscriptions_by_topic( TopicArn = snsTopicArn )\n \n    # iterate through subscriptions array in paginated list API call\n    while True:\n        for subscription in response['Subscriptions']:\n            if ( subscription['Endpoint'] == DEST_EMAIL_ADDR ):\n                subscribed = True\n                break\n       \n        if 'NextToken' not in response:\n            break\n       \n        response = sns.list_subscriptions_by_topic(\n            TopicArn = snsTopicArn,\n            NextToken = response['NextToken']\n            )\n       \n    # create subscription if necessary\n    if ( subscribed == False ):\n        response = sns.subscribe(\n            TopicArn = snsTopicArn,\n            Protocol = 'email',\n            Endpoint = DEST_EMAIL_ADDR\n            )\n \n    # publish notification to topic\n    response = sns.publish(\n        TopicArn = snsTopicArn,\n        Message = messageBody,\n        Subject = subject\n        )\n \n    return 0\n<\/pre>\n<h3>Inspector\u5074\u306e\u8a2d\u5b9a<\/h3>\n<p>\u8a55\u4fa1\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u8a2d\u5b9a\u3067\u3001\u8a3a\u65ad\u7d50\u679c\u3092\u4eca\u56de\u4f5c\u6210\u3057\u305fSNS\u30c8\u30d4\u30c3\u30af\u306b\u901a\u77e5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_17h08_23.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-16292\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_17h08_23-1024x446.png\" alt=\"\" width=\"728\" height=\"317\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_17h08_23-1024x446.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_17h08_23-300x131.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_17h08_23-768x334.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_17h08_23-728x317.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/04\/2019-04-30_17h08_23.png 1084w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h3>\u8a3a\u65ad\u5b9f\u65bd<\/h3>\n<p>Inspector\u306b\u3088\u308b\u8a3a\u65ad\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<br \/>\n\u521d\u56de\u306f\u901a\u77e5\u5148\u30a2\u30c9\u30ec\u30b9\u306bSNS\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u78ba\u8a8d\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u306f\u305a\u306a\u306e\u3067\u3001\u627f\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>2\u56de\u76ee\u3067\u306f\u8a3a\u65ad\u306e\u7d50\u679c\u304c1\u30bf\u30a4\u30c8\u30eb\u3054\u3068\u306b1\u901a\u5c4a\u304d\u307e\u3059\u304c\u3001\u4e2d\u306b\u306f\u901a\u77e5\u3057\u306a\u304f\u3066\u3082\u3088\u3044\u30bf\u30a4\u30c8\u30eb\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u4e0b\u8a18\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u304b\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306bHTTPS\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3001\u3068\u3044\u3046\u8b66\u544a\u306a\u306e\u3067\u3059\u304c<br \/>\nLB\u7121\u3057\u3067WEB\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308c\u3070\u5f53\u305f\u308a\u524d\u306e\u3053\u3068\u306a\u306e\u3067\u3001\u6b21\u56de\u8a3a\u65ad\u4ee5\u964d\u306f\u901a\u77e5\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #808080;\">\u3061\u306a\u307f\u306b\u3001\u30e1\u30fc\u30eb\u306e\u5185\u5bb9\u3092\u3088\u304f\u898b\u308b\u3068\u300cHTTPS\u3092Listen\u3057\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u304c\u7121\u3044\u306e\u306b\u3001<\/span><br \/>\n<span style=\"color: #808080;\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3067HTTPS\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u3066\u3044\u308b\u3088\u300d\u3068\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #808080;\">\u5b9f\u969b\u306fHTTPS\u3092Listen\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u8a3a\u65ad\u6642\u95931\u6642\u9593\u304c\u63a8\u5968\u3055\u308c\u308b\u3068\u3053\u308d\u3092<\/span><br \/>\n<span style=\"color: #808080;\">15\u5206\u306b\u8a2d\u5b9a\u3057\u3066\u8a3a\u65ad\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u7cbe\u5ea6\u304c\u4f4e\u304f\u306a\u3063\u3066\u3044\u308b\u306e\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/span><\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/05\/2019-04-30_18h50_99.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16328\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/05\/2019-04-30_18h50_99.png\" alt=\"\" width=\"946\" height=\"405\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/05\/2019-04-30_18h50_99.png 946w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/05\/2019-04-30_18h50_99-300x128.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/05\/2019-04-30_18h50_99-768x329.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2019\/05\/2019-04-30_18h50_99-728x312.png 728w\" sizes=\"auto, (max-width: 946px) 100vw, 946px\" \/><\/a>\n<p>\u901a\u77e5\u4e0d\u8981\u306a\u30bf\u30a4\u30c8\u30eb\u306f\u3001Lambda\u306e\u30b3\u30fc\u30c9\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u306b\u8ffd\u8a18\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u6b21\u56de\u4ee5\u964d\u306f\u3053\u306e\u30bf\u30a4\u30c8\u30eb\u304c\u30e1\u30fc\u30eb\u3067\u901a\u77e5\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre># inspector finding titles excluded from mail notification\nexception = [\n        \"Unsupported Operating System or Version\",\n        \"No potential security issues found\"<span style=\"color: #ffff00;\">,\n        \"On instance i-xxxxxxxxxxxxxxxxx, TCP port 443 which is associated with 'HTTPS' is reachable from the internet\"<\/span>\n        ]\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u4ee5\u4e0a\u3001Inspector\u306e\u8a3a\u65ad\u7d50\u679c\u3092\u30e1\u30fc\u30eb\u3067\u901a\u77e5\u3059\u308b\u65b9\u6cd5\u3092\u66f8\u304b\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<br \/>\n\u672c\u5f53\u306f\u901a\u77e5\u4e0d\u8981\u30bf\u30a4\u30c8\u30eb\u3092\u30b3\u30fc\u30c9\u5916\u306b\u7f6e\u304d\u305f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u306f\u4eca\u5f8c\u306e\u691c\u8a0e\u4e8b\u9805\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u3054\u89a7\u3044\u305f\u3060\u304d\u6709\u96e3\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Inspector\u306e\u8a3a\u65ad\u7d50\u679c\u3092\u30e1\u30fc\u30eb\u901a\u77e5\u3059\u308b\u65b9\u6cd5\u304c\u7121\u3044\u304b\u306a\u3001\u3068\u601d\u3063\u305f\u3089 \u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u4e8b\u304c2016\u5e74\u306b\u6295\u7a3f\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u5168\u7136\u77e5\u3089\u306a\u304b\u3063\u305f\u2026\u3002 Amazon Inspector \u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8106\u5f31\u6027\u30c6\u30b9\u30c8\u3092\u62e1\u5927&#8230;<\/p>\n","protected":false},"author":60,"featured_media":16297,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"16285","footnotes":""},"categories":[20,7],"tags":[365,102,517],"class_list":{"0":"post-16285","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-security","9":"tag-amazon-inspector","10":"tag-aws","11":"tag-517","12":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/16285","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\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=16285"}],"version-history":[{"count":6,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/16285\/revisions"}],"predecessor-version":[{"id":16332,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/16285\/revisions\/16332"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/16297"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=16285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=16285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=16285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}