offsec-intel-graph

offsec-intel-graph is a skill for Claude Code, Codex from d0gesec/pownie. It costs 32 tokens per session (3,893 once invoked), scanned A, original, MIT.

A Neo4j graph database setup for offensive-security work such as penetration tests, red-team exercises, and security labs. A graph database stores entities and their relationships, while Cypher is the language used to query and update it.

In plain words
What is it for?
Use it to record and query attack knowledge during security engagements, including disproven attack categories, past attempts, and untested relationships.
Why use it?
It keeps targets, attack techniques, credentials, and previous attempts connected in one place. Before trying an attack, it helps check what has already been tried and which approaches were ruled out.

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-intel-graph
Any agent
npx skills add d0gesec/pownie --skill offsec-intel-graph
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-intel-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/d0gesec/pownie/offsec-intel-graph.svg)](https://agentmods.dev/skills/d0gesec/pownie/offsec-intel-graph)
Your own site
<a href="https://agentmods.dev/skills/d0gesec/pownie/offsec-intel-graph"><img src="https://agentmods.dev/badge/skills/d0gesec/pownie/offsec-intel-graph.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,893 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 $0.00032 $0.03893
Opus 5 $0.00016 $0.01946
Sonnet 5 $0.00006 $0.00779
Haiku 4.5 $0.00003 $0.00389

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

Security

Grade A, and why

offsec-intel-graph 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 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (postToolUse/post-exec.sh, preToolUse/pre-exec.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-intel-graph/SKILL.md · 309 lines

How it starts

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

Intel Graph — Neo4j Attack Knowledge Graph

The model writes Cypher directly to Neo4j using the mcp__neo4j__write_cypher and mcp__neo4j__read_cypher MCP tools. The model determines what entities and relationships exist in the data — this is LLM judgment, not scripted extraction.

When to Activate

  • Any offensive security engagement (CTF, pentest, lab, red team)
  • At the start of every attack session
  • After context compaction (recovery read)

Before Any Attack Action (MANDATORY)

Before calling ANY kali MCP tool that targets a service, endpoint, or vulnerability:

  1. Query disproven attack classes — entire categories ruled out:
MATCH (ac:attack_class)-[:ON_TARGET]->(tgt:target {name: $targetName})
WHERE ac.status = 'disproven'
RETURN ac.key, ac.reason, ac.blocked_techniques

If your planned technique falls within a disproven class, STOP. Choose a different class entirely.

  1. Query prior attempts on the target:
MATCH (a:attempt)-[:TRIED_ON]->(target)
WHERE target.addr = $targetIp OR target.key CONTAINS $targetIp
RETURN a.technique, a.tool, a.outcome, a.output_summary, a.error_signature
ORDER BY a.created_at DESC
  1. Query untested edges — credentials or services not yet tried:
MATCH (c:credential)-[r:AUTHENTICATES_TO {status: 'untested'}]->(s:service)
WHERE s.key STARTS WITH $targetIp
RETURN c.key, s.service
  1. Decide: If the attack class is disproven, do NOT try any variant — the entire class is dead. If the same technique already failed and nothing has materially changed, do NOT retry. Choose a different technique or gather new intel first.

  2. After execution, immediately RECORD:

MERGE (a:attempt {key: 'att:<technique>:<tool>@<target_component>'})
SET a.technique = '<technique>', a.tool = '<tool>',
    a.outcome = '<failed|succeeded|partial>',
    a.output_summary = '<1-2 sentence summary>',
    a.error_signature = '<access_denied|timeout|waf_blocked|...>',
    a.created_at = datetime()

Read the full file on GitHub · 309 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 309 lines · 32 tokens per session scan A d848ffc2c4e9

Subscribe to this mod's changes

offsec-intel-graph is a skill published in the GitHub repository d0gesec/pownie (24 stars, last pushed 5mo ago), licensed MIT. It adds 32 tokens to every session and 3,893 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.

Related

Other skills, from other repositories

retrospective

Post-engagement lessons-learned retrospective. Reads the engagement directory, analyzes skill routing decisions, identifies knowledge gaps and missing skills, and produces an actionable improvement report.

blacklanternsecurity/red-run · 37 tokens

<skill-name>

You are helping a penetration tester with . All testing is under explicit written authorization.

blacklanternsecurity/red-run · 40 tokens

Active Directory Attacks

This skill should be used when the user asks about "Active Directory", "Kerberoasting", "AS-REP roasting", "LDAP enumeration", "BloodHound", "DCSync", "Pass-the-Hash", "Golden Ticket", or needs guidance on attacking Windows domain environments.

allsmog/blackbox-claude-plugin · 64 tokens

cacti-exploitation

This skill covers Cacti network monitoring tool exploitation including authenticated RCE via graph templates (CVE-2025-24367), unauthenticated command injection (CVE-2022-46169), and authentication bypass techniques.

allsmog/blackbox-claude-plugin · 53 tokens

Common Exploits

This skill should be used when the user asks about "searchsploit", "CVE exploits", "exploit database", "common vulnerabilities", "reverse shells", "webshells", or needs guidance on exploiting common vulnerabilities and services.

allsmog/blackbox-claude-plugin · 53 tokens

Erlang/OTP Exploitation

This skill should be used when Erlang/OTP services are detected: Port 4369 (EPMD - Erlang Port Mapper Daemon) Erlang SSH (usually port 2222) RabbitMQ, CouchDB, or other Erlang-based services Covers CVE-2025-32433 pre-auth RCE and other Erlang attack vectors.

allsmog/blackbox-claude-plugin · 86 tokens