erosolar-cli 1.7.55 → 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 (273) hide show
  1. package/package.json +1 -1
  2. package/dist/active-stack-security.d.ts +0 -110
  3. package/dist/active-stack-security.js +0 -313
  4. package/dist/active-stack-security.js.map +0 -1
  5. package/dist/advanced-targeting.d.ts +0 -113
  6. package/dist/advanced-targeting.js +0 -252
  7. package/dist/advanced-targeting.js.map +0 -1
  8. package/dist/bin/adapters/node/index.js +0 -33
  9. package/dist/bin/adapters/types.js +0 -1
  10. package/dist/bin/alpha-zero/agentWrapper.js +0 -165
  11. package/dist/bin/alpha-zero/codeEvaluator.js +0 -272
  12. package/dist/bin/alpha-zero/competitiveRunner.js +0 -219
  13. package/dist/bin/alpha-zero/index.js +0 -98
  14. package/dist/bin/alpha-zero/introspection.js +0 -298
  15. package/dist/bin/alpha-zero/metricsTracker.js +0 -207
  16. package/dist/bin/alpha-zero/security/core.js +0 -269
  17. package/dist/bin/alpha-zero/security/google.js +0 -308
  18. package/dist/bin/alpha-zero/security/googleLoader.js +0 -40
  19. package/dist/bin/alpha-zero/security/index.js +0 -31
  20. package/dist/bin/alpha-zero/security/simulation.js +0 -274
  21. package/dist/bin/alpha-zero/selfModification.js +0 -231
  22. package/dist/bin/alpha-zero/types.js +0 -30
  23. package/dist/bin/bin/erosolar-optimized.js +0 -205
  24. package/dist/bin/capabilities/agentSpawningCapability.js +0 -116
  25. package/dist/bin/capabilities/bashCapability.js +0 -22
  26. package/dist/bin/capabilities/cloudCapability.js +0 -36
  27. package/dist/bin/capabilities/codeAnalysisCapability.js +0 -22
  28. package/dist/bin/capabilities/codeQualityCapability.js +0 -23
  29. package/dist/bin/capabilities/dependencySecurityCapability.js +0 -22
  30. package/dist/bin/capabilities/devCapability.js +0 -22
  31. package/dist/bin/capabilities/editCapability.js +0 -28
  32. package/dist/bin/capabilities/emailCapability.js +0 -20
  33. package/dist/bin/capabilities/enhancedGitCapability.js +0 -221
  34. package/dist/bin/capabilities/filesystemCapability.js +0 -22
  35. package/dist/bin/capabilities/globCapability.js +0 -28
  36. package/dist/bin/capabilities/interactionCapability.js +0 -20
  37. package/dist/bin/capabilities/learnCapability.js +0 -22
  38. package/dist/bin/capabilities/mcpCapability.js +0 -20
  39. package/dist/bin/capabilities/notebookCapability.js +0 -28
  40. package/dist/bin/capabilities/planningCapability.js +0 -27
  41. package/dist/bin/capabilities/refactoringCapability.js +0 -23
  42. package/dist/bin/capabilities/repoChecksCapability.js +0 -22
  43. package/dist/bin/capabilities/searchCapability.js +0 -22
  44. package/dist/bin/capabilities/skillCapability.js +0 -76
  45. package/dist/bin/capabilities/taskManagementCapability.js +0 -20
  46. package/dist/bin/capabilities/testingCapability.js +0 -23
  47. package/dist/bin/capabilities/toolManifest.js +0 -159
  48. package/dist/bin/capabilities/toolRegistry.js +0 -114
  49. package/dist/bin/capabilities/webCapability.js +0 -20
  50. package/dist/bin/config.js +0 -139
  51. package/dist/bin/contracts/v1/agent.js +0 -7
  52. package/dist/bin/contracts/v1/agentProfileManifest.js +0 -8
  53. package/dist/bin/contracts/v1/agentRules.js +0 -9
  54. package/dist/bin/contracts/v1/toolAccess.js +0 -8
  55. package/dist/bin/erosolar-optimized.d.ts +0 -12
  56. package/dist/bin/erosolar-optimized.d.ts.map +0 -1
  57. package/dist/bin/erosolar-optimized.js +0 -239
  58. package/dist/bin/erosolar-optimized.js.map +0 -1
  59. package/dist/bin/headless/headlessApp.js +0 -172
  60. package/dist/bin/mcp/config.js +0 -202
  61. package/dist/bin/mcp/stdioClient.js +0 -172
  62. package/dist/bin/mcp/toolBridge.js +0 -104
  63. package/dist/bin/mcp/types.js +0 -1
  64. package/dist/bin/plugins/index.js +0 -113
  65. package/dist/bin/plugins/providers/anthropic/index.js +0 -25
  66. package/dist/bin/plugins/providers/deepseek/index.js +0 -24
  67. package/dist/bin/plugins/providers/google/index.js +0 -26
  68. package/dist/bin/plugins/providers/index.js +0 -19
  69. package/dist/bin/plugins/providers/ollama/index.js +0 -59
  70. package/dist/bin/plugins/providers/openai/index.js +0 -26
  71. package/dist/bin/plugins/providers/xai/index.js +0 -24
  72. package/dist/bin/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -8
  73. package/dist/bin/plugins/tools/bash/localBashPlugin.js +0 -13
  74. package/dist/bin/plugins/tools/checks/localRepoChecksPlugin.js +0 -13
  75. package/dist/bin/plugins/tools/cloud/cloudPlugin.js +0 -13
  76. package/dist/bin/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -13
  77. package/dist/bin/plugins/tools/codeQuality/codeQualityPlugin.js +0 -13
  78. package/dist/bin/plugins/tools/dependency/dependencyPlugin.js +0 -11
  79. package/dist/bin/plugins/tools/development/devPlugin.js +0 -13
  80. package/dist/bin/plugins/tools/edit/editPlugin.js +0 -14
  81. package/dist/bin/plugins/tools/email/emailPlugin.js +0 -11
  82. package/dist/bin/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -8
  83. package/dist/bin/plugins/tools/filesystem/localFilesystemPlugin.js +0 -13
  84. package/dist/bin/plugins/tools/glob/globPlugin.js +0 -14
  85. package/dist/bin/plugins/tools/index.js +0 -2
  86. package/dist/bin/plugins/tools/interaction/interactionPlugin.js +0 -11
  87. package/dist/bin/plugins/tools/learn/learnPlugin.js +0 -13
  88. package/dist/bin/plugins/tools/mcp/mcpPlugin.js +0 -8
  89. package/dist/bin/plugins/tools/nodeDefaults.js +0 -56
  90. package/dist/bin/plugins/tools/notebook/notebookPlugin.js +0 -14
  91. package/dist/bin/plugins/tools/planning/planningPlugin.js +0 -14
  92. package/dist/bin/plugins/tools/refactoring/refactoringPlugin.js +0 -11
  93. package/dist/bin/plugins/tools/registry.js +0 -57
  94. package/dist/bin/plugins/tools/search/localSearchPlugin.js +0 -13
  95. package/dist/bin/plugins/tools/skills/skillPlugin.js +0 -8
  96. package/dist/bin/plugins/tools/taskManagement/taskManagementPlugin.js +0 -11
  97. package/dist/bin/plugins/tools/testing/testingPlugin.js +0 -11
  98. package/dist/bin/plugins/tools/web/webPlugin.js +0 -11
  99. package/dist/bin/providers/anthropicProvider.js +0 -329
  100. package/dist/bin/providers/googleProvider.js +0 -203
  101. package/dist/bin/providers/openaiChatCompletionsProvider.js +0 -208
  102. package/dist/bin/providers/openaiResponsesProvider.js +0 -249
  103. package/dist/bin/providers/providerFactory.js +0 -24
  104. package/dist/bin/runtime/agentController.js +0 -321
  105. package/dist/bin/runtime/agentHost.js +0 -153
  106. package/dist/bin/runtime/agentSession.js +0 -195
  107. package/dist/bin/runtime/node.js +0 -10
  108. package/dist/bin/runtime/universal.js +0 -28
  109. package/dist/bin/skills/skillRepository.js +0 -236
  110. package/dist/bin/skills/types.js +0 -1
  111. package/dist/bin/subagents/taskRunner.js +0 -269
  112. package/dist/bin/tools/backgroundBashTools.js +0 -211
  113. package/dist/bin/tools/bashTools.js +0 -159
  114. package/dist/bin/tools/cloudTools.js +0 -864
  115. package/dist/bin/tools/codeAnalysisTools.js +0 -641
  116. package/dist/bin/tools/codeQualityTools.js +0 -294
  117. package/dist/bin/tools/dependencyTools.js +0 -282
  118. package/dist/bin/tools/devTools.js +0 -238
  119. package/dist/bin/tools/diffUtils.js +0 -137
  120. package/dist/bin/tools/editTools.js +0 -134
  121. package/dist/bin/tools/emailTools.js +0 -448
  122. package/dist/bin/tools/fileTools.js +0 -282
  123. package/dist/bin/tools/globTools.js +0 -173
  124. package/dist/bin/tools/grepTools.js +0 -332
  125. package/dist/bin/tools/interactionTools.js +0 -170
  126. package/dist/bin/tools/learnTools.js +0 -1818
  127. package/dist/bin/tools/notebookEditTools.js +0 -196
  128. package/dist/bin/tools/planningTools.js +0 -46
  129. package/dist/bin/tools/refactoringTools.js +0 -293
  130. package/dist/bin/tools/repoChecksTools.js +0 -160
  131. package/dist/bin/tools/searchTools.js +0 -206
  132. package/dist/bin/tools/skillTools.js +0 -177
  133. package/dist/bin/tools/taskManagementTools.js +0 -156
  134. package/dist/bin/tools/testingTools.js +0 -232
  135. package/dist/bin/tools/webTools.js +0 -480
  136. package/dist/bin/workspace.js +0 -106
  137. package/dist/bin/workspace.validator.js +0 -213
  138. package/dist/capabilities/offensiveSecurityCapability.d.ts +0 -26
  139. package/dist/capabilities/offensiveSecurityCapability.d.ts.map +0 -1
  140. package/dist/capabilities/offensiveSecurityCapability.js +0 -58
  141. package/dist/capabilities/offensiveSecurityCapability.js.map +0 -1
  142. package/dist/capabilities/realSecurityCapability.d.ts +0 -26
  143. package/dist/capabilities/realSecurityCapability.d.ts.map +0 -1
  144. package/dist/capabilities/realSecurityCapability.js +0 -53
  145. package/dist/capabilities/realSecurityCapability.js.map +0 -1
  146. package/dist/capabilities/securityCapability.d.ts +0 -32
  147. package/dist/capabilities/securityCapability.d.ts.map +0 -1
  148. package/dist/capabilities/securityCapability.js +0 -57
  149. package/dist/capabilities/securityCapability.js.map +0 -1
  150. package/dist/capabilities/ultimateSecurityCapability.d.ts +0 -42
  151. package/dist/capabilities/ultimateSecurityCapability.d.ts.map +0 -1
  152. package/dist/capabilities/ultimateSecurityCapability.js +0 -96
  153. package/dist/capabilities/ultimateSecurityCapability.js.map +0 -1
  154. package/dist/core/designThoughtCheck.d.ts +0 -196
  155. package/dist/core/designThoughtCheck.d.ts.map +0 -1
  156. package/dist/core/designThoughtCheck.js +0 -287
  157. package/dist/core/designThoughtCheck.js.map +0 -1
  158. package/dist/core/designThoughtCheckEngine.d.ts +0 -58
  159. package/dist/core/designThoughtCheckEngine.d.ts.map +0 -1
  160. package/dist/core/designThoughtCheckEngine.js +0 -358
  161. package/dist/core/designThoughtCheckEngine.js.map +0 -1
  162. package/dist/core/designThoughtCheckIntegration.d.ts +0 -103
  163. package/dist/core/designThoughtCheckIntegration.d.ts.map +0 -1
  164. package/dist/core/designThoughtCheckIntegration.js +0 -207
  165. package/dist/core/designThoughtCheckIntegration.js.map +0 -1
  166. package/dist/core/intelligenceTools.d.ts +0 -19
  167. package/dist/core/intelligenceTools.d.ts.map +0 -1
  168. package/dist/core/intelligenceTools.js +0 -453
  169. package/dist/core/intelligenceTools.js.map +0 -1
  170. package/dist/core/operationalTools.d.ts +0 -19
  171. package/dist/core/operationalTools.d.ts.map +0 -1
  172. package/dist/core/operationalTools.js +0 -467
  173. package/dist/core/operationalTools.js.map +0 -1
  174. package/dist/offensive/core/offensive-engine.d.ts +0 -171
  175. package/dist/offensive/core/offensive-engine.d.ts.map +0 -1
  176. package/dist/offensive/core/offensive-engine.js +0 -345
  177. package/dist/offensive/core/offensive-engine.js.map +0 -1
  178. package/dist/offensive/core/offensive-integration.d.ts +0 -129
  179. package/dist/offensive/core/offensive-integration.d.ts.map +0 -1
  180. package/dist/offensive/core/offensive-integration.js +0 -364
  181. package/dist/offensive/core/offensive-integration.js.map +0 -1
  182. package/dist/offensive/core/offensive-tools.d.ts +0 -55
  183. package/dist/offensive/core/offensive-tools.d.ts.map +0 -1
  184. package/dist/offensive/core/offensive-tools.js +0 -438
  185. package/dist/offensive/core/offensive-tools.js.map +0 -1
  186. package/dist/offensive/offensive-cli.d.ts +0 -48
  187. package/dist/offensive/offensive-cli.d.ts.map +0 -1
  188. package/dist/offensive/offensive-cli.js +0 -233
  189. package/dist/offensive/offensive-cli.js.map +0 -1
  190. package/dist/security/apt-simulation-cli.d.ts +0 -57
  191. package/dist/security/apt-simulation-cli.d.ts.map +0 -1
  192. package/dist/security/apt-simulation-cli.js +0 -278
  193. package/dist/security/apt-simulation-cli.js.map +0 -1
  194. package/dist/security/apt-simulation-engine-complete.d.ts +0 -97
  195. package/dist/security/apt-simulation-engine-complete.d.ts.map +0 -1
  196. package/dist/security/apt-simulation-engine-complete.js +0 -441
  197. package/dist/security/apt-simulation-engine-complete.js.map +0 -1
  198. package/dist/security/apt-simulation-engine.d.ts +0 -97
  199. package/dist/security/apt-simulation-engine.d.ts.map +0 -1
  200. package/dist/security/apt-simulation-engine.js +0 -441
  201. package/dist/security/apt-simulation-engine.js.map +0 -1
  202. package/dist/security/authorization.d.ts +0 -45
  203. package/dist/security/authorization.d.ts.map +0 -1
  204. package/dist/security/authorization.js +0 -128
  205. package/dist/security/authorization.js.map +0 -1
  206. package/dist/security/comprehensive-security-research.d.ts +0 -84
  207. package/dist/security/comprehensive-security-research.d.ts.map +0 -1
  208. package/dist/security/comprehensive-security-research.js +0 -211
  209. package/dist/security/comprehensive-security-research.js.map +0 -1
  210. package/dist/security/offensive/exploitationEngine.d.ts +0 -54
  211. package/dist/security/offensive/exploitationEngine.d.ts.map +0 -1
  212. package/dist/security/offensive/exploitationEngine.js +0 -263
  213. package/dist/security/offensive/exploitationEngine.js.map +0 -1
  214. package/dist/security/real/networkExploitation.d.ts +0 -92
  215. package/dist/security/real/networkExploitation.d.ts.map +0 -1
  216. package/dist/security/real/networkExploitation.js +0 -316
  217. package/dist/security/real/networkExploitation.js.map +0 -1
  218. package/dist/security/real/persistenceImplementation.d.ts +0 -62
  219. package/dist/security/real/persistenceImplementation.d.ts.map +0 -1
  220. package/dist/security/real/persistenceImplementation.js +0 -323
  221. package/dist/security/real/persistenceImplementation.js.map +0 -1
  222. package/dist/security/real/vulnerabilityScanner.d.ts +0 -73
  223. package/dist/security/real/vulnerabilityScanner.d.ts.map +0 -1
  224. package/dist/security/real/vulnerabilityScanner.js +0 -341
  225. package/dist/security/real/vulnerabilityScanner.js.map +0 -1
  226. package/dist/shell/capturePastePatch.d.ts +0 -9
  227. package/dist/shell/capturePastePatch.d.ts.map +0 -1
  228. package/dist/shell/capturePastePatch.js +0 -98
  229. package/dist/shell/capturePastePatch.js.map +0 -1
  230. package/dist/shell/enhancedInteractiveShell.d.ts +0 -90
  231. package/dist/shell/enhancedInteractiveShell.d.ts.map +0 -1
  232. package/dist/shell/enhancedInteractiveShell.js +0 -248
  233. package/dist/shell/enhancedInteractiveShell.js.map +0 -1
  234. package/dist/shell/inputProcessor.d.ts +0 -56
  235. package/dist/shell/inputProcessor.d.ts.map +0 -1
  236. package/dist/shell/inputProcessor.js +0 -172
  237. package/dist/shell/inputProcessor.js.map +0 -1
  238. package/dist/shell/interactiveShell-patch.d.ts +0 -27
  239. package/dist/shell/interactiveShell-patch.d.ts.map +0 -1
  240. package/dist/shell/interactiveShell-patch.js +0 -38
  241. package/dist/shell/interactiveShell-patch.js.map +0 -1
  242. package/dist/shell/interactiveShell-robust.d.ts +0 -26
  243. package/dist/shell/interactiveShell-robust.d.ts.map +0 -1
  244. package/dist/shell/interactiveShell-robust.js +0 -34
  245. package/dist/shell/interactiveShell-robust.js.map +0 -1
  246. package/dist/shell/multiLinePasteManager.d.ts +0 -106
  247. package/dist/shell/multiLinePasteManager.d.ts.map +0 -1
  248. package/dist/shell/multiLinePasteManager.js +0 -308
  249. package/dist/shell/multiLinePasteManager.js.map +0 -1
  250. package/dist/shell/processInputBlockPatch.d.ts +0 -8
  251. package/dist/shell/processInputBlockPatch.d.ts.map +0 -1
  252. package/dist/shell/processInputBlockPatch.js +0 -133
  253. package/dist/shell/processInputBlockPatch.js.map +0 -1
  254. package/dist/shell/unifiedInputProcessor.d.ts +0 -23
  255. package/dist/shell/unifiedInputProcessor.d.ts.map +0 -1
  256. package/dist/shell/unifiedInputProcessor.js +0 -92
  257. package/dist/shell/unifiedInputProcessor.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,467 +0,0 @@
1
- /**
2
- * Operational Intelligence Tools
3
- *
4
- * Advanced operational capabilities for intelligence and security agencies.
5
- * These tools provide sophisticated techniques for real-world operations.
6
- *
7
- * LEGAL NOTICE: For authorized security research and testing only.
8
- */
9
- /**
10
- * Create operational intelligence tools
11
- */
12
- export function createOperationalTools(workingDir, options = {}) {
13
- const tools = [];
14
- // Mission planning tools
15
- tools.push(createMissionPlanningTool(options));
16
- tools.push(createOperationalTimelineTool(options));
17
- tools.push(createResourceAllocationTool(options));
18
- // Field operations tools
19
- tools.push(createFieldOperationsTool(options));
20
- tools.push(createSurveillanceTool(options));
21
- tools.push(createCounterSurveillanceTool(options));
22
- // Technical operations tools
23
- tools.push(createTechnicalOperationsTool(options));
24
- tools.push(createSignalOperationsTool(options));
25
- tools.push(createCyberOperationsTool(options));
26
- // Intelligence analysis tools
27
- tools.push(createIntelligenceAnalysisTool(options));
28
- tools.push(createThreatAssessmentTool(options));
29
- tools.push(createRiskAnalysisTool(options));
30
- // Counter-intelligence tools
31
- tools.push(createCounterIntelligenceTool(options));
32
- tools.push(createDeceptionOperationsTool(options));
33
- tools.push(createFalseFlagTool(options));
34
- // Operational security tools
35
- tools.push(createOpSecTool(options));
36
- tools.push(createCompartmentalizationTool(options));
37
- tools.push(createEmergencyProceduresTool(options));
38
- return tools;
39
- }
40
- /**
41
- * Mission planning tool
42
- */
43
- function createMissionPlanningTool(options) {
44
- return {
45
- name: 'plan_intelligence_mission',
46
- description: 'Plan comprehensive intelligence missions with detailed operational parameters',
47
- parameters: {
48
- type: 'object',
49
- properties: {
50
- missionType: {
51
- type: 'string',
52
- enum: ['collection', 'influence', 'disruption', 'extraction'],
53
- description: 'Type of intelligence mission'
54
- },
55
- target: {
56
- type: 'string',
57
- description: 'Mission target'
58
- },
59
- objectives: {
60
- type: 'array',
61
- items: { type: 'string' },
62
- description: 'Mission objectives'
63
- },
64
- timeframe: {
65
- type: 'string',
66
- description: 'Mission timeframe'
67
- }
68
- },
69
- required: ['missionType', 'target']
70
- },
71
- handler: async (args) => {
72
- if (options.requireAuthorization) {
73
- // Authorization check
74
- }
75
- const missionType = args['missionType'];
76
- const target = args['target'];
77
- const objectives = args['objectives'] || ['Gather intelligence', 'Establish access'];
78
- const timeframe = args['timeframe'] || '72 hours';
79
- const missionPlan = {
80
- missionType,
81
- target,
82
- classification: 'TOP SECRET//NOFORN',
83
- operationalParameters: {
84
- codename: `Operation ${Math.random().toString(36).substring(2, 8).toUpperCase()}`,
85
- timeframe,
86
- successCriteria: 'Intelligence collected without detection',
87
- abortConditions: ['Compromise detection', 'Operational security breach', 'External interference']
88
- },
89
- objectives: {
90
- primary: objectives[0],
91
- secondary: objectives.slice(1),
92
- tertiary: ['Maintain operational security', 'Preserve future access', 'Cover operational tracks']
93
- },
94
- resources: {
95
- personnel: {
96
- operators: 1,
97
- support: 3,
98
- command: 1
99
- },
100
- technical: {
101
- reconnaissance: 'Advanced network scanning and profiling',
102
- access: 'Multiple entry vectors established',
103
- communication: 'Secure covert channels',
104
- persistence: 'Advanced persistence mechanisms'
105
- },
106
- logistical: {
107
- funding: 'Operational budget allocated',
108
- equipment: 'Specialized technical equipment',
109
- safeHouses: 'Multiple secure locations available',
110
- extraction: 'Emergency extraction protocols'
111
- }
112
- },
113
- phases: {
114
- preparation: {
115
- duration: '24 hours',
116
- activities: ['Target profiling', 'Environment assessment', 'Resource allocation', 'Contingency planning']
117
- },
118
- execution: {
119
- duration: '48 hours',
120
- activities: ['Initial access', 'Intelligence collection', 'Persistence establishment', 'Cover operations']
121
- },
122
- consolidation: {
123
- duration: '24 hours',
124
- activities: ['Data exfiltration', 'Evidence cleanup', 'Trail covering', 'After-action reporting']
125
- }
126
- },
127
- riskAssessment: {
128
- technical: {
129
- likelihood: 'Medium',
130
- impact: 'High',
131
- mitigation: 'Redundant systems, fallback procedures'
132
- },
133
- operational: {
134
- likelihood: 'Low',
135
- impact: 'Critical',
136
- mitigation: 'Compartmentalization, operational security'
137
- },
138
- counterIntelligence: {
139
- likelihood: 'Medium',
140
- impact: 'Severe',
141
- mitigation: 'Deception operations, false trails'
142
- }
143
- }
144
- };
145
- return JSON.stringify({
146
- success: true,
147
- missionPlan,
148
- approvalRequired: true,
149
- warning: 'Mission plan generated - requires operational approval before execution'
150
- }, null, 2);
151
- }
152
- };
153
- }
154
- /**
155
- * Operational timeline tool
156
- */
157
- function createOperationalTimelineTool(options) {
158
- return {
159
- name: 'create_operational_timeline',
160
- description: 'Create detailed operational timeline for intelligence missions',
161
- parameters: {
162
- type: 'object',
163
- properties: {
164
- mission: {
165
- type: 'string',
166
- description: 'Mission to timeline'
167
- },
168
- duration: {
169
- type: 'string',
170
- description: 'Operation duration'
171
- }
172
- },
173
- required: ['mission']
174
- },
175
- handler: async (args) => {
176
- const mission = args['mission'];
177
- const duration = args['duration'] || '72 hours';
178
- const timeline = {
179
- mission,
180
- duration,
181
- classification: 'SECRET//NOFORN',
182
- phases: {
183
- 'T-24h': {
184
- phase: 'Preparation',
185
- activities: [
186
- 'Final target assessment',
187
- 'Resource verification',
188
- 'Communication check',
189
- 'Contingency review'
190
- ],
191
- milestones: ['All systems operational', 'Backup protocols confirmed']
192
- },
193
- 'T-12h': {
194
- phase: 'Pre-deployment',
195
- activities: [
196
- 'Operator briefing',
197
- 'Equipment final check',
198
- 'Safe house activation',
199
- 'Communication establishment'
200
- ],
201
- milestones: ['Operator ready', 'Communication active']
202
- },
203
- 'T-0h': {
204
- phase: 'Execution',
205
- activities: [
206
- 'Initial access attempt',
207
- 'Environment assessment',
208
- 'Security bypass',
209
- 'Intelligence collection'
210
- ],
211
- milestones: ['Access established', 'Collection initiated']
212
- },
213
- 'T+6h': {
214
- phase: 'Consolidation',
215
- activities: [
216
- 'Data organization',
217
- 'Persistence mechanisms',
218
- 'Security assessment',
219
- 'Progress reporting'
220
- ],
221
- milestones: ['Data secured', 'Persistence active']
222
- },
223
- 'T+24h': {
224
- phase: 'Expansion',
225
- activities: [
226
- 'Additional access points',
227
- 'Extended collection',
228
- 'Network mapping',
229
- 'Threat assessment'
230
- ],
231
- milestones: ['Network mapped', 'Extended access']
232
- },
233
- 'T+48h': {
234
- phase: 'Extraction',
235
- activities: [
236
- 'Final data collection',
237
- 'Evidence cleanup',
238
- 'Trail covering',
239
- 'Safe extraction'
240
- ],
241
- milestones: ['Mission complete', 'Clean extraction']
242
- },
243
- 'T+72h': {
244
- phase: 'After-action',
245
- activities: [
246
- 'Intelligence analysis',
247
- 'Operational debrief',
248
- 'Lessons learned',
249
- 'Future planning'
250
- ],
251
- milestones: ['Analysis complete', 'Debrief concluded']
252
- }
253
- },
254
- criticalPoints: {
255
- 'T-0h': 'Mission initiation - highest risk period',
256
- 'T+6h': 'Initial consolidation - security assessment critical',
257
- 'T+48h': 'Extraction phase - evidence cleanup essential'
258
- },
259
- communicationSchedule: {
260
- 'T-24h': 'Initial check-in',
261
- 'T-0h': 'Mission start confirmation',
262
- 'T+6h': 'Progress report',
263
- 'T+24h': 'Status update',
264
- 'T+48h': 'Extraction confirmation',
265
- 'T+72h': 'Mission completion'
266
- }
267
- };
268
- return JSON.stringify({
269
- success: true,
270
- timeline,
271
- operationalGuidance: 'Maintain communication discipline and operational security throughout',
272
- warning: 'Operational timeline created - follow strict timing and security protocols'
273
- }, null, 2);
274
- }
275
- };
276
- }
277
- /**
278
- * Resource allocation tool
279
- */
280
- function createResourceAllocationTool(options) {
281
- return {
282
- name: 'allocate_operational_resources',
283
- description: 'Allocate resources for intelligence operations',
284
- parameters: {
285
- type: 'object',
286
- properties: {
287
- mission: {
288
- type: 'string',
289
- description: 'Mission requiring resources'
290
- },
291
- resourceTypes: {
292
- type: 'array',
293
- items: { type: 'string' },
294
- description: 'Types of resources needed',
295
- enum: ['personnel', 'technical', 'financial', 'logistical']
296
- }
297
- },
298
- required: ['mission']
299
- },
300
- handler: async (args) => {
301
- const mission = args['mission'];
302
- const resourceTypes = args['resourceTypes'] || ['personnel', 'technical', 'financial'];
303
- const allocation = {
304
- mission,
305
- classification: 'SECRET//NOFORN',
306
- resourceBreakdown: {
307
- personnel: {
308
- operators: {
309
- count: 2,
310
- skills: ['Technical operations', 'Field craft', 'Languages'],
311
- clearance: 'TOP SECRET',
312
- availability: 'Immediate'
313
- },
314
- support: {
315
- count: 4,
316
- roles: ['Technical support', 'Logistics', 'Analysis', 'Security'],
317
- clearance: 'SECRET',
318
- availability: 'On-call'
319
- },
320
- command: {
321
- count: 1,
322
- role: 'Mission control',
323
- clearance: 'TOP SECRET/SCI',
324
- availability: '24/7 during operation'
325
- }
326
- },
327
- technical: {
328
- equipment: {
329
- reconnaissance: ['Advanced scanners', 'Network tools', 'Surveillance equipment'],
330
- communication: ['Secure radios', 'Encrypted devices', 'Covert channels'],
331
- access: ['Specialized tools', 'Exploitation frameworks', 'Persistence mechanisms']
332
- },
333
- infrastructure: {
334
- commandCenter: 'Secure location with redundant communications',
335
- safeHouses: 'Multiple locations with technical capabilities',
336
- storage: 'Encrypted storage for collected intelligence'
337
- }
338
- },
339
- financial: {
340
- operationalBudget: '$50,000',
341
- contingency: '$15,000',
342
- disbursement: 'Controlled release based on operational phases',
343
- accounting: 'Compartmentalized with plausible cover'
344
- },
345
- logistical: {
346
- transportation: ['Multiple vehicles', 'Air travel options', 'Emergency extraction'],
347
- accommodation: ['Safe houses', 'Hotels', 'Temporary locations'],
348
- supplies: ['Technical equipment', 'Operational gear', 'Emergency provisions']
349
- }
350
- },
351
- allocationStrategy: {
352
- phased: 'Resources released based on operational phases',
353
- controlled: 'Strict accounting and oversight',
354
- redundant: 'Backup resources for critical components',
355
- deniable: 'Plausible cover for all expenditures'
356
- },
357
- riskManagement: {
358
- financial: 'Compartmentalized funding to limit exposure',
359
- personnel: 'Need-to-know basis with operational security',
360
- technical: 'Redundant systems with fallback options',
361
- logistical: 'Multiple supply chains and extraction routes'
362
- }
363
- };
364
- return JSON.stringify({
365
- success: true,
366
- allocation,
367
- approvalRequired: 'Resource allocation requires operational command approval',
368
- warning: 'Resource allocation plan created - maintain operational security in all disbursements'
369
- }, null, 2);
370
- }
371
- };
372
- }
373
- /**
374
- * Field operations tool
375
- */
376
- function createFieldOperationsTool(options) {
377
- return {
378
- name: 'plan_field_operations',
379
- description: 'Plan and coordinate field operations for intelligence collection',
380
- parameters: {
381
- type: 'object',
382
- properties: {
383
- location: {
384
- type: 'string',
385
- description: 'Operation location'
386
- },
387
- operationType: {
388
- type: 'string',
389
- enum: ['surveillance', 'collection', 'meeting', 'technical'],
390
- description: 'Type of field operation'
391
- }
392
- },
393
- required: ['location', 'operationType']
394
- },
395
- handler: async (args) => {
396
- if (options.requireAuthorization && !options.enableAdvancedOperations) {
397
- return JSON.stringify({
398
- error: 'Advanced operations disabled - enable with enableAdvancedOperations option'
399
- }, null, 2);
400
- }
401
- const location = args['location'];
402
- const operationType = args['operationType'];
403
- const fieldPlan = {
404
- location,
405
- operationType,
406
- classification: 'SECRET//NOFORN',
407
- operationalDetails: {
408
- teamComposition: {
409
- primary: 'Field operator (technical specialist)',
410
- support: 'Surveillance team (2 personnel)',
411
- command: 'Remote mission control',
412
- extraction: 'Emergency response team'
413
- },
414
- equipment: {
415
- communication: ['Encrypted radios', 'Satellite phones', 'Covert signaling'],
416
- collection: ['Technical devices', 'Recording equipment', 'Specialized tools'],
417
- personal: ['Concealed gear', 'Emergency kit', 'Extraction devices']
418
- },
419
- procedures: {
420
- insertion: 'Low-profile arrival using cover identity',
421
- operation: 'Discreet activities with natural cover',
422
- extraction: 'Pre-planned routes with multiple options',
423
- emergency: 'Designated safe locations and contacts'
424
- }
425
- },
426
- securityMeasures: {
427
- cover: 'Plausible business or tourist identity',
428
- communication: 'Scheduled encrypted check-ins',
429
- surveillance: 'Counter-surveillance procedures',
430
- contingency: 'Multiple extraction and safe house options'
431
- },
432
- riskAssessment: {
433
- local: {
434
- threatLevel: 'Medium',
435
- securityForces: 'Active but predictable',
436
- population: 'Generally cooperative but observant'
437
- },
438
- operational: {
439
- detectionRisk: 'Low with proper procedures',
440
- compromiseRisk: 'Medium during active operations',
441
- extractionRisk: 'Low with multiple options'
442
- },
443
- environmental: {
444
- weather: 'Favorable operational conditions',
445
- infrastructure: 'Adequate for operational needs',
446
- communications: 'Reliable with backup options'
447
- }
448
- }
449
- };
450
- return JSON.stringify({
451
- success: true,
452
- fieldPlan,
453
- operationalGuidance: 'Maintain cover identity and operational security at all times',
454
- warning: 'Field operations plan created - requires field operator training and experience'
455
- }, null, 2);
456
- }
457
- };
458
- }
459
- /**
460
- * Surveillance tool
461
- */
462
- function createSurveillanceTool(options) {
463
- return {
464
- name: 'conduct_surveillance_
465
- };
466
- }
467
- //# sourceMappingURL=operationalTools.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationalTools.js","sourceRoot":"","sources":["../../src/core/operationalTools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,UAAkB,EAClB,UAAmC,EAAE;IAErC,MAAM,KAAK,GAAqB,EAAE,CAAC;IAEnC,yBAAyB;IACzB,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,KAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,KAAK,CAAC,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC,CAAC;IAElD,yBAAyB;IACzB,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;IAC5C,KAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,CAAC;IAEnD,6BAA6B;IAC7B,KAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,C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+0,0 @@
1
- /**
2
- * Offensive Operations Core Engine
3
- *
4
- * Comprehensive framework for real offensive operations including:
5
- * - Advanced reconnaissance capabilities
6
- * - Persistence mechanisms
7
- * - Lateral movement
8
- * - Data exfiltration
9
- * - Command and control
10
- * - RL/AlphaZero integration for adaptive operations
11
- */
12
- export interface OffensiveOperation {
13
- id: string;
14
- name: string;
15
- target: TargetSpecification;
16
- objectives: OperationObjective[];
17
- phases: OperationPhase[];
18
- status: 'planning' | 'active' | 'paused' | 'completed' | 'failed';
19
- stealthLevel: 'low' | 'medium' | 'high' | 'maximum';
20
- riskTolerance: 'low' | 'medium' | 'high';
21
- }
22
- export interface TargetSpecification {
23
- type: 'company' | 'government' | 'infrastructure' | 'individual';
24
- scope: 'single-system' | 'network' | 'organization' | 'country';
25
- identifiers: {
26
- domains?: string[];
27
- ipRanges?: string[];
28
- asns?: string[];
29
- geolocation?: string[];
30
- };
31
- constraints: {
32
- timeWindows?: string[];
33
- legalConsiderations?: string[];
34
- resourceLimits?: string[];
35
- };
36
- }
37
- export interface OperationObjective {
38
- id: string;
39
- description: string;
40
- priority: 'critical' | 'high' | 'medium' | 'low';
41
- successCriteria: string[];
42
- metrics: ObjectiveMetric[];
43
- }
44
- export interface ObjectiveMetric {
45
- name: string;
46
- target: number;
47
- current: number;
48
- unit: string;
49
- }
50
- export interface OperationPhase {
51
- id: string;
52
- name: string;
53
- techniques: OffensiveTechnique[];
54
- dependencies: string[];
55
- estimatedDuration: string;
56
- successProbability: number;
57
- }
58
- export interface OffensiveTechnique {
59
- id: string;
60
- mitreId: string;
61
- name: string;
62
- implementation: TechniqueImplementation;
63
- detectionVectors: DetectionVector[];
64
- countermeasures: Countermeasure[];
65
- resourceRequirements: ResourceRequirement[];
66
- }
67
- export interface TechniqueImplementation {
68
- automated: boolean;
69
- manualSteps?: string[];
70
- tools: string[];
71
- prerequisites: string[];
72
- executionTime: string;
73
- }
74
- export interface DetectionVector {
75
- type: 'network' | 'endpoint' | 'log' | 'behavioral';
76
- description: string;
77
- confidence: 'low' | 'medium' | 'high';
78
- mitigation: string;
79
- }
80
- export interface Countermeasure {
81
- type: 'preventative' | 'detective' | 'responsive';
82
- description: string;
83
- effectiveness: number;
84
- }
85
- export interface ResourceRequirement {
86
- type: 'compute' | 'network' | 'storage' | 'human';
87
- description: string;
88
- quantity: number;
89
- }
90
- /**
91
- * RL/AlphaZero Adaptive Operations Framework
92
- */
93
- export interface AdaptiveOperationState {
94
- currentPhase: string;
95
- techniquesDeployed: string[];
96
- successMetrics: Record<string, number>;
97
- riskLevel: number;
98
- stealthLevel: number;
99
- resourceUtilization: number;
100
- detectionEvents: DetectionEvent[];
101
- }
102
- export interface DetectionEvent {
103
- timestamp: Date;
104
- techniqueId: string;
105
- detectionType: string;
106
- confidence: number;
107
- impact: 'low' | 'medium' | 'high' | 'critical';
108
- }
109
- export interface OperationReward {
110
- objectiveProgress: number;
111
- stealthMaintained: number;
112
- resourceEfficiency: number;
113
- timeEfficiency: number;
114
- overall: number;
115
- }
116
- /**
117
- * Core Offensive Engine
118
- */
119
- export declare class OffensiveEngine {
120
- private operations;
121
- private adaptiveStates;
122
- private techniqueRegistry;
123
- constructor();
124
- /**
125
- * Initialize core offensive techniques
126
- */
127
- private initializeCoreTechniques;
128
- /**
129
- * Register offensive technique
130
- */
131
- registerTechnique(technique: OffensiveTechnique): void;
132
- /**
133
- * Create new offensive operation
134
- */
135
- createOperation(spec: {
136
- name: string;
137
- target: TargetSpecification;
138
- objectives: OperationObjective[];
139
- stealthLevel: 'low' | 'medium' | 'high' | 'maximum';
140
- riskTolerance: 'low' | 'medium' | 'high';
141
- }): OffensiveOperation;
142
- /**
143
- * Plan operation phases using RL/AlphaZero approach
144
- */
145
- planOperation(operationId: string): OperationPhase[];
146
- /**
147
- * Select techniques for operation phase using adaptive algorithm
148
- */
149
- private selectTechniquesForPhase;
150
- /**
151
- * Apply RL/AlphaZero adaptive technique selection
152
- */
153
- private applyAdaptiveSelection;
154
- /**
155
- * Calculate technique score using adaptive algorithm
156
- */
157
- private calculateTechniqueScore;
158
- /**
159
- * Execute offensive operation phase
160
- */
161
- executePhase(operationId: string, phaseId: string): Promise<void>;
162
- /**
163
- * Execute individual technique
164
- */
165
- private executeTechnique;
166
- /**
167
- * Calculate operation reward for RL training
168
- */
169
- private calculateOperationReward;
170
- }
171
- //# sourceMappingURL=offensive-engine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"offensive-engine.d.ts","sourceRoot":"","sources":["../../../src/offensive/core/offensive-engine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,mBAAmB,CAAC;IAC5B,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,MAAM,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC;IAClE,YAAY,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACpD,aAAa,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC1C;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,SAAS,GAAG,YAAY,GAAG,gBAAgB,GAAG,YAAY,CAAC;IACjE,KAAK,EAAE,eAAe,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,CAAC;IAChE,WAAW,EAAE;QACX,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;IACF,WAAW,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;QA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