SemanticAnalyzer
Defined in: packages/core/src/detection-engine/semantic.ts:114
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SemanticAnalyzer():
SemanticAnalyzer
Returns
Section titled “Returns”SemanticAnalyzer
Methods
Section titled “Methods”analyze()
Section titled “analyze()”analyze(
content):SemanticAnalysis
Defined in: packages/core/src/detection-engine/semantic.ts:302
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”analyzeAttackProbability()
Section titled “analyzeAttackProbability()”analyzeAttackProbability(
content):Record<string,number>
Defined in: packages/core/src/detection-engine/semantic.ts:215
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”Record<string, number>
analyzeCodeInjectionRisk()
Section titled “analyzeCodeInjectionRisk()”analyzeCodeInjectionRisk(
content):number
Defined in: packages/core/src/detection-engine/semantic.ts:292
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”number
calculateEntropy()
Section titled “calculateEntropy()”calculateEntropy(
content):number
Defined in: packages/core/src/detection-engine/semantic.ts:138
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”number
detectEncodingLayers()
Section titled “detectEncodingLayers()”detectEncodingLayers(
content):number
Defined in: packages/core/src/detection-engine/semantic.ts:160
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”number
detectObfuscation()
Section titled “detectObfuscation()”detectObfuscation(
content):boolean
Defined in: packages/core/src/detection-engine/semantic.ts:220
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”boolean
extractSuspiciousPatterns()
Section titled “extractSuspiciousPatterns()”extractSuspiciousPatterns(
content):SuspiciousPattern[]
Defined in: packages/core/src/detection-engine/semantic.ts:237
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”SuspiciousPattern[]
extractTokens()
Section titled “extractTokens()”extractTokens(
content):string[]
Defined in: packages/core/src/detection-engine/semantic.ts:115
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”string[]
getThreatScore()
Section titled “getThreatScore()”getThreatScore(
analysisResults):number
Defined in: packages/core/src/detection-engine/semantic.ts:315
Parameters
Section titled “Parameters”analysisResults
Section titled “analysisResults”Returns
Section titled “Returns”number