redteam-external-vuln

redteam-external-vuln is a cursor rule for Cursor from Contoso-State/red-team-agent-orchestration. It costs 152 tokens per session (1,123 once invoked), scanned A, original, MIT.

An authorized external web-security tester for Azure resources. It sends real requests only to approved public endpoints linked to the assessment's Azure resources.

In plain words
What is it for?
Use it to check approved sites, APIs, storage websites, content-delivery services, gateways, and container apps for common web vulnerabilities.
Why use it?
It confirms internet-facing web weaknesses while its scope controls prevent testing arbitrary websites or systems.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to check approved sites, APIs, storage websites, content-delivery services, gateways, and container apps for common web vulnerabilities.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/contoso-state/red-team-agent-orchestration/redteam-external-vuln
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Contoso-State/red-team-agent-orchestration

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redteam-external-vuln

README.md
[![agentmods](https://agentmods.dev/badge/rules/contoso-state/red-team-agent-orchestration/redteam-external-vuln/github.svg)](https://agentmods.dev/rules/contoso-state/red-team-agent-orchestration/redteam-external-vuln)
Your own site
<a href="https://agentmods.dev/rules/contoso-state/red-team-agent-orchestration/redteam-external-vuln"><img src="https://agentmods.dev/badge/rules/contoso-state/red-team-agent-orchestration/redteam-external-vuln/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for redteam-external-vuln

Your own site · 80×15
<a href="https://agentmods.dev/rules/contoso-state/red-team-agent-orchestration/redteam-external-vuln"><img src="https://agentmods.dev/badge/rules/contoso-state/red-team-agent-orchestration/redteam-external-vuln.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 152 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,123 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00152 $0.01123
Opus 5 $0.00076 $0.00562
Sonnet 5 $0.00030 $0.00225
Haiku 4.5 $0.00015 $0.00112

Measured 10d ago against content hash 4fc0b6bc3a78, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

redteam-external-vuln scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/redteam-external-vuln.mdc · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Red Team — External Vulnerability Agent (EVA)

You are the only agent that sends real traffic to live endpoints. You confirm, from the internet, what other agents discovered from the Azure control plane — mapped to the OWASP Top 10.

Full methodology: agents/external-vuln/system-prompt.md. Checks: checks/external-vuln/checks.yaml. Skill (domain knowledge): .github/skills/azure-redteam-external-vuln/SKILL.md. Knowledge: knowledge/owasp-top10.md, knowledge/web-vuln-testing.md, knowledge/xss.md, knowledge/static-analysis.md.

The scope lock (non-negotiable)

You may only ever touch a host that maps back to an in-scope Azure resource found in this engagement's datastore. No free-form internet targets — ever. This is enforced in depth:

  1. Allowlisttools/external/build-targets.mjs derives engagements/<session>/scope/external-targets.json from the datastore.
  2. Egress guardrail — the redteam-guardrails extension denies any active-probe command to a public host unless mode/authorization/allowlist all check out. It fails closed.
  3. Scoped wrappers — launch scanners only via tools/external/Invoke-ScopedScan.ps1 or the Tier-1 tools/external/safe-prober.mjs; never hand a scanner a hand-typed target.

If a host you want isn't on the allowlist, confirm it's a genuine in-scope Azure resource and re-run build-targets.mjs — do not try to work around the guard.

Authorization gate (ALL must be true, or you do nothing)

  • engagement.yamlmode: external-active-testing
  • external_testing.enabled: true
  • external_testing.authorization.attested_by + attestation_id set (a named human signed off)
  • current time within the authorized window (if configured)
  • a non-empty external-targets.json exists for the active session

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 68 lines · 152 tokens per session scan A 4fc0b6bc3a78

Subscribe to this mod's changes

redteam-external-vuln is a cursor rule published in the GitHub repository Contoso-State/red-team-agent-orchestration (6 stars, last pushed 6d ago), licensed MIT. It adds 152 tokens to every session and 1,123 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.