Amazon Macie で検出結果の JSON を取得する方法を教えてください
困っていた内容
Amazon Macie に関してサポートに確認したところ「検出結果(Findings)の JSON 全文をご提供ください」と言われました。取得方法を教えてください。
どう対応すればいいの?
検出結果の「アクション」からダウンロードできます。
コンソールを使用して Macie の検出結果を確認する - Amazon Macie
1 つ以上の検出結果の詳細を JSON ファイルとしてダウンロードして保存するには、ダウンロードして保存する各検出結果のチェックボックスをオンにします。次に、アクションメニューでエクスポート (JSON) を選択します。表示されたウィンドウで、ダウンロードを選択します。
やってみた
Amazon Macie コンソールを開き、「検出結果」を選択
対象の検出結果をクリック
「アクション」->「エクスポート(JSON)」の順にクリックします。
右下の「ダウンロード」をクリック
JSON 全文がファイルとしてダウンロードされます。
[ { "accountId": "123456789012", "archived": false, "category": "CLASSIFICATION", "classificationDetails": { "detailedResultsLocation": "s3://sample-macie-results-bucket/AWSLogs/123456789012/Macie/ap-northeast-1/5e8ff9bf55ba3508199d22e984129be6/123456789012/11111111-1111-1111-1111-111111111111.jsonl.gz", "jobArn": "arn:aws:macie2:ap-northeast-1:123456789012:classification-job/5e8ff9bf55ba3508199d22e984129be6", "jobId": "5e8ff9bf55ba3508199d22e984129be6", "originType": "SENSITIVE_DATA_DISCOVERY_JOB", "result": { "additionalOccurrences": false, "customDataIdentifiers": { "detections": [], "totalCount": 0 }, "mimeType": "text/plain", "sensitiveData": [ { "category": "FINANCIAL_INFORMATION", "detections": [ { "count": 1, "occurrences": { "lineRanges": [ { "end": 2, "start": 2, "startColumn": 1 } ] }, "type": "CREDIT_CARD_NUMBER" } ], "totalCount": 1 } ], "sizeClassified": 8900, "status": { "code": "COMPLETE", "reason": null } } }, "count": 1, "createdAt": "2025-01-02T03:04:05.006Z", "description": "The S3 object contains financial information such as bank account numbers or credit card numbers.", "id": "98cb8d65-96a4-20d8-cbf5-f1668c410306", "partition": "aws", "region": "ap-northeast-1", "resourcesAffected": { "s3Bucket": { "allowsUnencryptedObjectUploads": null, "arn": "arn:aws:s3:::macie-sample-finding-bucket", "createdAt": "2025-01-02T03:04:05.006Z", "defaultServerSideEncryption": { "encryptionType": "NONE", "kmsMasterKeyId": null }, "name": "macie-sample-finding-bucket", "owner": { "displayName": "John Doe", "id": "7009a8971cd538e11f6b6606438875e7c86c5b672f46db45460ddcd087d36c32" }, "publicAccess": { "effectivePermission": "NOT_PUBLIC", "permissionConfiguration": { "accountLevelPermissions": { "blockPublicAccess": { "blockPublicAcls": true, "blockPublicPolicy": true, "ignorePublicAcls": true, "restrictPublicBuckets": true } }, "bucketLevelPermissions": { "accessControlList": { "allowsPublicReadAccess": false, "allowsPublicWriteAccess": false }, "blockPublicAccess": { "blockPublicAcls": true, "blockPublicPolicy": true, "ignorePublicAcls": true, "restrictPublicBuckets": true }, "bucketPolicy": { "allowsPublicReadAccess": false, "allowsPublicWriteAccess": null } } } }, "tags": [ { "key": "Division", "value": "HR" }, { "key": "Team", "value": "Recruiting" } ] }, "s3Object": { "bucketArn": "arn:aws:s3:::macie-sample-finding-bucket", "eTag": "6d84a9ae99910a7be5458a15c82a968c", "extension": "txt", "key": "financial.txt", "lastModified": "2021-08-18T18:35:25.000Z", "path": "macie-sample-finding-bucket/financial.txt", "publicAccess": false, "serverSideEncryption": { "encryptionType": "NONE", "kmsMasterKeyId": null }, "size": 8900, "storageClass": "STANDARD", "tags": [ { "key": "Division", "value": "HR" }, { "key": "Team", "value": "Recruiting" } ], "versionId": "" } }, "sample": true, "schemaVersion": "1.0", "severity": { "description": "High", "score": 3 }, "title": "The S3 object contains financial information", "type": "SensitiveData:S3Object/Financial", "updatedAt": "2025-01-02T03:04:05.006Z" }]