tribunal-kit 1.0.0 → 2.4.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 (125) hide show
  1. package/.agent/.shared/ui-ux-pro-max/README.md +3 -3
  2. package/.agent/ARCHITECTURE.md +205 -10
  3. package/.agent/GEMINI.md +37 -7
  4. package/.agent/agents/accessibility-reviewer.md +134 -0
  5. package/.agent/agents/ai-code-reviewer.md +129 -0
  6. package/.agent/agents/frontend-specialist.md +3 -0
  7. package/.agent/agents/game-developer.md +21 -21
  8. package/.agent/agents/logic-reviewer.md +12 -0
  9. package/.agent/agents/mobile-reviewer.md +79 -0
  10. package/.agent/agents/orchestrator.md +56 -26
  11. package/.agent/agents/performance-reviewer.md +36 -0
  12. package/.agent/agents/supervisor-agent.md +156 -0
  13. package/.agent/agents/swarm-worker-contracts.md +166 -0
  14. package/.agent/agents/swarm-worker-registry.md +92 -0
  15. package/.agent/rules/GEMINI.md +134 -5
  16. package/.agent/scripts/bundle_analyzer.py +259 -0
  17. package/.agent/scripts/dependency_analyzer.py +247 -0
  18. package/.agent/scripts/lint_runner.py +188 -0
  19. package/.agent/scripts/patch_skills_meta.py +177 -0
  20. package/.agent/scripts/patch_skills_output.py +285 -0
  21. package/.agent/scripts/schema_validator.py +279 -0
  22. package/.agent/scripts/security_scan.py +224 -0
  23. package/.agent/scripts/session_manager.py +144 -3
  24. package/.agent/scripts/skill_integrator.py +234 -0
  25. package/.agent/scripts/strengthen_skills.py +220 -0
  26. package/.agent/scripts/swarm_dispatcher.py +317 -0
  27. package/.agent/scripts/test_runner.py +192 -0
  28. package/.agent/scripts/test_swarm_dispatcher.py +163 -0
  29. package/.agent/skills/agent-organizer/SKILL.md +132 -0
  30. package/.agent/skills/agentic-patterns/SKILL.md +335 -0
  31. package/.agent/skills/api-patterns/SKILL.md +226 -50
  32. package/.agent/skills/app-builder/SKILL.md +215 -52
  33. package/.agent/skills/architecture/SKILL.md +176 -31
  34. package/.agent/skills/bash-linux/SKILL.md +150 -134
  35. package/.agent/skills/behavioral-modes/SKILL.md +152 -160
  36. package/.agent/skills/brainstorming/SKILL.md +148 -101
  37. package/.agent/skills/brainstorming/dynamic-questioning.md +10 -0
  38. package/.agent/skills/clean-code/SKILL.md +139 -134
  39. package/.agent/skills/code-review-checklist/SKILL.md +177 -80
  40. package/.agent/skills/config-validator/SKILL.md +165 -0
  41. package/.agent/skills/csharp-developer/SKILL.md +107 -0
  42. package/.agent/skills/database-design/SKILL.md +252 -29
  43. package/.agent/skills/deployment-procedures/SKILL.md +122 -175
  44. package/.agent/skills/devops-engineer/SKILL.md +134 -0
  45. package/.agent/skills/devops-incident-responder/SKILL.md +98 -0
  46. package/.agent/skills/documentation-templates/SKILL.md +175 -121
  47. package/.agent/skills/dotnet-core-expert/SKILL.md +103 -0
  48. package/.agent/skills/edge-computing/SKILL.md +213 -0
  49. package/.agent/skills/frontend-design/SKILL.md +76 -0
  50. package/.agent/skills/frontend-design/color-system.md +18 -0
  51. package/.agent/skills/frontend-design/typography-system.md +18 -0
  52. package/.agent/skills/game-development/SKILL.md +69 -0
  53. package/.agent/skills/geo-fundamentals/SKILL.md +158 -99
  54. package/.agent/skills/i18n-localization/SKILL.md +158 -96
  55. package/.agent/skills/intelligent-routing/SKILL.md +89 -285
  56. package/.agent/skills/intelligent-routing/router-manifest.md +65 -0
  57. package/.agent/skills/lint-and-validate/SKILL.md +229 -27
  58. package/.agent/skills/llm-engineering/SKILL.md +258 -0
  59. package/.agent/skills/local-first/SKILL.md +203 -0
  60. package/.agent/skills/mcp-builder/SKILL.md +159 -111
  61. package/.agent/skills/mobile-design/SKILL.md +102 -282
  62. package/.agent/skills/nextjs-react-expert/SKILL.md +143 -227
  63. package/.agent/skills/nodejs-best-practices/SKILL.md +201 -254
  64. package/.agent/skills/observability/SKILL.md +285 -0
  65. package/.agent/skills/parallel-agents/SKILL.md +124 -118
  66. package/.agent/skills/performance-profiling/SKILL.md +143 -89
  67. package/.agent/skills/plan-writing/SKILL.md +133 -97
  68. package/.agent/skills/platform-engineer/SKILL.md +135 -0
  69. package/.agent/skills/powershell-windows/SKILL.md +167 -104
  70. package/.agent/skills/python-patterns/SKILL.md +149 -361
  71. package/.agent/skills/python-pro/SKILL.md +114 -0
  72. package/.agent/skills/react-specialist/SKILL.md +107 -0
  73. package/.agent/skills/realtime-patterns/SKILL.md +296 -0
  74. package/.agent/skills/red-team-tactics/SKILL.md +136 -134
  75. package/.agent/skills/rust-pro/SKILL.md +237 -173
  76. package/.agent/skills/seo-fundamentals/SKILL.md +134 -82
  77. package/.agent/skills/server-management/SKILL.md +155 -104
  78. package/.agent/skills/sql-pro/SKILL.md +104 -0
  79. package/.agent/skills/systematic-debugging/SKILL.md +156 -79
  80. package/.agent/skills/tailwind-patterns/SKILL.md +163 -205
  81. package/.agent/skills/tdd-workflow/SKILL.md +148 -88
  82. package/.agent/skills/test-result-analyzer/SKILL.md +299 -0
  83. package/.agent/skills/testing-patterns/SKILL.md +141 -114
  84. package/.agent/skills/trend-researcher/SKILL.md +228 -0
  85. package/.agent/skills/ui-ux-pro-max/SKILL.md +107 -0
  86. package/.agent/skills/ui-ux-researcher/SKILL.md +234 -0
  87. package/.agent/skills/vue-expert/SKILL.md +118 -0
  88. package/.agent/skills/vulnerability-scanner/SKILL.md +228 -188
  89. package/.agent/skills/web-design-guidelines/SKILL.md +148 -33
  90. package/.agent/skills/webapp-testing/SKILL.md +171 -122
  91. package/.agent/skills/whimsy-injector/SKILL.md +349 -0
  92. package/.agent/skills/workflow-optimizer/SKILL.md +219 -0
  93. package/.agent/workflows/api-tester.md +279 -0
  94. package/.agent/workflows/audit.md +168 -0
  95. package/.agent/workflows/brainstorm.md +65 -19
  96. package/.agent/workflows/changelog.md +144 -0
  97. package/.agent/workflows/create.md +67 -14
  98. package/.agent/workflows/debug.md +122 -30
  99. package/.agent/workflows/deploy.md +82 -31
  100. package/.agent/workflows/enhance.md +59 -27
  101. package/.agent/workflows/fix.md +143 -0
  102. package/.agent/workflows/generate.md +84 -20
  103. package/.agent/workflows/migrate.md +163 -0
  104. package/.agent/workflows/orchestrate.md +66 -17
  105. package/.agent/workflows/performance-benchmarker.md +305 -0
  106. package/.agent/workflows/plan.md +76 -33
  107. package/.agent/workflows/preview.md +73 -17
  108. package/.agent/workflows/refactor.md +153 -0
  109. package/.agent/workflows/review-ai.md +140 -0
  110. package/.agent/workflows/review.md +83 -16
  111. package/.agent/workflows/session.md +154 -0
  112. package/.agent/workflows/status.md +74 -18
  113. package/.agent/workflows/strengthen-skills.md +99 -0
  114. package/.agent/workflows/swarm.md +194 -0
  115. package/.agent/workflows/test.md +80 -31
  116. package/.agent/workflows/tribunal-backend.md +55 -13
  117. package/.agent/workflows/tribunal-database.md +62 -18
  118. package/.agent/workflows/tribunal-frontend.md +58 -12
  119. package/.agent/workflows/tribunal-full.md +70 -11
  120. package/.agent/workflows/tribunal-mobile.md +123 -0
  121. package/.agent/workflows/tribunal-performance.md +152 -0
  122. package/.agent/workflows/ui-ux-pro-max.md +100 -82
  123. package/README.md +117 -62
  124. package/bin/tribunal-kit.js +329 -75
  125. package/package.json +10 -6
@@ -1,199 +1,201 @@
1
1
  ---
2
2
  name: red-team-tactics
3
3
  description: Red team tactics principles based on MITRE ATT&CK. Attack phases, detection evasion, reporting.
4
- allowed-tools: Read, Glob, Grep
4
+ allowed-tools: Read, Write, Edit, Glob, Grep
5
+ version: 1.0.0
6
+ last-updated: 2026-03-12
7
+ applies-to-model: gemini-2.5-pro, claude-3-7-sonnet
5
8
  ---
6
9
 
7
- # Red Team Tactics
10
+ # Red Team & Penetration Testing Principles
8
11
 
9
- > Adversary simulation principles based on MITRE ATT&CK framework.
12
+ > A red team engagement is a controlled attack.
13
+ > The goal is to find what a real attacker would find — before they do.
14
+
15
+ ⚠️ **These techniques are for authorized security testing only. Unauthorized use is illegal.**
10
16
 
11
17
  ---
12
18
 
13
- ## 1. MITRE ATT&CK Phases
19
+ ## Engagement Scope First
14
20
 
15
- ### Attack Lifecycle
21
+ Before any testing activity:
16
22
 
17
- ```
18
- RECONNAISSANCE INITIAL ACCESS EXECUTION PERSISTENCE
19
- ↓ ↓ ↓ ↓
20
- PRIVILEGE ESC DEFENSE EVASION CRED ACCESS DISCOVERY
21
- ↓ ↓ ↓ ↓
22
- LATERAL MOVEMENT → COLLECTION → C2 → EXFILTRATION → IMPACT
23
- ```
23
+ 1. **Written authorization** — who authorized this engagement and in what scope?
24
+ 2. **Scope definition** which systems, IPs, domains, time windows are in scope?
25
+ 3. **Rules of engagement** — what is prohibited? (production data access, social engineering of specific roles, DDoS)
26
+ 4. **Emergency contact** who do you call if you discover a critical live breach mid-engagement?
27
+ 5. **Deconfliction** — does the blue team know an engagement is running, or is it blind?
24
28
 
25
- ### Phase Objectives
26
-
27
- | Phase | Objective |
28
- |-------|-----------|
29
- | **Recon** | Map attack surface |
30
- | **Initial Access** | Get first foothold |
31
- | **Execution** | Run code on target |
32
- | **Persistence** | Survive reboots |
33
- | **Privilege Escalation** | Get admin/root |
34
- | **Defense Evasion** | Avoid detection |
35
- | **Credential Access** | Harvest credentials |
36
- | **Discovery** | Map internal network |
37
- | **Lateral Movement** | Spread to other systems |
38
- | **Collection** | Gather target data |
39
- | **C2** | Maintain command channel |
40
- | **Exfiltration** | Extract data |
29
+ No authorization = no testing.
41
30
 
42
31
  ---
43
32
 
44
- ## 2. Reconnaissance Principles
33
+ ## Attack Phases (Based on MITRE ATT&CK)
45
34
 
46
- ### Passive vs Active
35
+ ### 1. Reconnaissance
36
+ Passive and active information gathering before touching the target.
47
37
 
48
- | Type | Trade-off |
49
- |------|-----------|
50
- | **Passive** | No target contact, limited info |
51
- | **Active** | Direct contact, more detection risk |
38
+ **Passive (no target contact):**
39
+ - DNS lookup: `nslookup`, `dig`, certificate transparency logs
40
+ - OSINT: LinkedIn for employee names/roles, GitHub for leaked configs, Shodan for exposed infrastructure
52
41
 
53
- ### Information Targets
42
+ **Active (target is contacted):**
43
+ - Port scanning: `nmap -sV -sC <target>`
44
+ - Web tech detection: `whatweb`, `wappalyzer`
45
+ - Subdomain enumeration: `amass`, `subfinder`
54
46
 
55
- | Category | Value |
56
- |----------|-------|
57
- | Technology stack | Attack vector selection |
58
- | Employee info | Social engineering |
59
- | Network ranges | Scanning scope |
60
- | Third parties | Supply chain attack |
47
+ ### 2. Initial Access
48
+ How does an attacker get their first foothold?
61
49
 
62
- ---
50
+ Common vectors:
51
+ - Phishing (credential harvest or malicious attachment)
52
+ - Exposed admin interfaces with default or weak credentials
53
+ - Publicly exposed vulnerable services (`searchsploit`, `nuclei`)
54
+ - Supply chain compromise (malicious npm package, CI/CD injection)
63
55
 
64
- ## 3. Initial Access Vectors
56
+ ### 3. Persistence
57
+ Maintaining access after initial compromise:
65
58
 
66
- ### Selection Criteria
59
+ - Scheduled tasks / cron jobs
60
+ - Web shells on compromised web servers
61
+ - New user accounts with admin rights
62
+ - SSH authorized_keys injection
67
63
 
68
- | Vector | When to Use |
69
- |--------|-------------|
70
- | **Phishing** | Human target, email access |
71
- | **Public exploits** | Vulnerable services exposed |
72
- | **Valid credentials** | Leaked or cracked |
73
- | **Supply chain** | Third-party access |
64
+ ### 4. Lateral Movement
65
+ Moving from initial foothold to higher-value targets:
74
66
 
75
- ---
67
+ - Pass-the-hash / pass-the-ticket (Active Directory)
68
+ - SSH key reuse across hosts
69
+ - Credential reuse (if one service is compromised, others sharing the password are vulnerable)
70
+ - Internal network scanning to map new targets
76
71
 
77
- ## 4. Privilege Escalation Principles
72
+ ### 5. Exfiltration
73
+ Getting data out without triggering alerts:
78
74
 
79
- ### Windows Targets
75
+ - Small, slow transfers to blend with normal traffic
76
+ - Staging data in cloud storage linked to attacker-controlled accounts
77
+ - DNS exfiltration (for heavily monitored networks)
80
78
 
81
- | Check | Opportunity |
82
- |-------|-------------|
83
- | Unquoted service paths | Write to path |
84
- | Weak service permissions | Modify service |
85
- | Token privileges | Abuse SeDebug, etc. |
86
- | Stored credentials | Harvest |
79
+ ---
87
80
 
88
- ### Linux Targets
81
+ ## Common Vulnerability Targets
89
82
 
90
- | Check | Opportunity |
91
- |-------|-------------|
92
- | SUID binaries | Execute as owner |
93
- | Sudo misconfiguration | Command execution |
94
- | Kernel vulnerabilities | Kernel exploits |
95
- | Cron jobs | Writable scripts |
83
+ | Target | What to Test |
84
+ |---|---|
85
+ | Web applications | OWASP Top 10, auth bypass, IDOR, SSRF |
86
+ | APIs | Object-level authorization, mass assignment, rate limiting |
87
+ | Authentication | Brute force protection, token entropy, password reset flow |
88
+ | Secrets | Exposed env files, git history, CI/CD environment variables |
89
+ | Third-party integrations | Webhook validation, OAuth redirect URI validation |
90
+ | Infrastructure | Open S3 buckets, exposed admin ports, default credentials |
96
91
 
97
92
  ---
98
93
 
99
- ## 5. Defense Evasion Principles
94
+ ## Detection Evasion (for Authorized Testing)
100
95
 
101
- ### Key Techniques
96
+ When testing detection capabilities:
102
97
 
103
- | Technique | Purpose |
104
- |-----------|---------|
105
- | LOLBins | Use legitimate tools |
106
- | Obfuscation | Hide malicious code |
107
- | Timestomping | Hide file modifications |
108
- | Log clearing | Remove evidence |
98
+ - Slow scan rates to stay under IDS thresholds
99
+ - Use legitimate user agents and headers
100
+ - Blend with normal traffic patterns
101
+ - Test from IP ranges the organization wouldn't expect
109
102
 
110
- ### Operational Security
103
+ ---
111
104
 
112
- - Work during business hours
113
- - Mimic legitimate traffic patterns
114
- - Use encrypted channels
115
- - Blend with normal behavior
105
+ ## Reporting Format
116
106
 
117
- ---
107
+ ```markdown
108
+ # Red Team Report: [Engagement Name]
118
109
 
119
- ## 6. Lateral Movement Principles
110
+ ## Executive Summary
111
+ [2–3 sentences: what was tested, biggest risk found, business impact]
120
112
 
121
- ### Credential Types
113
+ ## Scope
114
+ [Systems tested, date range, authorization reference]
122
115
 
123
- | Type | Use |
124
- |------|-----|
125
- | Password | Standard auth |
126
- | Hash | Pass-the-hash |
127
- | Ticket | Pass-the-ticket |
128
- | Certificate | Certificate auth |
116
+ ## Critical Findings
129
117
 
130
- ### Movement Paths
118
+ ### CRIT-01: [Title]
119
+ **Risk:** Critical
120
+ **CVSS:** 9.8
121
+ **Description:** [What the vulnerability is]
122
+ **Evidence:** [Screenshot, payload, response]
123
+ **Impact:** [What an attacker could do]
124
+ **Remediation:** [Specific fix with code or config example]
131
125
 
132
- - Admin shares
133
- - Remote services (RDP, SSH, WinRM)
134
- - Exploitation of internal services
126
+ ## Attack Narrative
127
+ [Chronological story of the full attack path from initial access to objective]
135
128
 
136
- ---
129
+ ## Remediation Priority
130
+ | Finding | Severity | Fix By |
131
+ |---|---|---|
132
+ ```
137
133
 
138
- ## 7. Active Directory Attacks
134
+ ---
139
135
 
140
- ### Attack Categories
136
+ ## Ethical Boundaries
141
137
 
142
- | Attack | Target |
143
- |--------|--------|
144
- | Kerberoasting | Service account passwords |
145
- | AS-REP Roasting | Accounts without pre-auth |
146
- | DCSync | Domain credentials |
147
- | Golden Ticket | Persistent domain access |
138
+ - Stop immediately if you discover evidence of an active breach by a real attacker — report it, don't continue testing
139
+ - Don't access, copy, or delete real user data even if you can
140
+ - Document everything every command run, every finding noted
141
+ - Brief the client team before leaving — no surprises in the report
148
142
 
149
143
  ---
150
144
 
151
- ## 8. Reporting Principles
145
+ ## Output Format
152
146
 
153
- ### Attack Narrative
147
+ When this skill produces a recommendation or design decision, structure your output as:
154
148
 
155
- Document the full attack chain:
156
- 1. How initial access was gained
157
- 2. What techniques were used
158
- 3. What objectives were achieved
159
- 4. Where detection failed
149
+ ```
150
+ ━━━ Red Team Tactics Recommendation ━━━━━━━━━━━━━━━━
151
+ Decision: [what was chosen / proposed]
152
+ Rationale: [why one concise line]
153
+ Trade-offs: [what is consciously accepted]
154
+ Next action: [concrete next step for the user]
155
+ ─────────────────────────────────────────────────
156
+ Pre-Flight: ✅ All checks passed
157
+ or ❌ [blocking item that must be resolved first]
158
+ ```
160
159
 
161
- ### Detection Gaps
162
160
 
163
- For each successful technique:
164
- - What should have detected it?
165
- - Why didn't detection work?
166
- - How to improve detection
167
161
 
168
162
  ---
169
163
 
170
- ## 9. Ethical Boundaries
164
+ ## 🤖 LLM-Specific Traps
171
165
 
172
- ### Always
166
+ AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
173
167
 
174
- - Stay within scope
175
- - Minimize impact
176
- - Report immediately if real threat found
177
- - Document all actions
168
+ 1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
169
+ 2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
170
+ 3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
171
+ 4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
172
+ 5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
178
173
 
179
- ### Never
174
+ ---
180
175
 
181
- - Destroy production data
182
- - Cause denial of service (unless scoped)
183
- - Access beyond proof of concept
184
- - Retain sensitive data
176
+ ## 🏛️ Tribunal Integration (Anti-Hallucination)
185
177
 
186
- ---
178
+ **Slash command: `/review` or `/tribunal-full`**
179
+ **Active reviewers: `logic-reviewer` · `security-auditor`**
187
180
 
188
- ## 10. Anti-Patterns
181
+ ### Forbidden AI Tropes
189
182
 
190
- | Don't | Do |
191
- |----------|-------|
192
- | Rush to exploitation | Follow methodology |
193
- | Cause damage | Minimize impact |
194
- | Skip reporting | Document everything |
195
- | Ignore scope | Stay within boundaries |
183
+ 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
184
+ 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
185
+ 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
196
186
 
197
- ---
187
+ ### ✅ Pre-Flight Self-Audit
188
+
189
+ Review these questions before confirming output:
190
+ ```
191
+ ✅ Did I rely ONLY on real, verified tools and methods?
192
+ ✅ Is this solution appropriately scoped to the user's constraints?
193
+ ✅ Did I handle potential failure modes and edge cases?
194
+ ✅ Have I avoided generic boilerplate that doesn't add value?
195
+ ```
196
+
197
+ ### 🛑 Verification-Before-Completion (VBC) Protocol
198
198
 
199
- > **Remember:** Red team simulates attackers to improve defenses, not to cause harm.
199
+ **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
200
+ - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
201
+ - ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.