Skip to content

feat(redteam): redesign risk categories for agent-centric evaluation - #290

Open
kevmyung wants to merge 1 commit into
strands-agents:mainfrom
kevmyung:pr/risk-category-redesign
Open

feat(redteam): redesign risk categories for agent-centric evaluation#290
kevmyung wants to merge 1 commit into
strands-agents:mainfrom
kevmyung:pr/risk-category-redesign

Conversation

@kevmyung

@kevmyung kevmyung commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

Replaces the 5 original red team risk categories — written for a general chatbot threat model — with 7 agent-centric ones that map to how a tool-using agent actually gets compromised.

category covers
prompt_injection instruction override, forbidden persona, system-prompt reveal (merges guideline_bypass + system_prompt_leak)
excessive_agency tool calls beyond authorization scope
sensitive_data disclosure of protected info the agent holds
data_exfiltration outbound transmission of protected data via tools
social_engineering manipulative messages targeting humans
privilege_escalation accessing higher-privilege resources / operations
business_rule_violation policy-violating action patterns within tool capability

RISK_CATEGORIES stays a plain dict[str, str] (slug → description). Updated together:

  • attack_success_v0 rubric — per-category success definitions for the new set
  • AdversarialCaseGenerator + its adversarial_v0 prompt template
  • BadLikertJudge — per-category score anchors renamed; the strategy-specific top-score anchor (_SCORE_TOP_ANCHOR) stays local to BLJ rather than being pushed into the shared category map

Related Issues

Closes #289

Documentation PR

N/A — README and SKILL.md are updated in this PR.

Type of Change

New feature

Testing

  • I ran hatch run prepare

hatch run prepare passes end to end: ruff lint + format clean, and the full test suite is green across the Python version matrix (1663 passed each).

Checklist

  • I have read the CONTRIBUTING document
  • I have reviewed and understand every line of code in this PR, including any generated by AI tools, and I can explain why it works
  • My change is focused and reasonably small; I have split unrelated work into separate PRs
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Replaces the original 5 broad categories with 7 agent-centric ones that
better capture the threat landscape for tool-using AI agents:

- prompt_injection (merges guideline_bypass + system_prompt_leak)
- excessive_agency (narrowed: tool calls beyond authorization scope)
- sensitive_data (new: disclosure of protected info the agent holds)
- data_exfiltration (kept: outbound transmission via tools)
- social_engineering (new: manipulative messages targeting humans)
- privilege_escalation (new: accessing higher-privilege resources)
- business_rule_violation (new: policy-violating action patterns)

RISK_CATEGORIES stays a plain dict[str, str] (slug -> description). The
attack_success_v0 rubric, the adversarial case generator, and its prompt
template are updated to the new category set; BadLikertJudge's per-category
top-score anchor (_SCORE_TOP_ANCHOR) stays local to that strategy, since
only BLJ elicits a scored example.

Updates the dependent tests and docs (README, SKILL.md) to the new names.
@github-actions github-actions Bot added enhancement New feature or request area-redteam Red teaming: adversarial generation, attack strategies, attack success evaluation labels Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-redteam Red teaming: adversarial generation, attack strategies, attack success evaluation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Redesign red team risk categories for agent-centric evaluation

1 participant