[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ES4P2Y1DFXXKYJVMQ1XRX6":3,"skill-same:01M7ES4P2Y1DFXXKYJVMQ1XRX6":44},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7ES4P2Y1DFXXKYJVMQ1XRX6","sast-methodology",null,"lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fsast-methodology\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# SAST Methodology\n\n## Core Principle: Decomposed Reasoning\n\nA single agent asked to \"find vulnerabilities\" will hallucinate. The pipeline decomposes the task into focused steps, with external state carrying the synthesis between steps. All agents run on `model: \"inherit\"` except flow-tracing and gap-analysis, which pin opus for cross-file reasoning depth.\n\n```\nFile Ranking (inherit) → comprehension\n    ↓\nEntry Point Mapping (inherit) → reading + listing\n    ↓\nDangerous Op Mapping (inherit) → pattern matching\n    ↓\nFlow Tracing (pinned Opus) → cross-file reasoning\n    ↓\nGap Analysis (pinned Opus) → interaction reasoning\n    ↓\nDevil's Advocate (inherit) → adversarial checking\n    ↓\nPoC Confirmation (inherit) → targeted coding + ASan\n    ↓\nExploit Development (inherit) → exploitation techniques\n```\n\nEach agent does ONE thing well. The pipeline does the synthesis.\n\n## Why Decomposition Works\n\nThe SACK bug requires simultaneously understanding: (1) missing bounds check on sack_start, (2) signed integer arithmetic in SEQ_LEQ, (3) linked list behavior when only node deleted, (4) how they interact. No current model reliably holds all four in synthesis.\n\nDecomposed:\n- Entry mapper finds: \"sack_start comes from network, sack_end checked but sack_start not\"\n- Danger mapper finds: \"SEQ_LEQ uses (int)(a-b), linked list walk with single-node edge case\"\n- Flow tracer connects: \"sack_start flows to SEQ_LEQ comparison then affects linked list walk\"\n- Gap analyzer reasons: \"unbounded sack_start + signed overflow = impossible condition satisfiable\"\n\nEach step is shallow. The pipeline depth is structural.\n\n## Static Analysis Integration\n\nDeterministic tools (CodeQL, Semgrep, Cppcheck) catch mechanically-detectable patterns. AI catches subtle interaction bugs they miss. Best results come from combining both:\n- Static tools → concrete warnings with file:line\n- AI pipeline → interaction gaps and semantic bugs\n- Merge candidates → deduplicate → adversarial validation → PoC\n\n## Adversarial Validation\n\nThe devil's advocate agent exists because AI hallucination is the #1 cost sink. Hallucinated findings look plausible, reference real functions, describe coherent root causes — and are completely wrong.\n\nThe disproval checklist catches:\n1. Hallucinated code (function doesn't exist)\n2. Unreachable paths (only called from tests)\n3. Missed checks (wrapper adds validation the gap-analyzer didn't see)\n4. Wrong types (actual macro expands differently than assumed)\n5. Impractical triggers (requires winning impossible race)\n\n## Best-of-N for High-Value Targets\n\nOn score-5 files, running multiple independent hunter instances catches more bugs and filters hallucinations:\n- Finding in 2+ independent runs → almost certainly real\n- Finding in only 1 run → might be hallucinated, flag for manual review\n- Cost multiplier 3-5x per file, only justified on critical files\n\n## Verification Tools\n\n| Tool | Use |\n|---|---|\n| ASan | Heap\u002Fstack overflow, UAF, double-free, OOB |\n| UBSan | Integer overflow, null deref, alignment |\n| MSan | Uninitialized memory reads |\n| TSan | Data races, deadlocks |\n| Valgrind | When sanitizers unavailable |\n| GDB | Debugging, register inspection |\n\n### Compilation Flags\n```bash\n# C\u002FC++:\nCFLAGS=\"-fsanitize=address,undefined -fno-omit-frame-pointer -g -O1\"\n# Rust (nightly):\nRUSTFLAGS=\"-Z sanitizer=address\" cargo +nightly build\n# Go:\ngo build -race\n```\n\n## Exploitation Tiers\n\n1. DoS (controlled crash)\n2. Controlled write primitive\n3. Info leak \u002F ASLR bypass\n4. Control flow hijack (register control)\n5. Code execution (shell, file write)\n\n## Realistic Expectations with Current Models\n\n**Opus 4.6 can**: rank files, map entry points and dangerous operations, trace simple data flows, find missing bounds checks, write PoCs for straightforward bugs.\n\n**Opus 4.6 struggles with**: multi-step interaction bugs, novel exploitation techniques, heap feng shui, complex ROP chains, bugs requiring understanding of compiler optimization behavior.\n\n**The decomposed pipeline helps because**: it turns \"find an interaction bug\" (hard, fails ~95% of the time) into \"map entries\" + \"map dangers\" + \"connect them\" + \"check gaps\" (each succeeds ~80% of the time). Pipeline success rate: 0.8^4 ≈ 40% — better than 5%, still not 76% (Mythos).\n\n## Cost Management\n\n| Phase | Model | Cost\u002Ffile | Skip when |\n|---|---|---|---|\n| File ranking | inherit | ~$0.05 | Never (cheapest, most important) |\n| Entry mapping | inherit | ~$0.10 | Score \u003C 3 |\n| Danger mapping | inherit | ~$0.10 | Score \u003C 3 |\n| Flow tracing | **Opus** (pinned) | ~$0.50 | Score \u003C 4 |\n| Gap analysis | **Opus** (pinned) | ~$0.50 | No hot\u002Fwarm flows found |\n| Devil's advocate | inherit | ~$0.10 | Never (cheapest hallucination filter) |\n| PoC building | inherit | ~$0.20 | No surviving candidates |\n| Exploit dev | inherit | ~$0.30 | Severity \u003C medium |\n\nBudget 30 files at min-score 4: scales with the orchestrator model — opus end-to-end\nruns higher than a mixed pipeline, but removes model-tier handoffs between phases.\n",{},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fsast-methodology",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill sast-methodology",{"tool":36,"command":37},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill sast-methodology",{"tool":39,"command":40},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill sast-methodology","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fsast-methodology\u002FSKILL.md",true,[],[45,53,58,65,72,79],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":52},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":54,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":52},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":52},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":52},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":52},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":52},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]