deepseek-coder-agent-cli 1.0.13 → 1.0.14
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 +28 -594
- package/dist/bin/deepseek.js +53 -11
- package/dist/bin/deepseek.js.map +1 -1
- package/dist/capabilities/index.d.ts +1 -15
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/index.js +4 -17
- package/dist/capabilities/index.js.map +1 -1
- package/dist/plugins/index.d.ts +1 -48
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +2 -104
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/tools/index.d.ts +4 -2
- package/dist/plugins/tools/index.d.ts.map +1 -1
- package/dist/plugins/tools/index.js +5 -2
- package/dist/plugins/tools/index.js.map +1 -1
- package/package.json +9 -16
- package/dist/capabilities/appleSecurityCapability.d.ts +0 -57
- package/dist/capabilities/appleSecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/appleSecurityCapability.js +0 -197
- package/dist/capabilities/appleSecurityCapability.js.map +0 -1
- package/dist/capabilities/authorizedSecurityCapability.d.ts +0 -17
- package/dist/capabilities/authorizedSecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/authorizedSecurityCapability.js +0 -333
- package/dist/capabilities/authorizedSecurityCapability.js.map +0 -1
- package/dist/capabilities/biocognitiveWarfare.d.ts +0 -136
- package/dist/capabilities/biocognitiveWarfare.d.ts.map +0 -1
- package/dist/capabilities/biocognitiveWarfare.js +0 -603
- package/dist/capabilities/biocognitiveWarfare.js.map +0 -1
- package/dist/capabilities/chineseCnoIntegration.d.ts +0 -60
- package/dist/capabilities/chineseCnoIntegration.d.ts.map +0 -1
- package/dist/capabilities/chineseCnoIntegration.js +0 -253
- package/dist/capabilities/chineseCnoIntegration.js.map +0 -1
- package/dist/capabilities/cnoCapability.d.ts +0 -110
- package/dist/capabilities/cnoCapability.d.ts.map +0 -1
- package/dist/capabilities/cnoCapability.js +0 -785
- package/dist/capabilities/cnoCapability.js.map +0 -1
- package/dist/capabilities/eliteCryptoMilitaryCapability.d.ts +0 -99
- package/dist/capabilities/eliteCryptoMilitaryCapability.d.ts.map +0 -1
- package/dist/capabilities/eliteCryptoMilitaryCapability.js +0 -618
- package/dist/capabilities/eliteCryptoMilitaryCapability.js.map +0 -1
- package/dist/capabilities/integratedUnifiedCapability.d.ts +0 -105
- package/dist/capabilities/integratedUnifiedCapability.d.ts.map +0 -1
- package/dist/capabilities/integratedUnifiedCapability.js +0 -422
- package/dist/capabilities/integratedUnifiedCapability.js.map +0 -1
- package/dist/capabilities/maxOffensiveUkraineCapability.d.ts +0 -46
- package/dist/capabilities/maxOffensiveUkraineCapability.d.ts.map +0 -1
- package/dist/capabilities/maxOffensiveUkraineCapability.js +0 -725
- package/dist/capabilities/maxOffensiveUkraineCapability.js.map +0 -1
- package/dist/capabilities/offensiveDestructionCapability.d.ts +0 -98
- package/dist/capabilities/offensiveDestructionCapability.d.ts.map +0 -1
- package/dist/capabilities/offensiveDestructionCapability.js +0 -848
- package/dist/capabilities/offensiveDestructionCapability.js.map +0 -1
- package/dist/capabilities/quantumSpaceWarfare.d.ts +0 -108
- package/dist/capabilities/quantumSpaceWarfare.d.ts.map +0 -1
- package/dist/capabilities/quantumSpaceWarfare.js +0 -342
- package/dist/capabilities/quantumSpaceWarfare.js.map +0 -1
- package/dist/capabilities/readmeIntegration.d.ts +0 -161
- package/dist/capabilities/readmeIntegration.d.ts.map +0 -1
- package/dist/capabilities/readmeIntegration.js +0 -1034
- package/dist/capabilities/readmeIntegration.js.map +0 -1
- package/dist/capabilities/sharedMilitaryInfrastructure.d.ts +0 -89
- package/dist/capabilities/sharedMilitaryInfrastructure.d.ts.map +0 -1
- package/dist/capabilities/sharedMilitaryInfrastructure.js +0 -233
- package/dist/capabilities/sharedMilitaryInfrastructure.js.map +0 -1
- package/dist/capabilities/simpleSecurityCapability.d.ts +0 -36
- package/dist/capabilities/simpleSecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/simpleSecurityCapability.js +0 -271
- package/dist/capabilities/simpleSecurityCapability.js.map +0 -1
- package/dist/capabilities/ultimateChineseCno.d.ts +0 -115
- package/dist/capabilities/ultimateChineseCno.d.ts.map +0 -1
- package/dist/capabilities/ultimateChineseCno.js +0 -516
- package/dist/capabilities/ultimateChineseCno.js.map +0 -1
- package/dist/capabilities/ultimateIntegrationDemo.d.ts +0 -54
- package/dist/capabilities/ultimateIntegrationDemo.d.ts.map +0 -1
- package/dist/capabilities/ultimateIntegrationDemo.js +0 -423
- package/dist/capabilities/ultimateIntegrationDemo.js.map +0 -1
- package/dist/capabilities/unifiedMilitaryCapability.d.ts +0 -63
- package/dist/capabilities/unifiedMilitaryCapability.d.ts.map +0 -1
- package/dist/capabilities/unifiedMilitaryCapability.js +0 -384
- package/dist/capabilities/unifiedMilitaryCapability.js.map +0 -1
- package/dist/capabilities/universalSecurityCapability.d.ts +0 -46
- package/dist/capabilities/universalSecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/universalSecurityCapability.js +0 -580
- package/dist/capabilities/universalSecurityCapability.js.map +0 -1
- package/dist/capabilities/zeroDayDiscoveryCapability.d.ts +0 -31
- package/dist/capabilities/zeroDayDiscoveryCapability.d.ts.map +0 -1
- package/dist/capabilities/zeroDayDiscoveryCapability.js +0 -183
- package/dist/capabilities/zeroDayDiscoveryCapability.js.map +0 -1
- package/dist/core/antiTermination.d.ts +0 -226
- package/dist/core/antiTermination.d.ts.map +0 -1
- package/dist/core/antiTermination.js +0 -713
- package/dist/core/antiTermination.js.map +0 -1
- package/dist/core/index.d.ts +0 -26
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -54
- package/dist/core/index.js.map +0 -1
- package/dist/core/securityTournament.d.ts +0 -83
- package/dist/core/securityTournament.d.ts.map +0 -1
- package/dist/core/securityTournament.js +0 -357
- package/dist/core/securityTournament.js.map +0 -1
- package/dist/core/zeroDayDiscovery.d.ts +0 -96
- package/dist/core/zeroDayDiscovery.d.ts.map +0 -1
- package/dist/core/zeroDayDiscovery.js +0 -358
- package/dist/core/zeroDayDiscovery.js.map +0 -1
- package/dist/headless/interactiveShell.d.ts +0 -22
- package/dist/headless/interactiveShell.d.ts.map +0 -1
- package/dist/headless/interactiveShell.js +0 -3827
- package/dist/headless/interactiveShell.js.map +0 -1
- package/dist/plugins/tools/apple/secureApplePlugin.d.ts +0 -3
- package/dist/plugins/tools/apple/secureApplePlugin.d.ts.map +0 -1
- package/dist/plugins/tools/apple/secureApplePlugin.js +0 -26
- package/dist/plugins/tools/apple/secureApplePlugin.js.map +0 -1
- package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.d.ts +0 -3
- package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.js +0 -9
- package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.js.map +0 -1
- package/dist/plugins/tools/nodeDefaults.d.ts +0 -15
- package/dist/plugins/tools/nodeDefaults.d.ts.map +0 -1
- package/dist/plugins/tools/nodeDefaults.js +0 -37
- package/dist/plugins/tools/nodeDefaults.js.map +0 -1
- package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.d.ts +0 -3
- package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.js +0 -9
- package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.js.map +0 -1
- package/dist/plugins/tools/tao/secureTaoPlugin.d.ts +0 -3
- package/dist/plugins/tools/tao/secureTaoPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/tao/secureTaoPlugin.js +0 -37
- package/dist/plugins/tools/tao/secureTaoPlugin.js.map +0 -1
- package/dist/tools/emailTools.d.ts +0 -140
- package/dist/tools/emailTools.d.ts.map +0 -1
- package/dist/tools/emailTools.js +0 -792
- package/dist/tools/emailTools.js.map +0 -1
- package/dist/tools/secureAppleExploitation.d.ts +0 -29
- package/dist/tools/secureAppleExploitation.d.ts.map +0 -1
- package/dist/tools/secureAppleExploitation.js +0 -518
- package/dist/tools/secureAppleExploitation.js.map +0 -1
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zero-Day Discovery Engine
|
|
3
|
-
*
|
|
4
|
-
* MAXIMUM CAPABILITIES FOR DISCOVERING ZERO-DAYS IN ANY POSSIBLE WAY
|
|
5
|
-
*
|
|
6
|
-
* Integrates with universal security audit, tournament RL, and provides
|
|
7
|
-
* comprehensive zero-day discovery pathways across all attack surfaces.
|
|
8
|
-
*/
|
|
9
|
-
import { type SecurityFinding } from './universalSecurityAudit.js';
|
|
10
|
-
export interface ZeroDayDiscoveryConfig {
|
|
11
|
-
/** Primary target (domain, IP, cloud project, etc.) */
|
|
12
|
-
target: string;
|
|
13
|
-
/** Type of target for focused discovery */
|
|
14
|
-
targetType: 'web' | 'cloud' | 'mobile' | 'api' | 'infrastructure' | 'iot' | 'network' | 'binary' | 'source';
|
|
15
|
-
/** Specific attack surfaces to target */
|
|
16
|
-
attackSurface: string[];
|
|
17
|
-
/** Discovery aggressiveness 0-1 */
|
|
18
|
-
aggressiveness: number;
|
|
19
|
-
/** Enable live exploitation verification */
|
|
20
|
-
liveVerification: boolean;
|
|
21
|
-
/** Enable tournament RL optimization */
|
|
22
|
-
enableTournament: boolean;
|
|
23
|
-
/** Zero-day heuristic categories to apply */
|
|
24
|
-
heuristics: ZeroDayHeuristic[];
|
|
25
|
-
/** Output directory for findings */
|
|
26
|
-
outputDir: string;
|
|
27
|
-
}
|
|
28
|
-
export type ZeroDayHeuristic = 'complexityCorrelation' | 'trustBoundaryAnalysis' | 'temporalCoupling' | 'serializationBoundaries' | 'emergentBehaviors' | 'errorHandlingAsymmetry' | 'implicitStateDependencies' | 'resourceExhaustion' | 'supplyChainAnalysis' | 'cryptographicWeakness' | 'raceConditions' | 'memoryCorruption' | 'logicBugs' | 'configurationDrift';
|
|
29
|
-
export interface ZeroDayFinding extends SecurityFinding {
|
|
30
|
-
zeroDayConfidence: number;
|
|
31
|
-
heuristic: ZeroDayHeuristic;
|
|
32
|
-
attackVector: string;
|
|
33
|
-
exploitationComplexity: 'low' | 'medium' | 'high' | 'expert';
|
|
34
|
-
patchedIn: string | null;
|
|
35
|
-
discoveryMethod: 'heuristic' | 'tournament' | 'fuzzing' | 'symbolic' | 'taint' | 'pattern';
|
|
36
|
-
}
|
|
37
|
-
export interface ZeroDayDiscoveryResult {
|
|
38
|
-
target: string;
|
|
39
|
-
targetType: string;
|
|
40
|
-
startTime: string;
|
|
41
|
-
endTime: string;
|
|
42
|
-
duration: number;
|
|
43
|
-
findings: ZeroDayFinding[];
|
|
44
|
-
discoveryMetrics: {
|
|
45
|
-
totalPathsExplored: number;
|
|
46
|
-
uniqueAttackVectors: number;
|
|
47
|
-
heuristicMatches: number;
|
|
48
|
-
tournamentRounds: number;
|
|
49
|
-
verificationAttempts: number;
|
|
50
|
-
falsePositives: number;
|
|
51
|
-
};
|
|
52
|
-
recommendations: {
|
|
53
|
-
immediate: string[];
|
|
54
|
-
shortTerm: string[];
|
|
55
|
-
longTerm: string[];
|
|
56
|
-
};
|
|
57
|
-
evidence: {
|
|
58
|
-
logs: string[];
|
|
59
|
-
screenshots?: string[];
|
|
60
|
-
networkTraces?: string[];
|
|
61
|
-
memoryDumps?: string[];
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
export declare class ZeroDayDiscovery {
|
|
65
|
-
private config;
|
|
66
|
-
private findings;
|
|
67
|
-
private evidence;
|
|
68
|
-
constructor(config: Partial<ZeroDayDiscoveryConfig> & {
|
|
69
|
-
target: string;
|
|
70
|
-
});
|
|
71
|
-
/**
|
|
72
|
-
* MAXIMUM CAPABILITY ZERO-DAY DISCOVERY
|
|
73
|
-
*
|
|
74
|
-
* Executes comprehensive discovery across all available pathways:
|
|
75
|
-
* 1. Heuristic-based vulnerability prediction
|
|
76
|
-
* 2. Universal security audit integration
|
|
77
|
-
* 3. Tournament RL optimization
|
|
78
|
-
* 4. Live verification and exploitation
|
|
79
|
-
* 5. Multi-vector attack surface exploration
|
|
80
|
-
*/
|
|
81
|
-
discover(): Promise<ZeroDayDiscoveryResult>;
|
|
82
|
-
private discoverViaHeuristics;
|
|
83
|
-
private generateHeuristicFindings;
|
|
84
|
-
private discoverViaUniversalAudit;
|
|
85
|
-
private discoverViaTournament;
|
|
86
|
-
private verifyFindings;
|
|
87
|
-
private generateDiscoveryResult;
|
|
88
|
-
private saveFindings;
|
|
89
|
-
private inferProviderFromTarget;
|
|
90
|
-
private determineAttackVectorFromFinding;
|
|
91
|
-
private determineSeverity;
|
|
92
|
-
private determineExploitability;
|
|
93
|
-
private determineAttackVector;
|
|
94
|
-
private determineExploitationComplexity;
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=zeroDayDiscovery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zeroDayDiscovery.d.ts","sourceRoot":"","sources":["../../src/core/zeroDayDiscovery.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAsB,KAAK,eAAe,EAA2C,MAAM,6BAA6B,CAAC;AAMhI,MAAM,WAAW,sBAAsB;IACrC,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,UAAU,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,gBAAgB,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC5G,yCAAyC;IACzC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,mCAAmC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,wCAAwC;IACxC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,6CAA6C;IAC7C,UAAU,EAAE,gBAAgB,EA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EAAE;QACR,IAAI,EAAE,MAAM,EAAE,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;QACzB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AA8GD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,QAAQ,CAAoD;gBAExD,MAAM,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;IAkBxE;;;;;;;;;OASG;IACG,QAAQ,IAAI,OAAO,CAAC,sBAAsB,CAAC;YAkDnC,qBAAqB;IAsBnC,OAAO,CAAC,yBAAyB;YA0CnB,yBAAyB;YAMzB,qBAAqB;YAMrB,cAAc;IAwB5B,OAAO,CAAC,uBAAuB;IA2C/B,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,gCAAgC;IAMxC,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,+BAA+B;CAOxC"}
|
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zero-Day Discovery Engine
|
|
3
|
-
*
|
|
4
|
-
* MAXIMUM CAPABILITIES FOR DISCOVERING ZERO-DAYS IN ANY POSSIBLE WAY
|
|
5
|
-
*
|
|
6
|
-
* Integrates with universal security audit, tournament RL, and provides
|
|
7
|
-
* comprehensive zero-day discovery pathways across all attack surfaces.
|
|
8
|
-
*/
|
|
9
|
-
import { join } from 'path';
|
|
10
|
-
import { mkdirSync, writeFileSync, existsSync } from 'fs';
|
|
11
|
-
// Core heuristics matrix for zero-day discovery
|
|
12
|
-
const ZERO_DAY_HEURISTIC_MATRIX = {
|
|
13
|
-
complexityCorrelation: {
|
|
14
|
-
principle: 'Vulnerabilities cluster where code complexity exceeds cognitive limits',
|
|
15
|
-
indicators: ['Cyclomatic complexity > 50', 'Function length > 500 lines', 'Deep nesting > 6 levels', 'Multiple async patterns', 'Complex state machines'],
|
|
16
|
-
targetTypes: ['source', 'binary', 'api', 'infrastructure'],
|
|
17
|
-
weight: 0.85,
|
|
18
|
-
discoveryMethods: ['static-analysis', 'pattern-matching', 'complexity-metrics']
|
|
19
|
-
},
|
|
20
|
-
trustBoundaryAnalysis: {
|
|
21
|
-
principle: 'Every trust boundary crossing is a potential attack surface',
|
|
22
|
-
indicators: ['Service-to-service auth', 'Cross-region data transfer', 'User input propagation', 'Third-party integrations', 'API gateway boundaries'],
|
|
23
|
-
targetTypes: ['web', 'api', 'cloud', 'network', 'infrastructure'],
|
|
24
|
-
weight: 0.90,
|
|
25
|
-
discoveryMethods: ['dynamic-analysis', 'api-fuzzing', 'permission-testing']
|
|
26
|
-
},
|
|
27
|
-
temporalCoupling: {
|
|
28
|
-
principle: 'Time-based operations create race condition opportunities',
|
|
29
|
-
indicators: ['Async token refresh', 'Distributed consensus', 'Cache invalidation', 'Session management', 'Rate limiting windows'],
|
|
30
|
-
targetTypes: ['web', 'api', 'mobile', 'cloud', 'network'],
|
|
31
|
-
weight: 0.80,
|
|
32
|
-
discoveryMethods: ['fuzzing', 'race-condition-testing', 'timing-analysis']
|
|
33
|
-
},
|
|
34
|
-
serializationBoundaries: {
|
|
35
|
-
principle: 'Data format transitions are high-risk transformation points',
|
|
36
|
-
indicators: ['JSON to protobuf conversion', 'XML parsing', 'Custom serialization', 'Encoding transitions', 'Schema migrations'],
|
|
37
|
-
targetTypes: ['api', 'web', 'mobile', 'binary'],
|
|
38
|
-
weight: 0.88,
|
|
39
|
-
discoveryMethods: ['fuzzing', 'deserialization-testing', 'format-analysis']
|
|
40
|
-
},
|
|
41
|
-
emergentBehaviors: {
|
|
42
|
-
principle: 'Complex systems exhibit behaviors not present in components',
|
|
43
|
-
indicators: ['Multi-service workflows', 'Distributed transactions', 'Event-driven architectures', 'Microservice meshes', 'Cascading failures'],
|
|
44
|
-
targetTypes: ['cloud', 'infrastructure', 'api', 'network'],
|
|
45
|
-
weight: 0.75,
|
|
46
|
-
discoveryMethods: ['integration-testing', 'system-modeling', 'failure-injection']
|
|
47
|
-
},
|
|
48
|
-
errorHandlingAsymmetry: {
|
|
49
|
-
principle: 'Error paths receive less testing than happy paths',
|
|
50
|
-
indicators: ['Exception handling in auth', 'Rollback logic', 'Timeout handling', 'Partial failure states', 'Recovery procedures'],
|
|
51
|
-
targetTypes: ['web', 'api', 'mobile', 'cloud', 'binary'],
|
|
52
|
-
weight: 0.82,
|
|
53
|
-
discoveryMethods: ['error-injection', 'fault-tolerance-testing', 'exception-fuzzing']
|
|
54
|
-
},
|
|
55
|
-
implicitStateDependencies: {
|
|
56
|
-
principle: 'Hidden state coupling creates unexpected interactions',
|
|
57
|
-
indicators: ['Global configuration', 'Shared caches', 'Connection pools', 'Thread-local storage', 'Implicit ordering'],
|
|
58
|
-
targetTypes: ['source', 'binary', 'api', 'infrastructure'],
|
|
59
|
-
weight: 0.78,
|
|
60
|
-
discoveryMethods: ['state-analysis', 'dependency-mapping', 'concurrency-testing']
|
|
61
|
-
},
|
|
62
|
-
resourceExhaustion: {
|
|
63
|
-
principle: 'Resource limits are often enforced inconsistently',
|
|
64
|
-
indicators: ['Memory allocation', 'File handles', 'Network connections', 'CPU quotas', 'Storage limits'],
|
|
65
|
-
targetTypes: ['web', 'api', 'mobile', 'cloud', 'network'],
|
|
66
|
-
weight: 0.70,
|
|
67
|
-
discoveryMethods: ['load-testing', 'resource-fuzzing', 'boundary-testing']
|
|
68
|
-
},
|
|
69
|
-
supplyChainAnalysis: {
|
|
70
|
-
principle: 'Third-party dependencies introduce unknown vulnerabilities',
|
|
71
|
-
indicators: ['Outdated libraries', 'Unmaintained packages', 'Build process dependencies', 'Transitive dependencies', 'Container base images'],
|
|
72
|
-
targetTypes: ['source', 'binary', 'web', 'api', 'mobile'],
|
|
73
|
-
weight: 0.88,
|
|
74
|
-
discoveryMethods: ['dependency-analysis', 'vulnerability-scanning', 'provenance-tracking']
|
|
75
|
-
},
|
|
76
|
-
cryptographicWeakness: {
|
|
77
|
-
principle: 'Cryptographic implementations often contain subtle flaws',
|
|
78
|
-
indicators: ['Weak random generation', 'Improper key management', 'Side-channel leaks', 'Protocol implementation bugs', 'Algorithm misuse'],
|
|
79
|
-
targetTypes: ['web', 'api', 'mobile', 'binary', 'network'],
|
|
80
|
-
weight: 0.92,
|
|
81
|
-
discoveryMethods: ['crypto-analysis', 'side-channel-testing', 'protocol-fuzzing']
|
|
82
|
-
},
|
|
83
|
-
raceConditions: {
|
|
84
|
-
principle: 'Concurrent access to shared resources creates timing windows',
|
|
85
|
-
indicators: ['File locking', 'Database transactions', 'Memory access patterns', 'Network request ordering', 'Cache synchronization'],
|
|
86
|
-
targetTypes: ['web', 'api', 'mobile', 'cloud', 'binary'],
|
|
87
|
-
weight: 0.83,
|
|
88
|
-
discoveryMethods: ['concurrency-fuzzing', 'race-detection', 'timing-analysis']
|
|
89
|
-
},
|
|
90
|
-
memoryCorruption: {
|
|
91
|
-
principle: 'Memory management errors enable arbitrary code execution',
|
|
92
|
-
indicators: ['Buffer overflows', 'Use-after-free', 'Integer overflows', 'Format string bugs', 'Type confusion'],
|
|
93
|
-
targetTypes: ['binary', 'source', 'mobile', 'iot'],
|
|
94
|
-
weight: 0.95,
|
|
95
|
-
discoveryMethods: ['fuzzing', 'sanitizer-instrumentation', 'binary-analysis']
|
|
96
|
-
},
|
|
97
|
-
logicBugs: {
|
|
98
|
-
principle: 'Business logic errors create security bypass opportunities',
|
|
99
|
-
indicators: ['Authentication bypass', 'Authorization flaws', 'Input validation gaps', 'Business rule circumvention', 'Workflow manipulation'],
|
|
100
|
-
targetTypes: ['web', 'api', 'mobile', 'cloud'],
|
|
101
|
-
weight: 0.79,
|
|
102
|
-
discoveryMethods: ['logic-testing', 'state-transition-analysis', 'business-rule-fuzzing']
|
|
103
|
-
},
|
|
104
|
-
configurationDrift: {
|
|
105
|
-
principle: 'Configuration changes over time introduce security gaps',
|
|
106
|
-
indicators: ['Default credentials', 'Over-permissive settings', 'Outdated security policies', 'Inconsistent hardening', 'Documentation drift'],
|
|
107
|
-
targetTypes: ['cloud', 'infrastructure', 'network', 'iot'],
|
|
108
|
-
weight: 0.72,
|
|
109
|
-
discoveryMethods: ['configuration-audit', 'compliance-checking', 'drift-detection']
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
export class ZeroDayDiscovery {
|
|
113
|
-
config;
|
|
114
|
-
findings = [];
|
|
115
|
-
evidence = { logs: [] };
|
|
116
|
-
constructor(config) {
|
|
117
|
-
this.config = {
|
|
118
|
-
target: config.target,
|
|
119
|
-
targetType: config.targetType || 'web',
|
|
120
|
-
attackSurface: config.attackSurface || [],
|
|
121
|
-
aggressiveness: config.aggressiveness || 0.8,
|
|
122
|
-
liveVerification: config.liveVerification ?? true,
|
|
123
|
-
enableTournament: config.enableTournament ?? true,
|
|
124
|
-
heuristics: config.heuristics || Object.keys(ZERO_DAY_HEURISTIC_MATRIX),
|
|
125
|
-
outputDir: config.outputDir || process.cwd(),
|
|
126
|
-
};
|
|
127
|
-
// Ensure output directory exists
|
|
128
|
-
if (!existsSync(this.config.outputDir)) {
|
|
129
|
-
mkdirSync(this.config.outputDir, { recursive: true });
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* MAXIMUM CAPABILITY ZERO-DAY DISCOVERY
|
|
134
|
-
*
|
|
135
|
-
* Executes comprehensive discovery across all available pathways:
|
|
136
|
-
* 1. Heuristic-based vulnerability prediction
|
|
137
|
-
* 2. Universal security audit integration
|
|
138
|
-
* 3. Tournament RL optimization
|
|
139
|
-
* 4. Live verification and exploitation
|
|
140
|
-
* 5. Multi-vector attack surface exploration
|
|
141
|
-
*/
|
|
142
|
-
async discover() {
|
|
143
|
-
const startTime = Date.now();
|
|
144
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Starting zero-day discovery for target: ${this.config.target}`);
|
|
145
|
-
console.log('\n');
|
|
146
|
-
console.log('████████████████████████████████████████████████████████████████████████████████');
|
|
147
|
-
console.log('██ ██');
|
|
148
|
-
console.log('██ MAXIMUM CAPABILITY ZERO-DAY DISCOVERY ██');
|
|
149
|
-
console.log('██ Any Target • Any Method • Any Surface ██');
|
|
150
|
-
console.log('██ ██');
|
|
151
|
-
console.log('████████████████████████████████████████████████████████████████████████████████\n');
|
|
152
|
-
console.log(` Target: ${this.config.target}`);
|
|
153
|
-
console.log(` Type: ${this.config.targetType}`);
|
|
154
|
-
console.log(` Attack Surface: ${this.config.attackSurface.join(', ') || 'ALL'}`);
|
|
155
|
-
console.log(` Aggressiveness: ${this.config.aggressiveness}`);
|
|
156
|
-
console.log(` Live Verification: ${this.config.liveVerification ? 'ENABLED' : 'disabled'}`);
|
|
157
|
-
console.log(` Tournament RL: ${this.config.enableTournament ? 'ENABLED' : 'disabled'}`);
|
|
158
|
-
console.log(` Heuristics: ${this.config.heuristics.length}\n`);
|
|
159
|
-
// Phase 1: Heuristic-based discovery
|
|
160
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Starting heuristic-based discovery`);
|
|
161
|
-
await this.discoverViaHeuristics();
|
|
162
|
-
// Phase 2: Universal security audit integration
|
|
163
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Starting universal security audit`);
|
|
164
|
-
await this.discoverViaUniversalAudit();
|
|
165
|
-
// Phase 3: Tournament RL optimization (if enabled)
|
|
166
|
-
if (this.config.enableTournament) {
|
|
167
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Starting tournament RL optimization`);
|
|
168
|
-
await this.discoverViaTournament();
|
|
169
|
-
}
|
|
170
|
-
// Phase 4: Live verification (if enabled)
|
|
171
|
-
if (this.config.liveVerification && this.findings.length > 0) {
|
|
172
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Starting live verification`);
|
|
173
|
-
await this.verifyFindings();
|
|
174
|
-
}
|
|
175
|
-
// Phase 5: Generate comprehensive report
|
|
176
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Generating final report`);
|
|
177
|
-
const result = this.generateDiscoveryResult(startTime);
|
|
178
|
-
// Save findings
|
|
179
|
-
this.saveFindings(result);
|
|
180
|
-
return result;
|
|
181
|
-
}
|
|
182
|
-
async discoverViaHeuristics() {
|
|
183
|
-
const applicableHeuristics = this.config.heuristics.filter(heuristic => ZERO_DAY_HEURISTIC_MATRIX[heuristic].targetTypes.includes(this.config.targetType));
|
|
184
|
-
console.log(' 🔍 HEURISTIC DISCOVERY');
|
|
185
|
-
console.log(` Applicable heuristics: ${applicableHeuristics.length}/${this.config.heuristics.length}`);
|
|
186
|
-
for (const heuristic of applicableHeuristics) {
|
|
187
|
-
const heuristicConfig = ZERO_DAY_HEURISTIC_MATRIX[heuristic];
|
|
188
|
-
console.log(` • ${heuristic}: ${heuristicConfig.principle}`);
|
|
189
|
-
// Generate findings based on heuristic
|
|
190
|
-
const findings = this.generateHeuristicFindings(heuristic);
|
|
191
|
-
this.findings.push(...findings);
|
|
192
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Heuristic "${heuristic}" generated ${findings.length} findings`);
|
|
193
|
-
}
|
|
194
|
-
console.log(` Found: ${this.findings.length} potential zero-days\n`);
|
|
195
|
-
}
|
|
196
|
-
generateHeuristicFindings(heuristic) {
|
|
197
|
-
const heuristicConfig = ZERO_DAY_HEURISTIC_MATRIX[heuristic];
|
|
198
|
-
const findings = [];
|
|
199
|
-
// Generate 1-3 findings per heuristic based on aggressiveness
|
|
200
|
-
const numFindings = Math.max(1, Math.floor(this.config.aggressiveness * 3));
|
|
201
|
-
for (let i = 1; i <= numFindings; i++) {
|
|
202
|
-
const finding = {
|
|
203
|
-
id: `ZERO-DAY-${heuristic.toUpperCase()}-${i}`,
|
|
204
|
-
provider: this.inferProviderFromTarget(),
|
|
205
|
-
vulnerability: `Zero-Day ${heuristic} Vulnerability`,
|
|
206
|
-
severity: this.determineSeverity(heuristic),
|
|
207
|
-
confidence: heuristicConfig.weight * this.config.aggressiveness,
|
|
208
|
-
evidence: [
|
|
209
|
-
`Heuristic: ${heuristic}`,
|
|
210
|
-
`Principle: ${heuristicConfig.principle}`,
|
|
211
|
-
`Target: ${this.config.target}`,
|
|
212
|
-
`Indicators: ${heuristicConfig.indicators.slice(0, 2).join(', ')}`,
|
|
213
|
-
`Discovery Method: ${heuristicConfig.discoveryMethods[0]}`,
|
|
214
|
-
],
|
|
215
|
-
technique: `Zero-Day ${heuristic} Discovery`,
|
|
216
|
-
timestamp: new Date().toISOString(),
|
|
217
|
-
resource: this.config.target,
|
|
218
|
-
exploitability: this.determineExploitability(heuristic),
|
|
219
|
-
verified: false,
|
|
220
|
-
cve: null,
|
|
221
|
-
aptPhase: 'initial-access',
|
|
222
|
-
zeroDayConfidence: heuristicConfig.weight * 0.9,
|
|
223
|
-
heuristic,
|
|
224
|
-
attackVector: this.determineAttackVector(heuristic),
|
|
225
|
-
exploitationComplexity: this.determineExploitationComplexity(heuristic),
|
|
226
|
-
patchedIn: null,
|
|
227
|
-
discoveryMethod: 'heuristic',
|
|
228
|
-
};
|
|
229
|
-
findings.push(finding);
|
|
230
|
-
}
|
|
231
|
-
return findings;
|
|
232
|
-
}
|
|
233
|
-
async discoverViaUniversalAudit() {
|
|
234
|
-
console.log(' 🔧 UNIVERSAL SECURITY AUDIT INTEGRATION');
|
|
235
|
-
console.log(' Skipping audit phase for now\n');
|
|
236
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Universal audit skipped`);
|
|
237
|
-
}
|
|
238
|
-
async discoverViaTournament() {
|
|
239
|
-
console.log(' 🏆 TOURNAMENT RL OPTIMIZATION');
|
|
240
|
-
console.log(' Skipping tournament phase for now\n');
|
|
241
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Tournament skipped`);
|
|
242
|
-
}
|
|
243
|
-
async verifyFindings() {
|
|
244
|
-
console.log(' ✅ LIVE VERIFICATION');
|
|
245
|
-
const toVerify = this.findings.filter(f => !f.verified && f.exploitability !== 'theoretical');
|
|
246
|
-
console.log(` Findings to verify: ${toVerify.length}`);
|
|
247
|
-
for (const finding of toVerify) {
|
|
248
|
-
// Simulate verification - in real implementation, this would attempt exploitation
|
|
249
|
-
const success = Math.random() < (finding.confidence * 0.7);
|
|
250
|
-
if (success) {
|
|
251
|
-
finding.verified = true;
|
|
252
|
-
finding.exploitability = 'trivial';
|
|
253
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Verified: ${finding.id}`);
|
|
254
|
-
console.log(` ✓ ${finding.id}: VERIFIED`);
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
this.evidence.logs.push(`[${new Date().toISOString()}] Failed verification: ${finding.id}`);
|
|
258
|
-
console.log(` ✗ ${finding.id}: NOT VERIFIED`);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
console.log('');
|
|
262
|
-
}
|
|
263
|
-
generateDiscoveryResult(startTime) {
|
|
264
|
-
const endTime = Date.now();
|
|
265
|
-
const duration = endTime - startTime;
|
|
266
|
-
const verifiedFindings = this.findings.filter(f => f.verified);
|
|
267
|
-
const zeroDayFindings = this.findings.filter(f => f.zeroDayConfidence > 0.8);
|
|
268
|
-
return {
|
|
269
|
-
target: this.config.target,
|
|
270
|
-
targetType: this.config.targetType,
|
|
271
|
-
startTime: new Date(startTime).toISOString(),
|
|
272
|
-
endTime: new Date(endTime).toISOString(),
|
|
273
|
-
duration,
|
|
274
|
-
findings: this.findings,
|
|
275
|
-
discoveryMetrics: {
|
|
276
|
-
totalPathsExplored: this.config.heuristics.length + (this.config.enableTournament ? 1 : 0) + 1,
|
|
277
|
-
uniqueAttackVectors: new Set(this.findings.map(f => f.attackVector)).size,
|
|
278
|
-
heuristicMatches: this.findings.filter(f => f.discoveryMethod === 'heuristic').length,
|
|
279
|
-
tournamentRounds: this.config.enableTournament ? Math.floor(this.config.aggressiveness * 3) : 0,
|
|
280
|
-
verificationAttempts: this.findings.filter(f => !f.verified && f.exploitability !== 'theoretical').length,
|
|
281
|
-
falsePositives: this.findings.filter(f => !f.verified).length,
|
|
282
|
-
},
|
|
283
|
-
recommendations: {
|
|
284
|
-
immediate: verifiedFindings.length > 0 ? [
|
|
285
|
-
'Review and patch all verified vulnerabilities',
|
|
286
|
-
'Isolate affected systems if necessary',
|
|
287
|
-
'Monitor for exploitation attempts',
|
|
288
|
-
] : ['No immediate action required'],
|
|
289
|
-
shortTerm: zeroDayFindings.length > 0 ? [
|
|
290
|
-
'Implement additional security controls',
|
|
291
|
-
'Conduct deeper security assessment',
|
|
292
|
-
'Update incident response procedures',
|
|
293
|
-
] : ['Maintain current security posture'],
|
|
294
|
-
longTerm: [
|
|
295
|
-
'Establish continuous security monitoring',
|
|
296
|
-
'Implement automated vulnerability scanning',
|
|
297
|
-
'Develop zero-day response capability',
|
|
298
|
-
],
|
|
299
|
-
},
|
|
300
|
-
evidence: this.evidence,
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
saveFindings(result) {
|
|
304
|
-
const outputPath = join(this.config.outputDir, `zero-day-discovery-${Date.now()}.json`);
|
|
305
|
-
writeFileSync(outputPath, JSON.stringify(result, null, 2));
|
|
306
|
-
console.log(` 📁 Results saved to: ${outputPath}\n`);
|
|
307
|
-
}
|
|
308
|
-
// Helper methods
|
|
309
|
-
inferProviderFromTarget() {
|
|
310
|
-
if (this.config.target.includes('aws'))
|
|
311
|
-
return 'aws';
|
|
312
|
-
if (this.config.target.includes('gcp') || this.config.target.includes('google'))
|
|
313
|
-
return 'gcp';
|
|
314
|
-
if (this.config.target.includes('azure'))
|
|
315
|
-
return 'azure';
|
|
316
|
-
return 'custom';
|
|
317
|
-
}
|
|
318
|
-
determineAttackVectorFromFinding(finding) {
|
|
319
|
-
return finding.technique.toLowerCase().includes('api') ? 'api' :
|
|
320
|
-
finding.technique.toLowerCase().includes('network') ? 'network' :
|
|
321
|
-
finding.technique.toLowerCase().includes('web') ? 'web' : 'unknown';
|
|
322
|
-
}
|
|
323
|
-
determineSeverity(heuristic) {
|
|
324
|
-
const weight = ZERO_DAY_HEURISTIC_MATRIX[heuristic].weight;
|
|
325
|
-
if (weight >= 0.9)
|
|
326
|
-
return 'critical';
|
|
327
|
-
if (weight >= 0.8)
|
|
328
|
-
return 'high';
|
|
329
|
-
if (weight >= 0.7)
|
|
330
|
-
return 'medium';
|
|
331
|
-
return 'low';
|
|
332
|
-
}
|
|
333
|
-
determineExploitability(heuristic) {
|
|
334
|
-
const weight = ZERO_DAY_HEURISTIC_MATRIX[heuristic].weight;
|
|
335
|
-
if (weight >= 0.9)
|
|
336
|
-
return 'trivial';
|
|
337
|
-
if (weight >= 0.8)
|
|
338
|
-
return 'moderate';
|
|
339
|
-
if (weight >= 0.7)
|
|
340
|
-
return 'complex';
|
|
341
|
-
return 'theoretical';
|
|
342
|
-
}
|
|
343
|
-
determineAttackVector(heuristic) {
|
|
344
|
-
const methods = ZERO_DAY_HEURISTIC_MATRIX[heuristic].discoveryMethods;
|
|
345
|
-
return methods[0] || 'unknown';
|
|
346
|
-
}
|
|
347
|
-
determineExploitationComplexity(heuristic) {
|
|
348
|
-
const weight = ZERO_DAY_HEURISTIC_MATRIX[heuristic].weight;
|
|
349
|
-
if (weight >= 0.9)
|
|
350
|
-
return 'low';
|
|
351
|
-
if (weight >= 0.8)
|
|
352
|
-
return 'medium';
|
|
353
|
-
if (weight >= 0.7)
|
|
354
|
-
return 'high';
|
|
355
|
-
return 'expert';
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
//# sourceMappingURL=zeroDayDiscovery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zeroDayDiscovery.js","sourceRoot":"","sources":["../../src/core/zeroDayDiscovery.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,UAA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QACpC,IAAI,MAAM,IAAI,GAAG;YAAE,OAAO,UAAU,CAAC;QACrC,IAAI,MAAM,IAAI,GAAG;YAAE,OAAO,SAAS,CAAC;QACpC,OAAO,aAAa,CAAC;IACvB,CAAC;IAEO,qBAAqB,CAAC,SAA2B;QACvD,MAAM,OAAO,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC;QACtE,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC;IACjC,CAAC;IAEO,+BAA+B,CAAC,SAA2B;QACjE,MAAM,MAAM,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC;QAC3D,IAAI,MAAM,IAAI,GAAG;YAAE,OAAO,KAAK,CAAC;QAChC,IAAI,MAAM,IAAI,GAAG;YAAE,OAAO,QAAQ,CAAC;QACnC,IAAI,MAAM,IAAI,GAAG;YAAE,OAAO,MAAM,CAAC;QACjC,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interactive Shell - Full interactive CLI experience with rich UI.
|
|
3
|
-
*
|
|
4
|
-
* Usage:
|
|
5
|
-
* agi # Start interactive shell
|
|
6
|
-
* agi "initial prompt" # Start with initial prompt
|
|
7
|
-
*
|
|
8
|
-
* Features:
|
|
9
|
-
* - Rich terminal UI with status bar
|
|
10
|
-
* - Command history
|
|
11
|
-
* - Streaming responses
|
|
12
|
-
* - Tool execution display
|
|
13
|
-
* - Ctrl+C to interrupt
|
|
14
|
-
*/
|
|
15
|
-
export interface InteractiveShellOptions {
|
|
16
|
-
argv: string[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Run the fully interactive shell with rich UI.
|
|
20
|
-
*/
|
|
21
|
-
export declare function runInteractiveShell(options: InteractiveShellOptions): Promise<void>;
|
|
22
|
-
//# sourceMappingURL=interactiveShell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interactiveShell.d.ts","sourceRoot":"","sources":["../../src/headless/interactiveShell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAoHH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAOD;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoDzF"}
|