Overview
Lab details
- This lab walks you through the steps to create and configure an Amazon Macie job to discover sensitive data.
- You will practice using a custom data identifier where you will write a regular expression that matches the pattern of data present in the S3 bucket.
- Duration: 60 minutes
- AWS Region: US East (N. Virginia) us-east-1
Introduction
What is Amazon Macie ?
- Amazon Macie uses pattern matching and machine learning to protect the sensitive data stored in S3 buckets.
- It detects a list of data types including PII (Personally identifiable information) such as names, addresses, credit card numbers, etc.
- Along with detecting data, it gives you complete visibility of your S3 buckets and its information like publicly accessible buckets, unencrypted buckets, and buckets shared with other accounts.
- To get started with Amazon Macie, you can use its free trial of 30 days for bucket evaluation.
- The free trial does not include the discovery of sensitive data present in S3 buckets.
Architecture diagram

Task details
- Sign in to AWS Management Console.
- Enable Macie for the account.
- Create a Macie job.
- Macie job run and findings.
- Validation of the lab.
Launching the lab environment
- To launch the lab environment, Click on the Launch lab button.
- Please wait until the cloud environment is provisioned. It will take less than a minute to provision.
- Once the Lab is started, you will be provided with IAM user name, Password, Access Key, and Secret Access Key.
You can only start one lab at any given time
Lab guide
Lab StepsTask 1: Sign in to AWS Management Console
- Click on the Open console button, and you will get redirected to AWS Console in a new browser tab.
-
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.
- Once Signed In to the AWS Management Console, Make the default AWS Region as US East (N. Virginia) us-east-1.
Task 2: Enable Macie for the account
- Make sure you are in the US East (N. Virginia) us-east-1 Region.
- Navigate to Amazon Macie by clicking on the Services menu in the top, then click on Amazon Macie in the Security, Identity & Compliance section.
-
On the home page, click on the Get started button to configure Amazon Macie.


Task 3: Create a Macie job
-
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.

- For Step-1, Choose S3 Bucket,
If you are getting any error notification, leave it and continue the rest steps.
- If you can not See the bucket, click on the Add filter criteria field and click on the Bucket name.
- Type whizlabs and select the bucket name starting with whizlabs, and click on the Next button

NOTE : If bucket is not listed, wait for 2–5 minutes and refresh the page 2–3 times.
- Review S3 buckets Keep everything as default and click on the Next button.

- For Step-3, Refine the scope,
- In Sensitive data discover options: Select One-time job
- Click on the arrow to expand the window of Additional settings
- Let the Object criteria be default as File name extensions.
- Write csv in the textbox and click on the Include button.
- Once done, click on the Next button to proceed.

- For Step-4, Select managed data identifiers,
- Selection type: Choose Recommended

- Click on the Next button.
- For Step-5, Custom data identifiers,
- Click on the Manage custom identifiers, to create one.

This will open in a new tab. Enable pop-ups if it does not open on the first click.
- Click on the Create option present on the top right.

- Fill in the details, as follows:
- Name: Enter Whiz
- Description: Enter This identifier finds the data present in the format of AB-01 i.e. two characters, dash and followed by two numbers.

- Keep all other options as default.
- Click on the Submit button to create the Custom identifier.

- Go back to the previous tab and click on the refresh icon to see the newly created Custom identifier.
-
Once refreshed, you will be able to see the Whiz identifier listed here. Click on the Next button.

- Select allow lists : Keep it default and click on Next button
- In General Setting : Enter a name and description,
- Name: Enter WhizJob
- Description: Enter This job scans the bucket with a name starting as whizlabs and gathers its finding based on the regular expression pattern.
- Click on the Next button.

- For Step-8, Review and create,
- Review everything, click on the Submit button present below. Job is now created successfully.

Task 4: Macie job run and findings
- Once the job is created, it will start running immediately.
- The job runs for approximately 10 minutes and gathers the findings.
-
After 10 minutes, the status is changed to Complete.

- To view the Findings for the job, perform the following:
- Click on the Job present there.
- Select Show results
-
And Choose Show findings

-
To check the exact results, open the finding.
Note : If you can not see findings wait for more 2 minutes and refresh the page.

-
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.

Task 5: Validation Test
- Once the lab steps are completed, please click on the Validate button on the Right side panel.
- This will validate the resources in the AWS account and displays whether you have completed this lab successfully or not.
-
Sample output :

Completion and conclusion
- You have successfully enabled Amazon Macie.
- You have successfully created a Macie job.
- You have successfully run the Macie job and retrieved the data.
End lab
- Sign out of AWS Account.
- You have successfully completed the lab.
- Once you have completed the steps, click on End lab in the IP Lab Portal and wait till the process gets completed.
What gets checked
When you press Check my work, the platform verifies each of these:- Check Macie job findings — Check whether Macie job findings are present or not
- Create a Macie Classification job — Check whether a Macie classification job is created or not