
Framework automatico di risposta agli avvisi di sicurezza by AWS Serverless Application Model
NOTA: Questo repository è obsoleto. Il nuovo repository si trova qui: https://github.com/m-mizutani/deepalert
AlertResponder è un framework serverless per la risposta automatica degli alert di sicurezza.
AlertResponder riceve un alert, ovvero un evento di interesse dal punto di vista della sicurezza, e risponde automaticamente all'alert. AlertResponder è composto da 3 parti di risposta automatica.

Sostituisci le seguenti variabili in base al tuo ambiente:
$REGION: Sostituisci con la tua regione AWS (es. ap-northeast-1)$STACK_NAME: Sostituisci con il nome dello stack CloudFormation$ curl -o alert_responder.yml https://s3-$REGION.amazonaws.com/cfn-assets.$REGION/AlertResponder/templates/latest.yml
$ aws cloudformation deploy --template-file alert_responder.yml --stack-name $STACK_NAME --capabilities CAPABILITY_IAM

Prepara un file di parametri, ad esempio config.json ed esegui il comando make.
$ cat config.json
{
"StackName": "your-alert-responder-name",
"TestStackName": "your-test-stack-name",
"CodeS3Bucket": "your-some-bucket",
"CodeS3Prefix": "for-example-functions",
"InspectionDelay": "1",
"ReviewDelay": "10"
}
$ env AR_CONFIG=config.json make deploy
NOTA: Assicurati di avere le credenziali AWS (es. API key) e i permessi appropriati.
Dopo aver distribuito AlertResponder, spostati nella directory tester e distribuisci uno stack per i test.
$ cd tester/
$ make AR_CONFIG=../config.json deploy
Dopo la distribuzione, puoi vedere il file param.json creato dallo script nella directory tester.
$ cat params.json
{
"AccountId": "214219211678",
"Region": "ap-northeast-1",
"Inspector": "slam-alert-responder-test-functions-Inspector-1OBGU89CT1P4B",
"Reporter": "slam-alert-responder-test-functions-Reporter-1NDHU0VDI8OPA"
}
Poi, torna alla directory principale del repository git e puoi eseguire il test di integrazione.
$ go test -v
=== RUN TestInvokeBySns
--- PASS: TestInvokeBySns (3.39s)
(snip)
PASS
ok github.com/m-mizutani/AlertResponder 20.110s