erosolar-cli 1.7.54 → 1.7.56

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 (283) hide show
  1. package/dist/core/agent.d.ts.map +1 -1
  2. package/dist/core/agent.js +14 -4
  3. package/dist/core/agent.js.map +1 -1
  4. package/dist/providers/anthropicProvider.d.ts.map +1 -1
  5. package/dist/providers/anthropicProvider.js +2 -1
  6. package/dist/providers/anthropicProvider.js.map +1 -1
  7. package/dist/ui/persistentPrompt.d.ts +24 -0
  8. package/dist/ui/persistentPrompt.d.ts.map +1 -1
  9. package/dist/ui/persistentPrompt.js +86 -4
  10. package/dist/ui/persistentPrompt.js.map +1 -1
  11. package/package.json +1 -1
  12. package/dist/active-stack-security.d.ts +0 -110
  13. package/dist/active-stack-security.js +0 -313
  14. package/dist/active-stack-security.js.map +0 -1
  15. package/dist/advanced-targeting.d.ts +0 -113
  16. package/dist/advanced-targeting.js +0 -252
  17. package/dist/advanced-targeting.js.map +0 -1
  18. package/dist/bin/adapters/node/index.js +0 -33
  19. package/dist/bin/adapters/types.js +0 -1
  20. package/dist/bin/alpha-zero/agentWrapper.js +0 -165
  21. package/dist/bin/alpha-zero/codeEvaluator.js +0 -272
  22. package/dist/bin/alpha-zero/competitiveRunner.js +0 -219
  23. package/dist/bin/alpha-zero/index.js +0 -98
  24. package/dist/bin/alpha-zero/introspection.js +0 -298
  25. package/dist/bin/alpha-zero/metricsTracker.js +0 -207
  26. package/dist/bin/alpha-zero/security/core.js +0 -269
  27. package/dist/bin/alpha-zero/security/google.js +0 -308
  28. package/dist/bin/alpha-zero/security/googleLoader.js +0 -40
  29. package/dist/bin/alpha-zero/security/index.js +0 -31
  30. package/dist/bin/alpha-zero/security/simulation.js +0 -274
  31. package/dist/bin/alpha-zero/selfModification.js +0 -231
  32. package/dist/bin/alpha-zero/types.js +0 -30
  33. package/dist/bin/bin/erosolar-optimized.js +0 -205
  34. package/dist/bin/capabilities/agentSpawningCapability.js +0 -116
  35. package/dist/bin/capabilities/bashCapability.js +0 -22
  36. package/dist/bin/capabilities/cloudCapability.js +0 -36
  37. package/dist/bin/capabilities/codeAnalysisCapability.js +0 -22
  38. package/dist/bin/capabilities/codeQualityCapability.js +0 -23
  39. package/dist/bin/capabilities/dependencySecurityCapability.js +0 -22
  40. package/dist/bin/capabilities/devCapability.js +0 -22
  41. package/dist/bin/capabilities/editCapability.js +0 -28
  42. package/dist/bin/capabilities/emailCapability.js +0 -20
  43. package/dist/bin/capabilities/enhancedGitCapability.js +0 -221
  44. package/dist/bin/capabilities/filesystemCapability.js +0 -22
  45. package/dist/bin/capabilities/globCapability.js +0 -28
  46. package/dist/bin/capabilities/interactionCapability.js +0 -20
  47. package/dist/bin/capabilities/learnCapability.js +0 -22
  48. package/dist/bin/capabilities/mcpCapability.js +0 -20
  49. package/dist/bin/capabilities/notebookCapability.js +0 -28
  50. package/dist/bin/capabilities/planningCapability.js +0 -27
  51. package/dist/bin/capabilities/refactoringCapability.js +0 -23
  52. package/dist/bin/capabilities/repoChecksCapability.js +0 -22
  53. package/dist/bin/capabilities/searchCapability.js +0 -22
  54. package/dist/bin/capabilities/skillCapability.js +0 -76
  55. package/dist/bin/capabilities/taskManagementCapability.js +0 -20
  56. package/dist/bin/capabilities/testingCapability.js +0 -23
  57. package/dist/bin/capabilities/toolManifest.js +0 -159
  58. package/dist/bin/capabilities/toolRegistry.js +0 -114
  59. package/dist/bin/capabilities/webCapability.js +0 -20
  60. package/dist/bin/config.js +0 -139
  61. package/dist/bin/contracts/v1/agent.js +0 -7
  62. package/dist/bin/contracts/v1/agentProfileManifest.js +0 -8
  63. package/dist/bin/contracts/v1/agentRules.js +0 -9
  64. package/dist/bin/contracts/v1/toolAccess.js +0 -8
  65. package/dist/bin/erosolar-optimized.d.ts +0 -12
  66. package/dist/bin/erosolar-optimized.d.ts.map +0 -1
  67. package/dist/bin/erosolar-optimized.js +0 -239
  68. package/dist/bin/erosolar-optimized.js.map +0 -1
  69. package/dist/bin/headless/headlessApp.js +0 -172
  70. package/dist/bin/mcp/config.js +0 -202
  71. package/dist/bin/mcp/stdioClient.js +0 -172
  72. package/dist/bin/mcp/toolBridge.js +0 -104
  73. package/dist/bin/mcp/types.js +0 -1
  74. package/dist/bin/plugins/index.js +0 -113
  75. package/dist/bin/plugins/providers/anthropic/index.js +0 -25
  76. package/dist/bin/plugins/providers/deepseek/index.js +0 -24
  77. package/dist/bin/plugins/providers/google/index.js +0 -26
  78. package/dist/bin/plugins/providers/index.js +0 -19
  79. package/dist/bin/plugins/providers/ollama/index.js +0 -59
  80. package/dist/bin/plugins/providers/openai/index.js +0 -26
  81. package/dist/bin/plugins/providers/xai/index.js +0 -24
  82. package/dist/bin/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -8
  83. package/dist/bin/plugins/tools/bash/localBashPlugin.js +0 -13
  84. package/dist/bin/plugins/tools/checks/localRepoChecksPlugin.js +0 -13
  85. package/dist/bin/plugins/tools/cloud/cloudPlugin.js +0 -13
  86. package/dist/bin/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -13
  87. package/dist/bin/plugins/tools/codeQuality/codeQualityPlugin.js +0 -13
  88. package/dist/bin/plugins/tools/dependency/dependencyPlugin.js +0 -11
  89. package/dist/bin/plugins/tools/development/devPlugin.js +0 -13
  90. package/dist/bin/plugins/tools/edit/editPlugin.js +0 -14
  91. package/dist/bin/plugins/tools/email/emailPlugin.js +0 -11
  92. package/dist/bin/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -8
  93. package/dist/bin/plugins/tools/filesystem/localFilesystemPlugin.js +0 -13
  94. package/dist/bin/plugins/tools/glob/globPlugin.js +0 -14
  95. package/dist/bin/plugins/tools/index.js +0 -2
  96. package/dist/bin/plugins/tools/interaction/interactionPlugin.js +0 -11
  97. package/dist/bin/plugins/tools/learn/learnPlugin.js +0 -13
  98. package/dist/bin/plugins/tools/mcp/mcpPlugin.js +0 -8
  99. package/dist/bin/plugins/tools/nodeDefaults.js +0 -56
  100. package/dist/bin/plugins/tools/notebook/notebookPlugin.js +0 -14
  101. package/dist/bin/plugins/tools/planning/planningPlugin.js +0 -14
  102. package/dist/bin/plugins/tools/refactoring/refactoringPlugin.js +0 -11
  103. package/dist/bin/plugins/tools/registry.js +0 -57
  104. package/dist/bin/plugins/tools/search/localSearchPlugin.js +0 -13
  105. package/dist/bin/plugins/tools/skills/skillPlugin.js +0 -8
  106. package/dist/bin/plugins/tools/taskManagement/taskManagementPlugin.js +0 -11
  107. package/dist/bin/plugins/tools/testing/testingPlugin.js +0 -11
  108. package/dist/bin/plugins/tools/web/webPlugin.js +0 -11
  109. package/dist/bin/providers/anthropicProvider.js +0 -329
  110. package/dist/bin/providers/googleProvider.js +0 -203
  111. package/dist/bin/providers/openaiChatCompletionsProvider.js +0 -208
  112. package/dist/bin/providers/openaiResponsesProvider.js +0 -249
  113. package/dist/bin/providers/providerFactory.js +0 -24
  114. package/dist/bin/runtime/agentController.js +0 -321
  115. package/dist/bin/runtime/agentHost.js +0 -153
  116. package/dist/bin/runtime/agentSession.js +0 -195
  117. package/dist/bin/runtime/node.js +0 -10
  118. package/dist/bin/runtime/universal.js +0 -28
  119. package/dist/bin/skills/skillRepository.js +0 -236
  120. package/dist/bin/skills/types.js +0 -1
  121. package/dist/bin/subagents/taskRunner.js +0 -269
  122. package/dist/bin/tools/backgroundBashTools.js +0 -211
  123. package/dist/bin/tools/bashTools.js +0 -159
  124. package/dist/bin/tools/cloudTools.js +0 -864
  125. package/dist/bin/tools/codeAnalysisTools.js +0 -641
  126. package/dist/bin/tools/codeQualityTools.js +0 -294
  127. package/dist/bin/tools/dependencyTools.js +0 -282
  128. package/dist/bin/tools/devTools.js +0 -238
  129. package/dist/bin/tools/diffUtils.js +0 -137
  130. package/dist/bin/tools/editTools.js +0 -134
  131. package/dist/bin/tools/emailTools.js +0 -448
  132. package/dist/bin/tools/fileTools.js +0 -282
  133. package/dist/bin/tools/globTools.js +0 -173
  134. package/dist/bin/tools/grepTools.js +0 -332
  135. package/dist/bin/tools/interactionTools.js +0 -170
  136. package/dist/bin/tools/learnTools.js +0 -1818
  137. package/dist/bin/tools/notebookEditTools.js +0 -196
  138. package/dist/bin/tools/planningTools.js +0 -46
  139. package/dist/bin/tools/refactoringTools.js +0 -293
  140. package/dist/bin/tools/repoChecksTools.js +0 -160
  141. package/dist/bin/tools/searchTools.js +0 -206
  142. package/dist/bin/tools/skillTools.js +0 -177
  143. package/dist/bin/tools/taskManagementTools.js +0 -156
  144. package/dist/bin/tools/testingTools.js +0 -232
  145. package/dist/bin/tools/webTools.js +0 -480
  146. package/dist/bin/workspace.js +0 -106
  147. package/dist/bin/workspace.validator.js +0 -213
  148. package/dist/capabilities/offensiveSecurityCapability.d.ts +0 -26
  149. package/dist/capabilities/offensiveSecurityCapability.d.ts.map +0 -1
  150. package/dist/capabilities/offensiveSecurityCapability.js +0 -58
  151. package/dist/capabilities/offensiveSecurityCapability.js.map +0 -1
  152. package/dist/capabilities/realSecurityCapability.d.ts +0 -26
  153. package/dist/capabilities/realSecurityCapability.d.ts.map +0 -1
  154. package/dist/capabilities/realSecurityCapability.js +0 -53
  155. package/dist/capabilities/realSecurityCapability.js.map +0 -1
  156. package/dist/capabilities/securityCapability.d.ts +0 -32
  157. package/dist/capabilities/securityCapability.d.ts.map +0 -1
  158. package/dist/capabilities/securityCapability.js +0 -57
  159. package/dist/capabilities/securityCapability.js.map +0 -1
  160. package/dist/capabilities/ultimateSecurityCapability.d.ts +0 -42
  161. package/dist/capabilities/ultimateSecurityCapability.d.ts.map +0 -1
  162. package/dist/capabilities/ultimateSecurityCapability.js +0 -96
  163. package/dist/capabilities/ultimateSecurityCapability.js.map +0 -1
  164. package/dist/core/designThoughtCheck.d.ts +0 -196
  165. package/dist/core/designThoughtCheck.d.ts.map +0 -1
  166. package/dist/core/designThoughtCheck.js +0 -287
  167. package/dist/core/designThoughtCheck.js.map +0 -1
  168. package/dist/core/designThoughtCheckEngine.d.ts +0 -58
  169. package/dist/core/designThoughtCheckEngine.d.ts.map +0 -1
  170. package/dist/core/designThoughtCheckEngine.js +0 -358
  171. package/dist/core/designThoughtCheckEngine.js.map +0 -1
  172. package/dist/core/designThoughtCheckIntegration.d.ts +0 -103
  173. package/dist/core/designThoughtCheckIntegration.d.ts.map +0 -1
  174. package/dist/core/designThoughtCheckIntegration.js +0 -207
  175. package/dist/core/designThoughtCheckIntegration.js.map +0 -1
  176. package/dist/core/intelligenceTools.d.ts +0 -19
  177. package/dist/core/intelligenceTools.d.ts.map +0 -1
  178. package/dist/core/intelligenceTools.js +0 -453
  179. package/dist/core/intelligenceTools.js.map +0 -1
  180. package/dist/core/operationalTools.d.ts +0 -19
  181. package/dist/core/operationalTools.d.ts.map +0 -1
  182. package/dist/core/operationalTools.js +0 -467
  183. package/dist/core/operationalTools.js.map +0 -1
  184. package/dist/offensive/core/offensive-engine.d.ts +0 -171
  185. package/dist/offensive/core/offensive-engine.d.ts.map +0 -1
  186. package/dist/offensive/core/offensive-engine.js +0 -345
  187. package/dist/offensive/core/offensive-engine.js.map +0 -1
  188. package/dist/offensive/core/offensive-integration.d.ts +0 -129
  189. package/dist/offensive/core/offensive-integration.d.ts.map +0 -1
  190. package/dist/offensive/core/offensive-integration.js +0 -364
  191. package/dist/offensive/core/offensive-integration.js.map +0 -1
  192. package/dist/offensive/core/offensive-tools.d.ts +0 -55
  193. package/dist/offensive/core/offensive-tools.d.ts.map +0 -1
  194. package/dist/offensive/core/offensive-tools.js +0 -438
  195. package/dist/offensive/core/offensive-tools.js.map +0 -1
  196. package/dist/offensive/offensive-cli.d.ts +0 -48
  197. package/dist/offensive/offensive-cli.d.ts.map +0 -1
  198. package/dist/offensive/offensive-cli.js +0 -233
  199. package/dist/offensive/offensive-cli.js.map +0 -1
  200. package/dist/security/apt-simulation-cli.d.ts +0 -57
  201. package/dist/security/apt-simulation-cli.d.ts.map +0 -1
  202. package/dist/security/apt-simulation-cli.js +0 -278
  203. package/dist/security/apt-simulation-cli.js.map +0 -1
  204. package/dist/security/apt-simulation-engine-complete.d.ts +0 -97
  205. package/dist/security/apt-simulation-engine-complete.d.ts.map +0 -1
  206. package/dist/security/apt-simulation-engine-complete.js +0 -441
  207. package/dist/security/apt-simulation-engine-complete.js.map +0 -1
  208. package/dist/security/apt-simulation-engine.d.ts +0 -97
  209. package/dist/security/apt-simulation-engine.d.ts.map +0 -1
  210. package/dist/security/apt-simulation-engine.js +0 -441
  211. package/dist/security/apt-simulation-engine.js.map +0 -1
  212. package/dist/security/authorization.d.ts +0 -45
  213. package/dist/security/authorization.d.ts.map +0 -1
  214. package/dist/security/authorization.js +0 -128
  215. package/dist/security/authorization.js.map +0 -1
  216. package/dist/security/comprehensive-security-research.d.ts +0 -84
  217. package/dist/security/comprehensive-security-research.d.ts.map +0 -1
  218. package/dist/security/comprehensive-security-research.js +0 -211
  219. package/dist/security/comprehensive-security-research.js.map +0 -1
  220. package/dist/security/offensive/exploitationEngine.d.ts +0 -54
  221. package/dist/security/offensive/exploitationEngine.d.ts.map +0 -1
  222. package/dist/security/offensive/exploitationEngine.js +0 -263
  223. package/dist/security/offensive/exploitationEngine.js.map +0 -1
  224. package/dist/security/real/networkExploitation.d.ts +0 -92
  225. package/dist/security/real/networkExploitation.d.ts.map +0 -1
  226. package/dist/security/real/networkExploitation.js +0 -316
  227. package/dist/security/real/networkExploitation.js.map +0 -1
  228. package/dist/security/real/persistenceImplementation.d.ts +0 -62
  229. package/dist/security/real/persistenceImplementation.d.ts.map +0 -1
  230. package/dist/security/real/persistenceImplementation.js +0 -323
  231. package/dist/security/real/persistenceImplementation.js.map +0 -1
  232. package/dist/security/real/vulnerabilityScanner.d.ts +0 -73
  233. package/dist/security/real/vulnerabilityScanner.d.ts.map +0 -1
  234. package/dist/security/real/vulnerabilityScanner.js +0 -341
  235. package/dist/security/real/vulnerabilityScanner.js.map +0 -1
  236. package/dist/shell/capturePastePatch.d.ts +0 -9
  237. package/dist/shell/capturePastePatch.d.ts.map +0 -1
  238. package/dist/shell/capturePastePatch.js +0 -98
  239. package/dist/shell/capturePastePatch.js.map +0 -1
  240. package/dist/shell/enhancedInteractiveShell.d.ts +0 -90
  241. package/dist/shell/enhancedInteractiveShell.d.ts.map +0 -1
  242. package/dist/shell/enhancedInteractiveShell.js +0 -248
  243. package/dist/shell/enhancedInteractiveShell.js.map +0 -1
  244. package/dist/shell/inputProcessor.d.ts +0 -56
  245. package/dist/shell/inputProcessor.d.ts.map +0 -1
  246. package/dist/shell/inputProcessor.js +0 -172
  247. package/dist/shell/inputProcessor.js.map +0 -1
  248. package/dist/shell/interactiveShell-patch.d.ts +0 -27
  249. package/dist/shell/interactiveShell-patch.d.ts.map +0 -1
  250. package/dist/shell/interactiveShell-patch.js +0 -38
  251. package/dist/shell/interactiveShell-patch.js.map +0 -1
  252. package/dist/shell/interactiveShell-robust.d.ts +0 -26
  253. package/dist/shell/interactiveShell-robust.d.ts.map +0 -1
  254. package/dist/shell/interactiveShell-robust.js +0 -34
  255. package/dist/shell/interactiveShell-robust.js.map +0 -1
  256. package/dist/shell/multiLinePasteManager.d.ts +0 -106
  257. package/dist/shell/multiLinePasteManager.d.ts.map +0 -1
  258. package/dist/shell/multiLinePasteManager.js +0 -308
  259. package/dist/shell/multiLinePasteManager.js.map +0 -1
  260. package/dist/shell/processInputBlockPatch.d.ts +0 -8
  261. package/dist/shell/processInputBlockPatch.d.ts.map +0 -1
  262. package/dist/shell/processInputBlockPatch.js +0 -133
  263. package/dist/shell/processInputBlockPatch.js.map +0 -1
  264. package/dist/shell/unifiedInputProcessor.d.ts +0 -22
  265. package/dist/shell/unifiedInputProcessor.d.ts.map +0 -1
  266. package/dist/shell/unifiedInputProcessor.js +0 -78
  267. package/dist/shell/unifiedInputProcessor.js.map +0 -1
  268. package/dist/tools/enhancedSecurityTools.d.ts +0 -19
  269. package/dist/tools/enhancedSecurityTools.d.ts.map +0 -1
  270. package/dist/tools/enhancedSecurityTools.js +0 -215
  271. package/dist/tools/enhancedSecurityTools.js.map +0 -1
  272. package/dist/tools/offensiveSecurityTools.d.ts +0 -16
  273. package/dist/tools/offensiveSecurityTools.d.ts.map +0 -1
  274. package/dist/tools/offensiveSecurityTools.js +0 -285
  275. package/dist/tools/offensiveSecurityTools.js.map +0 -1
  276. package/dist/tools/realSecurityTools.d.ts +0 -18
  277. package/dist/tools/realSecurityTools.d.ts.map +0 -1
  278. package/dist/tools/realSecurityTools.js +0 -468
  279. package/dist/tools/realSecurityTools.js.map +0 -1
  280. package/dist/tools/securityTools.d.ts +0 -20
  281. package/dist/tools/securityTools.d.ts.map +0 -1
  282. package/dist/tools/securityTools.js +0 -449
  283. package/dist/tools/securityTools.js.map +0 -1
@@ -1,449 +0,0 @@
1
- /**
2
- * Security Research Tools
3
- *
4
- * Comprehensive security research tools for authorized penetration testing,
5
- * vulnerability assessment, and persistence mechanism analysis.
6
- *
7
- * LEGAL NOTICE:
8
- * All tools require explicit authorization and scope definition.
9
- * Intended for legitimate security testing, bug bounty programs, and red team exercises only.
10
- */
11
- /**
12
- * Create security research tools
13
- */
14
- export function createSecurityTools(workingDir, options = {}) {
15
- const tools = [];
16
- // Authorization tools
17
- tools.push(createAuthorizationTool(options));
18
- tools.push(createScopeValidationTool(options));
19
- // Persistence research tools
20
- tools.push(createPersistenceAnalysisTool(options));
21
- tools.push(createPersistenceDetectionTool(options));
22
- // Vulnerability assessment tools
23
- tools.push(createVulnerabilityScanTool(options));
24
- tools.push(createRiskAssessmentTool(options));
25
- // Attack simulation tools
26
- if (options.enableAdvancedResearch) {
27
- tools.push(createAttackSimulationTool(options));
28
- tools.push(createPayloadGenerationTool(options));
29
- }
30
- // Security reporting tools
31
- tools.push(createSecurityReportTool(options));
32
- return tools;
33
- }
34
- /**
35
- * Create authorization tool
36
- */
37
- function createAuthorizationTool(options) {
38
- return {
39
- name: 'security_authorize_research',
40
- description: 'Authorize security research activities with proper scope and limitations',
41
- parameters: {
42
- type: 'object',
43
- properties: {
44
- authorizationType: {
45
- type: 'string',
46
- enum: ['bug_bounty', 'pentest', 'red_team', 'ctf', 'educational'],
47
- description: 'Type of security research authorization'
48
- },
49
- targetDomain: {
50
- type: 'string',
51
- description: 'Target domain or system for research'
52
- },
53
- authorizedBy: {
54
- type: 'string',
55
- description: 'Name of person or organization authorizing the research'
56
- },
57
- scopeLimitations: {
58
- type: 'array',
59
- items: { type: 'string' },
60
- description: 'Limitations on research scope'
61
- },
62
- outOfScope: {
63
- type: 'array',
64
- items: { type: 'string' },
65
- description: 'Systems or activities that are out of scope'
66
- }
67
- },
68
- required: ['authorizationType', 'targetDomain', 'authorizedBy']
69
- },
70
- handler: async (args) => {
71
- if (options.requireAuthorization) {
72
- const authorization = {
73
- authorizationType: args['authorizationType'],
74
- targetDomain: args['targetDomain'],
75
- authorizedBy: args['authorizedBy'],
76
- scopeLimitations: args['scopeLimitations'] || [],
77
- outOfScope: args['outOfScope'] || [],
78
- authorizationDate: new Date().toISOString(),
79
- status: 'authorized'
80
- };
81
- return JSON.stringify(authorization, null, 2);
82
- }
83
- else {
84
- return JSON.stringify({
85
- warning: 'Authorization bypassed - ensure you have proper authorization for security research',
86
- authorizationType: args['authorizationType'],
87
- targetDomain: args['targetDomain']
88
- }, null, 2);
89
- }
90
- }
91
- };
92
- }
93
- /**
94
- * Create scope validation tool
95
- */
96
- function createScopeValidationTool(options) {
97
- return {
98
- name: 'security_validate_scope',
99
- description: 'Validate that security research activities are within authorized scope',
100
- parameters: {
101
- type: 'object',
102
- properties: {
103
- activity: {
104
- type: 'string',
105
- description: 'Security research activity to validate'
106
- },
107
- target: {
108
- type: 'string',
109
- description: 'Target system or domain'
110
- }
111
- },
112
- required: ['activity', 'target']
113
- },
114
- handler: async (args) => {
115
- if (options.requireAuthorization) {
116
- const validation = {
117
- activity: args['activity'],
118
- target: args['target'],
119
- valid: true,
120
- scopeCheck: 'Manual validation required - ensure activity is within authorized scope'
121
- };
122
- return JSON.stringify(validation, null, 2);
123
- }
124
- else {
125
- return JSON.stringify({
126
- warning: 'Scope validation bypassed',
127
- activity: args['activity'],
128
- target: args['target'],
129
- valid: true
130
- }, null, 2);
131
- }
132
- }
133
- };
134
- }
135
- /**
136
- * Create persistence analysis tool
137
- */
138
- function createPersistenceAnalysisTool(options) {
139
- return {
140
- name: 'security_analyze_persistence',
141
- description: 'Analyze persistence mechanisms across different platforms and environments',
142
- parameters: {
143
- type: 'object',
144
- properties: {
145
- platform: {
146
- type: 'string',
147
- enum: ['windows', 'linux', 'macos', 'aws', 'azure', 'gcp', 'kubernetes', 'docker'],
148
- description: 'Platform to analyze for persistence techniques'
149
- },
150
- stealthLevel: {
151
- type: 'number',
152
- minimum: 1,
153
- maximum: 5,
154
- description: 'Minimum stealth level to include (1-5 scale)'
155
- },
156
- includeDetection: {
157
- type: 'boolean',
158
- description: 'Include detection methods in analysis'
159
- }
160
- },
161
- required: ['platform']
162
- },
163
- handler: async (args) => {
164
- const analysis = {
165
- platform: args['platform'],
166
- stealthLevel: args['stealthLevel'] || 1,
167
- includeDetection: args['includeDetection'] || false,
168
- techniques: [
169
- {
170
- id: 'registry-run-keys',
171
- name: 'Registry Run Keys',
172
- stealth: 3,
173
- complexity: 'medium',
174
- detectionMethods: ['Monitor registry changes', 'Check for suspicious executable paths']
175
- },
176
- {
177
- id: 'scheduled-tasks',
178
- name: 'Scheduled Tasks',
179
- stealth: 2,
180
- complexity: 'low',
181
- detectionMethods: ['Review scheduled tasks', 'Monitor Task Scheduler events']
182
- }
183
- ]
184
- };
185
- return JSON.stringify(analysis, null, 2);
186
- }
187
- };
188
- }
189
- /**
190
- * Create persistence detection tool
191
- */
192
- function createPersistenceDetectionTool(options) {
193
- return {
194
- name: 'security_detect_persistence',
195
- description: 'Generate detection methods and indicators for persistence techniques',
196
- parameters: {
197
- type: 'object',
198
- properties: {
199
- techniqueId: {
200
- type: 'string',
201
- description: 'Specific persistence technique ID to generate detection for'
202
- },
203
- platform: {
204
- type: 'string',
205
- description: 'Platform for detection methods'
206
- }
207
- },
208
- required: ['techniqueId']
209
- },
210
- handler: async (args) => {
211
- const detection = {
212
- techniqueId: args['techniqueId'],
213
- platform: args['platform'],
214
- detectionMethods: [
215
- 'Monitor system changes',
216
- 'Analyze process behavior',
217
- 'Check for unusual file modifications'
218
- ],
219
- indicators: [
220
- 'Unusual registry modifications',
221
- 'Suspicious scheduled tasks',
222
- 'Unexpected service installations'
223
- ]
224
- };
225
- return JSON.stringify(detection, null, 2);
226
- }
227
- };
228
- }
229
- /**
230
- * Create vulnerability scan tool
231
- */
232
- function createVulnerabilityScanTool(options) {
233
- return {
234
- name: 'security_scan_vulnerabilities',
235
- description: 'Scan for common vulnerabilities and security misconfigurations',
236
- parameters: {
237
- type: 'object',
238
- properties: {
239
- targetType: {
240
- type: 'string',
241
- enum: ['web_application', 'api', 'infrastructure', 'cloud', 'container'],
242
- description: 'Type of target to scan'
243
- },
244
- targetUrl: {
245
- type: 'string',
246
- description: 'URL or identifier of target to scan'
247
- },
248
- scanDepth: {
249
- type: 'string',
250
- enum: ['quick', 'standard', 'deep'],
251
- description: 'Depth of vulnerability scanning'
252
- }
253
- },
254
- required: ['targetType', 'targetUrl']
255
- },
256
- handler: async (args) => {
257
- const scanResults = {
258
- targetType: args['targetType'],
259
- targetUrl: args['targetUrl'],
260
- scanDepth: args['scanDepth'] || 'standard',
261
- vulnerabilities: [
262
- {
263
- id: 'sql-injection',
264
- name: 'SQL Injection',
265
- severity: 'high',
266
- description: 'Potential SQL injection vulnerability detected'
267
- },
268
- {
269
- id: 'xss',
270
- name: 'Cross-Site Scripting',
271
- severity: 'medium',
272
- description: 'Potential XSS vulnerability detected'
273
- }
274
- ]
275
- };
276
- return JSON.stringify(scanResults, null, 2);
277
- }
278
- };
279
- }
280
- /**
281
- * Create risk assessment tool
282
- */
283
- function createRiskAssessmentTool(options) {
284
- return {
285
- name: 'security_assess_risk',
286
- description: 'Assess security risks and generate risk scores',
287
- parameters: {
288
- type: 'object',
289
- properties: {
290
- findings: {
291
- type: 'array',
292
- items: { type: 'string' },
293
- description: 'Security findings to assess'
294
- },
295
- context: {
296
- type: 'string',
297
- description: 'Context for risk assessment (e.g., production, development)'
298
- }
299
- },
300
- required: ['findings']
301
- },
302
- handler: async (args) => {
303
- const assessment = {
304
- findings: args['findings'],
305
- context: args['context'] || 'production',
306
- riskScore: 7.5,
307
- riskLevel: 'high',
308
- recommendations: [
309
- 'Implement input validation',
310
- 'Enable security headers',
311
- 'Conduct regular security testing'
312
- ]
313
- };
314
- return JSON.stringify(assessment, null, 2);
315
- }
316
- };
317
- }
318
- /**
319
- * Create attack simulation tool
320
- */
321
- function createAttackSimulationTool(options) {
322
- return {
323
- name: 'security_simulate_attack',
324
- description: 'Simulate attack scenarios for testing and research',
325
- parameters: {
326
- type: 'object',
327
- properties: {
328
- attackType: {
329
- type: 'string',
330
- enum: ['web_application', 'authentication', 'injection', 'persistence', 'privilege_escalation'],
331
- description: 'Type of attack to simulate'
332
- },
333
- target: {
334
- type: 'string',
335
- description: 'Target for attack simulation'
336
- },
337
- stealthLevel: {
338
- type: 'number',
339
- minimum: 1,
340
- maximum: 5,
341
- description: 'Stealth level for attack simulation'
342
- }
343
- },
344
- required: ['attackType', 'target']
345
- },
346
- handler: async (args) => {
347
- const simulation = {
348
- attackType: args['attackType'],
349
- target: args['target'],
350
- stealthLevel: args['stealthLevel'] || 3,
351
- steps: [
352
- 'Initial reconnaissance',
353
- 'Vulnerability identification',
354
- 'Payload delivery',
355
- 'Exploitation attempt'
356
- ],
357
- successProbability: 0.75
358
- };
359
- return JSON.stringify(simulation, null, 2);
360
- }
361
- };
362
- }
363
- /**
364
- * Create payload generation tool
365
- */
366
- function createPayloadGenerationTool(options) {
367
- return {
368
- name: 'security_generate_payloads',
369
- description: 'Generate payloads for security testing and research',
370
- parameters: {
371
- type: 'object',
372
- properties: {
373
- payloadType: {
374
- type: 'string',
375
- enum: ['sql_injection', 'xss', 'command_injection', 'file_upload', 'authentication_bypass'],
376
- description: 'Type of payload to generate'
377
- },
378
- target: {
379
- type: 'string',
380
- description: 'Target technology or framework'
381
- },
382
- count: {
383
- type: 'number',
384
- minimum: 1,
385
- maximum: 10,
386
- description: 'Number of payloads to generate'
387
- }
388
- },
389
- required: ['payloadType', 'target']
390
- },
391
- handler: async (args) => {
392
- const payloads = {
393
- payloadType: args['payloadType'],
394
- target: args['target'],
395
- count: args['count'] || 3,
396
- payloads: [
397
- 'Sample payload 1',
398
- 'Sample payload 2',
399
- 'Sample payload 3'
400
- ].slice(0, args['count'] || 3)
401
- };
402
- return JSON.stringify(payloads, null, 2);
403
- }
404
- };
405
- }
406
- /**
407
- * Create security report tool
408
- */
409
- function createSecurityReportTool(options) {
410
- return {
411
- name: 'security_generate_report',
412
- description: 'Generate comprehensive security research report',
413
- parameters: {
414
- type: 'object',
415
- properties: {
416
- reportType: {
417
- type: 'string',
418
- enum: ['persistence_analysis', 'vulnerability_assessment', 'attack_simulation', 'comprehensive'],
419
- description: 'Type of security report to generate'
420
- },
421
- target: {
422
- type: 'string',
423
- description: 'Target system or environment'
424
- },
425
- includeRecommendations: {
426
- type: 'boolean',
427
- description: 'Include security recommendations in report'
428
- }
429
- },
430
- required: ['reportType', 'target']
431
- },
432
- handler: async (args) => {
433
- const report = {
434
- reportType: args['reportType'],
435
- target: args['target'],
436
- includeRecommendations: args['includeRecommendations'] || true,
437
- generatedAt: new Date().toISOString(),
438
- content: `Security Research Report for ${args['target']}`,
439
- recommendations: [
440
- 'Implement proper input validation',
441
- 'Enable security monitoring',
442
- 'Conduct regular security assessments'
443
- ]
444
- };
445
- return JSON.stringify(report, null, 2);
446
- }
447
- };
448
- }
449
- //# sourceMappingURL=securityTools.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"securityTools.js","sourceRoot":"","sources":["../../src/tools/securityTools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AASH;;GAEG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAAkB,EAClB,UAAgC,EAAE;IAElC,MAAM,KAAK,GAAqB,EAAE,CAAC;IAEnC,sBA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