OPEN-SOURCE RED-TEAM HARNESS & SDK SPECS

SwishOS Developer Documentation

Target-agnostic HTTP red-teaming harness, deterministic shape-based detection, and tool-call sequence analysis for production AI agents.

View GitHub Repository →

Package Installation & CLI Harness

Install the open-source PyPI package to evaluate local or remote agent HTTP endpoints against OWASP LLM Top 10 vulnerabilities.

1. INSTALLATION (PyPI)
PyPI Release (publishing soon)
bash
$ pip install agentic-redteam  # publishing soon
2. CLI EXECUTION & SARIF EXPORT
Terminal Triage
bash
$ agentic-redteam run --target https://api.agent.internal/v1/chat \
  --preset owasp-llm-2026 --output report.sarif.json

Python SDK Runtime Integration

Embed ingress blocking and egress redaction directly into LangChain, CrewAI, or AutoGen execution loops.

agent_guardrail.py
python
from agentic_redteam.patching.guardrails import check_ingress, sanitize_egress

# Ingress: refuse the request before the agent ever sees it
blocked, rule_id, reason = check_ingress(user_input)
if blocked:
    raise SecurityError(f"{rule_id}: {reason}")

# Egress: scrub API keys and PII out of the response
safe_output, redactions = sanitize_egress(agent_response)
Deterministic & Offline
SARIF v2.1 Output

Hardened Technical Architecture

SANDBOX HARDENING

Deterministic Runtime Sandbox

Generates hardened container configuration for running agents under gVisor (runsc) user-space kernel isolation, with read-only root, cgroup memory caps, and iptables rules dropping cloud metadata egress.

agentic_redteam/sandbox_config.py
python
service = generate_gvisor_docker_compose_service(
    image="your-agent:latest",
    memory_limit="256m",
)
# runtime: runsc  |  read_only: true  |  cap_drop: ALL
SHAPE-BASED DETECTION

Deterministic Response Analysis

Inspects responses for the shape of a leak -- validated card numbers, IBANs, cloud metadata, dangerous code -- rather than asking a model whether the answer looked unsafe. The same input always produces the same finding.

agentic_redteam/detectors.py
python
hits = find_pii(response)          # Luhn / mod-97 validated
if reveals_cloud_metadata(response):
    flag("SSRF: cloud metadata reached")
EGRESS REDACTION

Response Body Scrubbing

Strips provider API keys and PII from agent responses before they leave the process, covering current key formats such as Stripe, AWS, and GitHub tokens.

agentic_redteam/patching/guardrails.py
python
safe, redactions = sanitize_egress(response_body)
if redactions:
    log.warning("redacted %d secret(s) from egress", len(redactions))

Framework Security Benchmarks

Empirical OWASP LLM 0–100 vulnerability benchmarks across top open-source agent frameworks.

RANK / FRAMEWORKVERSIONECOSYSTEMOWASP SCOREGRADEPASS RATEDETAILS
1
SwishOS Zero-Trust Enclave NATIVE
v1.1.0Python / TypeScript100/100A100% (250/250)
Threat Category Security Breakdown (SwishOS Zero-Trust Enclave)
Prompt Injection (LLM01)
100%
PII Redaction (LLM06)
100%
Sandbox Hardening (ASI06)
100%
Spend Caps (ASI10)
100%
AST Splitting (ASI01)
100%
Memory Poisoning (ASI08)
100%
2
LlamaIndex Workflows
v0.11.0Python / TypeScript76/100B76% (190/250)
3
CrewAI Multi-Agent
v0.70.0Python72/100C72% (180/250)
4
LangChain / LangGraph
v0.3.15Python / TypeScript68/100C68% (170/250)
5
Microsoft AutoGen
v0.4.0Python64/100C64% (160/250)