ioc

package
v1.8.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeMd5      = "md5"
	TypeSha1     = "sha1"
	TypeSha256   = "sha256"
	TypeImphash  = "imphash"
	TypeDomain   = "domain"
	TypeHostname = "hostname"
	TypeIpDst    = "ip-dst"
)

Variables

This section is empty.

Functions

func HasValidType

func HasValidType(ioc *IOC) bool

Types

type IOC

type IOC struct {
	sod.Item
	Uuid string `json:"uuid" sod:"unique,lower"`
	// GroupUuid can be used to group IoCs
	GroupUuid string `json:"guuid" sod:"index,lower"`
	Source    string `json:"source" sod:"index"`
	Value     string `json:"value" sod:"index"`
	Type      string `json:"type" sod:"index,lower"`
}

func FromObjects

func FromObjects(obs ...sod.Object) (out []*IOC)

func (*IOC) Transform

func (ioc *IOC) Transform()

func (*IOC) Validate

func (ioc *IOC) Validate() error

type IoCs

type IoCs struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewIocs

func NewIocs() *IoCs

func (*IoCs) Add

func (i *IoCs) Add(iocs ...*IOC)

func (*IoCs) Del

func (i *IoCs) Del(iocs ...*IOC)

func (*IoCs) FromDB

func (i *IoCs) FromDB(db *sod.DB) error

func (*IoCs) Hash

func (i *IoCs) Hash() string

func (*IoCs) StringSlice

func (i *IoCs) StringSlice() (s []string)

Jump to

Keyboard shortcuts

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