Documentation
¶
Index ¶
Constants ¶
const ( // AWSGuardDutyDataSource is the specific data_source label for guard-duty AWSGuardDutyDataSource = "aws:guard-duty" // AWSAccessAnalyzerDataSource is the specific data_source label for access-analyzer AWSAccessAnalyzerDataSource = "aws:access-analyzer" // AWSAdminCheckerDataSource is the specific data_source label for admin-checker AWSAdminCheckerDataSource = "aws:admin-checker" // AWSCloudSploitDataSource is the specific data_source label for cloudsploit AWSCloudSploitDataSource = "aws:cloudsploit" // AWSPortscanDataSource is the specific data_source label for portscan AWSPortscanDataSource = "aws:portscan" )
const ( // GitleaksDataSource is the specific data_source label for gitleaks GitleaksDataSource = "code:gitleaks" // DependencyDataSource is the specific data_source label for dependency DependencyDataSource = "code:dependency" // CodeScanDataSource is the specific data_source label for codescan CodeScanDataSource = "code:codescan" )
const ( DataSourceNameWPScan = "diagnosis:wpscan" DataSourceNamePortScan = "diagnosis:portscan" DataSourceNameApplicationScan = "diagnosis:application-scan" )
const ( // GoogleAssetDataSource is the DataSource label for Cloud Asset Inventory. GoogleAssetDataSource = "google:asset" // GoogleCloudSploitDataSource is the DataSource label for Aqua Cloud Sploit. GoogleCloudSploitDataSource = "google:cloudsploit" // GoogleSCCDataSource is the DataSource label for Security Command Center. GoogleSCCDataSource = "google:scc" // GooglePortscanDataSource is the DataSource label for Portscan. GooglePortscanDataSource = "google:portscan" )
const ( // GuardDutyDataSource is the specific data_source label for subdomain SubdomainDataSource = "osint:subdomain" // AccessAnalyzerDataSource is the specific data_source label for website WebsiteDataSource = "osint:website" )
const (
// AzureProwler is the specific data_source label for prowler
AzureProwlerDataSource = "azure:prowler"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSQueueMessage ¶
type AWSQueueMessage struct {
AWSID uint32 `json:"aws_id"`
AWSDataSourceID uint32 `json:"aws_data_source_id"`
DataSource string `json:"data_source"`
ProjectID uint32 `json:"project_id"`
AccountID string `json:"account_id"`
AssumeRoleArn string `json:"assume_role_arn"`
ExternalID string `json:"external_id"`
ScanOnly bool `json:"scan_only,string"`
SpecificVersion string `json:"specific_version"`
}
AWSQueueMessage is the message for SQS queue
func ParseMessageAWS ¶
func ParseMessageAWS(msg string) (*AWSQueueMessage, error)
ParseMessage parse message & validation
func (*AWSQueueMessage) Validate ¶
func (g *AWSQueueMessage) Validate() error
Validate is the validation to GuardDutyMessage
type ApplicationScanQueueMessage ¶
type ApplicationScanQueueMessage struct {
DataSource string `json:"data_source"`
ApplicationScanID uint32 `json:"application_scan_id"`
ProjectID uint32 `json:"project_id"`
Name string `json:"name"`
ApplicationScanType string `json:"application_scan_type"`
ScanOnly bool `json:"scan_only,string"`
}
ApplicationScanQueueMessage is the message for SQS queue for ApplicationScan
func ParseApplicationScanMessage ¶
func ParseApplicationScanMessage(msg string) (*ApplicationScanQueueMessage, error)
ParseApplicationScanMessage parse applicationscan message
func (*ApplicationScanQueueMessage) Validate ¶ added in v0.7.0
func (m *ApplicationScanQueueMessage) Validate() error
type AzureQueueMessage ¶ added in v0.12.0
type AzureQueueMessage struct {
AzureID uint32 `json:"azure_id"`
AzureDataSourceID uint32 `json:"azure_data_source_id"`
ProjectID uint32 `json:"project_id"`
ScanOnly bool `json:"scan_only,string"`
}
AzureQueueMessage is the message for SQS queue
func ParseMessageAzure ¶ added in v0.12.0
func ParseMessageAzure(msg string) (*AzureQueueMessage, error)
ParseMessage parse message & validation
func (*AzureQueueMessage) Validate ¶ added in v0.12.0
func (g *AzureQueueMessage) Validate() error
Validate is the validation to ProwlerMessage
type CodeQueueMessage ¶ added in v0.4.0
type CodeQueueMessage struct {
GitHubSettingID uint32 `json:"github_setting_id"`
ProjectID uint32 `json:"project_id"`
ScanOnly bool `json:"scan_only,string"`
FullScan bool `json:"full_scan,string"`
}
CodeQueueMessage is the message for SQS queue
func ParseMessageGitHub ¶ added in v0.4.0
func ParseMessageGitHub(msg string) (*CodeQueueMessage, error)
ParseMessage parse message & validation
func (*CodeQueueMessage) Validate ¶ added in v0.4.0
func (g *CodeQueueMessage) Validate() error
Validate is the validation to GuardDutyMessage
type GCPQueueMessage ¶
type GCPQueueMessage struct {
GCPID uint32 `json:"gcp_id"`
ProjectID uint32 `json:"project_id"`
GoogleDataSourceID uint32 `json:"google_data_source_id"`
ScanOnly bool `json:"scan_only,string"`
}
GCPQueueMessage is the message for SQS queue
func ParseMessageGCP ¶
func ParseMessageGCP(msg string) (*GCPQueueMessage, error)
ParseMessage parse message & validation
func (*GCPQueueMessage) Validate ¶
func (g *GCPQueueMessage) Validate() error
Validate is the validation to GuardDutyMessage
type OsintQueueMessage ¶
type OsintQueueMessage struct {
DataSource string `json:"data_source"`
RelOsintDataSourceID uint32 `json:"rel_osint_data_source_id"`
OsintID uint32 `json:"osint_id"`
OsintDataSourceID uint32 `json:"osint_data_source_id"`
ProjectID uint32 `json:"project_id"`
ResourceName string `json:"resource_name"`
ResourceType string `json:"resource_type"`
DetectWord string `json:"detect_word"`
ScanOnly bool `json:"scan_only,string"`
}
OsintQueueMessage is the message for SQS queue
func ParseMessageOSINT ¶
func ParseMessageOSINT(msg string) (*OsintQueueMessage, error)
ParseMessage parse message & validation
func (*OsintQueueMessage) Validate ¶
func (o *OsintQueueMessage) Validate() error
Validate is the validation to OsintQueueMessage
type PortscanQueueMessage ¶
type PortscanQueueMessage struct {
DataSource string `json:"data_source"`
PortscanSettingID uint32 `json:"portscan_setting_id"`
PortscanTargetID uint32 `json:"portscan_target_id"`
ProjectID uint32 `json:"project_id"`
Target string `json:"target"`
ScanOnly bool `json:"scan_only,string"`
}
PortscanQueueMessage is the message for SQS queue for Portscan
func ParsePortscanMessage ¶
func ParsePortscanMessage(msg string) (*PortscanQueueMessage, error)
ParsePortscanMessage parse portscan message
func (*PortscanQueueMessage) Validate ¶ added in v0.7.0
func (m *PortscanQueueMessage) Validate() error
type WpscanQueueMessage ¶
type WpscanQueueMessage struct {
DataSource string `json:"data_source"`
WpscanSettingID uint32 `json:"wpscan_setting_id"`
ProjectID uint32 `json:"project_id"`
TargetURL string `json:"target_url"`
Options string `json:"options"`
ScanOnly bool `json:"scan_only,string"`
}
WpscanQueueMessage is the message for SQS queue for Wpscan
func ParseWpscanMessage ¶
func ParseWpscanMessage(msg string) (*WpscanQueueMessage, error)
ParseWpscanMessage parse wpscan message
func (*WpscanQueueMessage) Validate ¶ added in v0.7.0
func (m *WpscanQueueMessage) Validate() error