file_intel

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

func New

func New(cfg *pangea.Config) Client

type FileIntel

type FileIntel struct {
	*pangea.Client
}

func (*FileIntel) Lookup

@summary Reputation check

@description Lookup a file's hash to retrieve reputation data.

@deprecated Use Reputation instead.

@example

input := &file_intel.FileLookupInput{
	Hash: "322ccbd42b7e4fd3a9d0167ca2fa9f6483d9691364c431625f1df54270647ca8",
	HashType: "sha256",
	Raw: true,
	Verbose: true,
	Provider: "reversinglabs",
}

checkOutput, _, err := fileintel.Lookup(ctx, input)

func (*FileIntel) Reputation

@summary Reputation check

@description Lookup a file's hash to retrieve reputation data.

@example

input := &file_intel.FileReputationRequest{
	Hash: "322ccbd42b7e4fd3a9d0167ca2fa9f6483d9691364c431625f1df54270647ca8",
	HashType: "sha256",
	Raw: true,
	Verbose: true,
	Provider: "reversinglabs",
}

checkOutput, _, err := fileintel.Reputation(ctx, input)

type FileLookupInput

type FileLookupInput struct {
	Hash string `json:"hash"`

	// One of "sha256", "sha", "md5".
	HashType string `json:"hash_type"`

	// Echo the API parameters in the response.
	Verbose bool `json:"verbose,omitempty"`

	// Include raw data from this provider.
	Raw bool `json:"raw,omitempty"`

	// Use reputation data from this provider.
	Provider string `json:"provider,omitempty"`
}

@deprecated Use Reputation instead.

func NewFileLookupInputFromFilepath

func NewFileLookupInputFromFilepath(fp string) (*FileLookupInput, error)

Create a FileReputationRequest from path file @deprecated Use NewFileReputationRequestFromFilepath instead.

type FileLookupOutput

type FileLookupOutput struct {
	// High-level normalized results sent
	// by the Pangea service
	Data LookupData `json:"data"`

	// The parameters, which were passed in
	// the request, echoed back
	Parameters interface{} `json:"parameters,omitempty"`

	// The raw data from the provider.
	// Each provider's data will have its own format
	RawData interface{} `json:"raw_data,omitempty"`
}

type FileReputationRequest

type FileReputationRequest struct {
	Hash string `json:"hash"`

	// One of "sha256", "sha", "md5".
	HashType string `json:"hash_type"`

	// Echo the API parameters in the response.
	Verbose bool `json:"verbose,omitempty"`

	// Include raw data from this provider.
	Raw bool `json:"raw,omitempty"`

	// Use reputation data from this provider.
	Provider string `json:"provider,omitempty"`
}

func NewFileReputationRequestFromFilepath

func NewFileReputationRequestFromFilepath(fp string) (*FileReputationRequest, error)

Create a FileReputationRequest from path file

type FileReputationResult

type FileReputationResult struct {
	// High-level normalized results sent
	// by the Pangea service
	Data ReputationData `json:"data"`

	// The parameters, which were passed in
	// the request, echoed back
	Parameters interface{} `json:"parameters,omitempty"`

	// The raw data from the provider.
	// Each provider's data will have its own format
	RawData interface{} `json:"raw_data,omitempty"`
}

type LookupData

type LookupData struct {
	// The categories that apply to this
	// indicator as determined by the provider
	Category []string `json:"category"`

	// The score, given by the Pangea service,
	// for the indicator
	Score int `json:"score"`

	// The verdict, given by the Pangea service,
	// for the indicator
	Verdict string `json:"verdict"`
}

@deprecated Use ReputationData instead.

type ReputationData

type ReputationData struct {
	// The categories that apply to this
	// indicator as determined by the provider
	Category []string `json:"category"`

	// The score, given by the Pangea service,
	// for the indicator
	Score int `json:"score"`

	// The verdict, given by the Pangea service,
	// for the indicator
	Verdict string `json:"verdict"`
}

Jump to

Keyboard shortcuts

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