models

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebApplicationURIIDSeparator = ";;;"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateWebApplicationPracticeInput

type CreateWebApplicationPracticeInput struct {
	Name       string                                `json:"name"`
	Visibility string                                `json:"visibility"`
	IPS        WebApplicationPractcieIPSInput        `json:"IPS,omitempty"`
	WebBot     WebApplicationPracticeWebBotInput     `json:"WebBot,omitempty"`
	WebAttacks WebApplicationPracticeWebAttacksInput `json:"WebAttacks,omitempty"`
}

type IDs

type IDs []string

func (IDs) ToIndicatorsMap

func (schemaIDs IDs) ToIndicatorsMap() map[string]string

type UpdateWebApplicationPracticeAdvancedSettingInput

type UpdateWebApplicationPracticeAdvancedSettingInput struct {
	ID                 string `json:"id"`
	CSRFProtection     string `json:"CSRFProtection,omitempty"`
	OpenRedirect       string `json:"openRedirect,omitempty"`
	ErrorDisclosure    string `json:"errorDisclosure,omitempty"`
	BodySize           int    `json:"bodySize,omitempty"`
	URLSize            int    `json:"urlSize,omitempty"`
	HeaderSize         int    `json:"headerSize,omitempty"`
	MaxObjectDepth     int    `json:"maxObjectDepth,omitempty"`
	IllegalHttpMethods string `json:"illegalHttpMethods,omitempty"`
}

type UpdateWebApplicationPracticeIPSInput

type UpdateWebApplicationPracticeIPSInput struct {
	ID                  string `json:"id"`
	PerformanceImpact   string `json:"performanceImpact,omitempty"`
	SeverityLevel       string `json:"severityLevel,omitempty"`
	ProtectionsFromYear string `json:"protectionsFromYear,omitempty"`
	HighConfidence      string `json:"highConfidence,omitempty"`
	MediumConfidence    string `json:"mediumConfidence,omitempty"`
	LowConfidence       string `json:"lowConfidence,omitempty"`
}

type UpdateWebApplicationPracticeInput

type UpdateWebApplicationPracticeInput struct {
	Name       string                                      `json:"name,omitempty"`
	IPS        UpdateWebApplicationPracticeIPSInput        `json:"IPS,omitempty"`
	WebAttacks UpdateWebApplicationPracticeWebAttacksInput `json:"WebAttacks,omitempty"`
	WebBot     UpdateWebApplicationPracticeWebBotInput     `json:"WebBot,omitempty"`
}

type UpdateWebApplicationPracticeWebAttacksInput

type UpdateWebApplicationPracticeWebAttacksInput struct {
	ID              string                                           `json:"id"`
	MinimumSeverity string                                           `json:"minimumSeverity,omitempty"`
	AdvancedSetting UpdateWebApplicationPracticeAdvancedSettingInput `json:"advancedSetting,omitempty"`
}

type UpdateWebApplicationPracticeWebBotInput

type UpdateWebApplicationPracticeWebBotInput struct {
	ID                  string   `json:"id"`
	AddInjectURIs       []string `json:"addInjectURIs,omitempty"`
	RemoveInjectURIsIDs []string `json:"removeInjectURIs,omitempty"`
	AddValidURIs        []string `json:"addValidURIs,omitempty"`
	RemoveValidURIsIDs  []string `json:"removeValidURIs,omitempty"`
}

type WebApplicationAdvancedSetting

type WebApplicationAdvancedSetting struct {
	ID                 string `json:"id"`
	CSRFProtection     string `json:"CSRFProtection,omitempty"`
	OpenRedirect       string `json:"openRedirect,omitempty"`
	ErrorDisclosure    string `json:"errorDisclosure,omitempty"`
	IllegalHttpMethods string `json:"illegalHttpMethods,omitempty"`
	BodySize           int    `json:"bodySize,omitempty"`
	URLSize            int    `json:"urlSize,omitempty"`
	HeaderSize         int    `json:"headerSize,omitempty"`
	MaxObjectDepth     int    `json:"maxObjectDepth,omitempty"`
}

type WebApplicationIPS

type WebApplicationIPS struct {
	ID                  string `json:"id"`
	PerformanceImpact   string `json:"performanceImpact"`
	SeverityLevel       string `json:"severityLevel"`
	ProtectionsFromYear string `json:"protectionsFromYear"`
	HighConfidence      string `json:"highConfidence"`
	MediumConfidence    string `json:"mediumConfidence"`
	LowConfidence       string `json:"lowConfidence"`
}

type WebApplicationPractcieIPSInput

type WebApplicationPractcieIPSInput struct {
	ID                  string `json:"id,omitempty"`
	PerformanceImpact   string `json:"performanceImpact,omitempty"`
	SeverityLevel       string `json:"severityLevel,omitempty"`
	ProtectionsFromYear string `json:"protectionsFromYear,omitempty"`
	HighConfidence      string `json:"highConfidence,omitempty"`
	MediumConfidence    string `json:"mediumConfidence,omitempty"`
	LowConfidence       string `json:"lowConfidence,omitempty"`
}

type WebApplicationPractice

type WebApplicationPractice struct {
	ID           string                   `json:"id"`
	Name         string                   `json:"name"`
	Category     string                   `json:"category"`
	PracticeType string                   `json:"practiceType"`
	IPS          WebApplicationIPS        `json:"IPS"`
	WebBot       WebApplicationWebBot     `json:"WebBot"`
	WebAttacks   WebApplicationWebAttacks `json:"WebAttacks"`
	Default      bool                     `json:"default"`
}

type WebApplicationPracticeAdvancedSettingInput

type WebApplicationPracticeAdvancedSettingInput struct {
	ID                 string `json:"id,omitempty"`
	CSRFProtection     string `json:"CSRFProtection,omitempty"`
	OpenRedirect       string `json:"openRedirect,omitempty"`
	ErrorDisclosure    string `json:"errorDisclosure,omitempty"`
	IllegalHttpMethods string `json:"illegalHttpMethods,omitempty"`
	BodySize           int    `json:"bodySize,omitempty"`
	URLSize            int    `json:"urlSize,omitempty"`
	HeaderSize         int    `json:"headerSize,omitempty"`
	MaxObjectDepth     int    `json:"maxObjectDepth,omitempty"`
}

type WebApplicationPracticeAdvancedSettingSchema

type WebApplicationPracticeAdvancedSettingSchema struct {
	ID                 string `json:"id"`
	CSRFProtection     string `json:"csrf_protection,omitempty"`
	OpenRedirect       string `json:"open_redirect,omitempty"`
	ErrorDisclosure    string `json:"error_disclosure,omitempty"`
	IllegalHttpMethods bool   `json:"illegal_http_methods,omitempty"`
	BodySize           int    `json:"body_size,omitempty"`
	URLSize            int    `json:"url_size,omitempty"`
	HeaderSize         int    `json:"header_size,omitempty"`
	MaxObjectDepth     int    `json:"max_object_depth,omitempty"`
}

type WebApplicationPracticeIPSSchema

type WebApplicationPracticeIPSSchema struct {
	ID                  string `json:"id"`
	PerformanceImpact   string `json:"performance_impact,omitempty"`
	SeverityLevel       string `json:"severity_level,omitempty"`
	ProtectionsFromYear string `json:"protections_from_year,omitempty"`
	HighConfidence      string `json:"high_confidence,omitempty"`
	MediumConfidence    string `json:"medium_confidence,omitempty"`
	LowConfidence       string `json:"low_confidence,omitempty"`
}

type WebApplicationPracticeWebAttacksInput

type WebApplicationPracticeWebAttacksInput struct {
	ID              string                                     `json:"id,omitempty"`
	MinimumSeverity string                                     `json:"minimumSeverity,omitempty"`
	AdvancedSetting WebApplicationPracticeAdvancedSettingInput `json:"advancedSetting,omitempty"`
}

type WebApplicationPracticeWebAttacksSchema

type WebApplicationPracticeWebAttacksSchema struct {
	ID              string                                        `json:"id"`
	MinimumSeverity string                                        `json:"minimum_severity,omitempty"`
	AdvancedSetting []WebApplicationPracticeAdvancedSettingSchema `json:"advanced_setting,omitempty"`
}

type WebApplicationPracticeWebBotInput

type WebApplicationPracticeWebBotInput struct {
	ID         string   `json:"id,omitempty"`
	InjectURIs []string `json:"injectURIs,omitempty"`
	ValidURIs  []string `json:"validURIs,omitempty"`
}

type WebApplicationPracticeWebBotSchema

type WebApplicationPracticeWebBotSchema struct {
	ID            string   `json:"id"`
	InjectURIs    []string `json:"inject_uris,omitempty"`
	InjectURIsIDs IDs      `json:"inject_uris_ids,omitempty"`
	ValidURIs     []string `json:"valid_uris,omitempty"`
	ValidURIsIDs  IDs      `json:"valid_uris_ids,omitempty"`
}

type WebApplicationURI

type WebApplicationURI struct {
	ID  string `json:"id"`
	URI string `json:"URI"`
}

func (*WebApplicationURI) CreateSchemaID

func (uri *WebApplicationURI) CreateSchemaID() string

type WebApplicationWebAttacks

type WebApplicationWebAttacks struct {
	ID              string                        `json:"id"`
	MinimumSeverity string                        `json:"minimumSeverity"`
	AdvancedSetting WebApplicationAdvancedSetting `json:"advancedSetting"`
}

type WebApplicationWebBot

type WebApplicationWebBot struct {
	ID         string              `json:"id"`
	InjectURIs []WebApplicationURI `json:"injectURIs"`
	ValidURIs  []WebApplicationURI `json:"validURIs"`
}

Jump to

Keyboard shortcuts

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