offsec-debrief

offsec-debrief is a skill for Claude Code, Codex from d0gesec/pownie. It costs 33 tokens per session (1,854 once invoked), scanned A, original, MIT.

A tool for documenting a completed CTF or penetration-testing challenge. A CTF is a security exercise in which participants find vulnerabilities and retrieve hidden proof strings called flags.

In plain words
What is it for?
Use it after a HackTheBox or other CTF challenge, or after an educational penetration test. It creates a structured writeup and records generalized lessons in MEMORY.md.
Why use it?
It prevents important successes and failures from being lost after the challenge. It organizes the attack path, vulnerabilities, flags, and lessons into a reusable writeup.

Skill for Claude CodeCodex

Part of the pownie plugin — 4 skills shipped together

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.

agentmods
npx agentmods add skills/d0gesec/pownie/offsec-debrief
Any agent
npx skills add d0gesec/pownie --skill offsec-debrief
Clone the repo
git clone --depth 1 https://github.com/d0gesec/pownie

Made for: Claude Code, Codex.

Or install pownie, the plugin that ships this one along with the rest of its 4 skills.

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 offsec-debrief

README.md
[![agentmods](https://agentmods.dev/badge/skills/d0gesec/pownie/offsec-debrief.svg)](https://agentmods.dev/skills/d0gesec/pownie/offsec-debrief)
Your own site
<a href="https://agentmods.dev/skills/d0gesec/pownie/offsec-debrief"><img src="https://agentmods.dev/badge/skills/d0gesec/pownie/offsec-debrief.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,854 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00033 $0.01854
Opus 5 $0.00016 $0.00927
Sonnet 5 $0.00007 $0.00371
Haiku 4.5 $0.00003 $0.00185

Measured 5d ago against content hash 459403d64f9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

offsec-debrief 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 5d 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.

skills/offsec-debrief/SKILL.md · 269 lines

How it starts

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

Offsec Debrief & Writeup

Generate a structured writeup documenting the full challenge including both the successful attack path and every failure with structured analysis. Update MEMORY.md with generalized lessons.


Phase 1: Generate the Writeup

When to Use

  • After completing a CTF challenge (HackTheBox, CTF competitions, etc.)
  • When documenting penetration testing exercises
  • For educational walkthroughs of security challenges

Data Collection (First Step)

Before writing anything, reconstruct the attack history from conversation context, workspace files, and any saved notes.

Writeup Structure

1. Header
# [Platform] - [Box Name] Writeup

**Difficulty:** [Easy/Medium/Hard]
**OS:** [Linux/Windows/Other]
**Category:** [Web/PWN/Wireless/Network/etc.]
**Target IP:** [IP Address]
2. Overview
  • Brief challenge description
  • High-level attack path summary
  • Key vulnerabilities exploited
  • Network architecture (if applicable)
3. Flags
| Flag | Value |
|------|-------|
| User | `[hash]` |
| Root | `[hash]` |
4. Attack Chain Summary

Visual representation of the successful path:

1. Initial Access Method → Result
2. Exploitation Step → Outcome
3. Privilege Escalation → Final Goal
5. Failure Track (REQUIRED — The Most Important Section)

This section is where learning happens. Every failed strategy must be documented with enough structure to extract patterns from.

Review all failed approaches from conversation context and workspace notes. For each failure, document:

## Failure Track

### F1: [Short description of what was attempted]
- **Strategy:** What technique/tool/CVE was tried
- **Target component:** What service/port/endpoint was targeted
- **Trigger signal:** What observation led you to try this (version number, error message, open port, etc.)
- **Result:** What actually happened (error messages, no output, wrong response, etc.)
- **Root cause:** Why it failed (wrong CVE for this config, network isolation, wrong layer, etc.)
- **Time spent:** How long before pivoting
- **Stop signal missed?** Was there an early indicator this wouldn't work that was ignored?
- **Rabbit hole type:** [Wrong CVE | Wrong exploitation method | Wrong layer | String filter | Session limitation | Other]
- **Rule for next time:** One-sentence decision rule to avoid this in the future

### F2: [Next failure...]

Read the full file on GitHub · 269 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. 5d ago First seen · 269 lines · 33 tokens per session scan A 459403d64f9a

Subscribe to this mod's changes

offsec-debrief is a skill published in the GitHub repository d0gesec/pownie (24 stars, last pushed 5mo ago), licensed MIT. It adds 33 tokens to every session and 1,854 once invoked, about $0.0002 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-30.