audit-context-building

Build audit-grade execution context via bottom-up orientation and function micro-analysis.

1|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/adamatdevops/forge-works --skill audit-context-building-adamatdevops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-context-building
Source: https://github.com/adamatdevops/forge-works/tree/main/.skills/trailofbits/audit-context-building
Command: npx skills add https://github.com/adamatdevops/forge-works --skill audit-context-building-adamatdevops

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of missing deep system understanding during security auditing by forcing structured, line-by-line reasoning before any vulnerability hunting begins. It reduces contradictions and hallucinations by keeping assumptions explicit and continuously updated against the evidence in the codebase.

Core Features & Use Cases

  • Ultra-granular pure context building: Perform bottom-up orientation and then micro-analyze every non-trivial function with line/block precision.
  • Continuity across call boundaries: Treat internal calls as internal execution and external calls as adversarial unless code is available.
  • Evidence-first discipline: Maintain invariants, assumptions, and uncertainties with required thresholds and anti-hallucination checks.

Quick Start

Use the audit-context-building skill to build a complete understanding of a repository’s trust boundaries, invariants, and end-to-end workflows from an audit target before attempting any bug or vulnerability discovery.

Frequently Asked Questions about audit-context-building

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a mental model for codebase security auditing?

To build a mental model for codebase security auditing, perform bottom-up orientation and micro-analyze every non-trivial function with line precision before hunting vulnerabilities, ensuring full end-to-end understanding of trust boundaries and dataflow.

What is context building in threat modeling and security reviews?

Context building in threat modeling is the process of mapping invariants, assumptions, and adversarial external interactions before bug discovery. It requires evidence-first discipline to prevent hallucinations and keep assumptions continuously updated against codebase evidence.

How do you track trust boundaries and invariants across external calls?

To track trust boundaries and invariants across external calls, treat internal calls as internal execution and external calls as adversarial unless code is available, propagating execution context continuously across function boundaries.

Why does my security audit miss cross-function dataflow vulnerabilities?

Security audits miss cross-function dataflow vulnerabilities when they skip ultra-granular micro-analysis. You must perform line-by-line reasoning and maintain explicit invariants to understand complex end-to-end workflows before attempting discovery.

Do I need YAML frontmatter to perform structured context building?

Yes, YAML frontmatter-driven activation is required to enforce strict structured output formatting, ensuring that invariants, assumptions, and risk coverage are explicitly documented during the context building process.

When should I use adversarial reasoning in code analysis?

Adversarial reasoning in code analysis should be applied when evaluating external interactions where source code is unavailable, treating these external calls as untrusted to accurately map system trust boundaries and execution context.