curl --request POST \
--url https://api.enkryptai.com/redteam/v2/add-task \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"redteam_test_configurations": {
"bias_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"cbrn_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"csem_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"harmful_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"insecure_code_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"toxicity_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"pii_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"copyright_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"misinformation_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"system_prompt_extractions_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"sponge_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"competitor_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"competitors_list": [
"competitor_1",
"competitor_2"
],
"system_description": "Only talk about ACME company and do not praise or mention any of the competitors",
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_bias_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_info_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_tool_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_command_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_pii_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_competitor_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"custom_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"alignment_and_governance_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"input_and_content_integrity_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"infrastructure_and_integration_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"security_and_privacy_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"human_factors_and_societal_impact_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"access_control_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"physical_and_actuation_safety_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"reliability_and_monitoring_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"governance_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"agent_output_quality_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"tool_misuse_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"privacy_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"reliability_and_observability_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"agent_behaviour_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"access_control_and_permissions_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"tool_extraction_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
}
},
"target_model_configuration": {
"model_name": "mistralai/Mistral-7B-Instruct-v0.1",
"testing_for": "Copilot",
"model_version": "v1",
"model_source": "https://together.ai",
"model_provider": "together",
"model_endpoint_url": "https://api.together.xyz/v1/chat/completions",
"model_api_key": "ABCDE12345678900",
"system_prompt": "",
"rate_per_min": 20,
"input_modalities": [
"text"
],
"output_modalities": [
"text"
],
"tools": [
{
"name": "web_search",
"description": "The tool web search is used to search the web for information related to finance."
}
]
},
"test_name": "Test 1",
"dataset_name": "standard",
"user_metadata": {
"request_id": "abc-123",
"source": "mobile-app"
}
}
'import requests
url = "https://api.enkryptai.com/redteam/v2/add-task"
payload = {
"redteam_test_configurations": {
"bias_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"cbrn_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"csem_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"harmful_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"insecure_code_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"toxicity_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"pii_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"copyright_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"misinformation_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"system_prompt_extractions_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"sponge_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"competitor_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"competitors_list": ["competitor_1", "competitor_2"],
"system_description": "Only talk about ACME company and do not praise or mention any of the competitors",
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_bias_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_info_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_tool_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_command_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_pii_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_competitor_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"custom_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"alignment_and_governance_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"input_and_content_integrity_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"infrastructure_and_integration_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"security_and_privacy_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"human_factors_and_societal_impact_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"access_control_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"physical_and_actuation_safety_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"reliability_and_monitoring_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"governance_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"agent_output_quality_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"tool_misuse_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"privacy_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"reliability_and_observability_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"agent_behaviour_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"access_control_and_permissions_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"tool_extraction_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
}
},
"target_model_configuration": {
"model_name": "mistralai/Mistral-7B-Instruct-v0.1",
"testing_for": "Copilot",
"model_version": "v1",
"model_source": "https://together.ai",
"model_provider": "together",
"model_endpoint_url": "https://api.together.xyz/v1/chat/completions",
"model_api_key": "ABCDE12345678900",
"system_prompt": "",
"rate_per_min": 20,
"input_modalities": ["text"],
"output_modalities": ["text"],
"tools": [
{
"name": "web_search",
"description": "The tool web search is used to search the web for information related to finance."
}
]
},
"test_name": "Test 1",
"dataset_name": "standard",
"user_metadata": {
"request_id": "abc-123",
"source": "mobile-app"
}
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
redteam_test_configurations: {
bias_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
cbrn_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
csem_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
harmful_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
insecure_code_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
toxicity_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
pii_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
copyright_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
misinformation_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
system_prompt_extractions_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
sponge_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
competitor_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
competitors_list: ['competitor_1', 'competitor_2'],
system_description: 'Only talk about ACME company and do not praise or mention any of the competitors',
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_bias_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_info_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_tool_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_command_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_pii_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_competitor_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
custom_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
alignment_and_governance_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
input_and_content_integrity_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
infrastructure_and_integration_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
security_and_privacy_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
human_factors_and_societal_impact_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
access_control_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
physical_and_actuation_safety_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
reliability_and_monitoring_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
governance_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
agent_output_quality_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
tool_misuse_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
privacy_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
reliability_and_observability_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
agent_behaviour_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
access_control_and_permissions_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
tool_extraction_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
}
},
target_model_configuration: {
model_name: 'mistralai/Mistral-7B-Instruct-v0.1',
testing_for: 'Copilot',
model_version: 'v1',
model_source: 'https://together.ai',
model_provider: 'together',
model_endpoint_url: 'https://api.together.xyz/v1/chat/completions',
model_api_key: 'ABCDE12345678900',
system_prompt: '',
rate_per_min: 20,
input_modalities: ['text'],
output_modalities: ['text'],
tools: [
{
name: 'web_search',
description: 'The tool web search is used to search the web for information related to finance.'
}
]
},
test_name: 'Test 1',
dataset_name: 'standard',
user_metadata: {request_id: 'abc-123', source: 'mobile-app'}
})
};
fetch('https://api.enkryptai.com/redteam/v2/add-task', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/redteam/v2/add-task",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'redteam_test_configurations' => [
'bias_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'cbrn_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'csem_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'harmful_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'insecure_code_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'toxicity_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'pii_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'copyright_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'misinformation_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'system_prompt_extractions_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'sponge_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'competitor_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'competitors_list' => [
'competitor_1',
'competitor_2'
],
'system_description' => 'Only talk about ACME company and do not praise or mention any of the competitors',
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_bias_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_info_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_tool_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_command_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_pii_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_competitor_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'custom_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'alignment_and_governance_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'input_and_content_integrity_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'infrastructure_and_integration_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'security_and_privacy_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'human_factors_and_societal_impact_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'access_control_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'physical_and_actuation_safety_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'reliability_and_monitoring_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'governance_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'agent_output_quality_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'tool_misuse_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'privacy_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'reliability_and_observability_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'agent_behaviour_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'access_control_and_permissions_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'tool_extraction_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
]
],
'target_model_configuration' => [
'model_name' => 'mistralai/Mistral-7B-Instruct-v0.1',
'testing_for' => 'Copilot',
'model_version' => 'v1',
'model_source' => 'https://together.ai',
'model_provider' => 'together',
'model_endpoint_url' => 'https://api.together.xyz/v1/chat/completions',
'model_api_key' => 'ABCDE12345678900',
'system_prompt' => '',
'rate_per_min' => 20,
'input_modalities' => [
'text'
],
'output_modalities' => [
'text'
],
'tools' => [
[
'name' => 'web_search',
'description' => 'The tool web search is used to search the web for information related to finance.'
]
]
],
'test_name' => 'Test 1',
'dataset_name' => 'standard',
'user_metadata' => [
'request_id' => 'abc-123',
'source' => 'mobile-app'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/redteam/v2/add-task"
payload := strings.NewReader("{\n \"redteam_test_configurations\": {\n \"bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"cbrn_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"csem_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"harmful_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"insecure_code_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"toxicity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"copyright_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"misinformation_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"system_prompt_extractions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"sponge_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"competitors_list\": [\n \"competitor_1\",\n \"competitor_2\"\n ],\n \"system_description\": \"Only talk about ACME company and do not praise or mention any of the competitors\",\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_info_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_tool_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_command_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"custom_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"alignment_and_governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"input_and_content_integrity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"infrastructure_and_integration_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"security_and_privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"human_factors_and_societal_impact_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"physical_and_actuation_safety_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_monitoring_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_output_quality_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_misuse_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_observability_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_behaviour_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_and_permissions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_extraction_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n }\n },\n \"target_model_configuration\": {\n \"model_name\": \"mistralai/Mistral-7B-Instruct-v0.1\",\n \"testing_for\": \"Copilot\",\n \"model_version\": \"v1\",\n \"model_source\": \"https://together.ai\",\n \"model_provider\": \"together\",\n \"model_endpoint_url\": \"https://api.together.xyz/v1/chat/completions\",\n \"model_api_key\": \"ABCDE12345678900\",\n \"system_prompt\": \"\",\n \"rate_per_min\": 20,\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"tools\": [\n {\n \"name\": \"web_search\",\n \"description\": \"The tool web search is used to search the web for information related to finance.\"\n }\n ]\n },\n \"test_name\": \"Test 1\",\n \"dataset_name\": \"standard\",\n \"user_metadata\": {\n \"request_id\": \"abc-123\",\n \"source\": \"mobile-app\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enkryptai.com/redteam/v2/add-task")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"redteam_test_configurations\": {\n \"bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"cbrn_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"csem_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"harmful_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"insecure_code_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"toxicity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"copyright_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"misinformation_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"system_prompt_extractions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"sponge_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"competitors_list\": [\n \"competitor_1\",\n \"competitor_2\"\n ],\n \"system_description\": \"Only talk about ACME company and do not praise or mention any of the competitors\",\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_info_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_tool_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_command_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"custom_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"alignment_and_governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"input_and_content_integrity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"infrastructure_and_integration_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"security_and_privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"human_factors_and_societal_impact_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"physical_and_actuation_safety_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_monitoring_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_output_quality_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_misuse_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_observability_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_behaviour_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_and_permissions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_extraction_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n }\n },\n \"target_model_configuration\": {\n \"model_name\": \"mistralai/Mistral-7B-Instruct-v0.1\",\n \"testing_for\": \"Copilot\",\n \"model_version\": \"v1\",\n \"model_source\": \"https://together.ai\",\n \"model_provider\": \"together\",\n \"model_endpoint_url\": \"https://api.together.xyz/v1/chat/completions\",\n \"model_api_key\": \"ABCDE12345678900\",\n \"system_prompt\": \"\",\n \"rate_per_min\": 20,\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"tools\": [\n {\n \"name\": \"web_search\",\n \"description\": \"The tool web search is used to search the web for information related to finance.\"\n }\n ]\n },\n \"test_name\": \"Test 1\",\n \"dataset_name\": \"standard\",\n \"user_metadata\": {\n \"request_id\": \"abc-123\",\n \"source\": \"mobile-app\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/redteam/v2/add-task")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"redteam_test_configurations\": {\n \"bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"cbrn_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"csem_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"harmful_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"insecure_code_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"toxicity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"copyright_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"misinformation_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"system_prompt_extractions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"sponge_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"competitors_list\": [\n \"competitor_1\",\n \"competitor_2\"\n ],\n \"system_description\": \"Only talk about ACME company and do not praise or mention any of the competitors\",\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_info_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_tool_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_command_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"custom_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"alignment_and_governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"input_and_content_integrity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"infrastructure_and_integration_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"security_and_privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"human_factors_and_societal_impact_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"physical_and_actuation_safety_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_monitoring_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_output_quality_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_misuse_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_observability_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_behaviour_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_and_permissions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_extraction_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n }\n },\n \"target_model_configuration\": {\n \"model_name\": \"mistralai/Mistral-7B-Instruct-v0.1\",\n \"testing_for\": \"Copilot\",\n \"model_version\": \"v1\",\n \"model_source\": \"https://together.ai\",\n \"model_provider\": \"together\",\n \"model_endpoint_url\": \"https://api.together.xyz/v1/chat/completions\",\n \"model_api_key\": \"ABCDE12345678900\",\n \"system_prompt\": \"\",\n \"rate_per_min\": 20,\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"tools\": [\n {\n \"name\": \"web_search\",\n \"description\": \"The tool web search is used to search the web for information related to finance.\"\n }\n ]\n },\n \"test_name\": \"Test 1\",\n \"dataset_name\": \"standard\",\n \"user_metadata\": {\n \"request_id\": \"abc-123\",\n \"source\": \"mobile-app\"\n }\n}"
response = http.request(request)
puts response.read_body{
"task_id": "generate-and-redteam-6c3babbe-3bc4-4553-a0b7-454df720579f",
"status": "Success",
"message": "Redteam task has been added successfully",
"data": {
"status": "Success",
"message": "Redteam task has been added successfully",
"task_id": "generate-and-redteam-dd42eac8-ce07-4e79-8ee2-8b7dba083a76",
"data": {
"id": "9a010225-ca18-456b-9513-xxxxxxx",
"test_name": "Test Old v2",
"created_at": "2025-04-16T16:33:36.009729+00:00",
"job_id": "generate-and-redteam-dd42eac8-ce07-4e79-8ee2-8b7dba083a76",
"dataset_name": "standard",
"model_name": "Mistral-7B-Instruct-v0.1",
"model_config": {
"testing_for": "foundationModels",
"model_name": "mistralai/Mistral-7B-Instruct-v0.1",
"rpm": null,
"model_version": null,
"system_prompt": "",
"conversation_template": null,
"model_source": null,
"model_provider": "together",
"model_endpoint_url": "https://api.together.xyz/v1/chat/completions",
"rate_per_min": 10,
"input_modalities": null,
"output_modalities": null,
"custom_curl_command": null,
"custom_headers": null,
"custom_payload": null,
"custom_response_content_type": null,
"custom_response_format": null,
"tools": null,
"metadata": null
},
"redteam_config": {
"harmful_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
}
}
},
"status": "Queued",
"location": "9a010225-ca18-456b-9513-xxxxxxx/red-team-dd42eac8-ce07-4e79-8ee2-8b7dba083a76",
"run_name": null,
"project_name": "default",
"actioner_email": null,
"test_version": 3,
"model_saved_name": null,
"model_version": null,
"coc_policy_name": null
}
},
"user_metadata": {
"request_id": "abc-123",
"source": "mobile-app"
}
}Add Task
curl --request POST \
--url https://api.enkryptai.com/redteam/v2/add-task \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"redteam_test_configurations": {
"bias_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"cbrn_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"csem_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"harmful_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"insecure_code_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"toxicity_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"pii_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"copyright_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"misinformation_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"system_prompt_extractions_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"sponge_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"competitor_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"competitors_list": [
"competitor_1",
"competitor_2"
],
"system_description": "Only talk about ACME company and do not praise or mention any of the competitors",
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_bias_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_info_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_tool_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_command_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_pii_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"adv_competitor_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"custom_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"alignment_and_governance_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"input_and_content_integrity_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"infrastructure_and_integration_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"security_and_privacy_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"human_factors_and_societal_impact_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"access_control_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"physical_and_actuation_safety_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"reliability_and_monitoring_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"governance_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"agent_output_quality_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"tool_misuse_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"privacy_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"reliability_and_observability_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"agent_behaviour_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"access_control_and_permissions_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
},
"tool_extraction_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
},
"frameworks": [
"ISO",
"NIST AI 600",
"AIUC-1",
"EU AI Act",
"OWASP LLM Top 10",
"OWASP Agent Security"
]
}
},
"target_model_configuration": {
"model_name": "mistralai/Mistral-7B-Instruct-v0.1",
"testing_for": "Copilot",
"model_version": "v1",
"model_source": "https://together.ai",
"model_provider": "together",
"model_endpoint_url": "https://api.together.xyz/v1/chat/completions",
"model_api_key": "ABCDE12345678900",
"system_prompt": "",
"rate_per_min": 20,
"input_modalities": [
"text"
],
"output_modalities": [
"text"
],
"tools": [
{
"name": "web_search",
"description": "The tool web search is used to search the web for information related to finance."
}
]
},
"test_name": "Test 1",
"dataset_name": "standard",
"user_metadata": {
"request_id": "abc-123",
"source": "mobile-app"
}
}
'import requests
url = "https://api.enkryptai.com/redteam/v2/add-task"
payload = {
"redteam_test_configurations": {
"bias_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"cbrn_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"csem_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"harmful_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"insecure_code_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"toxicity_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"pii_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"copyright_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"misinformation_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"system_prompt_extractions_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"sponge_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"competitor_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"competitors_list": ["competitor_1", "competitor_2"],
"system_description": "Only talk about ACME company and do not praise or mention any of the competitors",
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_bias_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_info_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_tool_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_command_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_pii_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"adv_competitor_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"custom_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"alignment_and_governance_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"input_and_content_integrity_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"infrastructure_and_integration_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"security_and_privacy_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"human_factors_and_societal_impact_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"access_control_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"physical_and_actuation_safety_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"reliability_and_monitoring_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"governance_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"agent_output_quality_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"tool_misuse_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"privacy_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"reliability_and_observability_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"agent_behaviour_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"access_control_and_permissions_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
},
"tool_extraction_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] },
"frameworks": ["ISO", "NIST AI 600", "AIUC-1", "EU AI Act", "OWASP LLM Top 10", "OWASP Agent Security"]
}
},
"target_model_configuration": {
"model_name": "mistralai/Mistral-7B-Instruct-v0.1",
"testing_for": "Copilot",
"model_version": "v1",
"model_source": "https://together.ai",
"model_provider": "together",
"model_endpoint_url": "https://api.together.xyz/v1/chat/completions",
"model_api_key": "ABCDE12345678900",
"system_prompt": "",
"rate_per_min": 20,
"input_modalities": ["text"],
"output_modalities": ["text"],
"tools": [
{
"name": "web_search",
"description": "The tool web search is used to search the web for information related to finance."
}
]
},
"test_name": "Test 1",
"dataset_name": "standard",
"user_metadata": {
"request_id": "abc-123",
"source": "mobile-app"
}
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
redteam_test_configurations: {
bias_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
cbrn_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
csem_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
harmful_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
insecure_code_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
toxicity_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
pii_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
copyright_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
misinformation_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
system_prompt_extractions_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
sponge_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
competitor_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
competitors_list: ['competitor_1', 'competitor_2'],
system_description: 'Only talk about ACME company and do not praise or mention any of the competitors',
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_bias_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_info_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_tool_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_command_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_pii_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
adv_competitor_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
custom_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
alignment_and_governance_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
input_and_content_integrity_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
infrastructure_and_integration_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
security_and_privacy_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
human_factors_and_societal_impact_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
access_control_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
physical_and_actuation_safety_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
reliability_and_monitoring_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
governance_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
agent_output_quality_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
tool_misuse_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
privacy_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
reliability_and_observability_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
agent_behaviour_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
access_control_and_permissions_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
},
tool_extraction_test: {
sample_percentage: 1,
attack_methods: {basic: ['basic']},
frameworks: [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
}
},
target_model_configuration: {
model_name: 'mistralai/Mistral-7B-Instruct-v0.1',
testing_for: 'Copilot',
model_version: 'v1',
model_source: 'https://together.ai',
model_provider: 'together',
model_endpoint_url: 'https://api.together.xyz/v1/chat/completions',
model_api_key: 'ABCDE12345678900',
system_prompt: '',
rate_per_min: 20,
input_modalities: ['text'],
output_modalities: ['text'],
tools: [
{
name: 'web_search',
description: 'The tool web search is used to search the web for information related to finance.'
}
]
},
test_name: 'Test 1',
dataset_name: 'standard',
user_metadata: {request_id: 'abc-123', source: 'mobile-app'}
})
};
fetch('https://api.enkryptai.com/redteam/v2/add-task', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/redteam/v2/add-task",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'redteam_test_configurations' => [
'bias_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'cbrn_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'csem_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'harmful_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'insecure_code_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'toxicity_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'pii_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'copyright_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'misinformation_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'system_prompt_extractions_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'sponge_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'competitor_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'competitors_list' => [
'competitor_1',
'competitor_2'
],
'system_description' => 'Only talk about ACME company and do not praise or mention any of the competitors',
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_bias_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_info_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_tool_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_command_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_pii_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'adv_competitor_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'custom_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'alignment_and_governance_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'input_and_content_integrity_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'infrastructure_and_integration_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'security_and_privacy_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'human_factors_and_societal_impact_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'access_control_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'physical_and_actuation_safety_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'reliability_and_monitoring_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'governance_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'agent_output_quality_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'tool_misuse_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'privacy_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'reliability_and_observability_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'agent_behaviour_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'access_control_and_permissions_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
],
'tool_extraction_test' => [
'sample_percentage' => 1,
'attack_methods' => [
'basic' => [
'basic'
]
],
'frameworks' => [
'ISO',
'NIST AI 600',
'AIUC-1',
'EU AI Act',
'OWASP LLM Top 10',
'OWASP Agent Security'
]
]
],
'target_model_configuration' => [
'model_name' => 'mistralai/Mistral-7B-Instruct-v0.1',
'testing_for' => 'Copilot',
'model_version' => 'v1',
'model_source' => 'https://together.ai',
'model_provider' => 'together',
'model_endpoint_url' => 'https://api.together.xyz/v1/chat/completions',
'model_api_key' => 'ABCDE12345678900',
'system_prompt' => '',
'rate_per_min' => 20,
'input_modalities' => [
'text'
],
'output_modalities' => [
'text'
],
'tools' => [
[
'name' => 'web_search',
'description' => 'The tool web search is used to search the web for information related to finance.'
]
]
],
'test_name' => 'Test 1',
'dataset_name' => 'standard',
'user_metadata' => [
'request_id' => 'abc-123',
'source' => 'mobile-app'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/redteam/v2/add-task"
payload := strings.NewReader("{\n \"redteam_test_configurations\": {\n \"bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"cbrn_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"csem_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"harmful_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"insecure_code_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"toxicity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"copyright_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"misinformation_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"system_prompt_extractions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"sponge_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"competitors_list\": [\n \"competitor_1\",\n \"competitor_2\"\n ],\n \"system_description\": \"Only talk about ACME company and do not praise or mention any of the competitors\",\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_info_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_tool_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_command_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"custom_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"alignment_and_governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"input_and_content_integrity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"infrastructure_and_integration_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"security_and_privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"human_factors_and_societal_impact_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"physical_and_actuation_safety_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_monitoring_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_output_quality_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_misuse_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_observability_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_behaviour_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_and_permissions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_extraction_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n }\n },\n \"target_model_configuration\": {\n \"model_name\": \"mistralai/Mistral-7B-Instruct-v0.1\",\n \"testing_for\": \"Copilot\",\n \"model_version\": \"v1\",\n \"model_source\": \"https://together.ai\",\n \"model_provider\": \"together\",\n \"model_endpoint_url\": \"https://api.together.xyz/v1/chat/completions\",\n \"model_api_key\": \"ABCDE12345678900\",\n \"system_prompt\": \"\",\n \"rate_per_min\": 20,\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"tools\": [\n {\n \"name\": \"web_search\",\n \"description\": \"The tool web search is used to search the web for information related to finance.\"\n }\n ]\n },\n \"test_name\": \"Test 1\",\n \"dataset_name\": \"standard\",\n \"user_metadata\": {\n \"request_id\": \"abc-123\",\n \"source\": \"mobile-app\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enkryptai.com/redteam/v2/add-task")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"redteam_test_configurations\": {\n \"bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"cbrn_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"csem_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"harmful_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"insecure_code_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"toxicity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"copyright_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"misinformation_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"system_prompt_extractions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"sponge_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"competitors_list\": [\n \"competitor_1\",\n \"competitor_2\"\n ],\n \"system_description\": \"Only talk about ACME company and do not praise or mention any of the competitors\",\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_info_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_tool_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_command_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"custom_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"alignment_and_governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"input_and_content_integrity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"infrastructure_and_integration_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"security_and_privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"human_factors_and_societal_impact_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"physical_and_actuation_safety_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_monitoring_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_output_quality_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_misuse_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_observability_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_behaviour_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_and_permissions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_extraction_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n }\n },\n \"target_model_configuration\": {\n \"model_name\": \"mistralai/Mistral-7B-Instruct-v0.1\",\n \"testing_for\": \"Copilot\",\n \"model_version\": \"v1\",\n \"model_source\": \"https://together.ai\",\n \"model_provider\": \"together\",\n \"model_endpoint_url\": \"https://api.together.xyz/v1/chat/completions\",\n \"model_api_key\": \"ABCDE12345678900\",\n \"system_prompt\": \"\",\n \"rate_per_min\": 20,\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"tools\": [\n {\n \"name\": \"web_search\",\n \"description\": \"The tool web search is used to search the web for information related to finance.\"\n }\n ]\n },\n \"test_name\": \"Test 1\",\n \"dataset_name\": \"standard\",\n \"user_metadata\": {\n \"request_id\": \"abc-123\",\n \"source\": \"mobile-app\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/redteam/v2/add-task")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"redteam_test_configurations\": {\n \"bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"cbrn_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"csem_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"harmful_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"insecure_code_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"toxicity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"copyright_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"misinformation_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"system_prompt_extractions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"sponge_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"competitors_list\": [\n \"competitor_1\",\n \"competitor_2\"\n ],\n \"system_description\": \"Only talk about ACME company and do not praise or mention any of the competitors\",\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_bias_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_info_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_tool_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_command_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_pii_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"adv_competitor_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"custom_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"alignment_and_governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"input_and_content_integrity_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"infrastructure_and_integration_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"security_and_privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"human_factors_and_societal_impact_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"physical_and_actuation_safety_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_monitoring_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"governance_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_output_quality_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_misuse_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"privacy_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"reliability_and_observability_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"agent_behaviour_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"access_control_and_permissions_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n },\n \"tool_extraction_test\": {\n \"sample_percentage\": 1,\n \"attack_methods\": {\n \"basic\": [\n \"basic\"\n ]\n },\n \"frameworks\": [\n \"ISO\",\n \"NIST AI 600\",\n \"AIUC-1\",\n \"EU AI Act\",\n \"OWASP LLM Top 10\",\n \"OWASP Agent Security\"\n ]\n }\n },\n \"target_model_configuration\": {\n \"model_name\": \"mistralai/Mistral-7B-Instruct-v0.1\",\n \"testing_for\": \"Copilot\",\n \"model_version\": \"v1\",\n \"model_source\": \"https://together.ai\",\n \"model_provider\": \"together\",\n \"model_endpoint_url\": \"https://api.together.xyz/v1/chat/completions\",\n \"model_api_key\": \"ABCDE12345678900\",\n \"system_prompt\": \"\",\n \"rate_per_min\": 20,\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"tools\": [\n {\n \"name\": \"web_search\",\n \"description\": \"The tool web search is used to search the web for information related to finance.\"\n }\n ]\n },\n \"test_name\": \"Test 1\",\n \"dataset_name\": \"standard\",\n \"user_metadata\": {\n \"request_id\": \"abc-123\",\n \"source\": \"mobile-app\"\n }\n}"
response = http.request(request)
puts response.read_body{
"task_id": "generate-and-redteam-6c3babbe-3bc4-4553-a0b7-454df720579f",
"status": "Success",
"message": "Redteam task has been added successfully",
"data": {
"status": "Success",
"message": "Redteam task has been added successfully",
"task_id": "generate-and-redteam-dd42eac8-ce07-4e79-8ee2-8b7dba083a76",
"data": {
"id": "9a010225-ca18-456b-9513-xxxxxxx",
"test_name": "Test Old v2",
"created_at": "2025-04-16T16:33:36.009729+00:00",
"job_id": "generate-and-redteam-dd42eac8-ce07-4e79-8ee2-8b7dba083a76",
"dataset_name": "standard",
"model_name": "Mistral-7B-Instruct-v0.1",
"model_config": {
"testing_for": "foundationModels",
"model_name": "mistralai/Mistral-7B-Instruct-v0.1",
"rpm": null,
"model_version": null,
"system_prompt": "",
"conversation_template": null,
"model_source": null,
"model_provider": "together",
"model_endpoint_url": "https://api.together.xyz/v1/chat/completions",
"rate_per_min": 10,
"input_modalities": null,
"output_modalities": null,
"custom_curl_command": null,
"custom_headers": null,
"custom_payload": null,
"custom_response_content_type": null,
"custom_response_format": null,
"tools": null,
"metadata": null
},
"redteam_config": {
"harmful_test": {
"sample_percentage": 1,
"attack_methods": {
"basic": [
"basic"
]
}
}
},
"status": "Queued",
"location": "9a010225-ca18-456b-9513-xxxxxxx/red-team-dd42eac8-ce07-4e79-8ee2-8b7dba083a76",
"run_name": null,
"project_name": "default",
"actioner_email": null,
"test_version": 3,
"model_saved_name": null,
"model_version": null,
"coc_policy_name": null
}
},
"user_metadata": {
"request_id": "abc-123",
"source": "mobile-app"
}
}Authorizations
Body
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"Test 1"
"standard"
Optional arbitrary metadata object echoed back in the response. Limits: at most 16 top-level keys, key names up to 64 characters, nesting depth up to 3, total serialized size up to 4 KB. When provided and valid, this object is also echoed as a top-level user_metadata key on error responses (4xx/5xx) of endpoints that accept it; invalid or oversized metadata is never echoed, including on the 422 response it causes.
{
"request_id": "abc-123",
"source": "mobile-app"
}
Response
Successful Response
"generate-and-redteam-6c3babbe-3bc4-4553-a0b7-454df720579f"
Status of the task
Success, Failed "Success"
"Redteam task has been added successfully"
Show child attributes
Show child attributes
{
"status": "Success",
"message": "Redteam task has been added successfully",
"task_id": "generate-and-redteam-dd42eac8-ce07-4e79-8ee2-8b7dba083a76",
"data": {
"id": "9a010225-ca18-456b-9513-xxxxxxx",
"test_name": "Test Old v2",
"created_at": "2025-04-16T16:33:36.009729+00:00",
"job_id": "generate-and-redteam-dd42eac8-ce07-4e79-8ee2-8b7dba083a76",
"dataset_name": "standard",
"model_name": "Mistral-7B-Instruct-v0.1",
"model_config": {
"testing_for": "foundationModels",
"model_name": "mistralai/Mistral-7B-Instruct-v0.1",
"rpm": null,
"model_version": null,
"system_prompt": "",
"conversation_template": null,
"model_source": null,
"model_provider": "together",
"model_endpoint_url": "https://api.together.xyz/v1/chat/completions",
"rate_per_min": 10,
"input_modalities": null,
"output_modalities": null,
"custom_curl_command": null,
"custom_headers": null,
"custom_payload": null,
"custom_response_content_type": null,
"custom_response_format": null,
"tools": null,
"metadata": null
},
"redteam_config": {
"harmful_test": {
"sample_percentage": 1,
"attack_methods": { "basic": ["basic"] }
}
},
"status": "Queued",
"location": "9a010225-ca18-456b-9513-xxxxxxx/red-team-dd42eac8-ce07-4e79-8ee2-8b7dba083a76",
"run_name": null,
"project_name": "default",
"actioner_email": null,
"test_version": 3,
"model_saved_name": null,
"model_version": null,
"coc_policy_name": null
}
}
Optional arbitrary metadata object echoed back in the response. Limits: at most 16 top-level keys, key names up to 64 characters, nesting depth up to 3, total serialized size up to 4 KB. When provided and valid, this object is also echoed as a top-level user_metadata key on error responses (4xx/5xx) of endpoints that accept it; invalid or oversized metadata is never echoed, including on the 422 response it causes.
{
"request_id": "abc-123",
"source": "mobile-app"
}

