SemanticAnalyzer
Defined in: core/src/detection-engine/semantic.ts:59
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: core/src/detection-engine/semantic.ts:215
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”analyzeAttackProbability()
Section titled “analyzeAttackProbability()”analyzeAttackProbability(
content):Record<string,number>
Defined in: core/src/detection-engine/semantic.ts:123
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: core/src/detection-engine/semantic.ts:185
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”number
calculateEntropy()
Section titled “calculateEntropy()”calculateEntropy(
content):number
Defined in: core/src/detection-engine/semantic.ts:83
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”number
detectEncodingLayers()
Section titled “detectEncodingLayers()”detectEncodingLayers(
content):number
Defined in: core/src/detection-engine/semantic.ts:107
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”number
detectObfuscation()
Section titled “detectObfuscation()”detectObfuscation(
content):boolean
Defined in: core/src/detection-engine/semantic.ts:151
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”boolean
extractSuspiciousPatterns()
Section titled “extractSuspiciousPatterns()”extractSuspiciousPatterns(
content):object[]
Defined in: core/src/detection-engine/semantic.ts:164
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”object[]
extractTokens()
Section titled “extractTokens()”extractTokens(
content):string[]
Defined in: core/src/detection-engine/semantic.ts:60
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”string[]
getThreatScore()
Section titled “getThreatScore()”getThreatScore(
analysis):number
Defined in: core/src/detection-engine/semantic.ts:227
Parameters
Section titled “Parameters”analysis
Section titled “analysis”Returns
Section titled “Returns”number