cyberaudit-skill 3.0.7 → 3.1.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/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from "commander";
3
- import { existsSync, mkdirSync, cpSync, readdirSync, writeFileSync, readFileSync } from "fs";
3
+ import { existsSync, mkdirSync, cpSync, writeFileSync, readFileSync } from "fs";
4
4
  import { createInterface } from "readline";
5
5
  import { homedir } from "os";
6
6
  import { join, dirname } from "path";
@@ -37,23 +37,29 @@ function detectInstalledAgents() {
37
37
  found.push("antigravity-cli");
38
38
  return found;
39
39
  }
40
- function installSkill(targetDir, dryRun) {
40
+ function installSkill(targetDir, agent, dryRun) {
41
41
  if (!existsSync(SKILL_SRC)) {
42
42
  console.error(`✗ Skill source not found at ${SKILL_SRC}.`);
43
43
  return false;
44
44
  }
45
- const skillMdOk = existsSync(targetDir) && existsSync(join(targetDir, "SKILL.md"));
46
- if (skillMdOk) {
47
- console.log(` ✓ Already installed at ${targetDir}`);
48
- return true;
49
- }
50
45
  if (dryRun) {
51
46
  console.log(` → Would install to ${targetDir} (--dry-run)`);
52
47
  return true;
53
48
  }
49
+ // Install/update skill files
54
50
  mkdirSync(targetDir, { recursive: true });
55
51
  cpSync(SKILL_SRC, targetDir, { recursive: true });
56
- console.log(` ✓ Installed at ${targetDir} (${readdirSync(targetDir).length} files)`);
52
+ console.log(` ✓ Installed at ${targetDir}`);
53
+ // Install command files for opencode
54
+ if (agent === "opencode") {
55
+ const cmdDir = join(homedir(), ".config", "opencode", "commands");
56
+ const cmdSrc = join(PKG_ROOT, "skills", "cyberaudit", "commands");
57
+ if (existsSync(cmdSrc)) {
58
+ mkdirSync(cmdDir, { recursive: true });
59
+ cpSync(cmdSrc, cmdDir, { recursive: true });
60
+ console.log(` ✓ Commands installed to opencode`);
61
+ }
62
+ }
57
63
  return true;
58
64
  }
59
65
  function installForCursor(dryRun) {
@@ -92,7 +98,7 @@ function installForAgent(agent, dryRun) {
92
98
  const paths = AGENT_TARGETS[agent];
93
99
  if (!paths?.length)
94
100
  return false;
95
- return installSkill(paths[0], dryRun);
101
+ return installSkill(paths[0], agent, dryRun);
96
102
  }
97
103
  }
98
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberaudit-skill",
3
- "version": "3.0.7",
3
+ "version": "3.1.0",
4
4
  "description": "Universal security audit skill for AI agents. Install once, audit any web or mobile app. OpenCode, Claude Code, Cursor, Kiro, Gemini — all supported.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Run full security audit (auto-detect web/mobile/API)
3
+ ---
4
+ Run a full security audit.
5
+ 1. Load COMMANDS.md for all available commands
6
+ 2. Detect type: web / mobile / API / both
7
+ 3. Load SKILL.md then boot sequence (STEP 1-4)
8
+ 4. Execute full audit methodology
9
+ 5. Score findings with CVSS 3.1
10
+ 6. Generate report
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: API security audit — OWASP API Top 10, REST/GraphQL/WS
3
+ ---
4
+ Run an API security audit.
5
+ 1. Load api/API-PHILOSOPHY.md for methodology
6
+ 2. Load api/API-CHECKLIST.md for full checklist
7
+ 3. Load type-specific guide from api/types/ (REST.md, GRAPHQL.md, or WEBSOCKET.md)
8
+ 4. Execute every phase: discovery, auth, authorization (BOLA/BOPLA), input validation, rate limiting, data exposure, config
9
+ 5. Score each finding with CVSS 3.1
10
+ 6. Generate report using reports/REPORT-TEMPLATE-API.md
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: List all available CyberAudit commands
3
+ ---
4
+ Display all available CyberAudit commands.
5
+ Load and display the command tables from COMMANDS.md.
6
+ Sections: Global, Web, Mobile, API, Compliance.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Mobile app audit — OWASP MASVS, storage, network, binary
3
+ ---
4
+ Run a mobile application security audit.
5
+ 1. Load MOBILE-PHILOSOPHY.md for methodology
6
+ 2. Load MOBILE-CHECKLIST.md for full checklist
7
+ 3. Load relevant framework guide from mobile/frameworks/
8
+ 4. Execute every phase: storage, network, binary, permissions, deeplinks, auth, crypto, runtime
9
+ 5. Score each finding with CVSS 3.1
10
+ 6. Generate report using reports/REPORT-TEMPLATE-MOBILE.md
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: Quick scan — critical vulnerabilities only (15-30 min)
3
+ ---
4
+ Run a quick security scan (critical vulnerabilities only).
5
+ 1. Focus on: exposed secrets, critical CVE, auth bypass, public debug endpoints, massive data leaks
6
+ 2. Exclude: low/medium findings, business logic, architecture review
7
+ 3. Report only CRITICAL + HIGH findings with CVSS 3.1
8
+ 4. Generate minimal report
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Generate complete audit report with CVSS scoring
3
+ ---
4
+ Generate a complete security audit report.
5
+ 1. Collect all findings from current session
6
+ 2. Score each with CVSS 3.1 (vector string + numeric score)
7
+ 3. Use appropriate report template from reports/
8
+ 4. Include: executive summary, scope, findings table, detailed findings, remediation plan, compliance table, conclusion
9
+ 5. Prioritize by severity: CRITICAL → HIGH → MEDIUM → LOW
10
+ 6. Include fixed code for each finding
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Web application audit — OWASP Top 10, full methodology
3
+ ---
4
+ Run a web application security audit.
5
+ 1. Load WEB-PHILOSOPHY.md for methodology
6
+ 2. Load WEB-CHECKLIST.md for full checklist
7
+ 3. Load relevant framework guide from web/frameworks/
8
+ 4. Execute every phase: auth, injection, XSS, CSRF, CORS, secrets, deps, SSRF, IDOR, logic, crypto, XXE, deserialization
9
+ 5. Score each finding with CVSS 3.1
10
+ 6. Generate report using reports/REPORT-TEMPLATE-WEB.md