-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for rules download in cli mode
- Loading branch information
Showing
12 changed files
with
460 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package threatintel | ||
|
||
type FeedsBundle struct { | ||
Version string `json:"version"` | ||
CreatedAt int64 `json:"created_at"` | ||
ScannerFeeds ScannerFeeds `json:"scanner_feeds"` | ||
TracerFeeds TracerFeeds `json:"tracer_feeds"` | ||
Extra []string `json:"extra"` | ||
} | ||
|
||
type ScannerFeeds struct { | ||
VulnerabilityRules []DeepfenceRule `json:"vulnerability_rules"` | ||
SecretRules []DeepfenceRule `json:"secret_rules"` | ||
MalwareRules []DeepfenceRule `json:"malware_rules"` | ||
ComplianceRules []DeepfenceRule `json:"compliance_rules"` | ||
CloudComplianceRules []DeepfenceRule `json:"cloud_compliance_rules"` | ||
} | ||
|
||
type TracerFeeds struct { | ||
NetworkRules []DeepfenceRule `json:"network_rules"` | ||
FilesystemRules []DeepfenceRule `json:"filesystem_rules"` | ||
ProcessRules []DeepfenceRule `json:"process_rules"` | ||
ExternalArtefacts []Artefact `json:"external_artefacts"` | ||
} | ||
|
||
type Artefact struct { | ||
Name string `json:"name"` | ||
Type string `json:"type"` | ||
Content []byte `json:"content"` | ||
} | ||
|
||
type DeepfenceRule struct { | ||
RuleID string `json:"rule_id"` | ||
Type string `json:"type"` | ||
Payload string `json:"payload"` | ||
Severity string `json:"severity"` | ||
Description string `json:"description"` | ||
} |
Oops, something went wrong.