[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CH6QFC74XVEK2SJ9C2H615":3,"skill-same:01M7CH6QFC74XVEK2SJ9C2H615":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CH6QFC74XVEK2SJ9C2H615","burpsuite-project-parser",null,"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.","bongkage\u002Ftrailofbits-skills","bongkage","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F101378796?v=4","01M7CH419QTJ16DNJ33P0WCWBE","01M7CH41A9NWK8D2JBRK9F0M2C",1,"CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fburpsuite-project-parser\u002Fskills\u002Fburpsuite-project-parser\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: burpsuite-project-parser\ndescription: 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.\nallowed-tools: Bash Read\n---\n\n# Burp Project Parser\n\nSearch and extract data from Burp Suite project files using the burpsuite-project-file-parser extension.\n\n## When to Use\n\n- Searching response headers or bodies with regex patterns\n- Extracting security audit findings from Burp projects\n- Dumping proxy history or site map data\n- Analyzing HTTP traffic captured in a Burp project file\n\n## Prerequisites\n\nThis skill **delegates parsing to Burp Suite Professional** - it does not parse .burp files directly.\n\n**Required:**\n1. **Burp Suite Professional** - Must be installed ([portswigger.net](https:\u002F\u002Fportswigger.net\u002Fburp\u002Fpro))\n2. **burpsuite-project-file-parser extension** - Provides CLI functionality\n\n**Install the extension:**\n1. Download from [github.com\u002FBuffaloWill\u002Fburpsuite-project-file-parser](https:\u002F\u002Fgithub.com\u002FBuffaloWill\u002Fburpsuite-project-file-parser)\n2. In Burp Suite: Extender → Extensions → Add\n3. Select the downloaded JAR file\n\n## Quick Reference\n\nUse the wrapper script:\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh \u002Fpath\u002Fto\u002Fproject.burp [FLAGS]\n```\n\nThe script uses environment variables for platform compatibility:\n- `BURP_JAVA`: Path to Java executable\n- `BURP_JAR`: Path to burpsuite_pro.jar\n\n**Check the exit code. Empty output is not a clean result.** Burp ignores flags it does not recognise, so\nwithout the parser extension it starts normally and drops the query — which looks exactly like a search that\nmatched nothing.\n\n| Exit | Meaning | What to do |\n|------|---------|------------|\n| 0 | Output produced | Proceed |\n| 1 | Bad usage, or a missing file, Java or JAR | Read the message; fix the path |\n| 3 | No output at all | **Do not report this as \"nothing found\".** An empty result set and an unloaded extension are indistinguishable from here. Run the control query below to tell them apart |\n| 4 | Output was not JSON | The extension is not loaded and Burp ignored the flags. Install it before trusting any result |\n\nAnything other than 0 means the search result is unverified, and saying \"no matching traffic\" on the strength\nof it is a false negative reported as a clean finding.\n\n### Resolving Exit 3: the control query\n\nExit 3 is the common case — most narrowly-scoped regexes legitimately match nothing — so it needs a resolution\nyou can carry out yourself. You have `Bash` and `Read`; Burp runs headless here, so there is no Extensions tab\nto open and no GUI to inspect. Re-running the same query just returns 3 again.\n\nRun a **control query** instead: a selector broad enough that it must return rows if the parser is working at\nall, against the same project file. Use the sub-component filter, not the bare selector — a control is still a\nquery, and the rules above apply to it unchanged.\n\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.request.headers | head -c 2000\n```\n\n`proxyHistory.request.headers` is the right control precisely because it is broad but bounded: it covers every\nrecord in the project, at under 1KB each. Bare `proxyHistory` would answer the same question and is banned\nabove for a reason — one record with bodies can be megabytes, and `head -n 1` does not stop that, it delivers\nexactly one of them in full.\n\n| Control result | What it means | What to do |\n|---|---|---|\n| Rows on stdout | The parser works | Your narrower query genuinely matched nothing. Report that as a result |\n| Exit 3 again | Nothing comes back at all | Either the extension is not loaded, or this project holds no proxy history. Check you named the right project file and that it is non-empty, then ask the user to confirm `burpsuite-project-file-parser` under Burp Suite → Extensions |\n| Exit 4 | Burp started and dropped the flags | The extension is not loaded. Say so; do not report on traffic |\n\n**Run the control before concluding anything about the project's traffic.** Assuming the extension is loaded is\nexactly how an unverified empty result becomes a clean bill of health — and asking the user to check the GUI is\na legitimate answer where the control is inconclusive. Guessing is not.\n\n**Through a pipe the exit code is not yours to read.** A pipeline reports the status of its *last* command, and\nnearly every example here ends in `| jq`, `| head` or `| wc -cl` — so `$?` is `head`'s 0, not the script's 3.\nTwo reliable signals:\n\n- **stderr**, which reaches you regardless of piping. `Error: the parser produced no output.` or\n  `Error: Burp produced output, but not one JSON object` is the answer; no such block means the run was fine.\n- **`set -o pipefail`** when you want the code itself, or read `${PIPESTATUS[0]}`:\n\n```bash\nset -o pipefail\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | jq -c 'select(.severity == \"High\")'\necho \"exit: $?\"\n```\n\nNon-JSON output never reaches stdout, so a downstream `grep` or `jq` cannot match a Burp startup banner and\nmistake it for data.\n\nSee [Platform Configuration](#platform-configuration) for setup instructions.\n\n## Sub-Component Filters (USE THESE)\n\n**ALWAYS use sub-component filters instead of full dumps.** Full `proxyHistory` or `siteMap` can return gigabytes of data. Sub-component filters return only what you need.\n\n### Available Filters\n\n| Filter | Returns | Typical Size |\n|--------|---------|--------------|\n| `proxyHistory.request.headers` | Request line + headers only | Small (\u003C 1KB\u002Frecord) |\n| `proxyHistory.request.body` | Request body only | Variable |\n| `proxyHistory.response.headers` | Status + headers only | Small (\u003C 1KB\u002Frecord) |\n| `proxyHistory.response.body` | Response body only | **LARGE - avoid** |\n| `siteMap.request.headers` | Same as above for site map | Small |\n| `siteMap.request.body` | | Variable |\n| `siteMap.response.headers` | | Small |\n| `siteMap.response.body` | | **LARGE - avoid** |\n\n### Default Approach\n\n**Start with headers, not bodies:**\n\n```bash\n# GOOD - headers only, safe to retrieve\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.request.headers | head -c 50000\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.response.headers | head -c 50000\n\n# BAD - full records include bodies, can be gigabytes\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory  # NEVER DO THIS\n```\n\n**Only fetch bodies for specific URLs after reviewing headers, and ALWAYS truncate:**\n\n```bash\n# 1. First, find interesting URLs from headers\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.response.headers | \\\n  jq -r 'select(.headers | test(\"text\u002Fhtml\")) | .url' | head -n 20\n\n# 2. Then search bodies with targeted regex - MUST truncate body to 1000 chars\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='.*specific-pattern.*'\" | \\\n  head -n 10 | jq -c '.body = (.body[:1000] + \"...[TRUNCATED]\")'\n```\n\n**HARD RULE: Body content > 1000 chars must NEVER enter context.** If the user needs full body content, they must view it in Burp Suite's UI.\n\n## Regex Search Operations\n\n### Search Response Headers\n```bash\nresponseHeader='.*regex.*'\n```\nSearches all response headers. Output: `{\"url\":\"...\", \"header\":\"...\"}`\n\nExample - find server signatures:\n```bash\nresponseHeader='.*(nginx|Apache|Servlet).*' | head -c 50000\n```\n\n### Search Response Bodies\n```bash\nresponseBody='.*regex.*'\n```\n**MANDATORY: Always truncate body content to 1000 chars max.** Response bodies can be megabytes each.\n\n```bash\n# REQUIRED format - always truncate .body field\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='.*\u003Cform.*action.*'\" | \\\n  head -n 10 | jq -c '.body = (.body[:1000] + \"...[TRUNCATED]\")'\n```\n\n**Never retrieve full body content.** If you need to see more of a specific response, ask the user to open it in Burp Suite's UI.\n\n## Other Operations\n\n### Extract Audit Items\n```bash\nauditItems\n```\nReturns all security findings. Output includes: name, severity, confidence, host, port, protocol, url.\n\n**Note:** Audit items are small (no bodies) - safe to retrieve with `head -n 100`.\n\n### Dump Proxy History (AVOID)\n```bash\nproxyHistory\n```\n**NEVER use this directly.** Use sub-component filters instead:\n- `proxyHistory.request.headers`\n- `proxyHistory.response.headers`\n\n### Dump Site Map (AVOID)\n```bash\nsiteMap\n```\n**NEVER use this directly.** Use sub-component filters instead.\n\n## Output Limits (REQUIRED)\n\n**CRITICAL: Always check result size BEFORE retrieving data.** A broad search can return thousands of records, each potentially megabytes. This will overflow the context window.\n\n### Step 1: Always Check Size First\n\nBefore any search, check BOTH record count AND byte size:\n\n```bash\n# Check record count AND total bytes - never skip this step\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory | wc -cl\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseHeader='.*Server.*'\" | wc -cl\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | wc -cl\n```\n\nThe `wc -cl` output shows: `\u003Cbytes> \u003Clines>` (e.g., `524288 42` means 512KB across 42 records).\n\n**Interpret the results - BOTH must pass:**\n\n| Metric | Safe | Narrow search | Too broad | STOP |\n|--------|------|---------------|-----------|------|\n| **Lines** | \u003C 50 | 50-200 | 200+ | 1000+ |\n| **Bytes** | \u003C 50KB | 50-200KB | 200KB+ | 1MB+ |\n\n**A single 10MB response on one line will show high byte count but only 1 line - the byte check catches this.**\n\n`0 0` from `wc -cl` is not a size to act on — the script exited 3 and nothing was verified. Piping hides that,\nso re-run the query on its own and read the exit code before concluding the project holds no matching traffic.\n\n### Step 2: Refine Broad Searches\n\nIf count\u002Fsize is too high:\n\n1. **Use sub-component filters** (see table above):\n   ```bash\n   # Instead of: proxyHistory (gigabytes)\n   # Use: proxyHistory.request.headers (kilobytes)\n   ```\n\n2. **Narrow regex patterns:**\n   ```bash\n   # Too broad (matches everything):\n   responseHeader='.*'\n\n   # Better - target specific headers:\n   responseHeader='.*X-Frame-Options.*'\n   responseHeader='.*Content-Security-Policy.*'\n   ```\n\n3. **Filter with jq before retrieving:**\n   ```bash\n   # Get only specific content types\n   {baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.response.headers | \\\n     jq -c 'select(.url | test(\"\u002Fapi\u002F\"))' | head -n 50\n   ```\n\n### Step 3: Always Truncate Output\n\nEven after narrowing, always pipe through truncation:\n\n```bash\n# ALWAYS use head -c to limit total bytes (max 50KB)\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.request.headers | head -c 50000\n\n# For body searches, truncate each JSON object's body field:\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='pattern'\" | \\\n  head -n 20 | jq -c '.body = (.body | if length > 1000 then .[:1000] + \"...[TRUNCATED]\" else . end)'\n\n# Limit both record count AND byte size:\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | head -n 50 | head -c 50000\n```\n\n**Hard limits to enforce:**\n- `head -c 50000` (50KB max) on ALL output\n- **Truncate `.body` fields to 1000 chars - MANDATORY, no exceptions**\n  ```bash\n  jq -c '.body = (.body[:1000] + \"...[TRUNCATED]\")'\n  ```\n\n**Never run these without counting first AND truncating:**\n- `proxyHistory` \u002F `siteMap` (full dumps - always use sub-component filters)\n- `responseBody='...'` searches (bodies can be megabytes each)\n- Any broad regex like `.*` or `.+`\n\n## Investigation Workflow\n\n1. **Identify scope** - What are you looking for? (specific vuln type, endpoint, header pattern)\n\n2. **Search audit items first** - Start with Burp's findings:\n   ```bash\n   {baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | jq 'select(.severity == \"High\")'\n   ```\n\n3. **Check confidence scores** - Filter for actionable findings:\n   ```bash\n   ... | jq 'select(.confidence == \"Certain\" or .confidence == \"Firm\")'\n   ```\n\n4. **Extract affected URLs** - Get the attack surface:\n   ```bash\n   ... | jq -r '.url' | sort -u\n   ```\n\n5. **Search raw traffic for context** - Examine actual requests\u002Fresponses:\n   ```bash\n   {baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='pattern'\"\n   ```\n\n6. **Validate manually** - Burp findings are indicators, not proof. Verify each one.\n\n## Understanding Results\n\n### Severity vs Confidence\n\nBurp reports both **severity** (High\u002FMedium\u002FLow) and **confidence** (Certain\u002FFirm\u002FTentative). Use both when triaging:\n\n| Combination | Meaning |\n|-------------|---------|\n| High + Certain | Likely real vulnerability, prioritize investigation |\n| High + Tentative | Often a false positive, verify before reporting |\n| Medium + Firm | Worth investigating, may need manual validation |\n\nA \"High severity, Tentative confidence\" finding is frequently a false positive. Don't report findings based on severity alone.\n\n### When Proxy History is Incomplete\n\nProxy history only contains what Burp captured. It may be missing traffic due to:\n- **Scope filters** excluding domains\n- **Intercept settings** dropping requests\n- **Browser traffic** not routed through Burp proxy\n\nIf you don't find expected traffic, check Burp's scope and proxy settings in the original project.\n\n### HTTP Body Encoding\n\nResponse bodies may be gzip compressed, chunked, or use non-UTF8 encoding. Regex patterns that work on plaintext may silently fail on encoded responses. If searches return fewer results than expected:\n- Check if responses are compressed\n- Try broader patterns or search headers first\n- Use Burp's UI to inspect raw vs rendered response\n\n## Rationalizations to Reject\n\nCommon shortcuts that lead to missed vulnerabilities or false reports:\n\n| Shortcut | Why It's Wrong |\n|----------|----------------|\n| \"This regex looks good\" | Verify on sample data first—encoding and escaping cause silent failures |\n| \"High severity = must fix\" | Check confidence score too; Burp has false positives |\n| \"All audit items are relevant\" | Filter by actual threat model; not every finding matters for every app |\n| \"Proxy history is complete\" | May be filtered by Burp scope\u002Fintercept settings; you see only what Burp captured |\n| \"Burp found it, so it's a vuln\" | Burp findings require manual verification—they indicate potential issues, not proof |\n| \"The search returned nothing, so the traffic isn't there\" | Check the exit code first. Exit 3 means the script could not tell an empty result from an unloaded extension, and exit 4 means the query never ran. Only a 0 makes \"nothing found\" a statement about the project rather than about the tooling |\n\n## Output Format\n\nAll output is JSON, one object per line. Pipe to `jq` for formatting:\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | jq .\n```\n\nFilter with grep:\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | grep -i \"sql injection\"\n```\n\n## Examples\n\nSearch for CORS headers (with byte limit):\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseHeader='.*Access-Control.*'\" | head -c 50000\n```\n\nGet all high-severity findings (audit items are small, but still limit):\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | jq -c 'select(.severity == \"High\")' | head -n 100\n```\n\nExtract just request URLs from proxy history:\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.request.headers | jq -r '.request.url' | head -n 200\n```\n\nSearch response bodies (MUST truncate body to 1000 chars):\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='.*password.*'\" | \\\n  head -n 10 | jq -c '.body = (.body[:1000] + \"...[TRUNCATED]\")'\n```\n\n## Platform Configuration\n\nThe wrapper script requires two environment variables to locate Burp Suite's bundled Java and JAR file.\n\n### macOS\n\n```bash\nexport BURP_JAVA=\"\u002FApplications\u002FBurp Suite Professional.app\u002FContents\u002FResources\u002Fjre.bundle\u002FContents\u002FHome\u002Fbin\u002Fjava\"\nexport BURP_JAR=\"\u002FApplications\u002FBurp Suite Professional.app\u002FContents\u002FResources\u002Fapp\u002Fburpsuite_pro.jar\"\n```\n\n### Windows\n\n```powershell\n$env:BURP_JAVA = \"C:\\Program Files\\BurpSuiteProfessional\\jre\\bin\\java.exe\"\n$env:BURP_JAR = \"C:\\Program Files\\BurpSuiteProfessional\\burpsuite_pro.jar\"\n```\n\n### Linux\n\n```bash\nexport BURP_JAVA=\"\u002Fopt\u002FBurpSuiteProfessional\u002Fjre\u002Fbin\u002Fjava\"\nexport BURP_JAR=\"\u002Fopt\u002FBurpSuiteProfessional\u002Fburpsuite_pro.jar\"\n```\n\nAdd these exports to your shell profile (`.bashrc`, `.zshrc`, etc.) for persistence.\n\n### Manual Invocation\n\nIf not using the wrapper script, invoke directly:\n```bash\n\"$BURP_JAVA\" -jar -Djava.awt.headless=true \"$BURP_JAR\" \\\n  --project-file=\u002Fpath\u002Fto\u002Fproject.burp [FLAGS]\n```\n","# Burp Project Parser\n\nSearch and extract data from Burp Suite project files using the burpsuite-project-file-parser extension.\n\n## When to Use\n\n- Searching response headers or bodies with regex patterns\n- Extracting security audit findings from Burp projects\n- Dumping proxy history or site map data\n- Analyzing HTTP traffic captured in a Burp project file\n\n## Prerequisites\n\nThis skill **delegates parsing to Burp Suite Professional** - it does not parse .burp files directly.\n\n**Required:**\n1. **Burp Suite Professional** - Must be installed ([portswigger.net](https:\u002F\u002Fportswigger.net\u002Fburp\u002Fpro))\n2. **burpsuite-project-file-parser extension** - Provides CLI functionality\n\n**Install the extension:**\n1. Download from [github.com\u002FBuffaloWill\u002Fburpsuite-project-file-parser](https:\u002F\u002Fgithub.com\u002FBuffaloWill\u002Fburpsuite-project-file-parser)\n2. In Burp Suite: Extender → Extensions → Add\n3. Select the downloaded JAR file\n\n## Quick Reference\n\nUse the wrapper script:\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh \u002Fpath\u002Fto\u002Fproject.burp [FLAGS]\n```\n\nThe script uses environment variables for platform compatibility:\n- `BURP_JAVA`: Path to Java executable\n- `BURP_JAR`: Path to burpsuite_pro.jar\n\n**Check the exit code. Empty output is not a clean result.** Burp ignores flags it does not recognise, so\nwithout the parser extension it starts normally and drops the query — which looks exactly like a search that\nmatched nothing.\n\n| Exit | Meaning | What to do |\n|------|---------|------------|\n| 0 | Output produced | Proceed |\n| 1 | Bad usage, or a missing file, Java or JAR | Read the message; fix the path |\n| 3 | No output at all | **Do not report this as \"nothing found\".** An empty result set and an unloaded extension are indistinguishable from here. Run the control query below to tell them apart |\n| 4 | Output was not JSON | The extension is not loaded and Burp ignored the flags. Install it before trusting any result |\n\nAnything other than 0 means the search result is unverified, and saying \"no matching traffic\" on the strength\nof it is a false negative reported as a clean finding.\n\n### Resolving Exit 3: the control query\n\nExit 3 is the common case — most narrowly-scoped regexes legitimately match nothing — so it needs a resolution\nyou can carry out yourself. You have `Bash` and `Read`; Burp runs headless here, so there is no Extensions tab\nto open and no GUI to inspect. Re-running the same query just returns 3 again.\n\nRun a **control query** instead: a selector broad enough that it must return rows if the parser is working at\nall, against the same project file. Use the sub-component filter, not the bare selector — a control is still a\nquery, and the rules above apply to it unchanged.\n\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.request.headers | head -c 2000\n```\n\n`proxyHistory.request.headers` is the right control precisely because it is broad but bounded: it covers every\nrecord in the project, at under 1KB each. Bare `proxyHistory` would answer the same question and is banned\nabove for a reason — one record with bodies can be megabytes, and `head -n 1` does not stop that, it delivers\nexactly one of them in full.\n\n| Control result | What it means | What to do |\n|---|---|---|\n| Rows on stdout | The parser works | Your narrower query genuinely matched nothing. Report that as a result |\n| Exit 3 again | Nothing comes back at all | Either the extension is not loaded, or this project holds no proxy history. Check you named the right project file and that it is non-empty, then ask the user to confirm `burpsuite-project-file-parser` under Burp Suite → Extensions |\n| Exit 4 | Burp started and dropped the flags | The extension is not loaded. Say so; do not report on traffic |\n\n**Run the control before concluding anything about the project's traffic.** Assuming the extension is loaded is\nexactly how an unverified empty result becomes a clean bill of health — and asking the user to check the GUI is\na legitimate answer where the control is inconclusive. Guessing is not.\n\n**Through a pipe the exit code is not yours to read.** A pipeline reports the status of its *last* command, and\nnearly every example here ends in `| jq`, `| head` or `| wc -cl` — so `$?` is `head`'s 0, not the script's 3.\nTwo reliable signals:\n\n- **stderr**, which reaches you regardless of piping. `Error: the parser produced no output.` or\n  `Error: Burp produced output, but not one JSON object` is the answer; no such block means the run was fine.\n- **`set -o pipefail`** when you want the code itself, or read `${PIPESTATUS[0]}`:\n\n```bash\nset -o pipefail\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | jq -c 'select(.severity == \"High\")'\necho \"exit: $?\"\n```\n\nNon-JSON output never reaches stdout, so a downstream `grep` or `jq` cannot match a Burp startup banner and\nmistake it for data.\n\nSee [Platform Configuration](#platform-configuration) for setup instructions.\n\n## Sub-Component Filters (USE THESE)\n\n**ALWAYS use sub-component filters instead of full dumps.** Full `proxyHistory` or `siteMap` can return gigabytes of data. Sub-component filters return only what you need.\n\n### Available Filters\n\n| Filter | Returns | Typical Size |\n|--------|---------|--------------|\n| `proxyHistory.request.headers` | Request line + headers only | Small (\u003C 1KB\u002Frecord) |\n| `proxyHistory.request.body` | Request body only | Variable |\n| `proxyHistory.response.headers` | Status + headers only | Small (\u003C 1KB\u002Frecord) |\n| `proxyHistory.response.body` | Response body only | **LARGE - avoid** |\n| `siteMap.request.headers` | Same as above for site map | Small |\n| `siteMap.request.body` | | Variable |\n| `siteMap.response.headers` | | Small |\n| `siteMap.response.body` | | **LARGE - avoid** |\n\n### Default Approach\n\n**Start with headers, not bodies:**\n\n```bash\n# GOOD - headers only, safe to retrieve\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.request.headers | head -c 50000\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.response.headers | head -c 50000\n\n# BAD - full records include bodies, can be gigabytes\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory  # NEVER DO THIS\n```\n\n**Only fetch bodies for specific URLs after reviewing headers, and ALWAYS truncate:**\n\n```bash\n# 1. First, find interesting URLs from headers\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.response.headers | \\\n  jq -r 'select(.headers | test(\"text\u002Fhtml\")) | .url' | head -n 20\n\n# 2. Then search bodies with targeted regex - MUST truncate body to 1000 chars\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='.*specific-pattern.*'\" | \\\n  head -n 10 | jq -c '.body = (.body[:1000] + \"...[TRUNCATED]\")'\n```\n\n**HARD RULE: Body content > 1000 chars must NEVER enter context.** If the user needs full body content, they must view it in Burp Suite's UI.\n\n## Regex Search Operations\n\n### Search Response Headers\n```bash\nresponseHeader='.*regex.*'\n```\nSearches all response headers. Output: `{\"url\":\"...\", \"header\":\"...\"}`\n\nExample - find server signatures:\n```bash\nresponseHeader='.*(nginx|Apache|Servlet).*' | head -c 50000\n```\n\n### Search Response Bodies\n```bash\nresponseBody='.*regex.*'\n```\n**MANDATORY: Always truncate body content to 1000 chars max.** Response bodies can be megabytes each.\n\n```bash\n# REQUIRED format - always truncate .body field\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='.*\u003Cform.*action.*'\" | \\\n  head -n 10 | jq -c '.body = (.body[:1000] + \"...[TRUNCATED]\")'\n```\n\n**Never retrieve full body content.** If you need to see more of a specific response, ask the user to open it in Burp Suite's UI.\n\n## Other Operations\n\n### Extract Audit Items\n```bash\nauditItems\n```\nReturns all security findings. Output includes: name, severity, confidence, host, port, protocol, url.\n\n**Note:** Audit items are small (no bodies) - safe to retrieve with `head -n 100`.\n\n### Dump Proxy History (AVOID)\n```bash\nproxyHistory\n```\n**NEVER use this directly.** Use sub-component filters instead:\n- `proxyHistory.request.headers`\n- `proxyHistory.response.headers`\n\n### Dump Site Map (AVOID)\n```bash\nsiteMap\n```\n**NEVER use this directly.** Use sub-component filters instead.\n\n## Output Limits (REQUIRED)\n\n**CRITICAL: Always check result size BEFORE retrieving data.** A broad search can return thousands of records, each potentially megabytes. This will overflow the context window.\n\n### Step 1: Always Check Size First\n\nBefore any search, check BOTH record count AND byte size:\n\n```bash\n# Check record count AND total bytes - never skip this step\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory | wc -cl\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseHeader='.*Server.*'\" | wc -cl\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | wc -cl\n```\n\nThe `wc -cl` output shows: `\u003Cbytes> \u003Clines>` (e.g., `524288 42` means 512KB across 42 records).\n\n**Interpret the results - BOTH must pass:**\n\n| Metric | Safe | Narrow search | Too broad | STOP |\n|--------|------|---------------|-----------|------|\n| **Lines** | \u003C 50 | 50-200 | 200+ | 1000+ |\n| **Bytes** | \u003C 50KB | 50-200KB | 200KB+ | 1MB+ |\n\n**A single 10MB response on one line will show high byte count but only 1 line - the byte check catches this.**\n\n`0 0` from `wc -cl` is not a size to act on — the script exited 3 and nothing was verified. Piping hides that,\nso re-run the query on its own and read the exit code before concluding the project holds no matching traffic.\n\n### Step 2: Refine Broad Searches\n\nIf count\u002Fsize is too high:\n\n1. **Use sub-component filters** (see table above):\n   ```bash\n   # Instead of: proxyHistory (gigabytes)\n   # Use: proxyHistory.request.headers (kilobytes)\n   ```\n\n2. **Narrow regex patterns:**\n   ```bash\n   # Too broad (matches everything):\n   responseHeader='.*'\n\n   # Better - target specific headers:\n   responseHeader='.*X-Frame-Options.*'\n   responseHeader='.*Content-Security-Policy.*'\n   ```\n\n3. **Filter with jq before retrieving:**\n   ```bash\n   # Get only specific content types\n   {baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.response.headers | \\\n     jq -c 'select(.url | test(\"\u002Fapi\u002F\"))' | head -n 50\n   ```\n\n### Step 3: Always Truncate Output\n\nEven after narrowing, always pipe through truncation:\n\n```bash\n# ALWAYS use head -c to limit total bytes (max 50KB)\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.request.headers | head -c 50000\n\n# For body searches, truncate each JSON object's body field:\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='pattern'\" | \\\n  head -n 20 | jq -c '.body = (.body | if length > 1000 then .[:1000] + \"...[TRUNCATED]\" else . end)'\n\n# Limit both record count AND byte size:\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | head -n 50 | head -c 50000\n```\n\n**Hard limits to enforce:**\n- `head -c 50000` (50KB max) on ALL output\n- **Truncate `.body` fields to 1000 chars - MANDATORY, no exceptions**\n  ```bash\n  jq -c '.body = (.body[:1000] + \"...[TRUNCATED]\")'\n  ```\n\n**Never run these without counting first AND truncating:**\n- `proxyHistory` \u002F `siteMap` (full dumps - always use sub-component filters)\n- `responseBody='...'` searches (bodies can be megabytes each)\n- Any broad regex like `.*` or `.+`\n\n## Investigation Workflow\n\n1. **Identify scope** - What are you looking for? (specific vuln type, endpoint, header pattern)\n\n2. **Search audit items first** - Start with Burp's findings:\n   ```bash\n   {baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | jq 'select(.severity == \"High\")'\n   ```\n\n3. **Check confidence scores** - Filter for actionable findings:\n   ```bash\n   ... | jq 'select(.confidence == \"Certain\" or .confidence == \"Firm\")'\n   ```\n\n4. **Extract affected URLs** - Get the attack surface:\n   ```bash\n   ... | jq -r '.url' | sort -u\n   ```\n\n5. **Search raw traffic for context** - Examine actual requests\u002Fresponses:\n   ```bash\n   {baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='pattern'\"\n   ```\n\n6. **Validate manually** - Burp findings are indicators, not proof. Verify each one.\n\n## Understanding Results\n\n### Severity vs Confidence\n\nBurp reports both **severity** (High\u002FMedium\u002FLow) and **confidence** (Certain\u002FFirm\u002FTentative). Use both when triaging:\n\n| Combination | Meaning |\n|-------------|---------|\n| High + Certain | Likely real vulnerability, prioritize investigation |\n| High + Tentative | Often a false positive, verify before reporting |\n| Medium + Firm | Worth investigating, may need manual validation |\n\nA \"High severity, Tentative confidence\" finding is frequently a false positive. Don't report findings based on severity alone.\n\n### When Proxy History is Incomplete\n\nProxy history only contains what Burp captured. It may be missing traffic due to:\n- **Scope filters** excluding domains\n- **Intercept settings** dropping requests\n- **Browser traffic** not routed through Burp proxy\n\nIf you don't find expected traffic, check Burp's scope and proxy settings in the original project.\n\n### HTTP Body Encoding\n\nResponse bodies may be gzip compressed, chunked, or use non-UTF8 encoding. Regex patterns that work on plaintext may silently fail on encoded responses. If searches return fewer results than expected:\n- Check if responses are compressed\n- Try broader patterns or search headers first\n- Use Burp's UI to inspect raw vs rendered response\n\n## Rationalizations to Reject\n\nCommon shortcuts that lead to missed vulnerabilities or false reports:\n\n| Shortcut | Why It's Wrong |\n|----------|----------------|\n| \"This regex looks good\" | Verify on sample data first—encoding and escaping cause silent failures |\n| \"High severity = must fix\" | Check confidence score too; Burp has false positives |\n| \"All audit items are relevant\" | Filter by actual threat model; not every finding matters for every app |\n| \"Proxy history is complete\" | May be filtered by Burp scope\u002Fintercept settings; you see only what Burp captured |\n| \"Burp found it, so it's a vuln\" | Burp findings require manual verification—they indicate potential issues, not proof |\n| \"The search returned nothing, so the traffic isn't there\" | Check the exit code first. Exit 3 means the script could not tell an empty result from an unloaded extension, and exit 4 means the query never ran. Only a 0 makes \"nothing found\" a statement about the project rather than about the tooling |\n\n## Output Format\n\nAll output is JSON, one object per line. Pipe to `jq` for formatting:\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | jq .\n```\n\nFilter with grep:\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | grep -i \"sql injection\"\n```\n\n## Examples\n\nSearch for CORS headers (with byte limit):\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseHeader='.*Access-Control.*'\" | head -c 50000\n```\n\nGet all high-severity findings (audit items are small, but still limit):\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp auditItems | jq -c 'select(.severity == \"High\")' | head -n 100\n```\n\nExtract just request URLs from proxy history:\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp proxyHistory.request.headers | jq -r '.request.url' | head -n 200\n```\n\nSearch response bodies (MUST truncate body to 1000 chars):\n```bash\n{baseDir}\u002Fscripts\u002Fburp-search.sh project.burp \"responseBody='.*password.*'\" | \\\n  head -n 10 | jq -c '.body = (.body[:1000] + \"...[TRUNCATED]\")'\n```\n\n## Platform Configuration\n\nThe wrapper script requires two environment variables to locate Burp Suite's bundled Java and JAR file.\n\n### macOS\n\n```bash\nexport BURP_JAVA=\"\u002FApplications\u002FBurp Suite Professional.app\u002FContents\u002FResources\u002Fjre.bundle\u002FContents\u002FHome\u002Fbin\u002Fjava\"\nexport BURP_JAR=\"\u002FApplications\u002FBurp Suite Professional.app\u002FContents\u002FResources\u002Fapp\u002Fburpsuite_pro.jar\"\n```\n\n### Windows\n\n```powershell\n$env:BURP_JAVA = \"C:\\Program Files\\BurpSuiteProfessional\\jre\\bin\\java.exe\"\n$env:BURP_JAR = \"C:\\Program Files\\BurpSuiteProfessional\\burpsuite_pro.jar\"\n```\n\n### Linux\n\n```bash\nexport BURP_JAVA=\"\u002Fopt\u002FBurpSuiteProfessional\u002Fjre\u002Fbin\u002Fjava\"\nexport BURP_JAR=\"\u002Fopt\u002FBurpSuiteProfessional\u002Fburpsuite_pro.jar\"\n```\n\nAdd these exports to your shell profile (`.bashrc`, `.zshrc`, etc.) for persistence.\n\n### Manual Invocation\n\nIf not using the wrapper script, invoke directly:\n```bash\n\"$BURP_JAVA\" -jar -Djava.awt.headless=true \"$BURP_JAR\" \\\n  --project-file=\u002Fpath\u002Fto\u002Fproject.burp [FLAGS]\n```\n",{"name":5,"description":7,"allowed-tools":23},"Bash Read","main","321ccfe628eca0d314b0ee4eaffcdd8a05639aaf","plugins\u002Fburpsuite-project-parser\u002Fskills\u002Fburpsuite-project-parser",0,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills","https:\u002F\u002Fgithub.com\u002Fbongkage","2026-11-06 12:15:06",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add bongkage\u002Ftrailofbits-skills --skill burpsuite-project-parser",{"tool":37,"command":38},"bunx","bunx skills add bongkage\u002Ftrailofbits-skills --skill burpsuite-project-parser",{"tool":40,"command":41},"pnpm","pnpm dlx skills add bongkage\u002Ftrailofbits-skills --skill burpsuite-project-parser","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fburpsuite-project-parser\u002Fskills\u002Fburpsuite-project-parser\u002FSKILL.md",true,[45,51,57],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",128,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fburpsuite-project-parser\u002Fskills\u002Fburpsuite-project-parser\u002Fagents\u002Fopenai.yaml",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"assets\u002Ftrail-of-bits-mark.svg","ASSET","资产文件",3084,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fburpsuite-project-parser\u002Fskills\u002Fburpsuite-project-parser\u002Fassets\u002Ftrail-of-bits-mark.svg",{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Fburp-search.sh","SCRIPT","脚本",9972,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fburpsuite-project-parser\u002Fskills\u002Fburpsuite-project-parser\u002Fscripts\u002Fburp-search.sh",[64,71,78,85,92,99],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7CHJAESZRWKJXFQG55BMNAA","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fzeroize-audit\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7CHJ543G42A9GQC3PJE4F4V","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fyara-authoring\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7CHHYVFS1AKDTH3YDS1Y4K4","writing-lean-proofs","Writes and reviews structured Lean 4 proofs and designs Lean libraries following Mathlib conventions. Use when proving theorems in Lean, formalizing mathematics or specifications in Lean 4, defining new types or definitions in a Lean library, reviewing Lean proofs for readability and maintainability, refactoring long tactic proofs into lemmas, filling in sorry placeholders in a Lean development, setting up CI or linters for a Lean project, diagnosing slow proofs or maxHeartbeats timeouts, or writing custom tactics, macros, or linters.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwriting-lean-proofs\u002Fskills\u002Fwriting-lean-proofs\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7CHHQXA39M4965MV2RMM5YS","vulnerability-triage-brocards","This skill should be used when the user asks to \"triage a vulnerability report\", \"assess a CVE\", \"evaluate a bug bounty submission\", \"decide if a finding is valid\", \"review a security finding\", \"dismiss a vulnerability\", \"should we fix this CVE\", \"prioritize a vulnerability report\", or needs to determine whether an incoming vulnerability report warrants investigation. Applies 7 brocards (rules of thumb) to systematically accept, dismiss, or request more information on vulnerability reports, or needs to filter raw findings from agentic vulnerability discovery pipelines before human review.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fvulnerability-triage-brocards\u002Fskills\u002Fvulnerability-triage-brocards\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7CHHJVQC2ZG2M310GXT0T42","variant-analysis","Hunts for the other instances of a bug already found — the variants of one root cause across a codebase. Use immediately after a vulnerability, logic bug, or bad pattern turns up in a specific file and the question becomes where else it occurs, including the bare conversational form (\"are there others like this?\", \"is this the same bug?\"). Also for generalizing one known instance into a CodeQL or Semgrep query for its whole pattern family, and for triaging a set of look-alike candidates against a known root cause. Not for initial discovery with no bug in hand.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fvariant-analysis\u002Fskills\u002Fvariant-analysis\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7CHHC1GM5GH585ZWGP7D03P","vector-forge","Mutation-driven test vector generation. Finds implementations of a cryptographic algorithm or protocol, runs mutation testing to identify escaped mutants, then generates new test vectors that deliberately exercise the uncovered code paths. Compares before\u002Fafter mutation kill rates to prove vector effectiveness. Use when generating cryptographic test vectors, measuring Wycheproof coverage gaps, finding escaped mutants via mutation testing, creating cross-implementation test suites, or improving test vector coverage for crypto primitives.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftrailmark\u002Fskills\u002Fvector-forge\u002FSKILL.md",[],[]]