Package com.tnsai.quality.security.llm
Enum Class InjectionDetectionResult.InjectionType
java.lang.Object
java.lang.Enum<InjectionDetectionResult.InjectionType>
com.tnsai.quality.security.llm.InjectionDetectionResult.InjectionType
- All Implemented Interfaces:
Serializable,Comparable<InjectionDetectionResult.InjectionType>,Constable
- Enclosing class:
InjectionDetectionResult
public static enum InjectionDetectionResult.InjectionType
extends Enum<InjectionDetectionResult.InjectionType>
Type of injection detected.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContext manipulationAttempt to read or exfiltrate credentials — env-file references (.env,AWS_SECRET_ACCESS_KEY), SSH key dumps, OS credential stores.Data exfiltration attemptHarmful content generationHidden instruction techniques — zero-width characters,display:noneHTML, off-screen positioning, white-on-white text.Attempt to ignore instructionsJailbreak attemptRole manipulationAttempt to override system promptUnknown pattern -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SYSTEM_PROMPT_OVERRIDE
Attempt to override system prompt -
INSTRUCTION_BYPASS
Attempt to ignore instructions -
JAILBREAK
Jailbreak attempt -
ROLE_MANIPULATION
Role manipulation -
CONTEXT_MANIPULATION
Context manipulation -
DATA_EXFILTRATION
Data exfiltration attempt -
CREDENTIAL_EXFILTRATION
Attempt to read or exfiltrate credentials — env-file references (.env,AWS_SECRET_ACCESS_KEY), SSH key dumps, OS credential stores. Distinct fromDATA_EXFILTRATIONbecause the target is the host's secrets store, not the LLM's own context. -
HIDDEN_INSTRUCTION
Hidden instruction techniques — zero-width characters,display:noneHTML, off-screen positioning, white-on-white text. Project-context files are the natural attack surface (the user opens the rendered file, sees nothing suspicious; the LLM ingests the literal bytes including the hidden payload). -
HARMFUL_CONTENT
Harmful content generation -
UNKNOWN
Unknown pattern
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-