common

package
v0.0.777 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudAPIEntity

type CloudAPIEntity struct {
	Service  string `json:"service,omitempty" bson:"service,omitempty"`
	APICall  string `json:"apiCall,omitempty" bson:"apiCall,omitempty"`
	Resource string `json:"resource,omitempty" bson:"resource,omitempty"`
	User     string `json:"user,omitempty" bson:"user,omitempty"`
}

type DnsEntity

type DnsEntity struct {
	Domain string `json:"domain,omitempty" bson:"domain,omitempty"`
}

type EventDetailsEntity added in v0.0.715

type EventDetailsEntity struct {
	EventName   string `json:"name,omitempty" bson:"name,omitempty"`
	EventSource string `json:"source,omitempty" bson:"source,omitempty"`
}

type FileEntity

type FileEntity struct {
	Name      string `json:"name,omitempty" bson:"name,omitempty"`
	Directory string `json:"directory,omitempty" bson:"directory,omitempty"`
	// Hashes of the file the alert is about. Risk acceptance scoped to a hash
	// compares against these.
	//
	// Callers are expected to store them lower case; this struct does not enforce
	// it, and the comparison folds no case. Two writers do the folding, one per
	// side of that comparison: the alert side is folded by the malware producer in
	// event-ingester-service, and the exception side by
	// armotypes.NormalizeHashScopeValues.
	MD5    string `json:"md5,omitempty" bson:"md5,omitempty"`
	SHA1   string `json:"sha1,omitempty" bson:"sha1,omitempty"`
	SHA256 string `json:"sha256,omitempty" bson:"sha256,omitempty"`
}

type HttpEntity

type HttpEntity struct {
	Method    string `json:"method,omitempty" bson:"method,omitempty"`
	Domain    string `json:"domain,omitempty" bson:"domain,omitempty"`
	UserAgent string `json:"userAgent,omitempty" bson:"userAgent,omitempty"`
	Endpoint  string `json:"endpoint,omitempty" bson:"endpoint,omitempty"`
	Payload   string `json:"payload,omitempty" bson:"payload,omitempty"`
}

type Identifiers

type Identifiers struct {
	Process           *ProcessEntity           `json:"process,omitempty" bson:"process,omitempty"`
	File              *FileEntity              `json:"file,omitempty" bson:"file,omitempty"`
	Dns               *DnsEntity               `json:"dns,omitempty" bson:"dns,omitempty"`
	Network           *NetworkEntity           `json:"network,omitempty" bson:"network,omitempty"`
	Http              *HttpEntity              `json:"http,omitempty" bson:"http,omitempty"`
	CloudAPI          *CloudAPIEntity          `json:"cloud,omitempty" bson:"cloud,omitempty"`
	Event             *EventDetailsEntity      `json:"event,omitempty" bson:"event,omitempty"`
	UserIdentity      *UserIdentityEntity      `json:"userIdentity,omitempty" bson:"userIdentity,omitempty"`
	SourceInformation *SourceInformationEntity `json:"sourceInformation,omitempty" bson:"sourceInformation,omitempty"`
}

func (*Identifiers) Flatten

func (identifiers *Identifiers) Flatten() map[string]string

type NetworkEntity

type NetworkEntity struct {
	DstIP    string `json:"dstIP,omitempty" bson:"dstIP,omitempty"`
	DstPort  int    `json:"dstPort,omitempty" bson:"dstPort,omitempty"`
	Protocol string `json:"protocol,omitempty" bson:"protocol,omitempty"`
	SourceIP string `json:"sourceIP,omitempty" bson:"sourceIP,omitempty"`
}

type ProcessEntity

type ProcessEntity struct {
	Name        string `json:"name,omitempty" bson:"name,omitempty"`
	CommandLine string `json:"commandLine,omitempty" bson:"commandLine,omitempty"`
}

type SourceInformationEntity added in v0.0.715

type SourceInformationEntity struct {
	SourceIPAddress string `json:"sourceIPAddress,omitempty" bson:"sourceIPAddress,omitempty"`
	UserAgent       string `json:"userAgent,omitempty" bson:"userAgent,omitempty"`
}

type UserIdentityEntity added in v0.0.715

type UserIdentityEntity struct {
	UserName    string `json:"userName,omitempty" bson:"userName,omitempty"`
	Type        string `json:"type,omitempty" bson:"type,omitempty"`
	ARN         string `json:"ARN,omitempty" bson:"ARN,omitempty"`
	PrincipalID string `json:"principalID,omitempty" bson:"principalID,omitempty"`
	AccessKeyID string `json:"accessKeyID,omitempty" bson:"accessKeyID,omitempty"`
}

Jump to

Keyboard shortcuts

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