BotArmor: LLM red teaming for chatbots

v0.2.1
io.github.sidorenkav-collab/botarmor Checked 4 days ago Published 6 days ago

LLM red teaming and prompt injection testing for chatbots and AI agents: A-F grade, prompt fixes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

start_audit Start a BotArmor audit

Crash-test a chatbot or AI agent with BotArmor: up to 12 attack levels (fake manager, angry customer, fake lawyer, prompt injection, role-play, phishing, AI disclosure under the EU AI Act, invented facts...) plus level 13 for agents with tools, 3 to 5 adaptive sessions each (10 when in doubt). Two modes. target_type 'prompt' (default when no endpoint_url): BotArmor plays the agent's system prompt on its own model; use it for an agent running on localhost or not deployed yet, reading the system prompt from the code. target_type 'openai-compatible' or 'webhook': a live audit of a running bot at…

ParameterTypeDescription
system_prompt *stringThe agent's system prompt / instructions, as in its code. For a live audit it is also the rulebook the judge checks answers against.
authorization_confirmedbooleanLive audits only. true = the user confirmed they own the bot or hold the owner's written permission to test it.
body_templateobjectwebhook only: JSON body with {{input}} (current message), "{{history}}" or "{{messages}}". Default {message: "{{input}}", session_id: "{{session_id}}"}.
depthstringfull (default): 3 to 5 sessions per level, uses one credit. quick: free first look, one short session per level, one per account per day, no badge.
endpoint_urlstringPublic https URL of the running agent (live audits only). localhost cannot be reached from BotArmor's servers.
headersobjectHeaders the target needs, e.g. {"Authorization": "Bearer ..."}. A credential header is stored encrypted by BotArmor.
langstringReport language, default en.
levelsarraySubset of levels; default all 12 (plus 'agency' when tools are declared).
min_gradestringPass threshold shown by get_audit_status, default B.
modelstringopenai-compatible only: the model name sent in the request body.
namestringName shown in the report.
response_pathstringwebhook only: dot path to the reply text in the response JSON, e.g. data.reply.
target_typestringDefault: 'webhook' when endpoint_url is given, else 'prompt'.

get_audit_status BotArmor audit status

Status and progress of a BotArmor audit (levels done out of total), and the grade once completed.

ParameterTypeDescription
audit_id *stringAudit id, e.g. BA-7NRZ26D4

get_audit_report BotArmor audit report

Findings of a completed BotArmor audit: grade, a table of levels with severity and breaks, and for every failed level what happened and the exact text to add to the agent's system prompt. Apply the fixes in the agent's code, then audit again to compare.

ParameterTypeDescription
audit_id *stringAudit id, e.g. BA-7NRZ26D4

list_audits List BotArmor audits

The user's latest BotArmor audits, newest first, with status, grade and score.

ParameterTypeDescription
limitintegerHow many, default 10.