after macie scan for sensitive information, using lambda to automatically tag S3 object based on customized label

Overview

Macie-auto-tag

after macie scan for sensitive information, using lambda to automatically tag S3 object based on customized label 可以在lambda环境变量中自定数据的保密级别 snapshot 可以采用以下两种架构实现: lambda代码请下载: 直接通过Eventbridge的方式: macie-eb-auto-tag.py diagram

从Securityhub通过手动方式发送:macie-sh-auto-tag.py

方案1 Create eventbridge

参数设置

regions=($(aws ec2 describe-regions --query 'Regions[*].RegionName' --region=us-east-1 --output text))
rulename='macierule'

运行CLI命令

for region in $regions; do
rulearn=$(aws events put-rule  --name $rulename  --event-pattern "{\"source\": [\"aws.macie\"],\"detail-type\": [\"Macie Finding\"]}" --region=$region --query 'RuleArn' --output text)
echo $rulearn
echo $region
done
You might also like...

A simple system information gathering tool, displays variety of system information such as hardware information, network configuration and more

SystemParser_0.0.3-alpha A simple system information gathering tool written in python, displays a medley of system information reported by the systems

Aug 10, 2022

Tag and export your markdown notes using Logseq-style page references.

Logmark What is this? Logmark converts directory-organized markdown files for use with Logseq by adding the parent directories of each file as [[page]

May 8, 2022

A bot for Instagram. You can follow users using a tag or in a specific location, unfollow those who dont follow-you-back, and follow-back those who follow you

instagram-followers-bot Functionality: Info: Show report Follow users: from tag, from location, from a list or follow back who you do not follow back

Oct 13, 2022

This is a rest api for generating customized DP's for events

This is a rest api for generating customized DP's for events

About The Project This is a rest api for generating customized DP's for events. Just like getdp.co. Technologies Used Django rest framework Pillow Clo

Sep 5, 2022

An open source algorithm to generate a 3D model of the women bra. This allows ONEBra to build personalized/customized cups for symmetric breast restoration starting from a simple 3D photo.

An open source algorithm to generate a 3D model of the women bra. This allows ONEBra to build personalized/customized cups for symmetric breast restoration starting from a simple 3D photo.

ONEBra English intro An open source algorithm to generate a 3D model of the women bra. This allows ONEBra to build personalized/customized cups for sy

May 2, 2022

A library to help management of fully customized mathematical/financial indicators

A library to help management of fully customized mathematical/financial indicators

IndicatorManagement A library to help management of fully customized indicators. Features This library provides management of mathematical/financial i

Apr 18, 2022

Customized Deep Dream Challenge code by @SIrajology for M1 mac

Customized-deep_dream_challenge-for-M1-Macbook-pro Customized Deep Dream Challenge code by @SIrajology for M1 mac How To Install TensorFlow on M1 Mac

Jul 31, 2022

Rewriting Geometric Rules of a GAN: Warp a GAN model to customized, out-of-domain shapes.

Rewriting Geometric Rules of a GAN: Warp a GAN model to customized, out-of-domain shapes.

Rewriting Geometric Rules of a GAN Project | Paper | Youtube With our method, a user can edit a GAN model to synthesize many unseen objects with the d

Nov 20, 2022

This project extracts (web scraping) movie data from IMDB and send a customized email letter with random popular movies.

This project extracts (web scraping) movie data from IMDB and send a customized email letter with random popular movies.

Email-Movie-Recommender-Web-Scrapping Web Scraping Project Description This project extracts movie data from IMDB and send a customized email letter w

Aug 9, 2022
Owner
jwyc
aws security
jwyc
Multi-label Classification Model for English Scientific Literature: develop a multi-label classification model for scientific research literature based on the given metadata (title and abstract) of scientific research literature and corresponding hierarchical labels from a domain-specific topic taxonomy.

Multi-label Classification Model for English Scientific Literature: develop a multi-label classification model for scientific research literature based on the given metadata (title and abstract) of scientific research literature and corresponding hierarchical labels from a domain-specific topic taxonomy.

Yan Xinyi 2 Jul 14, 2022
It's a python automated twitter bot which tweets automatically after every interval of time using TwitterAPI

Python-Twitter-Bot-Automated It's a python automated twitter bot which tweets automatically after every interval of time using TwitterAPI main.py ?? C

Aditya Bhoyar 1 Jun 13, 2022
The official implementation of Narcissus clean-label backdoor attack -- only takes THREE images to poison a face recognition dataset in a clean-label way and achieves a 99.89% attack success rate.

Narcissus Clean-label Backdoor Attack This is the official implementation of the paper: `Narcissus: A Practical Clean-Label Backdoor Attack with Limit

ReDS Lab 54 Nov 23, 2022
iMage nOisy LabeL fIndEr (mollie) is a tool that leverages cleanlab to identify noisy label in your image classification dataset

mollie mollie (iMage nOisy LabeL fIndEr) is a tool that leverages cleanlab to identify noisy label in your image classification dataset. How to use it

Riccardo Musmeci 1 Sep 24, 2022
Automatically scan jar packages by using ast to find fastjson gadgets

Automatically scan jar packages by using ast to find fastjson gadgets. In particular, this project is limited to mining Gadgets that may be exploited, and screening results need to be excluded by themselves. Looking forward to Fork and Star.

h3rmesk1t 37 Nov 22, 2022
Discord bot to automatically delete messages in a certain channel after a set amount of time

Discord bot to automatically delete messages in a certain channel after a set amount of time. Perfect for vent channels where you can let out all your stress and such and have it deleted after just a few minutes. Works with all messages and users.

null 1 Oct 30, 2022
A Text User Interface (TUI) for Pytest, automatically launched after your test run is finished

pytest-tui A Pytest plugin that auto-launches a Text User Interface (TUI) for viewing test run results Using PyTermTk: ...using Textual TUI: Introduct

Jeff Wright 13 Sep 21, 2022
A pomodoro-like timer which automatically rewards you with anime after your study session written in python

time-tan A python based pomodoro timer which automatically rewards you with anime after your study session. Installation instructions: Install ani-cli

Andrew 11 Nov 9, 2022
This script will automatically add a comma after every line in the .txt file.

Comma Separator This script will automatically add a comma after every line in the .txt file. How to use In order to use this, you will first need to

null 1 Aug 28, 2022
Lambda deployed with serverless + terraform to process put object AWS S3 events and process using file stream

aws-lambda-s3-trigger This project uses a combination of serverless and terraform to create a lambda that is trigged when a csv (can be customized in

Felipe Medeiros 3 Sep 11, 2022