← Back to Labs
Fundamental01:00:00

Discover sensitive data present in S3 bucket using Amazon Macie

Task 1

Task 1: Sign in to AWS Management Console

↑ Top
  1. Click on the Open Console button, and you will get redirected to AWS Console in a new browser tab.
  2. On the AWS sign-in page, Leave the Account ID as default. Never edit/remove the 12 digit Account ID present in the AWS Console. otherwise, you cannot proceed with the lab. Now copy your User Name and Password in the Lab Console to the IAM Username and Password in AWS Console and click on the Sign in button.
  3. On the AWS sign-in page,
  4. Leave the Account ID as default. Never edit/remove the 12 digit Account ID present in the AWS Console. otherwise, you cannot proceed with the lab.
  5. Now copy your User Name and Password in the Lab Console to the IAM Username and Password in AWS Console and click on the Sign in button.
  6. Once Signed In to the AWS Management Console, Make the default AWS Region as US East (N. Virginia) us-east-1.
Task 2

Task 2: Enable Macie for the account

↑ Top
  1. Make sure you are in the US East (N. Virginia) us-east-1 Region.
  2. Navigate to Amazon Macie by clicking on the Services menu in the top, then click on Amazon Macie in the Security, Identity & Compliance section.
  3. On the home page, click on the Get started button to configure Amazon Macie.
  4. Task 2: Enable Macie for the account
  5. On the Get started page, click on the Enable Macie button.
  6. Task 2: Enable Macie for the account
Task 3

Task 3: Create a Macie job

↑ Top
  1. Macie will try to find out all the details of the account, which may take some time. No need to wait, simply click on the Create job button.
  2. Task 3: Create a Macie job
  3. For Step-1, Choose S3 Bucket,
  4. If you can not See the bucket, click on the Add filter criteria field and click on the Bucket name.
  5. Type lab and select the bucket name starting with lab, and click on the Next button
  6. Task 3: Create a Macie job
  7. Review S3 buckets Keep everything as default and click on the Next button.
  8. Task 3: Create a Macie job
  9. For Step-3, Refine the scope,
  10. In Sensitive data discover options: Select One-time job
  11. Click on the arrow to expand the window of Additional settings
  12. Let the Object criteria be default as File name extensions.
  13. Write csv in the textbox and click on the Include button.
  14. Once done, click on the Next button to proceed.
  15. Task 3: Create a Macie job
  16. For Step-4, Select managed data identifiers,
  17. Selection type: Choose Recommended
  18. Task 3: Create a Macie job
  19. Click on the Next button.
  20. For Step-5, Custom data identifiers,
  21. Click on the Manage custom identifiers, to create one.
  22. Task 3: Create a Macie job
  23. Click on the Create option present on the top right.
  24. ?
  25. Fill in the details, as follows:
  26. Name: Enter Whiz
  27. Description: Enter This identifier finds the data present in the format of AB-01 i.e. two characters, dash and followed by two numbers.
  28. Regular expression: Enter [a-z]{2}-[0-9]{2}
  29. Task 3: Create a Macie job
  30. Keep all other options as default.
  31. Click on the Submit button to create the Custom identifier.
  32. Task 3: Create a Macie job
  33. Go back to the previous tab (Step 5 Select custom data identifiers ), and click on the refresh icon to see the newly created Custom identifier.
  34. Once refreshed, you will be able to see the Whiz identifier listed here. Click on the Next button.
  35. Task 3: Create a Macie job
  36. Select allow lists : Keep it default and click on Next button
  37. In General Setting : Enter a name and description,
  38. Name: Enter WhizJob
  39. Description: Enter This job scans the bucket with a name starting as lab and gathers its finding based on the regular expression pattern.
  40. Click on the Next button.
  41. Task 3: Create a Macie job
  42. For Step-8, Review and create,
  43. Review everything, click on the Submit button present below. Job is now created successfully.
  44. Task 3: Create a Macie job
Task 4

Task 4: Macie job run and findings

↑ Top
  1. Once the job is created, it will start running immediately.
  2. The job runs for approximately 10 minutes and gathers the findings.
  3. After 10 minutes, the status is changed to Complete.
  4. Task 4: Macie job run and findings
  5. To view the Findings for the job, perform the following:
  6. Click on the Job present there.
  7. Select Show results
  8. And Choose Show findings
  9. Task 4: Macie job run and findings
  10. To check the exact results, open the finding. Note : If you can not see findings wait for more 2 minutes and refresh the page.
  11. To check the exact results, open the finding.
  12. Perform the following task: Select the present finding Click on the Actions button And, Choose Export (JSON) JSON present here is in Read-only format, you may choose to download the complete report.
  13. Perform the following task:
  14. Select the present finding
  15. Click on the Actions button
  16. And, Choose Export (JSON)
  17. Task 4: Macie job run and findings
  18. JSON present here is in Read-only format, you may choose to download the complete report.
  19. Task 4: Macie job run and findings
  20. Amazon Macie is an AWS service designed to enhance data security by automatically discovering, classifying, and protecting sensitive data in Amazon S3. It utilizes machine learning and natural language processing techniques to identify various types of sensitive information, such as personally identifiable information (PII), financial data, intellectual property, and more.
Task 5

Task 5: Validation Test

↑ Top
  1. Once the lab steps are completed, please click on the Validate button on the Right side panel.
  2. This will validate the resources in the AWS account and displays whether you have completed this lab successfully or not.
  3. Sample output :
  4. Task 5: Validation Test
  5. You have successfully enabled Amazon Macie.
  6. You have successfully created a Macie job.
  7. You have successfully run the Macie job and retrieved the data.
  8. Sign out of AWS Account.
  9. You have successfully completed the lab.
  10. Once you have completed the steps, click on End Lab from your lab lab console and wait till the process gets completed.
← Back to Labs