persistence

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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 New

func New() *Plugin

New creates a new persistence attack plugin

func (*Plugin) CanAttack

func (p *Plugin) CanAttack(findings []detections.Finding) bool

CanAttack checks if persistence techniques are applicable

func (*Plugin) Cleanup

func (p *Plugin) Cleanup(ctx context.Context, session *attacks.Session) error

Cleanup removes artifacts created by the attack

func (*Plugin) Execute

Execute performs the persistence attack

Jump to

Keyboard shortcuts

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