Community연구 & 데이터 분석github.com

trailofbits/audit-context-building

취약점이나 버그를 찾기 전에 코드를 한 줄 한 줄 분석하여 심층적인 아키텍처 컨텍스트를 구축할 수 있도록 합니다.

audit-context-building란 무엇인가요?

이 스킬은 AI 에이전트(예: Claude Code, Cursor 등)가 대규모 코드베이스를 감사할 때 코드의 미세한 부분까지 철저히 분석하여 전체적인 아키텍처 이해도를 높이기 위해 설계되었습니다. 보안 취약점이나 버그를 찾기 전에 코드의 각 라인을 면밀히 검토함으로써 컨텍스트를 구축하는 데 중점을 둡니다. 이 스킬은 주로 보안 감사, 코드 리뷰, 복잡한 시스템 분석 시나리오에서 유용하며, 개발자는 이를 통해 AI가 코드베이스의 논리적 흐름과 데이터 의존성을 깊이 이해하도록 지시할 수 있습니다. AI는 주어진 파일들을 순차적으로 탐색하며, 각 모듈의 역할과 인터페이스를 기록하고, 이후 발견된 취약점과의 연관성을 분석합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/trailofbits/skills/tree/main/skills/audit-context-building

Installed? Explore more 연구 & 데이터 분석 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

audit-context-building은(는) 무엇을 하나요?

취약점이나 버그를 찾기 전에 코드를 한 줄 한 줄 분석하여 심층적인 아키텍처 컨텍스트를 구축할 수 있도록 합니다.

개요

이 기술은 AI 에이전트가 대규모 코드베이스에 대한 보안 감사 또는 심층 분석을 수행할 때, 코드의 각 부분을 세부적으로 이해할 수 있도록 지시합니다. 주로 audit 또는 review 맥락에서 사용되며, LLM 에이전트(예: Claude Code, Cursor, Copilot 등)가 코드를 라인 단위로 분석하여 전체 시스템 아키텍처에 대한 정확한 멘탈 모델을 형성하도록 돕습니다.

주요 기능

  • 초정밀 분석: 코드의 모든 라인과 표현식을 검사하여 미묘한 논리적 오류나 보안 취약점을 사전에 파악합니다.
  • 컨텍스트 구축: 분석 중인 파일뿐만 아니라 관련된 전체 모듈 간의 의존성과 데이터 흐름을 추적합니다.
  • 버그 사전 발견: 취약점이 발견되기 전에 코드베이스의 설계 결정과 잠재적 위험을 문서화합니다.

지원 플랫폼

  • Claude Code
  • Cursor
  • Codex CLI
  • 기타 LLM 기반 코드 분석 도구

사용 방법

  1. 분석할 코드베이스의 루트 디렉토리에서 AI 에이전트를 실행합니다.
  2. audit-context-building 스킬을 활성화합니다.
  3. AI가 각 파일을 열고, 주요 함수, 클래스, 데이터 구조를 식별하며, 주석과 코드 스타일을 분석합니다.
  4. 분석 결과는 마크다운 형식의 보고서로 출력되며, 각 모듈의 요약과 발견된 패턴이 포함됩니다.

예시

# Claude Code에서 스킬 활성화
claude --skill trailofbits/audit-context-building

참고 사항

  • 이 스킬은 analysis 및 security 태그와 함께 사용하는 것이 좋습니다.
  • 분석할 파일이 많은 경우 시간이 오래 걸릴 수 있으므로, 특정 디렉토리나 중요 파일에 집중하는 것을 권장합니다.
  • 출력 결과는 추가 취약점 분석을 위한 입력으로 사용될 수 있습니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

trailofbits/address-sanitizer

AddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.

trailofbits/aflpp

AFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C/C++ projects.

trailofbits/agentic-actions-auditor

Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches AI agents running in CI/CD pipelines, including env var intermediary patterns, direct expression injection, dangerous sandbox configurations, and wildcard user allowlists. Use when reviewing workflow files that invoke AI coding agents, auditing CI/CD pipeline security for prompt injection risks, or evaluating agentic action configurations.

trailofbits/algorand-vulnerability-scanner

Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees, missing field validations, and access control issues. Use when auditing Algorand projects (TEAL/PyTeal).

trailofbits/ask-questions-if-underspecified

Clarify requirements before implementing. Use when serious doubts arise.

trailofbits/atheris

Atheris is a coverage-guided Python fuzzer based on libFuzzer. Use for fuzzing pure Python code and Python C extensions.

trailofbits/audit-augmentation

Augments Trailmark code graphs with external audit findings from SARIF static analysis results and weAudit annotation files. Maps findings to graph nodes by file and line overlap, creates severity-based subgraphs, and enables cross-referencing findings with pre-analysis data (blast radius, taint, etc.). Use when projecting SARIF results onto a code graph, overlaying weAudit annotations, cross-referencing Semgrep or CodeQL findings with call graph data, or visualizing audit findings in the context of code structure.

trailofbits/audit-prep-assistant

Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments).

trailofbits/burpsuite-project-parser

Searches and explores Burp Suite project files (.burp) from the command line. Use when searching response headers or bodies with regex patterns, extracting security audit findings, dumping proxy history or site map data, or analyzing HTTP traffic captured in a Burp project.

trailofbits/cairo-vulnerability-scanner

Scans Cairo/StarkNet smart contracts for 6 critical vulnerabilities including felt252 arithmetic overflow, L1-L2 messaging issues, address conversion problems, and signature replay. Use when auditing StarkNet projects.

trailofbits/cargo-fuzz

cargo-fuzz is the de facto fuzzing tool for Rust projects using Cargo. Use for fuzzing Rust code with libFuzzer backend.

trailofbits/chrome-mcp-troubleshooting

Diagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return "Browser extension is not connected", or behave erratically.

trailofbits/claude-in-chrome-troubleshooting

Diagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return "Browser extension is not connected", or behave erratically.

trailofbits/code-improver

Runs an autonomous review-and-fix improvement loop over any code target — a skill, plugin, module, or directory — using a reviewer the user names: any installed skill or agent. Keeps a cross-round findings ledger, escalates when fixes stop converging, and guards scope mechanically. Use when asked to 'improve this code until review passes', 'run an improvement loop with <reviewer>', or to iterate review-and-fix with a specific reviewer. For skills prefer the skill-improver entry; for a branch prefer pr-improver.

trailofbits/code-maturity-assessor

Systematic code maturity assessment using Trail of Bits' 9-category framework. Analyzes codebase for arithmetic safety, auditing practices, access controls, complexity, decentralization, documentation, MEV risks, low-level code, and testing. Produces professional scorecard with evidence-based ratings and actionable recommendations.

trailofbits/codeql

Scans a codebase for security vulnerabilities using CodeQL's interprocedural data flow and taint tracking analysis. Triggers on "run codeql", "codeql scan", "codeql analysis", "build codeql database", or "find vulnerabilities with codeql". Supports "run all" (security-and-quality + security-experimental suites) and "important only" (high-precision security findings) scan modes. Also handles creating data extension models and processing CodeQL SARIF output.

trailofbits/constant-time-analysis

Detects timing side-channel vulnerabilities in cryptographic code. Use when implementing or reviewing crypto code, encountering division on secrets, secret-dependent branches, or constant-time programming questions in C, C++, Go, Rust, Swift, Java, Kotlin, C#, PHP, JavaScript, TypeScript, Python, or Ruby.

trailofbits/constant-time-testing

Constant-time testing detects timing side channels in cryptographic code. Use when auditing crypto implementations for timing vulnerabilities.

trailofbits/cosmos-vulnerability-scanner

Scans Cosmos SDK blockchain modules and CosmWasm contracts for consensus-critical vulnerabilities — chain halts, fund loss, state divergence. 25 core + 16 IBC + 10 EVM + 3 CosmWasm patterns. Use when auditing custom x/ modules, reviewing IBC integrations, or assessing pre-launch chain security. Updated for SDK v0.53.x.

trailofbits/coverage-analysis

Coverage analysis measures code exercised during fuzzing. Use when assessing harness effectiveness or identifying fuzzing blockers.

관련 스킬