schema

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report added in v0.1.4

type Report struct {
	Audience            []string           `json:"audience"`
	Copyright           string             `json:"copyright"`
	CveIDs              *ReportCveIDs      `json:"cveIds"`
	ExecSummary         string             `json:"execSummary"`
	IntelligenceType    string             `json:"intelligenceType"`
	PublishDate         string             `json:"publishDate"`
	ReportID            string             `json:"reportId"`
	ReportType          string             `json:"reportType"`
	TagSection          *ReportTagSection  `json:"tagSection"`
	ThreatScape         *ReportThreatScape `json:"ThreatScape"`
	Title               string             `json:"title"`
	Version             string             `json:"version"`
	Version1PublishDate string             `json:"version1PublishDate"`
}

Report struct

type ReportActor added in v0.1.4

type ReportActor struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

ReportActor struct

type ReportActors added in v0.1.4

type ReportActors struct {
	Actor []*ReportActor `json:"actor"`
}

ReportActors struct

type ReportAffectedIndustries added in v0.1.4

type ReportAffectedIndustries struct {
	AffectedIndustry []string `json:"affectedIndustry"`
}

ReportAffectedIndustries struct

type ReportCveIDs added in v0.1.4

type ReportCveIDs struct {
	CveID []string `json:"cveId"`
}

ReportCveIDs struct

type ReportFile added in v0.1.4

type ReportFile struct {
	Sha1       string `json:"sha1"`
	Identifier string `json:"identifier"`
	Actor      string `json:"actor"`
	FileName   string `json:"fileName"`
	FileSize   string `json:"fileSize"`
	ActorID    string `json:"actorId"`
	Sha256     string `json:"sha256"`
	Type       string `json:"type"`
	Md5        string `json:"md5"`
}

ReportFile struct

type ReportFiles added in v0.1.4

type ReportFiles struct {
	File []*ReportFile `json:"file"`
}

ReportFiles struct

type ReportIndexItem added in v0.1.4

type ReportIndexItem struct {
	ReportID string `json:"reportId"`
}

ReportIndexItem one item in array returned on /report/index we only want the reportID so we can use it to get /report/{reportID}

type ReportIntendedEffects added in v0.1.4

type ReportIntendedEffects struct {
	IntendedEffect []string `json:"intendedEffect"`
}

ReportIntendedEffects struct

type ReportMain added in v0.1.4

type ReportMain struct {
	Actors               *ReportActors               `json:"actors"`
	AffectedIndustries   *ReportAffectedIndustries   `json:"affectedIndustries"`
	IntendedEffects      *ReportIntendedEffects      `json:"intendedEffects"`
	MalwareFamilies      *ReportMalwareFamilies      `json:"malwareFamilies"`
	Motivations          *ReportMotivations          `json:"motivations"`
	SourceGeographies    *ReportSourceGeographies    `json:"sourceGeographies"`
	TargetedInformations *ReportTargetedInformations `json:"targetedInformations"`
	TargetGeographies    *ReportTargetGeographies    `json:"targetGeographies"`
	Ttps                 *ReportTtps                 `json:"ttps"`
}

ReportMain struct

type ReportMalwareFamilies added in v0.1.4

type ReportMalwareFamilies struct {
	MalwareFamily []*ReportMalwareFamily `json:"malwareFamily"`
}

ReportMalwareFamilies struct

type ReportMalwareFamily added in v0.1.4

type ReportMalwareFamily struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

ReportMalwareFamily struct

type ReportMotivations added in v0.1.4

type ReportMotivations struct {
	Motivation []string `json:"motivation"`
}

ReportMotivations struct

type ReportNetwork added in v0.1.4

type ReportNetwork struct {
	URL         string `json:"url"`
	NetworkType string `json:"networkType"`
	Identifier  string `json:"identifier"`
	Actor       string `json:"actor"`
	ActorID     string `json:"actorId"`
	Domain      string `json:"domain"`
}

ReportNetwork struct

type ReportNetworks added in v0.1.4

type ReportNetworks struct {
	Networks []*ReportNetwork `json:"network"`
}

ReportNetworks struct

type ReportSourceGeographies added in v0.1.4

type ReportSourceGeographies struct {
	SourceGeography []string `json:"sourceGeography"`
}

ReportSourceGeographies struct

type ReportTagSection added in v0.1.4

type ReportTagSection struct {
	Files    *ReportFiles    `json:"files"`
	Main     *ReportMain     `json:"main"`
	Networks *ReportNetworks `json:"networks"`
}

ReportTagSection struct

type ReportTargetGeographies added in v0.1.4

type ReportTargetGeographies struct {
	TargetGeography []string `json:"targetGeography"`
}

ReportTargetGeographies struct

type ReportTargetedInformations added in v0.1.4

type ReportTargetedInformations struct {
	TargetedInformation []string `json:"targetedInformation"`
}

ReportTargetedInformations struct

type ReportThreatScape added in v0.1.4

type ReportThreatScape struct {
	Product []string `json:"product"`
}

ReportThreatScape struct

type ReportTtps added in v0.1.4

type ReportTtps struct {
	Ttp []string `json:"ttp"`
}

ReportTtps struct

type ReportWrapper added in v0.1.4

type ReportWrapper struct {
	Report Report `json:"report"`
}

ReportWrapper struct

type Result added in v0.1.4

type Result struct {
	Success bool        `json:"success"`
	Message interface{} `json:"message"`
}

Result struct

type ResultErrorMessage added in v0.1.4

type ResultErrorMessage struct {
	Error       string `json:"error"`
	Description string `json:"description"`
	URL         string `json:"url"`
}

ResultErrorMessage struct

type Vulnerability added in v0.1.4

type Vulnerability struct {
	ThreatScape            []string `json:"ThreatScape"`
	AttackingEase          string   `json:"attackingEase"`
	Audience               []string `json:"audience"`
	CPE                    string   `json:"cpe"`
	CVEIds                 []string `json:"cveIds"`
	CVEOriginalReleaseDate int64    `json:"cveOriginalReleaseDate"`
	CvssBaseScore          string   `json:"cvssBaseScore"`
	CvssBaseScoreLink      string   `json:"cvssBaseScoreLink"`
	CvssBaseVector         string   `json:"cvssBaseVector"`
	CvssTemporalScore      string   `json:"cvssTemporalScore"`
	CvssTemporalScoreLink  string   `json:"cvssTemporalScoreLink"`
	CvssTemporalVector     string   `json:"cvssTemporalVector"`
	ExploitInTheWild       bool     `json:"exploitInTheWild"`
	ExploitRating          string   `json:"exploitRating"`
	IntelligenceType       string   `json:"intelligenceType"`
	Mitigations            []string `json:"mitigations"`
	PublishDate            int64    `json:"publishDate"`
	ReportID               string   `json:"reportId"`
	ReportLink             string   `json:"reportLink"`
	RiskRating             string   `json:"riskRating"`
	Title                  string   `json:"title"`
	Version                string   `json:"version"`
	Version1PublishDate    int64    `json:"version1PublishDate"`
	WebLink                string   `json:"webLink"`
}

Vulnerability struct

func (*Vulnerability) Convert added in v0.1.4

func (item *Vulnerability) Convert() (*nvd.NVDCVEFeedJSON10DefCVEItem, error)

func (*Vulnerability) ID added in v0.1.4

func (item *Vulnerability) ID() string

Jump to

Keyboard shortcuts

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