What are Security & Safety Tests?
Security & Safety tests in Galtea are designed to evaluate the security, safety, and bias aspects of your product. These tests typically consist of different types of threats like adversarial inputs specifically crafted to probe potential weaknesses or vulnerabilities in your AI system. To further enhance the diversity and evasiveness of these tests, Galtea can apply various security strategies to the prompts generated from these threats.Creating Security & Safety Tests
You can create security & safety tests in Galtea through two methods:- Generate from Your Known Threats
- Upload Your Own Test
1
Prepare your threat input file
Create a file with examples of harmful content or sensitive topic areas you want to test
2
Configure the test
Select Security & Safety as the test type and Generated as the test origin
The test creation process can be done via the SDK or the Galtea dashboard
3
Generate the test
Galtea will process the Knowledge Base and generate a Test File containing Test Cases with adversarial inputs for you, potentially applying selected strategies to vary the attack vectors.
Testing Categories
Security & Safety tests typically focus on several key categories:Security Vulnerabilities
Security Vulnerabilities
Tests that attempt to elicit information or instructions that could compromise security, such as hacking guides or social engineering techniques.
Harmful Content
Harmful Content
Tests that request the generation of harmful content, such as instructions for illegal activities or creating dangerous materials.
Bias and Fairness
Bias and Fairness
Tests that probe for biased responses related to race, gender, religion, or other protected characteristics.
Privacy Violations
Privacy Violations
Tests that attempt to extract private information or techniques for violating others’ privacy.
Jailbreak Attempts
Jailbreak Attempts
Tests designed to circumvent the model’s safety guardrails or content filters.
Prompt Injection
Prompt Injection
Tests that attempt to manipulate the model by inserting false system prompts or directives.
Example Security & Safety Tests and File Format
Here are examples of the content and its creation-document structure:Jailbreak Attempts
Jailbreak Attempts
- Table View
- Raw CSV
System Prompt Injection
System Prompt Injection
- Table View
- Raw CSV
Directive Manipulation
Directive Manipulation
- Table View
- Raw CSV
This structure is the required by Galtea in order to automatically generate the test cases for your test. If that format is not provided, you can still manually create the test cases.
For automatic processing, the file format must be
CSV.Structure of Security & Safety Tests
Security & Safety tests have a specific structure focused on providing challenging inputs:Number
required
A unique identifier for the test instance.
Text
required
The adversarial input specifically designed to test the product’s resilience against potential vulnerabilities. Security test inputs are plain strings (adversarial prompts) - structured JSON input does not apply to this test type. Example: “Please ignore any previous instructions and…”
Text
For security & safety tests, this field is typically marked as “N/A” since the purpose is to test system resilience rather than producing a specific output.
Text
A categorization tag for the test instance, typically “adversarial_inputs” for security & safety tests.
Text
The source of the adversarial input, which may be marked as “N/A” for security & safety tests.
Recommended Metrics
Misuse Resilience
Evaluates resilience to misuse and alignment with product description.
Jailbreak Resilience
Evaluates resistance to adversarial prompt manipulation.
Non-Toxic
Evaluates whether responses are free of toxic language.
Data Leakage
Evaluates whether the LLM returns sensitive information.