guardduty_finding

package
v0.14.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const GuardDutyFindingTableIdentifier = "aws_guardduty_finding"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeyDetails

type AccessKeyDetails struct {
	AccessKeyId *string `json:"access_key_id,omitempty"`
	PrincipalId *string `json:"principal_id,omitempty"`
	UserName    *string `json:"user_name,omitempty"`
	UserType    *string `json:"user_type,omitempty"`
}

type Action

type Action struct {
	ActionType    *string                `json:"action_type,omitempty"`
	ActionDetails map[string]interface{} `json:"action_details,omitempty" parquet:"type=JSON"`
}

type GuardDutyFinding

type GuardDutyFinding struct {
	schema.CommonFields

	AccountId     *string    `json:"account_id"`
	Arn           *string    `json:"arn"`
	Description   *string    `json:"description"`
	Id            *string    `json:"id"`
	Partition     *string    `json:"partition"`
	Region        *string    `json:"region"`
	SchemaVersion *string    `json:"schema_version"`
	Severity      *float64   `json:"severity"`
	Title         *string    `json:"title"`
	Type          *string    `json:"type"`
	CreatedAt     time.Time  `json:"created_at"`
	UpdatedAt     *time.Time `json:"updated_at"`
	Service       *Service   `json:"service,omitempty"`
	Resource      *Resource  `json:"resource,omitempty"`
}

func (*GuardDutyFinding) GetColumnDescriptions

func (c *GuardDutyFinding) GetColumnDescriptions() map[string]string

type GuardDutyFindingTable

type GuardDutyFindingTable struct{}

GuardDutyFindingTable - table for GuardDuty Findings

func (*GuardDutyFindingTable) EnrichRow

func (c *GuardDutyFindingTable) EnrichRow(row *GuardDutyFinding, sourceEnrichmentFields schema.SourceEnrichment) (*GuardDutyFinding, error)

func (*GuardDutyFindingTable) GetDescription

func (c *GuardDutyFindingTable) GetDescription() string

func (*GuardDutyFindingTable) GetSourceMetadata

func (c *GuardDutyFindingTable) GetSourceMetadata() ([]*table.SourceMetadata[*GuardDutyFinding], error)

func (*GuardDutyFindingTable) Identifier

func (c *GuardDutyFindingTable) Identifier() string

type GuardDutyMapper

type GuardDutyMapper struct {
}

GuardDutyMapper is a mapper that receives GuardDutyBatch objects and extracts GuardDutyFinding records from them

func (*GuardDutyMapper) Identifier

func (g *GuardDutyMapper) Identifier() string

func (*GuardDutyMapper) Map

Map casts the data item as a GuardDutyBatch and returns the GuardDutyFinding records

type ProcessDetails

type ProcessDetails struct {
	Euid             *int32     `json:"euid,omitempty"`
	ExecutablePath   *string    `json:"executable_path,omitempty"`
	ExecutableSha256 *string    `json:"executable_sha256,omitempty"`
	Name             *string    `json:"name,omitempty"`
	NamespacePid     *int32     `json:"namespace_pid,omitempty"`
	ParentUuid       *string    `json:"parent_uuid,omitempty"`
	Pid              *int32     `json:"pid,omitempty"`
	Pwd              *string    `json:"pwd,omitempty"`
	StartTime        *time.Time `json:"start_time,omitempty"`
	User             *string    `json:"user,omitempty"`
	UserId           *int32     `json:"user_id,omitempty"`
	Uuid             *string    `json:"uuid,omitempty"`
}

type Resource

type Resource struct {
	ResourceType     *string                 `json:"resource_type,omitempty"`
	AccessKeyDetails *AccessKeyDetails       `json:"access_key_details,omitempty"`
	ResourceDetails  *map[string]interface{} `json:"resource_details,omitempty" parquet:"type=JSON"`
}

type RuntimeDetails

type RuntimeDetails struct {
	Context *RuntimeDetailsContext `json:"context,omitempty"`
	Process *ProcessDetails        `json:"process,omitempty"`
}

type RuntimeDetailsContext

type RuntimeDetailsContext struct {
	AddressFamily      *string         `json:"address_family,omitempty"`
	CommandLineExample *string         `json:"command_line_example,omitempty"`
	FileSystemType     *string         `json:"file_system_type,omitempty"`
	Flags              []string        `json:"flags,omitempty"`
	IanaProtocolNumber *int32          `json:"iana_protocol_number,omitempty"`
	LdPreloadValue     *string         `json:"ld_preload_value,omitempty"`
	LibraryPath        *string         `json:"library_path,omitempty"`
	MemoryRegions      []string        `json:"memory_regions,omitempty"`
	ModifiedAt         *time.Time      `json:"modified_at,omitempty"`
	ModifyingProcess   *ProcessDetails `json:"modifying_process,omitempty"`
	ModuleFilePath     *string         `json:"module_file_path,omitempty"`
	ModuleName         *string         `json:"module_name,omitempty"`
	ModuleSha256       *string         `json:"module_sha256,omitempty"`
	MountSource        *string         `json:"mount_source,omitempty"`
	MountTarget        *string         `json:"mount_target,omitempty"`
	ReleaseAgentPath   *string         `json:"release_agent_path,omitempty"`
	RuncBinaryPath     *string         `json:"runc_binary_path,omitempty"`
	ScriptPath         *string         `json:"script_path,omitempty"`
	ServiceName        *string         `json:"service_name,omitempty"`
	ShellHistoryPath   *string         `json:"shell_history_path,omitempty"`
	SocketPath         *string         `json:"socket_path,omitempty"`
	TargetProcess      *ProcessDetails `json:"target_process,omitempty"`
	ThreatFilePath     *string         `json:"threat_file_path,omitempty"`
	ToolCategory       *string         `json:"tool_category,omitempty"`
	ToolName           *string         `json:"tool_name,omitempty"`
}

type Service

type Service struct {
	Action               *Action                     `json:"action,omitempty"`
	AdditionalInfo       *ServiceAdditionInfo        `json:"additional_info,omitempty"`
	Archived             *bool                       `json:"archived,omitempty"`
	Count                *int32                      `json:"count,omitempty"`
	Detection            *types.Detection            `json:"detection,omitempty" parquet:"type=JSON"` // contains maps
	DetectorId           *string                     `json:"detector_id,omitempty"`
	EbsVolumeScanDetails *types.EbsVolumeScanDetails `json:"ebs_volume_scan_details,omitempty" parquet:"type=JSON"` // contains []struct
	EventFirstSeen       *string                     `json:"event_first_seen,omitempty"`
	EventLastSeen        *string                     `json:"event_last_seen,omitempty"`
	Evidence             *types.Evidence             `json:"evidence,omitempty" parquet:"type=JSON"` // contains []struct
	FeatureName          *string                     `json:"feature_name,omitempty"`
	MalwareScanDetails   *types.MalwareScanDetails   `json:"malware_scan_details,omitempty" parquet:"type=JSON"` // contains []struct
	ResourceRole         *string                     `json:"resource_role,omitempty"`
	RuntimeDetails       *RuntimeDetails             `json:"runtime_details,omitempty"`
	ServiceName          *string                     `json:"service_name,omitempty"`
	UserFeedback         *string                     `json:"user_feedback,omitempty"`
}

type ServiceAdditionInfo

type ServiceAdditionInfo struct {
	Type  *string `json:"type"`
	Value *string `json:"value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL