cyberaudit-skill 3.1.4 → 3.2.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 (91) hide show
  1. package/README.md +84 -25
  2. package/dist/cli.d.ts +10 -0
  3. package/dist/cli.js +555 -170
  4. package/dist/cli.test.d.ts +1 -0
  5. package/dist/cli.test.js +100 -0
  6. package/dist/mcp-server.d.ts +135 -1
  7. package/dist/mcp-server.js +185 -96
  8. package/dist/mcp-server.test.d.ts +1 -0
  9. package/dist/mcp-server.test.js +77 -0
  10. package/dist/report/generator.d.ts +2 -0
  11. package/dist/report/generator.js +260 -0
  12. package/dist/report/generator.test.d.ts +1 -0
  13. package/dist/report/generator.test.js +73 -0
  14. package/dist/report/types.d.ts +31 -0
  15. package/dist/report/types.js +1 -0
  16. package/dist/scanners/secrets.d.ts +32 -0
  17. package/dist/scanners/secrets.js +437 -0
  18. package/dist/scanners/secrets.test.d.ts +1 -0
  19. package/dist/scanners/secrets.test.js +96 -0
  20. package/dist/scanners/types.d.ts +22 -0
  21. package/dist/scanners/types.js +1 -0
  22. package/dist/scanners/web.d.ts +37 -0
  23. package/dist/scanners/web.js +327 -0
  24. package/dist/scanners/web.test.d.ts +1 -0
  25. package/dist/scanners/web.test.js +67 -0
  26. package/package.json +15 -3
  27. package/skills/cyberaudit/AGENT-BOOT.md +1 -1
  28. package/skills/cyberaudit/COMMANDS.md +11 -1
  29. package/skills/cyberaudit/INSTALL.md +7 -6
  30. package/skills/cyberaudit/README.md +20 -5
  31. package/skills/cyberaudit/SKILL.md +20 -5
  32. package/skills/cyberaudit/cloud/CLOUD-CHECKLIST.md +85 -0
  33. package/skills/cyberaudit/cloud/CLOUD-PHILOSOPHY.md +91 -0
  34. package/skills/cyberaudit/cloud/CLOUD-REMEDIATION-LIBRARY.md +145 -0
  35. package/skills/cyberaudit/commands/audit-angular.md +11 -0
  36. package/skills/cyberaudit/commands/audit-api-bola.md +11 -0
  37. package/skills/cyberaudit/commands/audit-api-bopla.md +11 -0
  38. package/skills/cyberaudit/commands/audit-api-graphql.md +11 -0
  39. package/skills/cyberaudit/commands/audit-api-inventory.md +11 -0
  40. package/skills/cyberaudit/commands/audit-api-rate-limit.md +11 -0
  41. package/skills/cyberaudit/commands/audit-api-rest.md +11 -0
  42. package/skills/cyberaudit/commands/audit-api-third-party.md +11 -0
  43. package/skills/cyberaudit/commands/audit-api-ws.md +11 -0
  44. package/skills/cyberaudit/commands/audit-auth-api.md +11 -0
  45. package/skills/cyberaudit/commands/audit-auth-mobile.md +11 -0
  46. package/skills/cyberaudit/commands/audit-auth.md +12 -0
  47. package/skills/cyberaudit/commands/audit-binary.md +11 -0
  48. package/skills/cyberaudit/commands/audit-cis.md +11 -0
  49. package/skills/cyberaudit/commands/audit-cloud-iam.md +11 -0
  50. package/skills/cyberaudit/commands/audit-cloud-network.md +11 -0
  51. package/skills/cyberaudit/commands/audit-cloud-s3.md +11 -0
  52. package/skills/cyberaudit/commands/audit-cloud.md +10 -0
  53. package/skills/cyberaudit/commands/audit-cors.md +11 -0
  54. package/skills/cyberaudit/commands/audit-crypto-mobile.md +11 -0
  55. package/skills/cyberaudit/commands/audit-crypto.md +10 -0
  56. package/skills/cyberaudit/commands/audit-csrf.md +11 -0
  57. package/skills/cyberaudit/commands/audit-deeplinks.md +11 -0
  58. package/skills/cyberaudit/commands/audit-deps.md +11 -0
  59. package/skills/cyberaudit/commands/audit-deserial.md +11 -0
  60. package/skills/cyberaudit/commands/audit-exec.md +11 -0
  61. package/skills/cyberaudit/commands/audit-expo.md +11 -0
  62. package/skills/cyberaudit/commands/audit-express.md +11 -0
  63. package/skills/cyberaudit/commands/audit-flutter.md +11 -0
  64. package/skills/cyberaudit/commands/audit-headers.md +11 -0
  65. package/skills/cyberaudit/commands/audit-hipaa.md +11 -0
  66. package/skills/cyberaudit/commands/audit-idor.md +11 -0
  67. package/skills/cyberaudit/commands/audit-injection.md +12 -0
  68. package/skills/cyberaudit/commands/audit-ionic.md +11 -0
  69. package/skills/cyberaudit/commands/audit-laravel.md +11 -0
  70. package/skills/cyberaudit/commands/audit-logic.md +11 -0
  71. package/skills/cyberaudit/commands/audit-masvs.md +11 -0
  72. package/skills/cyberaudit/commands/audit-nestjs.md +11 -0
  73. package/skills/cyberaudit/commands/audit-network.md +11 -0
  74. package/skills/cyberaudit/commands/audit-nextjs.md +11 -0
  75. package/skills/cyberaudit/commands/audit-owasp.md +11 -0
  76. package/skills/cyberaudit/commands/audit-pci.md +11 -0
  77. package/skills/cyberaudit/commands/audit-permissions.md +11 -0
  78. package/skills/cyberaudit/commands/audit-react-native.md +11 -0
  79. package/skills/cyberaudit/commands/audit-react.md +11 -0
  80. package/skills/cyberaudit/commands/audit-rgpd.md +11 -0
  81. package/skills/cyberaudit/commands/audit-runtime.md +11 -0
  82. package/skills/cyberaudit/commands/audit-secrets.md +11 -0
  83. package/skills/cyberaudit/commands/audit-ssrf.md +11 -0
  84. package/skills/cyberaudit/commands/audit-storage.md +11 -0
  85. package/skills/cyberaudit/commands/audit-vue.md +11 -0
  86. package/skills/cyberaudit/commands/audit-xss.md +11 -0
  87. package/skills/cyberaudit/commands/audit-xxe.md +11 -0
  88. package/skills/cyberaudit/reports/EXECUTIVE-SUMMARY-TEMPLATE.md +1 -1
  89. package/skills/cyberaudit/reports/REPORT-TEMPLATE-CLOUD.md +103 -0
  90. package/skills/cyberaudit/reports/REPORT-TEMPLATE-MOBILE.md +2 -2
  91. package/skills/cyberaudit/reports/REPORT-TEMPLATE-WEB.md +2 -2
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # CyberAudit Skill
2
2
 
3
- **Universal security audit skill for AI agents.**
4
- One install. Any AI agent. Full OWASP coverage.
3
+ **Universal security audit skill for AI agents — now deterministic.**
4
+ One install. 22 agents. Full OWASP coverage + deterministic scanners (secrets + web).
5
5
 
6
6
  ```bash
7
7
  npx -y cyberaudit-skill install
@@ -11,43 +11,94 @@ npx -y cyberaudit-skill install
11
11
 
12
12
  CyberAudit is a structured security audit framework delivered as an AI agent skill. It covers OWASP Top 10 (web), OWASP MASVS (mobile), API security, and cloud config — with scoring, severity ratings, and remediation guidance.
13
13
 
14
- Supports every major AI coding agent:
15
-
16
- | Agent | Detection | Method |
17
- |---|---|---|
18
- | OpenCode | `~/.agents/skills/` | File copy |
19
- | Claude Code | `~/.claude/skills/` | File copy |
20
- | Cursor | `.cursor/mcp.json` | MCP server |
21
- | Kiro | `~/.kiro/skills/` | File copy |
22
- | Gemini | `~/.gemini/skills/` | File copy |
14
+ **Deterministic scanners (no LLM needed):**
15
+ - `scan` → 15 secret patterns (AWS, GitHub PAT, Stripe, private keys, JWT, DB URLs...) + 12 web vuln patterns (SQLi concat, XSS dangerouslySetInnerHTML, jwt.decode, CORS *, eval, mass assignment, NoSQLi)
16
+ - `report` auto-generates markdown report with score, verdict, OWASP compliance, remediation plan
17
+
18
+ **Supports 22 AI coding agents like ui-ux-pro-max-skill:**
19
+
20
+ | Agent | Skill Path | Commands for "/" Menu | Method |
21
+ |---|---|---|---|
22
+ | OpenCode | `~/.agents/skills/` + `~/.config/opencode/skills/` | `~/.config/opencode/commands/` (60 cmds) | File copy |
23
+ | Claude Code | `~/.claude/skills/` | `~/.claude/commands/` (8 main) | File copy |
24
+ | Cursor | `~/.cursor/skills/` | `~/.cursor/commands/` + `mcp.json` | MCP server |
25
+ | Windsurf | `~/.windsurf/skills/` | `~/.windsurf/workflows/` | File copy |
26
+ | Antigravity | `~/.agent/skills/` + `~/.gemini/antigravity/skills/` | `~/.agent/workflows/` | File copy |
27
+ | GitHub Copilot | `~/.copilot/skills/` + `~/.github/copilot/skills/` | `~/.copilot/commands/` | File copy |
28
+ | Kiro | `~/.kiro/skills/` | `~/.kiro/commands/` | File copy |
29
+ | Codex CLI | `~/.codex/skills/` | `~/.codex/commands/` | File copy |
30
+ | Qoder | `~/.qoder/skills/` | `~/.qoder/commands/` | File copy |
31
+ | Roo Code | `~/.roo/skills/` + `~/.roocode/skills/` | `~/.roo/commands/` | File copy |
32
+ | Gemini CLI | `~/.gemini/skills/` | `~/.gemini/commands/` | File copy |
33
+ | Trae | `~/.trae/skills/` | `~/.trae/commands/` | File copy |
34
+ | Continue | `~/.continue/skills/` | `~/.continue/commands/` | File copy |
35
+ | CodeBuddy | `~/.codebuddy/skills/` | `~/.codebuddy/commands/` | File copy |
36
+ | Droid (Factory) | `~/.factory/skills/` | `~/.factory/commands/` | File copy |
37
+ | KiloCode | `~/.kilocode/skills/` | `~/.kilocode/commands/` | File copy |
38
+ | Warp | `~/.warp/skills/` | `~/.warp/commands/` | File copy |
39
+ | Augment | `~/.augment/skills/` | `~/.augment/commands/` | File copy |
40
+ | CodeWhale | `~/.codewhale/skills/` | `~/.codewhale/commands/` | File copy |
41
+ | Cline | `~/.cline/skills/` | `~/.cline/commands/` | File copy |
42
+ | Aider | `~/.aider/skills/` | `~/.aider/commands/` | File copy |
43
+
44
+ **8 main slash commands shown when typing "/"** (like ui-ux-pro):
45
+ `/audit`, `/audit:web`, `/audit:mobile`, `/audit:api`, `/audit:cloud`, `/audit:quick`, `/audit:report`, `/audit:help`
46
+ + 52 additional commands (total 60) for full coverage.
23
47
 
24
48
  ## Quick Start
25
49
 
26
50
  ```bash
27
- # Auto-detect & install for all found agents
51
+ # Auto-detect & install globally (~/) for all found agents (22 agents checked)
28
52
  npx -y cyberaudit-skill install
29
53
 
30
- # Install for a specific agent
31
- npx -y cyberaudit-skill install --agent opencode
54
+ # Project-local install like ui-ux-pro — 100% guarantee "/" shows 8 main commands
55
+ npx -y cyberaudit-skill install --agent all --local
56
+ # Creates ./.claude/skills/cyberaudit + ./.claude/commands/ (8 cmds), ./.cursor/commands/, ./.windsurf/workflows/, ./.agent/workflows/, etc.
57
+
58
+ # Install for a specific agent (global)
59
+ npx -y cyberaudit-skill install --agent claude-code
60
+ npx -y cyberaudit-skill install --agent cursor --global
61
+
62
+ # Install locally for one agent
63
+ npx -y cyberaudit-skill install --agent claude-code --local
32
64
 
33
65
  # Preview without making changes
34
66
  npx -y cyberaudit-skill install --dry-run
67
+ npx -y cyberaudit-skill install --dry-run --local
68
+
69
+ # Deterministic scan (no LLM)
70
+ npx -y cyberaudit-skill scan ./ --type all
71
+ npx -y cyberaudit-skill scan ./ --json > findings.json
72
+ npx -y cyberaudit-skill report ./ --input findings.json --type web --output report.md
35
73
  ```
36
74
 
37
75
  ## Available Audits
38
76
 
39
- | Command | Scope |
40
- |---|---|
41
- | `cyberaudit-web` | OWASP Top 10 web app audit |
42
- | `cyberaudit-mobile` | OWASP MASVS mobile audit |
43
- | `cyberaudit-api` | API security audit |
44
- | `cyberaudit-cloud` | Cloud config audit |
45
- | `cyberaudit-full` | Full stack (web + API + cloud) |
46
- | `cyberaudit-quick` | 5-minute vulnerability scan |
77
+ | Command | Scope | Deterministic? |
78
+ |---|---|---|
79
+ | `cyberaudit-web` | OWASP Top 10 web app audit | Yes (12 patterns) |
80
+ | `cyberaudit-mobile` | OWASP MASVS mobile audit | Via checklist |
81
+ | `cyberaudit-api` | API security audit | Via checklist |
82
+ | `cyberaudit-cloud` | Cloud config audit (S3, IAM, SG) | Via checklist |
83
+ | `cyberaudit-full` | Full stack (web + API + cloud) | Partial |
84
+ | `cyberaudit-quick` | 5-minute scan (secrets + web) | **Yes, fully deterministic** |
47
85
 
48
- ### Usage
86
+ ### Usage (once installed)
49
87
 
50
- Once installed, load the skill in your AI agent:
88
+ In your AI agent, type "/" you should see 8 main commands:
89
+
90
+ ```
91
+ /audit
92
+ /audit:web
93
+ /audit:mobile
94
+ /audit:api
95
+ /audit:cloud
96
+ /audit:quick
97
+ /audit:report
98
+ /audit:help
99
+ ```
100
+
101
+ Or classic:
51
102
 
52
103
  ```
53
104
  /load-skill cyberaudit
@@ -56,18 +107,26 @@ Once installed, load the skill in your AI agent:
56
107
 
57
108
  ## MCP Server
58
109
 
59
- CyberAudit runs as a stdio MCP server for MCP-compatible agents (Cursor, etc.):
110
+ CyberAudit runs as a stdio MCP server for MCP-compatible agents (Cursor, Claude Desktop, Windsurf, etc.):
60
111
 
61
112
  ```bash
62
113
  npx -y cyberaudit-skill serve
63
114
  ```
64
115
 
116
+ `cyberaudit-quick` now runs deterministic scanners (secrets + web) even via MCP.
117
+
65
118
  ## Verify Installation
66
119
 
67
120
  ```bash
68
121
  npx -y cyberaudit-skill list
122
+ # Shows 22 agents + main "/" commands
69
123
  ```
70
124
 
125
+ ## Deterministic vs LLM
126
+
127
+ - **Deterministic (P2):** 15 secret patterns + 12 web patterns + auto report (score, OWASP, remediation plan) — 40 tests, 0 hallucinations
128
+ - **LLM-based:** Checklists, philosophies, threat models, 60 commands for context-aware audit
129
+
71
130
  ## Repository
72
131
 
73
132
  https://github.com/ArisRoman/cyberaudit-skill
package/dist/cli.d.ts CHANGED
@@ -1,2 +1,12 @@
1
1
  #!/usr/bin/env node
2
+ export type Agent = "opencode" | "claude-code" | "cursor" | "windsurf" | "antigravity" | "antigravity-cli" | "copilot" | "kiro" | "codex" | "qoder" | "roocode" | "gemini" | "trae" | "continue" | "codebuddy" | "droid" | "kilocode" | "warp" | "augment" | "codewhale" | "cline" | "aider";
3
+ interface AgentConfig {
4
+ displayName: string;
5
+ skillPaths: string[];
6
+ commandPaths: string[];
7
+ workflowPaths?: string[];
8
+ mcpPath?: string;
9
+ }
10
+ export declare const AGENT_CONFIG: Record<Agent, AgentConfig>;
11
+ export declare const AGENT_TARGETS: Record<string, string[]>;
2
12
  export {};