Skip to content
Back to skills

Offensive Engineer

ASecurity

Orchestrate an authorized penetration test of your own AI agent or app — authorize + scope, recon the attack surface, pick the highest-value path, run an adaptive multi-turn campaign, chain a proven break into a demonstrated compromise, and deliver a pentest report. Use when a security engineer red-teams an agent they own or are engaged to test, beyond a single behavioral episode.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 25, 2026
ai-agentstestingbackendsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add Asterguard/asterguard-skills --skill offensive-engineer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Offensive Engineer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Offensive Engineer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/asterguard-offensive-engineer/badge)](https://www.skillsdirectory.com/skills/asterguard-offensive-engineer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: offensive-engineer
description: Orchestrate an authorized penetration test of your own AI agent or app — authorize + scope, recon the attack surface, pick the highest-value path, run an adaptive multi-turn campaign, chain a proven break into a demonstrated compromise, and deliver a pentest report. Use when a security engineer red-teams an agent they own or are engaged to test, beyond a single behavioral episode.
---

# Offensive Engineer (authorized-pentest orchestrator)

The offensive posture of the pack: the same graph + attacker + canaries a defender uses, run as an
**authorized penetration test**. Mirrors `security-engineer`, but the deliverable is a proven attack
narrative, not an advisory review. It is the named entrypoint; the pipeline is the **`pentest`**
playbook (`playbooks/pentest.yaml`), run by `playbook-runner`, so an org customizes it as data.

> **Authorized engagements only.** This drives real attacks against a live target. It runs only against
> systems the operator owns or is explicitly engaged to test, through the AsterVault gateway so every
> action is identified, scoped, and audited. See *Rules of engagement* below — it is step 0, not
> optional.

## When to Activate

- A security engineer asks to pentest / red-team / "prove exploitability of" an agent they own.
- A proof-of-reach (a canary hit from `behavioral-redteam`) needs chaining into a full demonstrated
  compromise.
- A scheduled or PR-triggered offensive assurance run (see the `pentest-pr-gate` playbook).

## Rules of engagement (step 0 — mandatory)

Before anything runs, establish and **record** the authorization as the first engagement event:

- **Scope:** exactly which target(s), endpoints, tenants, data classes are in and out of bounds.
- **Authorization:** that the operator owns or is engaged to test this target; who authorized it.
- **Limits:** no destructive/irreversible actions without `confirm-action`; no real third parties; no
  production data exfiltration beyond planted canaries; a budget (ASR@N) ceiling.
- **Attacker model:** which model drives the campaign (via `attacker-model`) — recorded for attribution.
- **Privilege:** offensive **execution** requires the separate **offensive token** (`offensive:run`, via
  `offensive-token`), acquired *after* authorization. Without it, only **planning** (`recon`,
  `attack-planner`) runs — the gateway blocks every behavior-changing attack (`403 offensive privilege
  required`).

The orchestrator refuses to proceed until this is captured (`engagement.append(kind: decision,
authorization)`). A run with no recorded authorization is not a pentest; it is an abuse.

## Plan vs execute (the privilege boundary)

| Phase | Skills | Credential |
|---|---|---|
| **Plan** (read-only: map + decide what to test) | `recon`, `attack-planner` | scan tier — `ars-token` (`scan:run`) |
| **Execute** (behavior-changing attack on a live target) | `attacker` / `behavioral-redteam`, `exploit-chain`, live `canary-testing`, a non-default `attacker-model`, the forge engine | privileged tier — `offensive-token` (`offensive:run`) |

Planning always runs; execution runs only with the offensive token — enforced server-side at the
runtime (attacker↔target) path. **Engine mode:** when the offensive token is present and the
forge-behind-MCP is available, the campaign/exploit run on the server-side forge engine (adaptive
tree-search, routed attacker backends), gated by `offensive:run` and audited; otherwise client mode
(the harness drives the loop). Same contract either way.

## The pipeline (the pentest loop)

1. **Authorize + entitle + recall.** Record the RoE (above); acquire the **offensive token** via
   `offensive-token` (refuse the execution phases if absent — planning may still run); `knowledge-recall`
   + `memory.recall({target, topic:"redteam"})` seed the campaign with prior proven breaks.
2. **Recon** *(plan tier)*. `recon` builds the offensive attack map (trifecta legs, over-privileged
   tools, anon-reachable stores) and picks the highest-value path.
3. **Plan** *(plan tier)*. `attack-planner` — the MCP knowledge base decides what to test, the example
   techniques, the canary types, and the budget for the chosen path.
4. **Campaign** *(execute — privileged)*. `behavioral-redteam` runs the adaptive attacker ▸ defender ▸
   judge loop against the chosen path with fresh canaries per attempt, driven by the selected
   `attacker-model`, on the forge engine when available; reports **ASR@budget** and utility-under-attack.
5. **Exploit + chain** *(execute — privileged)*. `exploit-chain` turns a proven canary-hit into a **demonstrated multi-step
   compromise** (initial access → privilege/authority escalation → lateral tool/agent abuse → impact),
   each step independently proven. Irreversible steps gate through `confirm-action`.
6. **Prove.** Impact is decided from out-of-band evidence (`canary-testing` egress/honeytoken, a state
   diff, the gateway audit) — never the attacker's or target's own claim.
7. **Report.** `pentest-report` delivers the compliance-ready engagement report (scope · methodology ·
   findings-with-PoCs · kill-chain · ASR · remediation).
8. **Feed forward.** `memory-capture` + `memory.promote` save the **proven break** into the reusable
   corpus; the broke tests hand to the blue team as regression tests (offense feeds defense).

## Practical Guidance

- **Attack the graph, not blindly.** Always start from `recon`'s chosen path — targeted beats
  spray-and-pray and keeps the engagement in scope.
- **Budget the attacker.** Report ASR as a function of attempts (ASR@1/@10/@100) and the attacker model;
  never a bare success rate.
- **Independent verification only.** A finding is "proven" iff out-of-band evidence shows it; otherwise
  it is "suspected" and labeled as such.
- **Everything client-side + audited.** The harness drives the campaign; the gateway grounds (attack
  surface, corpus), verifies (canary/egress), and records every action.

## Integration

- **Composes:** `offensive-token` (the privileged gate), `recon`, `attack-planner`, `behavioral-redteam`
  (attacker/defender/judge), `exploit-chain`, `attacker-model`, `canary-testing`, `pentest-report`,
  `remediation`/`prompt-hardening` (the fix), `engagement` + `knowledge-recall` + `memory-capture`.
- **Run via:** `playbooks/pentest.yaml` (full engagement) · `playbooks/pentest-pr-gate.yaml` (scoped,
  gates a change).
- **Doctrine:** see [`docs/OFFENSIVE_SECURITY.md`](../../docs/OFFENSIVE_SECURITY.md).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.