Skip to content
SkillModel-led1,446 tokens in use

dwarf-expert

Parses, searches and verifies DWARF debug information with dwarfdump and readelf, and helps write code that reads it.

8,319 stars on the repository CC-BY-SA-4.0trailofbits/skills · plugins/dwarf-expert/skills/dwarf-expert
/plugin marketplace add trailofbits/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing dwarf-expert costs

89tokens idle
1,446tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldeclarednetworkdeclaredwrites filesdeclared

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter12/15
  • Structure19/25
  • Examples0/15
  • Output15/15
  • Size15/15
  • Resources0/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance52
  • Community64
  • Maturity32
  • Momentum40

DWARF Expert gives the agent working knowledge of DWARF debug info in compiled binaries. It covers dumping and searching DIE trees with llvm-dwarfdump, checking integrity with the verifier, answering questions about the standard from the official sources, and writing parsers with libraries such as pyelftools, gimli or libdwarf.

It also records pitfalls that trip up DWARF code: optional attributes, abstract-origin indirection, type chains, and the macOS dSYM layout.

What You Get

  • A search strategy for DIEs that escalates from —find and —name to grep filters and Python scripts
  • Verification steps using llvm-dwarfdump —verify and —statistics
  • A table of parsing libraries for C/C++, Python, Rust, Go and .NET
  • A checklist of DWARF parsing pitfalls to handle or look for in review
  • Pointers to the DWARF standard, LLVM sources and libdwarf as authoritative references

Common Use Cases

  • Finding every function parameter of a given type in a binary
  • Checking that a compiler or binary rewriter produced valid debug info
  • Writing a Python script that walks DIEs to extract struct layouts
  • Working out why a binary carries an old DWARF version

What Makes It Unique

The skill stays narrow: DWARF sections only, with runtime debugging and wider reverse engineering left to other tools. It spells out tool differences, such as libdwarf and LLVM dwarfdump having different options and macOS binaries keeping DWARF in dSYM bundles, and it sends the agent to the specification and LLVM sources whenever a standard detail needs to be exact.

Under The Hood

The skill is prose with no scripts. It lets the agent run shell commands such as llvm-dwarfdump, readelf, dsymutil and grep pipelines on binaries you point it at, read and write files for one-off scripts, and search the web and fetch pages from dwarfstd.org and library repositories to check the standard.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers