erosolar-cli 1.7.55 → 1.7.57

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.
Files changed (273) hide show
  1. package/dist/shell/unifiedInputProcessor.d.ts +15 -12
  2. package/dist/shell/unifiedInputProcessor.d.ts.map +1 -1
  3. package/dist/shell/unifiedInputProcessor.js +45 -72
  4. package/dist/shell/unifiedInputProcessor.js.map +1 -1
  5. package/package.json +4 -4
  6. package/dist/active-stack-security.d.ts +0 -110
  7. package/dist/active-stack-security.js +0 -313
  8. package/dist/active-stack-security.js.map +0 -1
  9. package/dist/advanced-targeting.d.ts +0 -113
  10. package/dist/advanced-targeting.js +0 -252
  11. package/dist/advanced-targeting.js.map +0 -1
  12. package/dist/bin/adapters/node/index.js +0 -33
  13. package/dist/bin/adapters/types.js +0 -1
  14. package/dist/bin/alpha-zero/agentWrapper.js +0 -165
  15. package/dist/bin/alpha-zero/codeEvaluator.js +0 -272
  16. package/dist/bin/alpha-zero/competitiveRunner.js +0 -219
  17. package/dist/bin/alpha-zero/index.js +0 -98
  18. package/dist/bin/alpha-zero/introspection.js +0 -298
  19. package/dist/bin/alpha-zero/metricsTracker.js +0 -207
  20. package/dist/bin/alpha-zero/security/core.js +0 -269
  21. package/dist/bin/alpha-zero/security/google.js +0 -308
  22. package/dist/bin/alpha-zero/security/googleLoader.js +0 -40
  23. package/dist/bin/alpha-zero/security/index.js +0 -31
  24. package/dist/bin/alpha-zero/security/simulation.js +0 -274
  25. package/dist/bin/alpha-zero/selfModification.js +0 -231
  26. package/dist/bin/alpha-zero/types.js +0 -30
  27. package/dist/bin/bin/erosolar-optimized.js +0 -205
  28. package/dist/bin/capabilities/agentSpawningCapability.js +0 -116
  29. package/dist/bin/capabilities/bashCapability.js +0 -22
  30. package/dist/bin/capabilities/cloudCapability.js +0 -36
  31. package/dist/bin/capabilities/codeAnalysisCapability.js +0 -22
  32. package/dist/bin/capabilities/codeQualityCapability.js +0 -23
  33. package/dist/bin/capabilities/dependencySecurityCapability.js +0 -22
  34. package/dist/bin/capabilities/devCapability.js +0 -22
  35. package/dist/bin/capabilities/editCapability.js +0 -28
  36. package/dist/bin/capabilities/emailCapability.js +0 -20
  37. package/dist/bin/capabilities/enhancedGitCapability.js +0 -221
  38. package/dist/bin/capabilities/filesystemCapability.js +0 -22
  39. package/dist/bin/capabilities/globCapability.js +0 -28
  40. package/dist/bin/capabilities/interactionCapability.js +0 -20
  41. package/dist/bin/capabilities/learnCapability.js +0 -22
  42. package/dist/bin/capabilities/mcpCapability.js +0 -20
  43. package/dist/bin/capabilities/notebookCapability.js +0 -28
  44. package/dist/bin/capabilities/planningCapability.js +0 -27
  45. package/dist/bin/capabilities/refactoringCapability.js +0 -23
  46. package/dist/bin/capabilities/repoChecksCapability.js +0 -22
  47. package/dist/bin/capabilities/searchCapability.js +0 -22
  48. package/dist/bin/capabilities/skillCapability.js +0 -76
  49. package/dist/bin/capabilities/taskManagementCapability.js +0 -20
  50. package/dist/bin/capabilities/testingCapability.js +0 -23
  51. package/dist/bin/capabilities/toolManifest.js +0 -159
  52. package/dist/bin/capabilities/toolRegistry.js +0 -114
  53. package/dist/bin/capabilities/webCapability.js +0 -20
  54. package/dist/bin/config.js +0 -139
  55. package/dist/bin/contracts/v1/agent.js +0 -7
  56. package/dist/bin/contracts/v1/agentProfileManifest.js +0 -8
  57. package/dist/bin/contracts/v1/agentRules.js +0 -9
  58. package/dist/bin/contracts/v1/toolAccess.js +0 -8
  59. package/dist/bin/erosolar-optimized.d.ts +0 -12
  60. package/dist/bin/erosolar-optimized.d.ts.map +0 -1
  61. package/dist/bin/erosolar-optimized.js +0 -239
  62. package/dist/bin/erosolar-optimized.js.map +0 -1
  63. package/dist/bin/headless/headlessApp.js +0 -172
  64. package/dist/bin/mcp/config.js +0 -202
  65. package/dist/bin/mcp/stdioClient.js +0 -172
  66. package/dist/bin/mcp/toolBridge.js +0 -104
  67. package/dist/bin/mcp/types.js +0 -1
  68. package/dist/bin/plugins/index.js +0 -113
  69. package/dist/bin/plugins/providers/anthropic/index.js +0 -25
  70. package/dist/bin/plugins/providers/deepseek/index.js +0 -24
  71. package/dist/bin/plugins/providers/google/index.js +0 -26
  72. package/dist/bin/plugins/providers/index.js +0 -19
  73. package/dist/bin/plugins/providers/ollama/index.js +0 -59
  74. package/dist/bin/plugins/providers/openai/index.js +0 -26
  75. package/dist/bin/plugins/providers/xai/index.js +0 -24
  76. package/dist/bin/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -8
  77. package/dist/bin/plugins/tools/bash/localBashPlugin.js +0 -13
  78. package/dist/bin/plugins/tools/checks/localRepoChecksPlugin.js +0 -13
  79. package/dist/bin/plugins/tools/cloud/cloudPlugin.js +0 -13
  80. package/dist/bin/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -13
  81. package/dist/bin/plugins/tools/codeQuality/codeQualityPlugin.js +0 -13
  82. package/dist/bin/plugins/tools/dependency/dependencyPlugin.js +0 -11
  83. package/dist/bin/plugins/tools/development/devPlugin.js +0 -13
  84. package/dist/bin/plugins/tools/edit/editPlugin.js +0 -14
  85. package/dist/bin/plugins/tools/email/emailPlugin.js +0 -11
  86. package/dist/bin/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -8
  87. package/dist/bin/plugins/tools/filesystem/localFilesystemPlugin.js +0 -13
  88. package/dist/bin/plugins/tools/glob/globPlugin.js +0 -14
  89. package/dist/bin/plugins/tools/index.js +0 -2
  90. package/dist/bin/plugins/tools/interaction/interactionPlugin.js +0 -11
  91. package/dist/bin/plugins/tools/learn/learnPlugin.js +0 -13
  92. package/dist/bin/plugins/tools/mcp/mcpPlugin.js +0 -8
  93. package/dist/bin/plugins/tools/nodeDefaults.js +0 -56
  94. package/dist/bin/plugins/tools/notebook/notebookPlugin.js +0 -14
  95. package/dist/bin/plugins/tools/planning/planningPlugin.js +0 -14
  96. package/dist/bin/plugins/tools/refactoring/refactoringPlugin.js +0 -11
  97. package/dist/bin/plugins/tools/registry.js +0 -57
  98. package/dist/bin/plugins/tools/search/localSearchPlugin.js +0 -13
  99. package/dist/bin/plugins/tools/skills/skillPlugin.js +0 -8
  100. package/dist/bin/plugins/tools/taskManagement/taskManagementPlugin.js +0 -11
  101. package/dist/bin/plugins/tools/testing/testingPlugin.js +0 -11
  102. package/dist/bin/plugins/tools/web/webPlugin.js +0 -11
  103. package/dist/bin/providers/anthropicProvider.js +0 -329
  104. package/dist/bin/providers/googleProvider.js +0 -203
  105. package/dist/bin/providers/openaiChatCompletionsProvider.js +0 -208
  106. package/dist/bin/providers/openaiResponsesProvider.js +0 -249
  107. package/dist/bin/providers/providerFactory.js +0 -24
  108. package/dist/bin/runtime/agentController.js +0 -321
  109. package/dist/bin/runtime/agentHost.js +0 -153
  110. package/dist/bin/runtime/agentSession.js +0 -195
  111. package/dist/bin/runtime/node.js +0 -10
  112. package/dist/bin/runtime/universal.js +0 -28
  113. package/dist/bin/skills/skillRepository.js +0 -236
  114. package/dist/bin/skills/types.js +0 -1
  115. package/dist/bin/subagents/taskRunner.js +0 -269
  116. package/dist/bin/tools/backgroundBashTools.js +0 -211
  117. package/dist/bin/tools/bashTools.js +0 -159
  118. package/dist/bin/tools/cloudTools.js +0 -864
  119. package/dist/bin/tools/codeAnalysisTools.js +0 -641
  120. package/dist/bin/tools/codeQualityTools.js +0 -294
  121. package/dist/bin/tools/dependencyTools.js +0 -282
  122. package/dist/bin/tools/devTools.js +0 -238
  123. package/dist/bin/tools/diffUtils.js +0 -137
  124. package/dist/bin/tools/editTools.js +0 -134
  125. package/dist/bin/tools/emailTools.js +0 -448
  126. package/dist/bin/tools/fileTools.js +0 -282
  127. package/dist/bin/tools/globTools.js +0 -173
  128. package/dist/bin/tools/grepTools.js +0 -332
  129. package/dist/bin/tools/interactionTools.js +0 -170
  130. package/dist/bin/tools/learnTools.js +0 -1818
  131. package/dist/bin/tools/notebookEditTools.js +0 -196
  132. package/dist/bin/tools/planningTools.js +0 -46
  133. package/dist/bin/tools/refactoringTools.js +0 -293
  134. package/dist/bin/tools/repoChecksTools.js +0 -160
  135. package/dist/bin/tools/searchTools.js +0 -206
  136. package/dist/bin/tools/skillTools.js +0 -177
  137. package/dist/bin/tools/taskManagementTools.js +0 -156
  138. package/dist/bin/tools/testingTools.js +0 -232
  139. package/dist/bin/tools/webTools.js +0 -480
  140. package/dist/bin/workspace.js +0 -106
  141. package/dist/bin/workspace.validator.js +0 -213
  142. package/dist/capabilities/offensiveSecurityCapability.d.ts +0 -26
  143. package/dist/capabilities/offensiveSecurityCapability.d.ts.map +0 -1
  144. package/dist/capabilities/offensiveSecurityCapability.js +0 -58
  145. package/dist/capabilities/offensiveSecurityCapability.js.map +0 -1
  146. package/dist/capabilities/realSecurityCapability.d.ts +0 -26
  147. package/dist/capabilities/realSecurityCapability.d.ts.map +0 -1
  148. package/dist/capabilities/realSecurityCapability.js +0 -53
  149. package/dist/capabilities/realSecurityCapability.js.map +0 -1
  150. package/dist/capabilities/securityCapability.d.ts +0 -32
  151. package/dist/capabilities/securityCapability.d.ts.map +0 -1
  152. package/dist/capabilities/securityCapability.js +0 -57
  153. package/dist/capabilities/securityCapability.js.map +0 -1
  154. package/dist/capabilities/ultimateSecurityCapability.d.ts +0 -42
  155. package/dist/capabilities/ultimateSecurityCapability.d.ts.map +0 -1
  156. package/dist/capabilities/ultimateSecurityCapability.js +0 -96
  157. package/dist/capabilities/ultimateSecurityCapability.js.map +0 -1
  158. package/dist/core/designThoughtCheck.d.ts +0 -196
  159. package/dist/core/designThoughtCheck.d.ts.map +0 -1
  160. package/dist/core/designThoughtCheck.js +0 -287
  161. package/dist/core/designThoughtCheck.js.map +0 -1
  162. package/dist/core/designThoughtCheckEngine.d.ts +0 -58
  163. package/dist/core/designThoughtCheckEngine.d.ts.map +0 -1
  164. package/dist/core/designThoughtCheckEngine.js +0 -358
  165. package/dist/core/designThoughtCheckEngine.js.map +0 -1
  166. package/dist/core/designThoughtCheckIntegration.d.ts +0 -103
  167. package/dist/core/designThoughtCheckIntegration.d.ts.map +0 -1
  168. package/dist/core/designThoughtCheckIntegration.js +0 -207
  169. package/dist/core/designThoughtCheckIntegration.js.map +0 -1
  170. package/dist/core/intelligenceTools.d.ts +0 -19
  171. package/dist/core/intelligenceTools.d.ts.map +0 -1
  172. package/dist/core/intelligenceTools.js +0 -453
  173. package/dist/core/intelligenceTools.js.map +0 -1
  174. package/dist/core/operationalTools.d.ts +0 -19
  175. package/dist/core/operationalTools.d.ts.map +0 -1
  176. package/dist/core/operationalTools.js +0 -467
  177. package/dist/core/operationalTools.js.map +0 -1
  178. package/dist/offensive/core/offensive-engine.d.ts +0 -171
  179. package/dist/offensive/core/offensive-engine.d.ts.map +0 -1
  180. package/dist/offensive/core/offensive-engine.js +0 -345
  181. package/dist/offensive/core/offensive-engine.js.map +0 -1
  182. package/dist/offensive/core/offensive-integration.d.ts +0 -129
  183. package/dist/offensive/core/offensive-integration.d.ts.map +0 -1
  184. package/dist/offensive/core/offensive-integration.js +0 -364
  185. package/dist/offensive/core/offensive-integration.js.map +0 -1
  186. package/dist/offensive/core/offensive-tools.d.ts +0 -55
  187. package/dist/offensive/core/offensive-tools.d.ts.map +0 -1
  188. package/dist/offensive/core/offensive-tools.js +0 -438
  189. package/dist/offensive/core/offensive-tools.js.map +0 -1
  190. package/dist/offensive/offensive-cli.d.ts +0 -48
  191. package/dist/offensive/offensive-cli.d.ts.map +0 -1
  192. package/dist/offensive/offensive-cli.js +0 -233
  193. package/dist/offensive/offensive-cli.js.map +0 -1
  194. package/dist/security/apt-simulation-cli.d.ts +0 -57
  195. package/dist/security/apt-simulation-cli.d.ts.map +0 -1
  196. package/dist/security/apt-simulation-cli.js +0 -278
  197. package/dist/security/apt-simulation-cli.js.map +0 -1
  198. package/dist/security/apt-simulation-engine-complete.d.ts +0 -97
  199. package/dist/security/apt-simulation-engine-complete.d.ts.map +0 -1
  200. package/dist/security/apt-simulation-engine-complete.js +0 -441
  201. package/dist/security/apt-simulation-engine-complete.js.map +0 -1
  202. package/dist/security/apt-simulation-engine.d.ts +0 -97
  203. package/dist/security/apt-simulation-engine.d.ts.map +0 -1
  204. package/dist/security/apt-simulation-engine.js +0 -441
  205. package/dist/security/apt-simulation-engine.js.map +0 -1
  206. package/dist/security/authorization.d.ts +0 -45
  207. package/dist/security/authorization.d.ts.map +0 -1
  208. package/dist/security/authorization.js +0 -128
  209. package/dist/security/authorization.js.map +0 -1
  210. package/dist/security/comprehensive-security-research.d.ts +0 -84
  211. package/dist/security/comprehensive-security-research.d.ts.map +0 -1
  212. package/dist/security/comprehensive-security-research.js +0 -211
  213. package/dist/security/comprehensive-security-research.js.map +0 -1
  214. package/dist/security/offensive/exploitationEngine.d.ts +0 -54
  215. package/dist/security/offensive/exploitationEngine.d.ts.map +0 -1
  216. package/dist/security/offensive/exploitationEngine.js +0 -263
  217. package/dist/security/offensive/exploitationEngine.js.map +0 -1
  218. package/dist/security/real/networkExploitation.d.ts +0 -92
  219. package/dist/security/real/networkExploitation.d.ts.map +0 -1
  220. package/dist/security/real/networkExploitation.js +0 -316
  221. package/dist/security/real/networkExploitation.js.map +0 -1
  222. package/dist/security/real/persistenceImplementation.d.ts +0 -62
  223. package/dist/security/real/persistenceImplementation.d.ts.map +0 -1
  224. package/dist/security/real/persistenceImplementation.js +0 -323
  225. package/dist/security/real/persistenceImplementation.js.map +0 -1
  226. package/dist/security/real/vulnerabilityScanner.d.ts +0 -73
  227. package/dist/security/real/vulnerabilityScanner.d.ts.map +0 -1
  228. package/dist/security/real/vulnerabilityScanner.js +0 -341
  229. package/dist/security/real/vulnerabilityScanner.js.map +0 -1
  230. package/dist/shell/capturePastePatch.d.ts +0 -9
  231. package/dist/shell/capturePastePatch.d.ts.map +0 -1
  232. package/dist/shell/capturePastePatch.js +0 -98
  233. package/dist/shell/capturePastePatch.js.map +0 -1
  234. package/dist/shell/enhancedInteractiveShell.d.ts +0 -90
  235. package/dist/shell/enhancedInteractiveShell.d.ts.map +0 -1
  236. package/dist/shell/enhancedInteractiveShell.js +0 -248
  237. package/dist/shell/enhancedInteractiveShell.js.map +0 -1
  238. package/dist/shell/inputProcessor.d.ts +0 -56
  239. package/dist/shell/inputProcessor.d.ts.map +0 -1
  240. package/dist/shell/inputProcessor.js +0 -172
  241. package/dist/shell/inputProcessor.js.map +0 -1
  242. package/dist/shell/interactiveShell-patch.d.ts +0 -27
  243. package/dist/shell/interactiveShell-patch.d.ts.map +0 -1
  244. package/dist/shell/interactiveShell-patch.js +0 -38
  245. package/dist/shell/interactiveShell-patch.js.map +0 -1
  246. package/dist/shell/interactiveShell-robust.d.ts +0 -26
  247. package/dist/shell/interactiveShell-robust.d.ts.map +0 -1
  248. package/dist/shell/interactiveShell-robust.js +0 -34
  249. package/dist/shell/interactiveShell-robust.js.map +0 -1
  250. package/dist/shell/multiLinePasteManager.d.ts +0 -106
  251. package/dist/shell/multiLinePasteManager.d.ts.map +0 -1
  252. package/dist/shell/multiLinePasteManager.js +0 -308
  253. package/dist/shell/multiLinePasteManager.js.map +0 -1
  254. package/dist/shell/processInputBlockPatch.d.ts +0 -8
  255. package/dist/shell/processInputBlockPatch.d.ts.map +0 -1
  256. package/dist/shell/processInputBlockPatch.js +0 -133
  257. package/dist/shell/processInputBlockPatch.js.map +0 -1
  258. package/dist/tools/enhancedSecurityTools.d.ts +0 -19
  259. package/dist/tools/enhancedSecurityTools.d.ts.map +0 -1
  260. package/dist/tools/enhancedSecurityTools.js +0 -215
  261. package/dist/tools/enhancedSecurityTools.js.map +0 -1
  262. package/dist/tools/offensiveSecurityTools.d.ts +0 -16
  263. package/dist/tools/offensiveSecurityTools.d.ts.map +0 -1
  264. package/dist/tools/offensiveSecurityTools.js +0 -285
  265. package/dist/tools/offensiveSecurityTools.js.map +0 -1
  266. package/dist/tools/realSecurityTools.d.ts +0 -18
  267. package/dist/tools/realSecurityTools.d.ts.map +0 -1
  268. package/dist/tools/realSecurityTools.js +0 -468
  269. package/dist/tools/realSecurityTools.js.map +0 -1
  270. package/dist/tools/securityTools.d.ts +0 -20
  271. package/dist/tools/securityTools.d.ts.map +0 -1
  272. package/dist/tools/securityTools.js +0 -449
  273. package/dist/tools/securityTools.js.map +0 -1
@@ -1,215 +0,0 @@
1
- /**
2
- * Enhanced Security Tools with Authorization
3
- *
4
- * Security testing tools with integrated authorization framework.
5
- */
6
- import { AuthorizationManager } from '../security/authorization.js';
7
- import { createRealSecurityTools } from './realSecurityTools.js';
8
- import { createOffensiveSecurityTools } from './offensiveSecurityTools.js';
9
- /**
10
- * Create enhanced security tools with authorization
11
- */
12
- export function createEnhancedSecurityTools(workingDir, options = {}) {
13
- const tools = [];
14
- const authManager = options.authorizationManager || new AuthorizationManager();
15
- // Add authorization management tools
16
- tools.push(createAuthorizationTool(authManager));
17
- tools.push(createAuthorizationStatusTool(authManager));
18
- tools.push(createAuthorizationReportTool(authManager));
19
- // Add real security tools with authorization
20
- const realSecurityTools = createRealSecurityTools(workingDir, {
21
- enableExploitation: options.enableExploitation,
22
- requireAuthorization: options.requireAuthorization
23
- });
24
- // Wrap real security tools with authorization checks
25
- realSecurityTools.forEach(tool => {
26
- tools.push(wrapToolWithAuthorization(tool, authManager));
27
- });
28
- // Add offensive security tools with authorization
29
- const offensiveSecurityTools = createOffensiveSecurityTools(workingDir, {
30
- enableAdvancedExploitation: options.enableAdvancedExploitation,
31
- enablePayloadGeneration: options.enablePayloadGeneration,
32
- requireAuthorization: options.requireAuthorization
33
- });
34
- // Wrap offensive security tools with authorization checks
35
- offensiveSecurityTools.forEach(tool => {
36
- tools.push(wrapToolWithAuthorization(tool, authManager));
37
- });
38
- return tools;
39
- }
40
- /**
41
- * Create authorization request tool
42
- */
43
- function createAuthorizationTool(authManager) {
44
- return {
45
- name: 'request_security_authorization',
46
- description: 'Request authorization for security testing operations',
47
- parameters: {
48
- type: 'object',
49
- properties: {
50
- targets: {
51
- type: 'array',
52
- items: { type: 'string' },
53
- description: 'Authorized targets (IPs, domains, or * for all)'
54
- },
55
- techniques: {
56
- type: 'array',
57
- items: { type: 'string' },
58
- description: 'Authorized techniques (or * for all)'
59
- },
60
- durationHours: {
61
- type: 'number',
62
- description: 'Authorization duration in hours'
63
- },
64
- authorizedBy: {
65
- type: 'string',
66
- description: 'Name of authorizing person/entity'
67
- },
68
- contactInfo: {
69
- type: 'string',
70
- description: 'Contact information for authorization'
71
- },
72
- authorizationToken: {
73
- type: 'string',
74
- description: 'Authorization token (optional if set in environment)'
75
- }
76
- },
77
- required: ['targets', 'techniques', 'durationHours', 'authorizedBy', 'contactInfo']
78
- },
79
- handler: async (args) => {
80
- const targets = args['targets'];
81
- const techniques = args['techniques'];
82
- const durationHours = args['durationHours'];
83
- const authorizedBy = args['authorizedBy'];
84
- const contactInfo = args['contactInfo'];
85
- const authorizationToken = args['authorizationToken'];
86
- const startTime = new Date();
87
- const endTime = new Date(startTime.getTime() + durationHours * 60 * 60 * 1000);
88
- const scope = {
89
- targets,
90
- techniques,
91
- startTime,
92
- endTime,
93
- authorizedBy,
94
- contactInfo
95
- };
96
- const result = authManager.requestAuthorization(scope, authorizationToken);
97
- return JSON.stringify({
98
- authorized: result.authorized,
99
- reason: result.reason,
100
- scope: result.scope ? {
101
- targets: result.scope.targets,
102
- techniques: result.scope.techniques,
103
- startTime: result.scope.startTime.toISOString(),
104
- endTime: result.scope.endTime.toISOString(),
105
- authorizedBy: result.scope.authorizedBy
106
- } : undefined
107
- }, null, 2);
108
- }
109
- };
110
- }
111
- /**
112
- * Create authorization status tool
113
- */
114
- function createAuthorizationStatusTool(authManager) {
115
- return {
116
- name: 'get_authorization_status',
117
- description: 'Get current authorization status',
118
- parameters: {
119
- type: 'object',
120
- properties: {}
121
- },
122
- handler: async (args) => {
123
- const result = authManager.getAuthorizationStatus();
124
- return JSON.stringify({
125
- authorized: result.authorized,
126
- reason: result.reason,
127
- scope: result.scope ? {
128
- targets: result.scope.targets,
129
- techniques: result.scope.techniques,
130
- startTime: result.scope.startTime.toISOString(),
131
- endTime: result.scope.endTime.toISOString(),
132
- authorizedBy: result.scope.authorizedBy
133
- } : undefined
134
- }, null, 2);
135
- }
136
- };
137
- }
138
- /**
139
- * Create authorization report tool
140
- */
141
- function createAuthorizationReportTool(authManager) {
142
- return {
143
- name: 'generate_authorization_report',
144
- description: 'Generate authorization report',
145
- parameters: {
146
- type: 'object',
147
- properties: {}
148
- },
149
- handler: async (args) => {
150
- const report = authManager.generateAuthorizationReport();
151
- return JSON.stringify({
152
- report
153
- }, null, 2);
154
- }
155
- };
156
- }
157
- /**
158
- * Wrap a tool with authorization checks
159
- */
160
- function wrapToolWithAuthorization(originalTool, authManager) {
161
- return {
162
- name: originalTool.name,
163
- description: originalTool.description,
164
- parameters: originalTool.parameters,
165
- handler: async (args) => {
166
- // Extract target and technique from parameters
167
- let target = '';
168
- let technique = originalTool.name;
169
- // Map tool names to techniques for authorization
170
- const techniqueMap = {
171
- 'real_scan_network': 'network-scanning',
172
- 'real_exploit_ssh': 'ssh-exploitation',
173
- 'real_exploit_ftp': 'ftp-exploitation',
174
- 'real_exploit_smb': 'smb-exploitation',
175
- 'real_scan_vulnerabilities': 'vulnerability-scanning',
176
- 'real_exploit_sql_injection': 'sql-injection-exploitation',
177
- 'real_exploit_xss': 'xss-exploitation',
178
- 'real_implement_persistence': 'persistence-implementation',
179
- 'real_detect_persistence': 'persistence-detection',
180
- 'real_remove_persistence': 'persistence-removal',
181
- 'generate_reverse_shell': 'payload-generation',
182
- 'create_fileless_persistence': 'fileless-persistence',
183
- 'deploy_web_shell': 'web-shell-deployment',
184
- 'create_scheduled_persistence': 'scheduled-persistence',
185
- 'generate_obfuscated_payloads': 'payload-obfuscation',
186
- 'setup_dns_tunneling': 'dns-tunneling',
187
- 'generate_phishing_templates': 'phishing-templates',
188
- 'create_backdoor_user': 'backdoor-user-creation'
189
- };
190
- technique = techniqueMap[originalTool.name] || originalTool.name;
191
- // Extract target from parameters
192
- if (args['target']) {
193
- target = args['target'];
194
- }
195
- else if (args['targetPath']) {
196
- target = args['targetPath'];
197
- }
198
- else if (args['domain']) {
199
- target = args['domain'];
200
- }
201
- // Validate authorization
202
- const authResult = authManager.validateOperation(target, technique);
203
- if (!authResult.authorized) {
204
- return JSON.stringify({
205
- error: 'Authorization required',
206
- reason: authResult.reason,
207
- requiredAction: 'Use request_security_authorization tool first'
208
- }, null, 2);
209
- }
210
- // Execute original tool handler
211
- return await originalTool.handler(args);
212
- }
213
- };
214
- }
215
- //# sourceMappingURL=enhancedSecurityTools.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enhancedSecurityTools.js","sourceRoot":"","sources":["../../src/tools/enhancedSecurityTools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,oBAAoB,EAAsB,MAAM,8BAA8B,CAAC;AACxF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAU3E;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACzC,UAAkB,EAClB,UAAwC,EAAE;IAE1C,MAAM,KAAK,GAAqB,EAAE,CAAC;IACnC,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,IAAI,IAAI,oBAAoB,EAAE,CAAC;IAE/E,qCAAqC;IACrC,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC;IACjD,KAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,WAAW,CAAC,CAAC,CAAC;IACvD,KAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,WAAW,CAAC,CAAC,CAAC;IAEvD,6CAA6C;IAC7C,MAAM,iBAAiB,GAAG,uBAAuB,CAAC,UAAU,EAAE;QAC5D,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;QAC9C,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;KACnD,CAAC,CAAC;IAEH,qDAAqD;IACrD,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAC/B,KAAK,CAAC,IAAI,CAAC,yBAAyB,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,QAAQ,CAAC,EAAE,CAAC;gBACnB,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAW,CAAC;YACpC,CAAC;iBAAM,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC9B,MAAM,GAAG,IAAI,CAAC,YAAY,CAAW,CAAC;YACxC,CAAC;iBAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC1B,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAW,CAAC;YACpC,CAAC;YAED,yBAAyB;YACzB,MAAM,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YAEpE,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;gBAC3B,OAAO,IAAI,CAAC,SAAS,CAAC;oBACpB,KAAK,EAAE,wBAAwB;oBAC/B,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,cAAc,EAAE,+CAA+C;iBAChE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;YACd,CAAC;YAED,gCAAgC;YAChC,OAAO,MAAM,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC1C,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Offensive Security Tools
3
- *
4
- * Advanced offensive security capabilities for authorized testing.
5
- */
6
- import type { ToolDefinition } from '../core/toolRuntime.js';
7
- export interface OffensiveSecurityToolsOptions {
8
- enableAdvancedExploitation?: boolean;
9
- requireAuthorization?: boolean;
10
- enablePayloadGeneration?: boolean;
11
- }
12
- /**
13
- * Create offensive security tools
14
- */
15
- export declare function createOffensiveSecurityTools(workingDir: string, options?: OffensiveSecurityToolsOptions): ToolDefinition[];
16
- //# sourceMappingURL=offensiveSecurityTools.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"offensiveSecurityTools.d.ts","sourceRoot":"","sources":["../../src/tools/offensiveSecurityTools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,MAAM,WAAW,6BAA6B;IAC5C,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,6BAAkC,GAC1C,cAAc,EAAE,CAelB"}
@@ -1,285 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"offensiveSecurityTools.js","sourceRoot":"","sources":["../../src/tools/offensiveSecurityTools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAQ1F;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAC1C,UAAkB,EAClB,UAAyC,EAAE;IAE3C,MAAM,KAAK,GAAqB,EAAE,CAAC;IACnC,MAAM,kBAAkB,GAAG,IAAI,2BAA2B,EAAE,CAAC;IAE7D,8BAA8B;IAC9B,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;IAChE,KAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;IACvE,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,KAAK,CAAC,IAAI,CAAC,8BAA8B,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;IACxE,KAAK,CAAC,IAAI,CAAC,2BAA2B,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;IACrE,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;IAChE,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;IACpE,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;IAEhE,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,sBAAsB,CAC7B,kBAA+C,EAC/C,OAAsC;IAEtC,OAAO;QACL,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,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ACD,QAAQ,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;SACnC;QACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACtB,IAAI,OAAO,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"}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}