models

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 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          WebApplicationPracticeIPSInput        `json:"IPS,omitempty"`
	WebBot       WebApplicationPracticeWebBotInput     `json:"WebBot,omitempty"`
	WebAttacks   WebApplicationPracticeWebAttacksInput `json:"WebAttacks,omitempty"`
	FileSecurity FileSecurityInput                     `json:"FileSecurity,omitempty"`
}

type DisplayObject added in v1.1.3

type DisplayObject struct {
	ID           string `json:"id,omitempty"`
	Name         string `json:"name,omitempty"`
	Type         string `json:"type,omitempty"`
	SubType      string `json:"subType,omitempty"`
	ObjectStatus string `json:"objectStatus,omitempty"`
}

type DisplayObjects added in v1.1.3

type DisplayObjects []DisplayObject

type FileSecurity added in v1.1.1

type FileSecurity struct {
	ID                        string `json:"id"`
	SeverityLevel             string `json:"severityLevel"`
	HighConfidence            string `json:"highConfidence"`
	MediumConfidence          string `json:"mediumConfidence"`
	LowConfidence             string `json:"lowConfidence"`
	AllowFileSizeLimit        string `json:"allowFileSizeLimit"`
	FileSizeLimit             int    `json:"fileSizeLimit"`
	FileSizeLimitUnit         string `json:"fileSizeLimitUnit"`
	FilesWithoutName          string `json:"filesWithoutName"`
	RequiredArchiveExtraction bool   `json:"requiredArchiveExtraction"`
	ArchiveFileSizeLimit      int    `json:"archiveFileSizeLimit"`
	ArchiveFileSizeLimitUnit  string `json:"archiveFileSizeLimitUnit"`
	AllowArchiveWithinArchive string `json:"allowArchiveWithinArchive"`
	AllowAnUnopenedArchive    string `json:"allowAnUnopenedArchive"`
	AllowFileType             bool   `json:"allowFileType"`
	RequiredThreatEmulation   bool   `json:"requiredThreatEmulation"`
}

type FileSecurityInput added in v1.1.1

type FileSecurityInput struct {
	ID                        string `json:"id,omitempty"`
	SeverityLevel             string `json:"severityLevel,omitempty"`
	HighConfidence            string `json:"highConfidence,omitempty"`
	MediumConfidence          string `json:"mediumConfidence,omitempty"`
	LowConfidence             string `json:"lowConfidence,omitempty"`
	AllowFileSizeLimit        string `json:"allowFileSizeLimit,omitempty"`
	FileSizeLimit             *int   `json:"fileSizeLimit,omitempty"`
	FileSizeLimitUnit         string `json:"fileSizeLimitUnit,omitempty"`
	FilesWithoutName          string `json:"filesWithoutName,omitempty"`
	RequiredArchiveExtraction bool   `json:"requiredArchiveExtraction,omitempty"`
	ArchiveFileSizeLimit      *int   `json:"archiveFileSizeLimit,omitempty"`
	ArchiveFileSizeLimitUnit  string `json:"archiveFileSizeLimitUnit,omitempty"`
	AllowArchiveWithinArchive string `json:"allowArchiveWithinArchive,omitempty"`
	AllowAnUnopenedArchive    string `json:"allowAnUnopenedArchive,omitempty"`
	AllowFileType             bool   `json:"allowFileType,omitempty"`
	RequiredThreatEmulation   bool   `json:"requiredThreatEmulation,omitempty"`
}

type FileSecuritySchema added in v1.1.1

type FileSecuritySchema struct {
	ID                        string `json:"id"`
	SeverityLevel             string `json:"severity_level,omitempty"`
	HighConfidence            string `json:"high_confidence,omitempty"`
	MediumConfidence          string `json:"medium_confidence,omitempty"`
	LowConfidence             string `json:"low_confidence,omitempty"`
	AllowFileSizeLimit        string `json:"allow_file_size_limit,omitempty"`
	FileSizeLimit             int    `json:"file_size_limit,omitempty"`
	FileSizeLimitUnit         string `json:"file_size_limit_unit,omitempty"`
	FilesWithoutName          string `json:"files_without_name,omitempty"`
	RequiredArchiveExtraction bool   `json:"required_archive_extraction,omitempty"`
	ArchiveFileSizeLimit      int    `json:"archive_file_size_limit,omitempty"`
	ArchiveFileSizeLimitUnit  string `json:"archive_file_size_limit_unit,omitempty"`
	AllowArchiveWithinArchive string `json:"allow_archive_within_archive,omitempty"`
	AllowAnUnopenedArchive    string `json:"allow_an_unopened_archive,omitempty"`
	AllowFileType             bool   `json:"allow_file_type,omitempty"`
	RequiredThreatEmulation   bool   `json:"required_threat_emulation,omitempty"`
}

type IDs

type IDs []string

func (IDs) ToIndicatorsMap

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

type UpdateFileSecurity added in v1.1.1

type UpdateFileSecurity struct {
	ID                        string `json:"id,omitempty"`
	SeverityLevel             string `json:"severityLevel,omitempty"`
	HighConfidence            string `json:"highConfidence,omitempty"`
	MediumConfidence          string `json:"mediumConfidence,omitempty"`
	LowConfidence             string `json:"lowConfidence,omitempty"`
	AllowFileSizeLimit        string `json:"allowFileSizeLimit,omitempty"`
	FileSizeLimit             *int   `json:"fileSizeLimit,omitempty"`
	FileSizeLimitUnit         string `json:"fileSizeLimitUnit,omitempty"`
	FilesWithoutName          string `json:"filesWithoutName,omitempty"`
	RequiredArchiveExtraction bool   `json:"requiredArchiveExtraction,omitempty"`
	ArchiveFileSizeLimit      *int   `json:"archiveFileSizeLimit,omitempty"`
	ArchiveFileSizeLimitUnit  string `json:"archiveFileSizeLimitUnit,omitempty"`
	AllowArchiveWithinArchive string `json:"allowArchiveWithinArchive,omitempty"`
	AllowAnUnopenedArchive    string `json:"allowAnUnopenedArchive,omitempty"`
	AllowFileType             bool   `json:"allowFileType,omitempty"`
	RequiredThreatEmulation   bool   `json:"requiredThreatEmulation,omitempty"`
}

type UpdateURIInput added in v1.1.1

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

type UpdateURIsInputs added in v1.1.1

type UpdateURIsInputs []UpdateURIInput

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"`
	Visibility   string                                      `json:"visibility,omitempty"`
	IPS          UpdateWebApplicationPracticeIPSInput        `json:"IPS,omitempty"`
	WebAttacks   UpdateWebApplicationPracticeWebAttacksInput `json:"WebAttacks,omitempty"`
	WebBot       UpdateWebApplicationPracticeWebBotInput     `json:"WebBot,omitempty"`
	FileSecurity UpdateFileSecurity                          `json:"FileSecurity,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"`
	UpdateInjectURIs    UpdateURIsInputs `json:"updateInjectURIs,omitempty"`
	AddValidURIs        []string         `json:"addValidURIs,omitempty"`
	RemoveValidURIsIDs  []string         `json:"removeValidURIs,omitempty"`
	UpdateValidURIs     UpdateURIsInputs `json:"updateValidURIs,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 WebApplicationPractice

type WebApplicationPractice struct {
	ID           string                   `json:"id"`
	Name         string                   `json:"name"`
	Category     string                   `json:"category"`
	PracticeType string                   `json:"practiceType"`
	Visibility   string                   `json:"visibility"`
	IPS          WebApplicationIPS        `json:"IPS"`
	WebBot       WebApplicationWebBot     `json:"WebBot"`
	WebAttacks   WebApplicationWebAttacks `json:"WebAttacks"`
	FileSecurity FileSecurity             `json:"FileSecurity"`
	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 WebApplicationPracticeIPSInput added in v1.1.1

type WebApplicationPracticeIPSInput 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 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