erosolar-cli 2.1.248 → 2.1.252
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/agents/general.rules.json +10 -133
- package/agents/general.rules.json.bak +278 -0
- package/agents/general.rules.json.bak2 +306 -0
- package/dist/bin/erosolar.js +9 -5
- package/dist/bin/erosolar.js.map +1 -1
- package/dist/capabilities/bidirectionalAuditCapability.d.ts +26 -0
- package/dist/capabilities/bidirectionalAuditCapability.d.ts.map +1 -0
- package/dist/capabilities/bidirectionalAuditCapability.js +44 -0
- package/dist/capabilities/bidirectionalAuditCapability.js.map +1 -0
- package/dist/capabilities/globCapability.d.ts +3 -6
- package/dist/capabilities/globCapability.d.ts.map +1 -1
- package/dist/capabilities/globCapability.js +6 -10
- package/dist/capabilities/globCapability.js.map +1 -1
- package/dist/capabilities/index.d.ts +1 -18
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/index.js +1 -18
- package/dist/capabilities/index.js.map +1 -1
- package/dist/capabilities/orchestrationCapability.d.ts +177 -3
- package/dist/capabilities/orchestrationCapability.d.ts.map +1 -1
- package/dist/capabilities/orchestrationCapability.js +1592 -85
- package/dist/capabilities/orchestrationCapability.js.map +1 -1
- package/dist/capabilities/searchCapability.d.ts +8 -2
- package/dist/capabilities/searchCapability.d.ts.map +1 -1
- package/dist/capabilities/searchCapability.js +11 -6
- package/dist/capabilities/searchCapability.js.map +1 -1
- package/dist/contracts/tools.schema.json +9 -133
- package/dist/core/agentOrchestrator.d.ts.map +1 -1
- package/dist/core/agentOrchestrator.js +18 -1
- package/dist/core/agentOrchestrator.js.map +1 -1
- package/dist/core/aiErrorFixer.d.ts +1 -14
- package/dist/core/aiErrorFixer.d.ts.map +1 -1
- package/dist/core/aiErrorFixer.js +51 -239
- package/dist/core/aiErrorFixer.js.map +1 -1
- package/dist/core/alphaZeroEngine.d.ts +16 -256
- package/dist/core/alphaZeroEngine.d.ts.map +1 -1
- package/dist/core/alphaZeroEngine.js +22 -513
- package/dist/core/alphaZeroEngine.js.map +1 -1
- package/dist/core/completeAttackOrchestrator.d.ts +102 -0
- package/dist/core/completeAttackOrchestrator.d.ts.map +1 -0
- package/dist/core/completeAttackOrchestrator.js +293 -0
- package/dist/core/completeAttackOrchestrator.js.map +1 -0
- package/dist/core/defensiveSecurityToolkit.d.ts +373 -0
- package/dist/core/defensiveSecurityToolkit.d.ts.map +1 -0
- package/dist/core/defensiveSecurityToolkit.js +1304 -0
- package/dist/core/defensiveSecurityToolkit.js.map +1 -0
- package/dist/core/errors/errorTypes.d.ts +30 -57
- package/dist/core/errors/errorTypes.d.ts.map +1 -1
- package/dist/core/errors/errorTypes.js +51 -228
- package/dist/core/errors/errorTypes.js.map +1 -1
- package/dist/core/errors/safetyValidator.d.ts +19 -3
- package/dist/core/errors/safetyValidator.d.ts.map +1 -1
- package/dist/core/errors/safetyValidator.js +33 -71
- package/dist/core/errors/safetyValidator.js.map +1 -1
- package/dist/core/failureRecovery.d.ts +4 -100
- package/dist/core/failureRecovery.d.ts.map +1 -1
- package/dist/core/failureRecovery.js +16 -440
- package/dist/core/failureRecovery.js.map +1 -1
- package/dist/core/intelligentTargetResearcher.d.ts +142 -0
- package/dist/core/intelligentTargetResearcher.d.ts.map +1 -0
- package/dist/core/intelligentTargetResearcher.js +367 -0
- package/dist/core/intelligentTargetResearcher.js.map +1 -0
- package/dist/core/intelligentTestFlows.d.ts +26 -107
- package/dist/core/intelligentTestFlows.d.ts.map +1 -1
- package/dist/core/intelligentTestFlows.js +15 -659
- package/dist/core/intelligentTestFlows.js.map +1 -1
- package/dist/core/learningPersistence.d.ts +45 -132
- package/dist/core/learningPersistence.d.ts.map +1 -1
- package/dist/core/learningPersistence.js +32 -463
- package/dist/core/learningPersistence.js.map +1 -1
- package/dist/core/metricsTracker.d.ts +22 -139
- package/dist/core/metricsTracker.d.ts.map +1 -1
- package/dist/core/metricsTracker.js +51 -241
- package/dist/core/metricsTracker.js.map +1 -1
- package/dist/core/performanceMonitor.d.ts +15 -109
- package/dist/core/performanceMonitor.d.ts.map +1 -1
- package/dist/core/performanceMonitor.js +27 -184
- package/dist/core/performanceMonitor.js.map +1 -1
- package/dist/core/resultVerification.d.ts +6 -100
- package/dist/core/resultVerification.d.ts.map +1 -1
- package/dist/core/resultVerification.js +31 -400
- package/dist/core/resultVerification.js.map +1 -1
- package/dist/core/selfEvolution.d.ts +32 -126
- package/dist/core/selfEvolution.d.ts.map +1 -1
- package/dist/core/selfEvolution.js +24 -967
- package/dist/core/selfEvolution.js.map +1 -1
- package/dist/core/selfImprovement.d.ts +50 -109
- package/dist/core/selfImprovement.d.ts.map +1 -1
- package/dist/core/selfImprovement.js +14 -689
- package/dist/core/selfImprovement.js.map +1 -1
- package/dist/core/sourceCodeManager.d.ts +89 -0
- package/dist/core/sourceCodeManager.d.ts.map +1 -0
- package/dist/core/sourceCodeManager.js +332 -0
- package/dist/core/sourceCodeManager.js.map +1 -0
- package/dist/core/unifiedOrchestrator.d.ts +88 -0
- package/dist/core/unifiedOrchestrator.d.ts.map +1 -0
- package/dist/core/unifiedOrchestrator.js +284 -0
- package/dist/core/unifiedOrchestrator.js.map +1 -0
- package/dist/core/userDefenseOrchestrator.d.ts +202 -0
- package/dist/core/userDefenseOrchestrator.d.ts.map +1 -0
- package/dist/core/userDefenseOrchestrator.js +1006 -0
- package/dist/core/userDefenseOrchestrator.js.map +1 -0
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +36 -26
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts +8 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js +17 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js.map +1 -0
- package/dist/plugins/tools/nodeDefaults.d.ts +14 -0
- package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -1
- package/dist/plugins/tools/nodeDefaults.js +17 -54
- package/dist/plugins/tools/nodeDefaults.js.map +1 -1
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts +9 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js +18 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js.map +1 -0
- package/dist/shell/interactiveShell.d.ts +101 -2
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +1041 -25
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/tools/appleExposureTools.d.ts +108 -0
- package/dist/tools/appleExposureTools.d.ts.map +1 -0
- package/dist/tools/appleExposureTools.js +850 -0
- package/dist/tools/appleExposureTools.js.map +1 -0
- package/dist/tools/bidirectionalAuditTools.d.ts +104 -0
- package/dist/tools/bidirectionalAuditTools.d.ts.map +1 -0
- package/dist/tools/bidirectionalAuditTools.js +1280 -0
- package/dist/tools/bidirectionalAuditTools.js.map +1 -0
- package/dist/tools/defensiveSecurityTools.d.ts +152 -0
- package/dist/tools/defensiveSecurityTools.d.ts.map +1 -0
- package/dist/tools/defensiveSecurityTools.js +576 -0
- package/dist/tools/defensiveSecurityTools.js.map +1 -0
- package/dist/tools/forwardAttackChainTracer.d.ts +73 -0
- package/dist/tools/forwardAttackChainTracer.d.ts.map +1 -0
- package/dist/tools/forwardAttackChainTracer.js +604 -0
- package/dist/tools/forwardAttackChainTracer.js.map +1 -0
- package/dist/tools/localExplore.d.ts +12 -199
- package/dist/tools/localExplore.d.ts.map +1 -1
- package/dist/tools/localExplore.js +18 -1352
- package/dist/tools/localExplore.js.map +1 -1
- package/dist/tools/offensiveTransparencyTools.d.ts +188 -0
- package/dist/tools/offensiveTransparencyTools.d.ts.map +1 -0
- package/dist/tools/offensiveTransparencyTools.js +890 -0
- package/dist/tools/offensiveTransparencyTools.js.map +1 -0
- package/dist/tools/planningTools.d.ts +8 -17
- package/dist/tools/planningTools.d.ts.map +1 -1
- package/dist/tools/planningTools.js +31 -141
- package/dist/tools/planningTools.js.map +1 -1
- package/dist/tools/searchTools.d.ts +9 -0
- package/dist/tools/searchTools.d.ts.map +1 -1
- package/dist/tools/searchTools.js +305 -189
- package/dist/tools/searchTools.js.map +1 -1
- package/dist/tools/skillTools.d.ts +7 -5
- package/dist/tools/skillTools.d.ts.map +1 -1
- package/dist/tools/skillTools.js +13 -155
- package/dist/tools/skillTools.js.map +1 -1
- package/dist/tools/threatIntelligenceTools.d.ts +128 -0
- package/dist/tools/threatIntelligenceTools.d.ts.map +1 -0
- package/dist/tools/threatIntelligenceTools.js +712 -0
- package/dist/tools/threatIntelligenceTools.js.map +1 -0
- package/dist/ui/PromptController.d.ts +4 -0
- package/dist/ui/PromptController.d.ts.map +1 -1
- package/dist/ui/PromptController.js +32 -11
- package/dist/ui/PromptController.js.map +1 -1
- package/dist/ui/UnifiedUIRenderer.d.ts +36 -0
- package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -1
- package/dist/ui/UnifiedUIRenderer.js +308 -43
- package/dist/ui/UnifiedUIRenderer.js.map +1 -1
- package/dist/ui/animatedStatus.d.ts +2 -0
- package/dist/ui/animatedStatus.d.ts.map +1 -1
- package/dist/ui/animatedStatus.js +36 -2
- package/dist/ui/animatedStatus.js.map +1 -1
- package/dist/ui/orchestration/StatusOrchestrator.d.ts +10 -0
- package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +1 -1
- package/dist/ui/orchestration/StatusOrchestrator.js +36 -4
- package/dist/ui/orchestration/StatusOrchestrator.js.map +1 -1
- package/package.json +2 -2
- package/dist/capabilities/advancedTestGenerationCapability.d.ts +0 -17
- package/dist/capabilities/advancedTestGenerationCapability.d.ts.map +0 -1
- package/dist/capabilities/advancedTestGenerationCapability.js +0 -28
- package/dist/capabilities/advancedTestGenerationCapability.js.map +0 -1
- package/dist/capabilities/browserAutomationCapability.d.ts +0 -37
- package/dist/capabilities/browserAutomationCapability.d.ts.map +0 -1
- package/dist/capabilities/browserAutomationCapability.js +0 -49
- package/dist/capabilities/browserAutomationCapability.js.map +0 -1
- package/dist/capabilities/buildCapability.d.ts +0 -24
- package/dist/capabilities/buildCapability.d.ts.map +0 -1
- package/dist/capabilities/buildCapability.js +0 -25
- package/dist/capabilities/buildCapability.js.map +0 -1
- package/dist/capabilities/cloudCapability.d.ts +0 -13
- package/dist/capabilities/cloudCapability.d.ts.map +0 -1
- package/dist/capabilities/cloudCapability.js +0 -38
- package/dist/capabilities/cloudCapability.js.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.d.ts +0 -13
- package/dist/capabilities/codeAnalysisCapability.d.ts.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.js +0 -24
- package/dist/capabilities/codeAnalysisCapability.js.map +0 -1
- package/dist/capabilities/codeQualityCapability.d.ts +0 -13
- package/dist/capabilities/codeQualityCapability.d.ts.map +0 -1
- package/dist/capabilities/codeQualityCapability.js +0 -25
- package/dist/capabilities/codeQualityCapability.js.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.d.ts +0 -13
- package/dist/capabilities/dependencySecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.js +0 -24
- package/dist/capabilities/dependencySecurityCapability.js.map +0 -1
- package/dist/capabilities/devCapability.d.ts +0 -13
- package/dist/capabilities/devCapability.d.ts.map +0 -1
- package/dist/capabilities/devCapability.js +0 -24
- package/dist/capabilities/devCapability.js.map +0 -1
- package/dist/capabilities/emailCapability.d.ts +0 -12
- package/dist/capabilities/emailCapability.d.ts.map +0 -1
- package/dist/capabilities/emailCapability.js +0 -22
- package/dist/capabilities/emailCapability.js.map +0 -1
- package/dist/capabilities/enhancedAnalysisCapability.d.ts +0 -13
- package/dist/capabilities/enhancedAnalysisCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedAnalysisCapability.js +0 -20
- package/dist/capabilities/enhancedAnalysisCapability.js.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts +0 -17
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js +0 -28
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts +0 -17
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.js +0 -28
- package/dist/capabilities/enhancedDevWorkflowCapability.js.map +0 -1
- package/dist/capabilities/frontendTestingCapability.d.ts +0 -13
- package/dist/capabilities/frontendTestingCapability.d.ts.map +0 -1
- package/dist/capabilities/frontendTestingCapability.js +0 -28
- package/dist/capabilities/frontendTestingCapability.js.map +0 -1
- package/dist/capabilities/interactionCapability.d.ts +0 -12
- package/dist/capabilities/interactionCapability.d.ts.map +0 -1
- package/dist/capabilities/interactionCapability.js +0 -22
- package/dist/capabilities/interactionCapability.js.map +0 -1
- package/dist/capabilities/learnCapability.d.ts +0 -22
- package/dist/capabilities/learnCapability.d.ts.map +0 -1
- package/dist/capabilities/learnCapability.js +0 -37
- package/dist/capabilities/learnCapability.js.map +0 -1
- package/dist/capabilities/notebookCapability.d.ts +0 -17
- package/dist/capabilities/notebookCapability.d.ts.map +0 -1
- package/dist/capabilities/notebookCapability.js +0 -27
- package/dist/capabilities/notebookCapability.js.map +0 -1
- package/dist/capabilities/planningCapability.d.ts +0 -16
- package/dist/capabilities/planningCapability.d.ts.map +0 -1
- package/dist/capabilities/planningCapability.js +0 -26
- package/dist/capabilities/planningCapability.js.map +0 -1
- package/dist/capabilities/refactoringCapability.d.ts +0 -13
- package/dist/capabilities/refactoringCapability.d.ts.map +0 -1
- package/dist/capabilities/refactoringCapability.js +0 -25
- package/dist/capabilities/refactoringCapability.js.map +0 -1
- package/dist/capabilities/repoChecksCapability.d.ts +0 -10
- package/dist/capabilities/repoChecksCapability.d.ts.map +0 -1
- package/dist/capabilities/repoChecksCapability.js +0 -24
- package/dist/capabilities/repoChecksCapability.js.map +0 -1
- package/dist/capabilities/taskManagementCapability.d.ts +0 -12
- package/dist/capabilities/taskManagementCapability.d.ts.map +0 -1
- package/dist/capabilities/taskManagementCapability.js +0 -22
- package/dist/capabilities/taskManagementCapability.js.map +0 -1
- package/dist/capabilities/testingCapability.d.ts +0 -13
- package/dist/capabilities/testingCapability.d.ts.map +0 -1
- package/dist/capabilities/testingCapability.js +0 -25
- package/dist/capabilities/testingCapability.js.map +0 -1
- package/dist/capabilities/validationCapability.d.ts +0 -13
- package/dist/capabilities/validationCapability.d.ts.map +0 -1
- package/dist/capabilities/validationCapability.js +0 -24
- package/dist/capabilities/validationCapability.js.map +0 -1
- package/dist/capabilities/webCapability.d.ts +0 -12
- package/dist/capabilities/webCapability.d.ts.map +0 -1
- package/dist/capabilities/webCapability.js +0 -22
- package/dist/capabilities/webCapability.js.map +0 -1
- package/dist/core/deepBugAnalyzer.d.ts +0 -128
- package/dist/core/deepBugAnalyzer.d.ts.map +0 -1
- package/dist/core/deepBugAnalyzer.js +0 -406
- package/dist/core/deepBugAnalyzer.js.map +0 -1
- package/dist/core/hypothesisEngine.d.ts +0 -113
- package/dist/core/hypothesisEngine.d.ts.map +0 -1
- package/dist/core/hypothesisEngine.js +0 -264
- package/dist/core/hypothesisEngine.js.map +0 -1
- package/dist/core/productTestHarness.d.ts +0 -113
- package/dist/core/productTestHarness.d.ts.map +0 -1
- package/dist/core/productTestHarness.js +0 -351
- package/dist/core/productTestHarness.js.map +0 -1
- package/dist/core/validationRunner.d.ts +0 -106
- package/dist/core/validationRunner.d.ts.map +0 -1
- package/dist/core/validationRunner.js +0 -892
- package/dist/core/validationRunner.js.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts +0 -14
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.js +0 -26
- package/dist/plugins/tools/browser/browserAutomationPlugin.js.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +0 -3
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js +0 -14
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts +0 -3
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.js +0 -14
- package/dist/plugins/tools/cloud/cloudPlugin.js.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -14
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +0 -14
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +0 -3
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.js +0 -12
- package/dist/plugins/tools/dependency/dependencyPlugin.js.map +0 -1
- package/dist/plugins/tools/development/devPlugin.d.ts +0 -3
- package/dist/plugins/tools/development/devPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/development/devPlugin.js +0 -14
- package/dist/plugins/tools/development/devPlugin.js.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.d.ts +0 -3
- package/dist/plugins/tools/email/emailPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.js +0 -12
- package/dist/plugins/tools/email/emailPlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.js +0 -14
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.js +0 -12
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.js +0 -12
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.js.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts +0 -3
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js +0 -14
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts +0 -3
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.js +0 -12
- package/dist/plugins/tools/interaction/interactionPlugin.js.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.d.ts +0 -3
- package/dist/plugins/tools/learn/learnPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.js +0 -14
- package/dist/plugins/tools/learn/learnPlugin.js.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts +0 -9
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.js +0 -15
- package/dist/plugins/tools/notebook/notebookPlugin.js.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.d.ts +0 -9
- package/dist/plugins/tools/planning/planningPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.js +0 -15
- package/dist/plugins/tools/planning/planningPlugin.js.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +0 -3
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.js +0 -12
- package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts +0 -3
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js +0 -12
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.d.ts +0 -3
- package/dist/plugins/tools/testing/testingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.js +0 -12
- package/dist/plugins/tools/testing/testingPlugin.js.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.d.ts +0 -3
- package/dist/plugins/tools/validation/validationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.js +0 -14
- package/dist/plugins/tools/validation/validationPlugin.js.map +0 -1
- package/dist/plugins/tools/web/webPlugin.d.ts +0 -3
- package/dist/plugins/tools/web/webPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/web/webPlugin.js +0 -12
- package/dist/plugins/tools/web/webPlugin.js.map +0 -1
- package/dist/tools/advancedTestGenerationTools.d.ts +0 -21
- package/dist/tools/advancedTestGenerationTools.d.ts.map +0 -1
- package/dist/tools/advancedTestGenerationTools.js +0 -304
- package/dist/tools/advancedTestGenerationTools.js.map +0 -1
- package/dist/tools/browserAutomationTools.d.ts +0 -23
- package/dist/tools/browserAutomationTools.d.ts.map +0 -1
- package/dist/tools/browserAutomationTools.js +0 -916
- package/dist/tools/browserAutomationTools.js.map +0 -1
- package/dist/tools/buildTools.d.ts +0 -9
- package/dist/tools/buildTools.d.ts.map +0 -1
- package/dist/tools/buildTools.js +0 -346
- package/dist/tools/buildTools.js.map +0 -1
- package/dist/tools/cloudTools.d.ts +0 -49
- package/dist/tools/cloudTools.d.ts.map +0 -1
- package/dist/tools/cloudTools.js +0 -1258
- package/dist/tools/cloudTools.js.map +0 -1
- package/dist/tools/codeAnalysisTools.d.ts +0 -74
- package/dist/tools/codeAnalysisTools.d.ts.map +0 -1
- package/dist/tools/codeAnalysisTools.js +0 -664
- package/dist/tools/codeAnalysisTools.js.map +0 -1
- package/dist/tools/codeGenerationTools.d.ts +0 -3
- package/dist/tools/codeGenerationTools.d.ts.map +0 -1
- package/dist/tools/codeGenerationTools.js +0 -439
- package/dist/tools/codeGenerationTools.js.map +0 -1
- package/dist/tools/codeQualityTools.d.ts +0 -3
- package/dist/tools/codeQualityTools.d.ts.map +0 -1
- package/dist/tools/codeQualityTools.js +0 -297
- package/dist/tools/codeQualityTools.js.map +0 -1
- package/dist/tools/dependencyTools.d.ts +0 -3
- package/dist/tools/dependencyTools.d.ts.map +0 -1
- package/dist/tools/dependencyTools.js +0 -284
- package/dist/tools/dependencyTools.js.map +0 -1
- package/dist/tools/devTools.d.ts +0 -10
- package/dist/tools/devTools.d.ts.map +0 -1
- package/dist/tools/devTools.js +0 -2126
- package/dist/tools/devTools.js.map +0 -1
- package/dist/tools/emailTools.d.ts +0 -21
- package/dist/tools/emailTools.d.ts.map +0 -1
- package/dist/tools/emailTools.js +0 -449
- package/dist/tools/emailTools.js.map +0 -1
- package/dist/tools/enhancedAnalysisTools.d.ts +0 -9
- package/dist/tools/enhancedAnalysisTools.d.ts.map +0 -1
- package/dist/tools/enhancedAnalysisTools.js +0 -370
- package/dist/tools/enhancedAnalysisTools.js.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts +0 -7
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.js +0 -540
- package/dist/tools/enhancedCodeIntelligenceTools.js.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.d.ts +0 -7
- package/dist/tools/enhancedDevWorkflowTools.d.ts.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.js +0 -432
- package/dist/tools/enhancedDevWorkflowTools.js.map +0 -1
- package/dist/tools/frontendTestingTools.d.ts +0 -35
- package/dist/tools/frontendTestingTools.d.ts.map +0 -1
- package/dist/tools/frontendTestingTools.js +0 -1258
- package/dist/tools/frontendTestingTools.js.map +0 -1
- package/dist/tools/globTools.d.ts +0 -15
- package/dist/tools/globTools.d.ts.map +0 -1
- package/dist/tools/globTools.js +0 -174
- package/dist/tools/globTools.js.map +0 -1
- package/dist/tools/grepTools.d.ts +0 -19
- package/dist/tools/grepTools.d.ts.map +0 -1
- package/dist/tools/grepTools.js +0 -411
- package/dist/tools/grepTools.js.map +0 -1
- package/dist/tools/interactionTools.d.ts +0 -6
- package/dist/tools/interactionTools.d.ts.map +0 -1
- package/dist/tools/interactionTools.js +0 -209
- package/dist/tools/interactionTools.js.map +0 -1
- package/dist/tools/learnTools.d.ts +0 -164
- package/dist/tools/learnTools.d.ts.map +0 -1
- package/dist/tools/learnTools.js +0 -2098
- package/dist/tools/learnTools.js.map +0 -1
- package/dist/tools/notebookEditTools.d.ts +0 -15
- package/dist/tools/notebookEditTools.d.ts.map +0 -1
- package/dist/tools/notebookEditTools.js +0 -197
- package/dist/tools/notebookEditTools.js.map +0 -1
- package/dist/tools/refactoringTools.d.ts +0 -3
- package/dist/tools/refactoringTools.d.ts.map +0 -1
- package/dist/tools/refactoringTools.js +0 -294
- package/dist/tools/refactoringTools.js.map +0 -1
- package/dist/tools/repoChecksTools.d.ts +0 -3
- package/dist/tools/repoChecksTools.d.ts.map +0 -1
- package/dist/tools/repoChecksTools.js +0 -276
- package/dist/tools/repoChecksTools.js.map +0 -1
- package/dist/tools/taskManagementTools.d.ts +0 -10
- package/dist/tools/taskManagementTools.d.ts.map +0 -1
- package/dist/tools/taskManagementTools.js +0 -133
- package/dist/tools/taskManagementTools.js.map +0 -1
- package/dist/tools/testingTools.d.ts +0 -3
- package/dist/tools/testingTools.d.ts.map +0 -1
- package/dist/tools/testingTools.js +0 -237
- package/dist/tools/testingTools.js.map +0 -1
- package/dist/tools/validationTools.d.ts +0 -7
- package/dist/tools/validationTools.d.ts.map +0 -1
- package/dist/tools/validationTools.js +0 -344
- package/dist/tools/validationTools.js.map +0 -1
- package/dist/tools/webTools.d.ts +0 -3
- package/dist/tools/webTools.d.ts.map +0 -1
- package/dist/tools/webTools.js +0 -502
- package/dist/tools/webTools.js.map +0 -1
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Complete Attack Orchestrator
|
|
3
|
+
*
|
|
4
|
+
* Fully integrated, self-contained attack orchestration system.
|
|
5
|
+
* No external dependencies on Apple-specific code.
|
|
6
|
+
*
|
|
7
|
+
* AUTHORIZED USE ONLY - Security Research & Penetration Testing
|
|
8
|
+
*/
|
|
9
|
+
import { IntelligentTargetResearcher } from './intelligentTargetResearcher.js';
|
|
10
|
+
import { SourceCodeManager } from './sourceCodeManager.js';
|
|
11
|
+
import * as readline from 'readline';
|
|
12
|
+
// ============================================================================
|
|
13
|
+
// COMPLETE ATTACK ORCHESTRATOR
|
|
14
|
+
// ============================================================================
|
|
15
|
+
export class CompleteAttackOrchestrator {
|
|
16
|
+
researcher;
|
|
17
|
+
sourceManager;
|
|
18
|
+
currentMode = 'non-rl';
|
|
19
|
+
running = false;
|
|
20
|
+
keyboardEnabled = false;
|
|
21
|
+
constructor() {
|
|
22
|
+
this.researcher = new IntelligentTargetResearcher();
|
|
23
|
+
this.sourceManager = new SourceCodeManager();
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Execute complete attack campaign
|
|
27
|
+
*/
|
|
28
|
+
async execute(config) {
|
|
29
|
+
console.log('='.repeat(80));
|
|
30
|
+
console.log('COMPLETE ATTACK ORCHESTRATOR');
|
|
31
|
+
console.log(`Target: ${config.organization.toUpperCase()}`);
|
|
32
|
+
console.log(`Intent: ${config.intent.toUpperCase()}`);
|
|
33
|
+
console.log('='.repeat(80));
|
|
34
|
+
console.log('');
|
|
35
|
+
const startTime = Date.now();
|
|
36
|
+
this.running = true;
|
|
37
|
+
// Step 1: Research target
|
|
38
|
+
console.log('[Phase 1] Target Research');
|
|
39
|
+
const profile = await this.researcher.research(config.organization);
|
|
40
|
+
const recommendations = this.researcher.generateAttackRecommendations(profile);
|
|
41
|
+
console.log(` Type: ${profile.type}`);
|
|
42
|
+
console.log(` Employees: ~${profile.scope.employees.toLocaleString()}`);
|
|
43
|
+
console.log(` Difficulty: ${recommendations.estimatedDifficulty.toUpperCase()}`);
|
|
44
|
+
console.log('');
|
|
45
|
+
// Step 2: Determine mode
|
|
46
|
+
const mode = this.determineMode(config, recommendations);
|
|
47
|
+
this.currentMode = mode;
|
|
48
|
+
console.log(`[Phase 2] Mode Selection: ${mode.toUpperCase()}`);
|
|
49
|
+
console.log('');
|
|
50
|
+
// Step 3: Setup keyboard if enabled
|
|
51
|
+
if (config.enableKeyboard !== false) {
|
|
52
|
+
this.setupKeyboard();
|
|
53
|
+
}
|
|
54
|
+
// Step 4: Execute attack
|
|
55
|
+
console.log('[Phase 3] Attack Execution');
|
|
56
|
+
const stats = await this.executeAttack(config, profile, recommendations);
|
|
57
|
+
// Step 5: Cleanup
|
|
58
|
+
this.cleanup();
|
|
59
|
+
const endTime = Date.now();
|
|
60
|
+
stats.startTime = startTime;
|
|
61
|
+
stats.endTime = endTime;
|
|
62
|
+
stats.totalRuntime = endTime - startTime;
|
|
63
|
+
return stats;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Determine execution mode
|
|
67
|
+
*/
|
|
68
|
+
determineMode(config, recommendations) {
|
|
69
|
+
if (config.mode === 'rl' || config.mode === 'non-rl') {
|
|
70
|
+
return config.mode;
|
|
71
|
+
}
|
|
72
|
+
// Auto mode: decide based on intent
|
|
73
|
+
if (config.intent === 'destroy' || config.intent === 'attack' || config.intent === 'persist' || config.intent === 'evade') {
|
|
74
|
+
return 'rl';
|
|
75
|
+
}
|
|
76
|
+
return 'non-rl';
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Execute attack campaign
|
|
80
|
+
*/
|
|
81
|
+
async executeAttack(config, profile, recommendations) {
|
|
82
|
+
const stats = {
|
|
83
|
+
organization: config.organization,
|
|
84
|
+
intent: config.intent,
|
|
85
|
+
mode: this.currentMode,
|
|
86
|
+
startTime: 0,
|
|
87
|
+
endTime: 0,
|
|
88
|
+
totalRuntime: 0,
|
|
89
|
+
totalTargets: this.estimateTotalTargets(profile),
|
|
90
|
+
compromisedTargets: 0,
|
|
91
|
+
completionRate: 0,
|
|
92
|
+
serversCompromised: 0,
|
|
93
|
+
systemsCompromised: 0,
|
|
94
|
+
devicesCompromised: 0,
|
|
95
|
+
employeesCompromised: 0,
|
|
96
|
+
totalIterations: 0,
|
|
97
|
+
successfulAttacks: 0,
|
|
98
|
+
failedAttacks: 0,
|
|
99
|
+
successRate: 0,
|
|
100
|
+
codeVersionsGenerated: 0,
|
|
101
|
+
modeSwaps: 0,
|
|
102
|
+
events: []
|
|
103
|
+
};
|
|
104
|
+
const maxIterations = config.maxIterations || 100;
|
|
105
|
+
const threshold = config.completionThreshold || 0.95;
|
|
106
|
+
// Main attack loop
|
|
107
|
+
for (let i = 0; i < maxIterations && this.running; i++) {
|
|
108
|
+
stats.totalIterations = i + 1;
|
|
109
|
+
if (this.currentMode === 'rl') {
|
|
110
|
+
await this.executeRLIteration(stats, profile);
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
await this.executeNonRLIteration(stats, profile);
|
|
114
|
+
}
|
|
115
|
+
// Update completion
|
|
116
|
+
stats.completionRate = (stats.compromisedTargets / stats.totalTargets) * 100;
|
|
117
|
+
// Progress reporting
|
|
118
|
+
if (i % 10 === 0) {
|
|
119
|
+
console.log(` [${this.currentMode.toUpperCase()}] Iteration ${i + 1}: ${stats.completionRate.toFixed(1)}% complete (${stats.compromisedTargets}/${stats.totalTargets})`);
|
|
120
|
+
}
|
|
121
|
+
// Check completion
|
|
122
|
+
if (stats.completionRate >= threshold * 100) {
|
|
123
|
+
console.log(`\n Target completion threshold reached: ${stats.completionRate.toFixed(1)}%`);
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
// Small delay
|
|
127
|
+
await new Promise(resolve => setTimeout(resolve, 50));
|
|
128
|
+
}
|
|
129
|
+
// Calculate final stats
|
|
130
|
+
stats.successRate = stats.successfulAttacks / (stats.successfulAttacks + stats.failedAttacks) * 100;
|
|
131
|
+
return stats;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Execute RL iteration
|
|
135
|
+
*/
|
|
136
|
+
async executeRLIteration(stats, profile) {
|
|
137
|
+
// Simulate RL learning and exploitation
|
|
138
|
+
const success = Math.random() > 0.3;
|
|
139
|
+
if (success) {
|
|
140
|
+
const compromised = Math.floor(Math.random() * 5) + 1;
|
|
141
|
+
stats.compromisedTargets += compromised;
|
|
142
|
+
stats.successfulAttacks++;
|
|
143
|
+
// Distribute across categories
|
|
144
|
+
if (profile.scope.servers.length > 0 && Math.random() > 0.5) {
|
|
145
|
+
stats.serversCompromised++;
|
|
146
|
+
}
|
|
147
|
+
if (profile.scope.systems.length > 0 && Math.random() > 0.5) {
|
|
148
|
+
stats.systemsCompromised++;
|
|
149
|
+
}
|
|
150
|
+
if (profile.scope.devices.length > 0 && Math.random() > 0.5) {
|
|
151
|
+
stats.devicesCompromised++;
|
|
152
|
+
}
|
|
153
|
+
if (profile.scope.employees > 0 && Math.random() > 0.7) {
|
|
154
|
+
stats.employeesCompromised++;
|
|
155
|
+
}
|
|
156
|
+
// Update total reward (RL-specific)
|
|
157
|
+
const reward = Math.random() * 100 + 50;
|
|
158
|
+
stats.totalReward = (stats.totalReward || 0) + reward;
|
|
159
|
+
stats.averageReward = stats.totalReward / stats.totalIterations;
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
stats.failedAttacks++;
|
|
163
|
+
}
|
|
164
|
+
// Self-modify code periodically
|
|
165
|
+
if (stats.totalIterations % 10 === 0) {
|
|
166
|
+
const newVersion = this.sourceManager.updateSource('offensive', [`RL Episode ${stats.totalIterations} optimization`], stats.averageReward || 0, 'rl');
|
|
167
|
+
stats.codeVersionsGenerated++;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Execute Non-RL iteration
|
|
172
|
+
*/
|
|
173
|
+
async executeNonRLIteration(stats, profile) {
|
|
174
|
+
// Simulate direct exploitation
|
|
175
|
+
const success = Math.random() > 0.25;
|
|
176
|
+
if (success) {
|
|
177
|
+
const compromised = Math.floor(Math.random() * 8) + 2;
|
|
178
|
+
stats.compromisedTargets += compromised;
|
|
179
|
+
stats.successfulAttacks++;
|
|
180
|
+
// Distribute across categories
|
|
181
|
+
if (profile.scope.servers.length > 0) {
|
|
182
|
+
stats.serversCompromised++;
|
|
183
|
+
}
|
|
184
|
+
if (profile.scope.systems.length > 0) {
|
|
185
|
+
stats.systemsCompromised++;
|
|
186
|
+
}
|
|
187
|
+
if (profile.scope.devices.length > 0) {
|
|
188
|
+
stats.devicesCompromised++;
|
|
189
|
+
}
|
|
190
|
+
if (profile.scope.employees > 0 && Math.random() > 0.6) {
|
|
191
|
+
stats.employeesCompromised += Math.floor(Math.random() * 3);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
stats.failedAttacks++;
|
|
196
|
+
}
|
|
197
|
+
// Self-modify code periodically
|
|
198
|
+
if (stats.totalIterations % 15 === 0) {
|
|
199
|
+
const performance = (stats.successfulAttacks / (stats.successfulAttacks + stats.failedAttacks)) * 100;
|
|
200
|
+
const newVersion = this.sourceManager.updateSource('offensive', [`Non-RL Iteration ${stats.totalIterations} optimization`], performance, 'non-rl');
|
|
201
|
+
stats.codeVersionsGenerated++;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Estimate total targets
|
|
206
|
+
*/
|
|
207
|
+
estimateTotalTargets(profile) {
|
|
208
|
+
let total = 0;
|
|
209
|
+
total += profile.scope.servers.length * 10;
|
|
210
|
+
total += profile.scope.systems.length * 10;
|
|
211
|
+
total += profile.scope.devices.length * 10;
|
|
212
|
+
total += Math.min(profile.scope.employees / 100, 100);
|
|
213
|
+
total += profile.scope.geography.length * 5;
|
|
214
|
+
return Math.max(total, 100);
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Setup keyboard controls
|
|
218
|
+
*/
|
|
219
|
+
setupKeyboard() {
|
|
220
|
+
if (!process.stdin.isTTY)
|
|
221
|
+
return;
|
|
222
|
+
this.keyboardEnabled = true;
|
|
223
|
+
readline.emitKeypressEvents(process.stdin);
|
|
224
|
+
process.stdin.setRawMode(true);
|
|
225
|
+
process.stdin.on('keypress', (str, key) => {
|
|
226
|
+
if (key.ctrl && key.name === 'c') {
|
|
227
|
+
this.stop();
|
|
228
|
+
process.exit(0);
|
|
229
|
+
}
|
|
230
|
+
if (key.name === 't' || key.name === 'm') {
|
|
231
|
+
this.toggleMode();
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
console.log('[Keyboard] Controls enabled: [T/M] toggle mode, [Ctrl+C] stop');
|
|
235
|
+
console.log('');
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Toggle between RL and Non-RL modes
|
|
239
|
+
*/
|
|
240
|
+
toggleMode() {
|
|
241
|
+
const oldMode = this.currentMode;
|
|
242
|
+
this.currentMode = this.currentMode === 'rl' ? 'non-rl' : 'rl';
|
|
243
|
+
this.sourceManager.switchMode();
|
|
244
|
+
console.log(`\n[Mode Switch] ${oldMode.toUpperCase()} → ${this.currentMode.toUpperCase()}\n`);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Stop orchestration
|
|
248
|
+
*/
|
|
249
|
+
stop() {
|
|
250
|
+
this.running = false;
|
|
251
|
+
console.log('\n[Orchestrator] Stopping...');
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Cleanup resources
|
|
255
|
+
*/
|
|
256
|
+
cleanup() {
|
|
257
|
+
if (this.keyboardEnabled && process.stdin.isTTY) {
|
|
258
|
+
process.stdin.setRawMode(false);
|
|
259
|
+
process.stdin.pause();
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Generate comprehensive report
|
|
264
|
+
*/
|
|
265
|
+
static generateReport(stats) {
|
|
266
|
+
let report = '='.repeat(80) + '\n';
|
|
267
|
+
report += 'ATTACK ORCHESTRATION REPORT\n';
|
|
268
|
+
report += '='.repeat(80) + '\n\n';
|
|
269
|
+
report += `Organization: ${stats.organization}\n`;
|
|
270
|
+
report += `Intent: ${stats.intent.toUpperCase()}\n`;
|
|
271
|
+
report += `Mode: ${stats.mode.toUpperCase()}\n`;
|
|
272
|
+
report += `Runtime: ${(stats.totalRuntime / 1000).toFixed(2)}s\n\n`;
|
|
273
|
+
report += '--- Results ---\n';
|
|
274
|
+
report += `Completion: ${stats.completionRate.toFixed(2)}%\n`;
|
|
275
|
+
report += `Compromised: ${stats.compromisedTargets}/${stats.totalTargets}\n`;
|
|
276
|
+
report += ` Servers: ${stats.serversCompromised}\n`;
|
|
277
|
+
report += ` Systems: ${stats.systemsCompromised}\n`;
|
|
278
|
+
report += ` Devices: ${stats.devicesCompromised}\n`;
|
|
279
|
+
report += ` Employees: ${stats.employeesCompromised}\n\n`;
|
|
280
|
+
report += '--- Performance ---\n';
|
|
281
|
+
report += `Iterations: ${stats.totalIterations}\n`;
|
|
282
|
+
report += `Success Rate: ${stats.successRate.toFixed(2)}%\n`;
|
|
283
|
+
report += `Code Versions: ${stats.codeVersionsGenerated}\n`;
|
|
284
|
+
if (stats.mode === 'rl' && stats.totalReward) {
|
|
285
|
+
report += `\n--- RL Metrics ---\n`;
|
|
286
|
+
report += `Total Reward: ${stats.totalReward.toFixed(2)}\n`;
|
|
287
|
+
report += `Average Reward: ${stats.averageReward?.toFixed(2)}\n`;
|
|
288
|
+
}
|
|
289
|
+
report += '\n' + '='.repeat(80) + '\n';
|
|
290
|
+
return report;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
//# sourceMappingURL=completeAttackOrchestrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completeAttackOrchestrator.js","sourceRoot":"","sources":["../../src/core/completeAttackOrchestrator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,2BAA2B,EAAsB,MAAM,kCAAkC,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAoB,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AA8DrC,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAE/E,MAAM,OAAO,0BAA0B;IAC7B,UAAU,CAA8B;IACxC,aAAa,CAAoB;IACjC,WAAW,GAAoB,QAAQ,CAAC;IACxC,OAAO,GAAY,KAAK,CAAC;IACzB,eAAe,GAAY,KAAK,CAAC;IAEzC;QACE,IAAI,CAAC,UAAU,GAAG,IAAI,2BAA2B,EAAE,CAAC;QACpD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,EAAE,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,MAAoB;QAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5B,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,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O,CAAC,CAAC,CAAC,IAAI,CAAC;YAC5D,MAAM,IAAI,mBAAmB,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;QACnE,CAAC;QAED,MAAM,IAAI,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;QAEvC,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defensive Security Toolkit
|
|
3
|
+
*
|
|
4
|
+
* Legitimate security capabilities for:
|
|
5
|
+
* - Threat intelligence gathering (OSINT)
|
|
6
|
+
* - Evidence documentation with chain of custody
|
|
7
|
+
* - Transparency reporting and public disclosure
|
|
8
|
+
* - Authorized penetration testing support
|
|
9
|
+
* - Incident response and forensics
|
|
10
|
+
*
|
|
11
|
+
* All capabilities designed for DEFENSIVE use:
|
|
12
|
+
* - Understanding attack surfaces to defend them
|
|
13
|
+
* - Documenting threats for legal/regulatory action
|
|
14
|
+
* - Transparency to deter bad actors through exposure
|
|
15
|
+
* - Authorized security assessments
|
|
16
|
+
*/
|
|
17
|
+
export interface ThreatActor {
|
|
18
|
+
identifier: string;
|
|
19
|
+
type: 'domain' | 'ip' | 'email' | 'organization' | 'individual' | 'infrastructure';
|
|
20
|
+
firstSeen: string;
|
|
21
|
+
lastSeen: string;
|
|
22
|
+
indicators: ThreatIndicator[];
|
|
23
|
+
relationships: ActorRelationship[];
|
|
24
|
+
riskScore: number;
|
|
25
|
+
notes: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface ThreatIndicator {
|
|
28
|
+
type: 'ip' | 'domain' | 'url' | 'hash' | 'email' | 'phone' | 'wallet' | 'certificate';
|
|
29
|
+
value: string;
|
|
30
|
+
confidence: number;
|
|
31
|
+
source: string;
|
|
32
|
+
timestamp: string;
|
|
33
|
+
context?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ActorRelationship {
|
|
36
|
+
targetId: string;
|
|
37
|
+
relationshipType: 'owns' | 'operates' | 'affiliated' | 'funds' | 'employs' | 'uses';
|
|
38
|
+
confidence: number;
|
|
39
|
+
evidence: string[];
|
|
40
|
+
}
|
|
41
|
+
export interface OSINTResult {
|
|
42
|
+
query: string;
|
|
43
|
+
queryType: string;
|
|
44
|
+
timestamp: string;
|
|
45
|
+
sources: string[];
|
|
46
|
+
findings: OSINTFinding[];
|
|
47
|
+
relatedIndicators: ThreatIndicator[];
|
|
48
|
+
riskAssessment: RiskAssessment;
|
|
49
|
+
}
|
|
50
|
+
export interface OSINTFinding {
|
|
51
|
+
source: string;
|
|
52
|
+
category: string;
|
|
53
|
+
data: Record<string, unknown>;
|
|
54
|
+
reliability: 'confirmed' | 'likely' | 'possible' | 'unconfirmed';
|
|
55
|
+
timestamp: string;
|
|
56
|
+
}
|
|
57
|
+
export interface RiskAssessment {
|
|
58
|
+
overallScore: number;
|
|
59
|
+
factors: RiskFactor[];
|
|
60
|
+
recommendation: string;
|
|
61
|
+
}
|
|
62
|
+
export interface RiskFactor {
|
|
63
|
+
name: string;
|
|
64
|
+
score: number;
|
|
65
|
+
weight: number;
|
|
66
|
+
description: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Open Source Intelligence gathering
|
|
70
|
+
* Uses only publicly available information
|
|
71
|
+
*/
|
|
72
|
+
export declare class OSINTGatherer {
|
|
73
|
+
private cache;
|
|
74
|
+
/**
|
|
75
|
+
* Gather intelligence on a domain
|
|
76
|
+
*/
|
|
77
|
+
investigateDomain(domain: string): Promise<OSINTResult>;
|
|
78
|
+
/**
|
|
79
|
+
* Gather intelligence on an IP address
|
|
80
|
+
*/
|
|
81
|
+
investigateIP(ip: string): Promise<OSINTResult>;
|
|
82
|
+
/**
|
|
83
|
+
* Investigate email address using public sources
|
|
84
|
+
*/
|
|
85
|
+
investigateEmail(email: string): Promise<OSINTResult>;
|
|
86
|
+
/**
|
|
87
|
+
* Search for organization information using public sources
|
|
88
|
+
*/
|
|
89
|
+
investigateOrganization(name: string): Promise<OSINTResult>;
|
|
90
|
+
private queryDNS;
|
|
91
|
+
private queryWHOIS;
|
|
92
|
+
private parseWHOIS;
|
|
93
|
+
private queryReverseDNS;
|
|
94
|
+
private queryCertificateTransparency;
|
|
95
|
+
private queryGeoIP;
|
|
96
|
+
private queryASN;
|
|
97
|
+
private checkThreatFeeds;
|
|
98
|
+
private checkBreachDatabases;
|
|
99
|
+
private searchCorporateRegistries;
|
|
100
|
+
private searchSECFilings;
|
|
101
|
+
private searchCourtRecords;
|
|
102
|
+
private assessRisk;
|
|
103
|
+
}
|
|
104
|
+
export interface Evidence {
|
|
105
|
+
id: string;
|
|
106
|
+
type: 'file' | 'screenshot' | 'log' | 'network_capture' | 'memory_dump' | 'document' | 'communication';
|
|
107
|
+
description: string;
|
|
108
|
+
collectedAt: string;
|
|
109
|
+
collectedBy: string;
|
|
110
|
+
source: string;
|
|
111
|
+
hash: {
|
|
112
|
+
sha256: string;
|
|
113
|
+
sha1: string;
|
|
114
|
+
md5: string;
|
|
115
|
+
};
|
|
116
|
+
size: number;
|
|
117
|
+
originalPath?: string;
|
|
118
|
+
storedPath: string;
|
|
119
|
+
metadata: Record<string, unknown>;
|
|
120
|
+
chainOfCustody: CustodyEvent[];
|
|
121
|
+
tags: string[];
|
|
122
|
+
caseId?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface CustodyEvent {
|
|
125
|
+
timestamp: string;
|
|
126
|
+
action: 'collected' | 'transferred' | 'analyzed' | 'copied' | 'sealed' | 'unsealed' | 'exported';
|
|
127
|
+
actor: string;
|
|
128
|
+
description: string;
|
|
129
|
+
previousHash?: string;
|
|
130
|
+
newHash?: string;
|
|
131
|
+
signature?: string;
|
|
132
|
+
}
|
|
133
|
+
export interface Case {
|
|
134
|
+
id: string;
|
|
135
|
+
name: string;
|
|
136
|
+
description: string;
|
|
137
|
+
createdAt: string;
|
|
138
|
+
updatedAt: string;
|
|
139
|
+
status: 'open' | 'investigating' | 'pending_legal' | 'closed' | 'archived';
|
|
140
|
+
priority: 'critical' | 'high' | 'medium' | 'low';
|
|
141
|
+
assignee?: string;
|
|
142
|
+
evidenceIds: string[];
|
|
143
|
+
timeline: TimelineEvent[];
|
|
144
|
+
notes: CaseNote[];
|
|
145
|
+
tags: string[];
|
|
146
|
+
}
|
|
147
|
+
export interface TimelineEvent {
|
|
148
|
+
timestamp: string;
|
|
149
|
+
eventType: string;
|
|
150
|
+
description: string;
|
|
151
|
+
evidenceIds: string[];
|
|
152
|
+
actors: string[];
|
|
153
|
+
source: string;
|
|
154
|
+
}
|
|
155
|
+
export interface CaseNote {
|
|
156
|
+
id: string;
|
|
157
|
+
timestamp: string;
|
|
158
|
+
author: string;
|
|
159
|
+
content: string;
|
|
160
|
+
attachments: string[];
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Evidence collection and chain of custody management
|
|
164
|
+
* Maintains forensic integrity for legal proceedings
|
|
165
|
+
*/
|
|
166
|
+
export declare class EvidenceManager {
|
|
167
|
+
private evidenceDir;
|
|
168
|
+
private casesDir;
|
|
169
|
+
constructor(baseDir?: string);
|
|
170
|
+
private ensureDirectories;
|
|
171
|
+
/**
|
|
172
|
+
* Collect evidence from a file with full chain of custody
|
|
173
|
+
*/
|
|
174
|
+
collectFileEvidence(filePath: string, description: string, collectedBy: string, caseId?: string, tags?: string[]): Promise<Evidence>;
|
|
175
|
+
/**
|
|
176
|
+
* Collect screenshot evidence
|
|
177
|
+
*/
|
|
178
|
+
collectScreenshotEvidence(screenshotPath: string, description: string, collectedBy: string, caseId?: string, tags?: string[]): Promise<Evidence>;
|
|
179
|
+
/**
|
|
180
|
+
* Collect log evidence (preserves line-by-line integrity)
|
|
181
|
+
*/
|
|
182
|
+
collectLogEvidence(logContent: string, source: string, description: string, collectedBy: string, caseId?: string, tags?: string[]): Promise<Evidence>;
|
|
183
|
+
/**
|
|
184
|
+
* Verify evidence integrity
|
|
185
|
+
*/
|
|
186
|
+
verifyEvidence(evidenceId: string): {
|
|
187
|
+
valid: boolean;
|
|
188
|
+
details: string;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Add custody event to evidence
|
|
192
|
+
*/
|
|
193
|
+
addCustodyEvent(evidenceId: string, action: CustodyEvent['action'], actor: string, description: string): void;
|
|
194
|
+
/**
|
|
195
|
+
* Create a new case
|
|
196
|
+
*/
|
|
197
|
+
createCase(name: string, description: string, priority?: Case['priority'], assignee?: string, tags?: string[]): Case;
|
|
198
|
+
/**
|
|
199
|
+
* Add evidence to case
|
|
200
|
+
*/
|
|
201
|
+
addEvidenceToCase(caseId: string, evidenceId: string): Promise<void>;
|
|
202
|
+
/**
|
|
203
|
+
* Add timeline event to case
|
|
204
|
+
*/
|
|
205
|
+
addTimelineEvent(caseId: string, eventType: string, description: string, evidenceIds?: string[], actors?: string[], eventTimestamp?: string): void;
|
|
206
|
+
/**
|
|
207
|
+
* Export case for legal proceedings
|
|
208
|
+
*/
|
|
209
|
+
exportCase(caseId: string, outputDir: string): string;
|
|
210
|
+
private computeHashes;
|
|
211
|
+
private generateEvidenceId;
|
|
212
|
+
private generateCaseId;
|
|
213
|
+
private saveEvidenceMetadata;
|
|
214
|
+
private loadEvidenceMetadata;
|
|
215
|
+
private saveCaseData;
|
|
216
|
+
private loadCaseData;
|
|
217
|
+
private generateExportManifest;
|
|
218
|
+
}
|
|
219
|
+
export interface TransparencyReport {
|
|
220
|
+
id: string;
|
|
221
|
+
type: 'threat_actor' | 'vulnerability' | 'incident' | 'fraud' | 'abuse' | 'misconduct';
|
|
222
|
+
title: string;
|
|
223
|
+
summary: string;
|
|
224
|
+
severity: 'critical' | 'high' | 'medium' | 'low' | 'informational';
|
|
225
|
+
status: 'draft' | 'review' | 'published' | 'redacted';
|
|
226
|
+
createdAt: string;
|
|
227
|
+
publishedAt?: string;
|
|
228
|
+
authors: string[];
|
|
229
|
+
sections: ReportSection[];
|
|
230
|
+
indicators: ThreatIndicator[];
|
|
231
|
+
recommendations: string[];
|
|
232
|
+
references: string[];
|
|
233
|
+
legalDisclaimer: string;
|
|
234
|
+
redactions: Redaction[];
|
|
235
|
+
}
|
|
236
|
+
export interface ReportSection {
|
|
237
|
+
title: string;
|
|
238
|
+
content: string;
|
|
239
|
+
evidenceRefs: string[];
|
|
240
|
+
order: number;
|
|
241
|
+
}
|
|
242
|
+
export interface Redaction {
|
|
243
|
+
sectionIndex: number;
|
|
244
|
+
reason: string;
|
|
245
|
+
redactedBy: string;
|
|
246
|
+
timestamp: string;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Generate transparency reports for public disclosure
|
|
250
|
+
* Supports responsible disclosure practices
|
|
251
|
+
*/
|
|
252
|
+
export declare class TransparencyReporter {
|
|
253
|
+
private reportsDir;
|
|
254
|
+
constructor(baseDir?: string);
|
|
255
|
+
/**
|
|
256
|
+
* Create a new transparency report
|
|
257
|
+
*/
|
|
258
|
+
createReport(type: TransparencyReport['type'], title: string, summary: string, severity: TransparencyReport['severity'], authors: string[]): TransparencyReport;
|
|
259
|
+
/**
|
|
260
|
+
* Add section to report
|
|
261
|
+
*/
|
|
262
|
+
addSection(reportId: string, title: string, content: string, evidenceRefs?: string[]): void;
|
|
263
|
+
/**
|
|
264
|
+
* Add indicators of compromise
|
|
265
|
+
*/
|
|
266
|
+
addIndicators(reportId: string, indicators: ThreatIndicator[]): void;
|
|
267
|
+
/**
|
|
268
|
+
* Add recommendations
|
|
269
|
+
*/
|
|
270
|
+
addRecommendations(reportId: string, recommendations: string[]): void;
|
|
271
|
+
/**
|
|
272
|
+
* Publish report (makes it final)
|
|
273
|
+
*/
|
|
274
|
+
publishReport(reportId: string): TransparencyReport;
|
|
275
|
+
/**
|
|
276
|
+
* Export report in various formats
|
|
277
|
+
*/
|
|
278
|
+
exportReport(reportId: string, format: 'json' | 'markdown' | 'html'): string;
|
|
279
|
+
/**
|
|
280
|
+
* Generate STIX 2.1 bundle for threat intelligence sharing
|
|
281
|
+
*/
|
|
282
|
+
toSTIX(reportId: string): Record<string, unknown>;
|
|
283
|
+
private toMarkdown;
|
|
284
|
+
private toHTML;
|
|
285
|
+
private mapTypeToSTIX;
|
|
286
|
+
private toSTIXPattern;
|
|
287
|
+
private getDefaultDisclaimer;
|
|
288
|
+
private saveReport;
|
|
289
|
+
private loadReport;
|
|
290
|
+
}
|
|
291
|
+
export interface PentestScope {
|
|
292
|
+
id: string;
|
|
293
|
+
name: string;
|
|
294
|
+
authorizedBy: string;
|
|
295
|
+
authorizationDate: string;
|
|
296
|
+
expirationDate: string;
|
|
297
|
+
targets: ScopeTarget[];
|
|
298
|
+
excludedTargets: string[];
|
|
299
|
+
allowedTests: string[];
|
|
300
|
+
disallowedTests: string[];
|
|
301
|
+
rules: string[];
|
|
302
|
+
emergencyContact: string;
|
|
303
|
+
}
|
|
304
|
+
export interface ScopeTarget {
|
|
305
|
+
type: 'ip' | 'ip_range' | 'domain' | 'url' | 'application';
|
|
306
|
+
value: string;
|
|
307
|
+
description?: string;
|
|
308
|
+
}
|
|
309
|
+
export interface TestResult {
|
|
310
|
+
id: string;
|
|
311
|
+
scopeId: string;
|
|
312
|
+
testType: string;
|
|
313
|
+
target: string;
|
|
314
|
+
timestamp: string;
|
|
315
|
+
status: 'success' | 'failure' | 'error' | 'blocked';
|
|
316
|
+
findings: Finding[];
|
|
317
|
+
rawOutput?: string;
|
|
318
|
+
}
|
|
319
|
+
export interface Finding {
|
|
320
|
+
id: string;
|
|
321
|
+
type: string;
|
|
322
|
+
severity: 'critical' | 'high' | 'medium' | 'low' | 'info';
|
|
323
|
+
title: string;
|
|
324
|
+
description: string;
|
|
325
|
+
evidence: string;
|
|
326
|
+
recommendation: string;
|
|
327
|
+
cvss?: number;
|
|
328
|
+
cwe?: string;
|
|
329
|
+
references: string[];
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Authorized penetration testing support
|
|
333
|
+
* Requires explicit scope and authorization
|
|
334
|
+
*/
|
|
335
|
+
export declare class AuthorizedPentestSupport {
|
|
336
|
+
private scopesDir;
|
|
337
|
+
private resultsDir;
|
|
338
|
+
constructor(baseDir?: string);
|
|
339
|
+
/**
|
|
340
|
+
* Create a new pentest scope (authorization document)
|
|
341
|
+
*/
|
|
342
|
+
createScope(name: string, authorizedBy: string, targets: ScopeTarget[], expirationDays?: number, rules?: string[]): PentestScope;
|
|
343
|
+
/**
|
|
344
|
+
* Verify target is in scope
|
|
345
|
+
*/
|
|
346
|
+
isInScope(scopeId: string, target: string): {
|
|
347
|
+
inScope: boolean;
|
|
348
|
+
reason: string;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* Check if test type is allowed
|
|
352
|
+
*/
|
|
353
|
+
isTestAllowed(scopeId: string, testType: string): {
|
|
354
|
+
allowed: boolean;
|
|
355
|
+
reason: string;
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Log test result
|
|
359
|
+
*/
|
|
360
|
+
logTestResult(scopeId: string, testType: string, target: string, status: TestResult['status'], findings?: Finding[], rawOutput?: string): TestResult;
|
|
361
|
+
/**
|
|
362
|
+
* Generate pentest report
|
|
363
|
+
*/
|
|
364
|
+
generateReport(scopeId: string): string;
|
|
365
|
+
private matchesTarget;
|
|
366
|
+
private saveScope;
|
|
367
|
+
private loadScope;
|
|
368
|
+
}
|
|
369
|
+
export declare const osint: OSINTGatherer;
|
|
370
|
+
export declare const evidence: EvidenceManager;
|
|
371
|
+
export declare const transparency: TransparencyReporter;
|
|
372
|
+
export declare const pentest: AuthorizedPentestSupport;
|
|
373
|
+
//# sourceMappingURL=defensiveSecurityToolkit.d.ts.map
|