faultmesh 1.0.0 → 1.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/README.md +61 -19
- package/dist/dashboard/app.js +1906 -139
- package/dist/dashboard/index.html +393 -99
- package/dist/dashboard/styles.css +1191 -23
- package/dist/engine/ControlApi.d.ts +13 -1
- package/dist/engine/ControlApi.js +304 -14
- package/dist/engine/FaultMeshProxy.d.ts +2 -0
- package/dist/engine/FaultMeshProxy.js +41 -5
- package/dist/engine/TelemetryHub.d.ts +1 -0
- package/dist/engine/TelemetryHub.js +3 -0
- package/dist/engine/ToxicPipeline.d.ts +5 -4
- package/dist/engine/ToxicPipeline.js +17 -4
- package/dist/healer/AiHealer.d.ts +30 -0
- package/dist/healer/AiHealer.js +188 -0
- package/dist/healer/AutoHealer.d.ts +24 -0
- package/dist/healer/AutoHealer.js +503 -0
- package/dist/healer/DiffGenerator.d.ts +10 -0
- package/dist/healer/DiffGenerator.js +63 -0
- package/dist/healer/DiffUtil.d.ts +6 -0
- package/dist/healer/DiffUtil.js +67 -0
- package/dist/healer/transformers/ExpressTransformers.d.ts +43 -0
- package/dist/healer/transformers/ExpressTransformers.js +228 -0
- package/dist/healer/transformers/FastApiTransformers.d.ts +19 -0
- package/dist/healer/transformers/FastApiTransformers.js +93 -0
- package/dist/healer/transformers/GoTransformers.d.ts +19 -0
- package/dist/healer/transformers/GoTransformers.js +106 -0
- package/dist/healer/types.d.ts +59 -0
- package/dist/healer/types.js +1 -0
- package/dist/redteam/EccAgentBridge.d.ts +20 -0
- package/dist/redteam/EccAgentBridge.js +303 -0
- package/dist/redteam/RedTeamEngine.d.ts +56 -0
- package/dist/redteam/RedTeamEngine.js +709 -0
- package/dist/redteam/types.d.ts +117 -0
- package/dist/redteam/types.js +5 -0
- package/dist/scorer/ResilienceScorer.d.ts +5 -0
- package/dist/scorer/ResilienceScorer.js +323 -7
- package/dist/scorer/SecurityAuditor.d.ts +8 -0
- package/dist/scorer/SecurityAuditor.js +471 -69
- package/dist/scorer/TrafficStormAuditor.d.ts +5 -0
- package/dist/scorer/TrafficStormAuditor.js +328 -69
- package/dist/server.js +17 -10
- package/dist/types.d.ts +7 -3
- package/package.json +2 -1
package/dist/types.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export interface ToxicRule<T extends ToxicType = ToxicType> {
|
|
|
37
37
|
direction: ToxicStreamDirection;
|
|
38
38
|
enabled: boolean;
|
|
39
39
|
config: ToxicConfigMap[T];
|
|
40
|
+
pathPattern?: string;
|
|
40
41
|
}
|
|
41
42
|
export interface ProxyConfig {
|
|
42
43
|
port: number;
|
|
@@ -62,10 +63,11 @@ export interface ProxyMetrics {
|
|
|
62
63
|
faultsInjected: number;
|
|
63
64
|
avgLatencyMs: number;
|
|
64
65
|
}
|
|
66
|
+
export type ResilienceToxicCategory = ToxicType | 'jitter' | 'circuit-breaker' | 'starvation' | 'zombie-leak' | 'truncation';
|
|
65
67
|
export interface ResilienceAttackResult {
|
|
66
68
|
name: string;
|
|
67
69
|
description: string;
|
|
68
|
-
toxicUsed:
|
|
70
|
+
toxicUsed: ResilienceToxicCategory;
|
|
69
71
|
passed: boolean;
|
|
70
72
|
latencyMs: number;
|
|
71
73
|
errorCaught?: string;
|
|
@@ -81,10 +83,11 @@ export interface ResilienceScorecard {
|
|
|
81
83
|
recommendations: string[];
|
|
82
84
|
}
|
|
83
85
|
export type SecuritySeverity = 'critical' | 'high' | 'medium' | 'low';
|
|
86
|
+
export type SecurityCategory = 'headers' | 'cors' | 'leakage' | 'injection' | 'errors' | 'pii-leakage' | 'traversal' | 'host-header' | 'ip-spoofing' | 'hpp' | 'cache-control' | 'auth' | 'timing' | 'metadata';
|
|
84
87
|
export interface SecurityCheckResult {
|
|
85
88
|
id: string;
|
|
86
89
|
name: string;
|
|
87
|
-
category:
|
|
90
|
+
category: SecurityCategory;
|
|
88
91
|
description: string;
|
|
89
92
|
passed: boolean;
|
|
90
93
|
severity: SecuritySeverity;
|
|
@@ -101,10 +104,11 @@ export interface SecurityScorecard {
|
|
|
101
104
|
checks: SecurityCheckResult[];
|
|
102
105
|
recommendations: string[];
|
|
103
106
|
}
|
|
107
|
+
export type TrafficStormCategory = 'ratelimit' | 'payload' | 'slowloris' | 'idempotency' | 'redos' | 'concurrency-race' | 'slow-post' | 'avalanche';
|
|
104
108
|
export interface TrafficStormResult {
|
|
105
109
|
id: string;
|
|
106
110
|
name: string;
|
|
107
|
-
category:
|
|
111
|
+
category: TrafficStormCategory;
|
|
108
112
|
description: string;
|
|
109
113
|
passed: boolean;
|
|
110
114
|
severity: SecuritySeverity;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "faultmesh",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "High-Precision Network & API Fault Injection Engine and Live Resilience Dashboard",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server.js",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"start": "tsx src/server.ts",
|
|
20
|
+
"start:sample-vulnerable": "node scripts/start-sample.js",
|
|
20
21
|
"build": "tsc && node scripts/copy-assets.js",
|
|
21
22
|
"test": "vitest run",
|
|
22
23
|
"test:watch": "vitest",
|