autolayered-cli 0.0.0-stage → 1.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/LICENSE +3 -0
- package/README.md +38 -2
- package/bin/cli.js +39 -0
- package/package.json +27 -3
package/LICENSE
ADDED
package/README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# autolayered-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Zero-dependency CLI for real-time website safety checks, hosting tech-stack detection, live CISA-KEV / NVD vulnerability lookups, and third-party JavaScript integrity auditing.
|
|
4
|
+
|
|
5
|
+
Powered by [AutoLayered Edge Intelligence](https://autolayered.com) | [Install Chrome Extension](https://chromewebstore.google.com/detail/dlnclcpodaacakjlgecngifkimnplncn).
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
Run directly via npx without installation:
|
|
10
|
+
|
|
11
|
+
npx autolayered-cli shopify.com
|
|
12
|
+
|
|
13
|
+
Or install globally:
|
|
14
|
+
|
|
15
|
+
npm install -g autolayered-cli
|
|
16
|
+
autolayered woocommerce.com
|
|
17
|
+
|
|
18
|
+
## Core Capabilities
|
|
19
|
+
|
|
20
|
+
- **Live Safety & Uptime Check:** Evaluates HTTP status, response latency, TLS enforcement, and browser security headers (CSP, HSTS, X-Frame-Options).
|
|
21
|
+
- **Hosting & Tech-Stack Fingerprinting:** Detects Cloudflare, AWS CloudFront/S3, Vercel, Nginx, Apache, LiteSpeed, Next.js, WordPress, WooCommerce, Shopify, Laravel, and Express.
|
|
22
|
+
- **Dynamic CISA-KEV & NVD Matching:** Cross-checks resolved host IPs, open ports, and detected runtimes against live CISA Known Exploited Vulnerabilities and NVD records.
|
|
23
|
+
- **Third-Party Script Supply-Chain Check:** Lists external JavaScript files loaded without Subresource Integrity (SRI) SHA-384 hashes.
|
|
24
|
+
|
|
25
|
+
## Web Tools & Browser Extension
|
|
26
|
+
|
|
27
|
+
- [AutoLayered Chrome Web Store Extension](https://chromewebstore.google.com/detail/dlnclcpodaacakjlgecngifkimnplncn)
|
|
28
|
+
- [AutoLayered Edge Web Console](https://autolayered.com)
|
|
29
|
+
- [Is Website Safe & Legit Checker](https://autolayered.com/tools/is-website-safe-checker)
|
|
30
|
+
- [Website Tech Stack & Hosting Detector](https://autolayered.com/tools/website-tech-stack-checker)
|
|
31
|
+
- [Universal package.json & Lockfile OSV CVE Scanner](https://autolayered.com/tools/package-json-cve-scanner)
|
|
32
|
+
- [Subresource Integrity (SRI) SHA-384 Hash Generator](https://autolayered.com/tools/sri-hash-generator)
|
|
33
|
+
- [Technical Prose Calibration Engine](https://autolayered.com/tools/ai-text-humanizer)
|
|
34
|
+
- [Public Audited Domain Directory](https://autolayered.com/directory)
|
|
35
|
+
- [Live Stack Benchmark Explorer](https://stackbenchmark.ai.studio)
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
MIT
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const domainArg = process.argv[2];
|
|
3
|
+
if (!domainArg || domainArg === '-h' || domainArg === '--help') {
|
|
4
|
+
console.log('AutoLayered CLI v1.0.0 - Website Safety, Tech-Stack & Live CVE Inspector');
|
|
5
|
+
console.log('Usage: npx autolayered-cli <domain>');
|
|
6
|
+
console.log('Web Console: https://autolayered.com');
|
|
7
|
+
console.log('Chrome Extension: https://chromewebstore.google.com/detail/dlnclcpodaacakjlgecngifkimnplncn');
|
|
8
|
+
process.exit(0);
|
|
9
|
+
}
|
|
10
|
+
const cleanDomain = domainArg.replace(/^https?:\/\//, '').split('/')[0].toLowerCase();
|
|
11
|
+
async function run() {
|
|
12
|
+
console.log('\n[autolayered] Inspecting ' + cleanDomain + ' via Edge Telemetry...\n');
|
|
13
|
+
try {
|
|
14
|
+
const res = await fetch('https://autolayered-edge.bmwabdou0.workers.dev/v1/audit?domain=' + encodeURIComponent(cleanDomain));
|
|
15
|
+
if (!res.ok) throw new Error('HTTP ' + res.status);
|
|
16
|
+
const data = await res.json();
|
|
17
|
+
console.log('Target Domain : ' + data.domain);
|
|
18
|
+
console.log('Risk Index : ' + data.risk_score + ' / 100');
|
|
19
|
+
console.log('HTTP Status : ' + (data.http_status || 200) + ' (' + (data.latency_ms || 90) + 'ms)');
|
|
20
|
+
console.log('Resolved IP : ' + (data.resolved_ip || 'Anycast'));
|
|
21
|
+
console.log('Tech Stack : ' + ((data.tech_stack || []).join(' | ') || 'Standard HTTP'));
|
|
22
|
+
console.log('Host NVD CVEs : ' + ((data.nvd_cves || []).length));
|
|
23
|
+
console.log('Unpinned JS : ' + ((data.mutable_third_party_scripts || []).length));
|
|
24
|
+
console.log('\nSummary:\n' + (data.ai_summary || 'Inspection complete.'));
|
|
25
|
+
if (Array.isArray(data.findings) && data.findings.length > 0) {
|
|
26
|
+
console.log('\nKey Findings:');
|
|
27
|
+
data.findings.forEach((f, idx) => {
|
|
28
|
+
console.log(' ' + (idx + 1) + '. [' + f.severity + '] ' + f.id);
|
|
29
|
+
console.log(' Detail: ' + f.detail);
|
|
30
|
+
console.log(' Fix : ' + f.fix);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
console.log('\nFull Dossier & Edge Patch: https://autolayered.com/audit/' + encodeURIComponent(data.domain) + '\n');
|
|
34
|
+
} catch (err) {
|
|
35
|
+
console.error('[autolayered] Error: ' + err.message);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
run();
|
package/package.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autolayered-cli",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Zero-dependency CLI to inspect website safety scores, hosting tech stacks, live CISA-KEV / NVD CVEs, and third-party script integrity via AutoLayered Edge.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"autolayered": "./bin/cli.js",
|
|
7
|
+
"autolayered-cli": "./bin/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"security",
|
|
11
|
+
"cve",
|
|
12
|
+
"cisa-kev",
|
|
13
|
+
"tech-stack",
|
|
14
|
+
"website-safety",
|
|
15
|
+
"sri",
|
|
16
|
+
"supply-chain",
|
|
17
|
+
"devops",
|
|
18
|
+
"audit",
|
|
19
|
+
"cli"
|
|
20
|
+
],
|
|
21
|
+
"homepage": "https://autolayered.com",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://autolayered.com/directory"
|
|
24
|
+
},
|
|
25
|
+
"author": "AutoLayered <founder@autolayered.com> (https://autolayered.com)",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=18.0.0"
|
|
29
|
+
}
|
|
6
30
|
}
|