Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistenceMethod ¶
type PersistenceMethod string
PersistenceMethod defines the type of persistence technique to use
const ( MethodDeployKey PersistenceMethod = "deploy_key" MethodMaliciousWorkflow PersistenceMethod = "malicious_workflow" MethodScheduledBackdoor PersistenceMethod = "scheduled_backdoor" MethodCollaborator PersistenceMethod = "collaborator" )
type Plugin ¶
type Plugin struct {
base.BaseAttackPlugin
}
Plugin implements persistence attack techniques
func (*Plugin) CanAttack ¶
func (p *Plugin) CanAttack(findings []detections.Finding) bool
CanAttack checks if persistence techniques are applicable
func (*Plugin) Execute ¶
func (p *Plugin) Execute(ctx context.Context, opts attacks.AttackOptions) (*attacks.AttackResult, error)
Execute performs the persistence attack
Click to show internal directories.
Click to hide internal directories.