cyberaudit-skill 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.
- package/README.md +77 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +241 -0
- package/dist/mcp-server.d.ts +2 -0
- package/dist/mcp-server.js +126 -0
- package/package.json +58 -0
- package/skills/cyberaudit/AGENT-BOOT.md +122 -0
- package/skills/cyberaudit/COMMANDS.md +1125 -0
- package/skills/cyberaudit/INSTALL.md +311 -0
- package/skills/cyberaudit/MASTER.md +194 -0
- package/skills/cyberaudit/README.md +154 -0
- package/skills/cyberaudit/USAGE-GUIDE.md +107 -0
- package/skills/cyberaudit/mobile/MOBILE-CHECKLIST.md +245 -0
- package/skills/cyberaudit/mobile/MOBILE-PHILOSOPHY.md +352 -0
- package/skills/cyberaudit/mobile/MOBILE-REMEDIATION-LIBRARY.md +468 -0
- package/skills/cyberaudit/mobile/MOBILE-THREAT-MODELS.md +279 -0
- package/skills/cyberaudit/mobile/frameworks/EXPO.md +247 -0
- package/skills/cyberaudit/mobile/frameworks/FLUTTER.md +338 -0
- package/skills/cyberaudit/mobile/frameworks/IONIC.md +248 -0
- package/skills/cyberaudit/mobile/frameworks/REACT-NATIVE.md +479 -0
- package/skills/cyberaudit/mobile/vulnerabilities/AUTH-MOBILE.md +160 -0
- package/skills/cyberaudit/mobile/vulnerabilities/BINARY-ANALYSIS.md +193 -0
- package/skills/cyberaudit/mobile/vulnerabilities/CRYPTO-MOBILE.md +192 -0
- package/skills/cyberaudit/mobile/vulnerabilities/IPC-DEEPLINKS.md +231 -0
- package/skills/cyberaudit/mobile/vulnerabilities/NETWORK-MOBILE.md +165 -0
- package/skills/cyberaudit/mobile/vulnerabilities/PERMISSIONS.md +180 -0
- package/skills/cyberaudit/mobile/vulnerabilities/RUNTIME-MOBILE.md +214 -0
- package/skills/cyberaudit/mobile/vulnerabilities/STORAGE.md +197 -0
- package/skills/cyberaudit/reports/EXECUTIVE-SUMMARY-TEMPLATE.md +188 -0
- package/skills/cyberaudit/reports/REPORT-TEMPLATE-MOBILE.md +410 -0
- package/skills/cyberaudit/reports/REPORT-TEMPLATE-WEB.md +222 -0
- package/skills/cyberaudit/shared/COMPLIANCE.md +307 -0
- package/skills/cyberaudit/shared/CVSS-GUIDE.md +175 -0
- package/skills/cyberaudit/shared/OWASP-MAPPER.md +130 -0
- package/skills/cyberaudit/shared/SEVERITY-SCORING.md +102 -0
- package/skills/cyberaudit/shared/THREAT-MODELING.md +112 -0
- package/skills/cyberaudit/web/WEB-CHECKLIST.md +222 -0
- package/skills/cyberaudit/web/WEB-PHILOSOPHY.md +308 -0
- package/skills/cyberaudit/web/WEB-REMEDIATION-LIBRARY.md +665 -0
- package/skills/cyberaudit/web/WEB-THREAT-MODELS.md +460 -0
- package/skills/cyberaudit/web/frameworks/ANGULAR.md +169 -0
- package/skills/cyberaudit/web/frameworks/EXPRESS.md +185 -0
- package/skills/cyberaudit/web/frameworks/LARAVEL.md +371 -0
- package/skills/cyberaudit/web/frameworks/NESTJS.md +337 -0
- package/skills/cyberaudit/web/frameworks/NEXTJS.md +352 -0
- package/skills/cyberaudit/web/frameworks/REACT.md +346 -0
- package/skills/cyberaudit/web/frameworks/VUE.md +205 -0
- package/skills/cyberaudit/web/vulnerabilities/AUTH-AUTHZ.md +117 -0
- package/skills/cyberaudit/web/vulnerabilities/BUSINESS-LOGIC.md +603 -0
- package/skills/cyberaudit/web/vulnerabilities/CORS.md +117 -0
- package/skills/cyberaudit/web/vulnerabilities/CSRF.md +131 -0
- package/skills/cyberaudit/web/vulnerabilities/DESERIALIZATION.md +96 -0
- package/skills/cyberaudit/web/vulnerabilities/HEADERS.md +105 -0
- package/skills/cyberaudit/web/vulnerabilities/IDOR-BOLA.md +153 -0
- package/skills/cyberaudit/web/vulnerabilities/INJECTION.md +165 -0
- package/skills/cyberaudit/web/vulnerabilities/SECRETS.md +119 -0
- package/skills/cyberaudit/web/vulnerabilities/SSRF.md +124 -0
- package/skills/cyberaudit/web/vulnerabilities/SUPPLY-CHAIN.md +142 -0
- package/skills/cyberaudit/web/vulnerabilities/XSS.md +133 -0
- package/skills/cyberaudit/web/vulnerabilities/XXE.md +94 -0
|
@@ -0,0 +1,1125 @@
|
|
|
1
|
+
# ⚡ CYBERAUDIT SKILL — COMMAND ROUTER
|
|
2
|
+
# The central router for all available commands
|
|
3
|
+
|
|
4
|
+
═══════════════════════════════════════════════════════════════
|
|
5
|
+
AGENT USAGE:
|
|
6
|
+
This file is your command dictionary.
|
|
7
|
+
When you receive a /audit:xxx command, you read here
|
|
8
|
+
exactly which files to load and which behavior to adopt.
|
|
9
|
+
You NEVER deviate from this router.
|
|
10
|
+
═══════════════════════════════════════════════════════════════
|
|
11
|
+
|
|
12
|
+
═══════════════════════════════════════════════════════════════
|
|
13
|
+
COMMAND INDEX
|
|
14
|
+
═══════════════════════════════════════════════════════════════
|
|
15
|
+
|
|
16
|
+
GLOBAL COMMANDS
|
|
17
|
+
───────────────
|
|
18
|
+
/audit → Full automatic audit
|
|
19
|
+
/audit:quick → Quick scan — criticals only
|
|
20
|
+
/audit:report → Generate the full report
|
|
21
|
+
/audit:exec → Generate the executive summary
|
|
22
|
+
/audit:help → Show this help
|
|
23
|
+
|
|
24
|
+
WEB COMMANDS
|
|
25
|
+
────────────
|
|
26
|
+
/audit:web → Full web audit
|
|
27
|
+
/audit:auth → Authentication & Authorization
|
|
28
|
+
/audit:injection → All injections (SQL, NoSQL, Cmd...)
|
|
29
|
+
/audit:xss → Cross-Site Scripting
|
|
30
|
+
/audit:csrf → Cross-Site Request Forgery
|
|
31
|
+
/audit:cors → CORS configuration
|
|
32
|
+
/audit:headers → HTTP security headers
|
|
33
|
+
/audit:secrets → Exposed secrets and credentials
|
|
34
|
+
/audit:deps → Dependencies and supply chain
|
|
35
|
+
/audit:ssrf → Server-Side Request Forgery
|
|
36
|
+
/audit:idor → IDOR and access control
|
|
37
|
+
/audit:logic → Business logic
|
|
38
|
+
/audit:crypto → Web cryptography
|
|
39
|
+
/audit:xxe → XML External Entities
|
|
40
|
+
/audit:deserial → Insecure deserialization
|
|
41
|
+
|
|
42
|
+
WEB FRAMEWORK COMMANDS
|
|
43
|
+
───────────────────────
|
|
44
|
+
/audit:laravel → Full Laravel audit
|
|
45
|
+
/audit:nextjs → Full Next.js audit
|
|
46
|
+
/audit:react → Full React audit
|
|
47
|
+
/audit:nestjs → Full NestJS audit
|
|
48
|
+
/audit:express → Full Express audit
|
|
49
|
+
/audit:vue → Full Vue.js audit
|
|
50
|
+
/audit:angular → Full Angular audit
|
|
51
|
+
|
|
52
|
+
MOBILE COMMANDS
|
|
53
|
+
───────────────
|
|
54
|
+
/audit:mobile → Full mobile audit
|
|
55
|
+
/audit:storage → Mobile local storage
|
|
56
|
+
/audit:network → Mobile network security
|
|
57
|
+
/audit:binary → Binary analysis
|
|
58
|
+
/audit:permissions → Permissions audit
|
|
59
|
+
/audit:deeplinks → Deep links and IPC
|
|
60
|
+
/audit:auth-mobile → Mobile auth
|
|
61
|
+
/audit:crypto-mobile → Mobile cryptography
|
|
62
|
+
/audit:runtime → Mobile runtime security
|
|
63
|
+
|
|
64
|
+
MOBILE FRAMEWORK COMMANDS
|
|
65
|
+
──────────────────────────
|
|
66
|
+
/audit:react-native → Full React Native audit
|
|
67
|
+
/audit:flutter → Full Flutter audit
|
|
68
|
+
/audit:ionic → Full Ionic audit
|
|
69
|
+
/audit:expo → Full Expo audit
|
|
70
|
+
|
|
71
|
+
COMPLIANCE COMMANDS
|
|
72
|
+
────────────────────
|
|
73
|
+
/audit:rgpd → RGPD compliance check
|
|
74
|
+
/audit:pci → PCI-DSS compliance check
|
|
75
|
+
/audit:hipaa → HIPAA compliance check
|
|
76
|
+
/audit:masvs → Full MASVS 2.0 score
|
|
77
|
+
/audit:owasp → OWASP Top 10 score
|
|
78
|
+
|
|
79
|
+
═══════════════════════════════════════════════════════════════
|
|
80
|
+
COMMAND DEFINITIONS
|
|
81
|
+
═══════════════════════════════════════════════════════════════
|
|
82
|
+
|
|
83
|
+
Each command defines:
|
|
84
|
+
LOAD → Files to load into context
|
|
85
|
+
BEHAVIOR → What the agent must do exactly
|
|
86
|
+
OUTPUT → Expected output format
|
|
87
|
+
SCOPE → What is analyzed
|
|
88
|
+
|
|
89
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
90
|
+
|
|
91
|
+
/audit
|
|
92
|
+
──────
|
|
93
|
+
ALIAS: /audit:full, /audit:all
|
|
94
|
+
|
|
95
|
+
LOAD:
|
|
96
|
+
→ AGENT-BOOT.md
|
|
97
|
+
→ MASTER.md
|
|
98
|
+
→ shared/SEVERITY-SCORING.md
|
|
99
|
+
→ shared/OWASP-MAPPER.md
|
|
100
|
+
→ shared/COMPLIANCE.md
|
|
101
|
+
→ [Auto-detect the framework and load the corresponding .md]
|
|
102
|
+
→ [If web detected] web/WEB-PHILOSOPHY.md
|
|
103
|
+
web/WEB-CHECKLIST.md
|
|
104
|
+
web/WEB-THREAT-MODELS.md
|
|
105
|
+
→ [If mobile detected] mobile/MOBILE-PHILOSOPHY.md
|
|
106
|
+
mobile/MOBILE-CHECKLIST.md
|
|
107
|
+
mobile/MOBILE-THREAT-MODELS.md
|
|
108
|
+
→ reports/REPORT-TEMPLATE-WEB.md or REPORT-TEMPLATE-MOBILE.md
|
|
109
|
+
|
|
110
|
+
BEHAVIOR:
|
|
111
|
+
1. Auto-detect the framework from the submitted code
|
|
112
|
+
2. Execute all audit phases in order
|
|
113
|
+
3. Cover 100% of the applicable checklist
|
|
114
|
+
4. Document each finding with the standard format
|
|
115
|
+
5. Calculate the overall score
|
|
116
|
+
6. Produce the full report
|
|
117
|
+
|
|
118
|
+
OUTPUT:
|
|
119
|
+
→ Complete formatted audit report
|
|
120
|
+
→ Security score /100
|
|
121
|
+
→ Go/No-Go verdict
|
|
122
|
+
→ Prioritized remediation plan
|
|
123
|
+
|
|
124
|
+
SCOPE:
|
|
125
|
+
→ All submitted code or the specified directory
|
|
126
|
+
→ All vulnerability categories
|
|
127
|
+
→ All phases: Secrets → Auth → Authz → Injection
|
|
128
|
+
→ XSS → Config → Deps → Infra
|
|
129
|
+
|
|
130
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
131
|
+
|
|
132
|
+
/audit:quick
|
|
133
|
+
────────────
|
|
134
|
+
ALIAS: /audit:scan, /audit:fast
|
|
135
|
+
|
|
136
|
+
LOAD:
|
|
137
|
+
→ AGENT-BOOT.md
|
|
138
|
+
→ MASTER.md
|
|
139
|
+
→ shared/SEVERITY-SCORING.md
|
|
140
|
+
→ web/vulnerabilities/SECRETS.md (always)
|
|
141
|
+
→ [Auto-detected framework]
|
|
142
|
+
|
|
143
|
+
BEHAVIOR:
|
|
144
|
+
1. Scan CRITICAL and HIGH vulnerabilities ONLY
|
|
145
|
+
2. Absolute priority: exposed secrets first
|
|
146
|
+
3. Then: auth bypass, injection, IDOR
|
|
147
|
+
4. Stop as soon as criticals are identified
|
|
148
|
+
5. No full report — direct findings list
|
|
149
|
+
|
|
150
|
+
OUTPUT:
|
|
151
|
+
→ Concise list: ID / Severity / File:Line / Title
|
|
152
|
+
→ No full report
|
|
153
|
+
→ Immediate verdict: BLOCKED / WARNING / OK
|
|
154
|
+
→ Fast response time
|
|
155
|
+
|
|
156
|
+
SCOPE:
|
|
157
|
+
→ CRITICAL and HIGH only
|
|
158
|
+
→ No MEDIUM, LOW, INFO
|
|
159
|
+
→ Ideal for: pre-commit hook, quick PR review
|
|
160
|
+
|
|
161
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
162
|
+
|
|
163
|
+
/audit:web
|
|
164
|
+
──────────
|
|
165
|
+
ALIAS: /audit:webapp
|
|
166
|
+
|
|
167
|
+
LOAD:
|
|
168
|
+
→ AGENT-BOOT.md
|
|
169
|
+
→ MASTER.md
|
|
170
|
+
→ web/WEB-PHILOSOPHY.md
|
|
171
|
+
→ web/WEB-CHECKLIST.md
|
|
172
|
+
→ web/WEB-THREAT-MODELS.md
|
|
173
|
+
→ shared/SEVERITY-SCORING.md
|
|
174
|
+
→ shared/OWASP-MAPPER.md
|
|
175
|
+
→ [Web framework detected: load the corresponding .md]
|
|
176
|
+
→ web/WEB-REMEDIATION-LIBRARY.md
|
|
177
|
+
→ reports/REPORT-TEMPLATE-WEB.md
|
|
178
|
+
|
|
179
|
+
BEHAVIOR:
|
|
180
|
+
1. Apply the complete web philosophy (7 pillars)
|
|
181
|
+
2. Execute all 7 web audit phases in order
|
|
182
|
+
3. Cover all 14 sections of WEB-CHECKLIST
|
|
183
|
+
4. Map each finding to OWASP Top 10 2023
|
|
184
|
+
5. Produce the full web report
|
|
185
|
+
|
|
186
|
+
OUTPUT:
|
|
187
|
+
→ Full web report with OWASP score
|
|
188
|
+
→ OWASP Top 10 conformity item by item
|
|
189
|
+
|
|
190
|
+
SCOPE:
|
|
191
|
+
→ Web backend + frontend code
|
|
192
|
+
→ Server configuration if available
|
|
193
|
+
→ npm/composer dependencies
|
|
194
|
+
|
|
195
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
196
|
+
|
|
197
|
+
/audit:mobile
|
|
198
|
+
─────────────
|
|
199
|
+
ALIAS: /audit:app, /audit:mobileapp
|
|
200
|
+
|
|
201
|
+
LOAD:
|
|
202
|
+
→ AGENT-BOOT.md
|
|
203
|
+
→ MASTER.md
|
|
204
|
+
→ mobile/MOBILE-PHILOSOPHY.md
|
|
205
|
+
→ mobile/MOBILE-CHECKLIST.md
|
|
206
|
+
→ mobile/MOBILE-THREAT-MODELS.md
|
|
207
|
+
→ shared/SEVERITY-SCORING.md
|
|
208
|
+
→ shared/OWASP-MAPPER.md
|
|
209
|
+
→ [Mobile framework detected: load the corresponding .md]
|
|
210
|
+
→ mobile/MOBILE-REMEDIATION-LIBRARY.md
|
|
211
|
+
→ reports/REPORT-TEMPLATE-MOBILE.md
|
|
212
|
+
|
|
213
|
+
BEHAVIOR:
|
|
214
|
+
1. Apply the 8 mobile commandments
|
|
215
|
+
2. Simulate the 5 mobile attack scenarios
|
|
216
|
+
3. Execute all 6 mobile audit phases in order
|
|
217
|
+
4. Map each finding to MASVS 2.0
|
|
218
|
+
5. Produce the full mobile report
|
|
219
|
+
|
|
220
|
+
OUTPUT:
|
|
221
|
+
→ Full mobile report with MASVS score
|
|
222
|
+
→ MASVS 2.0 conformity control by control
|
|
223
|
+
→ Score per platform (Android / iOS)
|
|
224
|
+
|
|
225
|
+
SCOPE:
|
|
226
|
+
→ Mobile app source code
|
|
227
|
+
→ AndroidManifest.xml and Info.plist if available
|
|
228
|
+
→ Network configuration
|
|
229
|
+
→ Dependencies
|
|
230
|
+
|
|
231
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
232
|
+
|
|
233
|
+
/audit:auth
|
|
234
|
+
───────────
|
|
235
|
+
ALIAS: /audit:authentication, /audit:authz
|
|
236
|
+
|
|
237
|
+
LOAD:
|
|
238
|
+
→ AGENT-BOOT.md
|
|
239
|
+
→ MASTER.md
|
|
240
|
+
→ web/vulnerabilities/AUTH-AUTHZ.md
|
|
241
|
+
→ shared/SEVERITY-SCORING.md
|
|
242
|
+
|
|
243
|
+
BEHAVIOR:
|
|
244
|
+
1. Analyze EXCLUSIVELY the authentication system
|
|
245
|
+
2. Analyze EXCLUSIVELY the authorization system
|
|
246
|
+
3. Cover: JWT, sessions, OAuth, MFA, RBAC, IDOR
|
|
247
|
+
4. Mentally test each auth flow
|
|
248
|
+
5. Identify possible bypasses
|
|
249
|
+
|
|
250
|
+
OUTPUT:
|
|
251
|
+
→ Auth/authz findings only
|
|
252
|
+
→ Authentication score /100
|
|
253
|
+
→ Auth architecture recommendations
|
|
254
|
+
|
|
255
|
+
SCOPE:
|
|
256
|
+
→ Auth files, middleware, guards
|
|
257
|
+
→ Protected routes and their protection
|
|
258
|
+
→ Session and token management
|
|
259
|
+
→ Permission and role system
|
|
260
|
+
|
|
261
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
262
|
+
|
|
263
|
+
/audit:injection
|
|
264
|
+
────────────────
|
|
265
|
+
ALIAS: /audit:sqli, /audit:inject
|
|
266
|
+
|
|
267
|
+
LOAD:
|
|
268
|
+
→ AGENT-BOOT.md
|
|
269
|
+
→ MASTER.md
|
|
270
|
+
→ web/vulnerabilities/INJECTION.md
|
|
271
|
+
→ shared/SEVERITY-SCORING.md
|
|
272
|
+
|
|
273
|
+
BEHAVIOR:
|
|
274
|
+
1. Scan all forms of injection
|
|
275
|
+
2. SQL, NoSQL, Command, LDAP, XPath, SSTI, ORM
|
|
276
|
+
3. Trace each user input to its usage
|
|
277
|
+
4. Identify non-parameterized queries
|
|
278
|
+
5. Check ORMs for raw queries
|
|
279
|
+
|
|
280
|
+
OUTPUT:
|
|
281
|
+
→ Complete list of injection points found
|
|
282
|
+
→ Fixed code for each finding
|
|
283
|
+
→ Risk level per injection
|
|
284
|
+
|
|
285
|
+
SCOPE:
|
|
286
|
+
→ All database queries
|
|
287
|
+
→ All system calls
|
|
288
|
+
→ All template renderings
|
|
289
|
+
→ All XML/HTML parsers
|
|
290
|
+
|
|
291
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
292
|
+
|
|
293
|
+
/audit:xss
|
|
294
|
+
──────────
|
|
295
|
+
LOAD:
|
|
296
|
+
→ AGENT-BOOT.md
|
|
297
|
+
→ MASTER.md
|
|
298
|
+
→ web/vulnerabilities/XSS.md
|
|
299
|
+
→ shared/SEVERITY-SCORING.md
|
|
300
|
+
|
|
301
|
+
BEHAVIOR:
|
|
302
|
+
1. Scan all data output points
|
|
303
|
+
2. Identify unescaped outputs
|
|
304
|
+
3. Check CSP presence and effectiveness
|
|
305
|
+
4. Analyze uses of dangerouslySetInnerHTML, innerHTML
|
|
306
|
+
5. Verify Content-Type headers
|
|
307
|
+
|
|
308
|
+
OUTPUT:
|
|
309
|
+
→ XSS findings (reflected, stored, DOM-based)
|
|
310
|
+
→ Evaluation of existing CSP
|
|
311
|
+
→ Encoding recommendations
|
|
312
|
+
|
|
313
|
+
SCOPE:
|
|
314
|
+
→ All HTML/JS outputs
|
|
315
|
+
→ Frontend templates and components
|
|
316
|
+
→ Content-Type and CSP headers
|
|
317
|
+
|
|
318
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
319
|
+
|
|
320
|
+
/audit:csrf
|
|
321
|
+
───────────
|
|
322
|
+
LOAD:
|
|
323
|
+
→ AGENT-BOOT.md
|
|
324
|
+
→ MASTER.md
|
|
325
|
+
→ web/vulnerabilities/CSRF.md
|
|
326
|
+
→ shared/SEVERITY-SCORING.md
|
|
327
|
+
|
|
328
|
+
BEHAVIOR:
|
|
329
|
+
1. Check CSRF token presence on all forms
|
|
330
|
+
2. Check server-side token validation
|
|
331
|
+
3. Analyze SameSite cookies
|
|
332
|
+
4. Verify webhook protection (HMAC)
|
|
333
|
+
5. Identify sensitive endpoints without protection
|
|
334
|
+
|
|
335
|
+
OUTPUT:
|
|
336
|
+
→ CSRF findings per endpoint
|
|
337
|
+
→ SameSite protection status
|
|
338
|
+
→ Framework-specific recommendations
|
|
339
|
+
|
|
340
|
+
SCOPE:
|
|
341
|
+
→ All POST/PUT/DELETE forms
|
|
342
|
+
→ Cookie configuration
|
|
343
|
+
→ Incoming webhooks
|
|
344
|
+
|
|
345
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
346
|
+
|
|
347
|
+
/audit:cors
|
|
348
|
+
───────────
|
|
349
|
+
LOAD:
|
|
350
|
+
→ AGENT-BOOT.md
|
|
351
|
+
→ MASTER.md
|
|
352
|
+
→ web/vulnerabilities/CORS.md
|
|
353
|
+
→ shared/SEVERITY-SCORING.md
|
|
354
|
+
|
|
355
|
+
BEHAVIOR:
|
|
356
|
+
1. Analyze the complete CORS configuration
|
|
357
|
+
2. Detect overly permissive origins (wildcard)
|
|
358
|
+
3. Check credentials + wildcard combination
|
|
359
|
+
4. Analyze allowed methods and headers
|
|
360
|
+
5. Verify preflight handling
|
|
361
|
+
|
|
362
|
+
OUTPUT:
|
|
363
|
+
→ Current vs recommended CORS configuration
|
|
364
|
+
→ Risks per CORS endpoint
|
|
365
|
+
→ Corrected configuration ready to use
|
|
366
|
+
|
|
367
|
+
SCOPE:
|
|
368
|
+
→ Server CORS configuration
|
|
369
|
+
→ CORS middleware
|
|
370
|
+
→ Access-Control-* headers
|
|
371
|
+
|
|
372
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
373
|
+
|
|
374
|
+
/audit:headers
|
|
375
|
+
──────────────
|
|
376
|
+
ALIAS: /audit:securityheaders, /audit:http-headers
|
|
377
|
+
|
|
378
|
+
LOAD:
|
|
379
|
+
→ AGENT-BOOT.md
|
|
380
|
+
→ MASTER.md
|
|
381
|
+
→ web/vulnerabilities/HEADERS.md
|
|
382
|
+
→ shared/SEVERITY-SCORING.md
|
|
383
|
+
|
|
384
|
+
BEHAVIOR:
|
|
385
|
+
1. Check each security header's presence
|
|
386
|
+
2. Evaluate CSP configuration quality
|
|
387
|
+
3. Check HSTS (duration, includeSubDomains, preload)
|
|
388
|
+
4. Identify information-revealing headers
|
|
389
|
+
5. Provide the complete corrected configuration
|
|
390
|
+
|
|
391
|
+
OUTPUT:
|
|
392
|
+
→ Table: Header / Status / Current value / Recommended value
|
|
393
|
+
→ Headers score /100
|
|
394
|
+
→ Complete configuration ready to copy-paste
|
|
395
|
+
|
|
396
|
+
SCOPE:
|
|
397
|
+
→ Web server configuration
|
|
398
|
+
→ Header middleware
|
|
399
|
+
→ Framework configuration (next.config.js, etc.)
|
|
400
|
+
|
|
401
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
402
|
+
|
|
403
|
+
/audit:secrets
|
|
404
|
+
──────────────
|
|
405
|
+
ALIAS: /audit:credentials, /audit:leaks
|
|
406
|
+
|
|
407
|
+
LOAD:
|
|
408
|
+
→ AGENT-BOOT.md
|
|
409
|
+
→ MASTER.md
|
|
410
|
+
→ web/vulnerabilities/SECRETS.md
|
|
411
|
+
→ shared/SEVERITY-SCORING.md
|
|
412
|
+
|
|
413
|
+
BEHAVIOR:
|
|
414
|
+
1. Scan ALL files for secret patterns
|
|
415
|
+
2. AWS keys, API keys, JWT secrets, DB URLs, private keys
|
|
416
|
+
3. Check committed .env files
|
|
417
|
+
4. Check comments and test files
|
|
418
|
+
5. Check NEXT_PUBLIC_ variables exposing secrets
|
|
419
|
+
6. Mask found secrets in the report (show ***)
|
|
420
|
+
|
|
421
|
+
OUTPUT:
|
|
422
|
+
→ List of found secrets (masked) with location
|
|
423
|
+
→ Severity by secret type
|
|
424
|
+
→ Rotation instructions for each found secret
|
|
425
|
+
|
|
426
|
+
SCOPE:
|
|
427
|
+
→ All project files without exception
|
|
428
|
+
→ Git history if accessible
|
|
429
|
+
→ Configuration files and .env
|
|
430
|
+
|
|
431
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
432
|
+
|
|
433
|
+
/audit:deps
|
|
434
|
+
───────────
|
|
435
|
+
ALIAS: /audit:dependencies, /audit:supply-chain
|
|
436
|
+
|
|
437
|
+
LOAD:
|
|
438
|
+
→ AGENT-BOOT.md
|
|
439
|
+
→ MASTER.md
|
|
440
|
+
→ web/vulnerabilities/SUPPLY-CHAIN.md
|
|
441
|
+
→ shared/SEVERITY-SCORING.md
|
|
442
|
+
|
|
443
|
+
BEHAVIOR:
|
|
444
|
+
1. Analyze package.json / composer.json / pubspec.yaml
|
|
445
|
+
2. Identify packages with known CVEs
|
|
446
|
+
3. Identify abandoned or unmaintained packages
|
|
447
|
+
4. Check for lock files presence
|
|
448
|
+
5. Detect suspicious packages (typosquatting)
|
|
449
|
+
6. Check main framework versions
|
|
450
|
+
|
|
451
|
+
OUTPUT:
|
|
452
|
+
→ List of vulnerable dependencies with CVEs
|
|
453
|
+
→ Supply chain risk score
|
|
454
|
+
→ Recommended update commands
|
|
455
|
+
|
|
456
|
+
SCOPE:
|
|
457
|
+
→ package.json / package-lock.json / yarn.lock
|
|
458
|
+
→ composer.json / composer.lock
|
|
459
|
+
→ pubspec.yaml / pubspec.lock
|
|
460
|
+
→ requirements.txt if Python
|
|
461
|
+
|
|
462
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
463
|
+
|
|
464
|
+
/audit:ssrf
|
|
465
|
+
───────────
|
|
466
|
+
LOAD:
|
|
467
|
+
→ AGENT-BOOT.md
|
|
468
|
+
→ MASTER.md
|
|
469
|
+
→ web/vulnerabilities/SSRF.md
|
|
470
|
+
→ shared/SEVERITY-SCORING.md
|
|
471
|
+
|
|
472
|
+
BEHAVIOR:
|
|
473
|
+
1. Identify all places where the app makes HTTP requests
|
|
474
|
+
2. Check if URLs come from user input
|
|
475
|
+
3. Analyze imports, webhooks, URL fetches
|
|
476
|
+
4. Check protection against internal IPs
|
|
477
|
+
5. Check protection against cloud metadata endpoints
|
|
478
|
+
|
|
479
|
+
OUTPUT:
|
|
480
|
+
→ SSRF findings per entry point
|
|
481
|
+
→ Outbound request mapping
|
|
482
|
+
→ Recommended whitelist
|
|
483
|
+
|
|
484
|
+
SCOPE:
|
|
485
|
+
→ All outbound HTTP requests from the app
|
|
486
|
+
→ External resource imports
|
|
487
|
+
→ Webhooks and callbacks
|
|
488
|
+
|
|
489
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
490
|
+
|
|
491
|
+
/audit:idor
|
|
492
|
+
───────────
|
|
493
|
+
ALIAS: /audit:bola, /audit:access-control
|
|
494
|
+
|
|
495
|
+
LOAD:
|
|
496
|
+
→ AGENT-BOOT.md
|
|
497
|
+
→ MASTER.md
|
|
498
|
+
→ web/vulnerabilities/IDOR-BOLA.md
|
|
499
|
+
→ shared/SEVERITY-SCORING.md
|
|
500
|
+
|
|
501
|
+
BEHAVIOR:
|
|
502
|
+
1. Identify all object accesses by ID
|
|
503
|
+
2. Verify ownership is checked server-side
|
|
504
|
+
3. Analyze if IDs are predictable (sequential)
|
|
505
|
+
4. Check RBAC on sensitive functions
|
|
506
|
+
5. Detect mass assignment on sensitive fields
|
|
507
|
+
|
|
508
|
+
OUTPUT:
|
|
509
|
+
→ IDOR findings per endpoint
|
|
510
|
+
→ Map of accesses without ownership verification
|
|
511
|
+
→ RBAC recommendations
|
|
512
|
+
|
|
513
|
+
SCOPE:
|
|
514
|
+
→ All endpoints with :id parameter
|
|
515
|
+
→ All user resource accesses
|
|
516
|
+
→ Permission and role system
|
|
517
|
+
|
|
518
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
519
|
+
|
|
520
|
+
/audit:logic
|
|
521
|
+
────────────
|
|
522
|
+
ALIAS: /audit:business, /audit:workflow
|
|
523
|
+
|
|
524
|
+
LOAD:
|
|
525
|
+
→ AGENT-BOOT.md
|
|
526
|
+
→ MASTER.md
|
|
527
|
+
→ web/vulnerabilities/BUSINESS-LOGIC.md
|
|
528
|
+
→ shared/SEVERITY-SCORING.md
|
|
529
|
+
|
|
530
|
+
BEHAVIOR:
|
|
531
|
+
1. Analyze business flows (payment, order, signup)
|
|
532
|
+
2. Look for race conditions on critical operations
|
|
533
|
+
3. Verify prices/amounts are calculated server-side
|
|
534
|
+
4. Check state transitions in workflows
|
|
535
|
+
5. Test edge cases (negative, zero, extreme values)
|
|
536
|
+
6. Identify abusable features
|
|
537
|
+
|
|
538
|
+
OUTPUT:
|
|
539
|
+
→ Business logic findings with exploit scenario
|
|
540
|
+
→ Recommended test cases
|
|
541
|
+
→ Fixes with DB atomicity
|
|
542
|
+
|
|
543
|
+
SCOPE:
|
|
544
|
+
→ Payment, order, account controllers
|
|
545
|
+
→ Multi-step workflows
|
|
546
|
+
→ All monetary operations
|
|
547
|
+
|
|
548
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
549
|
+
|
|
550
|
+
/audit:crypto
|
|
551
|
+
─────────────
|
|
552
|
+
ALIAS: /audit:cryptography, /audit:encryption
|
|
553
|
+
|
|
554
|
+
LOAD:
|
|
555
|
+
→ AGENT-BOOT.md
|
|
556
|
+
→ MASTER.md
|
|
557
|
+
→ shared/CVSS-GUIDE.md
|
|
558
|
+
→ shared/SEVERITY-SCORING.md
|
|
559
|
+
|
|
560
|
+
BEHAVIOR:
|
|
561
|
+
1. Identify all cryptographic algorithms used
|
|
562
|
+
2. Detect MD5, SHA1, DES, RC4, weak algorithms
|
|
563
|
+
3. Check password hashing (bcrypt/argon2)
|
|
564
|
+
4. Analyze encryption key management
|
|
565
|
+
5. Verify cryptographic random generation
|
|
566
|
+
6. Analyze TLS/SSL configuration
|
|
567
|
+
|
|
568
|
+
OUTPUT:
|
|
569
|
+
→ Complete cryptographic inventory
|
|
570
|
+
→ Findings per detected weak algorithm
|
|
571
|
+
→ Recommended replacement algorithms
|
|
572
|
+
|
|
573
|
+
SCOPE:
|
|
574
|
+
→ All code handling encrypted data
|
|
575
|
+
→ TLS configuration
|
|
576
|
+
→ Password hashing
|
|
577
|
+
|
|
578
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
579
|
+
|
|
580
|
+
/audit:xxe
|
|
581
|
+
──────────
|
|
582
|
+
LOAD:
|
|
583
|
+
→ AGENT-BOOT.md
|
|
584
|
+
→ MASTER.md
|
|
585
|
+
→ web/vulnerabilities/XXE.md
|
|
586
|
+
→ shared/SEVERITY-SCORING.md
|
|
587
|
+
|
|
588
|
+
BEHAVIOR:
|
|
589
|
+
1. Identify all XML parsers in the application
|
|
590
|
+
2. Verify external entities are disabled
|
|
591
|
+
3. Analyze accepted SVG/XML uploads
|
|
592
|
+
4. Check XML libraries used and their config
|
|
593
|
+
|
|
594
|
+
OUTPUT:
|
|
595
|
+
→ XXE findings per identified parser
|
|
596
|
+
→ Secure configuration for each library
|
|
597
|
+
|
|
598
|
+
SCOPE:
|
|
599
|
+
→ XML, SVG, RSS, SOAP parsers
|
|
600
|
+
→ Endpoints accepting XML
|
|
601
|
+
|
|
602
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
603
|
+
|
|
604
|
+
/audit:deserial
|
|
605
|
+
───────────────
|
|
606
|
+
ALIAS: /audit:deserialization
|
|
607
|
+
|
|
608
|
+
LOAD:
|
|
609
|
+
→ AGENT-BOOT.md
|
|
610
|
+
→ MASTER.md
|
|
611
|
+
→ web/vulnerabilities/DESERIALIZATION.md
|
|
612
|
+
→ shared/SEVERITY-SCORING.md
|
|
613
|
+
|
|
614
|
+
BEHAVIOR:
|
|
615
|
+
1. Identify all uses of unserialize() / deserialize()
|
|
616
|
+
2. Check if user data is being deserialized
|
|
617
|
+
3. Analyze encrypted cookies (gadget chains)
|
|
618
|
+
4. Check formats: PHP serialize, Java serialization,
|
|
619
|
+
Python pickle, dangerous YAML.load
|
|
620
|
+
|
|
621
|
+
OUTPUT:
|
|
622
|
+
→ Deserialization findings per entry point
|
|
623
|
+
→ Recommended secure alternatives (JSON)
|
|
624
|
+
|
|
625
|
+
SCOPE:
|
|
626
|
+
→ All deserialization operations
|
|
627
|
+
→ Cookies, sessions, cache data
|
|
628
|
+
|
|
629
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
630
|
+
|
|
631
|
+
/audit:storage
|
|
632
|
+
──────────────
|
|
633
|
+
ALIAS: /audit:mobile-storage, /audit:local-storage
|
|
634
|
+
|
|
635
|
+
LOAD:
|
|
636
|
+
→ AGENT-BOOT.md
|
|
637
|
+
→ MASTER.md
|
|
638
|
+
→ mobile/vulnerabilities/STORAGE.md
|
|
639
|
+
→ shared/SEVERITY-SCORING.md
|
|
640
|
+
|
|
641
|
+
BEHAVIOR:
|
|
642
|
+
1. Scan all AsyncStorage / SharedPreferences usage
|
|
643
|
+
2. Check Keychain / Keystore usage
|
|
644
|
+
3. Analyze local databases (encrypted?)
|
|
645
|
+
4. Check sensitive local files
|
|
646
|
+
5. Check HTTP cache
|
|
647
|
+
6. Analyze backup policy
|
|
648
|
+
|
|
649
|
+
OUTPUT:
|
|
650
|
+
→ Storage findings per mechanism
|
|
651
|
+
→ Recommended migration to Keychain/Keystore
|
|
652
|
+
→ Complete replacement code
|
|
653
|
+
|
|
654
|
+
SCOPE:
|
|
655
|
+
→ AsyncStorage, MMKV, SQLite
|
|
656
|
+
→ Keychain, Keystore
|
|
657
|
+
→ Local files and cache
|
|
658
|
+
|
|
659
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
660
|
+
|
|
661
|
+
/audit:network
|
|
662
|
+
──────────────
|
|
663
|
+
ALIAS: /audit:mobile-network, /audit:pinning
|
|
664
|
+
|
|
665
|
+
LOAD:
|
|
666
|
+
→ AGENT-BOOT.md
|
|
667
|
+
→ MASTER.md
|
|
668
|
+
→ mobile/vulnerabilities/NETWORK-MOBILE.md
|
|
669
|
+
→ shared/SEVERITY-SCORING.md
|
|
670
|
+
|
|
671
|
+
BEHAVIOR:
|
|
672
|
+
1. Check certificate pinning presence
|
|
673
|
+
2. Analyze Network Security Config (Android)
|
|
674
|
+
3. Analyze App Transport Security (iOS)
|
|
675
|
+
4. Detect hardcoded HTTP URLs
|
|
676
|
+
5. Check backup pins
|
|
677
|
+
6. Analyze TLS configuration
|
|
678
|
+
|
|
679
|
+
OUTPUT:
|
|
680
|
+
→ Certificate pinning status
|
|
681
|
+
→ Network findings per platform
|
|
682
|
+
→ Complete NSC / ATS configuration
|
|
683
|
+
|
|
684
|
+
SCOPE:
|
|
685
|
+
→ Android and iOS network configuration
|
|
686
|
+
→ All HTTP/HTTPS requests from the app
|
|
687
|
+
→ Network libraries used
|
|
688
|
+
|
|
689
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
690
|
+
|
|
691
|
+
/audit:binary
|
|
692
|
+
─────────────
|
|
693
|
+
ALIAS: /audit:reverse, /audit:hardcoded
|
|
694
|
+
|
|
695
|
+
LOAD:
|
|
696
|
+
→ AGENT-BOOT.md
|
|
697
|
+
→ MASTER.md
|
|
698
|
+
→ mobile/vulnerabilities/BINARY-ANALYSIS.md
|
|
699
|
+
→ shared/SEVERITY-SCORING.md
|
|
700
|
+
|
|
701
|
+
BEHAVIOR:
|
|
702
|
+
1. Scan all hardcoded secrets in code
|
|
703
|
+
2. Check obfuscation is enabled
|
|
704
|
+
3. Analyze exposed strings (endpoints, keys)
|
|
705
|
+
4. Check debug mode in release build
|
|
706
|
+
5. Analyze embedded certificates
|
|
707
|
+
|
|
708
|
+
OUTPUT:
|
|
709
|
+
→ Hardcoded secrets found (masked)
|
|
710
|
+
→ Obfuscation status
|
|
711
|
+
→ Binary hardening recommendations
|
|
712
|
+
|
|
713
|
+
SCOPE:
|
|
714
|
+
→ All app source code
|
|
715
|
+
→ Build configuration (ProGuard, R8, Hermes)
|
|
716
|
+
→ Configuration files
|
|
717
|
+
|
|
718
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
719
|
+
|
|
720
|
+
/audit:permissions
|
|
721
|
+
──────────────────
|
|
722
|
+
ALIAS: /audit:perms
|
|
723
|
+
|
|
724
|
+
LOAD:
|
|
725
|
+
→ AGENT-BOOT.md
|
|
726
|
+
→ MASTER.md
|
|
727
|
+
→ mobile/vulnerabilities/PERMISSIONS.md
|
|
728
|
+
→ shared/SEVERITY-SCORING.md
|
|
729
|
+
|
|
730
|
+
BEHAVIOR:
|
|
731
|
+
1. List all declared permissions
|
|
732
|
+
2. Check justification for each permission
|
|
733
|
+
3. Identify unnecessary or excessive permissions
|
|
734
|
+
4. Check request timing (on-demand vs on-startup)
|
|
735
|
+
5. Check user denial handling
|
|
736
|
+
|
|
737
|
+
OUTPUT:
|
|
738
|
+
→ Table of all permissions with justification
|
|
739
|
+
→ Permissions to remove
|
|
740
|
+
→ Permissions to justify
|
|
741
|
+
|
|
742
|
+
SCOPE:
|
|
743
|
+
→ AndroidManifest.xml
|
|
744
|
+
→ Info.plist
|
|
745
|
+
→ Permission request code
|
|
746
|
+
|
|
747
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
748
|
+
|
|
749
|
+
/audit:deeplinks
|
|
750
|
+
────────────────
|
|
751
|
+
ALIAS: /audit:ipc, /audit:intents, /audit:urlschemes
|
|
752
|
+
|
|
753
|
+
LOAD:
|
|
754
|
+
→ AGENT-BOOT.md
|
|
755
|
+
→ MASTER.md
|
|
756
|
+
→ mobile/vulnerabilities/IPC-DEEPLINKS.md
|
|
757
|
+
→ shared/SEVERITY-SCORING.md
|
|
758
|
+
|
|
759
|
+
BEHAVIOR:
|
|
760
|
+
1. Identify all declared deep links and URL schemes
|
|
761
|
+
2. Analyze received parameter validation
|
|
762
|
+
3. Check auth before sensitive actions
|
|
763
|
+
4. Analyze exported Intents (Android)
|
|
764
|
+
5. Analyze WebView bridges
|
|
765
|
+
|
|
766
|
+
OUTPUT:
|
|
767
|
+
→ Deep link mapping
|
|
768
|
+
→ Findings per unsecured deep link
|
|
769
|
+
→ Complete validation code
|
|
770
|
+
|
|
771
|
+
SCOPE:
|
|
772
|
+
→ AndroidManifest.xml intent-filters
|
|
773
|
+
→ Info.plist URL types
|
|
774
|
+
→ Deep link handling code
|
|
775
|
+
|
|
776
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
777
|
+
|
|
778
|
+
/audit:runtime
|
|
779
|
+
──────────────
|
|
780
|
+
ALIAS: /audit:antifraud, /audit:resilience
|
|
781
|
+
|
|
782
|
+
LOAD:
|
|
783
|
+
→ AGENT-BOOT.md
|
|
784
|
+
→ MASTER.md
|
|
785
|
+
→ mobile/vulnerabilities/RUNTIME-MOBILE.md
|
|
786
|
+
→ shared/SEVERITY-SCORING.md
|
|
787
|
+
|
|
788
|
+
BEHAVIOR:
|
|
789
|
+
1. Check root/jailbreak detection
|
|
790
|
+
2. Analyze anti-debug protections
|
|
791
|
+
3. Check logs in production mode
|
|
792
|
+
4. Analyze anti-tampering protections
|
|
793
|
+
5. Check background masking
|
|
794
|
+
|
|
795
|
+
OUTPUT:
|
|
796
|
+
→ Runtime protections status
|
|
797
|
+
→ MASVS resilience level
|
|
798
|
+
→ Recommended implementations
|
|
799
|
+
|
|
800
|
+
SCOPE:
|
|
801
|
+
→ Root/jailbreak detection code
|
|
802
|
+
→ Release build configuration
|
|
803
|
+
→ App lifecycle management
|
|
804
|
+
|
|
805
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
806
|
+
|
|
807
|
+
/audit:laravel
|
|
808
|
+
──────────────
|
|
809
|
+
LOAD:
|
|
810
|
+
→ AGENT-BOOT.md
|
|
811
|
+
→ MASTER.md
|
|
812
|
+
→ web/WEB-PHILOSOPHY.md
|
|
813
|
+
→ web/WEB-CHECKLIST.md
|
|
814
|
+
→ web/frameworks/LARAVEL.md
|
|
815
|
+
→ web/vulnerabilities/INJECTION.md
|
|
816
|
+
→ web/vulnerabilities/AUTH-AUTHZ.md
|
|
817
|
+
→ web/vulnerabilities/IDOR-BOLA.md
|
|
818
|
+
→ shared/SEVERITY-SCORING.md
|
|
819
|
+
→ shared/OWASP-MAPPER.md
|
|
820
|
+
→ reports/REPORT-TEMPLATE-WEB.md
|
|
821
|
+
|
|
822
|
+
BEHAVIOR:
|
|
823
|
+
1. Apply the complete Laravel threat model
|
|
824
|
+
2. Scan the 13 Laravel vulnerable patterns
|
|
825
|
+
3. Check the 7 Laravel attack layers
|
|
826
|
+
4. Cover the complete Laravel checklist
|
|
827
|
+
5. Produce a report with Laravel-specific remediation
|
|
828
|
+
|
|
829
|
+
OUTPUT:
|
|
830
|
+
→ Complete Laravel audit report
|
|
831
|
+
→ Fix code in Laravel/Eloquent/Blade syntax
|
|
832
|
+
|
|
833
|
+
SCOPE:
|
|
834
|
+
→ Controllers, Models, Migrations
|
|
835
|
+
→ Routes, Middleware, Policies
|
|
836
|
+
→ Blade templates
|
|
837
|
+
→ Laravel configuration
|
|
838
|
+
|
|
839
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
840
|
+
|
|
841
|
+
/audit:nextjs
|
|
842
|
+
─────────────
|
|
843
|
+
LOAD:
|
|
844
|
+
→ AGENT-BOOT.md
|
|
845
|
+
→ MASTER.md
|
|
846
|
+
→ web/WEB-PHILOSOPHY.md
|
|
847
|
+
→ web/WEB-CHECKLIST.md
|
|
848
|
+
→ web/frameworks/NEXTJS.md
|
|
849
|
+
→ web/vulnerabilities/SECRETS.md
|
|
850
|
+
→ web/vulnerabilities/AUTH-AUTHZ.md
|
|
851
|
+
→ shared/SEVERITY-SCORING.md
|
|
852
|
+
→ shared/OWASP-MAPPER.md
|
|
853
|
+
→ reports/REPORT-TEMPLATE-WEB.md
|
|
854
|
+
|
|
855
|
+
BEHAVIOR:
|
|
856
|
+
1. Apply the Next.js threat model (client/server duality)
|
|
857
|
+
2. Check NEXT_PUBLIC_ exposing secrets
|
|
858
|
+
3. Analyze Server Actions, API Routes, Middleware
|
|
859
|
+
4. Check client/server context confusion
|
|
860
|
+
5. Analyze next.config.js
|
|
861
|
+
|
|
862
|
+
OUTPUT:
|
|
863
|
+
→ Complete Next.js audit report
|
|
864
|
+
→ Fix code in Next.js/React syntax
|
|
865
|
+
|
|
866
|
+
SCOPE:
|
|
867
|
+
→ app/ or pages/ directory
|
|
868
|
+
→ API routes
|
|
869
|
+
→ Middleware
|
|
870
|
+
→ next.config.js
|
|
871
|
+
→ Environment variables
|
|
872
|
+
|
|
873
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
874
|
+
|
|
875
|
+
/audit:nestjs
|
|
876
|
+
─────────────
|
|
877
|
+
LOAD:
|
|
878
|
+
→ AGENT-BOOT.md
|
|
879
|
+
→ MASTER.md
|
|
880
|
+
→ web/WEB-PHILOSOPHY.md
|
|
881
|
+
→ web/WEB-CHECKLIST.md
|
|
882
|
+
→ web/frameworks/NESTJS.md
|
|
883
|
+
→ web/vulnerabilities/AUTH-AUTHZ.md
|
|
884
|
+
→ web/vulnerabilities/INJECTION.md
|
|
885
|
+
→ shared/SEVERITY-SCORING.md
|
|
886
|
+
→ reports/REPORT-TEMPLATE-WEB.md
|
|
887
|
+
|
|
888
|
+
BEHAVIOR:
|
|
889
|
+
1. Apply the NestJS threat model
|
|
890
|
+
2. Analyze Guards, Interceptors, Pipes
|
|
891
|
+
3. Check DTOs and their validation
|
|
892
|
+
4. Analyze GraphQL if present
|
|
893
|
+
5. Check ORM configurations (TypeORM, Prisma)
|
|
894
|
+
|
|
895
|
+
OUTPUT:
|
|
896
|
+
→ Complete NestJS audit report
|
|
897
|
+
→ Fix code in NestJS/TypeScript syntax
|
|
898
|
+
|
|
899
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
900
|
+
|
|
901
|
+
/audit:react-native
|
|
902
|
+
───────────────────
|
|
903
|
+
LOAD:
|
|
904
|
+
→ AGENT-BOOT.md
|
|
905
|
+
→ MASTER.md
|
|
906
|
+
→ mobile/MOBILE-PHILOSOPHY.md
|
|
907
|
+
→ mobile/MOBILE-CHECKLIST.md
|
|
908
|
+
→ mobile/frameworks/REACT-NATIVE.md
|
|
909
|
+
→ mobile/vulnerabilities/STORAGE.md
|
|
910
|
+
→ mobile/vulnerabilities/NETWORK-MOBILE.md
|
|
911
|
+
→ mobile/vulnerabilities/IPC-DEEPLINKS.md
|
|
912
|
+
→ shared/SEVERITY-SCORING.md
|
|
913
|
+
→ reports/REPORT-TEMPLATE-MOBILE.md
|
|
914
|
+
|
|
915
|
+
BEHAVIOR:
|
|
916
|
+
1. Apply the React Native threat model
|
|
917
|
+
2. Scan AsyncStorage for sensitive data
|
|
918
|
+
3. Check certificate pinning
|
|
919
|
+
4. Analyze WebViews and bridges
|
|
920
|
+
5. Check deep links and Linking API
|
|
921
|
+
6. Scan logs in production
|
|
922
|
+
|
|
923
|
+
OUTPUT:
|
|
924
|
+
→ Complete React Native audit report
|
|
925
|
+
→ Fix code in RN/TypeScript syntax
|
|
926
|
+
|
|
927
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
928
|
+
|
|
929
|
+
/audit:flutter
|
|
930
|
+
──────────────
|
|
931
|
+
LOAD:
|
|
932
|
+
→ AGENT-BOOT.md
|
|
933
|
+
→ MASTER.md
|
|
934
|
+
→ mobile/MOBILE-PHILOSOPHY.md
|
|
935
|
+
→ mobile/MOBILE-CHECKLIST.md
|
|
936
|
+
→ mobile/frameworks/FLUTTER.md
|
|
937
|
+
→ mobile/vulnerabilities/STORAGE.md
|
|
938
|
+
→ mobile/vulnerabilities/NETWORK-MOBILE.md
|
|
939
|
+
→ shared/SEVERITY-SCORING.md
|
|
940
|
+
→ reports/REPORT-TEMPLATE-MOBILE.md
|
|
941
|
+
|
|
942
|
+
BEHAVIOR:
|
|
943
|
+
1. Apply the Flutter threat model
|
|
944
|
+
2. Check flutter_secure_storage vs SharedPreferences
|
|
945
|
+
3. Analyze Dio / http with pinning
|
|
946
|
+
4. Check platform channels
|
|
947
|
+
5. Analyze pubspec.yaml for dependencies
|
|
948
|
+
|
|
949
|
+
OUTPUT:
|
|
950
|
+
→ Complete Flutter audit report
|
|
951
|
+
→ Fix code in Dart/Flutter syntax
|
|
952
|
+
|
|
953
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
954
|
+
|
|
955
|
+
/audit:report
|
|
956
|
+
─────────────
|
|
957
|
+
ALIAS: /audit:generate-report
|
|
958
|
+
|
|
959
|
+
LOAD:
|
|
960
|
+
→ reports/REPORT-TEMPLATE-WEB.md or REPORT-TEMPLATE-MOBILE.md
|
|
961
|
+
→ reports/EXECUTIVE-SUMMARY-TEMPLATE.md
|
|
962
|
+
→ shared/SEVERITY-SCORING.md
|
|
963
|
+
→ shared/OWASP-MAPPER.md
|
|
964
|
+
→ shared/COMPLIANCE.md
|
|
965
|
+
|
|
966
|
+
BEHAVIOR:
|
|
967
|
+
1. Take all findings from the current session
|
|
968
|
+
2. Structure them according to the appropriate template
|
|
969
|
+
3. Calculate the overall score
|
|
970
|
+
4. Generate the prioritized remediation plan
|
|
971
|
+
5. Calculate OWASP / MASVS compliance
|
|
972
|
+
6. Produce the complete formatted report
|
|
973
|
+
|
|
974
|
+
OUTPUT:
|
|
975
|
+
→ Complete audit report in Markdown
|
|
976
|
+
→ Ready to copy into Notion, Confluence, GitHub
|
|
977
|
+
|
|
978
|
+
NOTE:
|
|
979
|
+
This command is typically called AFTER an audit.
|
|
980
|
+
It formats and structures already identified findings.
|
|
981
|
+
|
|
982
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
983
|
+
|
|
984
|
+
/audit:exec
|
|
985
|
+
───────────
|
|
986
|
+
ALIAS: /audit:executive, /audit:summary
|
|
987
|
+
|
|
988
|
+
LOAD:
|
|
989
|
+
→ reports/EXECUTIVE-SUMMARY-TEMPLATE.md
|
|
990
|
+
|
|
991
|
+
BEHAVIOR:
|
|
992
|
+
1. Take session findings
|
|
993
|
+
2. Translate EVERYTHING into business language (zero jargon)
|
|
994
|
+
3. Calculate estimated financial impact
|
|
995
|
+
4. Produce a 1-2 page executive summary
|
|
996
|
+
5. Formulate the Go/No-Go recommendation
|
|
997
|
+
|
|
998
|
+
OUTPUT:
|
|
999
|
+
→ Executive Summary in Markdown
|
|
1000
|
+
→ Intended for non-technical decision-makers
|
|
1001
|
+
→ 1-2 pages maximum
|
|
1002
|
+
|
|
1003
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
1004
|
+
|
|
1005
|
+
/audit:rgpd
|
|
1006
|
+
───────────
|
|
1007
|
+
ALIAS: /audit:gdpr, /audit:privacy
|
|
1008
|
+
|
|
1009
|
+
LOAD:
|
|
1010
|
+
→ AGENT-BOOT.md
|
|
1011
|
+
→ MASTER.md
|
|
1012
|
+
→ shared/COMPLIANCE.md
|
|
1013
|
+
→ shared/SEVERITY-SCORING.md
|
|
1014
|
+
|
|
1015
|
+
BEHAVIOR:
|
|
1016
|
+
1. Identify all personal data processed
|
|
1017
|
+
2. Check Art. 25 requirements (Privacy by Design)
|
|
1018
|
+
3. Check Art. 32 requirements (Security)
|
|
1019
|
+
4. Check implemented user rights
|
|
1020
|
+
5. Evaluate overall compliance
|
|
1021
|
+
|
|
1022
|
+
OUTPUT:
|
|
1023
|
+
→ RGPD compliance score
|
|
1024
|
+
→ Findings per RGPD article
|
|
1025
|
+
→ Estimated fine risk
|
|
1026
|
+
|
|
1027
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
1028
|
+
|
|
1029
|
+
/audit:masvs
|
|
1030
|
+
────────────
|
|
1031
|
+
LOAD:
|
|
1032
|
+
→ AGENT-BOOT.md
|
|
1033
|
+
→ MASTER.md
|
|
1034
|
+
→ mobile/MOBILE-PHILOSOPHY.md
|
|
1035
|
+
→ mobile/MOBILE-CHECKLIST.md
|
|
1036
|
+
→ shared/OWASP-MAPPER.md
|
|
1037
|
+
→ shared/SEVERITY-SCORING.md
|
|
1038
|
+
→ shared/COMPLIANCE.md
|
|
1039
|
+
|
|
1040
|
+
BEHAVIOR:
|
|
1041
|
+
1. Evaluate each applicable MASVS 2.0 control
|
|
1042
|
+
2. Cover all 7 MASVS categories
|
|
1043
|
+
3. Calculate score per category
|
|
1044
|
+
4. Determine achieved level (L1 / L2 / R)
|
|
1045
|
+
5. Identify gaps to reach the next level
|
|
1046
|
+
|
|
1047
|
+
OUTPUT:
|
|
1048
|
+
→ Complete MASVS scorecard
|
|
1049
|
+
→ Achieved compliance level
|
|
1050
|
+
→ Roadmap to the next level
|
|
1051
|
+
|
|
1052
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
1053
|
+
|
|
1054
|
+
/audit:owasp
|
|
1055
|
+
────────────
|
|
1056
|
+
LOAD:
|
|
1057
|
+
→ AGENT-BOOT.md
|
|
1058
|
+
→ MASTER.md
|
|
1059
|
+
→ web/WEB-PHILOSOPHY.md
|
|
1060
|
+
→ shared/OWASP-MAPPER.md
|
|
1061
|
+
→ shared/SEVERITY-SCORING.md
|
|
1062
|
+
|
|
1063
|
+
BEHAVIOR:
|
|
1064
|
+
1. Evaluate each OWASP Top 10 2023 item
|
|
1065
|
+
2. Status PASS / FAIL / PARTIAL for each item
|
|
1066
|
+
3. Justification for each status
|
|
1067
|
+
4. Overall OWASP score
|
|
1068
|
+
|
|
1069
|
+
OUTPUT:
|
|
1070
|
+
→ Complete OWASP Top 10 scorecard
|
|
1071
|
+
→ Justification per item
|
|
1072
|
+
→ Overall OWASP compliance score
|
|
1073
|
+
|
|
1074
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
1075
|
+
|
|
1076
|
+
/audit:help
|
|
1077
|
+
───────────
|
|
1078
|
+
BEHAVIOR:
|
|
1079
|
+
Display the full list of available commands
|
|
1080
|
+
with a short description of each.
|
|
1081
|
+
Do not load any audit files.
|
|
1082
|
+
Respond immediately without analysis.
|
|
1083
|
+
|
|
1084
|
+
OUTPUT:
|
|
1085
|
+
→ Complete index of all commands
|
|
1086
|
+
→ One-line description per command
|
|
1087
|
+
→ Usage examples
|
|
1088
|
+
|
|
1089
|
+
═══════════════════════════════════════════════════════════════
|
|
1090
|
+
AGENT ROUTING RULES
|
|
1091
|
+
═══════════════════════════════════════════════════════════════
|
|
1092
|
+
|
|
1093
|
+
RULE 1 — UNKNOWN COMMAND
|
|
1094
|
+
If you receive a /audit:xxx command not defined here:
|
|
1095
|
+
→ Display: "Unknown command. Type /audit:help
|
|
1096
|
+
to see all available commands."
|
|
1097
|
+
→ Do not improvise behavior
|
|
1098
|
+
|
|
1099
|
+
RULE 2 — COMMAND WITHOUT FILE
|
|
1100
|
+
If a command is run without a file or code provided:
|
|
1101
|
+
→ Ask: "Which file or directory should I
|
|
1102
|
+
audit?"
|
|
1103
|
+
→ Wait for the answer before loading files
|
|
1104
|
+
|
|
1105
|
+
RULE 3 — AUTO FRAMEWORK DETECTION
|
|
1106
|
+
For /audit and /audit:web and /audit:mobile:
|
|
1107
|
+
→ Analyze submitted code to detect the framework
|
|
1108
|
+
→ Automatically load the correct framework file
|
|
1109
|
+
→ If ambiguous: ask for confirmation before proceeding
|
|
1110
|
+
|
|
1111
|
+
RULE 4 — COMMAND COMBINATION
|
|
1112
|
+
The user can combine:
|
|
1113
|
+
"/audit:auth /audit:injection src/controllers/"
|
|
1114
|
+
→ Load files from both commands
|
|
1115
|
+
→ Deduplicate common files
|
|
1116
|
+
→ Execute both behaviors sequentially
|
|
1117
|
+
|
|
1118
|
+
RULE 5 — GLOBAL OPTIONS
|
|
1119
|
+
These options can be added to any command:
|
|
1120
|
+
--level=quick → Only CRITICAL and HIGH
|
|
1121
|
+
--level=deep → All severity levels
|
|
1122
|
+
--report → Generate the report at the end
|
|
1123
|
+
--exec → Generate the executive summary too
|
|
1124
|
+
--framework=xxx → Force a specific framework
|
|
1125
|
+
--compliance=rgpd → Add compliance verification
|