Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationDefense ¶
type ApplicationDefense struct {
// contains filtered or unexported fields
}
func NewApplicationDefense ¶
func NewApplicationDefense() *ApplicationDefense
func (*ApplicationDefense) Scan ¶
func (ad *ApplicationDefense) Scan(input string) []ThreatEvent
func (*ApplicationDefense) Status ¶
func (ad *ApplicationDefense) Status() string
type DefenseInDepth ¶
type DefenseInDepth struct {
// contains filtered or unexported fields
}
func NewDefenseInDepth ¶
func NewDefenseInDepth() *DefenseInDepth
func (*DefenseInDepth) Scan ¶
func (d *DefenseInDepth) Scan(input string) []ThreatEvent
func (*DefenseInDepth) Status ¶
func (d *DefenseInDepth) Status() map[string]interface{}
func (*DefenseInDepth) UpdatePolicy ¶
func (d *DefenseInDepth) UpdatePolicy(policy *SecurityPolicy) error
type DefenseLayer ¶
type DefenseLayer int
const ( LayerApplication DefenseLayer = 1 LayerNetwork DefenseLayer = 2 LayerKernel DefenseLayer = 3 )
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
func NewEventBus ¶
func (*EventBus) Events ¶
func (eb *EventBus) Events() <-chan ThreatEvent
func (*EventBus) Publish ¶
func (eb *EventBus) Publish(event ThreatEvent)
func (*EventBus) Subscribe ¶
func (eb *EventBus) Subscribe(fn func(ThreatEvent))
type KernelDefense ¶
type KernelDefense struct {
// contains filtered or unexported fields
}
func NewKernelDefense ¶
func NewKernelDefense() *KernelDefense
func (*KernelDefense) Check ¶
func (kd *KernelDefense) Check() []ThreatEvent
func (*KernelDefense) Status ¶
func (kd *KernelDefense) Status() string
type NetworkDefense ¶
type NetworkDefense struct {
// contains filtered or unexported fields
}
func NewNetworkDefense ¶
func NewNetworkDefense() *NetworkDefense
func (*NetworkDefense) AddAllowedDomain ¶
func (nd *NetworkDefense) AddAllowedDomain(domain string)
func (*NetworkDefense) AddAllowedIP ¶
func (nd *NetworkDefense) AddAllowedIP(ip string)
func (*NetworkDefense) Check ¶
func (nd *NetworkDefense) Check() []ThreatEvent
func (*NetworkDefense) Status ¶
func (nd *NetworkDefense) Status() string
type SecurityPolicy ¶
type ThreatEvent ¶
type ThreatEvent struct {
Type ThreatType `json:"type"`
Layer DefenseLayer `json:"layer"`
Severity int `json:"severity"`
Message string `json:"message"`
Timestamp time.Time `json:"timestamp"`
}
type ThreatType ¶
type ThreatType string
const ( ThreatPromptInjection ThreatType = "prompt_injection" ThreatPIILeak ThreatType = "pii_leak" ThreatSecretExposure ThreatType = "secret_exposure" ThreatMalware ThreatType = "malware" ThreatVulnerability ThreatType = "vulnerability" )
Click to show internal directories.
Click to hide internal directories.