테스트
단위 테스트를 사용하여 디택션이 예상대로 작동하는지 확인하세요
개요
테스트 사용하기
테스트를 만드는 방법
테스트:
-
이름: 첫 번째 테스트를 설명하는 이름
LogType: LogType.GoesHere
ExpectedResult: true 또는 false
로그:
{
"hostName": "test-01.prod.acme.io",
"user": "martin_smith",
"eventTime": "June 22 5:50:52 PM"
}테스트:
-
이름: 첫 번째 테스트를 설명하는 이름.
ResourceType: AWS.S3.Bucket
예상 결과: true
리소스:
{
"PublicAccessBlockConfiguration": null,
"Region": "us-east-1",
"Policy": null,
"AccountId": "123456789012",
"LoggingPolicy": {
"TargetBucket": "access-logs-us-east-1-100",
"TargetGrants": null,
"TargetPrefix": "acmecorp-fiancial-data/"
},
"EncryptionRules": [
{
"ApplyServerSideEncryptionByDefault": {
"SSEAlgorithm": "AES256",
"KMSMasterKeyID": null
}
}
],
"Arn": "arn:aws:s3:::acmecorp-fiancial-data",
"Name": "acmecorp-fiancial-data",
"LifecycleRules": null,
"ResourceType": "AWS.S3.Bucket",
"Grants": [
{
"Permission": "FULL_CONTROL",
"Grantee": {
"URI": null,
"EmailAddress": null,
"DisplayName": "admins",
"Type": "CanonicalUser",
"ID": "013ae1034i130431431"
}
}
],
"Versioning": "Enabled",
"ResourceId": "arn:aws:s3:::acmecorp-fiancial-data",
"Tags": {
"aws:cloudformation:logical-id": "FinancialDataBucket"
},
"Owner": {
"ID": "013ae1034i130431431",
"DisplayName": "admins"
},
"TimeCreated": "2020-06-13T17:16:36.000Z",
"ObjectLockConfiguration": null,
"MFADelete": null
}Panther Console에서 테스트 이름을 바꾸거나 삭제하는 방법
테스트 예시
목
목 사용 방법

목 예시

디택션 자세히 살펴보기


CLI의 목
테스트 데이터 보강

마지막 업데이트
도움이 되었나요?





