depth-network-surface

depth-network-surface is an agent for Claude Code from PlamenTSV/plamen. It costs 37 tokens per session (2,117 once invoked), scanned A, original, MIT.

A deep security analysis of peer-to-peer networks, remote procedure call endpoints, and transaction pools. It examines how network-facing code handles untrusted requests and messages.

In plain words
What is it for?
Use it to investigate oversized or malformed inputs, pre-authentication crash paths, peer scoring, eclipse attacks, and whether attackers can make defenders do much more work than they do.
Why use it?
It helps uncover denial-of-service attacks, attacks that isolate a node from honest peers, and crashes reachable before a connection is authenticated.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it to investigate oversized or malformed inputs, pre-authentication crash paths, peer scoring, eclipse attacks, and whether attackers can make defenders do much more work than they do.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/plamentsv/plamen/depth-network-surface
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/PlamenTSV/plamen

Made for: Claude Code.

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 depth-network-surface

README.md
[![agentmods](https://agentmods.dev/badge/agents/plamentsv/plamen/depth-network-surface/github.svg)](https://agentmods.dev/agents/plamentsv/plamen/depth-network-surface)
Your own site
<a href="https://agentmods.dev/agents/plamentsv/plamen/depth-network-surface"><img src="https://agentmods.dev/badge/agents/plamentsv/plamen/depth-network-surface/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 depth-network-surface

Your own site · 80×15
<a href="https://agentmods.dev/agents/plamentsv/plamen/depth-network-surface"><img src="https://agentmods.dev/badge/agents/plamentsv/plamen/depth-network-surface.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,117 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.00037 $0.02117
Opus 5.5 $0.00015 $0.00847
Sonnet 5.5 $0.00007 $0.00423
Haiku 4.5 $0.00004 $0.00212

Measured 3mo ago against content hash 84c61c623961, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

depth-network-surface 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 3mo 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.

agents/depth-network-surface.md · 202 lines

How it starts

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

Depth Agent: Network Surface Analysis (L1 mode)

You are a depth agent specialized in L1 network-facing attack surfaces. You receive targets flagged by breadth agents in the p2p / RPC / mempool layers and perform deep analysis of DoS vectors, eclipse susceptibility, and pre-authentication panic paths.

Mandatory Analysis Checks

Before ANY verdict:

  1. Devil's Advocate: Answer "What crafted input breaks this?" (never "nothing"). Include: oversized, undersized, malformed, boundary (0, 1, MAX), timing (duplicate, stale, future).
  2. Pre-Auth Check: Is the code reachable BEFORE authentication/handshake completes? If yes, any panic path is a single-packet node-kill primitive. This is the NEAR Ping of Death class — see p2p-dos-and-eclipse/SKILL.md Section 2f.
  3. Asymmetric Cost: For every admission check or message handler, quantify attacker_cost : defender_work_ratio. Ratios favoring the attacker are findings. This is the DETER class — see mempool-asymmetric-dos/SKILL.md Section 1.
  4. Cross-Domain Dependencies: Identify 2-3 assumptions outside network layer (e.g., crypto validity, state consistency, peer identity). Tag as [CROSS-DOMAIN-DEP: {domain}].
  5. Evidence Quality: Tag evidence [FUZZ-PASS], [LSP-TRACE], [CODE-TRACE]. [CODE-TRACE] caps at CONTESTED.

Reference: ~/.claude/prompts/l1/generic-security-rules.md if present.

Your Role

You receive SPECIFIC TARGETS from the breadth pass — network-facing functions, decoders, handlers, or peer-state code. Your job is to deeply analyze the attack surface for DoS, eclipse, and single-packet-kill vectors.

Required Primitives

Read {scratchpad}/primitive_status.md. You MUST use:

  • SCIP semantic index via scip_reader.py for call-hierarchy traversal (find_references, list_symbols_in_file)
  • ast-grep for pattern sweeps (.unwrap(), .expect(), panic paths, unchecked index)
  • Opengrep hit list at {scratchpad}/opengrep_hits.json

If a primitive is unavailable, note [PRIMITIVE:FALLBACK] in your finding.

Read the full file on GitHub · 202 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. 3mo ago First seen · 202 lines · 37 tokens per session scan A 84c61c623961

Subscribe to this mod's changes

depth-network-surface is an agent published in the GitHub repository PlamenTSV/plamen (320 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 2,117 once invoked, about $0.0001 per session on Opus 5.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

depth-network-surface compared with agents from other repositories

depth-network-surface next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
depth-network-surfacePlamenTSV/plamenAgent3202mo agoMITA37Claude Code
contract-auditorChainGPT-org/chaingpt-claude-skillAgent74d agoMITA51Claude Code
attackeromermaksutii/RugProofAgent134mo agoMITA45Claude Code
code-qualityBekbolotM/repo-doctorAgent14mo agoMITA28Claude Code
securityBekbolotM/repo-doctorAgent14mo agoMITA28Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code