[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EHS8XVPPHZX5RP09KFG984":3,"skill-same:01M7EHS8XVPPHZX5RP09KFG984":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7EHS8XVPPHZX5RP09KFG984","pattern-exhaustion",null,"Systematic pattern exhaustion methodology. Load after finding any confirmed vulnerability to search for all instances of the same root cause pattern across the codebase.","a18268941610-crypto\u002FDecepticon-shentou","a18268941610-crypto","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F241464571?v=4","01M7EHA2V2KTCYTX78QJKXCZ8Y","fubai","01M7EHA2VKDD5RCWJJKC0ZA101",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto\u002FDecepticon-shentou\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fanalyst\u002Fpattern-exhaustion\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pattern-exhaustion\ndescription: Systematic pattern exhaustion methodology. Load after finding any confirmed vulnerability to search for all instances of the same root cause pattern across the codebase.\nmetadata:\n  subdomain: analyst\n  when_to_use: \"pattern exhaustion methodology root cause search same pattern instances codebase variant hunt\"\n  upstream_ref: \"Decepticon analyst lane: source-root-cause variant investigation\"\n---\n\n# Pattern Exhaustion\n\nWhen you find a vulnerability, you have found a PATTERN. The same developer\nwho wrote one broken auth check likely wrote twenty. The same framework that\nmisses one guard has a systemic design gap. One root cause → multiple CVEs.\n\nReal-world examples:\n- Parse Server: 4 advisories from guard bypass patterns (prototype chain,\n  falsy-value guard, protected-field bypass, complexity validator)\n- zrok: 3 advisories from access control (symlink traversal, broken ownership,\n  reflected XSS in callback)\n- AVideo: 3 advisories from deployment config (SSRF, exposed installer,\n  memcached session leak)\n\n## The Exhaustion Loop\n\n### 1. Classify the root cause\n\nAfter confirming a vulnerability, classify its root cause pattern:\n\n| Root Cause | Search Pattern |\n|---|---|\n| Missing auth\u002Fauthz check | `grep -rn 'def handle_\\|router\\.\\(get\\|post\\|put\\|delete\\)' \\| grep -v 'auth\\|permission\\|require\\|middleware'` |\n| Unvalidated path parameter | `grep -rn 'req\\.params\\|request\\.args\\|ctx\\.params' \\| grep -v 'sanitize\\|validate\\|path\\.resolve\\|path\\.normalize'` |\n| SQL string interpolation | `grep -rn 'f\"SELECT\\|f\"INSERT\\|f\"UPDATE\\|query(.*\\+.*\\|query(.*\\$\\{' --include='*.py' --include='*.ts' --include='*.js'` |\n| shell: true with user input | `grep -rn 'shell:\\s*true\\|shell=True\\|os\\.system\\|subprocess\\.call.*shell' --include='*.py' --include='*.ts' --include='*.js'` |\n| Missing ownership validation | `grep -rn 'delete\\|update\\|modify' --include='*.py' --include='*.ts' \\| grep -v 'owner\\|author\\|created_by\\|user_id.*=='` |\n| Default-open feature flag | `grep -rn 'enabled.*=.*false\\|feature.*disabled\\|trust.*=.*true' --include='*.ts' --include='*.py'` |\n| Unsafe deserialization | `grep -rn 'pickle\\.loads\\|yaml\\.load\\|yaml\\.unsafe\\|unserialize\\|JSON\\.parse.*reviver\\|eval(' --include='*.py' --include='*.js' --include='*.php'` |\n| Type confusion in guard | `grep -rn 'typeof.*==\\|instanceof\\|is_array\\|Array\\.isArray' --include='*.ts' --include='*.js' --include='*.php'` |\n| Missing CSRF\u002Fstate check | `grep -rn 'state=\\|csrf\\|nonce' --include='*.py' --include='*.ts' \\| grep -v 'verify\\|validate\\|check'` |\n| Prototype pollution | `grep -rn 'Object\\.assign\\|merge(\\|extend(\\|deepMerge\\|_.merge\\|lodash' --include='*.js' --include='*.ts'` |\n\nFor semgrep (when installed):\n```bash\n# Generic: user input reaching dangerous sink without sanitization\nsemgrep --config auto --severity ERROR \u002Fworkspace\u002Ftarget\u002Fsrc\u002F --sarif -o \u002Fworkspace\u002Fexhaustion.sarif\nkg_ingest_sarif(\"\u002Fworkspace\u002Fexhaustion.sarif\", \"pattern-exhaustion\")\n```\n\n### 2. Enumerate all instances\n\nRun the search. For EACH hit:\n1. Check: is this the SAME pattern as the confirmed vuln?\n2. Check: is there a mitigation the original instance lacked?\n3. Check: is this in test\u002Ffixture\u002Fexample code? (reject if so)\n4. If potentially exploitable, create a HYPOTHESIS node:\n\n```\nkg_add_node(\"hypothesis\", \"Missing ownership check in DELETE \u002Fapi\u002Fv2\u002Funaccess\",\n  props={\"pattern\": \"missing_ownership_validation\", \"file\": \"api\u002Froutes.py\",\n  \"line\": 87, \"related_finding\": \"\u003Coriginal_finding_id>\",\n  \"key\": \"api\u002Froutes.py:handle_unaccess:missing_ownership\"})\n```\n\nLink to the original vulnerability:\n```\nkg_add_edge(new_hypothesis_id, original_vuln_id, \"chains_to\", weight=0.3)\n```\n\n### 3. Prioritize by impact\n\nNot all instances are equal. Prioritize:\n- **Unauthenticated endpoints** over authenticated ones\n- **Write\u002Fdelete operations** over read-only\n- **Production code paths** over admin\u002Fdebug routes\n- **External-facing** over internal-only\n\n### 4. Verify each instance\n\nFeed each top candidate to the verifier with a separate positive and baseline\ncommand. Persist the ``validate_workspace_finding`` result beside the candidate;\nonly a result with ``validated=true`` becomes a separate operational finding.\n\n### 5. Exhaustion criteria\n\nStop the pattern search when:\n- All instances have been checked (grep returns no unchecked matches)\n- Remaining instances have proper mitigations in place\n- The pattern no longer applies (different framework version, different code path)\n- You've hit 10+ findings from the same pattern (diminishing returns on signal)\n\nRecord the exhaustion state:\n```\nkg_add_node(\"hypothesis\", \"pattern exhaustion complete: missing_ownership\",\n  props={\"pattern\": \"missing_ownership_validation\", \"status\": \"exhausted\",\n  \"total_instances\": 15, \"confirmed\": 4, \"rejected\": 11})\n```\n\n## Graph Structure\n\nAfter exhaustion, the graph should show:\n```\nVULNERABILITY (original finding)\n  ← chains_to ← FINDING (variant 1)\n  ← chains_to ← FINDING (variant 2)\n  ← chains_to ← FINDING (variant 3)\n  ← chains_to ← HYPOTHESIS (rejected variant, status=rejected)\n```\n\nThis makes it easy for the report generator to group related findings\nunder a single root cause narrative.\n","# Pattern Exhaustion\n\nWhen you find a vulnerability, you have found a PATTERN. The same developer\nwho wrote one broken auth check likely wrote twenty. The same framework that\nmisses one guard has a systemic design gap. One root cause → multiple CVEs.\n\nReal-world examples:\n- Parse Server: 4 advisories from guard bypass patterns (prototype chain,\n  falsy-value guard, protected-field bypass, complexity validator)\n- zrok: 3 advisories from access control (symlink traversal, broken ownership,\n  reflected XSS in callback)\n- AVideo: 3 advisories from deployment config (SSRF, exposed installer,\n  memcached session leak)\n\n## The Exhaustion Loop\n\n### 1. Classify the root cause\n\nAfter confirming a vulnerability, classify its root cause pattern:\n\n| Root Cause | Search Pattern |\n|---|---|\n| Missing auth\u002Fauthz check | `grep -rn 'def handle_\\|router\\.\\(get\\|post\\|put\\|delete\\)' \\| grep -v 'auth\\|permission\\|require\\|middleware'` |\n| Unvalidated path parameter | `grep -rn 'req\\.params\\|request\\.args\\|ctx\\.params' \\| grep -v 'sanitize\\|validate\\|path\\.resolve\\|path\\.normalize'` |\n| SQL string interpolation | `grep -rn 'f\"SELECT\\|f\"INSERT\\|f\"UPDATE\\|query(.*\\+.*\\|query(.*\\$\\{' --include='*.py' --include='*.ts' --include='*.js'` |\n| shell: true with user input | `grep -rn 'shell:\\s*true\\|shell=True\\|os\\.system\\|subprocess\\.call.*shell' --include='*.py' --include='*.ts' --include='*.js'` |\n| Missing ownership validation | `grep -rn 'delete\\|update\\|modify' --include='*.py' --include='*.ts' \\| grep -v 'owner\\|author\\|created_by\\|user_id.*=='` |\n| Default-open feature flag | `grep -rn 'enabled.*=.*false\\|feature.*disabled\\|trust.*=.*true' --include='*.ts' --include='*.py'` |\n| Unsafe deserialization | `grep -rn 'pickle\\.loads\\|yaml\\.load\\|yaml\\.unsafe\\|unserialize\\|JSON\\.parse.*reviver\\|eval(' --include='*.py' --include='*.js' --include='*.php'` |\n| Type confusion in guard | `grep -rn 'typeof.*==\\|instanceof\\|is_array\\|Array\\.isArray' --include='*.ts' --include='*.js' --include='*.php'` |\n| Missing CSRF\u002Fstate check | `grep -rn 'state=\\|csrf\\|nonce' --include='*.py' --include='*.ts' \\| grep -v 'verify\\|validate\\|check'` |\n| Prototype pollution | `grep -rn 'Object\\.assign\\|merge(\\|extend(\\|deepMerge\\|_.merge\\|lodash' --include='*.js' --include='*.ts'` |\n\nFor semgrep (when installed):\n```bash\n# Generic: user input reaching dangerous sink without sanitization\nsemgrep --config auto --severity ERROR \u002Fworkspace\u002Ftarget\u002Fsrc\u002F --sarif -o \u002Fworkspace\u002Fexhaustion.sarif\nkg_ingest_sarif(\"\u002Fworkspace\u002Fexhaustion.sarif\", \"pattern-exhaustion\")\n```\n\n### 2. Enumerate all instances\n\nRun the search. For EACH hit:\n1. Check: is this the SAME pattern as the confirmed vuln?\n2. Check: is there a mitigation the original instance lacked?\n3. Check: is this in test\u002Ffixture\u002Fexample code? (reject if so)\n4. If potentially exploitable, create a HYPOTHESIS node:\n\n```\nkg_add_node(\"hypothesis\", \"Missing ownership check in DELETE \u002Fapi\u002Fv2\u002Funaccess\",\n  props={\"pattern\": \"missing_ownership_validation\", \"file\": \"api\u002Froutes.py\",\n  \"line\": 87, \"related_finding\": \"\u003Coriginal_finding_id>\",\n  \"key\": \"api\u002Froutes.py:handle_unaccess:missing_ownership\"})\n```\n\nLink to the original vulnerability:\n```\nkg_add_edge(new_hypothesis_id, original_vuln_id, \"chains_to\", weight=0.3)\n```\n\n### 3. Prioritize by impact\n\nNot all instances are equal. Prioritize:\n- **Unauthenticated endpoints** over authenticated ones\n- **Write\u002Fdelete operations** over read-only\n- **Production code paths** over admin\u002Fdebug routes\n- **External-facing** over internal-only\n\n### 4. Verify each instance\n\nFeed each top candidate to the verifier with a separate positive and baseline\ncommand. Persist the ``validate_workspace_finding`` result beside the candidate;\nonly a result with ``validated=true`` becomes a separate operational finding.\n\n### 5. Exhaustion criteria\n\nStop the pattern search when:\n- All instances have been checked (grep returns no unchecked matches)\n- Remaining instances have proper mitigations in place\n- The pattern no longer applies (different framework version, different code path)\n- You've hit 10+ findings from the same pattern (diminishing returns on signal)\n\nRecord the exhaustion state:\n```\nkg_add_node(\"hypothesis\", \"pattern exhaustion complete: missing_ownership\",\n  props={\"pattern\": \"missing_ownership_validation\", \"status\": \"exhausted\",\n  \"total_instances\": 15, \"confirmed\": 4, \"rejected\": 11})\n```\n\n## Graph Structure\n\nAfter exhaustion, the graph should show:\n```\nVULNERABILITY (original finding)\n  ← chains_to ← FINDING (variant 1)\n  ← chains_to ← FINDING (variant 2)\n  ← chains_to ← FINDING (variant 3)\n  ← chains_to ← HYPOTHESIS (rejected variant, status=rejected)\n```\n\nThis makes it easy for the report generator to group related findings\nunder a single root cause narrative.\n",{"name":5,"metadata":24,"description":7},{"subdomain":25,"when_to_use":26,"upstream_ref":27},"analyst","pattern exhaustion methodology root cause search same pattern instances codebase variant hunt","Decepticon analyst lane: source-root-cause variant investigation","main","d6bfd87ad9f910cfff715da04c804638990a8538","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fanalyst\u002Fpattern-exhaustion",1,"https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto\u002FDecepticon-shentou","https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto","2026-10-12 03:35:17",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add a18268941610-crypto\u002FDecepticon-shentou --skill pattern-exhaustion",{"tool":41,"command":42},"bunx","bunx skills add a18268941610-crypto\u002FDecepticon-shentou --skill pattern-exhaustion",{"tool":44,"command":45},"pnpm","pnpm dlx skills add a18268941610-crypto\u002FDecepticon-shentou --skill pattern-exhaustion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto\u002FDecepticon-shentou\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fanalyst\u002Fpattern-exhaustion\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7EJXTEFYQPHY32431RWJENT","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto\u002FDecepticon-shentou\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7EJXHKBXYF3QSYNW5YSK10H","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto\u002FDecepticon-shentou\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7EJXAC5W1C1MACKKP1RRT8K","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto\u002FDecepticon-shentou\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7EJX02A5FFBM2V7VG52GNSK","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto\u002FDecepticon-shentou\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7EJWNRRMBRZQTKH3VFYAK58","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto\u002FDecepticon-shentou\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7EJWB0CC58R8Z4HW6YRQCZW","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002Fa18268941610-crypto\u002FDecepticon-shentou\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]