wize-dev-kit 0.5.0 → 0.6.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/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/src/security-overlay/_shared/allowlist.js +154 -0
- package/src/security-overlay/_shared/cli-runner.js +87 -0
- package/src/security-overlay/_shared/cvss.js +108 -0
- package/src/security-overlay/_shared/detect.js +125 -0
- package/src/security-overlay/_shared/install-script.js +205 -0
- package/src/security-overlay/_shared/invoke-phase.js +86 -0
- package/src/security-overlay/_shared/owasp.js +56 -0
- package/src/security-overlay/_shared/partial.js +225 -0
- package/src/security-overlay/_shared/preflight.js +175 -0
- package/src/security-overlay/_shared/scope-gate.js +172 -0
- package/src/security-overlay/_shared/scope-parser.js +120 -0
- package/src/security-overlay/agents/red-teamer/agent.yaml +51 -0
- package/src/security-overlay/agents/red-teamer/persona.md +43 -0
- package/src/security-overlay/data/common.txt +115 -0
- package/src/security-overlay/data/owasp-top10.json +15 -0
- package/src/security-overlay/data/tool-allowlist.json +31 -0
- package/src/security-overlay/skills/wize-sec-enumerate/scripts/run-enumerate.js +180 -0
- package/src/security-overlay/skills/wize-sec-enumerate/skill.md +32 -0
- package/src/security-overlay/skills/wize-sec-exploit/data/common.txt +117 -0
- package/src/security-overlay/skills/wize-sec-exploit/scripts/run-ffuf.js +147 -0
- package/src/security-overlay/skills/wize-sec-exploit/scripts/run-nikto.js +145 -0
- package/src/security-overlay/skills/wize-sec-exploit/scripts/run-nuclei.js +176 -0
- package/src/security-overlay/skills/wize-sec-exploit/scripts/run-sqlmap.js +139 -0
- package/src/security-overlay/skills/wize-sec-pentest/scripts/run-pipeline.js +157 -0
- package/src/security-overlay/skills/wize-sec-pentest/skill.md +52 -0
- package/src/security-overlay/skills/wize-sec-recon/scripts/run-gitleaks.js +139 -0
- package/src/security-overlay/skills/wize-sec-recon/scripts/run-osv.js +227 -0
- package/src/security-overlay/skills/wize-sec-recon/scripts/run-recon.js +162 -0
- package/src/security-overlay/skills/wize-sec-recon/skill.md +35 -0
- package/src/security-overlay/skills/wize-sec-report/scripts/render-report.js +999 -0
- package/tools/installer/onboarding.js +1 -0
- package/tools/installer/render-shared.js +5 -1
- package/tools/installer/wize-cli.js +8 -1
|
@@ -26,6 +26,7 @@ function compose(detection, profiles) {
|
|
|
26
26
|
lines.push(' → /wize-quick-dev (Shuri, for small fixes)');
|
|
27
27
|
if (profiles.find(p => p.code === 'web-overlay')) lines.push(' → /wize-web-scaffold (overlay)');
|
|
28
28
|
if (profiles.find(p => p.code === 'app-overlay')) lines.push(' → /wize-app-scaffold (overlay)');
|
|
29
|
+
if (profiles.find(p => p.code === 'security-overlay')) lines.push(' → /wize-sec-pentest (overlay)');
|
|
29
30
|
return lines.join('\n');
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -114,6 +114,7 @@ function collectAssets(kitRoot, { profiles = ['core'] } = {}) {
|
|
|
114
114
|
if (!fm.code) continue;
|
|
115
115
|
if (fm.overlay === 'web' && !profSet.has('web-overlay')) continue;
|
|
116
116
|
if (fm.overlay === 'app' && !profSet.has('app-overlay')) continue;
|
|
117
|
+
if (fm.overlay === 'security' && !profSet.has('security-overlay')) continue;
|
|
117
118
|
out.push({
|
|
118
119
|
kind: 'workflow',
|
|
119
120
|
code: fm.code,
|
|
@@ -130,6 +131,9 @@ function collectAssets(kitRoot, { profiles = ['core'] } = {}) {
|
|
|
130
131
|
const content = fs.readFileSync(skPath, 'utf-8');
|
|
131
132
|
const fm = readFrontmatter(content);
|
|
132
133
|
if (!fm.code) continue;
|
|
134
|
+
if (fm.overlay === 'web' && !profSet.has('web-overlay')) continue;
|
|
135
|
+
if (fm.overlay === 'app' && !profSet.has('app-overlay')) continue;
|
|
136
|
+
if (fm.overlay === 'security' && !profSet.has('security-overlay')) continue;
|
|
133
137
|
out.push({
|
|
134
138
|
kind: 'skill',
|
|
135
139
|
code: fm.code,
|
|
@@ -137,7 +141,7 @@ function collectAssets(kitRoot, { profiles = ['core'] } = {}) {
|
|
|
137
141
|
title: fm.module || '',
|
|
138
142
|
description: fm.module ? `${fm.module} skill: ${fm.name || fm.code}` : (fm.name || fm.code),
|
|
139
143
|
body: bodyAfterFrontmatter(content),
|
|
140
|
-
overlay: null,
|
|
144
|
+
overlay: fm.overlay || null,
|
|
141
145
|
srcDir: path.dirname(skPath)
|
|
142
146
|
});
|
|
143
147
|
}
|
|
@@ -43,7 +43,8 @@ const TARGETS = [
|
|
|
43
43
|
const PROFILES = [
|
|
44
44
|
{ code: 'core', label: 'Wize Dev Core', required: true },
|
|
45
45
|
{ code: 'web-overlay', label: 'Wize Web Dev (overlay)', required: false },
|
|
46
|
-
{ code: 'app-overlay', label: 'Wize App Development (overlay)', required: false }
|
|
46
|
+
{ code: 'app-overlay', label: 'Wize App Development (overlay)', required: false },
|
|
47
|
+
{ code: 'security-overlay', label: 'Wize Security (AI Pentester overlay)', required: false }
|
|
47
48
|
];
|
|
48
49
|
|
|
49
50
|
// Common BCP-47 short codes. Users can type any other value freely.
|
|
@@ -483,6 +484,12 @@ async function cmdInstall(args) {
|
|
|
483
484
|
console.log(`✓ ide targets: ${targets.map(t => t.code).join(', ')}`);
|
|
484
485
|
if (user_name) console.log(`✓ user.toml: agents will call you "${user_name}"`);
|
|
485
486
|
|
|
487
|
+
if (profiles.some(p => p.code === 'security-overlay')) {
|
|
488
|
+
console.log('\n⚠ security-overlay selected — authorized use only.');
|
|
489
|
+
console.log(' Uso autorizado. Você é responsável por obter permissão antes de testar alvos que não são seus.');
|
|
490
|
+
console.log(' O kit detecta alvos fora do scope.md e recusa automaticamente; ainda assim, use com responsabilidade.');
|
|
491
|
+
}
|
|
492
|
+
|
|
486
493
|
if (wantsGitignore) {
|
|
487
494
|
const r = applyGitignore(cwd);
|
|
488
495
|
if (r.changed) console.log(`✓ .gitignore ${r.mode} with the wize-dev-kit block`);
|