chains

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainC2

type ChainC2 struct {
	C2Type    string `json:"c2_type" yaml:"c2_type"`
	C2Profile string `json:"c2_profile" yaml:"c2_profile"`
	ExfilOnly bool   `json:"exfil_only" yaml:"exfil_only"`
}

type ChainDisplay

type ChainDisplay struct {
	Endpoint bool `json:"endpoint"`
	APT      bool `json:"apt"`
}

type ChainExpanded

type ChainExpanded ChainForUserState

func (ChainExpanded) Summary

func (c ChainExpanded) Summary() (any, error)

type ChainForUserState

type ChainForUserState struct {
	AttackID    uint                      `json:"attack_id"`
	ID          string                    `json:"id"`
	Name        string                    `json:"name"`
	Description string                    `json:"description"`
	Platforms   []string                  `json:"platforms"`
	Elevated    bool                      `json:"elevated"`
	Tags        models.Tag                `json:"tags"`
	C2Profile   ChainC2                   `json:"c2"`
	Stagers     []ChainStagerForUserState `json:"stagers"`
	Stages      []ChainStageForUserState  `json:"stages"`
	Platform    string                    `json:"platform"`
	Malwares    []string                  `json:"malwares"`
	Display     ChainDisplay              `json:"display"`
	ReleaseDate time.Time                 `json:"release_date"`

	Success    int                           `json:"success_count"`
	Detected   int                           `json:"detected_count"`
	Total      int                           `json:"total_count"`
	LastRunAt  *time.Time                    `json:"last_run_at"`
	Exposures  []string                      `json:"exposures"`
	Techniques []models.MitreTacticTechnique `json:"techniques"`

	ThreatIntel []threatintel.ThreatIntel `json:"threat_intel"`
}

type ChainStageForUserState

type ChainStageForUserState struct {
	StageName    string   `yaml:"name" json:"name" db:"name"`
	StageID      string   `yaml:"id" json:"id" db:"id"`
	StageActions []string `yaml:"actions" json:"actions" db:"actions"`
	COF          bool     `yaml:"cof" json:"cof" db:"cof"`
	LM           bool     `yaml:"lm" json:"lm" db:"lm"`
}

type ChainStagerForUserState

type ChainStagerForUserState struct {
	StagerID   string `json:"stager_id"`
	StagerMode string `json:"stager_mode"`
}

type ChainSummary

type ChainSummary struct {
	ID             string `json:"id"`
	Name           string `json:"name"`
	Platforms      string `json:"platforms"`
	BlockedRate    string `json:"blocked_rate"`
	SuccessRate    string `json:"success_rate"`
	DetectionRate  string `json:"detection_rate"`
	ReleasedAt     string `json:"released_at"`
	LastExecutedAt string `json:"last_executed_at"`
}

Jump to

Keyboard shortcuts

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