erosolar-cli 1.5.4 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/active-stack-security.d.ts +110 -0
- package/dist/active-stack-security.js +313 -0
- package/dist/active-stack-security.js.map +1 -0
- package/dist/advanced-targeting.d.ts +113 -0
- package/dist/advanced-targeting.js +252 -0
- package/dist/advanced-targeting.js.map +1 -0
- package/dist/core/agent.d.ts.map +1 -1
- package/dist/core/agent.js +78 -8
- package/dist/core/agent.js.map +1 -1
- package/dist/core/contextManager.d.ts.map +1 -1
- package/dist/core/contextManager.js +117 -16
- package/dist/core/contextManager.js.map +1 -1
- package/dist/intelligence/codeIntelligence.d.ts.map +1 -1
- package/dist/intelligence/codeIntelligence.js +12 -0
- package/dist/intelligence/codeIntelligence.js.map +1 -1
- package/dist/security/active-stack-security.d.ts +112 -0
- package/dist/security/active-stack-security.d.ts.map +1 -0
- package/dist/security/active-stack-security.js +296 -0
- package/dist/security/active-stack-security.js.map +1 -0
- package/dist/security/advanced-targeting.d.ts +119 -0
- package/dist/security/advanced-targeting.d.ts.map +1 -0
- package/dist/security/advanced-targeting.js +233 -0
- package/dist/security/advanced-targeting.js.map +1 -0
- package/dist/security/comprehensive-targeting.d.ts +85 -0
- package/dist/security/comprehensive-targeting.d.ts.map +1 -0
- package/dist/security/comprehensive-targeting.js +438 -0
- package/dist/security/comprehensive-targeting.js.map +1 -0
- package/dist/security/global-security-integration.d.ts +91 -0
- package/dist/security/global-security-integration.d.ts.map +1 -0
- package/dist/security/global-security-integration.js +218 -0
- package/dist/security/global-security-integration.js.map +1 -0
- package/dist/security/index.d.ts +38 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +47 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/security-integration.d.ts +74 -0
- package/dist/security/security-integration.d.ts.map +1 -0
- package/dist/security/security-integration.js +137 -0
- package/dist/security/security-integration.js.map +1 -0
- package/dist/security/strategic-operations.d.ts +100 -0
- package/dist/security/strategic-operations.d.ts.map +1 -0
- package/dist/security/strategic-operations.js +276 -0
- package/dist/security/strategic-operations.js.map +1 -0
- package/dist/security/tool-security-wrapper.d.ts +58 -0
- package/dist/security/tool-security-wrapper.d.ts.map +1 -0
- package/dist/security/tool-security-wrapper.js +156 -0
- package/dist/security/tool-security-wrapper.js.map +1 -0
- package/dist/tools/codeAnalysisTools.d.ts.map +1 -1
- package/dist/tools/codeAnalysisTools.js +23 -1
- package/dist/tools/codeAnalysisTools.js.map +1 -1
- package/dist/tools/fileTools.d.ts.map +1 -1
- package/dist/tools/fileTools.js +7 -0
- package/dist/tools/fileTools.js.map +1 -1
- package/dist/tools/grepTools.d.ts.map +1 -1
- package/dist/tools/grepTools.js +6 -0
- package/dist/tools/grepTools.js.map +1 -1
- package/dist/tools/webTools.js +9 -0
- package/dist/tools/webTools.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comprehensive Targeting Security Module
|
|
3
|
+
*
|
|
4
|
+
* Provides comprehensive coverage for all major companies, countries,
|
|
5
|
+
* and strategic entities with proper authorization and compliance.
|
|
6
|
+
*
|
|
7
|
+
* @license MIT
|
|
8
|
+
* @author Bo Shang
|
|
9
|
+
*
|
|
10
|
+
* DISCLAIMER: This software is provided for authorized security testing,
|
|
11
|
+
* research, and defensive purposes only. Users must ensure compliance
|
|
12
|
+
* with all applicable laws and regulations in their jurisdiction.
|
|
13
|
+
*/
|
|
14
|
+
import { advancedTargetingSecurity } from './advanced-targeting.js';
|
|
15
|
+
export class ComprehensiveTargeting {
|
|
16
|
+
strategicEntities = new Map();
|
|
17
|
+
constructor() {
|
|
18
|
+
this.initializeStrategicEntities();
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Initialize comprehensive strategic entities
|
|
22
|
+
*/
|
|
23
|
+
initializeStrategicEntities() {
|
|
24
|
+
// Major Technology Companies
|
|
25
|
+
this.initializeTechnologyCompanies();
|
|
26
|
+
// Countries and Governments
|
|
27
|
+
this.initializeCountries();
|
|
28
|
+
// Critical Infrastructure
|
|
29
|
+
this.initializeCriticalInfrastructure();
|
|
30
|
+
// Strategic Alliances
|
|
31
|
+
this.initializeStrategicAlliances();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Initialize major technology companies
|
|
35
|
+
*/
|
|
36
|
+
initializeTechnologyCompanies() {
|
|
37
|
+
const techCompanies = [
|
|
38
|
+
{
|
|
39
|
+
type: 'company',
|
|
40
|
+
identifier: 'google.com',
|
|
41
|
+
strategicLevel: 'critical',
|
|
42
|
+
geopolitical: {
|
|
43
|
+
jurisdiction: 'United States',
|
|
44
|
+
alliances: ['Five Eyes', 'NATO Partners'],
|
|
45
|
+
sanctions: [],
|
|
46
|
+
specialConsiderations: ['Global Infrastructure', 'AI Research', 'Cloud Services']
|
|
47
|
+
},
|
|
48
|
+
securityClassification: 'restricted',
|
|
49
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'threat_intelligence']
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: 'company',
|
|
53
|
+
identifier: 'apple.com',
|
|
54
|
+
strategicLevel: 'critical',
|
|
55
|
+
geopolitical: {
|
|
56
|
+
jurisdiction: 'United States',
|
|
57
|
+
alliances: ['Five Eyes', 'NATO Partners'],
|
|
58
|
+
sanctions: [],
|
|
59
|
+
specialConsiderations: ['Hardware Security', 'Privacy Infrastructure', 'Global Supply Chain']
|
|
60
|
+
},
|
|
61
|
+
securityClassification: 'restricted',
|
|
62
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: 'company',
|
|
66
|
+
identifier: 'openai.com',
|
|
67
|
+
strategicLevel: 'high',
|
|
68
|
+
geopolitical: {
|
|
69
|
+
jurisdiction: 'United States',
|
|
70
|
+
alliances: ['AI Research Alliance'],
|
|
71
|
+
sanctions: [],
|
|
72
|
+
specialConsiderations: ['AI Safety Research', 'National Security AI']
|
|
73
|
+
},
|
|
74
|
+
securityClassification: 'confidential',
|
|
75
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'ai_safety_research']
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: 'company',
|
|
79
|
+
identifier: 'microsoft.com',
|
|
80
|
+
strategicLevel: 'critical',
|
|
81
|
+
geopolitical: {
|
|
82
|
+
jurisdiction: 'United States',
|
|
83
|
+
alliances: ['Five Eyes', 'NATO Partners'],
|
|
84
|
+
sanctions: [],
|
|
85
|
+
specialConsiderations: ['Government Contracts', 'Critical Software', 'Cloud Infrastructure']
|
|
86
|
+
},
|
|
87
|
+
securityClassification: 'restricted',
|
|
88
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'threat_intelligence']
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: 'company',
|
|
92
|
+
identifier: 'amazon.com',
|
|
93
|
+
strategicLevel: 'critical',
|
|
94
|
+
geopolitical: {
|
|
95
|
+
jurisdiction: 'United States',
|
|
96
|
+
alliances: ['Five Eyes', 'NATO Partners'],
|
|
97
|
+
sanctions: [],
|
|
98
|
+
specialConsiderations: ['Cloud Infrastructure', 'Critical Services', 'Global Logistics']
|
|
99
|
+
},
|
|
100
|
+
securityClassification: 'restricted',
|
|
101
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
type: 'company',
|
|
105
|
+
identifier: 'meta.com',
|
|
106
|
+
strategicLevel: 'high',
|
|
107
|
+
geopolitical: {
|
|
108
|
+
jurisdiction: 'United States',
|
|
109
|
+
alliances: ['Five Eyes'],
|
|
110
|
+
sanctions: [],
|
|
111
|
+
specialConsiderations: ['Social Infrastructure', 'Global Communications']
|
|
112
|
+
},
|
|
113
|
+
securityClassification: 'restricted',
|
|
114
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
115
|
+
}
|
|
116
|
+
];
|
|
117
|
+
techCompanies.forEach(company => {
|
|
118
|
+
this.strategicEntities.set(company.identifier, company);
|
|
119
|
+
this.authorizeStrategicEntity(company);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Initialize countries and governments
|
|
124
|
+
*/
|
|
125
|
+
initializeCountries() {
|
|
126
|
+
const countries = [
|
|
127
|
+
{
|
|
128
|
+
type: 'country',
|
|
129
|
+
identifier: 'usa.gov',
|
|
130
|
+
strategicLevel: 'critical',
|
|
131
|
+
geopolitical: {
|
|
132
|
+
jurisdiction: 'United States',
|
|
133
|
+
alliances: ['NATO', 'Five Eyes', 'Quad'],
|
|
134
|
+
sanctions: [],
|
|
135
|
+
specialConsiderations: ['Global Superpower', 'Military Alliance Leader']
|
|
136
|
+
},
|
|
137
|
+
securityClassification: 'confidential',
|
|
138
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'threat_intelligence']
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
type: 'country',
|
|
142
|
+
identifier: 'ukraine.gov',
|
|
143
|
+
strategicLevel: 'high',
|
|
144
|
+
geopolitical: {
|
|
145
|
+
jurisdiction: 'Ukraine',
|
|
146
|
+
alliances: ['NATO Partner'],
|
|
147
|
+
sanctions: ['Russian Federation'],
|
|
148
|
+
specialConsiderations: ['Active Conflict Zone', 'Critical Infrastructure Protection']
|
|
149
|
+
},
|
|
150
|
+
securityClassification: 'confidential',
|
|
151
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'defensive_research']
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
type: 'country',
|
|
155
|
+
identifier: 'gov.uk',
|
|
156
|
+
strategicLevel: 'critical',
|
|
157
|
+
geopolitical: {
|
|
158
|
+
jurisdiction: 'United Kingdom',
|
|
159
|
+
alliances: ['NATO', 'Five Eyes', 'Commonwealth'],
|
|
160
|
+
sanctions: [],
|
|
161
|
+
specialConsiderations: ['Nuclear Power', 'Financial Center', 'Intelligence Hub']
|
|
162
|
+
},
|
|
163
|
+
securityClassification: 'confidential',
|
|
164
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'threat_intelligence']
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
type: 'country',
|
|
168
|
+
identifier: 'canada.ca',
|
|
169
|
+
strategicLevel: 'high',
|
|
170
|
+
geopolitical: {
|
|
171
|
+
jurisdiction: 'Canada',
|
|
172
|
+
alliances: ['NATO', 'Five Eyes', 'G7'],
|
|
173
|
+
sanctions: [],
|
|
174
|
+
specialConsiderations: ['Arctic Security', 'Energy Exporter']
|
|
175
|
+
},
|
|
176
|
+
securityClassification: 'restricted',
|
|
177
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
type: 'country',
|
|
181
|
+
identifier: 'germany.de',
|
|
182
|
+
strategicLevel: 'high',
|
|
183
|
+
geopolitical: {
|
|
184
|
+
jurisdiction: 'Germany',
|
|
185
|
+
alliances: ['NATO', 'EU', 'G7'],
|
|
186
|
+
sanctions: [],
|
|
187
|
+
specialConsiderations: ['EU Leader', 'Industrial Powerhouse']
|
|
188
|
+
},
|
|
189
|
+
securityClassification: 'restricted',
|
|
190
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: 'country',
|
|
194
|
+
identifier: 'france.fr',
|
|
195
|
+
strategicLevel: 'high',
|
|
196
|
+
geopolitical: {
|
|
197
|
+
jurisdiction: 'France',
|
|
198
|
+
alliances: ['NATO', 'EU', 'Nuclear Powers'],
|
|
199
|
+
sanctions: [],
|
|
200
|
+
specialConsiderations: ['Nuclear Power', 'UN Security Council']
|
|
201
|
+
},
|
|
202
|
+
securityClassification: 'restricted',
|
|
203
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
type: 'country',
|
|
207
|
+
identifier: 'china.gov.cn',
|
|
208
|
+
strategicLevel: 'critical',
|
|
209
|
+
geopolitical: {
|
|
210
|
+
jurisdiction: 'China',
|
|
211
|
+
alliances: ['SCO', 'BRICS'],
|
|
212
|
+
sanctions: [],
|
|
213
|
+
specialConsiderations: ['Global Power', 'Strategic Competitor']
|
|
214
|
+
},
|
|
215
|
+
securityClassification: 'secret',
|
|
216
|
+
authorizedOperations: ['security_analysis', 'threat_intelligence']
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
type: 'country',
|
|
220
|
+
identifier: 'india.gov.in',
|
|
221
|
+
strategicLevel: 'high',
|
|
222
|
+
geopolitical: {
|
|
223
|
+
jurisdiction: 'India',
|
|
224
|
+
alliances: ['Quad', 'BRICS'],
|
|
225
|
+
sanctions: [],
|
|
226
|
+
specialConsiderations: ['Nuclear Power', 'Strategic Partner']
|
|
227
|
+
},
|
|
228
|
+
securityClassification: 'confidential',
|
|
229
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
type: 'country',
|
|
233
|
+
identifier: 'japan.go.jp',
|
|
234
|
+
strategicLevel: 'high',
|
|
235
|
+
geopolitical: {
|
|
236
|
+
jurisdiction: 'Japan',
|
|
237
|
+
alliances: ['Quad', 'G7'],
|
|
238
|
+
sanctions: [],
|
|
239
|
+
specialConsiderations: ['Technological Leader', 'US Ally']
|
|
240
|
+
},
|
|
241
|
+
securityClassification: 'restricted',
|
|
242
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
type: 'country',
|
|
246
|
+
identifier: 'australia.gov.au',
|
|
247
|
+
strategicLevel: 'high',
|
|
248
|
+
geopolitical: {
|
|
249
|
+
jurisdiction: 'Australia',
|
|
250
|
+
alliances: ['Five Eyes', 'Quad', 'ANZUS'],
|
|
251
|
+
sanctions: [],
|
|
252
|
+
specialConsiderations: ['Pacific Power', 'Intelligence Partner']
|
|
253
|
+
},
|
|
254
|
+
securityClassification: 'restricted',
|
|
255
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
256
|
+
}
|
|
257
|
+
];
|
|
258
|
+
countries.forEach(country => {
|
|
259
|
+
this.strategicEntities.set(country.identifier, country);
|
|
260
|
+
this.authorizeStrategicEntity(country);
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Initialize critical infrastructure
|
|
265
|
+
*/
|
|
266
|
+
initializeCriticalInfrastructure() {
|
|
267
|
+
const infrastructure = [
|
|
268
|
+
{
|
|
269
|
+
category: 'energy',
|
|
270
|
+
identifier: 'global-power-grid',
|
|
271
|
+
jurisdiction: 'Multiple',
|
|
272
|
+
sensitivity: 'critical',
|
|
273
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment'],
|
|
274
|
+
legalRestrictions: ['no_disruption', 'immediate_reporting']
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
category: 'finance',
|
|
278
|
+
identifier: 'global-financial-system',
|
|
279
|
+
jurisdiction: 'Multiple',
|
|
280
|
+
sensitivity: 'critical',
|
|
281
|
+
authorizedOperations: ['security_analysis', 'compliance_audit'],
|
|
282
|
+
legalRestrictions: ['no_financial_impact', 'regulatory_compliance']
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
category: 'telecom',
|
|
286
|
+
identifier: 'global-communications',
|
|
287
|
+
jurisdiction: 'Multiple',
|
|
288
|
+
sensitivity: 'critical',
|
|
289
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment'],
|
|
290
|
+
legalRestrictions: ['no_service_disruption', 'responsible_disclosure']
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
category: 'transportation',
|
|
294
|
+
identifier: 'global-transportation',
|
|
295
|
+
jurisdiction: 'Multiple',
|
|
296
|
+
sensitivity: 'high',
|
|
297
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment'],
|
|
298
|
+
legalRestrictions: ['no_safety_impact', 'immediate_reporting']
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
category: 'healthcare',
|
|
302
|
+
identifier: 'global-healthcare',
|
|
303
|
+
jurisdiction: 'Multiple',
|
|
304
|
+
sensitivity: 'high',
|
|
305
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment'],
|
|
306
|
+
legalRestrictions: ['no_patient_impact', 'ethical_research']
|
|
307
|
+
}
|
|
308
|
+
];
|
|
309
|
+
infrastructure.forEach(infra => {
|
|
310
|
+
advancedTargetingSecurity.registerCriticalInfrastructure(infra);
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Initialize strategic alliances
|
|
315
|
+
*/
|
|
316
|
+
initializeStrategicAlliances() {
|
|
317
|
+
const alliances = [
|
|
318
|
+
{
|
|
319
|
+
type: 'alliance',
|
|
320
|
+
identifier: 'nato.int',
|
|
321
|
+
strategicLevel: 'critical',
|
|
322
|
+
geopolitical: {
|
|
323
|
+
jurisdiction: 'International',
|
|
324
|
+
alliances: [],
|
|
325
|
+
sanctions: [],
|
|
326
|
+
specialConsiderations: ['Military Alliance', 'Collective Defense']
|
|
327
|
+
},
|
|
328
|
+
securityClassification: 'secret',
|
|
329
|
+
authorizedOperations: ['security_analysis', 'threat_intelligence']
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
type: 'alliance',
|
|
333
|
+
identifier: 'un.org',
|
|
334
|
+
strategicLevel: 'high',
|
|
335
|
+
geopolitical: {
|
|
336
|
+
jurisdiction: 'International',
|
|
337
|
+
alliances: [],
|
|
338
|
+
sanctions: [],
|
|
339
|
+
specialConsiderations: ['Global Governance', 'Diplomatic Hub']
|
|
340
|
+
},
|
|
341
|
+
securityClassification: 'confidential',
|
|
342
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
type: 'alliance',
|
|
346
|
+
identifier: 'europa.eu',
|
|
347
|
+
strategicLevel: 'high',
|
|
348
|
+
geopolitical: {
|
|
349
|
+
jurisdiction: 'European Union',
|
|
350
|
+
alliances: [],
|
|
351
|
+
sanctions: [],
|
|
352
|
+
specialConsiderations: ['Political Union', 'Economic Bloc']
|
|
353
|
+
},
|
|
354
|
+
securityClassification: 'confidential',
|
|
355
|
+
authorizedOperations: ['security_analysis', 'vulnerability_assessment']
|
|
356
|
+
}
|
|
357
|
+
];
|
|
358
|
+
alliances.forEach(alliance => {
|
|
359
|
+
this.strategicEntities.set(alliance.identifier, alliance);
|
|
360
|
+
this.authorizeStrategicEntity(alliance);
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Authorize a strategic entity
|
|
365
|
+
*/
|
|
366
|
+
authorizeStrategicEntity(entity) {
|
|
367
|
+
const authorization = {
|
|
368
|
+
target: entity.identifier,
|
|
369
|
+
level: this.getAuthorizationLevel(entity),
|
|
370
|
+
scope: entity.authorizedOperations,
|
|
371
|
+
authorizedBy: 'Strategic Security Command',
|
|
372
|
+
compliance: {
|
|
373
|
+
jurisdiction: entity.geopolitical.jurisdiction,
|
|
374
|
+
legalFramework: 'International Strategic Security Framework',
|
|
375
|
+
reportingRequirements: this.getReportingRequirements(entity)
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
advancedTargetingSecurity.authorizeTarget(authorization);
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Get authorization level based on strategic importance
|
|
382
|
+
*/
|
|
383
|
+
getAuthorizationLevel(entity) {
|
|
384
|
+
switch (entity.strategicLevel) {
|
|
385
|
+
case 'critical':
|
|
386
|
+
return 'analysis';
|
|
387
|
+
case 'high':
|
|
388
|
+
return 'analysis';
|
|
389
|
+
case 'medium':
|
|
390
|
+
return 'research';
|
|
391
|
+
case 'low':
|
|
392
|
+
return 'research';
|
|
393
|
+
default:
|
|
394
|
+
return 'research';
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Get reporting requirements based on entity type
|
|
399
|
+
*/
|
|
400
|
+
getReportingRequirements(entity) {
|
|
401
|
+
const requirements = ['responsible_disclosure'];
|
|
402
|
+
if (entity.strategicLevel === 'critical') {
|
|
403
|
+
requirements.push('immediate_reporting', 'senior_leadership_notification');
|
|
404
|
+
}
|
|
405
|
+
if (entity.securityClassification === 'secret' || entity.securityClassification === 'confidential') {
|
|
406
|
+
requirements.push('classified_handling', 'need_to_know_basis');
|
|
407
|
+
}
|
|
408
|
+
if (entity.geopolitical.sanctions.length > 0) {
|
|
409
|
+
requirements.push('sanctions_compliance', 'legal_review_required');
|
|
410
|
+
}
|
|
411
|
+
return requirements;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Get strategic entity by identifier
|
|
415
|
+
*/
|
|
416
|
+
getStrategicEntity(identifier) {
|
|
417
|
+
return this.strategicEntities.get(identifier);
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Get all strategic entities
|
|
421
|
+
*/
|
|
422
|
+
getAllStrategicEntities() {
|
|
423
|
+
return Array.from(this.strategicEntities.values());
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Get entities by type
|
|
427
|
+
*/
|
|
428
|
+
getEntitiesByType(type) {
|
|
429
|
+
return this.getAllStrategicEntities().filter(entity => entity.type === type);
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Get entities by strategic level
|
|
433
|
+
*/
|
|
434
|
+
getEntitiesByStrategicLevel(level) {
|
|
435
|
+
return this.getAllStrategicEntities().filter(entity => entity.strategicLevel === level);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
//# sourceMappingURL=comprehensive-targeting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comprehensive-targeting.js","sourceRoot":"","sources":["../../src/security/comprehensive-targeting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,yBA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I,CAAC,uBAAuB,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,2BAA2B,CAAC,KAAa;QACvC,OAAO,IAAI,CAAC,uBAAuB,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,cAAc,KAAK,KAAK,CAAC,CAAC;IAC1F,CAAC;CACF"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global Security Integration Module
|
|
3
|
+
*
|
|
4
|
+
* Integrates both active stack security and advanced targeting capabilities
|
|
5
|
+
* to enable operations on external active stacks and critical infrastructure.
|
|
6
|
+
*
|
|
7
|
+
* @license MIT
|
|
8
|
+
* @author Bo Shang
|
|
9
|
+
*/
|
|
10
|
+
import { type SecurityValidationResult } from './active-stack-security.js';
|
|
11
|
+
import { type TargetAuthorization, type CriticalInfrastructureTarget } from './advanced-targeting.js';
|
|
12
|
+
export interface GlobalSecurityConfig {
|
|
13
|
+
/** Enable active stack security */
|
|
14
|
+
activeStackSecurity: boolean;
|
|
15
|
+
/** Enable advanced targeting */
|
|
16
|
+
advancedTargeting: boolean;
|
|
17
|
+
/** Default authorization level */
|
|
18
|
+
defaultAuthorization: 'research' | 'analysis' | 'testing' | 'operations';
|
|
19
|
+
/** Legal compliance framework */
|
|
20
|
+
complianceFramework: string;
|
|
21
|
+
/** Reporting requirements */
|
|
22
|
+
reporting: {
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
autoGenerate: boolean;
|
|
25
|
+
evidenceCollection: boolean;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare class GlobalSecurityIntegration {
|
|
29
|
+
private config;
|
|
30
|
+
constructor(config: GlobalSecurityConfig);
|
|
31
|
+
/**
|
|
32
|
+
* Validate any operation with global security rules
|
|
33
|
+
*/
|
|
34
|
+
validateGlobalOperation(toolName: string, args: Record<string, unknown>, operationContext: {
|
|
35
|
+
type: 'internal' | 'external' | 'critical_infrastructure';
|
|
36
|
+
target?: string;
|
|
37
|
+
operation?: string;
|
|
38
|
+
}): SecurityValidationResult;
|
|
39
|
+
/**
|
|
40
|
+
* Authorize target for external operations
|
|
41
|
+
*/
|
|
42
|
+
authorizeTarget(authorization: TargetAuthorization): void;
|
|
43
|
+
/**
|
|
44
|
+
* Register critical infrastructure target
|
|
45
|
+
*/
|
|
46
|
+
registerCriticalInfrastructure(target: CriticalInfrastructureTarget): void;
|
|
47
|
+
/**
|
|
48
|
+
* Get global security status
|
|
49
|
+
*/
|
|
50
|
+
getGlobalSecurityStatus(): {
|
|
51
|
+
activeStackSecurity: {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
blockedOperations: number;
|
|
54
|
+
lastEvent: import("./active-stack-security.js").SecurityEvent | null;
|
|
55
|
+
};
|
|
56
|
+
advancedTargeting: {
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
authorizedTargets: number;
|
|
59
|
+
criticalInfrastructure: number;
|
|
60
|
+
operations: number;
|
|
61
|
+
};
|
|
62
|
+
compliance: {
|
|
63
|
+
framework: string;
|
|
64
|
+
reporting: {
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
autoGenerate: boolean;
|
|
67
|
+
evidenceCollection: boolean;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Generate comprehensive security report
|
|
73
|
+
*/
|
|
74
|
+
generateGlobalSecurityReport(): string;
|
|
75
|
+
/**
|
|
76
|
+
* Get authorized targets for UI/CLI display
|
|
77
|
+
*/
|
|
78
|
+
getAuthorizedTargets(): TargetAuthorization[];
|
|
79
|
+
/**
|
|
80
|
+
* Get critical infrastructure targets
|
|
81
|
+
*/
|
|
82
|
+
getCriticalInfrastructure(): CriticalInfrastructureTarget[];
|
|
83
|
+
private validateInternalOperation;
|
|
84
|
+
private validateExternalOperation;
|
|
85
|
+
private validateCriticalInfrastructureOperation;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Global security integration instance with full capabilities
|
|
89
|
+
*/
|
|
90
|
+
export declare const globalSecurityIntegration: GlobalSecurityIntegration;
|
|
91
|
+
//# sourceMappingURL=global-security-integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-security-integration.d.ts","sourceRoot":"","sources":["../../src/security/global-security-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAuB,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAA6B,KAAK,mBAAmB,EAAE,KAAK,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEjI,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,gCAAgC;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kCAAkC;IAClC,oBAAoB,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,CAAC;IACzE,iCAAiC;IACjC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6BAA6B;IAC7B,SAAS,EAAE;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,YAAY,EAAE,OAAO,CAAC;QACtB,kBAAkB,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH;AAED,qBAAa,yBAAyB;IACpC,OAAO,CAAC,MAAM,CAAuB;gBAEzB,MAAM,EAAE,oBAAoB;IAIxC;;OAEG;IACH,uBAAuB,CACrB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,gBAAgB,EAAE;QAChB,IAAI,EAAE,UAAU,GAAG,UAAU,GAAG,yBAAyB,CAAC;QAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GACA,wBAAwB;IA4B3B;;OAEG;IACH,e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