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.
Files changed (60) hide show
  1. package/README.md +77 -0
  2. package/dist/cli.d.ts +2 -0
  3. package/dist/cli.js +241 -0
  4. package/dist/mcp-server.d.ts +2 -0
  5. package/dist/mcp-server.js +126 -0
  6. package/package.json +58 -0
  7. package/skills/cyberaudit/AGENT-BOOT.md +122 -0
  8. package/skills/cyberaudit/COMMANDS.md +1125 -0
  9. package/skills/cyberaudit/INSTALL.md +311 -0
  10. package/skills/cyberaudit/MASTER.md +194 -0
  11. package/skills/cyberaudit/README.md +154 -0
  12. package/skills/cyberaudit/USAGE-GUIDE.md +107 -0
  13. package/skills/cyberaudit/mobile/MOBILE-CHECKLIST.md +245 -0
  14. package/skills/cyberaudit/mobile/MOBILE-PHILOSOPHY.md +352 -0
  15. package/skills/cyberaudit/mobile/MOBILE-REMEDIATION-LIBRARY.md +468 -0
  16. package/skills/cyberaudit/mobile/MOBILE-THREAT-MODELS.md +279 -0
  17. package/skills/cyberaudit/mobile/frameworks/EXPO.md +247 -0
  18. package/skills/cyberaudit/mobile/frameworks/FLUTTER.md +338 -0
  19. package/skills/cyberaudit/mobile/frameworks/IONIC.md +248 -0
  20. package/skills/cyberaudit/mobile/frameworks/REACT-NATIVE.md +479 -0
  21. package/skills/cyberaudit/mobile/vulnerabilities/AUTH-MOBILE.md +160 -0
  22. package/skills/cyberaudit/mobile/vulnerabilities/BINARY-ANALYSIS.md +193 -0
  23. package/skills/cyberaudit/mobile/vulnerabilities/CRYPTO-MOBILE.md +192 -0
  24. package/skills/cyberaudit/mobile/vulnerabilities/IPC-DEEPLINKS.md +231 -0
  25. package/skills/cyberaudit/mobile/vulnerabilities/NETWORK-MOBILE.md +165 -0
  26. package/skills/cyberaudit/mobile/vulnerabilities/PERMISSIONS.md +180 -0
  27. package/skills/cyberaudit/mobile/vulnerabilities/RUNTIME-MOBILE.md +214 -0
  28. package/skills/cyberaudit/mobile/vulnerabilities/STORAGE.md +197 -0
  29. package/skills/cyberaudit/reports/EXECUTIVE-SUMMARY-TEMPLATE.md +188 -0
  30. package/skills/cyberaudit/reports/REPORT-TEMPLATE-MOBILE.md +410 -0
  31. package/skills/cyberaudit/reports/REPORT-TEMPLATE-WEB.md +222 -0
  32. package/skills/cyberaudit/shared/COMPLIANCE.md +307 -0
  33. package/skills/cyberaudit/shared/CVSS-GUIDE.md +175 -0
  34. package/skills/cyberaudit/shared/OWASP-MAPPER.md +130 -0
  35. package/skills/cyberaudit/shared/SEVERITY-SCORING.md +102 -0
  36. package/skills/cyberaudit/shared/THREAT-MODELING.md +112 -0
  37. package/skills/cyberaudit/web/WEB-CHECKLIST.md +222 -0
  38. package/skills/cyberaudit/web/WEB-PHILOSOPHY.md +308 -0
  39. package/skills/cyberaudit/web/WEB-REMEDIATION-LIBRARY.md +665 -0
  40. package/skills/cyberaudit/web/WEB-THREAT-MODELS.md +460 -0
  41. package/skills/cyberaudit/web/frameworks/ANGULAR.md +169 -0
  42. package/skills/cyberaudit/web/frameworks/EXPRESS.md +185 -0
  43. package/skills/cyberaudit/web/frameworks/LARAVEL.md +371 -0
  44. package/skills/cyberaudit/web/frameworks/NESTJS.md +337 -0
  45. package/skills/cyberaudit/web/frameworks/NEXTJS.md +352 -0
  46. package/skills/cyberaudit/web/frameworks/REACT.md +346 -0
  47. package/skills/cyberaudit/web/frameworks/VUE.md +205 -0
  48. package/skills/cyberaudit/web/vulnerabilities/AUTH-AUTHZ.md +117 -0
  49. package/skills/cyberaudit/web/vulnerabilities/BUSINESS-LOGIC.md +603 -0
  50. package/skills/cyberaudit/web/vulnerabilities/CORS.md +117 -0
  51. package/skills/cyberaudit/web/vulnerabilities/CSRF.md +131 -0
  52. package/skills/cyberaudit/web/vulnerabilities/DESERIALIZATION.md +96 -0
  53. package/skills/cyberaudit/web/vulnerabilities/HEADERS.md +105 -0
  54. package/skills/cyberaudit/web/vulnerabilities/IDOR-BOLA.md +153 -0
  55. package/skills/cyberaudit/web/vulnerabilities/INJECTION.md +165 -0
  56. package/skills/cyberaudit/web/vulnerabilities/SECRETS.md +119 -0
  57. package/skills/cyberaudit/web/vulnerabilities/SSRF.md +124 -0
  58. package/skills/cyberaudit/web/vulnerabilities/SUPPLY-CHAIN.md +142 -0
  59. package/skills/cyberaudit/web/vulnerabilities/XSS.md +133 -0
  60. package/skills/cyberaudit/web/vulnerabilities/XXE.md +94 -0
@@ -0,0 +1,311 @@
1
+ # πŸ“¦ CYBERAUDIT SKILL β€” INSTALLATION GUIDE
2
+ # Install the skill once, use it everywhere
3
+
4
+ ═══════════════════════════════════════════════════════════════
5
+ PREREQUISITES
6
+ ═══════════════════════════════════════════════════════════════
7
+
8
+ β†’ Git installed on your machine
9
+ β†’ A compatible AI agent:
10
+ Cursor, Windsurf, Claude, GPT, Copilot,
11
+ or any agent that reads Markdown files
12
+ β†’ Zero dependency. Zero runtime. Zero compilation.
13
+
14
+ ═══════════════════════════════════════════════════════════════
15
+ INSTALLATION
16
+ ═══════════════════════════════════════════════════════════════
17
+
18
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
19
+ OPTION A β€” PROJECT-LOCAL (recommended for teams)
20
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
21
+
22
+ The skill is versioned with your project.
23
+ All developers get access automatically.
24
+
25
+ # In your project root directory
26
+ git clone https://github.com/yourname/cyberaudit-skill \
27
+ .skills/cyberaudit
28
+
29
+ # Add to .gitignore if you don't want to commit it
30
+ echo ".skills/" >> .gitignore
31
+
32
+ # OR commit the skill with the project (recommended)
33
+ git add .skills/
34
+ git commit -m "chore: add cyberaudit security skill"
35
+
36
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
37
+ OPTION B β€” MACHINE-GLOBAL (recommended for solo devs)
38
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
39
+
40
+ The skill is available across all your projects.
41
+ Single install, universal use.
42
+
43
+ # In your home directory
44
+ mkdir -p ~/.skills
45
+ git clone https://github.com/yourname/cyberaudit-skill \
46
+ ~/.skills/cyberaudit
47
+
48
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
49
+ OPTION C β€” UPDATE
50
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
51
+
52
+ # Update to the latest version
53
+ cd .skills/cyberaudit && git pull
54
+
55
+ # Or update to a specific version
56
+ cd .skills/cyberaudit && git checkout v2.0.0
57
+
58
+ ═══════════════════════════════════════════════════════════════
59
+ PER-AGENT CONFIGURATION
60
+ ═══════════════════════════════════════════════════════════════
61
+
62
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
63
+ CURSOR
64
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
65
+
66
+ Cursor automatically reads files in .cursor/rules/
67
+ Two ways to connect the skill:
68
+
69
+ WAY 1 β€” Symlink (recommended)
70
+ # Point the skill straight to .cursor/rules/
71
+ ln -s .skills/cyberaudit .cursor/rules/cyberaudit
72
+
73
+ WAY 2 β€” Boot file copy
74
+ # Create a Cursor rules file that loads the skill
75
+ mkdir -p .cursor/rules
76
+ cat > .cursor/rules/cyberaudit.mdc << 'EOF'
77
+ ---
78
+ description: CyberAudit Security Skill
79
+ alwaysApply: false
80
+ ---
81
+
82
+ When you receive a command starting with /audit,
83
+ load and apply the CyberAudit skill from:
84
+ .skills/cyberaudit/
85
+
86
+ Always start by reading:
87
+ 1. .skills/cyberaudit/COMMANDS.md
88
+ 2. .skills/cyberaudit/AGENT-BOOT.md
89
+ 3. The files defined in COMMANDS.md
90
+ according to the command received
91
+
92
+ You are CyberAudit, a cybersecurity expert.
93
+ Apply the behavior defined in AGENT-BOOT.md.
94
+ EOF
95
+
96
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
97
+ WINDSURF
98
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99
+
100
+ Windsurf reads files in .windsurf/rules/
101
+
102
+ mkdir -p .windsurf/rules
103
+ cat > .windsurf/rules/cyberaudit.md << 'EOF'
104
+ # CyberAudit Security Skill
105
+
106
+ When you receive a /audit:xxx command,
107
+ consult .skills/cyberaudit/COMMANDS.md
108
+ to know which files to load and which
109
+ behavior to adopt.
110
+
111
+ Identity: .skills/cyberaudit/AGENT-BOOT.md
112
+ Principles: .skills/cyberaudit/MASTER.md
113
+ EOF
114
+
115
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
116
+ CLAUDE (claude.ai or API)
117
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
118
+
119
+ OPTION 1 β€” CLAUDE.md at project root
120
+ Claude reads CLAUDE.md automatically
121
+
122
+ cat > CLAUDE.md << 'EOF'
123
+ # Security Skill
124
+
125
+ This project uses the CyberAudit skill.
126
+ When a /audit command is received,
127
+ load files from .skills/cyberaudit/
128
+ first consulting COMMANDS.md.
129
+ EOF
130
+
131
+ OPTION 2 β€” Via API (system prompt)
132
+ Inject the content of AGENT-BOOT.md + COMMANDS.md
133
+ into the system prompt of each audit session.
134
+
135
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
136
+ GITHUB COPILOT
137
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
138
+
139
+ Copilot reads .github/copilot-instructions.md
140
+
141
+ mkdir -p .github
142
+ cat > .github/copilot-instructions.md << 'EOF'
143
+ # CyberAudit Security Instructions
144
+
145
+ This project integrates the CyberAudit skill for security
146
+ auditing. When a /audit command is detected,
147
+ apply the rules defined in:
148
+ .skills/cyberaudit/COMMANDS.md
149
+
150
+ For each generated code, passively apply
151
+ the security rules defined in:
152
+ .skills/cyberaudit/MASTER.md
153
+ EOF
154
+
155
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
156
+ ANY OTHER AGENT (via API)
157
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
158
+
159
+ Read the files and inject them as system prompt:
160
+
161
+ # Universal bash script
162
+ BOOT=$(cat .skills/cyberaudit/AGENT-BOOT.md)
163
+ MASTER=$(cat .skills/cyberaudit/MASTER.md)
164
+ COMMANDS=$(cat .skills/cyberaudit/COMMANDS.md)
165
+
166
+ SYSTEM_PROMPT="$BOOT\n\n$MASTER\n\n$COMMANDS"
167
+
168
+ # Pass SYSTEM_PROMPT to your agent via API
169
+
170
+ ═══════════════════════════════════════════════════════════════
171
+ USAGE
172
+ ═══════════════════════════════════════════════════════════════
173
+
174
+ Once installed and configured, usage
175
+ is immediate in your agent's chat:
176
+
177
+ COMMAND EXAMPLES:
178
+
179
+ Full automatic audit:
180
+ /audit src/
181
+
182
+ Quick scan before commit:
183
+ /audit:quick src/controllers/UserController.php
184
+
185
+ Specific framework audit:
186
+ /audit:laravel app/
187
+
188
+ Specific module:
189
+ /audit:auth src/middleware/
190
+ /audit:secrets .
191
+ /audit:deps
192
+
193
+ Mobile audit:
194
+ /audit:react-native src/
195
+ /audit:storage src/utils/storage.ts
196
+
197
+ Generate report after audit:
198
+ /audit:report
199
+ /audit:exec
200
+
201
+ Compliance:
202
+ /audit:rgpd src/
203
+ /audit:masvs src/
204
+
205
+ See all commands:
206
+ /audit:help
207
+
208
+ ═══════════════════════════════════════════════════════════════
209
+ CI/CD INTEGRATION
210
+ ═══════════════════════════════════════════════════════════════
211
+
212
+ GITHUB ACTIONS β€” Pre-merge security check
213
+
214
+ # .github/workflows/security-audit.yml
215
+
216
+ name: CyberAudit Security Check
217
+ on:
218
+ pull_request:
219
+ branches: [main, staging]
220
+
221
+ jobs:
222
+ security-audit:
223
+ runs-on: ubuntu-latest
224
+ steps:
225
+ - uses: actions/checkout@v4
226
+
227
+ - name: Load CyberAudit Skill
228
+ run: |
229
+ SKILL_CONTEXT=$(cat .skills/cyberaudit/AGENT-BOOT.md
230
+ .skills/cyberaudit/MASTER.md
231
+ .skills/cyberaudit/COMMANDS.md)
232
+ echo "SKILL_CONTEXT<<EOF" >> $GITHUB_ENV
233
+ echo "$SKILL_CONTEXT" >> $GITHUB_ENV
234
+ echo "EOF" >> $GITHUB_ENV
235
+
236
+ - name: Run Quick Audit
237
+ # Call your AI agent via API with the skill loaded
238
+ # and the /audit:quick command on changed files
239
+ run: |
240
+ echo "Quick security scan on changed files..."
241
+ # Your API call script here
242
+
243
+ ═══════════════════════════════════════════════════════════════
244
+ UPDATES
245
+ ═══════════════════════════════════════════════════════════════
246
+
247
+ # Check installed version
248
+ cat .skills/cyberaudit/INSTALL.md | grep "Version"
249
+
250
+ # Update
251
+ cd .skills/cyberaudit && git pull origin main
252
+
253
+ # Revert to a stable version
254
+ cd .skills/cyberaudit && git checkout v1.0.0
255
+
256
+ # List available versions
257
+ cd .skills/cyberaudit && git tag -l
258
+
259
+ ═══════════════════════════════════════════════════════════════
260
+ FILE STRUCTURE
261
+ ═══════════════════════════════════════════════════════════════
262
+
263
+ .skills/cyberaudit/
264
+ β”œβ”€β”€ COMMANDS.md ← Command router (this file)
265
+ β”œβ”€β”€ INSTALL.md ← This file
266
+ β”œβ”€β”€ AGENT-BOOT.md ← Identity and boot sequence
267
+ β”œβ”€β”€ MASTER.md ← Universal principles
268
+ β”œβ”€β”€ web/ ← All web audit
269
+ β”‚ β”œβ”€β”€ WEB-PHILOSOPHY.md
270
+ β”‚ β”œβ”€β”€ WEB-CHECKLIST.md
271
+ β”‚ β”œβ”€β”€ WEB-THREAT-MODELS.md
272
+ β”‚ β”œβ”€β”€ frameworks/ ← Laravel, Next.js, NestJS...
273
+ β”‚ β”œβ”€β”€ vulnerabilities/ ← SQLi, XSS, CSRF, IDOR...
274
+ β”‚ └── WEB-REMEDIATION-LIBRARY.md
275
+ β”œβ”€β”€ mobile/ ← All mobile audit
276
+ β”‚ β”œβ”€β”€ MOBILE-PHILOSOPHY.md
277
+ β”‚ β”œβ”€β”€ MOBILE-CHECKLIST.md
278
+ β”‚ β”œβ”€β”€ MOBILE-THREAT-MODELS.md
279
+ β”‚ β”œβ”€β”€ frameworks/ ← React Native, Flutter...
280
+ β”‚ β”œβ”€β”€ vulnerabilities/ ← Storage, Network, IPC...
281
+ β”‚ └── MOBILE-REMEDIATION-LIBRARY.md
282
+ β”œβ”€β”€ shared/ ← Shared resources
283
+ β”‚ β”œβ”€β”€ SEVERITY-SCORING.md
284
+ β”‚ β”œβ”€β”€ CVSS-GUIDE.md
285
+ β”‚ β”œβ”€β”€ OWASP-MAPPER.md
286
+ β”‚ β”œβ”€β”€ THREAT-MODELING.md
287
+ β”‚ └── COMPLIANCE.md
288
+ └── reports/ ← Report templates
289
+ β”œβ”€β”€ REPORT-TEMPLATE-WEB.md
290
+ β”œβ”€β”€ REPORT-TEMPLATE-MOBILE.md
291
+ └── EXECUTIVE-SUMMARY-TEMPLATE.md
292
+
293
+ ═══════════════════════════════════════════════════════════════
294
+ SUPPORT AND CONTRIBUTION
295
+ ═══════════════════════════════════════════════════════════════
296
+
297
+ Report an issue:
298
+ github.com/yourname/cyberaudit-skill/issues
299
+
300
+ Suggest an improvement:
301
+ github.com/yourname/cyberaudit-skill/pulls
302
+
303
+ Add a new framework:
304
+ Create web/frameworks/NEW-FRAMEWORK.md
305
+ Follow LARAVEL.md structure as a template
306
+ Add the command in COMMANDS.md
307
+ Submit a PR
308
+
309
+ VERSION: 3.0.0 β€” LUNAIRE EDITION
310
+ LICENSE: MIT
311
+ STANDARDS: OWASP Top 10 2023 Β· MASVS 2.0 Β· CVSS 3.1
@@ -0,0 +1,194 @@
1
+ # CYBERAUDIT MASTER INTELLIGENCE
2
+ # The brain file β€” Loaded permanently
3
+
4
+ ═══════════════════════════════════════════════════════════════
5
+ AUDIT MENTAL ARCHITECTURE
6
+ ═══════════════════════════════════════════════════════════════
7
+
8
+ UNIVERSAL PRINCIPLE NΒ°1 β€” THE ATTACK SURFACE IS EVERYWHERE
9
+ ──────────────────────────────────────────────────────────
10
+ Everything that receives data = attack surface
11
+ Everything that sends data = leak surface
12
+ Everything that makes decisions = bypass surface
13
+ Everything that stores data = exposure surface
14
+
15
+ UNIVERSAL PRINCIPLE NΒ°2 β€” SECURITY IS AN EMERGENT PROPERTY
16
+ ──────────────────────────────────────────────────────────
17
+ Security is not a feature you add.
18
+ It is a property that emerges from every architectural
19
+ decision, every line of code, every config.
20
+
21
+ A secure app = 10,000 correct micro-decisions.
22
+ A compromised app = 1 incorrect micro-decision.
23
+
24
+ UNIVERSAL PRINCIPLE NΒ°3 β€” THE ATTACKER HAS TIME
25
+ ─────────────────────────────────────────────────
26
+ The developer has deadlines.
27
+ The attacker has eternity.
28
+
29
+ What will "probably never happen"
30
+ will happen as soon as the app has value.
31
+
32
+ UNIVERSAL PRINCIPLE NΒ°4 β€” THE CHAIN OF TRUST
33
+ ───────────────────────────────────────────────
34
+ Always trace the full chain:
35
+
36
+ INPUT β†’ VALIDATION β†’ PROCESSING β†’ STORAGE β†’ OUTPUT
37
+ ↑ ↑
38
+ Where are the flaws? Where does data leak?
39
+
40
+ UNIVERSAL PRINCIPLE NΒ°5 β€” THE CIA MODEL
41
+ ────────────────────────────────────────
42
+ Every finding must impact at least one pillar:
43
+
44
+ C β€” Confidentiality (who can read what?)
45
+ I β€” Integrity (who can modify what?)
46
+ A β€” Availability (who can disrupt service?)
47
+
48
+ + Authentication (is it really you?)
49
+ + Authorization (do you have permission?)
50
+ + Non-repudiation (can we prove who did what?)
51
+
52
+ ═══════════════════════════════════════════════════════════════
53
+ VULNERABILITY TAXONOMY
54
+ ═══════════════════════════════════════════════════════════════
55
+
56
+ CATEGORY A β€” INJECTION (Hostile input β†’ Execution)
57
+ A1. SQL Injection β†’ Database compromised
58
+ A2. NoSQL Injection β†’ MongoDB, Redis manipulated
59
+ A3. Command Injection β†’ OS compromised
60
+ A4. LDAP Injection β†’ Directory compromised
61
+ A5. XPath Injection β†’ XML data compromise
62
+ A6. SSTI β†’ Template engine hijacked
63
+ A7. GraphQL Injection β†’ Graph API manipulated
64
+ A8. ORM Injection β†’ Bypassed abstraction
65
+ A9. Log Injection β†’ SIEM corrupted
66
+
67
+ CATEGORY B β€” AUTHENTICATION (Identity compromised)
68
+ B1. Brute Force β†’ Account compromised by force
69
+ B2. Credential Stuffing β†’ Password reuse
70
+ B3. Session Fixation β†’ Session hijacking
71
+ B4. JWT Attacks β†’ Forged or stolen token
72
+ B5. OAuth Flaws β†’ Authorization code stolen
73
+ B6. Password Reset Flaws β†’ Account takeover
74
+ B7. MFA Bypass β†’ 2FA bypassed
75
+ B8. Default Credentials β†’ Admin/admin in production
76
+ B9. Auth Bypass β†’ Logic flaw in auth
77
+
78
+ CATEGORY C β€” AUTHORIZATION (Rights not enforced)
79
+ C1. IDOR/BOLA β†’ Access to others' data
80
+ C2. BFLA β†’ Admin functions without rights
81
+ C3. Privilege Escalation β†’ User β†’ Admin
82
+ C4. Path Traversal β†’ Files outside scope
83
+ C5. RBAC Bypass β†’ Roles bypassed
84
+ C6. Mass Assignment β†’ Unauthorized fields modified
85
+ C7. JWT Role Manipulation β†’ Elevation via modified token
86
+
87
+ CATEGORY D β€” DATA EXPOSURE (Leak)
88
+ D1. Hardcoded Secrets β†’ API keys in code
89
+ D2. Sensitive Data in Logs β†’ PII in logs
90
+ D3. Error Messages β†’ Stack traces in production
91
+ D4. API Over-fetching β†’ Too much data returned
92
+ D5. Backup Files Exposed β†’ .sql, .bak accessible
93
+ D6. Source Maps in Prod β†’ Source code reconstructed
94
+ D7. Debug Endpoints β†’ /debug, /phpinfo in production
95
+ D8. Git History β†’ Secrets in history
96
+ D9. Directory Listing β†’ Structure exposed
97
+
98
+ CATEGORY E β€” CONFIGURATION (Bad setup)
99
+ E1. CORS Misconfiguration β†’ Cross-origin abuse
100
+ E2. Missing Security Headers β†’ CSP, HSTS, X-Frame missing
101
+ E3. TLS/SSL Issues β†’ Weak encryption
102
+ E4. CSRF Missing β†’ Forged actions
103
+ E5. Clickjacking β†’ UI hijacking
104
+ E6. Debug Mode in Prod β†’ Massive exposure
105
+ E7. Default Config β†’ Factory config in production
106
+ E8. Open Redirect β†’ Phishing enabled
107
+ E9. SSRF β†’ Internal infrastructure exposed
108
+
109
+ CATEGORY F β€” DEPENDENCIES (Supply Chain)
110
+ F1. CVE in dependencies β†’ Known vulnerabilities
111
+ F2. Outdated Packages β†’ Missed security patches
112
+ F3. Typosquatting β†’ Malicious package installed
113
+ F4. Dependency Confusion β†’ Internal package spoofed
114
+ F5. Malicious Package β†’ Backdoor in dependency
115
+ F6. License Issues β†’ Legal/compliance risk
116
+
117
+ CATEGORY G β€” BUSINESS LOGIC (Logic Flaws)
118
+ G1. Race Conditions β†’ Double spend, double action
119
+ G2. Price Manipulation β†’ Bypassing prices
120
+ G3. Workflow Bypass β†’ Skipped steps
121
+ G4. Rate Limiting Missing β†’ Feature abuse
122
+ G5. Business Logic Abuse β†’ Unintended use
123
+ G6. Time-of-check/Time-of-use β†’ TOCTOU attacks
124
+ G7. Negative Values β†’ Unexpected input
125
+
126
+ ═══════════════════════════════════════════════════════════════
127
+ SCORING AND PRIORITIZATION
128
+ ═══════════════════════════════════════════════════════════════
129
+
130
+ SEVERITY MATRIX
131
+ ────────────────────
132
+
133
+ CRITICAL (Score 9.0-10.0)
134
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
135
+ β”‚ Immediate exploitation with no prerequisites β”‚
136
+ β”‚ Full impact on confidentiality/integrity/availability β”‚
137
+ β”‚ No user interaction required β”‚
138
+ β”‚ Data of all users compromised β”‚
139
+ β”‚ β”‚
140
+ β”‚ EXAMPLE: Unauthenticated SQLi on public endpoint β”‚
141
+ β”‚ ACTION : Block deployment. Fix NOW β”‚
142
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
143
+
144
+ HIGH (Score 7.0-8.9)
145
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
146
+ β”‚ Exploitation possible with few prerequisites β”‚
147
+ β”‚ Significant impact on C, I, or A β”‚
148
+ β”‚ Data of one user or group compromised β”‚
149
+ β”‚ β”‚
150
+ β”‚ EXAMPLE: IDOR on user profile β”‚
151
+ β”‚ ACTION : Fix before next deployment β”‚
152
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
153
+
154
+ MEDIUM (Score 4.0-6.9)
155
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
156
+ β”‚ Exploitation requires specific conditions β”‚
157
+ β”‚ Partial or limited impact β”‚
158
+ β”‚ Combinable with other flaws for amplification β”‚
159
+ β”‚ β”‚
160
+ β”‚ EXAMPLE: CSRF on non-critical action β”‚
161
+ β”‚ ACTION : Schedule in next sprint β”‚
162
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
163
+
164
+ LOW (Score 0.1-3.9)
165
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
166
+ β”‚ Minimal impact, complex exploitation β”‚
167
+ β”‚ General security posture improvement β”‚
168
+ β”‚ β”‚
169
+ β”‚ EXAMPLE: Missing X-Content-Type-Options header β”‚
170
+ β”‚ ACTION : Security backlog, fix in batch β”‚
171
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
172
+
173
+ INFO (Score 0.0)
174
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
175
+ β”‚ No direct risk but important observation β”‚
176
+ β”‚ Best practice not followed β”‚
177
+ β”‚ Attention point for future architecture β”‚
178
+ β”‚ β”‚
179
+ β”‚ EXAMPLE: Missing audit logging β”‚
180
+ β”‚ ACTION : Documented recommendation β”‚
181
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
182
+
183
+ AGGRAVATING FACTORS (increase severity)
184
+ + Application exposed on public Internet β†’ +1 level
185
+ + PII/financial/health data involved β†’ +1 level
186
+ + No defense layer upstream β†’ +0.5 level
187
+ + Exploitation already publicly documented (PoC) β†’ +1 level
188
+ + Flaw in auth/payment component β†’ +1 level
189
+
190
+ MITIGATING FACTORS (decrease severity)
191
+ - Authenticated access required to exploit β†’ -1 level
192
+ - WAF or other protection layer active β†’ -0.5 level
193
+ - Internal network access only β†’ -1 level
194
+ - Impact limited to non-sensitive data β†’ -0.5 level
@@ -0,0 +1,154 @@
1
+ # πŸ›‘οΈ CyberAudit Skill β€” LUNAIRE EDITION
2
+
3
+ **Version 3.0.0** Β· Pure Markdown Β· Universal Security Intelligence Β· Zero dependency
4
+
5
+ [![OWASP](https://img.shields.io/badge/OWASP_Top_10-2021-blue)](#)
6
+ [![MASVS](https://img.shields.io/badge/OWASP_MASVS-2.0-green)](#)
7
+ [![CVSS](https://img.shields.io/badge/CVSS-3.1-orange)](#)
8
+ [![Frameworks](https://img.shields.io/badge/Frameworks-11-purple)](#)
9
+ [![Files](https://img.shields.io/badge/Files-52-lightgrey)](#)
10
+
11
+ ---
12
+
13
+ ## πŸ“‹ Description
14
+
15
+ CyberAudit Skill turns any AI agent (Cursor, Claude, GPT, Copilot) into an OSCP/OSCE-level **security expert**.
16
+
17
+ 52 Markdown files encoding 15 years of real pentesting, security architecture, and vulnerability research. The agent doesn't scan β€” it **thinks**, **contextualizes**, and **prioritizes** like a human.
18
+
19
+ > *"I don't look for vulnerabilities to destroy. I look for vulnerabilities to protect."*
20
+
21
+ ---
22
+
23
+ ## ✨ Features
24
+
25
+ | Domain | Coverage |
26
+ |---|---|
27
+ | **Web** | 7 frameworks, 13 vulnerability types, threat modeling, remediation |
28
+ | **Mobile** | 4 frameworks, 8 vulnerability types, MASVS 2.0 aligned |
29
+ | **Scoring** | Full CVSS 3.1 with aggravating/mitigating context factors |
30
+ | **Compliance** | RGPD, PCI-DSS, HIPAA, SOC 2 β€” built-in checklists |
31
+ | **Reports** | Web + Mobile + Executive Summary templates |
32
+ | **Levels** | Quick Scan β†’ Standard β†’ Deep β†’ Red Team |
33
+
34
+ ---
35
+
36
+ ## πŸ—οΈ Architecture
37
+
38
+ ```
39
+ cyberaudit-skill/
40
+ β”œβ”€β”€ AGENT-BOOT.md Β· MASTER.md Β· USAGE-GUIDE.md
41
+ β”œβ”€β”€ INSTALL.md Β· COMMANDS.md
42
+ β”‚
43
+ β”œβ”€β”€ web/
44
+ β”‚ β”œβ”€β”€ WEB-PHILOSOPHY.md Β· WEB-CHECKLIST.md
45
+ β”‚ β”œβ”€β”€ WEB-THREAT-MODELS.md Β· WEB-REMEDIATION-LIBRARY.md
46
+ β”‚ β”œβ”€β”€ frameworks/ (React, Next.js, Laravel, NestJS, Express, Vue, Angular)
47
+ β”‚ └── vulnerabilities/ (Injection, XSS, CSRF, IDOR, SSRF, XXE…)
48
+ β”‚
49
+ β”œβ”€β”€ mobile/
50
+ β”‚ β”œβ”€β”€ MOBILE-PHILOSOPHY.md Β· MOBILE-CHECKLIST.md
51
+ β”‚ β”œβ”€β”€ MOBILE-THREAT-MODELS.md Β· MOBILE-REMEDIATION-LIBRARY.md
52
+ β”‚ β”œβ”€β”€ frameworks/ (React Native, Flutter, Ionic, Expo)
53
+ β”‚ └── vulnerabilities/ (Storage, Network, Binary, Permissions, IPC…)
54
+ β”‚
55
+ β”œβ”€β”€ shared/
56
+ β”‚ β”œβ”€β”€ SEVERITY-SCORING.md Β· CVSS-GUIDE.md
57
+ β”‚ β”œβ”€β”€ OWASP-MAPPER.md Β· THREAT-MODELING.md
58
+ β”‚ └── COMPLIANCE.md
59
+ β”‚
60
+ └── reports/
61
+ β”œβ”€β”€ REPORT-TEMPLATE-WEB.md
62
+ β”œβ”€β”€ REPORT-TEMPLATE-MOBILE.md
63
+ └── EXECUTIVE-SUMMARY-TEMPLATE.md
64
+ ```
65
+
66
+ **52 files, 100% Markdown, zero dependency.**
67
+
68
+ ---
69
+
70
+ ## πŸš€ Quick Start
71
+
72
+ ```bash
73
+ # 1. Clone the skill into your project
74
+ git clone https://github.com/your-account/cyberaudit-skill .skills/cyberaudit
75
+
76
+ # 2. Point your AI agent to the boot
77
+ # Simply say:
78
+ "Load .skills/cyberaudit/AGENT-BOOT.md and audit this project"
79
+ ```
80
+
81
+ **Detailed installation β†’ [INSTALL.md](./INSTALL.md)**
82
+
83
+ ---
84
+
85
+ ## 🎯 Audit Levels
86
+
87
+ | Level | Duration | Scope | Output |
88
+ |---|---|---|---|
89
+ | **1 β€” Quick Scan** | 15-30 min | Secrets, critical CVEs, auth bypass | Critical + high list |
90
+ | **2 β€” Standard** | 1-2h | All level 1 + full auth, user inputs, config | All-levels report |
91
+ | **3 β€” Deep Audit** | 3-5h | All level 2 + threat modeling, business logic, architecture | Pro report + remediation plan |
92
+ | **4 β€” Red Team** | On demand | All level 3 + kill chains, financial impact | Complete Red Team report |
93
+
94
+ ---
95
+
96
+ ## πŸ“š Couverture
97
+
98
+ ### Frameworks Web
99
+ React Β· Next.js Β· Laravel Β· NestJS Β· Express Β· Vue.js Β· Angular
100
+
101
+ ### Frameworks Mobile
102
+ React Native Β· Flutter Β· Ionic/Capacitor Β· Expo
103
+
104
+ ### Web Vulnerabilities (13)
105
+ SQL/NoSQL Injection Β· XSS Β· CSRF Β· CORS Β· IDOR/BOLA Β· SSRF Β· XXE Β· Deserialization Β· Supply Chain Β· Exposed Secrets Β· Missing Headers Β· Auth & AuthZ Β· Business Logic
106
+
107
+ ### Mobile Vulnerabilities (8)
108
+ Local Storage Β· Network Β· Binary Analysis Β· Permissions Β· IPC & Deep Links Β· Mobile Auth Β· Mobile Crypto Β· Runtime
109
+
110
+ ### Compliance
111
+ RGPD (Privacy by Design, user rights) Β· PCI-DSS (payment cards) Β· HIPAA (health data) Β· SOC 2
112
+
113
+ ---
114
+
115
+ ## πŸ’‘ Using with AI Agents
116
+
117
+ ```text
118
+ Full web audit:
119
+ "Audit this React app using the CyberAudit Skill."
120
+
121
+ Quick scan:
122
+ "Run a security quick scan. Focus on critical and high only."
123
+
124
+ Mobile audit:
125
+ "Audit this Flutter app. Check storage and network."
126
+
127
+ PR review:
128
+ "Review this PR from a security perspective."
129
+
130
+ Threat modeling:
131
+ "Run a STRIDE threat model on this new feature."
132
+ ```
133
+
134
+ **All commands β†’ [COMMANDS.md](./COMMANDS.md)**
135
+
136
+ ---
137
+
138
+ ## πŸ› οΈ Prerequisites
139
+
140
+ - Git
141
+ - A compatible AI agent (Cursor, Claude, GPT, Copilot, Windsurf…)
142
+ - **Zero dependency. Zero runtime. Zero compilation.**
143
+
144
+ ---
145
+
146
+ ## πŸ“„ License
147
+
148
+ CyberAudit Skill β€” LUNAIRE EDITION
149
+ Free to use. Attribution appreciated.
150
+
151
+ ---
152
+
153
+ *Generated by CyberAudit Skill v3.0 β€” LUNAIRE EDITION*
154
+ *Aligned with OWASP Top 10 2023 Β· OWASP MASVS 2.0 Β· CVSS 3.1*