thehive

package
v0.0.0-...-bf86773 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CASE_SEVERITY_HIGH = 3
View Source
const CASE_SEVERITY_LOW = 1
View Source
const CASE_SEVERITY_MEDIUM = 2
View Source
const CASE_STATUS_DELETED = "Deleted"
View Source
const CASE_STATUS_OPEN = "Open"
View Source
const CASE_STATUS_RESOLVED = "Resolved"
View Source
const CASE_TLP_AMBER = 2
View Source
const CASE_TLP_GREN = 1
View Source
const CASE_TLP_RED = 3
View Source
const CASE_TLP_WHITE = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type TheHive

type TheHive struct {
	// contains filtered or unexported fields
}

func NewTheHive

func NewTheHive(srv *server.Server) *TheHive

func (*TheHive) Init

func (thehive *TheHive) Init(cfg module.ModuleConfig) error

func (*TheHive) IsRunning

func (somodule *TheHive) IsRunning() bool

func (*TheHive) PrerequisiteModules

func (thehive *TheHive) PrerequisiteModules() []string

func (*TheHive) Start

func (thehive *TheHive) Start() error

func (*TheHive) Stop

func (thehive *TheHive) Stop() error

type TheHiveCase

type TheHiveCase struct {
	Id          int      `json:"caseId,omitempty"`
	CreateDate  int64    `json:"createdAt,omitempty"`
	StartDate   int64    `json:"startDate,omitempty"`
	EndDate     int64    `json:"endDate,omitempty"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Severity    int      `json:"severity"`
	Status      string   `json:"status,omitempty"`
	Tags        []string `json:"tags"`
	Tlp         int      `json:"tlp"`
	Flag        bool     `json:"flag"`
	Template    string   `json:"template"`
}

func NewTheHiveCase

func NewTheHiveCase() *TheHiveCase

type TheHiveCasestore

type TheHiveCasestore struct {
	// contains filtered or unexported fields
}

func NewTheHiveCasestore

func NewTheHiveCasestore(srv *server.Server) *TheHiveCasestore

func (*TheHiveCasestore) Authorize

func (store *TheHiveCasestore) Authorize(request *http.Request) error

func (*TheHiveCasestore) Create

func (store *TheHiveCasestore) Create(ctx context.Context, socCase *model.Case) (*model.Case, error)

func (*TheHiveCasestore) CreateArtifact

func (store *TheHiveCasestore) CreateArtifact(ctx context.Context, attachment *model.Artifact) (*model.Artifact, error)

func (*TheHiveCasestore) CreateArtifactStream

func (store *TheHiveCasestore) CreateArtifactStream(ctx context.Context, artifactstream *model.ArtifactStream) (string, error)

func (*TheHiveCasestore) CreateComment

func (store *TheHiveCasestore) CreateComment(ctx context.Context, comment *model.Comment) (*model.Comment, error)

func (*TheHiveCasestore) CreateRelatedEvent

func (store *TheHiveCasestore) CreateRelatedEvent(ctx context.Context, event *model.RelatedEvent) (*model.RelatedEvent, error)

func (*TheHiveCasestore) DeleteArtifact

func (store *TheHiveCasestore) DeleteArtifact(ctx context.Context, id string) error

func (*TheHiveCasestore) DeleteArtifactStream

func (store *TheHiveCasestore) DeleteArtifactStream(ctx context.Context, id string) error

func (*TheHiveCasestore) DeleteComment

func (store *TheHiveCasestore) DeleteComment(ctx context.Context, id string) error

func (*TheHiveCasestore) DeleteRelatedEvent

func (store *TheHiveCasestore) DeleteRelatedEvent(ctx context.Context, id string) error

func (*TheHiveCasestore) GetArtifact

func (store *TheHiveCasestore) GetArtifact(ctx context.Context, id string) (*model.Artifact, error)

func (*TheHiveCasestore) GetArtifactStream

func (store *TheHiveCasestore) GetArtifactStream(ctx context.Context, id string) (*model.ArtifactStream, error)

func (*TheHiveCasestore) GetArtifacts

func (store *TheHiveCasestore) GetArtifacts(ctx context.Context, caseId string, groupType string, groupId string) ([]*model.Artifact, error)

func (*TheHiveCasestore) GetCase

func (store *TheHiveCasestore) GetCase(ctx context.Context, caseId string) (*model.Case, error)

func (*TheHiveCasestore) GetCaseHistory

func (store *TheHiveCasestore) GetCaseHistory(ctx context.Context, caseId string) ([]interface{}, error)

func (*TheHiveCasestore) GetComment

func (store *TheHiveCasestore) GetComment(ctx context.Context, commentId string) (*model.Comment, error)

func (*TheHiveCasestore) GetComments

func (store *TheHiveCasestore) GetComments(ctx context.Context, commentId string) ([]*model.Comment, error)

func (*TheHiveCasestore) GetRelatedEvent

func (store *TheHiveCasestore) GetRelatedEvent(ctx context.Context, id string) (*model.RelatedEvent, error)

func (*TheHiveCasestore) GetRelatedEvents

func (store *TheHiveCasestore) GetRelatedEvents(ctx context.Context, caseId string) ([]*model.RelatedEvent, error)

func (*TheHiveCasestore) Init

func (store *TheHiveCasestore) Init(hostUrl string,
	key string,
	verifyCert bool) error

func (*TheHiveCasestore) Update

func (store *TheHiveCasestore) Update(ctx context.Context, socCase *model.Case) (*model.Case, error)

func (*TheHiveCasestore) UpdateArtifact

func (store *TheHiveCasestore) UpdateArtifact(ctx context.Context, artifact *model.Artifact) (*model.Artifact, error)

func (*TheHiveCasestore) UpdateComment

func (store *TheHiveCasestore) UpdateComment(ctx context.Context, comment *model.Comment) (*model.Comment, error)

Jump to

Keyboard shortcuts

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