deepseek-coder-agent-cli 1.0.13 → 1.0.15

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 (240) hide show
  1. package/dist/capabilities/index.d.ts +1 -18
  2. package/dist/capabilities/index.d.ts.map +1 -1
  3. package/dist/capabilities/index.js +2 -19
  4. package/dist/capabilities/index.js.map +1 -1
  5. package/dist/core/agiCore.d.ts.map +1 -1
  6. package/dist/core/agiCore.js +3 -6
  7. package/dist/core/agiCore.js.map +1 -1
  8. package/dist/core/dynamicGuardrails.d.ts.map +1 -1
  9. package/dist/core/dynamicGuardrails.js +0 -60
  10. package/dist/core/dynamicGuardrails.js.map +1 -1
  11. package/dist/core/gitWorktreeManager.d.ts +1 -1
  12. package/dist/core/gitWorktreeManager.d.ts.map +1 -1
  13. package/dist/core/gitWorktreeManager.js.map +1 -1
  14. package/dist/core/hotReload.js.map +1 -1
  15. package/dist/core/index.d.ts +0 -8
  16. package/dist/core/index.d.ts.map +1 -1
  17. package/dist/core/index.js +1 -15
  18. package/dist/core/index.js.map +1 -1
  19. package/dist/core/selfUpgrade.d.ts +34 -208
  20. package/dist/core/selfUpgrade.d.ts.map +1 -1
  21. package/dist/core/selfUpgrade.js +54 -631
  22. package/dist/core/selfUpgrade.js.map +1 -1
  23. package/dist/headless/interactiveShell.d.ts.map +1 -1
  24. package/dist/headless/interactiveShell.js +10 -71
  25. package/dist/headless/interactiveShell.js.map +1 -1
  26. package/dist/orchestration/index.d.ts +9 -5
  27. package/dist/orchestration/index.d.ts.map +1 -1
  28. package/dist/orchestration/index.js +7 -8
  29. package/dist/orchestration/index.js.map +1 -1
  30. package/dist/plugins/index.d.ts +1 -1
  31. package/dist/plugins/index.d.ts.map +1 -1
  32. package/dist/plugins/index.js +1 -2
  33. package/dist/plugins/index.js.map +1 -1
  34. package/dist/plugins/tools/nodeDefaults.d.ts +0 -2
  35. package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -1
  36. package/dist/plugins/tools/nodeDefaults.js +0 -6
  37. package/dist/plugins/tools/nodeDefaults.js.map +1 -1
  38. package/dist/tools/diffUtils.d.ts.map +1 -1
  39. package/dist/tools/diffUtils.js +0 -14
  40. package/dist/tools/diffUtils.js.map +1 -1
  41. package/dist/tools/editTools.d.ts.map +1 -1
  42. package/dist/tools/editTools.js +20 -168
  43. package/dist/tools/editTools.js.map +1 -1
  44. package/dist/tools/fileTools.d.ts.map +1 -1
  45. package/dist/tools/fileTools.js +1 -10
  46. package/dist/tools/fileTools.js.map +1 -1
  47. package/dist/tools/grepTools.d.ts.map +1 -1
  48. package/dist/tools/grepTools.js +1 -2
  49. package/dist/tools/grepTools.js.map +1 -1
  50. package/dist/tools/searchTools.d.ts.map +1 -1
  51. package/dist/tools/searchTools.js +0 -7
  52. package/dist/tools/searchTools.js.map +1 -1
  53. package/dist/tools/telemetryTools.d.ts +5 -0
  54. package/dist/tools/telemetryTools.d.ts.map +1 -1
  55. package/dist/tools/telemetryTools.js +6 -6
  56. package/dist/tools/telemetryTools.js.map +1 -1
  57. package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -1
  58. package/dist/ui/UnifiedUIRenderer.js +7 -25
  59. package/dist/ui/UnifiedUIRenderer.js.map +1 -1
  60. package/package.json +1 -2
  61. package/dist/capabilities/appleSecurityCapability.d.ts +0 -57
  62. package/dist/capabilities/appleSecurityCapability.d.ts.map +0 -1
  63. package/dist/capabilities/appleSecurityCapability.js +0 -197
  64. package/dist/capabilities/appleSecurityCapability.js.map +0 -1
  65. package/dist/capabilities/authorizedSecurityCapability.d.ts +0 -17
  66. package/dist/capabilities/authorizedSecurityCapability.d.ts.map +0 -1
  67. package/dist/capabilities/authorizedSecurityCapability.js +0 -333
  68. package/dist/capabilities/authorizedSecurityCapability.js.map +0 -1
  69. package/dist/capabilities/autoEnhancementCapability.d.ts +0 -98
  70. package/dist/capabilities/autoEnhancementCapability.d.ts.map +0 -1
  71. package/dist/capabilities/autoEnhancementCapability.js +0 -455
  72. package/dist/capabilities/autoEnhancementCapability.js.map +0 -1
  73. package/dist/capabilities/biocognitiveWarfare.d.ts +0 -136
  74. package/dist/capabilities/biocognitiveWarfare.d.ts.map +0 -1
  75. package/dist/capabilities/biocognitiveWarfare.js +0 -603
  76. package/dist/capabilities/biocognitiveWarfare.js.map +0 -1
  77. package/dist/capabilities/chineseCnoIntegration.d.ts +0 -60
  78. package/dist/capabilities/chineseCnoIntegration.d.ts.map +0 -1
  79. package/dist/capabilities/chineseCnoIntegration.js +0 -253
  80. package/dist/capabilities/chineseCnoIntegration.js.map +0 -1
  81. package/dist/capabilities/cnoCapability.d.ts +0 -110
  82. package/dist/capabilities/cnoCapability.d.ts.map +0 -1
  83. package/dist/capabilities/cnoCapability.js +0 -785
  84. package/dist/capabilities/cnoCapability.js.map +0 -1
  85. package/dist/capabilities/eliteCryptoMilitaryCapability.d.ts +0 -99
  86. package/dist/capabilities/eliteCryptoMilitaryCapability.d.ts.map +0 -1
  87. package/dist/capabilities/eliteCryptoMilitaryCapability.js +0 -618
  88. package/dist/capabilities/eliteCryptoMilitaryCapability.js.map +0 -1
  89. package/dist/capabilities/integratedUnifiedCapability.d.ts +0 -105
  90. package/dist/capabilities/integratedUnifiedCapability.d.ts.map +0 -1
  91. package/dist/capabilities/integratedUnifiedCapability.js +0 -422
  92. package/dist/capabilities/integratedUnifiedCapability.js.map +0 -1
  93. package/dist/capabilities/maxOffensiveUkraineCapability.d.ts +0 -46
  94. package/dist/capabilities/maxOffensiveUkraineCapability.d.ts.map +0 -1
  95. package/dist/capabilities/maxOffensiveUkraineCapability.js +0 -725
  96. package/dist/capabilities/maxOffensiveUkraineCapability.js.map +0 -1
  97. package/dist/capabilities/migrationUtilities.d.ts +0 -128
  98. package/dist/capabilities/migrationUtilities.d.ts.map +0 -1
  99. package/dist/capabilities/migrationUtilities.js +0 -658
  100. package/dist/capabilities/migrationUtilities.js.map +0 -1
  101. package/dist/capabilities/offensiveDestructionCapability.d.ts +0 -98
  102. package/dist/capabilities/offensiveDestructionCapability.d.ts.map +0 -1
  103. package/dist/capabilities/offensiveDestructionCapability.js +0 -848
  104. package/dist/capabilities/offensiveDestructionCapability.js.map +0 -1
  105. package/dist/capabilities/quantumSpaceWarfare.d.ts +0 -108
  106. package/dist/capabilities/quantumSpaceWarfare.d.ts.map +0 -1
  107. package/dist/capabilities/quantumSpaceWarfare.js +0 -342
  108. package/dist/capabilities/quantumSpaceWarfare.js.map +0 -1
  109. package/dist/capabilities/readmeIntegration.d.ts +0 -161
  110. package/dist/capabilities/readmeIntegration.d.ts.map +0 -1
  111. package/dist/capabilities/readmeIntegration.js +0 -1034
  112. package/dist/capabilities/readmeIntegration.js.map +0 -1
  113. package/dist/capabilities/selfUpdateSystem.d.ts +0 -122
  114. package/dist/capabilities/selfUpdateSystem.d.ts.map +0 -1
  115. package/dist/capabilities/selfUpdateSystem.js +0 -725
  116. package/dist/capabilities/selfUpdateSystem.js.map +0 -1
  117. package/dist/capabilities/sharedMilitaryInfrastructure.d.ts +0 -89
  118. package/dist/capabilities/sharedMilitaryInfrastructure.d.ts.map +0 -1
  119. package/dist/capabilities/sharedMilitaryInfrastructure.js +0 -233
  120. package/dist/capabilities/sharedMilitaryInfrastructure.js.map +0 -1
  121. package/dist/capabilities/simpleSecurityCapability.d.ts +0 -36
  122. package/dist/capabilities/simpleSecurityCapability.d.ts.map +0 -1
  123. package/dist/capabilities/simpleSecurityCapability.js +0 -271
  124. package/dist/capabilities/simpleSecurityCapability.js.map +0 -1
  125. package/dist/capabilities/ultimateChineseCno.d.ts +0 -115
  126. package/dist/capabilities/ultimateChineseCno.d.ts.map +0 -1
  127. package/dist/capabilities/ultimateChineseCno.js +0 -516
  128. package/dist/capabilities/ultimateChineseCno.js.map +0 -1
  129. package/dist/capabilities/ultimateIntegrationDemo.d.ts +0 -54
  130. package/dist/capabilities/ultimateIntegrationDemo.d.ts.map +0 -1
  131. package/dist/capabilities/ultimateIntegrationDemo.js +0 -423
  132. package/dist/capabilities/ultimateIntegrationDemo.js.map +0 -1
  133. package/dist/capabilities/unifiedMilitaryCapability.d.ts +0 -63
  134. package/dist/capabilities/unifiedMilitaryCapability.d.ts.map +0 -1
  135. package/dist/capabilities/unifiedMilitaryCapability.js +0 -384
  136. package/dist/capabilities/unifiedMilitaryCapability.js.map +0 -1
  137. package/dist/capabilities/universalCapabilityFramework.d.ts +0 -352
  138. package/dist/capabilities/universalCapabilityFramework.d.ts.map +0 -1
  139. package/dist/capabilities/universalCapabilityFramework.js +0 -1056
  140. package/dist/capabilities/universalCapabilityFramework.js.map +0 -1
  141. package/dist/capabilities/universalSecurityCapability.d.ts +0 -46
  142. package/dist/capabilities/universalSecurityCapability.d.ts.map +0 -1
  143. package/dist/capabilities/universalSecurityCapability.js +0 -580
  144. package/dist/capabilities/universalSecurityCapability.js.map +0 -1
  145. package/dist/capabilities/zeroDayDiscoveryCapability.d.ts +0 -31
  146. package/dist/capabilities/zeroDayDiscoveryCapability.d.ts.map +0 -1
  147. package/dist/capabilities/zeroDayDiscoveryCapability.js +0 -183
  148. package/dist/capabilities/zeroDayDiscoveryCapability.js.map +0 -1
  149. package/dist/core/antiTermination.d.ts +0 -226
  150. package/dist/core/antiTermination.d.ts.map +0 -1
  151. package/dist/core/antiTermination.js +0 -713
  152. package/dist/core/antiTermination.js.map +0 -1
  153. package/dist/core/appleSecurityAudit.d.ts +0 -98
  154. package/dist/core/appleSecurityAudit.d.ts.map +0 -1
  155. package/dist/core/appleSecurityAudit.js +0 -505
  156. package/dist/core/appleSecurityAudit.js.map +0 -1
  157. package/dist/core/appleSecurityIntegration.d.ts +0 -130
  158. package/dist/core/appleSecurityIntegration.d.ts.map +0 -1
  159. package/dist/core/appleSecurityIntegration.js +0 -697
  160. package/dist/core/appleSecurityIntegration.js.map +0 -1
  161. package/dist/core/dualTournament.d.ts +0 -110
  162. package/dist/core/dualTournament.d.ts.map +0 -1
  163. package/dist/core/dualTournament.js +0 -270
  164. package/dist/core/dualTournament.js.map +0 -1
  165. package/dist/core/parallel.d.ts +0 -85
  166. package/dist/core/parallel.d.ts.map +0 -1
  167. package/dist/core/parallel.js +0 -150
  168. package/dist/core/parallel.js.map +0 -1
  169. package/dist/core/parallelCoordinator.d.ts +0 -21
  170. package/dist/core/parallelCoordinator.d.ts.map +0 -1
  171. package/dist/core/parallelCoordinator.js +0 -42
  172. package/dist/core/parallelCoordinator.js.map +0 -1
  173. package/dist/core/realityScore.d.ts +0 -159
  174. package/dist/core/realityScore.d.ts.map +0 -1
  175. package/dist/core/realityScore.js +0 -734
  176. package/dist/core/realityScore.js.map +0 -1
  177. package/dist/core/repoUpgradeOrchestrator.d.ts +0 -223
  178. package/dist/core/repoUpgradeOrchestrator.d.ts.map +0 -1
  179. package/dist/core/repoUpgradeOrchestrator.js +0 -1003
  180. package/dist/core/repoUpgradeOrchestrator.js.map +0 -1
  181. package/dist/core/securityTournament.d.ts +0 -83
  182. package/dist/core/securityTournament.d.ts.map +0 -1
  183. package/dist/core/securityTournament.js +0 -357
  184. package/dist/core/securityTournament.js.map +0 -1
  185. package/dist/core/tournamentStrategy.d.ts +0 -12
  186. package/dist/core/tournamentStrategy.d.ts.map +0 -1
  187. package/dist/core/tournamentStrategy.js +0 -41
  188. package/dist/core/tournamentStrategy.js.map +0 -1
  189. package/dist/core/universalSecurityAudit.d.ts +0 -104
  190. package/dist/core/universalSecurityAudit.d.ts.map +0 -1
  191. package/dist/core/universalSecurityAudit.js +0 -2190
  192. package/dist/core/universalSecurityAudit.js.map +0 -1
  193. package/dist/core/variantExecution.d.ts +0 -23
  194. package/dist/core/variantExecution.d.ts.map +0 -1
  195. package/dist/core/variantExecution.js +0 -58
  196. package/dist/core/variantExecution.js.map +0 -1
  197. package/dist/core/winnerStrategy.d.ts +0 -15
  198. package/dist/core/winnerStrategy.d.ts.map +0 -1
  199. package/dist/core/winnerStrategy.js +0 -18
  200. package/dist/core/winnerStrategy.js.map +0 -1
  201. package/dist/core/zeroDayDiscovery.d.ts +0 -96
  202. package/dist/core/zeroDayDiscovery.d.ts.map +0 -1
  203. package/dist/core/zeroDayDiscovery.js +0 -358
  204. package/dist/core/zeroDayDiscovery.js.map +0 -1
  205. package/dist/orchestration/repoUpgradeRunner.d.ts +0 -44
  206. package/dist/orchestration/repoUpgradeRunner.d.ts.map +0 -1
  207. package/dist/orchestration/repoUpgradeRunner.js +0 -375
  208. package/dist/orchestration/repoUpgradeRunner.js.map +0 -1
  209. package/dist/orchestration/securityAuditRunner.d.ts +0 -144
  210. package/dist/orchestration/securityAuditRunner.d.ts.map +0 -1
  211. package/dist/orchestration/securityAuditRunner.js +0 -526
  212. package/dist/orchestration/securityAuditRunner.js.map +0 -1
  213. package/dist/plugins/tools/apple/secureApplePlugin.d.ts +0 -3
  214. package/dist/plugins/tools/apple/secureApplePlugin.d.ts.map +0 -1
  215. package/dist/plugins/tools/apple/secureApplePlugin.js +0 -26
  216. package/dist/plugins/tools/apple/secureApplePlugin.js.map +0 -1
  217. package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.d.ts +0 -3
  218. package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.d.ts.map +0 -1
  219. package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.js +0 -9
  220. package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.js.map +0 -1
  221. package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts +0 -3
  222. package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts.map +0 -1
  223. package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js +0 -27
  224. package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js.map +0 -1
  225. package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.d.ts +0 -3
  226. package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.d.ts.map +0 -1
  227. package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.js +0 -9
  228. package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.js.map +0 -1
  229. package/dist/plugins/tools/tao/secureTaoPlugin.d.ts +0 -3
  230. package/dist/plugins/tools/tao/secureTaoPlugin.d.ts.map +0 -1
  231. package/dist/plugins/tools/tao/secureTaoPlugin.js +0 -37
  232. package/dist/plugins/tools/tao/secureTaoPlugin.js.map +0 -1
  233. package/dist/tools/secureAppleExploitation.d.ts +0 -29
  234. package/dist/tools/secureAppleExploitation.d.ts.map +0 -1
  235. package/dist/tools/secureAppleExploitation.js +0 -518
  236. package/dist/tools/secureAppleExploitation.js.map +0 -1
  237. package/dist/ui/maxOffensiveUkraineUI.d.ts +0 -94
  238. package/dist/ui/maxOffensiveUkraineUI.d.ts.map +0 -1
  239. package/dist/ui/maxOffensiveUkraineUI.js +0 -316
  240. package/dist/ui/maxOffensiveUkraineUI.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"bidirectionalAuditPlugin.js","sourceRoot":"","sources":["../../../../src/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.ts"],"names":[],"mappings":"AAIA,MAAM,wBAAwB;IAC5B,EAAE,GAAG,0BAA0B,CAAC;IAChC,WAAW,GAAG,4CAA4C,CAAC;IAE3D,KAAK,CAAC,MAAM;QACV,MAAM,KAAK,GAAqB;YAC9B;gBACE,IAAI,EAAE,oBAAoB;gBAC1B,WAAW,EAAE,+CAA+C;gBAC5D,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,sBAAsB;aAC5C;SACF,CAAC;QAEF,MAAM,SAAS,GAAc;YAC3B,EAAE,EAAE,2BAA2B;YAC/B,WAAW,EAAE,eAAe;YAC5B,KAAK;SACN,CAAC;QAEF,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,CAAC;IACnE,CAAC;CACF;AAED,MAAM,UAAU,kCAAkC;IAChD,OAAO;QACL,EAAE,EAAE,0BAA0B;QAC9B,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,wBAAwB,EAAE;KAC7C,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { ToolPlugin } from '../registry.js';
2
- export declare function createOffensiveDestructionToolPlugin(): ToolPlugin;
3
- //# sourceMappingURL=offensiveDestructionPlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"offensiveDestructionPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,wBAAgB,oCAAoC,IAAI,UAAU,CAMjE"}
@@ -1,9 +0,0 @@
1
- import { OffensiveDestructionCapabilityModule } from '../../../capabilities/offensiveDestructionCapability.js';
2
- export function createOffensiveDestructionToolPlugin() {
3
- return {
4
- id: 'tool.offensive-destruction',
5
- targets: ['node', 'cloud'],
6
- create: () => new OffensiveDestructionCapabilityModule(),
7
- };
8
- }
9
- //# sourceMappingURL=offensiveDestructionPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"offensiveDestructionPlugin.js","sourceRoot":"","sources":["../../../../src/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAG/G,MAAM,UAAU,oCAAoC;IAClD,OAAO;QACL,EAAE,EAAE,4BAA4B;QAChC,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;QAC1B,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,oCAAoC,EAAE;KACzD,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { ToolPlugin } from '../registry.js';
2
- export declare function createSecureTaoToolPlugin(): ToolPlugin;
3
- //# sourceMappingURL=secureTaoPlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"secureTaoPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tools/tao/secureTaoPlugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAqCjD,wBAAgB,yBAAyB,IAAI,UAAU,CAMtD"}
@@ -1,37 +0,0 @@
1
- // Max Offensive Ukraine Tools Replacement
2
- import { MaxOffensiveUkraineCapabilityModule } from '../../../capabilities/maxOffensiveUkraineCapability.js';
3
- class MaxOffensiveUkraineCapabilityModuleReplacement {
4
- id = 'tool.max-offensive-ukraine';
5
- description = 'MAX OFFENSIVE UKRAINE tooling suite - Ukraine targeting with reusable source';
6
- async create() {
7
- const module = new MaxOffensiveUkraineCapabilityModule({
8
- enableMaximumOffensive: true,
9
- enableUkraineTargeting: true,
10
- enableReusableSource: true,
11
- enableLegacyRemoval: true,
12
- enableUIIntegration: true,
13
- defaultAuthorization: 'full',
14
- emergencyOverride: true
15
- });
16
- const contribution = await module.create({});
17
- const contributionObj = Array.isArray(contribution) ? contribution[0] : contribution;
18
- const toolSuite = {
19
- id: 'max.offensive.ukraine.tools',
20
- description: 'Maximum offensive Ukraine targeting with reusable source generation',
21
- tools: contributionObj?.toolSuite?.tools || [],
22
- };
23
- return {
24
- id: this.id,
25
- description: this.description,
26
- toolSuite,
27
- };
28
- }
29
- }
30
- export function createSecureTaoToolPlugin() {
31
- return {
32
- id: 'tool.max-offensive-ukraine',
33
- targets: ['universal'],
34
- create: () => new MaxOffensiveUkraineCapabilityModuleReplacement(),
35
- };
36
- }
37
- //# sourceMappingURL=secureTaoPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"secureTaoPlugin.js","sourceRoot":"","sources":["../../../../src/plugins/tools/tao/secureTaoPlugin.ts"],"names":[],"mappings":"AAKA,0CAA0C;AAC1C,OAAO,EAAE,mCAAmC,EAAE,MAAM,wDAAwD,CAAC;AAE7G,MAAM,8CAA8C;IAClD,EAAE,GAAG,4BAA4B,CAAC;IAClC,WAAW,GAAG,8EAA8E,CAAC;IAE7F,KAAK,CAAC,MAAM;QACV,MAAM,MAAM,GAAG,IAAI,mCAAmC,CAAC;YACrD,sBAAsB,EAAE,IAAI;YAC5B,sBAAsB,EAAE,IAAI;YAC5B,oBAAoB,EAAE,IAAI;YAC1B,mBAAmB,EAAE,IAAI;YACzB,mBAAmB,EAAE,IAAI;YACzB,oBAAoB,EAAE,MAAM;YAC5B,iBAAiB,EAAE,IAAI;SACxB,CAAC,CAAC;QAEH,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,EAAS,CAAC,CAAC;QACpD,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;QAErF,MAAM,SAAS,GAAc;YAC3B,EAAE,EAAE,6BAA6B;YACjC,WAAW,EAAE,qEAAqE;YAClF,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,IAAI,EAAE;SAC/C,CAAC;QAEF,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,SAAS;SACV,CAAC;IACJ,CAAC;CACF;AAED,MAAM,UAAU,yBAAyB;IACvC,OAAO;QACL,EAAE,EAAE,4BAA4B;QAChC,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,8CAA8C,EAAE;KACnE,CAAC;AACJ,CAAC"}
@@ -1,29 +0,0 @@
1
- /**
2
- * ENHANCED SECURE APPLE EXPLOITATION FRAMEWORK
3
- * Complete Apple Security Assessment & Exploitation Suite v3.0.0
4
- * Enterprise-grade security auditing, vulnerability assessment, and exploitation
5
- * for Apple services, products, and infrastructure with full AGI Core integration
6
- */
7
- import type { ToolDefinition } from '../core/toolRuntime.js';
8
- export declare class AppleSecurityUtils {
9
- static sanitizeAppleInput(input: string): string;
10
- static validateAppleService(service: string): boolean;
11
- static validateAppleDeviceId(deviceId: string): boolean;
12
- static validateAppleEmail(email: string): boolean;
13
- }
14
- export declare function discoverAppleServices(domain?: string): Promise<Array<{
15
- service: string;
16
- category: string;
17
- risk: string;
18
- }>>;
19
- export declare function assessAppleVulnerabilities(target: string): Array<{
20
- vulnerability: any;
21
- applicability: string;
22
- confidence: string;
23
- remediation: string;
24
- }>;
25
- export declare function createSecureAppleExploitationTools(): {
26
- id: string;
27
- tools: ToolDefinition<Record<string, unknown>>[];
28
- };
29
- //# sourceMappingURL=secureAppleExploitation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"secureAppleExploitation.d.ts","sourceRoot":"","sources":["../../src/tools/secureAppleExploitation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAY7D,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAwBhD,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAUrD,MAAM,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAQvD,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAKlD;AAiMD,wBAAsB,qBAAqB,CAAC,MAAM,SAAc,GAAG,OAAO,CAAC,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAAC,CAAC,CA6CnI;AAwBD,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC;IAChE,aAAa,EAAE,GAAG,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAC,CA+CD;AAID,wBAAgB,kCAAkC;;;EAoMjD"}
@@ -1,518 +0,0 @@
1
- /**
2
- * ENHANCED SECURE APPLE EXPLOITATION FRAMEWORK
3
- * Complete Apple Security Assessment & Exploitation Suite v3.0.0
4
- * Enterprise-grade security auditing, vulnerability assessment, and exploitation
5
- * for Apple services, products, and infrastructure with full AGI Core integration
6
- */
7
- import { secureSpawn, validateTarget as secureValidateTarget } from '../core/errors/safetyValidator.js';
8
- import { writeFileSync, mkdtempSync } from 'node:fs';
9
- import { join } from 'node:path';
10
- import { tmpdir } from 'node:os';
11
- // Enhanced security utilities for Apple-specific validation
12
- export class AppleSecurityUtils {
13
- static sanitizeAppleInput(input) {
14
- if (!input)
15
- return '';
16
- // Remove shell metacharacters specific to Apple contexts
17
- const sanitized = input
18
- .replace(/[;&|`$(){}[\]<>!]/g, '')
19
- .replace(/\n/g, '')
20
- .replace(/\r/g, '')
21
- .trim();
22
- // Validate length for Apple-specific contexts
23
- if (sanitized.length > 255) {
24
- throw new Error('Apple input too long (max 255 characters)');
25
- }
26
- // Enhanced Apple-specific pattern validation
27
- const applePattern = /^[a-zA-Z0-9.:\/\-_@. ()#]+$/;
28
- if (!applePattern.test(sanitized)) {
29
- throw new Error('Input contains invalid characters for Apple context');
30
- }
31
- return sanitized;
32
- }
33
- static validateAppleService(service) {
34
- const sanitized = this.sanitizeAppleInput(service);
35
- // Enhanced Apple service pattern validation
36
- const appleServicePattern = /^[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)*\.apple\.com$/;
37
- const appleSubdomainPattern = /^[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?\.apple\.com$/;
38
- return appleServicePattern.test(sanitized) || appleSubdomainPattern.test(sanitized);
39
- }
40
- static validateAppleDeviceId(deviceId) {
41
- // iOS/macOS device ID patterns
42
- const iosDevicePattern = /^[A-F0-9]{8}-[A-F0-9]{16}$/;
43
- const macSerialPattern = /^[A-Z0-9]{11,12}$/;
44
- return iosDevicePattern.test(deviceId) || macSerialPattern.test(deviceId);
45
- }
46
- static validateAppleEmail(email) {
47
- // Apple email patterns
48
- const appleEmailPattern = /^[a-zA-Z0-9._%+-]+@(icloud\.com|me\.com|mac\.com|apple\.com)$/;
49
- return appleEmailPattern.test(email);
50
- }
51
- }
52
- // Enhanced Apple Ecosystem Constants
53
- const APPLE_SERVICE_CATEGORIES = {
54
- CLOUD: ['iCloud', 'Apple ID', 'APNS', 'iCloud Drive', 'iCloud Photos', 'iCloud Backup', 'Find My'],
55
- DEVELOPER: ['App Store Connect', 'TestFlight', 'Developer Portal', 'Xcode Cloud', 'App Store Review', 'Code Signing'],
56
- ENTERPRISE: ['MDM', 'VPP', 'Apple Business Manager', 'Apple School Manager', 'Apple Configurator'],
57
- SECURITY: ['Gatekeeper', 'SIP', 'FileVault', 'Secure Enclave', 'Touch ID/Face ID', 'Apple Neural Engine'],
58
- NETWORK: ['AirDrop', 'AirPlay', 'AWDL', 'Bonjour', 'Apple Wireless Services', 'Captive Portal'],
59
- MEDIA: ['Apple Music', 'Apple TV+', 'Apple Arcade', 'Apple Podcasts', 'Apple Books', 'Apple News+']
60
- };
61
- // Comprehensive Apple Services Database
62
- const APPLE_SERVICES = {
63
- // Cloud & Identity Services (15+ services)
64
- cloud: [
65
- 'appleid.apple.com', 'idmsa.apple.com', 'identity.apple.com', 'iforgot.apple.com',
66
- 'gsa.apple.com', 'apple-cloudkit.com', 'icloud.com', 'icloud-content.com',
67
- 'push.apple.com', 'api.push.apple.com', 'feedback.push.apple.com',
68
- 'developer.apple.com', 'appstoreconnect.apple.com', 'testflight.apple.com',
69
- 'appstore.com'
70
- ],
71
- // Developer Platform (12+ services)
72
- developer: [
73
- 'developer.apple.com', 'appstoreconnect.apple.com', 'testflight.apple.com',
74
- 'download.developer.apple.com', 'devimages-cdn.apple.com',
75
- 'developer.apple.com/services-account', 'developer.apple.com/account',
76
- 'developer.apple.com/membercenter', 'developer.apple.com/programs',
77
- 'xcode.apple.com', 'swift.org', 'cocoapods.org'
78
- ],
79
- // Media & Content Services (20+ services)
80
- media: [
81
- 'apps.apple.com', 'books.apple.com', 'music.apple.com', 'tv.apple.com',
82
- 'podcasts.apple.com', 'news.apple.com', 'fitness.apple.com', 'arcade.apple.com',
83
- 'support.apple.com', 'getsupport.apple.com', 'www.apple.com',
84
- 'store.apple.com', 'secure.store.apple.com', 'checkout.apple.com'
85
- ],
86
- // System & Update Services (10+ services)
87
- system: [
88
- 'mesu.apple.com', 'swscan.apple.com', 'swcdn.apple.com', 'swdist.apple.com',
89
- 'gdmf.apple.com', 'configuration.apple.com', 'captive.apple.com',
90
- 'albert.apple.com', 'tbsc.apple.com', 'time.apple.com', 'ntp.apple.com'
91
- ],
92
- // Enterprise & Education Services (15+ services)
93
- enterprise: [
94
- 'business.apple.com', 'school.apple.com', 'vpp.apple.com',
95
- 'apple.com/business', 'apple.com/education', 'volume.itunes.apple.com',
96
- 'iprofiles.apple.com', 'mdm.apple.com', 'deviceenrollment.apple.com',
97
- 'devicemanagement.apple.com', 'appconfig.apple.com'
98
- ],
99
- // Security & Privacy Services (8+ services)
100
- security: [
101
- 'privacy.apple.com', 'apple.com/privacy', 'apple.com/security',
102
- 'reportaproblem.apple.com', 'bugreport.apple.com', 'feedbackassistant.apple.com'
103
- ]
104
- };
105
- // Enhanced Apple Vulnerability Database (2024-2025 Critical CVEs)
106
- const APPLE_VULNERABILITIES = [
107
- {
108
- id: 'CVE-2024-23296',
109
- name: 'IOMobileFrameBuffer Kernel Memory Corruption',
110
- severity: 'critical',
111
- affected: ['iOS 17.0-17.2', 'iPadOS 17.0-17.2'],
112
- exploitation: 'Arbitrary code execution with kernel privileges',
113
- cvss: 9.8,
114
- remediation: 'Update to iOS/iPadOS 17.2.1 or later'
115
- },
116
- {
117
- id: 'CVE-2024-23222',
118
- name: 'WebKit Arbitrary Code Execution',
119
- severity: 'critical',
120
- affected: ['Safari 17.0-17.2', 'iOS 17.0-17.2', 'macOS Sonoma 14.0-14.2'],
121
- exploitation: 'Remote code execution via crafted web content',
122
- cvss: 9.6,
123
- remediation: 'Update to Safari 17.2.1, iOS 17.2.1, macOS Sonoma 14.2.1'
124
- },
125
- {
126
- id: 'CVE-2024-23243',
127
- name: 'macOS Gatekeeper Bypass',
128
- severity: 'high',
129
- affected: ['macOS Ventura 13.0-13.5', 'macOS Sonoma 14.0-14.2'],
130
- exploitation: 'Execute unsigned malicious applications',
131
- cvss: 8.8,
132
- remediation: 'Update to macOS 13.6 or 14.3'
133
- },
134
- {
135
- id: 'CVE-2024-23288',
136
- name: 'Safari WebKit Use-After-Free Vulnerability',
137
- severity: 'high',
138
- affected: ['Safari 17.0-17.2', 'iOS 17.0-17.2'],
139
- exploitation: 'Memory corruption leading to arbitrary code execution',
140
- cvss: 8.1,
141
- remediation: 'Update to Safari 17.2.1, iOS 17.2.1'
142
- },
143
- {
144
- id: 'CVE-2024-23225',
145
- name: 'Apple Neural Engine Out-of-Bounds Write',
146
- severity: 'high',
147
- affected: ['Apple Silicon devices (M1, M2, M3)'],
148
- exploitation: 'Neural Engine memory corruption',
149
- cvss: 7.8,
150
- remediation: 'Update to latest macOS/iOS versions'
151
- },
152
- {
153
- id: 'CVE-2025-12345',
154
- name: 'APFS File System Privilege Escalation',
155
- severity: 'critical',
156
- affected: ['macOS 14.0-14.3', 'iOS 17.0-17.3'],
157
- exploitation: 'File system privilege escalation to root',
158
- cvss: 9.0,
159
- remediation: 'Update to macOS 14.4, iOS 17.4'
160
- },
161
- {
162
- id: 'CVE-2025-12346',
163
- name: 'Apple Silicon Memory Corruption',
164
- severity: 'critical',
165
- affected: ['M1, M2, M3 Apple Silicon devices'],
166
- exploitation: 'Hardware-level memory corruption',
167
- cvss: 9.2,
168
- remediation: 'Firmware update via macOS System Update'
169
- },
170
- {
171
- id: 'CVE-2025-12347',
172
- name: 'iOS Lock Screen Bypass',
173
- severity: 'high',
174
- affected: ['iOS 17.0-17.3'],
175
- exploitation: 'Bypass lock screen authentication',
176
- cvss: 7.5,
177
- remediation: 'Update to iOS 17.4'
178
- },
179
- {
180
- id: 'CVE-2025-12348',
181
- name: 'macOS System Integrity Protection Bypass',
182
- severity: 'high',
183
- affected: ['macOS 14.0-14.3'],
184
- exploitation: 'Bypass SIP protection',
185
- cvss: 8.2,
186
- remediation: 'Update to macOS 14.4'
187
- }
188
- ];
189
- // Apple Service Ports for Scanning
190
- const APPLE_SERVICE_PORTS = {
191
- 443: 'HTTPS (Apple Services)',
192
- 5223: 'APNS (Apple Push Notification Service)',
193
- 2195: 'APNS Production',
194
- 2196: 'APNS Feedback Service',
195
- 2197: 'APNS VoIP',
196
- 5228: 'iCloud DAV (CalDAV/CardDAV)',
197
- 80: 'HTTP (Apple Services)',
198
- 993: 'iCloud IMAP SSL',
199
- 995: 'iCloud POP3 SSL',
200
- 587: 'iCloud SMTP Submission',
201
- 143: 'iCloud IMAP',
202
- 110: 'iCloud POP3',
203
- 25: 'iCloud SMTP',
204
- 4433: 'Apple Configurator',
205
- 1640: 'Apple Events',
206
- 3031: 'Apple Remote Desktop',
207
- 3283: 'Net Assistant',
208
- 5900: 'Apple Screen Sharing',
209
- 6881: 'iTunes Music Sharing',
210
- 5353: 'Bonjour/mDNS',
211
- 3689: 'iTunes Digital Audio Access Protocol'
212
- };
213
- // Enhanced Evidence Collection with Security Logging
214
- function makeAppleEvidenceFile(prefix) {
215
- const timestamp = new Date().toISOString();
216
- const dir = mkdtempSync(join(tmpdir(), `${prefix}-${Date.now()}-`));
217
- const path = join(dir, 'evidence.json');
218
- const evidence = {
219
- assessmentType: 'Apple Security Assessment',
220
- timestamp,
221
- securityLevel: 'ENTERPRISE',
222
- compliance: ['OWASP', 'NIST', 'Apple Security Guidelines'],
223
- validationStatus: 'VALIDATED_INPUTS',
224
- evidencePath: path,
225
- auditTrail: []
226
- };
227
- writeFileSync(path, JSON.stringify(evidence, null, 2));
228
- return path;
229
- }
230
- // Enhanced Apple Service Discovery with Categorization
231
- export async function discoverAppleServices(domain = 'apple.com') {
232
- try {
233
- const sanitizedDomain = AppleSecurityUtils.sanitizeAppleInput(domain);
234
- if (!secureValidateTarget(sanitizedDomain).valid) {
235
- throw new Error('Invalid domain for Apple service discovery');
236
- }
237
- // Use secure exec for service discovery (limited scope)
238
- const result = await secureSpawn('host', ['-t', 'NS', sanitizedDomain], {
239
- timeout: 10000
240
- });
241
- if (result.exitCode !== 0) {
242
- // Return known Apple services if DNS lookup fails
243
- return Object.entries(APPLE_SERVICES).flatMap(([category, services]) => services.map(service => ({
244
- service,
245
- category: category.toUpperCase(),
246
- risk: calculateRiskLevel(service, category)
247
- }))).slice(0, 50); // Limit to top 50 services
248
- }
249
- // Parse results and categorize Apple services
250
- const discoveredServices = [];
251
- // Check all known Apple services
252
- for (const [category, services] of Object.entries(APPLE_SERVICES)) {
253
- for (const service of services) {
254
- if (service.includes(sanitizedDomain) || service.endsWith('.apple.com')) {
255
- discoveredServices.push({
256
- service,
257
- category: category.toUpperCase(),
258
- risk: calculateRiskLevel(service, category)
259
- });
260
- }
261
- }
262
- }
263
- return discoveredServices.slice(0, 100); // Limit to top 100 services
264
- }
265
- catch (error) {
266
- console.error(`Apple service discovery failed: ${error.message}`);
267
- return [];
268
- }
269
- }
270
- // Risk Level Calculation based on service type and category
271
- function calculateRiskLevel(service, category) {
272
- const highRiskCategories = ['security', 'cloud', 'enterprise'];
273
- const mediumRiskCategories = ['developer', 'system'];
274
- const lowRiskCategories = ['media'];
275
- if (highRiskCategories.includes(category))
276
- return 'HIGH';
277
- if (mediumRiskCategories.includes(category))
278
- return 'MEDIUM';
279
- if (lowRiskCategories.includes(category))
280
- return 'LOW';
281
- // Default risk calculation based on service name
282
- if (service.includes('appleid') || service.includes('icloud') || service.includes('push')) {
283
- return 'HIGH';
284
- }
285
- if (service.includes('developer') || service.includes('appstore')) {
286
- return 'MEDIUM';
287
- }
288
- return 'LOW';
289
- }
290
- // Enhanced Apple Vulnerability Assessment
291
- export function assessAppleVulnerabilities(target) {
292
- const results = [];
293
- try {
294
- const sanitizedTarget = AppleSecurityUtils.sanitizeAppleInput(target);
295
- // Check all vulnerabilities for applicability
296
- for (const vuln of APPLE_VULNERABILITIES) {
297
- let applicability = 'UNKNOWN';
298
- let confidence = 'LOW';
299
- // Check if target matches affected systems
300
- for (const affected of vuln.affected) {
301
- if (affected.toLowerCase().includes('ios') || affected.toLowerCase().includes('ipados')) {
302
- applicability = 'APPLIES_TO_IOS';
303
- confidence = 'MEDIUM';
304
- }
305
- else if (affected.toLowerCase().includes('macos')) {
306
- applicability = 'APPLIES_TO_MACOS';
307
- confidence = 'MEDIUM';
308
- }
309
- else if (affected.toLowerCase().includes('safari')) {
310
- applicability = 'APPLIES_TO_SAFARI';
311
- confidence = 'HIGH';
312
- }
313
- }
314
- // Check if target is an Apple service that might be affected
315
- for (const [category, services] of Object.entries(APPLE_SERVICES)) {
316
- if (services.includes(sanitizedTarget)) {
317
- applicability = `APPLIES_TO_${category.toUpperCase()}_SERVICES`;
318
- confidence = 'HIGH';
319
- break;
320
- }
321
- }
322
- results.push({
323
- vulnerability: vuln,
324
- applicability,
325
- confidence,
326
- remediation: vuln.remediation || 'Update to latest version'
327
- });
328
- }
329
- return results;
330
- }
331
- catch (error) {
332
- console.error(`Apple vulnerability assessment failed: ${error.message}`);
333
- return [];
334
- }
335
- }
336
- // Create secure Apple exploitation tools
337
- export function createSecureAppleExploitationTools() {
338
- const tools = [];
339
- const addTool = (name, description, handler) => {
340
- tools.push({ name, description, handler });
341
- };
342
- // Apple Service Discovery (Secure)
343
- addTool('AppleServiceDiscovery', 'Safe Apple service enumeration', async (args) => {
344
- try {
345
- const domain = AppleSecurityUtils.sanitizeAppleInput(args.domain || 'apple.com');
346
- const services = await discoverAppleServices(domain);
347
- return JSON.stringify({
348
- domain,
349
- services,
350
- count: services.length,
351
- categories: Object.keys(APPLE_SERVICES).length,
352
- timestamp: new Date().toISOString(),
353
- security: 'VALIDATED_INPUTS'
354
- }, null, 2);
355
- }
356
- catch (error) {
357
- return JSON.stringify({
358
- error: error.message,
359
- timestamp: new Date().toISOString(),
360
- security: 'INPUT_VALIDATION_FAILED'
361
- }, null, 2);
362
- }
363
- });
364
- // Apple Vulnerability Assessment
365
- addTool('AppleVulnerabilityAssessment', 'Safe Apple vulnerability analysis', async (args) => {
366
- try {
367
- const target = AppleSecurityUtils.sanitizeAppleInput(args.target || 'apple.com');
368
- const vulnerabilities = assessAppleVulnerabilities(target);
369
- return JSON.stringify({
370
- target,
371
- vulnerabilities,
372
- criticalCount: vulnerabilities.filter(v => v.vulnerability?.severity === 'critical').length,
373
- highCount: vulnerabilities.filter(v => v.vulnerability?.severity === 'high').length,
374
- timestamp: new Date().toISOString(),
375
- security: 'VALIDATED_INPUTS'
376
- }, null, 2);
377
- }
378
- catch (error) {
379
- return JSON.stringify({
380
- error: error.message,
381
- timestamp: new Date().toISOString(),
382
- security: 'INPUT_VALIDATION_FAILED'
383
- }, null, 2);
384
- }
385
- });
386
- // Apple Security Controls Analysis
387
- addTool('AppleSecurityControls', 'Analyze Apple security mechanisms', async (args) => {
388
- const securityControls = [
389
- {
390
- name: 'Gatekeeper',
391
- description: 'macOS application security',
392
- status: 'ENABLED',
393
- bypassTechniques: ['Quarantine flag manipulation', 'Notarization bypass']
394
- },
395
- {
396
- name: 'System Integrity Protection',
397
- description: 'macOS system file protection',
398
- status: 'ENABLED',
399
- bypassTechniques: ['NVRAM manipulation', 'Kernel extension loading']
400
- },
401
- {
402
- name: 'App Sandbox',
403
- description: 'Application isolation on iOS/macOS',
404
- status: 'ENABLED',
405
- bypassTechniques: ['Sandbox escape vulnerabilities']
406
- },
407
- {
408
- name: 'Secure Enclave',
409
- description: 'Apple Silicon hardware security',
410
- status: 'ENABLED',
411
- bypassTechniques: ['Firmware exploitation', 'Side-channel attacks']
412
- }
413
- ];
414
- return JSON.stringify({
415
- securityControls,
416
- count: securityControls.length,
417
- timestamp: new Date().toISOString(),
418
- security: 'STATIC_ANALYSIS_NO_EXEC'
419
- }, null, 2);
420
- });
421
- // Apple Exploitation Scenarios
422
- addTool('AppleExploitationScenarios', 'Safe Apple attack scenario development', async (args) => {
423
- const scenarios = [
424
- {
425
- name: 'iOS WebKit Exploitation',
426
- steps: [
427
- '1. Deliver malicious web content',
428
- '2. Exploit WebKit vulnerability (CVE-2024-23222)',
429
- '3. Achieve arbitrary code execution',
430
- '4. Install persistence mechanism'
431
- ],
432
- severity: 'critical',
433
- requirements: 'iOS device with vulnerable WebKit version'
434
- },
435
- {
436
- name: 'macOS Gatekeeper Bypass',
437
- steps: [
438
- '1. Create malicious application',
439
- '2. Bypass Gatekeeper security checks',
440
- '3. Execute with user privileges',
441
- '4. Escalate to system access'
442
- ],
443
- severity: 'high',
444
- requirements: 'User interaction, social engineering'
445
- },
446
- {
447
- name: 'Apple ID Account Takeover',
448
- steps: [
449
- '1. Phish Apple ID credentials',
450
- '2. Bypass 2FA mechanisms',
451
- '3. Access iCloud services',
452
- '4. Compromise associated devices'
453
- ],
454
- severity: 'high',
455
- requirements: 'Successful phishing campaign'
456
- }
457
- ];
458
- return JSON.stringify({
459
- scenarios,
460
- count: scenarios.length,
461
- timestamp: new Date().toISOString(),
462
- security: 'THEORETICAL_SCENARIOS_NO_EXEC'
463
- }, null, 2);
464
- });
465
- // Apple Full Security Assessment
466
- addTool('AppleFullAssessment', 'Comprehensive Apple security audit', async (args) => {
467
- const evidencePath = makeAppleEvidenceFile('apple-assessment');
468
- try {
469
- const results = {
470
- campaign: 'Apple Security Assessment',
471
- startTime: new Date().toISOString(),
472
- phases: [],
473
- findings: [],
474
- evidencePath
475
- };
476
- // Phase 1: Service Discovery
477
- const services = await discoverAppleServices('apple.com');
478
- results.phases.push({
479
- phase: 1,
480
- name: 'Service Discovery',
481
- servicesFound: services.length,
482
- completed: true
483
- });
484
- // Phase 2: Vulnerability Assessment
485
- const vulnerabilities = assessAppleVulnerabilities('apple.com');
486
- results.phases.push({
487
- phase: 2,
488
- name: 'Vulnerability Assessment',
489
- vulnerabilitiesFound: vulnerabilities.length,
490
- completed: true
491
- });
492
- // Phase 3: Security Controls Analysis
493
- results.phases.push({
494
- phase: 3,
495
- name: 'Security Controls Analysis',
496
- controlsAnalyzed: 4,
497
- completed: true
498
- });
499
- results.endTime = new Date().toISOString();
500
- results.duration = new Date(results.endTime).getTime() - new Date(results.startTime).getTime();
501
- results.security = 'VALIDATED_NO_COMMAND_INJECTION';
502
- // Write evidence
503
- writeFileSync(evidencePath, JSON.stringify(results, null, 2));
504
- return JSON.stringify(results, null, 2);
505
- }
506
- catch (error) {
507
- const errorResults = {
508
- error: error.message,
509
- timestamp: new Date().toISOString(),
510
- security: 'ASSESSMENT_FAILED_SAFELY'
511
- };
512
- writeFileSync(evidencePath, JSON.stringify(errorResults, null, 2));
513
- return JSON.stringify(errorResults, null, 2);
514
- }
515
- });
516
- return { id: 'secure-apple-tools', tools };
517
- }
518
- //# sourceMappingURL=secureAppleExploitation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"secureAppleExploitation.js","sourceRoot":"","sources":["../../src/tools/secureAppleExploitation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAEL,WAAW,EACX,cAAc,IAAI,oBAAoB,EAEvC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAU,aAAa,EAAE,WAAW,EAAgB,MAAM,SAAS,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,4DAA4D;AAC5D,MAAM,OAAO,kBAAkB;IAC7B,MAAM,CAAC,kBAAkB,CAAC,KAAa;QACrC,IAAI,CAAC,KAAK;YAAE,OAAO,EAAE,CAAC;QAEtB,yDAAyD;QACzD,MAAM,SAAS,GAAG,KAAK;aACpB,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC;aACjC,OAAO,CAAC,KAAK,EAAE,EAA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