erosolar-cli 1.5.3 → 1.5.5
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/config/security-deployment.json +54 -0
- package/dist/active-stack-security.d.ts +110 -0
- package/dist/active-stack-security.js +313 -0
- package/dist/active-stack-security.js.map +1 -0
- package/dist/advanced-targeting.d.ts +113 -0
- package/dist/advanced-targeting.js +252 -0
- package/dist/advanced-targeting.js.map +1 -0
- package/dist/bin/adapters/node/index.js +33 -0
- package/dist/bin/adapters/types.js +1 -0
- package/dist/bin/alpha-zero/agentWrapper.js +165 -0
- package/dist/bin/alpha-zero/codeEvaluator.js +272 -0
- package/dist/bin/alpha-zero/competitiveRunner.js +219 -0
- package/dist/bin/alpha-zero/index.js +98 -0
- package/dist/bin/alpha-zero/introspection.js +298 -0
- package/dist/bin/alpha-zero/metricsTracker.js +207 -0
- package/dist/bin/alpha-zero/security/core.js +269 -0
- package/dist/bin/alpha-zero/security/google.js +308 -0
- package/dist/bin/alpha-zero/security/googleLoader.js +40 -0
- package/dist/bin/alpha-zero/security/index.js +31 -0
- package/dist/bin/alpha-zero/security/simulation.js +274 -0
- package/dist/bin/alpha-zero/selfModification.js +231 -0
- package/dist/bin/alpha-zero/types.js +30 -0
- package/dist/bin/bin/erosolar-optimized.js +205 -0
- package/dist/bin/capabilities/agentSpawningCapability.js +116 -0
- package/dist/bin/capabilities/bashCapability.js +22 -0
- package/dist/bin/capabilities/cloudCapability.js +36 -0
- package/dist/bin/capabilities/codeAnalysisCapability.js +22 -0
- package/dist/bin/capabilities/codeQualityCapability.js +23 -0
- package/dist/bin/capabilities/dependencySecurityCapability.js +22 -0
- package/dist/bin/capabilities/devCapability.js +22 -0
- package/dist/bin/capabilities/editCapability.js +28 -0
- package/dist/bin/capabilities/emailCapability.js +20 -0
- package/dist/bin/capabilities/enhancedGitCapability.js +221 -0
- package/dist/bin/capabilities/filesystemCapability.js +22 -0
- package/dist/bin/capabilities/globCapability.js +28 -0
- package/dist/bin/capabilities/interactionCapability.js +20 -0
- package/dist/bin/capabilities/learnCapability.js +22 -0
- package/dist/bin/capabilities/mcpCapability.js +20 -0
- package/dist/bin/capabilities/notebookCapability.js +28 -0
- package/dist/bin/capabilities/planningCapability.js +27 -0
- package/dist/bin/capabilities/refactoringCapability.js +23 -0
- package/dist/bin/capabilities/repoChecksCapability.js +22 -0
- package/dist/bin/capabilities/searchCapability.js +22 -0
- package/dist/bin/capabilities/skillCapability.js +76 -0
- package/dist/bin/capabilities/taskManagementCapability.js +20 -0
- package/dist/bin/capabilities/testingCapability.js +23 -0
- package/dist/bin/capabilities/toolManifest.js +159 -0
- package/dist/bin/capabilities/toolRegistry.js +114 -0
- package/dist/bin/capabilities/webCapability.js +20 -0
- package/dist/bin/config.js +139 -0
- package/dist/bin/contracts/v1/agent.js +7 -0
- package/dist/bin/contracts/v1/agentProfileManifest.js +8 -0
- package/dist/bin/contracts/v1/agentRules.js +9 -0
- package/dist/bin/contracts/v1/toolAccess.js +8 -0
- package/dist/bin/core/agent.js +362 -0
- package/dist/bin/core/agentProfileManifest.js +187 -0
- package/dist/bin/core/agentProfiles.js +34 -0
- package/dist/bin/core/agentRulebook.js +135 -0
- package/dist/bin/core/agentSchemaLoader.js +233 -0
- package/dist/bin/core/contextManager.js +412 -0
- package/dist/bin/core/contextWindow.js +122 -0
- package/dist/bin/core/customCommands.js +80 -0
- package/dist/bin/core/errors/apiKeyErrors.js +114 -0
- package/dist/bin/core/errors/errorTypes.js +340 -0
- package/dist/bin/core/errors/safetyValidator.js +304 -0
- package/dist/bin/core/errors.js +32 -0
- package/dist/bin/core/modelDiscovery.js +755 -0
- package/dist/bin/core/preferences.js +224 -0
- package/dist/bin/core/schemaValidator.js +92 -0
- package/dist/bin/core/secretStore.js +199 -0
- package/dist/bin/core/sessionStore.js +187 -0
- package/dist/bin/core/toolRuntime.js +290 -0
- package/dist/bin/core/types.js +1 -0
- package/dist/bin/erosolar-optimized.d.ts +12 -0
- package/dist/bin/erosolar-optimized.d.ts.map +1 -0
- package/dist/bin/erosolar-optimized.js +239 -0
- package/dist/bin/erosolar-optimized.js.map +1 -0
- package/dist/bin/erosolar.js +14 -0
- package/dist/bin/erosolar.js.map +1 -1
- package/dist/bin/headless/headlessApp.js +172 -0
- package/dist/bin/mcp/config.js +202 -0
- package/dist/bin/mcp/stdioClient.js +172 -0
- package/dist/bin/mcp/toolBridge.js +104 -0
- package/dist/bin/mcp/types.js +1 -0
- package/dist/bin/plugins/index.js +113 -0
- package/dist/bin/plugins/providers/anthropic/index.js +25 -0
- package/dist/bin/plugins/providers/deepseek/index.js +24 -0
- package/dist/bin/plugins/providers/google/index.js +26 -0
- package/dist/bin/plugins/providers/index.js +19 -0
- package/dist/bin/plugins/providers/ollama/index.js +59 -0
- package/dist/bin/plugins/providers/openai/index.js +26 -0
- package/dist/bin/plugins/providers/xai/index.js +24 -0
- package/dist/bin/plugins/tools/agentSpawning/agentSpawningPlugin.js +8 -0
- package/dist/bin/plugins/tools/bash/localBashPlugin.js +13 -0
- package/dist/bin/plugins/tools/checks/localRepoChecksPlugin.js +13 -0
- package/dist/bin/plugins/tools/cloud/cloudPlugin.js +13 -0
- package/dist/bin/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +13 -0
- package/dist/bin/plugins/tools/codeQuality/codeQualityPlugin.js +13 -0
- package/dist/bin/plugins/tools/dependency/dependencyPlugin.js +11 -0
- package/dist/bin/plugins/tools/development/devPlugin.js +13 -0
- package/dist/bin/plugins/tools/edit/editPlugin.js +14 -0
- package/dist/bin/plugins/tools/email/emailPlugin.js +11 -0
- package/dist/bin/plugins/tools/enhancedGit/enhancedGitPlugin.js +8 -0
- package/dist/bin/plugins/tools/filesystem/localFilesystemPlugin.js +13 -0
- package/dist/bin/plugins/tools/glob/globPlugin.js +14 -0
- package/dist/bin/plugins/tools/index.js +2 -0
- package/dist/bin/plugins/tools/interaction/interactionPlugin.js +11 -0
- package/dist/bin/plugins/tools/learn/learnPlugin.js +13 -0
- package/dist/bin/plugins/tools/mcp/mcpPlugin.js +8 -0
- package/dist/bin/plugins/tools/nodeDefaults.js +56 -0
- package/dist/bin/plugins/tools/notebook/notebookPlugin.js +14 -0
- package/dist/bin/plugins/tools/planning/planningPlugin.js +14 -0
- package/dist/bin/plugins/tools/refactoring/refactoringPlugin.js +11 -0
- package/dist/bin/plugins/tools/registry.js +57 -0
- package/dist/bin/plugins/tools/search/localSearchPlugin.js +13 -0
- package/dist/bin/plugins/tools/skills/skillPlugin.js +8 -0
- package/dist/bin/plugins/tools/taskManagement/taskManagementPlugin.js +11 -0
- package/dist/bin/plugins/tools/testing/testingPlugin.js +11 -0
- package/dist/bin/plugins/tools/web/webPlugin.js +11 -0
- package/dist/bin/providers/anthropicProvider.js +329 -0
- package/dist/bin/providers/googleProvider.js +203 -0
- package/dist/bin/providers/openaiChatCompletionsProvider.js +208 -0
- package/dist/bin/providers/openaiResponsesProvider.js +249 -0
- package/dist/bin/providers/providerFactory.js +24 -0
- package/dist/bin/runtime/agentController.js +321 -0
- package/dist/bin/runtime/agentHost.js +153 -0
- package/dist/bin/runtime/agentSession.js +195 -0
- package/dist/bin/runtime/node.js +10 -0
- package/dist/bin/runtime/universal.js +28 -0
- package/dist/bin/shell/bracketedPasteManager.js +350 -0
- package/dist/bin/shell/fileChangeTracker.js +65 -0
- package/dist/bin/shell/interactiveShell.js +2908 -0
- package/dist/bin/shell/liveStatus.js +78 -0
- package/dist/bin/shell/shellApp.js +290 -0
- package/dist/bin/shell/systemPrompt.js +60 -0
- package/dist/bin/shell/updateManager.js +108 -0
- package/dist/bin/skills/skillRepository.js +236 -0
- package/dist/bin/skills/types.js +1 -0
- package/dist/bin/subagents/taskRunner.js +269 -0
- package/dist/bin/tools/backgroundBashTools.js +211 -0
- package/dist/bin/tools/bashTools.js +159 -0
- package/dist/bin/tools/cloudTools.js +864 -0
- package/dist/bin/tools/codeAnalysisTools.js +641 -0
- package/dist/bin/tools/codeQualityTools.js +294 -0
- package/dist/bin/tools/dependencyTools.js +282 -0
- package/dist/bin/tools/devTools.js +238 -0
- package/dist/bin/tools/diffUtils.js +137 -0
- package/dist/bin/tools/editTools.js +134 -0
- package/dist/bin/tools/emailTools.js +448 -0
- package/dist/bin/tools/fileTools.js +282 -0
- package/dist/bin/tools/globTools.js +173 -0
- package/dist/bin/tools/grepTools.js +332 -0
- package/dist/bin/tools/interactionTools.js +170 -0
- package/dist/bin/tools/learnTools.js +1818 -0
- package/dist/bin/tools/notebookEditTools.js +196 -0
- package/dist/bin/tools/planningTools.js +46 -0
- package/dist/bin/tools/refactoringTools.js +293 -0
- package/dist/bin/tools/repoChecksTools.js +160 -0
- package/dist/bin/tools/searchTools.js +206 -0
- package/dist/bin/tools/skillTools.js +177 -0
- package/dist/bin/tools/taskManagementTools.js +156 -0
- package/dist/bin/tools/testingTools.js +232 -0
- package/dist/bin/tools/webTools.js +480 -0
- package/dist/bin/ui/ShellUIAdapter.js +459 -0
- package/dist/bin/ui/UnifiedUIController.js +183 -0
- package/dist/bin/ui/animation/AnimationScheduler.js +430 -0
- package/dist/bin/ui/codeHighlighter.js +854 -0
- package/dist/bin/ui/designSystem.js +121 -0
- package/dist/bin/ui/display.js +1222 -0
- package/dist/bin/ui/interrupts/InterruptManager.js +437 -0
- package/dist/bin/ui/layout.js +139 -0
- package/dist/bin/ui/orchestration/StatusOrchestrator.js +403 -0
- package/dist/bin/ui/outputMode.js +38 -0
- package/dist/bin/ui/persistentPrompt.js +183 -0
- package/dist/bin/ui/richText.js +338 -0
- package/dist/bin/ui/shortcutsHelp.js +87 -0
- package/dist/bin/ui/telemetry/UITelemetry.js +443 -0
- package/dist/bin/ui/textHighlighter.js +210 -0
- package/dist/bin/ui/theme.js +116 -0
- package/dist/bin/ui/toolDisplay.js +423 -0
- package/dist/bin/ui/toolDisplayAdapter.js +357 -0
- package/dist/bin/workspace.js +106 -0
- package/dist/bin/workspace.validator.js +213 -0
- package/dist/capabilities/offensiveSecurityCapability.d.ts +26 -0
- package/dist/capabilities/offensiveSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/offensiveSecurityCapability.js +58 -0
- package/dist/capabilities/offensiveSecurityCapability.js.map +1 -0
- package/dist/capabilities/realSecurityCapability.d.ts +26 -0
- package/dist/capabilities/realSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/realSecurityCapability.js +53 -0
- package/dist/capabilities/realSecurityCapability.js.map +1 -0
- package/dist/capabilities/securityCapability.d.ts +32 -0
- package/dist/capabilities/securityCapability.d.ts.map +1 -0
- package/dist/capabilities/securityCapability.js +57 -0
- package/dist/capabilities/securityCapability.js.map +1 -0
- package/dist/capabilities/ultimateSecurityCapability.d.ts +42 -0
- package/dist/capabilities/ultimateSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/ultimateSecurityCapability.js +96 -0
- package/dist/capabilities/ultimateSecurityCapability.js.map +1 -0
- package/dist/core/LazyLoader.d.ts +129 -0
- package/dist/core/LazyLoader.d.ts.map +1 -0
- package/dist/core/LazyLoader.js +240 -0
- package/dist/core/LazyLoader.js.map +1 -0
- package/dist/core/agent.d.ts.map +1 -1
- package/dist/core/agent.js +78 -8
- package/dist/core/agent.js.map +1 -1
- package/dist/core/contextManager.d.ts.map +1 -1
- package/dist/core/contextManager.js +117 -16
- package/dist/core/contextManager.js.map +1 -1
- package/dist/core/intelligenceTools.d.ts +19 -0
- package/dist/core/intelligenceTools.d.ts.map +1 -0
- package/dist/core/intelligenceTools.js +453 -0
- package/dist/core/intelligenceTools.js.map +1 -0
- package/dist/core/operationalTools.d.ts +19 -0
- package/dist/core/operationalTools.d.ts.map +1 -0
- package/dist/core/operationalTools.js +467 -0
- package/dist/core/operationalTools.js.map +1 -0
- package/dist/intelligence/codeIntelligence.d.ts.map +1 -1
- package/dist/intelligence/codeIntelligence.js +12 -0
- package/dist/intelligence/codeIntelligence.js.map +1 -1
- package/dist/offensive/core/offensive-engine.d.ts +171 -0
- package/dist/offensive/core/offensive-engine.d.ts.map +1 -0
- package/dist/offensive/core/offensive-engine.js +345 -0
- package/dist/offensive/core/offensive-engine.js.map +1 -0
- package/dist/offensive/core/offensive-integration.d.ts +129 -0
- package/dist/offensive/core/offensive-integration.d.ts.map +1 -0
- package/dist/offensive/core/offensive-integration.js +364 -0
- package/dist/offensive/core/offensive-integration.js.map +1 -0
- package/dist/offensive/core/offensive-tools.d.ts +55 -0
- package/dist/offensive/core/offensive-tools.d.ts.map +1 -0
- package/dist/offensive/core/offensive-tools.js +438 -0
- package/dist/offensive/core/offensive-tools.js.map +1 -0
- package/dist/offensive/offensive-cli.d.ts +48 -0
- package/dist/offensive/offensive-cli.d.ts.map +1 -0
- package/dist/offensive/offensive-cli.js +233 -0
- package/dist/offensive/offensive-cli.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 +2 -0
- package/dist/plugins/index.js.map +1 -1
- package/dist/security/active-stack-security.d.ts +112 -0
- package/dist/security/active-stack-security.d.ts.map +1 -0
- package/dist/security/active-stack-security.js +296 -0
- package/dist/security/active-stack-security.js.map +1 -0
- package/dist/security/advanced-persistence-research.d.ts +92 -0
- package/dist/security/advanced-persistence-research.d.ts.map +1 -0
- package/dist/security/advanced-persistence-research.js +195 -0
- package/dist/security/advanced-persistence-research.js.map +1 -0
- package/dist/security/advanced-targeting.d.ts +119 -0
- package/dist/security/advanced-targeting.d.ts.map +1 -0
- package/dist/security/advanced-targeting.js +233 -0
- package/dist/security/advanced-targeting.js.map +1 -0
- package/dist/security/apt-simulation-cli.d.ts +57 -0
- package/dist/security/apt-simulation-cli.d.ts.map +1 -0
- package/dist/security/apt-simulation-cli.js +278 -0
- package/dist/security/apt-simulation-cli.js.map +1 -0
- package/dist/security/apt-simulation-engine-complete.d.ts +97 -0
- package/dist/security/apt-simulation-engine-complete.d.ts.map +1 -0
- package/dist/security/apt-simulation-engine-complete.js +441 -0
- package/dist/security/apt-simulation-engine-complete.js.map +1 -0
- package/dist/security/apt-simulation-engine.d.ts +97 -0
- package/dist/security/apt-simulation-engine.d.ts.map +1 -0
- package/dist/security/apt-simulation-engine.js +441 -0
- package/dist/security/apt-simulation-engine.js.map +1 -0
- package/dist/security/assessment/vulnerabilityAssessment.d.ts +104 -0
- package/dist/security/assessment/vulnerabilityAssessment.d.ts.map +1 -0
- package/dist/security/assessment/vulnerabilityAssessment.js +315 -0
- package/dist/security/assessment/vulnerabilityAssessment.js.map +1 -0
- package/dist/security/authorization/securityAuthorization.d.ts +88 -0
- package/dist/security/authorization/securityAuthorization.d.ts.map +1 -0
- package/dist/security/authorization/securityAuthorization.js +172 -0
- package/dist/security/authorization/securityAuthorization.js.map +1 -0
- package/dist/security/authorization.d.ts +45 -0
- package/dist/security/authorization.d.ts.map +1 -0
- package/dist/security/authorization.js +128 -0
- package/dist/security/authorization.js.map +1 -0
- package/dist/security/comprehensive-security-research.d.ts +84 -0
- package/dist/security/comprehensive-security-research.d.ts.map +1 -0
- package/dist/security/comprehensive-security-research.js +211 -0
- package/dist/security/comprehensive-security-research.js.map +1 -0
- package/dist/security/comprehensive-targeting.d.ts +85 -0
- package/dist/security/comprehensive-targeting.d.ts.map +1 -0
- package/dist/security/comprehensive-targeting.js +438 -0
- package/dist/security/comprehensive-targeting.js.map +1 -0
- package/dist/security/global-security-integration.d.ts +91 -0
- package/dist/security/global-security-integration.d.ts.map +1 -0
- package/dist/security/global-security-integration.js +218 -0
- package/dist/security/global-security-integration.js.map +1 -0
- package/dist/security/index.d.ts +38 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +47 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/offensive/exploitationEngine.d.ts +54 -0
- package/dist/security/offensive/exploitationEngine.d.ts.map +1 -0
- package/dist/security/offensive/exploitationEngine.js +263 -0
- package/dist/security/offensive/exploitationEngine.js.map +1 -0
- package/dist/security/persistence-cli.d.ts +36 -0
- package/dist/security/persistence-cli.d.ts.map +1 -0
- package/dist/security/persistence-cli.js +160 -0
- package/dist/security/persistence-cli.js.map +1 -0
- package/dist/security/persistence-research.d.ts +11 -0
- package/dist/security/persistence-research.d.ts.map +1 -1
- package/dist/security/persistence-research.js +11 -0
- package/dist/security/persistence-research.js.map +1 -1
- package/dist/security/real/networkExploitation.d.ts +92 -0
- package/dist/security/real/networkExploitation.d.ts.map +1 -0
- package/dist/security/real/networkExploitation.js +316 -0
- package/dist/security/real/networkExploitation.js.map +1 -0
- package/dist/security/real/persistenceImplementation.d.ts +62 -0
- package/dist/security/real/persistenceImplementation.d.ts.map +1 -0
- package/dist/security/real/persistenceImplementation.js +323 -0
- package/dist/security/real/persistenceImplementation.js.map +1 -0
- package/dist/security/real/vulnerabilityScanner.d.ts +73 -0
- package/dist/security/real/vulnerabilityScanner.d.ts.map +1 -0
- package/dist/security/real/vulnerabilityScanner.js +341 -0
- package/dist/security/real/vulnerabilityScanner.js.map +1 -0
- package/dist/security/research/persistenceResearch.d.ts +97 -0
- package/dist/security/research/persistenceResearch.d.ts.map +1 -0
- package/dist/security/research/persistenceResearch.js +282 -0
- package/dist/security/research/persistenceResearch.js.map +1 -0
- package/dist/security/security-integration.d.ts +74 -0
- package/dist/security/security-integration.d.ts.map +1 -0
- package/dist/security/security-integration.js +137 -0
- package/dist/security/security-integration.js.map +1 -0
- package/dist/security/security-testing-framework.d.ts +120 -0
- package/dist/security/security-testing-framework.d.ts.map +1 -0
- package/dist/security/security-testing-framework.js +372 -0
- package/dist/security/security-testing-framework.js.map +1 -0
- package/dist/security/simulation/attackSimulation.d.ts +93 -0
- package/dist/security/simulation/attackSimulation.d.ts.map +1 -0
- package/dist/security/simulation/attackSimulation.js +341 -0
- package/dist/security/simulation/attackSimulation.js.map +1 -0
- package/dist/security/strategic-operations.d.ts +100 -0
- package/dist/security/strategic-operations.d.ts.map +1 -0
- package/dist/security/strategic-operations.js +276 -0
- package/dist/security/strategic-operations.js.map +1 -0
- package/dist/security/tool-security-wrapper.d.ts +58 -0
- package/dist/security/tool-security-wrapper.d.ts.map +1 -0
- package/dist/security/tool-security-wrapper.js +156 -0
- package/dist/security/tool-security-wrapper.js.map +1 -0
- package/dist/shell/bracketedPasteManager.d.ts +33 -0
- package/dist/shell/bracketedPasteManager.d.ts.map +1 -1
- package/dist/shell/bracketedPasteManager.js +101 -0
- package/dist/shell/bracketedPasteManager.js.map +1 -1
- package/dist/shell/interactiveShell.d.ts +22 -1
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +257 -24
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/shell/taskCompletionDetector.d.ts +101 -0
- package/dist/shell/taskCompletionDetector.d.ts.map +1 -0
- package/dist/shell/taskCompletionDetector.js +343 -0
- package/dist/shell/taskCompletionDetector.js.map +1 -0
- package/dist/tools/cloudTools.d.ts +11 -0
- package/dist/tools/cloudTools.d.ts.map +1 -1
- package/dist/tools/cloudTools.js +11 -0
- package/dist/tools/cloudTools.js.map +1 -1
- package/dist/tools/codeAnalysisTools.d.ts.map +1 -1
- package/dist/tools/codeAnalysisTools.js +23 -1
- package/dist/tools/codeAnalysisTools.js.map +1 -1
- package/dist/tools/enhancedSecurityTools.d.ts +19 -0
- package/dist/tools/enhancedSecurityTools.d.ts.map +1 -0
- package/dist/tools/enhancedSecurityTools.js +215 -0
- package/dist/tools/enhancedSecurityTools.js.map +1 -0
- package/dist/tools/fileTools.d.ts.map +1 -1
- package/dist/tools/fileTools.js +7 -0
- package/dist/tools/fileTools.js.map +1 -1
- package/dist/tools/grepTools.d.ts.map +1 -1
- package/dist/tools/grepTools.js +6 -0
- package/dist/tools/grepTools.js.map +1 -1
- package/dist/tools/offensiveSecurityTools.d.ts +16 -0
- package/dist/tools/offensiveSecurityTools.d.ts.map +1 -0
- package/dist/tools/offensiveSecurityTools.js +285 -0
- package/dist/tools/offensiveSecurityTools.js.map +1 -0
- package/dist/tools/realSecurityTools.d.ts +18 -0
- package/dist/tools/realSecurityTools.d.ts.map +1 -0
- package/dist/tools/realSecurityTools.js +468 -0
- package/dist/tools/realSecurityTools.js.map +1 -0
- package/dist/tools/securityTools.d.ts +20 -0
- package/dist/tools/securityTools.d.ts.map +1 -0
- package/dist/tools/securityTools.js +449 -0
- package/dist/tools/securityTools.js.map +1 -0
- package/dist/tools/webTools.js +9 -0
- package/dist/tools/webTools.js.map +1 -1
- package/package.json +26 -11
- package/scripts/deploy-security-capabilities.js +178 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offensive Security Tools
|
|
3
|
+
*
|
|
4
|
+
* Advanced offensive security capabilities for authorized testing.
|
|
5
|
+
*/
|
|
6
|
+
import { OffensiveExploitationEngine } from '../security/offensive/exploitationEngine.js';
|
|
7
|
+
/**
|
|
8
|
+
* Create offensive security tools
|
|
9
|
+
*/
|
|
10
|
+
export function createOffensiveSecurityTools(workingDir, options = {}) {
|
|
11
|
+
const tools = [];
|
|
12
|
+
const exploitationEngine = new OffensiveExploitationEngine();
|
|
13
|
+
// Advanced exploitation tools
|
|
14
|
+
tools.push(createReverseShellTool(exploitationEngine, options));
|
|
15
|
+
tools.push(createFilelessPersistenceTool(exploitationEngine, options));
|
|
16
|
+
tools.push(createWebShellTool(exploitationEngine, options));
|
|
17
|
+
tools.push(createScheduledPersistenceTool(exploitationEngine, options));
|
|
18
|
+
tools.push(createObfuscatedPayloadTool(exploitationEngine, options));
|
|
19
|
+
tools.push(createDnsTunnelingTool(exploitationEngine, options));
|
|
20
|
+
tools.push(createPhishingTemplateTool(exploitationEngine, options));
|
|
21
|
+
tools.push(createBackdoorUserTool(exploitationEngine, options));
|
|
22
|
+
return tools;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Create reverse shell payload tool
|
|
26
|
+
*/
|
|
27
|
+
function createReverseShellTool(exploitationEngine, options) {
|
|
28
|
+
return {
|
|
29
|
+
name: 'generate_reverse_shell',
|
|
30
|
+
description: 'Generate reverse shell payloads for various platforms',
|
|
31
|
+
parameters: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
properties: {
|
|
34
|
+
target: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Target IP address for reverse connection'
|
|
37
|
+
},
|
|
38
|
+
port: {
|
|
39
|
+
type: 'number',
|
|
40
|
+
description: 'Target port for reverse connection'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
required: ['target', 'port']
|
|
44
|
+
},
|
|
45
|
+
handler: async (args) => {
|
|
46
|
+
if (options.requireAuthorization) {
|
|
47
|
+
// Authorization check
|
|
48
|
+
}
|
|
49
|
+
const target = args['target'];
|
|
50
|
+
const port = args['port'];
|
|
51
|
+
const payloads = exploitationEngine.generateReverseShell(target, port);
|
|
52
|
+
return JSON.stringify({
|
|
53
|
+
target,
|
|
54
|
+
port,
|
|
55
|
+
payloads,
|
|
56
|
+
warning: 'Reverse shell payloads generated - use responsibly'
|
|
57
|
+
}, null, 2);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Create fileless persistence tool
|
|
63
|
+
*/
|
|
64
|
+
function createFilelessPersistenceTool(exploitationEngine, options) {
|
|
65
|
+
return {
|
|
66
|
+
name: 'create_fileless_persistence',
|
|
67
|
+
description: 'Create fileless persistence mechanisms',
|
|
68
|
+
parameters: {
|
|
69
|
+
type: 'object',
|
|
70
|
+
properties: {}
|
|
71
|
+
},
|
|
72
|
+
handler: async (args) => {
|
|
73
|
+
if (options.requireAuthorization && !options.enableAdvancedExploitation) {
|
|
74
|
+
return JSON.stringify({
|
|
75
|
+
error: 'Advanced exploitation disabled - enable with enableAdvancedExploitation option'
|
|
76
|
+
}, null, 2);
|
|
77
|
+
}
|
|
78
|
+
const result = await exploitationEngine.createFilelessPersistence();
|
|
79
|
+
return JSON.stringify({
|
|
80
|
+
technique: result.technique,
|
|
81
|
+
success: result.success,
|
|
82
|
+
output: result.output,
|
|
83
|
+
evidence: result.evidence,
|
|
84
|
+
warning: 'Fileless persistence created - ensure proper authorization'
|
|
85
|
+
}, null, 2);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Create web shell deployment tool
|
|
91
|
+
*/
|
|
92
|
+
function createWebShellTool(exploitationEngine, options) {
|
|
93
|
+
return {
|
|
94
|
+
name: 'deploy_web_shell',
|
|
95
|
+
description: 'Deploy web shells for backdoor access',
|
|
96
|
+
parameters: {
|
|
97
|
+
type: 'object',
|
|
98
|
+
properties: {
|
|
99
|
+
targetPath: {
|
|
100
|
+
type: 'string',
|
|
101
|
+
description: 'Target directory to deploy web shells'
|
|
102
|
+
},
|
|
103
|
+
password: {
|
|
104
|
+
type: 'string',
|
|
105
|
+
description: 'Password for web shell access'
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
required: ['targetPath']
|
|
109
|
+
},
|
|
110
|
+
handler: async (args) => {
|
|
111
|
+
if (options.requireAuthorization && !options.enableAdvancedExploitation) {
|
|
112
|
+
return JSON.stringify({
|
|
113
|
+
error: 'Advanced exploitation disabled - enable with enableAdvancedExploitation option'
|
|
114
|
+
}, null, 2);
|
|
115
|
+
}
|
|
116
|
+
const targetPath = args['targetPath'];
|
|
117
|
+
const password = args['password'] || 'pass123';
|
|
118
|
+
const result = await exploitationEngine.deployWebShell(targetPath, password);
|
|
119
|
+
return JSON.stringify({
|
|
120
|
+
targetPath,
|
|
121
|
+
technique: result.technique,
|
|
122
|
+
success: result.success,
|
|
123
|
+
output: result.output,
|
|
124
|
+
evidence: result.evidence,
|
|
125
|
+
warning: 'Web shells deployed - ensure proper authorization'
|
|
126
|
+
}, null, 2);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Create scheduled persistence tool
|
|
132
|
+
*/
|
|
133
|
+
function createScheduledPersistenceTool(exploitationEngine, options) {
|
|
134
|
+
return {
|
|
135
|
+
name: 'create_scheduled_persistence',
|
|
136
|
+
description: 'Create persistence via scheduled tasks/jobs',
|
|
137
|
+
parameters: {
|
|
138
|
+
type: 'object',
|
|
139
|
+
properties: {}
|
|
140
|
+
},
|
|
141
|
+
handler: async (args) => {
|
|
142
|
+
if (options.requireAuthorization && !options.enableAdvancedExploitation) {
|
|
143
|
+
return JSON.stringify({
|
|
144
|
+
error: 'Advanced exploitation disabled - enable with enableAdvancedExploitation option'
|
|
145
|
+
}, null, 2);
|
|
146
|
+
}
|
|
147
|
+
const result = await exploitationEngine.createScheduledPersistence();
|
|
148
|
+
return JSON.stringify({
|
|
149
|
+
technique: result.technique,
|
|
150
|
+
success: result.success,
|
|
151
|
+
output: result.output,
|
|
152
|
+
evidence: result.evidence,
|
|
153
|
+
warning: 'Scheduled persistence created - ensure proper authorization'
|
|
154
|
+
}, null, 2);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Create obfuscated payload tool
|
|
160
|
+
*/
|
|
161
|
+
function createObfuscatedPayloadTool(exploitationEngine, options) {
|
|
162
|
+
return {
|
|
163
|
+
name: 'generate_obfuscated_payloads',
|
|
164
|
+
description: 'Generate obfuscated payloads for evasion',
|
|
165
|
+
parameters: {
|
|
166
|
+
type: 'object',
|
|
167
|
+
properties: {}
|
|
168
|
+
},
|
|
169
|
+
handler: async (args) => {
|
|
170
|
+
if (options.requireAuthorization && !options.enablePayloadGeneration) {
|
|
171
|
+
return JSON.stringify({
|
|
172
|
+
error: 'Payload generation disabled - enable with enablePayloadGeneration option'
|
|
173
|
+
}, null, 2);
|
|
174
|
+
}
|
|
175
|
+
const payloads = exploitationEngine.generateObfuscatedPayloads();
|
|
176
|
+
return JSON.stringify({
|
|
177
|
+
payloads,
|
|
178
|
+
warning: 'Obfuscated payloads generated - use responsibly'
|
|
179
|
+
}, null, 2);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Create DNS tunneling tool
|
|
185
|
+
*/
|
|
186
|
+
function createDnsTunnelingTool(exploitationEngine, options) {
|
|
187
|
+
return {
|
|
188
|
+
name: 'setup_dns_tunneling',
|
|
189
|
+
description: 'Setup DNS tunneling for covert communication',
|
|
190
|
+
parameters: {
|
|
191
|
+
type: 'object',
|
|
192
|
+
properties: {
|
|
193
|
+
domain: {
|
|
194
|
+
type: 'string',
|
|
195
|
+
description: 'Domain for DNS tunneling'
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
required: ['domain']
|
|
199
|
+
},
|
|
200
|
+
handler: async (args) => {
|
|
201
|
+
if (options.requireAuthorization && !options.enableAdvancedExploitation) {
|
|
202
|
+
return JSON.stringify({
|
|
203
|
+
error: 'Advanced exploitation disabled - enable with enableAdvancedExploitation option'
|
|
204
|
+
}, null, 2);
|
|
205
|
+
}
|
|
206
|
+
const domain = args['domain'];
|
|
207
|
+
const result = await exploitationEngine.setupDnsTunneling(domain);
|
|
208
|
+
return JSON.stringify({
|
|
209
|
+
domain,
|
|
210
|
+
technique: result.technique,
|
|
211
|
+
success: result.success,
|
|
212
|
+
output: result.output,
|
|
213
|
+
evidence: result.evidence,
|
|
214
|
+
warning: 'DNS tunneling setup - ensure proper authorization'
|
|
215
|
+
}, null, 2);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Create phishing template tool
|
|
221
|
+
*/
|
|
222
|
+
function createPhishingTemplateTool(exploitationEngine, options) {
|
|
223
|
+
return {
|
|
224
|
+
name: 'generate_phishing_templates',
|
|
225
|
+
description: 'Generate phishing email templates',
|
|
226
|
+
parameters: {
|
|
227
|
+
type: 'object',
|
|
228
|
+
properties: {}
|
|
229
|
+
},
|
|
230
|
+
handler: async (args) => {
|
|
231
|
+
if (options.requireAuthorization && !options.enablePayloadGeneration) {
|
|
232
|
+
return JSON.stringify({
|
|
233
|
+
error: 'Payload generation disabled - enable with enablePayloadGeneration option'
|
|
234
|
+
}, null, 2);
|
|
235
|
+
}
|
|
236
|
+
const templates = exploitationEngine.generatePhishingTemplates();
|
|
237
|
+
return JSON.stringify({
|
|
238
|
+
templates,
|
|
239
|
+
warning: 'Phishing templates generated - use only for authorized testing'
|
|
240
|
+
}, null, 2);
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Create backdoor user tool
|
|
246
|
+
*/
|
|
247
|
+
function createBackdoorUserTool(exploitationEngine, options) {
|
|
248
|
+
return {
|
|
249
|
+
name: 'create_backdoor_user',
|
|
250
|
+
description: 'Create backdoor user account with elevated privileges',
|
|
251
|
+
parameters: {
|
|
252
|
+
type: 'object',
|
|
253
|
+
properties: {
|
|
254
|
+
username: {
|
|
255
|
+
type: 'string',
|
|
256
|
+
description: 'Username for backdoor account'
|
|
257
|
+
},
|
|
258
|
+
password: {
|
|
259
|
+
type: 'string',
|
|
260
|
+
description: 'Password for backdoor account'
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
required: ['username', 'password']
|
|
264
|
+
},
|
|
265
|
+
handler: async (args) => {
|
|
266
|
+
if (options.requireAuthorization && !options.enableAdvancedExploitation) {
|
|
267
|
+
return JSON.stringify({
|
|
268
|
+
error: 'Advanced exploitation disabled - enable with enableAdvancedExploitation option'
|
|
269
|
+
}, null, 2);
|
|
270
|
+
}
|
|
271
|
+
const username = args['username'];
|
|
272
|
+
const password = args['password'];
|
|
273
|
+
const result = await exploitationEngine.createBackdoorUser(username, password);
|
|
274
|
+
return JSON.stringify({
|
|
275
|
+
username,
|
|
276
|
+
technique: result.technique,
|
|
277
|
+
success: result.success,
|
|
278
|
+
output: result.output,
|
|
279
|
+
evidence: result.evidence,
|
|
280
|
+
warning: 'Backdoor user created - ensure proper authorization'
|
|
281
|
+
}, null, 2);
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
//# sourceMappingURL=offensiveSecurityTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offensiveSecurityTools.js","sourceRoot":"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AO,CAAC,oBAAoB,IAAI,CAAC,OAAO,CAAC,0BAA0B,EAAE,CAAC;gBACxE,OAAO,IAAI,CAAC,SAAS,CAAC;oBACpB,KAAK,EAAE,gFAAgF;iBACxF,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;YACd,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAW,CAAC;YAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAW,CAAC;YAE5C,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAE/E,OAAO,IAAI,CAAC,SAAS,CAAC;gBACpB,QAAQ;gBACR,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,OAAO,EAAE,qDAAqD;aAC/D,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Real Security Tools
|
|
3
|
+
*
|
|
4
|
+
* Actual security testing tools with real implementations.
|
|
5
|
+
* These tools perform real persistence, scanning, and exploitation.
|
|
6
|
+
*
|
|
7
|
+
* LEGAL NOTICE: For authorized security research and testing only.
|
|
8
|
+
*/
|
|
9
|
+
import type { ToolDefinition } from '../core/toolRuntime.js';
|
|
10
|
+
export interface RealSecurityToolsOptions {
|
|
11
|
+
enableExploitation?: boolean;
|
|
12
|
+
requireAuthorization?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Create real security tools
|
|
16
|
+
*/
|
|
17
|
+
export declare function createRealSecurityTools(workingDir: string, options?: RealSecurityToolsOptions): ToolDefinition[];
|
|
18
|
+
//# sourceMappingURL=realSecurityTools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realSecurityTools.d.ts","sourceRoot":"","sources":["../../src/tools/realSecurityTools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,wBAA6B,GACrC,cAAc,EAAE,CAuBlB"}
|