Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/epomatti/aws-macie-dlp

AWS Macie job for DLP
https://github.com/epomatti/aws-macie-dlp

aws aws-macie aws-security dlp s3 security terraform

Last synced: about 1 month ago
JSON representation

AWS Macie job for DLP

Awesome Lists containing this project

README

        

# AWS Macie

Create the infrastructure:

```sh
terraform init
terraform apply -auto-approve
```

A file with vulnerabilities will be automatically uploaded to S3:

```
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

Credit Card Number: 5555555555554444
Type: Mastercard
CVC: 761
```

Terraform will attempt to enable Macie. If you already have it enabled, comment the resource `aws_macie2_account` declaration from the code.

Create a Macie job. Replace the `accountId` and `buckets` values accordingly.

```sh
aws macie2 create-classification-job \
--job-type "ONE_TIME" \
--name "job1" \
--s3-job-definition '{"bucketDefinitions":[{"accountId":"000000000000", "buckets":[""]}]}'
```

Review the results on the console.

## Security Hub

Macie will automatically publish findings to Security Hub.

In Macie, you can edit the options this in the Console to publish sensitive data findings as well.

On Security Hub, create `Insight: 10. S3 buckets with sensitive data`.