Documentation
¶
Index ¶
- func Decrypt(ciphertext, key []byte) ([]byte, error)
- func Encrypt(plaintext, key []byte) ([]byte, error)
- func LoadEncryptionKey(keySource string) ([]byte, error)
- func Register(typ string, factory Factory)
- func SerializeFindings(findings []pillager.Finding) ([]byte, error)
- type Config
- type Exfiltrator
- type Factory
- type Metadata
- type Package
- type S3Options
- type SliverOptions
- type WebhookOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEncryptionKey ¶
LoadEncryptionKey loads an encryption key from various sources.
Types ¶
type Config ¶
type Config struct {
Type string
EncryptionKey string
Compress bool
S3 *S3Options
Webhook *WebhookOptions
Sliver *SliverOptions
}
Config holds configuration for an exfiltrator instance.
type Exfiltrator ¶
type Exfiltrator interface {
Exfiltrate(ctx context.Context, findings []pillager.Finding) error
Close() error
}
Exfiltrator defines the interface for exfiltrating findings to external destinations.
func Create ¶
func Create(config Config) (Exfiltrator, error)
Create creates an exfiltrator instance for the given configuration.
type Factory ¶
type Factory func(config Config) (Exfiltrator, error)
Factory creates exfiltrator instances.
type Metadata ¶
type Metadata struct {
Hostname string `json:"hostname,omitempty"`
Timestamp time.Time `json:"timestamp"`
Version string `json:"version"`
FindingCount int `json:"finding_count"`
}
Metadata holds metadata about exfiltrated findings.
type Package ¶
type Package struct {
Metadata Metadata `json:"metadata"`
Findings []pillager.Finding `json:"findings"`
}
Package holds findings with metadata for exfiltration.
func CreatePackage ¶
CreatePackage creates a package with metadata for exfiltration.
type S3Options ¶
type S3Options struct {
Bucket string
Region *string
Endpoint *string
Prefix *string
AccessKey *string
SecretKey *string
}
S3Options holds S3-specific exfiltration configuration.
Click to show internal directories.
Click to hide internal directories.