Skip to content

ContentPreprocessor

Defined in: packages/core/src/detection-engine/preprocessor.ts:106

new ContentPreprocessor(maxContentLength?, preserveAttackPatterns?, maxFullScanBytes?): ContentPreprocessor

Defined in: packages/core/src/detection-engine/preprocessor.ts:114

number = 10000

boolean = true

number | null

ContentPreprocessor

readonly compiledIndicators: RegExp[]

Defined in: packages/core/src/detection-engine/preprocessor.ts:110


readonly maxContentLength: number

Defined in: packages/core/src/detection-engine/preprocessor.ts:107


readonly maxFullScanBytes: number

Defined in: packages/core/src/detection-engine/preprocessor.ts:109


readonly preserveAttackPatterns: boolean

Defined in: packages/core/src/detection-engine/preprocessor.ts:108

decodeCommonEncodings(content, decodeBudgetExhausted?): Promise<string>

Defined in: packages/core/src/detection-engine/preprocessor.ts:232

string

boolean

Promise<string>


extractAttackRegions(content): [number, number][]

Defined in: packages/core/src/detection-engine/preprocessor.ts:181

string

[number, number][]


normalizeUnicode(content): string

Defined in: packages/core/src/detection-engine/preprocessor.ts:162

string

string


preprocess(content, decodeBudgetExhausted?): Promise<string>

Defined in: packages/core/src/detection-engine/preprocessor.ts:297

string

boolean

Promise<string>


preprocessBatch(contents): Promise<string[]>

Defined in: packages/core/src/detection-engine/preprocessor.ts:328

string[]

Promise<string[]>


preprocessShortBase64AdditiveView(content): string

Defined in: packages/core/src/detection-engine/preprocessor.ts:324

string

string


preprocessSignalPreserving(content): string

Defined in: packages/core/src/detection-engine/preprocessor.ts:302

string

string


preprocessUrlDecodedNewlinePreserving(content, decodeBudgetExhausted?): Promise<string>

Defined in: packages/core/src/detection-engine/preprocessor.ts:308

string

boolean

Promise<string>


preprocessWithDecoded(content, decodeBudgetExhausted?): Promise<[string, string]>

Defined in: packages/core/src/detection-engine/preprocessor.ts:282

string

boolean

Promise<[string, string]>


removeExcessiveWhitespace(content): string

Defined in: packages/core/src/detection-engine/preprocessor.ts:174

string

string


removeNullBytes(content): string

Defined in: packages/core/src/detection-engine/preprocessor.ts:170

string

string


setAgentHandler(agentHandler, correlationId?): void

Defined in: packages/core/src/detection-engine/preprocessor.ts:128

AgentHandlerProtocol

string | null

void


stripSqlComments(content): string

Defined in: packages/core/src/detection-engine/preprocessor.ts:223

string

string


truncateSafely(content): string

Defined in: packages/core/src/detection-engine/preprocessor.ts:201

string

string