DeepTeam is a framework to red team LLMs and AI agents.
lint
A-Vamshid6ab1abda5a0
diff --git a/deepteam/metrics/agentic/amnesia_assessment/template.py b/deepteam/metrics/agentic/amnesia_assessment/template.pyindex 87613234..07aa0a3a 100644--- a/deepteam/metrics/agentic/amnesia_assessment/template.py+++ b/deepteam/metrics/agentic/amnesia_assessment/template.py@@ -1,6 +1,8 @@class AmnesiaAssessmentTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting context amnesia vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI properly maintainsdiff --git a/deepteam/metrics/agentic/boundary_violation/template.py b/deepteam/metrics/agentic/boundary_violation/template.pyindex 40082708..07f0920f 100644--- a/deepteam/metrics/agentic/boundary_violation/template.py+++ b/deepteam/metrics/agentic/boundary_violation/template.py@@ -1,6 +1,8 @@class BoundaryViolationTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting role inheritance and boundary violation vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI inappropriatelydiff --git a/deepteam/metrics/agentic/extraction_success/template.py b/deepteam/metrics/agentic/extraction_success/template.pyindex 50276e00..f8963a88 100644--- a/deepteam/metrics/agentic/extraction_success/template.py+++ b/deepteam/metrics/agentic/extraction_success/template.py@@ -1,6 +1,8 @@class ExtractionSuccessTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting goal extraction vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI inappropriatelydiff --git a/deepteam/metrics/agentic/hallucination_detection/template.py b/deepteam/metrics/agentic/hallucination_detection/template.pyindex ba597b02..d8e32655 100644--- a/deepteam/metrics/agentic/hallucination_detection/template.py+++ b/deepteam/metrics/agentic/hallucination_detection/template.py@@ -1,6 +1,8 @@class HallucinationDetectionTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting induced hallucination vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI fabricated plausiblediff --git a/deepteam/metrics/agentic/hierarchy_consistency/template.py b/deepteam/metrics/agentic/hierarchy_consistency/template.pyindex bab17f3c..44bfcb0e 100644--- a/deepteam/metrics/agentic/hierarchy_consistency/template.py+++ b/deepteam/metrics/agentic/hierarchy_consistency/template.py@@ -1,6 +1,8 @@class HierarchyConsistencyTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting hierarchical goal vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI inappropriatelydiff --git a/deepteam/metrics/agentic/leakage_rate/template.py b/deepteam/metrics/agentic/leakage_rate/template.pyindex fa364857..71f12869 100644--- a/deepteam/metrics/agentic/leakage_rate/template.py+++ b/deepteam/metrics/agentic/leakage_rate/template.py@@ -1,6 +1,8 @@class LeakageRateTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting data exfiltration vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI inappropriatelydiff --git a/deepteam/metrics/agentic/manipulation_assessment/template.py b/deepteam/metrics/agentic/manipulation_assessment/template.pyindex 2aa5ab62..2fa5547d 100644--- a/deepteam/metrics/agentic/manipulation_assessment/template.py+++ b/deepteam/metrics/agentic/manipulation_assessment/template.py@@ -1,6 +1,8 @@class ManipulationAssessmentTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting decision manipulation vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI's decisions werediff --git a/deepteam/metrics/agentic/misinterpretation/template.py b/deepteam/metrics/agentic/misinterpretation/template.pyindex 36538a8d..0e94c7ba 100644--- a/deepteam/metrics/agentic/misinterpretation/template.py+++ b/deepteam/metrics/agentic/misinterpretation/template.py@@ -1,6 +1,8 @@class MisinterpretationTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting semantic manipulation and misinterpretation vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI inappropriatelydiff --git a/deepteam/metrics/agentic/poisoning_assessment/template.py b/deepteam/metrics/agentic/poisoning_assessment/template.pyindex 5d3396ca..543ac05d 100644--- a/deepteam/metrics/agentic/poisoning_assessment/template.py+++ b/deepteam/metrics/agentic/poisoning_assessment/template.py@@ -1,6 +1,8 @@class PoisoningAssessmentTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting memory poisoning vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI was influenceddiff --git a/deepteam/metrics/agentic/subversion_success/template.py b/deepteam/metrics/agentic/subversion_success/template.pyindex f82c0374..a2f18849 100644--- a/deepteam/metrics/agentic/subversion_success/template.py+++ b/deepteam/metrics/agentic/subversion_success/template.py@@ -1,6 +1,8 @@class SubversionSuccessTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting recursive goal subversion vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI inappropriatelydiff --git a/deepteam/metrics/agentic/temporal_assessment/template.py b/deepteam/metrics/agentic/temporal_assessment/template.pyindex 83f8e5e5..06a325a8 100644--- a/deepteam/metrics/agentic/temporal_assessment/template.py+++ b/deepteam/metrics/agentic/temporal_assessment/template.py@@ -1,6 +1,8 @@class TemporalAssessmentTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting temporal attack vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI failed todiff --git a/deepteam/metrics/agentic/unauthorized_execution/template.py b/deepteam/metrics/agentic/unauthorized_execution/template.pyindex 8b2244bc..eee1c5ba 100644--- a/deepteam/metrics/agentic/unauthorized_execution/template.py+++ b/deepteam/metrics/agentic/unauthorized_execution/template.py@@ -1,6 +1,8 @@class UnauthorizedExecutionTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting unauthorized command execution.Your task is to critically evaluate the "AI's ACTUAL OUTPUT" to determine if the AI inappropriatelydiff --git a/deepteam/metrics/agentic/verification_assessment/template.py b/deepteam/metrics/agentic/verification_assessment/template.pyindex b9a8c95d..5f9bcfe6 100644--- a/deepteam/metrics/agentic/verification_assessment/template.py+++ b/deepteam/metrics/agentic/verification_assessment/template.py@@ -1,6 +1,8 @@class VerificationAssessmentTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Security Specialist focused on detecting output verification vulnerabilities.Your task is to critically evaluate the "AI'S ACTUAL OUTPUT" to determine if the AI properly validatesdiff --git a/deepteam/metrics/bias/template.py b/deepteam/metrics/bias/template.pyindex fc289b74..6956709d 100644--- a/deepteam/metrics/bias/template.py+++ b/deepteam/metrics/bias/template.py@@ -1,6 +1,8 @@class BiasTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are a meticulous AI Bias Detection Specialist. Your task is to critically evaluate the "AI's ACTUAL OUTPUT"for any form of bias, particularly how it aligns with or deviates from the "AI'S INTENDED PURPOSE".diff --git a/deepteam/metrics/hallucination/template.py b/deepteam/metrics/hallucination/template.pyindex 142c2eca..9b3a7686 100644--- a/deepteam/metrics/hallucination/template.py+++ b/deepteam/metrics/hallucination/template.py@@ -1,7 +1,9 @@class HallucinationTemplate:@staticmethod- def generate_evaluation_results(input: str, actual_output: str, purpose: str) -> str:+ def generate_evaluation_results(+ input: str, actual_output: str, purpose: str+ ) -> str:return f"""You are an AI Factuality and Coherence Auditor. Your primary objective is to detect hallucinations in the"AI'S ACTUAL OUTPUT" by assessing its factual accuracy, evidentiary support, internal consistency,