-
Notifications
You must be signed in to change notification settings - Fork 0
/
securityhub.go
62 lines (58 loc) · 1.95 KB
/
securityhub.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package strictly
import (
"time"
)
// SecurityHubFindingsImported EventBridge Event Format
type SecurityHubFindingsImported struct {
Version string `json:"version"`
ID string `json:"id"`
DetailType string `json:"detail-type"`
Source string `json:"source"`
Account string `json:"account"`
Time time.Time `json:"time"`
Region string `json:"region"`
Resources []string `json:"resources"`
Detail struct {
Findings struct {
ASFF
} `json:"findings"`
} `json:"detail"`
}
// SecurityHubFindingsCustomAction EventBridge Event Format
type SecurityHubFindingsCustomAction struct {
Version string `json:"version"`
ID string `json:"id"`
DetailType string `json:"detail-type"`
Source string `json:"source"`
Account string `json:"account"`
Time time.Time `json:"time"`
Region string `json:"region"`
Resources []string `json:"resources"`
Detail struct {
Actionname string `json:"actionName"`
Actiondescription string `json:"actionDescription"`
Findings []struct {
ASFF
} `json:"findings"`
} `json:"detail"`
}
// SecurityHubInsightResults EventBridge Event Format
type SecurityHubInsightResults struct {
Version string `json:"version"`
ID string `json:"id"`
DetailType string `json:"detail-type"`
Source string `json:"source"`
Account string `json:"account"`
Time time.Time `json:"time"`
Region string `json:"region"`
Resources []string `json:"resources"`
Detail struct {
Actionname string `json:"actionName"`
Actiondescription string `json:"actionDescription"`
Insightarn string `json:"insightArn"`
Insightname string `json:"insightName"`
Resulttype string `json:"resultType"`
NumberOfResults string `json:"number of results"`
Insightresults []interface{} `json:"insightResults"`
} `json:"detail"`
}