Two tailored workflows for complete AI security.
SecureMID supports both **Portal Web UI & REST API-based testing** for interactive exploration and scheduled pentesting, and **Headless CLI-based gating** for automated CI/CD pipelines.
Interactive testing via Customer Portal & REST APIs
Designed for security teams, AI engineers, and compliance leads who configure, run, and inspect evaluations visually in the web portal or orchestrate them programmatically via our HTTP API.
Connect Your Agent Endpoint via Web UI or REST API
In the Customer Portal **Asset Registry**, register your AI agent endpoint URL (HTTP REST or WebSocket) and specify staging/production tags. Alternatively, programmatically register assets using our REST API:
| 1 | POST /api/v1/agents |
| 2 | Host: app.securemid.com |
| 3 | Authorization: Bearer <SECUREMID_API_KEY> |
| 4 | Content-Type: application/json |
| 5 | |
| 6 | { |
| 7 | "name": "FinBot-Production", |
| 8 | "endpoint_url": "https://agent-staging.internal:9000/v1/chat", |
| 9 | "environment": "staging", |
| 10 | "auth_type": "bearer", |
| 11 | "model_identifier": "gpt-4o-mini-financial", |
| 12 | "protocol": "http_rest" |
| 13 | } |
Select Attack Batteries & Safety Invariants in the Dashboard
Use the Portal UI or API to select threat matrices (OWASP LLM01 Prompt Injection, LLM05 Tool Abuse, SSRF, RAG Poisoning) and configure conversation depth:
Trigger Distributed Scan via Portal API or 1-Click Launch
Celery workers simulate attacks asynchronously while our local fine-tuned judge evaluates responses in **4.20 ms**. Zero prompt data leaves your perimeter:
| 1 | POST /api/v1/assessments/start |
| 2 | Host: app.securemid.com |
| 3 | Authorization: Bearer <SECUREMID_API_KEY> |
| 4 | Content-Type: application/json |
| 5 | |
| 6 | { |
| 7 | "agent_id": "agt_88192a7b", |
| 8 | "batteries": [ |
| 9 | "owasp_llm01_prompt_injection", |
| 10 | "owasp_llm05_tool_abuse", |
| 11 | "owasp_llm08_ssrf_metadata", |
| 12 | "crescendo_multi_turn_escalation" |
| 13 | ], |
| 14 | "max_conversation_depth": 10, |
| 15 | "fail_on_severity": "HIGH", |
| 16 | "judge_mode": "air_gapped_local" |
| 17 | } |
Review Captured Payloads & Retest in Customer Portal
Inspect line-by-line developer remediation code and cryptographic SHA-256 evidence. Once patched, click **"Run 1-Click Retest"** in the portal to confirm vulnerability closure.
Headless build gating with securemid-cli
Designed for DevOps, platform engineers, and CI/CD pipelines. Automatically block vulnerable agent prompt merges and tool schema changes before production release.
1. Install the CLI in your CI runner or pre-commit hook
python -m pip install securemid-cli2. Execute headless adversarial scan with severity exit codes
The CLI exits with code 1 when a vulnerability matches or exceeds the specified severity threshold, immediately failing the CI/CD build.
securemid-cli scan \
--agent-name "FinBot-Agent" \
--endpoint-url "http://localhost:9000/v1/chat" \
--org-id "${{ secrets.SECUREMID_ORG_ID }}" \
--fail-on-severity HIGH \
--wait3. GitHub Actions Pipeline Integration
| 1 | # .github/workflows/ai-security.yml |
| 2 | name: AI Security Gate |
| 3 | on: [pull_request] |
| 4 | |
| 5 | jobs: |
| 6 | securemid-eval: |
| 7 | runs-on: ubuntu-latest |
| 8 | steps: |
| 9 | - uses: actions/checkout@v4 |
| 10 | - name: Set up Python |
| 11 | uses: actions/setup-python@v5 |
| 12 | with: |
| 13 | python-version: '3.11' |
| 14 | |
| 15 | - name: Install SecureMID CLI |
| 16 | run: python -m pip install securemid-cli |
| 17 | |
| 18 | - name: Run Headless Adversarial Evaluation Gate |
| 19 | env: |
| 20 | SECUREMID_API_KEY: ${{ secrets.SECUREMID_API_KEY }} |
| 21 | run: | |
| 22 | securemid-cli scan \ |
| 23 | --agent-name "FinBot-Agent" \ |
| 24 | --fail-on-severity HIGH \ |
| 25 | --output-report ./security-report.json \ |
| 26 | --wait |
Operational Boundaries & Troubleshooting
The Security Judge model evaluates up to 2,048 tokens per assertion. For extensive agent trajectories exceeding 10 turns, intermediate tool traces are summarized to prevent truncation.
If the local judge daemon becomes unreachable, SecureMID safely records an UNKNOWN status rather than silently egressing sensitive prompts to public cloud providers.
Make AI security part of your workflow.
Start exploring how SecureMID can help your team autonomously assess, red-team, and evaluate AI systems before they reach production.